ss-component-new 1.3.273 → 1.3.274

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 (109) hide show
  1. package/dist/{MTLLoader-fyJJJ5J2.cjs → MTLLoader-B54ixQhb.cjs} +1 -1
  2. package/dist/{MTLLoader-Bjxufy_s.js → MTLLoader-BoNCGsG4.js} +1 -1
  3. package/dist/{OrbitControls-BBpRClkm.cjs → OrbitControls-CJMMzEUW.cjs} +1 -1
  4. package/dist/{OrbitControls-BQWiOYip.js → OrbitControls-DoSmqdjP.js} +1 -1
  5. package/dist/{URDFLoader-Bcpa-czu.cjs → URDFLoader-nVeR8ZdI.cjs} +1 -1
  6. package/dist/{URDFLoader-DnDhwowf.js → URDFLoader-t9slj6ai.js} +2 -2
  7. package/dist/{animationData-CG9EgqU7.cjs → animationData-BgU1KRkW.cjs} +1 -1
  8. package/dist/{animationData-CiwMqk-B.js → animationData-C97Iju8z.js} +15 -15
  9. package/dist/{array-CNZ488y-.cjs → array-B99eahqW.cjs} +1 -1
  10. package/dist/{array-DOfOhj4s.js → array-BoheMCj8.js} +3 -3
  11. package/dist/{clone-DVBnVv9X.js → clone-CGDtIy6B.js} +1 -1
  12. package/dist/clone-CI_fGtEj.cjs +1 -0
  13. package/dist/{iconfont-BtF28Kow.js → iconfont-CKeALtAY.js} +2 -2
  14. package/dist/{iconfont-BXyk5311.cjs → iconfont-DPWhpUv-.cjs} +1 -1
  15. package/dist/{index-DqUZ-nKK.cjs → index-3hMFx4Et.cjs} +1 -1
  16. package/dist/index-4KNnVgB_.cjs +25 -0
  17. package/dist/{index-CUnS9jtD.js → index-B8SYSTmU.js} +1 -1
  18. package/dist/{index-5907Uj8v.js → index-B97tU-v3.js} +1 -1
  19. package/dist/{index-DF9J0eRh.cjs → index-BF1_fGLu.cjs} +1 -1
  20. package/dist/{index-soLFr5Jo.cjs → index-BFlL1Q1o.cjs} +1 -1
  21. package/dist/index-BH3kJeG7.cjs +1 -0
  22. package/dist/{index-D7kcuKde.cjs → index-BIiIA9kf.cjs} +1 -1
  23. package/dist/{index-KVzeEg2l.cjs → index-BKMhL6cy.cjs} +1 -1
  24. package/dist/{index-CI-CKk1R.cjs → index-BNW9wijf.cjs} +1 -1
  25. package/dist/{index-CtebvoQp.js → index-BQIVIp52.js} +2 -2
  26. package/dist/{index-DS4J0rre.js → index-BdH6mQJe.js} +1 -1
  27. package/dist/{index-B6_iUSA3.cjs → index-BepwV6P3.cjs} +1 -1
  28. package/dist/{index-2brd7dFc.cjs → index-BmcUcxiF.cjs} +1 -1
  29. package/dist/{index-DPT76q9W.js → index-BrrWPNlp.js} +2 -2
  30. package/dist/{index-CzO2rE5t.js → index-BvSmYp4d.js} +2 -2
  31. package/dist/{index-C-xI7h-Z.cjs → index-C-AY5aMt.cjs} +1 -1
  32. package/dist/{index-Ca4lTapS.js → index-C34yf4Ar.js} +1 -1
  33. package/dist/{index-BrkG7uLk.cjs → index-C4f3EFSw.cjs} +7 -6
  34. package/dist/{index-BUqV4xIT.cjs → index-C7sjzfZH.cjs} +12 -12
  35. package/dist/{index-DGqNLkIH.js → index-CAiadJzs.js} +1 -1
  36. package/dist/{index-CpEoVSwS.cjs → index-CF4NvfSP.cjs} +1 -1
  37. package/dist/{index-DVsmrcKc.js → index-CM9-7veN.js} +3 -3
  38. package/dist/{index-DIULIcux.js → index-CSSz2Lg7.js} +1 -1
  39. package/dist/{index-CG-CQhar.js → index-CZQuy9GL.js} +2 -2
  40. package/dist/{index-DcljbdLi.cjs → index-CeF7Uc27.cjs} +1 -1
  41. package/dist/{index-IV5ysLCM.js → index-Ci-nYoPD.js} +1494 -1582
  42. package/dist/{index-Bgm5vamc.cjs → index-CnsoLGeh.cjs} +1 -1
  43. package/dist/{index-AM6byXK9.cjs → index-D1I4nyY8.cjs} +1 -1
  44. package/dist/{index-Cp0iKPhB.cjs → index-DBNQwYpl.cjs} +1 -1
  45. package/dist/{index-B-6RIPBP.cjs → index-DG1B_QLs.cjs} +1 -1
  46. package/dist/{index-DhTeS6d6.cjs → index-DI2Ostpi.cjs} +1 -1
  47. package/dist/{index-DMOloFJh.js → index-DJwDm9sc.js} +1 -1
  48. package/dist/{index-D3KHz_dj.js → index-DOM_UjwV.js} +3 -3
  49. package/dist/{index-q8u6Thpm.cjs → index-DOavIlwC.cjs} +1 -1
  50. package/dist/{index-D0t4zOm8.js → index-Db1H9trt.js} +3 -3
  51. package/dist/{index-BVQYzH8C.cjs → index-DdCzUmCt.cjs} +1 -1
  52. package/dist/{index-Cpij8Ku0.js → index-DduTliyV.js} +2 -2
  53. package/dist/{index-CdYHesSW.cjs → index-DeSdVdJS.cjs} +1 -1
  54. package/dist/{index-YoQuVkx8.cjs → index-Di8Mu_vg.cjs} +1 -1
  55. package/dist/{index-W7nk9qZl.js → index-DlKs9BB5.js} +4 -4
  56. package/dist/{index-Dgr29q4a.js → index-DmkQ3_bH.js} +8 -8
  57. package/dist/{index-CQE1twGM.js → index-DqowzDKe.js} +2272 -2268
  58. package/dist/{index-CUXwF9N0.js → index-DvJR8w0l.js} +2 -2
  59. package/dist/{index-cpIe4kUL.js → index-DwG722va.js} +4 -4
  60. package/dist/index-LNMssM9M.js +22249 -0
  61. package/dist/{index-YF86sk8Y.cjs → index-PpuKOU0K.cjs} +1 -1
  62. package/dist/{index-qw8J_jxu.js → index-YKnyzjp3.js} +1 -1
  63. package/dist/{index-CFdBiU-k.js → index-_TVaYLOR.js} +2 -2
  64. package/dist/{index-BHb1lpTX.js → index-_Wy9z4du.js} +8 -8
  65. package/dist/{index-XFelski4.js → index-arEKsbMi.js} +5 -5
  66. package/dist/{index-Bi6rxDCM.js → index-b0maFixX.js} +3 -3
  67. package/dist/{index-BqvW-d8I.js → index-cx8Rr-cL.js} +17 -17
  68. package/dist/index-hHIUDmvr.js +8563 -0
  69. package/dist/{index-CDAgsOI_.cjs → index-hU6w9TV3.cjs} +1 -1
  70. package/dist/{index-Cs4v3nSH.cjs → index-kh6-27cu.cjs} +1 -1
  71. package/dist/{index-qlM1q9uT.cjs → index-lE_wnRX_.cjs} +1 -1
  72. package/dist/{index-B968UBFN.cjs → index-uw7kK1bZ.cjs} +1 -1
  73. package/dist/{index.vue_vue_type_style_index_0_scoped_6b92e250_lang-ChXGa8Vq.js → index.vue_vue_type_style_index_0_scoped_6b92e250_lang-CPjw26eu.js} +1847 -1842
  74. package/dist/{index.vue_vue_type_style_index_0_scoped_6b92e250_lang-COKDBqGg.cjs → index.vue_vue_type_style_index_0_scoped_6b92e250_lang-HK-wkhJC.cjs} +62 -62
  75. package/dist/{main-nBYqwNMj.cjs → main-DxvRODei.cjs} +1 -1
  76. package/dist/{main-aGFk7t5g.js → main-t-xrOvEZ.js} +4 -4
  77. package/dist/{menuIndex-GUxibP6D.js → menuIndex-Dc408sMg.js} +1 -1
  78. package/dist/{menuIndex-BADDJa0S.cjs → menuIndex-luRVLfAj.cjs} +1 -1
  79. package/dist/obj/model.mtl +42 -0
  80. package/dist/obj/model.obj +26110 -0
  81. package/dist/ss-component.cjs +1 -1
  82. package/dist/ss-component.css +2 -2
  83. package/dist/ss-component.js +11 -11
  84. package/dist/ss-component2.cjs +1 -1
  85. package/dist/ss-component2.js +12 -12
  86. package/dist/{threeModel-C43ztv8F.js → threeModel-BIjd12yp.js} +4 -4
  87. package/dist/{threeModel-0iOyugrH.cjs → threeModel-d-wY7lgS.cjs} +1 -1
  88. package/dist/{threePreview-Du4Z6pbp.cjs → threePreview-Cp54JU6o.cjs} +1 -1
  89. package/dist/{threePreview-BlxJGyMr.js → threePreview-D8HoMuN_.js} +4 -4
  90. package/dist/{threeSceneView-AKqgWtcC.js → threeSceneView-BluJovzJ.js} +12 -12
  91. package/dist/{threeSceneView-D8kMpks6.cjs → threeSceneView-Nh6iL25y.cjs} +1 -1
  92. package/dist/{threeSceneViewForCPMPIP-2Pti3m3C.js → threeSceneViewForCPMPIP-D291c84F.js} +8 -8
  93. package/dist/{threeSceneViewForCPMPIP-MttowLKc.cjs → threeSceneViewForCPMPIP-adGitz77.cjs} +1 -1
  94. package/dist/{threeTrackPathView-D81guq07.js → threeTrackPathView-DvLakKy1.js} +4 -4
  95. package/dist/{threeTrackPathView-DUdyhJIz.cjs → threeTrackPathView-j0lJwxED.cjs} +1 -1
  96. package/dist/{threeViewerHost-uNIKrsD0.cjs → threeViewerHost-Zx8ZzIKg.cjs} +1 -1
  97. package/dist/{threeViewerHost-CUPLExtn.js → threeViewerHost-i9dWt36x.js} +3 -3
  98. package/dist/{urdfTree-D-M_EZoD.js → urdfTree-B-WilkaF.js} +1 -1
  99. package/dist/{urdfTree-D4bYNa3V.cjs → urdfTree-BvuZ_8Wr.cjs} +1 -1
  100. package/dist/{workpieceTreePanel-CuJxocdg.js → workpieceTreePanel-D8JRu04d.js} +4 -4
  101. package/dist/{workpieceTreePanel-BKoIh7Am.cjs → workpieceTreePanel-DlVKiWjg.cjs} +1 -1
  102. package/package.json +1 -1
  103. package/public/obj/model.mtl +42 -0
  104. package/public/obj/model.obj +26110 -0
  105. package/dist/clone-C-XNAGaE.cjs +0 -1
  106. package/dist/index-D3CbfsAx.js +0 -8558
  107. package/dist/index-DJKypwZi.js +0 -22242
  108. package/dist/index-K7N6qB28.cjs +0 -1
  109. package/dist/index-op6E9ZFA.cjs +0 -25
@@ -0,0 +1,25 @@
1
+ "use strict";var mu=Object.defineProperty;var yu=(l,r,n)=>r in l?mu(l,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):l[r]=n;var $r=(l,r,n)=>yu(l,typeof r!="symbol"?r+"":r,n);const a=require("vue"),rl=require("./request-BC2w2vGr.cjs"),I=require("./index-C4f3EFSw.cjs"),fl=require("./index-C7sjzfZH.cjs"),Ul=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),$a=require("./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-HK-wkhJC.cjs"),vr=require("./index-CUw6nGTo.cjs"),go=require("./threeViewerHost-Zx8ZzIKg.cjs"),na=require("./index-DBNQwYpl.cjs"),yr=require("./index-CW4qJdP8.cjs"),Gi=require("./index-BF1_fGLu.cjs");require("./index-lE_wnRX_.cjs");const js=require("./index-BmcUcxiF.cjs");;/* empty css */const bo=require("./isString-DNBlKLZH.cjs"),Ji=require("./index.vue_vue_type_script_setup_true_lang-BKTJR2th.cjs"),Hs=require("./index-BVaHwt5f.cjs"),gu=require("./index-DG1B_QLs.cjs"),An=require("./MTLLoader-B54ixQhb.cjs"),bu=require("./URDFLoader-nVeR8ZdI.cjs");var ku="[object Boolean]";function Us(l){return l===!0||l===!1||rl.isObjectLike(l)&&rl.baseGetTag(l)==ku}function xu(l){return l===void 0}const _u=l=>l.match(/\((.*)\)/)[1],wu={__name:"index",props:{isVisible:{type:Boolean,default:!1},title:{type:String,default:""},placement:{type:String,default:"bottom"},width:{type:Number,default:200},trigger:{type:String,default:"click"}},setup(l){const r=l,n=a.ref(null),t=a.ref(!1),s=a.ref(null);return a.watch(()=>r==null?void 0:r.isVisible,()=>{t.value=r==null?void 0:r.isVisible},{deep:!0,immediate:!0}),a.watch(()=>s.value,()=>{a.nextTick(()=>{var c,b;(b=(c=n.value)==null?void 0:c.updatePopper)==null||b.call(c)})},{deep:!0,immediate:!0}),(c,b)=>{const h=a.resolveComponent("el-popover");return a.openBlock(),a.createBlock(h,{visible:t.value,"onUpdate:visible":b[0]||(b[0]=v=>t.value=v),trigger:r.trigger,title:r==null?void 0:r.title,placement:r==null?void 0:r.placement,width:r==null?void 0:r.width,ref_key:"popOverRef",ref:n,"trigger-keys":"[]"},{reference:a.withCtx(()=>[a.createElementVNode("div",null,[a.renderSlot(c.$slots,"reference",{ref_key:"referenceRef",ref:s})])]),default:a.withCtx(()=>[a.createElementVNode("div",null,[a.renderSlot(c.$slots,"content")])]),_:3},8,["visible","trigger","title","placement","width"])}}},Cu={__name:"index",props:{value:{type:[String,Number],default:""}},setup(l){const r=l,n=a.computed(()=>{const t=String(r.value??"");return t==="已完成"?"task-status-completed":t==="进行中"?"task-status-running":t==="终止"||t==="暂停"?"task-status-stopped":""});return(t,s)=>l.value!==void 0&&l.value!==null?(a.openBlock(),a.createElementBlock("span",{key:0,class:a.normalizeClass(["task-status-tag",n.value])},a.toDisplayString(l.value===0?"0":l.value),3)):a.createCommentVNode("",!0)}},Eu=Ul._export_sfc(Cu,[["__scopeId","data-v-d81f59b4"]]);function Su(l,r,n,t={}){if(!l||!r||!n||n.length!==4)return;const s=l.getContext("2d");if(!s)return;const{color:c="rgba(255, 235, 59, 0.3)",strokeWidth:b=2,fillOpacity:h=.2}=t,v=l.getBoundingClientRect(),y=r.getBoundingClientRect(),u=r.naturalWidth,x=r.naturalHeight,S=y.width/u,M=y.height/x,_=Math.min(S,M),U=u*_,B=x*_,A=(v.width-U)/2,R=(v.height-B)/2,C=n.map(([T,k])=>{const g=A+T*U,j=R+k*B;return{x:g,y:j}});s.clearRect(0,0,l.width,l.height),s.beginPath(),s.moveTo(C[0].x,C[0].y);for(let T=1;T<C.length;T++)s.lineTo(C[T].x,C[T].y);s.closePath();const L=c.replace(/[\d.]+\)$/,`${h})`);s.fillStyle=L,s.fill(),s.strokeStyle=c.replace(/[\d.]+\)$/,"1)"),s.lineWidth=b,s.stroke()}function mt(l){if(!l)return;const r=l.getContext("2d");r&&r.clearRect(0,0,l.width,l.height)}function Xi(l,r){if(!l||!r)return null;const n=l[r];return!n||!n.bboxNorm||!Array.isArray(n.bboxNorm)||n.bboxNorm.length!==4?null:{bboxNorm:n.bboxNorm,imageName:n.imageName||""}}const Du={key:0,class:"ocr-img-preview-root"},Bu={class:"ocr-img-preview-window"},Nu={key:0,class:"img-preview-body"},Tu={class:"img-preview-header"},Au={class:"img-header-left"},zu={class:"img-name"},Mu={key:0,class:"img-header-right"},Ou={class:"img-index"},Iu={key:0,class:"img-thumb-list"},Lu=["onClick"],Vu={key:1,class:"thumb-placeholder"},$u={class:"thumb-name"},Ru={class:"img-preview-container"},Pu={key:0,class:"img-placeholder"},Fu={key:2,class:"img-placeholder"},ju={key:0},Hu={key:1},Uu={key:1,class:"img-placeholder"},qu=a.defineComponent({__name:"imgPreview",props:{visible:{type:Boolean,default:!1},images:{type:Array,default:()=>[]},defaultImageName:{type:String,default:""},fieldMeta:{type:Object,default:()=>({})},focusedFieldName:{type:String,default:""}},emits:["update:visible","close"],setup(l,{emit:r}){const n=l,t=r,s=a.computed({get:()=>n.visible,set:D=>t("update:visible",D)});let c=!1,b="",h=0,v=0,y=0,u=0,x=0,S=0,M=null;const _=D=>{var ge,ue;const le=(ue=(ge=D==null?void 0:D.target)==null?void 0:ge.closest)==null?void 0:ue.call(ge,".ocr-img-preview-window");return le||document.querySelector(".ocr-img-preview-window")},U=D=>{if(!D||D==="none")return{tx:0,ty:0};let le=D.match(/matrix\(([^)]+)\)/);if(le){const ge=le[1].split(",").map(ue=>Number(ue.trim()));return{tx:(ge==null?void 0:ge[4])||0,ty:(ge==null?void 0:ge[5])||0}}if(le=D.match(/matrix3d\(([^)]+)\)/),le){const ge=le[1].split(",").map(ue=>Number(ue.trim()));return{tx:(ge==null?void 0:ge[12])||0,ty:(ge==null?void 0:ge[13])||0}}return le=D.match(/translate\(\s*([-\d.]+)px\s*,\s*([-\d.]+)px\s*\)/),le?{tx:Number(le[1])||0,ty:Number(le[2])||0}:{tx:0,ty:0}},B=(D,le,ge)=>{D.style.transform=`translate(${le}px, ${ge}px)`},A=D=>{const le=_(D);if(!le)return;c=!0,M=le,b="move",h=D.clientX,v=D.clientY;const ge=window.getComputedStyle(le),{tx:ue,ty:Ne}=U(ge.transform);x=ue,S=Ne,document.addEventListener("mousemove",C),document.addEventListener("mouseup",L)},R=(D,le)=>{const ge=_(D);if(!ge)return;c=!0,M=ge,b=le,h=D.clientX,v=D.clientY;const ue=ge.getBoundingClientRect();y=ue.width,u=ue.height;const Ne=window.getComputedStyle(ge),{tx:ia,ty:ka}=U(Ne.transform);x=ia,S=ka,document.addEventListener("mousemove",C),document.addEventListener("mouseup",L)},C=D=>{if(!c||!M)return;const le=D.clientX-h,ge=D.clientY-v,ue=360,Ne=420;let ia=y,ka=u,Ha=x,ee=S;if(b==="move"){Ha=x+le,ee=S+ge,B(M,Ha,ee);return}if(b.includes("right")&&(ia=Math.max(ue,y+le)),b.includes("bottom")&&(ka=Math.max(Ne,u+ge)),b.includes("left")){const Qe=y-le;Qe<ue?(ia=ue,Ha=x+(y-ue)):(ia=Qe,Ha=x+le)}if(b.includes("top")){const Qe=u-ge;Qe<Ne?(ka=Ne,ee=S+(u-Ne)):(ka=Qe,ee=S+ge)}M.style.width=`${ia}px`,M.style.height=`${ka}px`,B(M,Ha,ee)},L=()=>{c=!1,b="",M=null,document.removeEventListener("mousemove",C),document.removeEventListener("mouseup",L)},T=a.ref([]),k=a.ref(!1);a.watch(()=>n.images,async D=>{if(!Array.isArray(D)||D.length===0){T.value=[];return}k.value=!0;const le=[];for(const ge of D)if(ge.url&&!ge.url.startsWith("blob:")&&!ge.url.startsWith("http"))try{const ue=await $a.downloadFile(ge.url),Ne=URL.createObjectURL(ue);le.push({...ge,blobUrl:Ne})}catch(ue){console.error(`Failed to load image for preview: ${ge.url}`,ue),le.push({...ge,blobUrl:""})}else le.push({...ge,blobUrl:ge.url});T.value=le,k.value=!1},{deep:!0,immediate:!0});const g=a.ref(0),j=a.ref(null),W=a.ref(null),J=a.computed(()=>T.value[g.value]||null),ke=()=>{if(!T.value.length){g.value=0;return}if(n.defaultImageName){const D=T.value.findIndex(le=>(le==null?void 0:le.name)===n.defaultImageName);g.value=D>=0?D:0}else g.value=0},ze=D=>{if(!T.value.length)return;const le=Math.max(0,Math.min(D,T.value.length-1));g.value=le},De=()=>ze(g.value-1),ne=()=>ze(g.value+1),xe=D=>{if(!D)return;const le=T.value.findIndex(ge=>(ge==null?void 0:ge.name)===D);le>=0&&(g.value=le)},X=()=>{if(!W.value)return;const D=W.value.parentElement;if(!D)return;const le=D.getBoundingClientRect();W.value.width=le.width,W.value.height=le.height},pe=()=>{var ue,Ne;if(!W.value||!j.value||!n.focusedFieldName){W.value&&mt(W.value);return}const D=(ue=j.value.$el)==null?void 0:ue.querySelector("img");if(!D)return;if(!D.complete||D.naturalWidth===0){D.onload=()=>{a.nextTick(()=>{pe()})};return}const le=((Ne=J.value)==null?void 0:Ne.name)||"",ge=Xi(n.fieldMeta,n.focusedFieldName);if(!ge){mt(W.value);return}if(ge.imageName!==le){mt(W.value);return}X(),Su(W.value,D,ge.bboxNorm)},Ke=()=>{a.nextTick(()=>{X(),pe()})};a.watch(()=>n.focusedFieldName,()=>{if(!s.value)return;const D=Xi(n.fieldMeta,n.focusedFieldName);D!=null&&D.imageName&&xe(D.imageName),a.nextTick(()=>{pe()})}),a.watch(()=>{var D;return(D=J.value)==null?void 0:D.name},()=>{s.value&&a.nextTick(()=>{W.value&&mt(W.value),pe()})}),a.watch(()=>n.visible,D=>{D?(ke(),a.nextTick(()=>{X(),pe()})):W.value&&mt(W.value)}),a.watch(()=>n.defaultImageName,()=>{s.value&&ke()});let Da=null;a.onMounted(()=>{var D;typeof ResizeObserver<"u"&&(Da=new ResizeObserver(()=>{X(),a.nextTick(()=>{pe()})}),(D=W.value)!=null&&D.parentElement&&Da.observe(W.value.parentElement))}),a.onUnmounted(()=>{Da&&(Da.disconnect(),Da=null),document.removeEventListener("mousemove",C),document.removeEventListener("mouseup",L)});const te=()=>{W.value&&mt(W.value),t("update:visible",!1),t("close")};return(D,le)=>{var ka,Ha;const ge=a.resolveComponent("el-button"),ue=a.resolveComponent("el-image"),Ne=a.resolveComponent("Loading"),ia=a.resolveComponent("el-icon");return s.value?(a.openBlock(),a.createElementBlock("div",Du,[le[12]||(le[12]=a.createElementVNode("div",{class:"ocr-img-preview-backdrop"},null,-1)),a.createElementVNode("div",Bu,[a.createElementVNode("div",{class:"ocr-img-preview-header",onMousedown:a.withModifiers(A,["stop"])},[le[8]||(le[8]=a.createElementVNode("span",{class:"ocr-img-preview-title"},"文件预览",-1)),a.createElementVNode("button",{type:"button",class:"ocr-img-preview-close",onClick:te},"×")],32),a.createElementVNode("div",{class:"resizable-handle top",onMousedown:le[0]||(le[0]=a.withModifiers(ee=>R(ee,"top"),["stop"]))},null,32),a.createElementVNode("div",{class:"resizable-handle right",onMousedown:le[1]||(le[1]=a.withModifiers(ee=>R(ee,"right"),["stop"]))},null,32),a.createElementVNode("div",{class:"resizable-handle bottom",onMousedown:le[2]||(le[2]=a.withModifiers(ee=>R(ee,"bottom"),["stop"]))},null,32),a.createElementVNode("div",{class:"resizable-handle left",onMousedown:le[3]||(le[3]=a.withModifiers(ee=>R(ee,"left"),["stop"]))},null,32),a.createElementVNode("div",{class:"resizable-handle top-left",onMousedown:le[4]||(le[4]=a.withModifiers(ee=>R(ee,"top-left"),["stop"]))},null,32),a.createElementVNode("div",{class:"resizable-handle top-right",onMousedown:le[5]||(le[5]=a.withModifiers(ee=>R(ee,"top-right"),["stop"]))},null,32),a.createElementVNode("div",{class:"resizable-handle bottom-left",onMousedown:le[6]||(le[6]=a.withModifiers(ee=>R(ee,"bottom-left"),["stop"]))},null,32),a.createElementVNode("div",{class:"resizable-handle bottom-right",onMousedown:le[7]||(le[7]=a.withModifiers(ee=>R(ee,"bottom-right"),["stop"]))},null,32),J.value?(a.openBlock(),a.createElementBlock("div",Nu,[a.createElementVNode("div",Tu,[a.createElementVNode("div",Au,[a.createElementVNode("span",zu,a.toDisplayString(J.value.name?J.value.name+(J.value.url&&J.value.url.lastIndexOf(".")!==-1?J.value.url.substring(J.value.url.lastIndexOf(".")):""):""),1)]),T.value.length>1?(a.openBlock(),a.createElementBlock("div",Mu,[a.createVNode(ge,{size:"small",disabled:g.value===0,onClick:De},{default:a.withCtx(()=>le[9]||(le[9]=[a.createTextVNode("上一张")])),_:1,__:[9]},8,["disabled"]),a.createElementVNode("span",Ou,a.toDisplayString(g.value+1)+" / "+a.toDisplayString(T.value.length),1),a.createVNode(ge,{size:"small",disabled:g.value===T.value.length-1,onClick:ne},{default:a.withCtx(()=>le[10]||(le[10]=[a.createTextVNode("下一张")])),_:1,__:[10]},8,["disabled"])])):a.createCommentVNode("",!0)]),T.value.length>1?(a.openBlock(),a.createElementBlock("div",Iu,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(T.value,(ee,Qe)=>(a.openBlock(),a.createElementBlock("div",{key:(ee.name||"")+"-"+Qe,class:a.normalizeClass(["img-thumb-item",{active:Qe===g.value}]),onClick:Pe=>ze(Qe)},[ee!=null&&ee.blobUrl?(a.openBlock(),a.createBlock(ue,{key:0,src:ee.blobUrl,fit:"cover",class:"thumb-image","preview-src-list":[ee.blobUrl],"initial-index":0},null,8,["src","preview-src-list"])):(a.openBlock(),a.createElementBlock("div",Vu,"加载失败")),a.createElementVNode("div",$u,a.toDisplayString(ee.name||"-"),1)],10,Lu))),128))])):a.createCommentVNode("",!0),a.createElementVNode("div",Ru,[k.value?(a.openBlock(),a.createElementBlock("div",Pu,[a.createVNode(ia,{class:"is-loading"},{default:a.withCtx(()=>[a.createVNode(Ne)]),_:1}),le[11]||(le[11]=a.createElementVNode("span",null,"图片加载中...",-1))])):(ka=J.value)!=null&&ka.blobUrl?(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createVNode(ue,{ref_key:"imageRef",ref:j,src:J.value.blobUrl,fit:"contain",class:"preview-image","preview-src-list":[J.value.blobUrl],onLoad:Ke},null,8,["src","preview-src-list"]),a.createElementVNode("canvas",{ref_key:"canvasRef",ref:W,class:"highlight-canvas"},null,512)],64)):(a.openBlock(),a.createElementBlock("div",Fu,[(Ha=J.value)!=null&&Ha.url?(a.openBlock(),a.createElementBlock("span",ju,"图片加载失败")):(a.openBlock(),a.createElementBlock("span",Hu,"暂无图片"))]))])])):(a.openBlock(),a.createElementBlock("div",Uu,"暂无图片"))])])):a.createCommentVNode("",!0)}}}),Wu=Ul._export_sfc(qu,[["__scopeId","data-v-48a4ecb1"]]),Ku={class:"cert-preview-body"},Yu={key:0,class:"pdf-preview-container"},Gu={class:"thumbs"},Ju=["onClick"],Xu={class:"thumb-img"},Zu=["src"],Qu={key:1,class:"thumb-loading"},ed={class:"thumb-title"},ad={class:"viewer"},ld={key:0,class:"viewer-img-wrap"},rd=["src"],nd={key:1,class:"viewer-loading"},td=a.defineComponent({__name:"CertificatePreview",props:{visible:{type:Boolean},versions:{}},emits:["update:visible"],setup(l,{emit:r}){const n=l,t=r,s=a.ref(""),c=a.ref(""),b=a.computed(()=>(n.versions||[]).find(_=>String(_.versionId)===String(s.value))),h=a.ref({}),v=a.ref(""),y=a.ref("证书附件.pdf"),u=()=>{try{Object.values(h.value||{}).forEach(_=>{_&&URL.revokeObjectURL(_)}),v.value&&URL.revokeObjectURL(v.value)}catch{}h.value={},v.value=""},x=async _=>{if(!_||_.fileType==="pdf")return;const U=Array.isArray(_.images)?_.images:[];for(const B of U){const A=B==null?void 0:B.url;if(!(!A||h.value[A]))try{const R=await I.platformDownloadFile({url:A}),C=URL.createObjectURL(R.data);h.value={...h.value,[A]:C}}catch{}}},S=async _=>{var B;if(!_||_.fileType!=="pdf"){v.value="";return}const U=_.sourceUrl||"";if(!U){v.value="";return}if(v.value){try{URL.revokeObjectURL(v.value)}catch{}v.value=""}try{console.log("[CertificatePreview] 下载PDF附件:",{url:U,versionId:_==null?void 0:_.versionId,certNo:_==null?void 0:_.certNo});const A=await I.platformDownloadFile({url:U});console.log("[CertificatePreview] PDF响应:",{url:U,status:A==null?void 0:A.status,size:(B=A==null?void 0:A.data)==null?void 0:B.size});const R=URL.createObjectURL(A.data);v.value=R;const C=_.certNo?String(_.certNo):"";y.value=C?`${C}.pdf`:"证书附件.pdf"}catch(A){console.error("[CertificatePreview] PDF加载失败:",{url:U,error:A}),v.value=""}};a.watch(()=>n.visible,async _=>{var B;if(!_){u();return}const U=(B=n.versions)==null?void 0:B[0];s.value=(U==null?void 0:U.versionId)||"",await x(U),await S(U)},{immediate:!0}),a.watch(()=>s.value,async()=>{var U,B;const _=b.value;if(!_){c.value="",v.value="";return}if(_.fileType==="pdf"){c.value="",await S(_);return}v.value="",c.value=((B=(U=_.images)==null?void 0:U[0])==null?void 0:B.url)||"",await x(_)},{immediate:!0});const M=()=>{t("update:visible",!1),u()};return a.onBeforeUnmount(()=>{u()}),(_,U)=>{const B=a.resolveComponent("el-empty"),A=a.resolveComponent("el-tab-pane"),R=a.resolveComponent("el-tabs"),C=a.resolveComponent("el-button"),L=a.resolveComponent("el-dialog");return a.openBlock(),a.createBlock(L,{"model-value":_.visible,title:"证书附件预览",width:"1100px","close-on-click-modal":!1,onClose:M},{footer:a.withCtx(()=>[a.createVNode(C,{id:"themeBorderButton",onClick:M},{default:a.withCtx(()=>U[1]||(U[1]=[a.createTextVNode("关闭")])),_:1,__:[1]})]),default:a.withCtx(()=>[_.versions&&_.versions.length>0?(a.openBlock(),a.createBlock(R,{key:0,modelValue:s.value,"onUpdate:modelValue":U[0]||(U[0]=T=>s.value=T),type:"card",class:"cert-version-tabs"},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(_.versions,T=>(a.openBlock(),a.createBlock(A,{key:T.versionId,name:T.versionId,label:T.label},{default:a.withCtx(()=>[a.createElementVNode("div",Ku,[T.fileType==="pdf"?(a.openBlock(),a.createElementBlock("div",Yu,[v.value?(a.openBlock(),a.createBlock(fl.SsFilePreview,{key:1,fileName:y.value,blobUrl:v.value},null,8,["fileName","blobUrl"])):(a.openBlock(),a.createBlock(B,{key:0,description:"加载中"}))])):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createElementVNode("div",Gu,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(T.images||[],k=>(a.openBlock(),a.createElementBlock("div",{key:k.url,class:a.normalizeClass(["thumb",{active:k.url===c.value}]),onClick:g=>c.value=k.url},[a.createElementVNode("div",Xu,[h.value[k.url]?(a.openBlock(),a.createElementBlock("img",{key:0,src:h.value[k.url]},null,8,Zu)):(a.openBlock(),a.createElementBlock("div",Qu,"加载中"))]),a.createElementVNode("div",ed,a.toDisplayString(k.name),1)],10,Ju))),128))]),a.createElementVNode("div",ad,[c.value?(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[h.value[c.value]?(a.openBlock(),a.createElementBlock("div",ld,[a.createElementVNode("img",{class:"viewer-img",src:h.value[c.value]},null,8,rd)])):(a.openBlock(),a.createElementBlock("div",nd,"加载中"))],64)):(a.openBlock(),a.createBlock(B,{key:0,description:"暂无图片"}))])],64))])]),_:2},1032,["name","label"]))),128))]),_:1},8,["modelValue"])):(a.openBlock(),a.createBlock(B,{key:1,description:"暂无可预览的证书附件"}))]),_:1},8,["model-value"])}}}),od=Ul._export_sfc(td,[["__scopeId","data-v-220703c0"]]),id={class:"ocr-candidate-wrap"},sd={class:"ocr-candidate-left"},cd={key:1},ud={key:0},dd={key:1},pd={key:2},fd={key:3},hd={key:0,class:"ocr-candidate-right"},vd={class:"ocr-candidate-actions"},md={key:1},yd={class:"dialog-footer"},gd={__name:"OCRCandidateDialog",props:{visible:{type:Boolean,default:!1},candidates:{type:Array,default:()=>[]},columns:{type:Array,default:()=>[]},nameProp:{type:String,default:""},mfrProp:{type:String,default:""}},emits:["update:visible","submit","preview-file"],setup(l,{emit:r}){const n=(g=[])=>{const j=[],W=J=>{(J||[]).forEach(ke=>{if(!ke)return;const ze=ke.children||ke.childrens||ke.columns;Array.isArray(ze)&&ze.length>0?W(ze):j.push(ke)})};return W(g),j},t=l,s=r,c=a.computed(()=>{var g;return((g=S.value)==null?void 0:g.allowAdd)!==!1}),b=a.computed(()=>{var g;return((g=S.value)==null?void 0:g.allowReplace)!==!1}),h=g=>{if(!g)return[];if(Array.isArray(g))return g;if(typeof g=="string")try{const j=JSON.parse(g);return Array.isArray(j)?j:[]}catch{return[]}return[]},v=g=>{s("preview-file",g)},y=a.ref([]),u=a.ref(0),x=a.ref("");a.watch(()=>t.candidates,g=>{var j,W;y.value=(g||[]).map(J=>({...J,...(J==null?void 0:J.ocrRow)||{},selectedTargetId:(J==null?void 0:J.selectedTargetId)||"",__decision:J==null?void 0:J.__decision})),u.value=0,x.value=((W=(j=y.value)==null?void 0:j[0])==null?void 0:W.selectedTargetId)||""},{immediate:!0,deep:!0}),a.watch(()=>t.visible,g=>{var j,W;g&&(u.value=0,x.value=((W=(j=y.value)==null?void 0:j[0])==null?void 0:W.selectedTargetId)||"")});const S=a.computed(()=>{var j;const g=Number(u.value||0);return((j=y.value||[])==null?void 0:j[g])||null}),M=a.computed(()=>(n(t.columns||[])||[]).filter(W=>W&&W.prop).filter(W=>W.type!=="operate"&&W.label!=="操作"&&W.prop!=="operate")),_=a.computed(()=>M.value.filter(g=>g.label!=="证书附件"&&g.prop!=="证书附件")),U=g=>{if(!g)return;const j=(y.value||[]).findIndex(W=>(W==null?void 0:W.idx)===(g==null?void 0:g.idx));j>-1&&(u.value=j,x.value=(g==null?void 0:g.selectedTargetId)||"")},B=g=>{if(!g){x.value="";return}x.value=String((g==null?void 0:g.id)??"")},A=(g,j="")=>{const W=Number(u.value||0),J=y.value||[],ke=J[W];ke&&(ke.__decision=g,ke.selectedTargetId=j,x.value=j,y.value=[...J])},R=()=>A("skip",""),C=()=>A("add",""),L=()=>{if(!x.value){rl.ElMessage.warning("请先选择要替换的目标记录");return}A("replace",x.value)},T=()=>{s("update:visible",!1)},k=()=>{const g=y.value||[];if(g.find(W=>(W==null?void 0:W.__decision)==="replace"&&!(W!=null&&W.selectedTargetId))){rl.ElMessage.warning("存在“替换”但未选择目标记录的条目,请处理后再提交");return}s("submit",g),s("update:visible",!1)};return(g,j)=>{const W=a.resolveComponent("el-table-column"),J=a.resolveComponent("svg-icon"),ke=a.resolveComponent("el-table"),ze=a.resolveComponent("el-button"),De=a.resolveComponent("el-alert");return a.openBlock(),a.createBlock(vr.ssDialog,{title:"OCR候选匹配",visible:l.visible,"close-on-click-modal":!1,width:"90%",style:{maxWidth:"1200px"},onBeforeDestroy:T},{default:a.withCtx(()=>{var ne,xe;return[a.createElementVNode("div",id,[a.createElementVNode("div",sd,[j[0]||(j[0]=a.createElementVNode("div",{class:"ocr-candidate-title"},"待处理OCR行(可跳过)",-1)),a.createVNode(ke,{data:y.value,border:"",stripe:"","max-height":"300",style:{width:"100%"},"highlight-current-row":"",onCurrentChange:U},{default:a.withCtx(()=>[a.createVNode(W,{type:"index",label:"序号",width:"60"}),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(_.value,X=>(a.openBlock(),a.createBlock(W,{key:X.prop,label:X.label,prop:X.prop,"min-width":X.minWidth||160},{default:a.withCtx(({row:pe})=>[X.label==="证书附件"||X.prop==="证书附件"?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[h(pe==null?void 0:pe[X.prop]).length>0?(a.openBlock(),a.createBlock(J,{key:0,name:"query",style:{width:"20px",height:"20px",color:"var(--ssComponent-theme-color)",cursor:"pointer"},onClick:a.withModifiers(Ke=>v({row:pe,prop:X.prop}),["stop"]),title:"浏览"},null,8,["onClick"])):(a.openBlock(),a.createElementBlock("span",cd,"-"))],64)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(a.toDisplayString((pe==null?void 0:pe[X.prop])??"-"),1)],64))]),_:2},1032,["label","prop","min-width"]))),128)),a.createVNode(W,{label:"候选数",width:"90",fixed:"right"},{default:a.withCtx(({row:X})=>[a.createTextVNode(a.toDisplayString(((X==null?void 0:X.candidates)||[]).length),1)]),_:1}),a.createVNode(W,{label:"处理状态",width:"120",fixed:"right"},{default:a.withCtx(({row:X})=>[(X==null?void 0:X.__decision)==="replace"?(a.openBlock(),a.createElementBlock("span",ud,"替换")):(X==null?void 0:X.__decision)==="add"?(a.openBlock(),a.createElementBlock("span",dd,"新增")):(X==null?void 0:X.__decision)==="skip"?(a.openBlock(),a.createElementBlock("span",pd,"跳过")):(a.openBlock(),a.createElementBlock("span",fd,"未处理"))]),_:1})]),_:1},8,["data"])]),y.value&&y.value.length>0?(a.openBlock(),a.createElementBlock("div",hd,[j[4]||(j[4]=a.createElementVNode("div",{class:"ocr-candidate-title"},"当前行候选记录(同编号)",-1)),a.createElementVNode("div",vd,[a.createVNode(ze,{id:"themeBorderButton",onClick:R},{default:a.withCtx(()=>j[1]||(j[1]=[a.createTextVNode("跳过本行")])),_:1,__:[1]}),a.createVNode(ze,{id:"themeBorderButton",onClick:C,disabled:!c.value},{default:a.withCtx(()=>j[2]||(j[2]=[a.createTextVNode("新增本行")])),_:1,__:[2]},8,["disabled"]),a.createVNode(ze,{class:"ok-button",id:"themeButton",onClick:L,disabled:!b.value||!x.value},{default:a.withCtx(()=>j[3]||(j[3]=[a.createTextVNode("替换选中记录")])),_:1,__:[3]},8,["disabled"])]),(((ne=S.value)==null?void 0:ne.candidates)||[]).length===0?(a.openBlock(),a.createBlock(De,{key:0,title:"该编号暂无候选记录,可选择“新增本行”或“跳过本行”。",type:"info",closable:!1,"show-icon":"",style:{margin:"8px 0"}})):a.createCommentVNode("",!0),a.createVNode(ke,{data:((xe=S.value)==null?void 0:xe.candidates)||[],border:"",stripe:"","max-height":"300",style:{width:"100%"},onCurrentChange:B,"highlight-current-row":""},{default:a.withCtx(()=>[a.createVNode(W,{type:"index",label:"序号",width:"60"}),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(M.value,X=>(a.openBlock(),a.createBlock(W,{key:X.prop,label:X.label,prop:X.prop,"min-width":X.minWidth||160},{default:a.withCtx(({row:pe})=>[X.label==="证书附件"||X.prop==="证书附件"?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[h(pe==null?void 0:pe[X.prop]).length>0?(a.openBlock(),a.createBlock(J,{key:0,name:"query",style:{width:"20px",height:"20px",color:"var(--ssComponent-theme-color)",cursor:"pointer"},onClick:a.withModifiers(Ke=>v({row:pe,prop:X.prop}),["stop"]),title:"浏览"},null,8,["onClick"])):(a.openBlock(),a.createElementBlock("span",md,"-"))],64)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(a.toDisplayString((pe==null?void 0:pe[X.prop])??"-"),1)],64))]),_:2},1032,["label","prop","min-width"]))),128))]),_:1},8,["data"])])):a.createCommentVNode("",!0)])]}),footer:a.withCtx(()=>[a.createElementVNode("div",yd,[a.createVNode(ze,{id:"themeBorderButton",onClick:T},{default:a.withCtx(()=>j[5]||(j[5]=[a.createTextVNode("取消")])),_:1,__:[5]}),a.createVNode(ze,{class:"ok-button",id:"themeButton",onClick:k},{default:a.withCtx(()=>j[6]||(j[6]=[a.createTextVNode("提交已处理")])),_:1,__:[6]})])]),_:1},8,["visible"])}}},bd=Ul._export_sfc(gd,[["__scopeId","data-v-89e0489c"]]),kd={class:"ocr-preview-content"},xd={class:"ocr-preview-tip"},_d={class:"ocr-preview-table"},wd={style:{display:"flex","align-items":"center",gap:"8px"}},Cd={class:"dialog-footer"},Ed={__name:"OCRResultPreviewDialog",props:{visible:{type:Boolean,default:!1},ocrPreviewData:{type:Array,default:()=>[]},ocrPreviewColumns:{type:Array,default:()=>[]},ocrSelectedFields:{type:Array,default:()=>[]}},emits:["update:visible","update:ocrPreviewData","update:ocrSelectedFields","confirm","fieldChange"],setup(l,{emit:r}){const n=l,t=r,s=a.ref([]),c=a.ref([]),b=a.ref([]);a.watch(()=>n.visible,M=>{M&&(s.value=JSON.parse(JSON.stringify(n.ocrPreviewData)),c.value=JSON.parse(JSON.stringify(n.ocrPreviewColumns)),b.value=[...n.ocrSelectedFields])});const h=(M,_)=>{const U=[...b.value];if(_)U.includes(M)||U.push(M);else{const B=U.indexOf(M);B>-1&&U.splice(B,1)}b.value=U,t("update:ocrSelectedFields",U)},v=(M,_,U)=>{t("fieldChange",{rowIndex:M,prop:_,value:U})},y=()=>{t("update:ocrPreviewData",s.value),t("confirm",s.value),t("update:visible",!1)},u=()=>{t("update:visible",!1)},x=M=>typeof M!="number"?"-":`${(M*100).toFixed(1)}%`,S=M=>typeof M!="number"?"#606266":M>=.9?"#67c23a":M>=.7?"#e6a23c":"#f56c6c";return(M,_)=>{const U=a.resolveComponent("el-alert"),B=a.resolveComponent("el-table-column"),A=a.resolveComponent("el-checkbox"),R=a.resolveComponent("el-input"),C=a.resolveComponent("el-table"),L=a.resolveComponent("el-button");return a.openBlock(),a.createBlock(vr.ssDialog,{title:"OCR识别结果预览",visible:l.visible,onBeforeDestroy:u,width:"90%",style:{maxWidth:"1200px"}},{default:a.withCtx(()=>[a.createElementVNode("div",kd,[a.createElementVNode("div",xd,[a.createVNode(U,{title:"请核对识别结果。系统将按 编号+名称+制造厂 规则匹配并替换;未唯一命中但有编号的,将进入候选选择;无编号则直接新增。",type:"info",closable:!1,"show-icon":""})]),a.createElementVNode("div",_d,[a.createVNode(C,{data:s.value,border:"",stripe:"","max-height":"400",style:{width:"100%"}},{default:a.withCtx(()=>[a.createVNode(B,{type:"index",label:"序号",width:"60",fixed:""}),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(c.value,T=>(a.openBlock(),a.createBlock(B,{key:T.prop,prop:T.prop,"min-width":T.minWidth||230,"class-name":T.isAccuracy?"accuracy-column":""},{header:a.withCtx(()=>[a.createElementVNode("div",wd,[T.isAccuracy?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(A,{key:0,"model-value":b.value.includes(T.prop),onChange:k=>h(T.prop,k),onClick:_[0]||(_[0]=a.withModifiers(()=>{},["stop"]))},null,8,["model-value","onChange"])),a.createElementVNode("span",null,a.toDisplayString(T.label),1)])]),default:a.withCtx(({row:k,$index:g})=>[T.isAccuracy?(a.openBlock(),a.createElementBlock("span",{key:0,class:"accuracy-value",style:a.normalizeStyle({color:S(k[T.prop]),fontWeight:500})},a.toDisplayString(x(k[T.prop])),5)):(a.openBlock(),a.createBlock(R,{key:1,modelValue:k[T.prop],"onUpdate:modelValue":j=>k[T.prop]=j,size:"small",placeholder:"请输入"+T.label,onChange:j=>v(g,T.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",Cd,[a.createVNode(L,{onClick:u,id:"themeBorderButton"},{default:a.withCtx(()=>_[1]||(_[1]=[a.createTextVNode("取消")])),_:1,__:[1]}),a.createVNode(L,{class:"ok-button",onClick:y,id:"themeButton"},{default:a.withCtx(()=>_[2]||(_[2]=[a.createTextVNode("确认")])),_:1,__:[2]})])]),_:1},8,["visible"])}}},Sd=Ul._export_sfc(Ed,[["__scopeId","data-v-df66eb1f"]]),kt=l=>{var t;let r=l;(r==null?void 0:r[0])==="("&&(r=r==null?void 0:r.slice(1,(r==null?void 0:r.length)-1));let n=(t=$a.analyzeSplitToContent(r,","))==null?void 0:t.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 n=n==null?void 0:n.join(","),n};let Ma="$R",ko="[Any]";const Dd=l=>{var b,h;let r={},n=l==null?void 0:l[0],t=(h=(b=n==null?void 0:n.replace("{",Ma))==null?void 0:b.split(Ma))==null?void 0:h[0];(t==null?void 0:t[0])==="*"&&(t=t==null?void 0:t.slice(1,t==null?void 0:t.length)),t=t==null?void 0:t.split(":"),r.group=t;let s=l==null?void 0:l[1],c=s==null?void 0:s.replaceAll(ko,"");return(c==null?void 0:c[0])==="$"&&(c=c==null?void 0:c.slice(1,c==null?void 0:c.length)),r.filter=c,r},Bd=l=>{var u,x,S,M,_,U,B;let r=[],n=[],t=l==null?void 0:l.map(A=>{var C;let R=(C=$a.analyzeSplitToContent(A,"@"))==null?void 0:C[0];return(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}),s="",c=$a.analyzeSplitToContent(t==null?void 0:t[0],":");n=(u=c==null?void 0:c.filter(A=>!(A!=null&&A.includes("{"))&&!(A!=null&&A.includes("["))))==null?void 0:u.join(""),(n==null?void 0:n[(n==null?void 0:n.length)-1])===":"&&(n=n==null?void 0:n.slice(0,(n==null?void 0:n.length)-1)),(n==null?void 0:n[0])==="*"&&(n=n==null?void 0:n.slice(1,n==null?void 0:n.length)),n=n==null?void 0:n.split(":");let b=c==null?void 0:c.filter(A=>(A==null?void 0:A.includes("{"))||(A==null?void 0:A.includes("["))),h=(S=b==null?void 0:b[0])==null?void 0:S.slice(1,((x=b==null?void 0:b[0])==null?void 0:x.length)-1);h=(M=$a.analyzeSplitToContent(h,","))==null?void 0:M.map(A=>((A==null?void 0:A[(A==null?void 0:A.length)-1])===","&&(A=A==null?void 0:A.slice(0,(A==null?void 0:A.length)-1)),A));let v="@"+((_=$a.analyzeSplitToContent(l==null?void 0:l[0],"@"))==null?void 0:_[1]);((U=$a.analyzeSplitToContent(v,":"))==null?void 0:U.length)>1&&(r=wt((B=$a.analyzeSplitToContent(v,":"))==null?void 0:B[1]),r=[r]);let y=[];return h==null||h.forEach((A,R)=>{var ze,De,ne,xe,X,pe,Ke,Da,te,D,le,ge,ue,Ne,ia,ka,Ha,ee,Qe,Pe,ga,He,Ae,$e,Ge,Wa,Ia,P,F,G,ie,ce,pa,aa,Ie,Ce,wa,me,Je,Ze,Fe,ba,Le,da,re,Se,K;let C=(ze=A==null?void 0:A.split("=="))==null?void 0:ze[0],L=(De=A==null?void 0:A.split("=="))==null?void 0:De[1],T=[],k=[],g=[],j=[],W="Input",J=[],ke=[];if((A==null?void 0:A[0])!=="{"){if((L==null?void 0:L[0])==="$")L=L==null?void 0:L.slice(1,L==null?void 0:L.length),T=(xe=(ne=L==null?void 0:L.split("*"))==null?void 0:ne[0])==null?void 0:xe.split(":"),k=(D=(te=(Da=(Ke=(pe=(X=L==null?void 0:L.split("*"))==null?void 0:X[1])==null?void 0:pe.replace("{",Ma))==null?void 0:Ke.split(Ma))==null?void 0:Da[0])==null?void 0:te.split(":"))==null?void 0:D.filter(je=>je!==""),g=(ge=(le=L==null?void 0:L.replace("{",Ma))==null?void 0:le.split(Ma))==null?void 0:ge[1],g=g==null?void 0:g.replaceAll("}",""),g=g==null?void 0:g.split(":"),W="Select";else if(((ue=$a.analyzeSplitToContent(A,"="))==null?void 0:ue.length)>1){let je=(Ne=C==null?void 0:C.split("="))==null?void 0:Ne[1];if(C=(ia=C==null?void 0:C.split("="))==null?void 0:ia[0],W="Select",!(A!=null&&A.includes("||")))je=(ka=je==null?void 0:je.split("/"))==null?void 0:ka.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)),j=je==null?void 0:je.map(Be=>({label:Be==null?void 0:Be.replaceAll("'",""),value:Be==null?void 0:Be.replaceAll("'","")}));else{let Be=[];(Pe=(Qe=(ee=(Ha=A==null?void 0:A.replace("=",Ma))==null?void 0:Ha.split(Ma))==null?void 0:ee[1])==null?void 0:Qe.split("||"))==null||Pe.forEach(za=>{var Sa,Ye,ca;J.push((Ye=(Sa=za==null?void 0:za.split("@Filter"))==null?void 0:Sa[0])==null?void 0:Ye.split("/")),Be.push((ca=za==null?void 0:za.split("@Filter"))==null?void 0:ca[1])}),ke=Be==null?void 0:Be.map(za=>(za=za==null?void 0:za.slice(1,(za==null?void 0:za.length)-1),za))}}else if(A!=null&&A.includes("@")&&!(A!=null&&A.includes("||"))){C=(Ge=($e=(Ae=(He=(ga=C==null?void 0:C.replace("(@",Ma))==null?void 0:ga.split(Ma))==null?void 0:He[0])==null?void 0:Ae.replace("@",Ma))==null?void 0:$e.split(Ma))==null?void 0:Ge[0];let je=A!=null&&A.includes("(@")?"(@"+((Ia=(Wa=A==null?void 0:A.replace("(@",Ma))==null?void 0:Wa.split(Ma))==null?void 0:Ia[1]):"@"+((F=(P=A==null?void 0:A.replace("@",Ma))==null?void 0:P.split(Ma))==null?void 0:F[1]);if(je=(G=kt(je))==null?void 0:G.split(","),je!=null&&je.find(Be=>Be==null?void 0:Be.includes("@Type"))){let Be=(ie=je==null?void 0:je.find(za=>za==null?void 0:za.includes("@Type")))==null?void 0:ie.split("=");Be!=null&&Be.includes("File")&&(W="Upload"),Be!=null&&Be.includes("Date")&&(W="Date"),Be!=null&&Be.includes("DateTime")&&(W="DateTime"),Be!=null&&Be.includes("Time")&&(W="Time")}}y.push({prop:C,label:C,value:"",menuPath:T,groups:k,columns:g,width:h==null?void 0:h.length,options:j,type:W,allContents:J,filterContents:ke})}else{s=s+"@"+((ce=$a.analyzeSplitToContent(A,"@"))==null?void 0:ce[1]);let je=(pa=$a.analyzeSplitToContent(A,"@"))==null?void 0:pa[0];(je==null?void 0:je[(je==null?void 0:je.length)-1])==="@"&&(je=je==null?void 0:je.slice(0,(je==null?void 0:je.length)-1));let Be=(aa=je==null?void 0:je.split("=="))==null?void 0:aa[0],za=(Ie=je==null?void 0:je.split("=="))==null?void 0:Ie[1],Sa=(wa=(Ce=za==null?void 0:za.split("*"))==null?void 0:Ce[0])==null?void 0:wa.replace(ko,"");(Sa==null?void 0:Sa[0])==="$"&&(Sa=Sa==null?void 0:Sa.slice(1,Sa==null?void 0:Sa.length)),Sa=$a.analyzeSplitToContent(Sa,"$"),Sa=(me=Sa==null?void 0:Sa.map((Ye,ca)=>{var _e;return ca===0&&(Sa==null?void 0:Sa.length)>1&&(Ye=(_e=Ye==null?void 0:Ye.split(":"))==null?void 0:_e[0]),(Sa==null?void 0:Sa.length)>1&&ca===(Sa==null?void 0:Sa.length)-1&&(Ye=Ye+":"),Ye}))==null?void 0:me.join(":"),T=Sa==null?void 0:Sa.split(":"),k=(da=(Le=(ba=(Fe=(Ze=(Je=za==null?void 0:za.split("*"))==null?void 0:Je[1])==null?void 0:Ze.replace("{",Ma))==null?void 0:Fe.split(Ma))==null?void 0:ba[0])==null?void 0:Le.split(":"))==null?void 0:da.filter(Ye=>Ye!==""),g=(Se=(re=za==null?void 0:za.replace("{",Ma))==null?void 0:re.split(Ma))==null?void 0:Se[1],g=g==null?void 0:g.replaceAll("}",""),Be=Be==null?void 0:Be.slice(1,(Be==null?void 0:Be.length)-1),g=g==null?void 0:g.split(","),W="Select",(K=Be==null?void 0:Be.split(","))==null||K.forEach((Ye,ca)=>{var _e,Q;y.push({prop:Ye,label:Ye,value:"",menuPath:T,groups:k,columns:(_e=g==null?void 0:g[ca])==null?void 0:_e.split(":"),width:(Q=Be==null?void 0:Be.split(","))==null?void 0:Q.length,type:W})})}}),{groupName:n,formContents:y,contents:r,filter:s}},wt=l=>{var t,s;let r=[],n=l.slice(1,(l==null?void 0:l.length)-1);if((n==null?void 0:n[0])!=="[")(t=$a.analyzeSplitToContent(n,","))==null||t.forEach(c=>{(c==null?void 0:c[(c==null?void 0:c.length)-1])===","&&(c=c.slice(0,(c==null?void 0:c.length)-1)),r.push(c??"")});else{let c=[];(s=$a.analyzeSplitToContent(n,","))==null||s.forEach(b=>{(b==null?void 0:b[(b==null?void 0:b.length)-1])===","&&(b=b==null?void 0:b.slice(0,(b==null?void 0:b.length)-1)),c.push(wt(b))}),r=c}return r},ii=(l,r)=>{var B,A,R,C,L,T,k,g,j,W,J,ke,ze,De,ne,xe,X,pe,Ke,Da,te,D,le,ge,ue,Ne,ia,ka,Ha,ee,Qe,Pe,ga,He,Ae,$e,Ge,Wa,Ia,P,F,G,ie,ce,pa,aa,Ie,Ce,wa,me,Je,Ze,Fe,ba,Le,da,re,Se,K,je,Be,za,Sa,Ye,ca;let n,t=[],s=[],c=[],b=[],h=[],v=[],y=[],u="Input",x,S="",M="",_=[],U="";if(l!=null&&l.includes("@Pam")||l!=null&&l.includes("==")||l!=null&&l.includes("="))if(l!=null&&l.includes("@Pam")){let _e=$a.analyzeSplitToContent(l,"=");if((_e==null?void 0:_e.length)>1){l=_e==null?void 0:_e[0],l=l==null?void 0:l.slice(0,(l==null?void 0:l.length)-1);let We=_e==null?void 0:_e[(_e==null?void 0:_e.length)-1];(We==null?void 0:We[0])==="&"&&(We=We==null?void 0:We.slice(1,We==null?void 0:We.length)),M=(A=(B=We==null?void 0:We.replace("(",Ma))==null?void 0:B.split(Ma))==null?void 0:A[0];let La=(C=(R=We==null?void 0:We.replace(")",Ma))==null?void 0:R.split(Ma))==null?void 0:C[0];La=(T=(L=La==null?void 0:La.replace("(",Ma))==null?void 0:L.split(Ma))==null?void 0:T[1],(La==null?void 0:La[0])==="{"&&(La=La==null?void 0:La.slice(1,La==null?void 0:La.length)),(La==null?void 0:La[(La==null?void 0:La.length)-1])==="}"&&(La=La==null?void 0:La.slice(0,(La==null?void 0:La.length)-1)),_=La==null?void 0:La.split(",");let yl=(g=(k=We==null?void 0:We.replace(")",Ma))==null?void 0:k.split(Ma))==null?void 0:g[1];yl&&yl!==""&&(U=kt(yl))}n=(W=(j=l==null?void 0:l.replace("@Pam",Ma))==null?void 0:j.split(Ma))==null?void 0:W[0];let Q=(ke=(J=l==null?void 0:l.replace("@Pam",Ma))==null?void 0:J.split(Ma))==null?void 0:ke[1];Q=Q==null?void 0:Q.slice(1,(Q==null?void 0:Q.length)-1),Q=(ze=$a.analyzeSplitToContent(Q,","))==null?void 0:ze.map(We=>(We="@"+We,We));let ya=Q==null?void 0:Q.find(We=>We==null?void 0:We.includes("@Type"));ya!=null&&ya.includes("File")&&(u="Upload"),ya!=null&&ya.includes("Date")&&(u="Date"),ya!=null&&ya.includes("DateTime")&&(u="DateTime"),ya!=null&&ya.includes("Time")&&(u="Time"),x=Q==null?void 0:Q.find(We=>We==null?void 0:We.includes("@IdentName")),x=x?(ne=(De=x==null?void 0:x.replace("=",Ma))==null?void 0:De.split(Ma))==null?void 0:ne[1]:n}else{if(n=(xe=l==null?void 0:l.split("=="))==null?void 0:xe[0],x=(X=l==null?void 0:l.split("=="))==null?void 0:X[0],l!=null&&l.includes("=")&&!(l!=null&&l.includes("=="))&&!((Da=(Ke=(pe=l==null?void 0:l.replace("=",Ma))==null?void 0:pe.split(Ma))==null?void 0:Ke[1])!=null&&Da.includes("||")))if(n=(te=l==null?void 0:l.split("="))==null?void 0:te[0],x=n,l!=null&&l.includes("(@")||l!=null&&l.includes("@")){if(l!=null&&l.includes("(@")){let Q=(D=l==null?void 0:l.split("(@"))==null?void 0:D[1];Q=Q==null?void 0:Q.slice(0,(Q==null?void 0:Q.length)-1),Q=(ge=(le=Q==null?void 0:Q.replace("(",Ma))==null?void 0:le.split(Ma))==null?void 0:ge[1],Q=Q==null?void 0:Q.slice(0,(Q==null?void 0:Q.length)-1),c==null||c.push(Q),l=(ue=l==null?void 0:l.split("(@"))==null?void 0:ue[0]}else{let Q=(Ne=l==null?void 0:l.split("@"))==null?void 0:Ne[1];Q=Q==null?void 0:Q.slice(0,(Q==null?void 0:Q.length)-1),Q=(ka=(ia=Q==null?void 0:Q.replace("(",Ma))==null?void 0:ia.split(Ma))==null?void 0:ka[1],Q=Q==null?void 0:Q.slice(0,(Q==null?void 0:Q.length)-1),c==null||c.push(Q),l=(Ha=l==null?void 0:l.split("@"))==null?void 0:Ha[0]}let _e=(Qe=(ee=l==null?void 0:l.split("="))==null?void 0:ee[1])==null?void 0:Qe.split("/");s.push(_e)}else t=(ga=$a.analyzeSplitToContent((Pe=l==null?void 0:l.split("="))==null?void 0:Pe[1],"/"))==null?void 0:ga.map(_e=>((_e==null?void 0:_e[(_e==null?void 0:_e.length)-1])==="/"&&(_e=_e==null?void 0:_e.slice(0,(_e==null?void 0:_e.length)-1)),_e)),t=t==null?void 0:t.map(_e=>({label:_e==null?void 0:_e.replaceAll("'",""),value:_e==null?void 0:_e.replaceAll("'","")}));else if(($e=(Ae=(He=l==null?void 0:l.replace("=",Ma))==null?void 0:He.split(Ma))==null?void 0:Ae[1])!=null&&$e.includes("||")){n=(Ge=l==null?void 0:l.split("="))==null?void 0:Ge[0],x=(Wa=l==null?void 0:l.split("="))==null?void 0:Wa[0];let _e=[];(G=(F=(P=(Ia=l==null?void 0:l.replace("=",Ma))==null?void 0:Ia.split(Ma))==null?void 0:P[1])==null?void 0:F.split("||"))==null||G.forEach(Q=>{var ya,We,La;s.push((We=(ya=Q==null?void 0:Q.split("@Filter"))==null?void 0:ya[0])==null?void 0:We.split("/")),_e.push((La=Q==null?void 0:Q.split("@Filter"))==null?void 0:La[1])}),c=_e==null?void 0:_e.map(Q=>(Q=Q==null?void 0:Q.slice(1,(Q==null?void 0:Q.length)-1),Q))}else{let _e=l==null?void 0:l.split("=="),Q=(ie=_e==null?void 0:_e.filter(ya=>(ya==null?void 0:ya[0])==="$"))==null?void 0:ie[0];if(Q&&!(Q!=null&&Q.includes("&"))){let ya=(ce=Q==null?void 0:Q.replace("*",Ma))==null?void 0:ce.split(Ma),We=(ya==null?void 0:ya[0])===""?r==null?void 0:r.value:ya==null?void 0:ya[0];We=We==null?void 0:We.replaceAll("[Any]",""),(We==null?void 0:We[0])==="$"&&(We=(pa=We==null?void 0:We.slice(1,We==null?void 0:We.length))==null?void 0:pa.replaceAll(":","/")),b=We==null?void 0:We.split("/");let La=(Ie=(aa=ya==null?void 0:ya[1])==null?void 0:aa.replace("{",Ma))==null?void 0:Ie.split(Ma),yl=La==null?void 0:La[0];(yl==null?void 0:yl[(yl==null?void 0:yl.length)-1])===":"&&(yl=yl==null?void 0:yl.slice(0,(yl==null?void 0:yl.length)-1)),h=yl==null?void 0:yl.split(":"),v=(Je=(me=(wa=(Ce=La==null?void 0:La[1])==null?void 0:Ce.replace("}",Ma))==null?void 0:wa.split(Ma))==null?void 0:me[0])==null?void 0:Je.split(":");let Aa=(ba=(Fe=(Ze=La==null?void 0:La[(La==null?void 0:La.length)-1])==null?void 0:Ze.replace("}",Ma))==null?void 0:Fe.split(Ma))==null?void 0:ba[1];Aa&&Aa!==""&&(S=kt(Aa))}if(_e!=null&&_e.some(ya=>(ya==null?void 0:ya[0])==="&")){let ya=(Le=_e==null?void 0:_e.filter(yl=>(yl==null?void 0:yl[0])==="&"))==null?void 0:Le[0];(ya==null?void 0:ya[0])==="&"&&(ya=ya==null?void 0:ya.slice(1,ya==null?void 0:ya.length)),M=(re=(da=ya==null?void 0:ya.replace("(",Ma))==null?void 0:da.split(Ma))==null?void 0:re[0];let We=(K=(Se=ya==null?void 0:ya.replace(")",Ma))==null?void 0:Se.split(Ma))==null?void 0:K[0];We=(Be=(je=We==null?void 0:We.replace("(",Ma))==null?void 0:je.split(Ma))==null?void 0:Be[1],(We==null?void 0:We[0])==="{"&&(We=We==null?void 0:We.slice(1,We==null?void 0:We.length)),(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==null?void 0:We.split(",");let La=(Sa=(za=ya==null?void 0:ya.replace(")",Ma))==null?void 0:za.split(Ma))==null?void 0:Sa[1];La&&La!==""&&(U=kt(La))}else if(!Q){let ya=_e==null?void 0:_e[(_e==null?void 0:_e.length)-1];ya=ya==null?void 0:ya.slice(1,(ya==null?void 0:ya.length)-1),ya=$a.analyzeSplitToContent(ya,","),ya=ya==null?void 0:ya.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)),ya=ya==null?void 0:ya.map(We=>{var La,yl;if(We=We==null?void 0:We.replaceAll("$",""),We!=null&&We.includes(ko)){let Aa="",el=We==null?void 0:We.split(ko);Aa=((yl=(La=el==null?void 0:el[0])==null?void 0:La.split(":"))==null?void 0:yl[0])+":"+(el==null?void 0:el[1]),We=Aa,We=We+":"}return We=We==null?void 0:We.replaceAll(":","/"),We}),y=ya}}u="Select"}else n=l,x=l;return n!=null&&n.includes("@Pam")&&(n=(ca=(Ye=l==null?void 0:l.replace("@Pam",Ma))==null?void 0:Ye.split(Ma))==null?void 0:ca[0],x=n),{label:n,prop:x,options:t,allContents:s,filterContents:c,menus:b,groups:h,words:v,align:"center",formType:u,filter:S,functionName:M,functionRelatedWords:_,calculatorFilter:U,relatedPages:y}},xo=(l,r)=>{var t,s,c,b,h,v,y,u,x,S,M,_,U,B,A,R,C,L,T,k,g,j,W,J,ke,ze,De,ne,xe;let n=[];if((l==null?void 0:l[0])==="{"&&(l==null?void 0:l[(l==null?void 0:l.length)-1])==="}"&&!((b=(c=(s=(t=l==null?void 0:l.slice(1,(l==null?void 0:l.length)-1))==null?void 0:t.replace(":",Ma))==null?void 0:s.split(Ma))==null?void 0:c[0])!=null&&b.includes(","))){let X=l==null?void 0:l.slice(1,(l==null?void 0:l.length)-1),pe=(h=X==null?void 0:X.replace(":",Ma))==null?void 0:h.split(Ma);if(((v=$a.analyzeSplitToContent(pe==null?void 0:pe[1],"="))==null?void 0:v.length)===1){let Ke=pe==null?void 0:pe[0],Da=[];(x=$a.analyzeSplitToContent((u=pe==null?void 0:pe[1])==null?void 0:u.slice(1,((y=pe==null?void 0:pe[1])==null?void 0:y.length)-1),","))==null||x.forEach(te=>{var D,le;((D=$a.analyzeSplitToContent(te,"="))==null?void 0:D.length)>1?((te==null?void 0:te[(te==null?void 0:te.length)-1])===","&&(te=te==null?void 0:te.slice(0,(te==null?void 0:te.length)-1)),Da=[...Da,...xo(te,r)]):((te==null?void 0:te[(te==null?void 0:te.length)-1])===","&&(te=te==null?void 0:te.slice(0,(te==null?void 0:te.length)-1)),Da.push((le=xo(te,r))==null?void 0:le[0]))}),n==null||n.push({label:Ke,prop:Ke,children:Da,align:"center"})}else{let Ke=[];if(((S=$a.analyzeSplitToContent(X,"="))==null?void 0:S.length)>=2){let te=(M=$a.analyzeSplitToContent(X,"="))==null?void 0:M[1],D=(_=$a.analyzeSplitToContent(te,"/"))==null?void 0:_.map(le=>((le==null?void 0:le[(le==null?void 0:le.length)-1])==="/"&&(le=le==null?void 0:le.slice(0,(le==null?void 0:le.length)-1)),le));Ke=D==null?void 0:D.map(le=>(le=wt(le),le))}let Da=(L=(C=(R=(A=(B=(U=X==null?void 0:X.replace("{",Ma))==null?void 0:U.split(Ma))==null?void 0:B[1])==null?void 0:A.replace("}",Ma))==null?void 0:R.split(Ma))==null?void 0:C[0])==null?void 0:L.split(",");Da==null||Da.forEach((te,D)=>{(Ke==null?void 0:Ke.length)>0&&D===0?n==null||n.push({label:te,prop:te,align:"center",formType:"Select",relatedContents:Ke==null?void 0:Ke.map(le=>{let ge={};return Da==null||Da.forEach((ue,Ne)=>{ge[ue]=le==null?void 0:le[Ne]}),ge}),options:Ke==null?void 0:Ke.map(le=>({label:le==null?void 0:le[0],value:le==null?void 0:le[0]})),mainKey:!0}):n==null||n.push({label:te,prop:te,align:"center"})})}}else if((l==null?void 0:l[0])==="{")if(((T=$a.analyzeSplitToContent(l,"="))==null?void 0:T.length)===2&&((g=(k=$a.analyzeSplitToContent(l,"="))==null?void 0:k[1])==null?void 0:g[0])==="["){let X=[];if(((j=$a.analyzeSplitToContent(l,"="))==null?void 0:j.length)>=2){let Ke=(W=$a.analyzeSplitToContent(l,"="))==null?void 0:W[1],Da=(J=$a.analyzeSplitToContent(Ke,"/"))==null?void 0:J.map(te=>((te==null?void 0:te[(te==null?void 0:te.length)-1])==="/"&&(te=te==null?void 0:te.slice(0,(te==null?void 0:te.length)-1)),te));X=Da==null?void 0:Da.map(te=>(te=wt(te),te))}let pe=(ze=(ke=l==null?void 0:l.replace("}",Ma))==null?void 0:ke.split(Ma))==null?void 0:ze[0];pe=(De=pe==null?void 0:pe.slice(1,pe==null?void 0:pe.length))==null?void 0:De.split(","),pe==null||pe.forEach((Ke,Da)=>{(X==null?void 0:X.length)>0&&Da===0?n==null||n.push({label:Ke,prop:Ke,align:"center",formType:"Select",relatedContents:X==null?void 0:X.map(te=>{let D={};return pe==null||pe.forEach((le,ge)=>{D[le]=te==null?void 0:te[ge]}),D}),options:X==null?void 0:X.map(te=>({label:te==null?void 0:te[0],value:te==null?void 0:te[0]})),mainKey:!0}):n==null||n.push({label:Ke,prop:Ke,align:"center"})})}else(ne=$a.analyzeSplitToContent(l,","))==null||ne.forEach(X=>{var pe,Ke,Da,te,D,le,ge,ue,Ne,ia,ka,Ha,ee,Qe,Pe,ga,He,Ae,$e,Ge,Wa,Ia,P,F,G,ie,ce,pa,aa,Ie,Ce,wa,me,Je,Ze,Fe,ba,Le,da,re,Se;if((X==null?void 0:X[(X==null?void 0:X.length)-1])===","&&(X=X==null?void 0:X.slice(0,(X==null?void 0:X.length)-1)),(X==null?void 0:X[0])==="{"){let K=$a.analyzeSplitToContent(X,"="),je=K==null?void 0:K[(K==null?void 0:K.length)-1],Be=[],za=[],Sa=[],Ye=[],ca=[],_e=(pe=je==null?void 0:je.replace("*",Ma))==null?void 0:pe.split(Ma),Q=(_e==null?void 0:_e[0])===""?r==null?void 0:r.value:_e==null?void 0:_e[0];if(Q=Q==null?void 0:Q.replaceAll("[Any]",""),(Q==null?void 0:Q[(Q==null?void 0:Q.length)-1])===":"&&(Q=Q!=null&&Q.includes("(@")?((Ke=Q==null?void 0:Q.split("(@"))==null?void 0:Ke[0])+":":((Da=Q==null?void 0:Q.split("@"))==null?void 0:Da[0])+":"),(Q==null?void 0:Q[0])==="$"&&(Q=(te=Q==null?void 0:Q.slice(1,Q==null?void 0:Q.length))==null?void 0:te.replaceAll(":","/")),Q!=null&&Q.includes("$")){let el=(D=Q==null?void 0:Q.split("$"))==null?void 0:D[0];el=(le=el==null?void 0:el.split("/"))==null?void 0:le[0],Q=el+"/"+((ge=Q==null?void 0:Q.split("$"))==null?void 0:ge[1])+"/"}(Q==null?void 0:Q[(Q==null?void 0:Q.length)-1])==="/"&&(Q==null?void 0:Q[(Q==null?void 0:Q.length)-2])==="/"&&(Q=Q==null?void 0:Q.slice(0,(Q==null?void 0:Q.length)-1)),Be=Q==null?void 0:Q.split("/");let ya=(Ne=(ue=_e==null?void 0:_e[1])==null?void 0:ue.replace("{",Ma))==null?void 0:Ne.split(Ma);if((Ha=(ka=(ia=_e==null?void 0:_e[1])==null?void 0:ia.split("(@"))==null?void 0:ka[0])!=null&&Ha.includes("&&")||(Pe=(Qe=(ee=_e==null?void 0:_e[1])==null?void 0:ee.split("@"))==null?void 0:Qe[0])!=null&&Pe.includes("&&")){let el=(ga=_e==null?void 0:_e[1])!=null&&ga.includes("(@")?($e=(Ae=(He=_e==null?void 0:_e[1])==null?void 0:He.split("(@"))==null?void 0:Ae[0])==null?void 0:$e.split("&&"):(Ia=(Wa=(Ge=_e==null?void 0:_e[1])==null?void 0:Ge.split("@"))==null?void 0:Wa[0])==null?void 0:Ia.split("&&");Ye=el==null?void 0:el.map(Pa=>{var Te,il;return(Pa==null?void 0:Pa[0])==="*"&&(Pa=Pa==null?void 0:Pa.slice(1,Pa==null?void 0:Pa.length)),Pa=(il=(Te=Pa==null?void 0:Pa.replace("{",Ma))==null?void 0:Te.split(Ma))==null?void 0:il[0],(Pa==null?void 0:Pa[(Pa==null?void 0:Pa.length)-1])===":"&&(Pa=Pa==null?void 0:Pa.slice(0,(Pa==null?void 0:Pa.length)-1)),Pa=Pa==null?void 0:Pa.split(":"),Pa});let Ja=[];el==null||el.forEach((Pa,Te)=>{var il,va;(Pa==null?void 0:Pa[0])==="*"&&(Pa=Pa==null?void 0:Pa.slice(1,Pa==null?void 0:Pa.length)),Pa=(va=(il=Pa==null?void 0:Pa.replace("{",Ma))==null?void 0:il.split(Ma))==null?void 0:va[1],(Pa==null?void 0:Pa[(Pa==null?void 0:Pa.length)-1])==="}"&&(Pa=Pa==null?void 0:Pa.slice(0,(Pa==null?void 0:Pa.length)-1)),Pa=Pa==null?void 0:Pa.split(","),Ja.push(Te===0?(Pa==null?void 0:Pa.length)-1:Pa==null?void 0:Pa.length),ca=[...ca,...Pa]}),Ja=(P=$a.prefixSum(Ja))==null?void 0:P.map(Pa=>Pa==null?void 0:Pa.total),Ye=Ye==null?void 0:Ye.map((Pa,Te)=>({number:Ja==null?void 0:Ja[Te],contents:Pa}))}let We=ya==null?void 0:ya[0];(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)),za=We==null?void 0:We.split(":"),Sa=(ce=(ie=(G=(F=ya==null?void 0:ya[1])==null?void 0:F.replace("}",Ma))==null?void 0:G.split(Ma))==null?void 0:ie[0])==null?void 0:ce.split(",");let La=(aa=K==null?void 0:K[0])==null?void 0:aa.slice(1,((pa=K==null?void 0:K[0])==null?void 0:pa.length)-2),yl="",Aa="";if((Ie=K==null?void 0:K[(K==null?void 0:K.length)-1])!=null&&Ie.includes("(@")?(Aa=(me=(wa=(Ce=K==null?void 0:K[(K==null?void 0:K.length)-1])==null?void 0:Ce.replace("(@",Ma))==null?void 0:wa.split(Ma))==null?void 0:me[1],Aa="(@"+Aa):(Je=K==null?void 0:K[(K==null?void 0:K.length)-1])!=null&&Je.includes("@")&&(Aa=(ba=(Fe=(Ze=K==null?void 0:K[(K==null?void 0:K.length)-1])==null?void 0:Ze.replace("@",Ma))==null?void 0:Fe.split(Ma))==null?void 0:ba[1],Aa="@"+Aa),((Le=$a.analyzeSplitToContent(Aa,"&"))==null?void 0:Le.length)>1){let el=(re=(da=$a.analyzeSplitToContent(Aa,"}"))==null?void 0:da.map(Ja=>{var Pa;return Ja!=null&&Ja.includes("@")||(Ja=""),Ja!=null&&Ja.includes("@")&&(Ja=(Pa=$a.analyzeSplitToContent(Ja,":"))==null?void 0:Pa[0],(Ja==null?void 0:Ja[(Ja==null?void 0:Ja.length)-1])===":"&&(Ja=Ja==null?void 0:Ja.slice(0,(Ja==null?void 0:Ja.length)-1)),(Ja==null?void 0:Ja[0])==="("&&(Ja=Ja==null?void 0:Ja.slice(1,(Ja==null?void 0:Ja.length)-1))),Ja}))==null?void 0:re.filter(Ja=>Ja!=="");Aa=(Aa==null?void 0:Aa.length)===1?el:"("+(el==null?void 0:el.join(","))+")"}Aa&&Aa!==""&&(yl=kt(Aa)),(Se=La==null?void 0:La.split(","))==null||Se.forEach((el,Ja)=>{var Pa,Te,il;n.push({label:el,prop:el,align:"center",menus:Be,groups:(Ye==null?void 0:Ye.length)===0?za:(Pa=Ye==null?void 0:Ye.find(va=>(va==null?void 0:va.number)>=Ja))==null?void 0:Pa.contents,words:(ca==null?void 0:ca.length)===0?(Te=Sa==null?void 0:Sa[Ja])==null?void 0:Te.split(":"):(il=ca==null?void 0:ca[Ja])==null?void 0:il.split(":"),formType:(Be==null?void 0:Be.length)>0?"Select":"Input",mainKey:Ja===0,filter:yl,isMainPath:(Ye==null?void 0:Ye.findIndex(va=>(va==null?void 0:va.number)>=Ja))===0})})}else n.push({label:X,prop:X,align:"center"})});else{let X=(xe=$a.analyzeSplitToContent(l,","))==null?void 0:xe.map(pe=>((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));X==null||X.forEach(pe=>{n.push(ii(pe,r))})}return n},Nd=(l,r)=>{var b,h,v,y,u;let n=l;if(!l)return;let t="";((b=$a.analyzeSplitToContent(l,"}"))==null?void 0:b.length)>1&&(n=(h=$a.analyzeSplitToContent(l,"}"))==null?void 0:h[0],t=(v=$a.analyzeSplitToContent(l,"}"))==null?void 0:v[1]),(l==null?void 0:l[0])==="{"&&(l==null?void 0:l[(l==null?void 0:l.length)-1])==="}"&&(n=n==null?void 0:n.slice(1,(n==null?void 0:n.length)-1));let s=[],c=[];return s.push({label:"排序",prop:"sort"}),s.push({label:"relatedId",prop:"relatedId",formType:"Upload"}),(y=$a.analyzeSplitToContent(n,","))==null||y.forEach(x=>{var S;(x==null?void 0:x[(x==null?void 0:x.length)-1])===","&&(x=x==null?void 0:x.slice(0,(x==null?void 0:x.length)-1)),(x==null?void 0:x[0])==="{"?(S=xo(x,r))==null||S.forEach(M=>{s.push(M)}):s.push(ii(x,r))}),t!==""&&((t==null?void 0:t[0])=="{"&&(t=t==null?void 0:t.slice(1,(t==null?void 0:t.length)-1)),(u=$a.analyzeSplitToContent(t,","))==null||u.forEach(x=>{var S;(x==null?void 0:x[(x==null?void 0:x.length)-1])===","&&(x=x==null?void 0:x.slice(0,(x==null?void 0:x.length)-1)),(x==null?void 0:x[0])==="{"?(S=xo(x,r))==null||S.forEach(M=>{c.push(M)}):c.push(ii(x,r))})),{columns:s,secondColumns:c}},si=l=>{var r,n,t;if(l!=null&&l.includes("@Filter")||l!=null&&l.includes("@Condition"))return l;{let s=(n=(r=l==null?void 0:l.replace("(",Ma))==null?void 0:r.split(Ma))==null?void 0:n[1];return s=s==null?void 0:s.slice(0,(s==null?void 0:s.length)-1),s=(t=$a.analyzeSplitToContent(s,","))==null?void 0:t.map(c=>((c==null?void 0:c[(c==null?void 0:c.length)-1])===","&&(c=c==null?void 0:c.slice(0,(c==null?void 0:c.length)-1)),"@"+c)),s=s==null?void 0:s.join(","),l!=null&&l.includes("@Quote")&&(s!=null&&s.includes("@Type")||(s=s===""?s+"@Type=Manual":s+",@Type=Manual"),s!=null&&s.includes("@SonSync")||(s=s===""?s+"@SonSync=No":s+",@SonSync=No"),s!=null&&s.includes("@FatherSync")||(s=s===""?s+"@FatherSync=Yes":s+",@FatherSync=Yes")),s}},Zi=l=>{let r=l==null?void 0:l.map(n=>{var t,s;return{menus:n==null?void 0:n.menus,content:((t=n==null?void 0:n.menus)==null?void 0:t.join("/"))+Ma+((s=n==null?void 0:n.groups)==null?void 0:s.join("/"))}});return r=r==null?void 0:r.filter(n=>{var t;return(n==null?void 0:n.menus)&&((t=n==null?void 0:n.menus)==null?void 0:t.length)>0}),r=r==null?void 0:r.map(n=>n==null?void 0:n.content),r=[...new Set(r)],r=r==null?void 0:r.map(n=>{var t,s;return{menus:(t=n==null?void 0:n.split(Ma))==null?void 0:t[0],groups:((s=n==null?void 0:n.split(Ma))==null?void 0:s[1])??[]}}),r},Td=(l,r,n="")=>{var A,R,C,L,T,k,g,j,W,J,ke,ze,De,ne,xe,X,pe,Ke,Da,te,D,le,ge,ue,Ne,ia,ka,Ha,ee,Qe,Pe,ga,He,Ae,$e,Ge,Wa,Ia,P,F,G,ie,ce,pa,aa,Ie,Ce,wa,me,Je,Ze,Fe,ba,Le,da;let t=[];if(((A=l==null?void 0:l[0])==null?void 0:A[0])!=="*"&&((R=l==null?void 0:l[0])==null?void 0:R[0])!=="$")return;let s=$a.analyzeSplitToContent(l==null?void 0:l[0],":"),c=s==null?void 0:s.filter(re=>!((re==null?void 0:re[0])!=="{"&&(re==null?void 0:re[0])!=="["));t=(C=s==null?void 0:s.filter(re=>(re==null?void 0:re[0])!=="{"&&(re==null?void 0:re[0])!=="["))==null?void 0:C.join("");let b="",h="";if((t==null?void 0:t[(t==null?void 0:t.length)-1])===":"&&(t=t==null?void 0:t.slice(0,(t==null?void 0:t.length)-1)),t!=null&&t.includes("(@")&&(t==null?void 0:t[0])==="*"&&(b="(@"+((L=t==null?void 0:t.split("(@"))==null?void 0:L[1]),t=(T=t==null?void 0:t.split("(@"))==null?void 0:T[0]),t!=null&&t.includes("@")&&(t==null?void 0:t[0])==="*"&&(b="@"+((g=(k=t==null?void 0:t.replace("@",Ma))==null?void 0:k.split(Ma))==null?void 0:g[1]),t=(W=(j=t==null?void 0:t.replace("@",Ma))==null?void 0:j.split(Ma))==null?void 0:W[0]),(t==null?void 0:t[0])==="*"?(t=t==null?void 0:t.slice(1,t==null?void 0:t.length),t=t==null?void 0:t.split(":")):(h=I.cloneDeep(t)+":",t=[]),h=h+((c==null?void 0:c[0])??""),(h==null?void 0:h[(h==null?void 0:h.length)-1])===":"&&(h=h==null?void 0:h.slice(0,(h==null?void 0:h.length)-1)),b!==""&&h!=="")if((h==null?void 0:h[(h==null?void 0:h.length)-1])===")")if(h!=null&&h.includes("(@")){let re=(J=h==null?void 0:h.split("(@"))==null?void 0:J[0],Se=(ke=h==null?void 0:h.split("(@"))==null?void 0:ke[1];Se="(@"+(Se==null?void 0:Se.slice(0,(Se==null?void 0:Se.length)-1))+b,h=re+Se}else{let re=(De=(ze=h==null?void 0:h.replace("@",Ma))==null?void 0:ze.split(Ma))==null?void 0:De[0],Se=(xe=(ne=h==null?void 0:h.replace("@",Ma))==null?void 0:ne.split(Ma))==null?void 0:xe[1];Se="(@"+Se+b,h=re+Se}else h=h+b;let v=c==null?void 0:c[1];(h==null?void 0:h[0])==="["&&(v=I.cloneDeep(h)+(v??""),h="");let y=v?wt(v):[];!(y!=null&&y.every(re=>Array.isArray(re)))&&(y==null?void 0:y.length)>0&&(y=[y]);let u=(X=$a.analyzeSplitToContent(h,"@"))!=null&&X[1]?"@"+((pe=$a.analyzeSplitToContent(h,"@"))==null?void 0:pe[1]):"";if(h=(Ke=$a.analyzeSplitToContent(h,"@"))==null?void 0:Ke[0],(h==null?void 0:h[0])==="$"&&(u=I.cloneDeep(h)+(u??""),h=""),n!=="")if(b!=="")u=(n==null?void 0:n[(n==null?void 0:n.length)-1])!==")"?n+b:(n==null?void 0:n.slice(0,(n==null?void 0:n.length)-1))+","+b;else{let re="";if(n!=null&&n.includes("(@")){let Se=(ge=(le=(D=(te=(Da=n==null?void 0:n.replace("(@",Ma))==null?void 0:Da.split(Ma))==null?void 0:te[0])==null?void 0:D.replace("{",Ma))==null?void 0:le.split(Ma))==null?void 0:ge[0];re=((Se==null?void 0:Se[(Se==null?void 0:Se.length)-1])===":"?Se==null?void 0:Se.slice(0,(Se==null?void 0:Se.length)-1):Se)+"(@"+((Ne=(ue=n==null?void 0:n.replace("(@",Ma))==null?void 0:ue.split(Ma))==null?void 0:Ne[1])}else if(n!=null&&n.includes("@")){let Se=(Qe=(ee=(Ha=(ka=(ia=n==null?void 0:n.replace("@",Ma))==null?void 0:ia.split(Ma))==null?void 0:ka[0])==null?void 0:Ha.replace("{",Ma))==null?void 0:ee.split(Ma))==null?void 0:Qe[0];re=((Se==null?void 0:Se[(Se==null?void 0:Se.length)-1])===":"?Se==null?void 0:Se.slice(0,(Se==null?void 0:Se.length)-1):Se)+"@"+((ga=(Pe=n==null?void 0:n.replace("@",Ma))==null?void 0:Pe.split(Ma))==null?void 0:ga[1])}u=re===""?n:re}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 re="";if(u!=null&&u.includes("(@")){re=(Ae=(He=u==null?void 0:u.replace("(@",Ma))==null?void 0:He.split(Ma))==null?void 0:Ae[0];let Se=(Ge=($e=u==null?void 0:u.replace("(@",Ma))==null?void 0:$e.split(Ma))==null?void 0:Ge[1];Se="@"+(Se==null?void 0:Se.slice(0,(Se==null?void 0:Se.length)-1));let K=(Wa=$a.analyzeSplitToContent(Se,","))==null?void 0:Wa.map(je=>((je==null?void 0:je[(je==null?void 0:je.length)-1])===","&&(je=je==null?void 0:je.slice(0,(je==null?void 0:je.length)-1)),(je==null?void 0:je[(je==null?void 0:je.length)-1])!==")"&&(je=je+")"),si(je)));u=re+"("+(K==null?void 0:K.join(","))+")"}else{re=(P=(Ia=u==null?void 0:u.replace("@",Ma))==null?void 0:Ia.split(Ma))==null?void 0:P[0];let Se=(G=(F=u==null?void 0:u.replace("@",Ma))==null?void 0:F.split(Ma))==null?void 0:G[1];if(Se){Se="@"+Se;let K=(ie=$a.analyzeSplitToContent(Se,","))==null?void 0:ie.map(je=>((je==null?void 0:je[(je==null?void 0:je.length)-1])!==")"&&(je=je+")"),si(je)));u=re+"("+(K==null?void 0:K.join(","))+")"}else u=re}}(h==null?void 0:h[(h==null?void 0:h.length)-1])==="@"&&(h=h==null?void 0:h.slice(0,(h==null?void 0:h.length)-1));let x=Nd(h,r),S=h===""?[]:(x==null?void 0:x.columns)??[],M=na.getColumnChild(S),_=M;_=_==null?void 0:_.filter(re=>{var Se,K;return(re==null?void 0:re.filter)&&(re==null?void 0:re.filter)!==""&&(((Se=re==null?void 0:re.filter)==null?void 0:Se.includes("@SonSync"))||((K=re==null?void 0:re.filter)==null?void 0:K.includes("@FatherSync")))});let U=_==null?void 0:_.filter(re=>{var Se,K,je;return((Se=re==null?void 0:re.filter)==null?void 0:Se.includes("@SonSync"))&&((je=(K=re==null?void 0:re.filter)==null?void 0:K.split(","))==null?void 0:je.find(Be=>(Be==null?void 0:Be.includes("@SonSync"))&&(Be==null?void 0:Be.includes("Yes"))))}),B=_==null?void 0:_.filter(re=>{var Se,K,je;return((Se=re==null?void 0:re.filter)==null?void 0:Se.includes("@FatherSync"))&&((je=(K=re==null?void 0:re.filter)==null?void 0:K.split(","))==null?void 0:je.find(Be=>(Be==null?void 0:Be.includes("@FatherSync"))&&(Be==null?void 0:Be.includes("Yes"))))});if(M=M==null?void 0:M.map(re=>{var Se,K;return{menus:re==null?void 0:re.menus,content:((Se=re==null?void 0:re.menus)==null?void 0:Se.join("/"))+Ma+((K=re==null?void 0:re.groups)==null?void 0:K.join("/"))}}),B=Zi(B),U=Zi(U),M=M==null?void 0:M.filter(re=>{var Se;return(re==null?void 0:re.menus)&&((Se=re==null?void 0:re.menus)==null?void 0:Se.length)>0}),M=M==null?void 0:M.map(re=>re==null?void 0:re.content),M=[...new Set(M)],M=M==null?void 0:M.map(re=>{var Se,K;return{menus:(Se=re==null?void 0:re.split(Ma))==null?void 0:Se[0],groups:((K=re==null?void 0:re.split(Ma))==null?void 0:K[1])??[]}}),S!=null&&S.some(re=>{var Se;return Array.isArray(re==null?void 0:re.children)&&((Se=re==null?void 0:re.children)==null?void 0:Se.length)>0})&&(S=[S]),(y==null?void 0:y.length)>0&&(Array.isArray(y==null?void 0:y[0])&&((ce=y==null?void 0:y[0])!=null&&ce.every(re=>Array.isArray(re)))?y=y==null?void 0:y.map((re,Se)=>(re=re.map((K,je)=>(K.unshift("{}"),K.unshift((je+1).toString()),K)),re)):y=y==null?void 0:y.map((re,Se)=>(re.unshift("{}"),re.unshift((Se+1).toString()),re))),x!=null&&x.secondColumns&&((pa=x==null?void 0:x.secondColumns)==null?void 0:pa.length)>0&&((y==null?void 0:y.length)>0?y=y==null?void 0:y.map((re,Se)=>{var K,je;return Array.isArray(re==null?void 0:re[0])?re=re==null?void 0:re.map((Be,za)=>{var Sa,Ye;return Be.unshift((Ye=(Sa=x==null?void 0:x.secondColumns)==null?void 0:Sa[za])==null?void 0:Ye.prop),Be}):re.unshift((je=(K=x==null?void 0:x.secondColumns)==null?void 0:K[Se])==null?void 0:je.prop),re}):y=(aa=x==null?void 0:x.secondColumns)==null?void 0:aa.map((re,Se)=>(re=[re==null?void 0:re.label],re.push(Se),re)),S.unshift({label:"",prop:"disabled",sortable:!1})),(S==null?void 0:S.length)>0){let re=I.cloneDeep(S);Array.isArray(re==null?void 0:re[0])&&(re=re==null?void 0:re[0]);let Se=na.getColumnChild(re);Se=Se==null?void 0:Se.map(K=>K==null?void 0:K.filter),Se=Se==null?void 0:Se.filter(K=>K&&K!==""),Se=[...new Set(Se)],(Se==null?void 0:Se.length)>0&&(u=Ma+(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)?",":"")+((Ie=I.cloneDeep(Se))==null?void 0:Ie.join(";")))}if((u==null?void 0:u[0])!=="("&&(u!=null&&u.includes("(@"))){let re=(wa=(Ce=u==null?void 0:u.replace("(",Ma))==null?void 0:Ce.split(Ma))==null?void 0:wa[0],Se=[{menus:(Je=(me=re==null?void 0:re.split("*"))==null?void 0:me[0])==null?void 0:Je.replaceAll(":","/"),groups:(Ze=re==null?void 0:re.split("*"))==null?void 0:Ze[1]}],K=(ba=(Fe=u==null?void 0:u.replace("(",Ma))==null?void 0:Fe.split(Ma))==null?void 0:ba[1];(K==null?void 0:K[(K==null?void 0:K.length)-1])===")"&&(K=K==null?void 0:K.slice(0,(K==null?void 0:K.length)-1)),K=$a.analyzeSplitToContent(K,","),(Le=K==null?void 0:K.find(je=>je==null?void 0:je.includes("@FatherSync")))!=null&&Le.includes("Yes")&&(B=[...B,...Se]),(da=K==null?void 0:K.find(je=>je==null?void 0:je.includes("@SonSync")))!=null&&da.includes("Yes")&&(U=[...U,...Se])}return{groupName:t,tableColumns:S,tableFilter:u,tableContents:y,columns:(x==null?void 0:x.secondColumns)??[],relatedQuotes:M,fatherSyncContents:B,sonSyncContents:U}},qs=(l,r)=>(l=l==null?void 0:l.map((n,t)=>{var s,c,b,h;if(Array.isArray(n))n=n==null?void 0:n.map(v=>{var y,u,x,S;return v!=null&&v.isMainPath||(((y=v==null?void 0:v.children)==null?void 0:y.length)>0?v.children=qs(v.children,r):((u=v==null?void 0:v.menus)==null?void 0:u.length)>0&&!((x=n==null?void 0:n[0])!=null&&x.isMainPath)&&(v.menus=(S=v.menus)==null?void 0:S.map((M,_)=>{var U,B;return((U=v.menus)==null?void 0:U.length)-1===_&&M===""&&(r==null?void 0:r.parentContent)+"/"!==((B=v.menus)==null?void 0:B.join("/"))&&(M=r==null?void 0:r.value),v}),v.bindMenus=v.menus)),v});else{if(t===0&&((s=n.menus)==null?void 0:s.length)>0&&(n.mainKey=!0),n!=null&&n.isMainPath)return n;((c=n.menus)==null?void 0:c.length)>0&&!((b=l==null?void 0:l[0])!=null&&b.isMainPath)&&(n.menus=(h=n.menus)==null?void 0:h.map((v,y)=>{var u,x;return((u=n.menus)==null?void 0:u.length)-1===y&&v===""&&(r==null?void 0:r.parentContent)+"/"!==((x=n.menus)==null?void 0:x.join("/"))&&(v=r==null?void 0:r.value),v}),n.bindMenus=n.menus)}return n}),l),Ad=(l,r)=>(l=l==null?void 0:l.map(n=>((n==null?void 0:n.key)==="header"&&(n.contents=qs(n.contents,r)),n)),l),ci=(l,r)=>{let n=l;return Array.isArray(n==null?void 0:n[0])?n=n==null?void 0:n.map(t=>(t=ci(t,r),t)):n=n==null?void 0:n.map(t=>{var s,c;return t!=null&&t.children&&((s=t==null?void 0:t.children)==null?void 0:s.length)>0?t.children=ci(t==null?void 0:t.children,r):t!=null&&t.words&&((c=t==null?void 0:t.words)==null?void 0:c.length)>0&&(r!=null&&r.find(b=>{var h,v,y,u;return((u=(h=t==null?void 0:t.prop)==null?void 0:h.split("."))==null?void 0:u[((y=(v=t==null?void 0:t.prop)==null?void 0:v.split("."))==null?void 0:y.length)-1])===b}))&&(t.mainKey=!0),t}),n};let tr="$R";const zd=I.useUnit(I.pinia),{selectTitle:sn}=I.storeToRefs(zd),cn=[{key:"@MaxRow",value:"onNumSlice",order:1},{key:"@Type",value:"onRandomContents",order:2},{key:"@Filter",value:"onConditionContents",order:4},{key:"@FatherSync",value:"onFatherPaceContents",order:1},{key:"@SonSync",value:"onPaceContents",order:1},{key:"@MainPam",value:"onMainTagContents",order:3},{key:"@TopButton",value:"onButtonContents",order:1},{key:"@ColumnButton",value:"onPamButtonContents",order:1},{key:"@RowButton",value:"onRowButtonContents",order:1},{key:"@BottomButton",value:"onBottomButtonContents",order:1},{key:"@Related",value:"onRelated",order:1},{key:"@RowNum",value:"onRowNum",order:1},{key:"@FixRow",value:"onFixRow",order:1},{key:"@ReqItem",value:"onReqItem",order:1},{key:"@Condition",value:"onConditionContent",order:1},{key:"@Tab",value:"onTabs",order:1},{key:"@SinChoice",value:"onSinChoice",order:1},{key:"@TextSize",value:"onTextSize",order:1},{key:"@TextRGBA",value:"onTextRGBA",order:1},{key:"@Position",value:"onPosition",order:4},{key:"@Size",value:"onSize",order:4}];var et=(l=>(l[l.ORDINARY=1]="ORDINARY",l[l.BLOCK=2]="BLOCK",l[l.TEXT=3]="TEXT",l))(et||{});const Ws=l=>{if(l==null)return null;const r=String(l).trim();if(!r.startsWith("[")||!r.endsWith("]"))return null;const n=r.slice(1,-1).split(",").map(t=>Number(t.trim()));return n.length<2||n.some(t=>Number.isNaN(t))?null:[n[0],n[1]]},Ks=(l,r)=>{var U,B,A,R,C;const n=Array.isArray(l)?l:[],t=n.find(L=>(L==null?void 0:L.key)==="formContent"),s=Array.isArray(t==null?void 0:t.contents)?t.contents:[],c=((U=n.find(L=>(L==null?void 0:L.key)==="_gridLayoutMeta"))==null?void 0:U.contents)??{},b=(s==null?void 0:s[0])??{};let h=((B=r==null?void 0:r.position)==null?void 0:B[0])??(c==null?void 0:c._positionStartRow)??(b==null?void 0:b._positionStartRow),v=((A=r==null?void 0:r.position)==null?void 0:A[1])??(c==null?void 0:c._positionRowSpan)??(b==null?void 0:b._positionRowSpan);(!h||Number.isNaN(h)||h<1)&&(h=1),(!v||Number.isNaN(v)||v<1)&&(v=1);let y=((R=r==null?void 0:r.size)==null?void 0:R[0])??(c==null?void 0:c._sizeStart)??(b==null?void 0:b._sizeStart),u=((C=r==null?void 0:r.size)==null?void 0:C[1])??(c==null?void 0:c._sizeEnd)??(b==null?void 0:b._sizeEnd);(y===void 0||Number.isNaN(y))&&(y=0),(u===void 0||Number.isNaN(u))&&(u=1),y=Math.max(0,Math.min(1,y)),u=Math.max(0,Math.min(1,u)),u<=y&&(y=0,u=1);const x=u-y,S=Math.max(1,Math.round(1/x));let M=n.map(L=>{if((L==null?void 0:L.key)!=="formContent")return L;const T=Array.isArray(L==null?void 0:L.contents)?L.contents:[];return{...L,contents:T.map(k=>({...k,width:S,_positionStartRow:h,_positionRowSpan:v,_sizeStart:y,_sizeEnd:u}))}});const _={_positionStartRow:h,_positionRowSpan:v,_sizeStart:y,_sizeEnd:u};return M.some(L=>(L==null?void 0:L.key)==="_gridLayoutMeta")?M=M.map(L=>(L==null?void 0:L.key)==="_gridLayoutMeta"?{...L,contents:_}:L):M.push({key:"_gridLayoutMeta",contents:_}),M},Md=l=>{const r=Ws(l==null?void 0:l.filter);return r?Ks(l==null?void 0:l.contents,{position:r}):l==null?void 0:l.contents},Od=l=>{const r=Ws(l==null?void 0:l.filter);return r?Ks(l==null?void 0:l.contents,{size:r}):l==null?void 0:l.contents},Id=l=>{if((l==null?void 0:l.filter)!==void 0&&(l==null?void 0:l.filter)!==null&&(l==null?void 0:l.filter)!==""){let r=l==null?void 0:l.contents;const n=Number(l==null?void 0:l.filter);return r.push({key:"textSize",contents:Number.isNaN(n)?l==null?void 0:l.filter:n}),r}return l==null?void 0:l.contents},Ld=l=>{if((l==null?void 0:l.filter)!==void 0&&(l==null?void 0:l.filter)!==null&&(l==null?void 0:l.filter)!==""){let r=l==null?void 0:l.contents;return r.push({key:"textRGBA",contents:l==null?void 0:l.filter}),r}return l==null?void 0:l.contents},Vd=l=>{var n;return(l==null?void 0:l.filter.toUpperCase())==="ALL"||(l==null?void 0:l.filter.toUpperCase())==="NONE"?l==null?void 0:l.contents:(n=l==null?void 0:l.contents)==null?void 0:n.map(t=>{var s;return(t==null?void 0:t.key)==="tableContents"&&(t.contents=(s=t.contents)==null?void 0:s.slice(0,parseInt(l==null?void 0:l.filter))),t})},$d=async l=>{var r,n,t,s,c,b,h,v,y,u,x,S,M,_,U,B,A,R,C,L,T,k,g,j,W,J,ke,ze,De,ne;if((l==null?void 0:l.filter)==="Random")return(r=l==null?void 0:l.contents)==null?void 0:r.map(X=>((X==null?void 0:X.key)==="tableContents"&&(X.contents=$a.shuffle(X.contents)),X));if((l==null?void 0:l.filter)==="Ordin"){let xe=l==null?void 0:l.contents;return xe.push({key:"enableWrap",contents:1}),xe}if((l==null?void 0:l.filter)==="Block"){let xe=l==null?void 0:l.contents;return xe.push({key:"enableWrap",contents:2}),xe}if((l==null?void 0:l.filter)==="Auto"){let xe=(t=(n=l==null?void 0:l.contents)==null?void 0:n.find(ue=>(ue==null?void 0:ue.key)==="header"))==null?void 0:t.contents;Array.isArray(xe==null?void 0:xe[0])&&(xe=xe==null?void 0:xe[0]),xe=na.getColumnChild(xe);let X=xe==null?void 0:xe.filter(ue=>(ue==null?void 0:ue.filter)&&(ue==null?void 0:ue.filter)!==""),pe=new Map,Ke=[];X==null||X.forEach(ue=>{var Ne,ia;pe.get((Ne=ue==null?void 0:ue.menus)==null?void 0:Ne.join("/"))||(pe.set((ia=ue==null?void 0:ue.menus)==null?void 0:ia.join("/"),ue),Ke.push(ue))});let Da=(c=(s=sn==null?void 0:sn.value)==null?void 0:s.find(ue=>(ue==null?void 0:ue.condition)==="child"))==null?void 0:c.value,te=Ke==null?void 0:Ke.map(ue=>{var Ne,ia,ka;return ue=(Ne=ue==null?void 0:ue.menus)==null?void 0:Ne.join("/"),(ue==null?void 0:ue[(ue==null?void 0:ue.length)-1])==="/"&&((ka=(ia=sn==null?void 0:sn.value)==null?void 0:ia.find(Ha=>(Ha==null?void 0:Ha.condition)==="child"))==null?void 0:ka.parentContent)+"/"!==ue?ue=ue+Da:(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}),D=Ke==null?void 0:Ke.map(ue=>ue==null?void 0:ue.groups),le=te==null?void 0:te.map(async ue=>{let Ne=await Pr(ue,!1);return{path:ue,contents:Ne}});le=await Promise.all(le);let ge=le==null?void 0:le.map((ue,Ne)=>{var ka,Ha,ee,Qe,Pe,ga,He;let ia=(ka=ue==null?void 0:ue.contents)==null?void 0:ka.filter(Ae=>{var $e,Ge;return(Ae==null?void 0:Ae.name)===((Ge=D==null?void 0:D[Ne])==null?void 0:Ge[(($e=D==null?void 0:D[Ne])==null?void 0:$e.length)-1])});return ia=(Qe=(ee=(Ha=ia==null?void 0:ia[0])==null?void 0:Ha.compData)==null?void 0:ee.find(Ae=>(Ae==null?void 0:Ae.key)==="tableContents"))==null?void 0:Qe.contents,(ue==null?void 0:ue.path)===((ga=(Pe=sn==null?void 0:sn.value)==null?void 0:Pe.find(Ae=>(Ae==null?void 0:Ae.condition)==="child"))==null?void 0:ga.parentContent)&&(ia=((He=ia==null?void 0:ia.map(Ae=>{for(let $e in Ae)if(Ae[$e]===Da)return Ae}))==null?void 0:He.filter(Ae=>Ae))??[]),ia??[]});if(ge=ge==null?void 0:ge.map(ue=>(ue=ue==null?void 0:ue.map(Ne=>{var ka;let ia={};for(let Ha in Ne)if(X!=null&&X.find(ee=>{var Qe,Pe;return((Pe=(Qe=ee==null?void 0:ee.words)==null?void 0:Qe[0])==null?void 0:Pe.replaceAll("'",""))===Ha})){let ee=(ka=X==null?void 0:X.find(Qe=>{var Pe,ga;return((ga=(Pe=Qe==null?void 0:Qe.words)==null?void 0:Pe[0])==null?void 0:ga.replaceAll("'",""))===Ha}))==null?void 0:ka.prop;ia[ee]=Ne==null?void 0:Ne[Ha]}return ia}),ue)),ge=$a.cartesianProduct(ge),Array.isArray(ge==null?void 0:ge[0])&&(ge=ge==null?void 0:ge[0]),(ge==null?void 0:ge.length)>0&&((x=(h=(b=X==null?void 0:X[0])==null?void 0:b.menus)==null?void 0:h.join("/"))==null?void 0:x[((u=(y=(v=X==null?void 0:X[0])==null?void 0:v.menus)==null?void 0:y.join("/"))==null?void 0:u.length)-1])==="/")return(S=l==null?void 0:l.contents)==null?void 0:S.map(Ne=>{var ia;return(Ne==null?void 0:Ne.key)==="tableContents"&&(ge==null?void 0:ge.length)>0&&(Ne.contents=((ia=Ne.contents)==null?void 0:ia.length)>0?Ne.contents:ge),Ne})}if((l==null?void 0:l.filter)==="Text"){let xe=l==null?void 0:l.contents;return xe.push({key:"enableWrap",contents:3}),xe}if((l==null?void 0:l.filter)==="Manual"){let xe=[],X=[],pe=(_=(M=l==null?void 0:l.contents)==null?void 0:M.find(D=>(D==null?void 0:D.key)==="filter"))==null?void 0:_.contents;(pe==null?void 0:pe[(pe==null?void 0:pe.length)-1])===")"?pe=(B=(U=pe==null?void 0:pe.replace("(",tr))==null?void 0:U.split(tr))==null?void 0:B[0]:pe="",pe!==""&&(xe=((R=(A=pe==null?void 0:pe.split("*"))==null?void 0:A[0])==null?void 0:R.split(":"))??[],X=((g=(k=(T=(L=(C=pe==null?void 0:pe.split("*"))==null?void 0:C[1])==null?void 0:L.replace("{",tr))==null?void 0:T.split(tr))==null?void 0:k[0])==null?void 0:g.split(":"))??[]);let Ke=(W=(j=l==null?void 0:l.contents)==null?void 0:j.find(D=>(D==null?void 0:D.key)==="filter"))==null?void 0:W.contents;Ke=(ke=(J=Ke==null?void 0:Ke.replace("(",tr))==null?void 0:J.split(tr))==null?void 0:ke[1],Ke=Ke==null?void 0:Ke.slice(0,(Ke==null?void 0:Ke.length)-1);let Da=(ze=l==null?void 0:l.contents)==null?void 0:ze.map(D=>{var le,ge,ue,Ne,ia,ka,Ha,ee,Qe;return(D==null?void 0:D.key)==="header"&&((le=D==null?void 0:D.contents)!=null&&le.every(Pe=>(Pe==null?void 0:Pe.mainKey)!==!0)&&Array.isArray(D==null?void 0:D.contents)&&!Array.isArray((ge=D==null?void 0:D.contents)==null?void 0:ge[0])?D.contents=(ue=D==null?void 0:D.contents)==null?void 0:ue.map((Pe,ga)=>{var He,Ae,$e;return Pe!=null&&Pe.isMainPath||(ga===0?(Pe.mainKey=!0,Pe.formType="Select",Pe.bindMenus=xe,Pe.groups=((He=Pe.groups)==null?void 0:He.length)===0?X:Pe.groups,Pe.words=((Ae=Pe.words)==null?void 0:Ae.length)===0?[Pe==null?void 0:Pe.prop]:Pe.words,Pe.filter=Ke,(!(Pe!=null&&Pe.menus)||(($e=Pe==null?void 0:Pe.menus)==null?void 0:$e.length)===0)&&(Pe.menus=xe)):(Pe.mainKey=!1,Pe.bindMenus=xe)),Pe}):Array.isArray((Ne=D==null?void 0:D.contents)==null?void 0:Ne[0])&&((Ha=(ka=(ia=D==null?void 0:D.contents)==null?void 0:ia[0])==null?void 0:ka.filter(()=>(xe==null?void 0:xe.length)>0))==null?void 0:Ha.length)>0&&(D.contents[0]=(Qe=(ee=D==null?void 0:D.contents)==null?void 0:ee[0])==null?void 0:Qe.map((Pe,ga)=>{var He,Ae,$e;return Pe!=null&&Pe.isMainPath||(ga===0?(Pe.mainKey=!0,Pe.formType="Select",Pe.bindMenus=xe,Pe.groups=((He=Pe.groups)==null?void 0:He.length)===0?X:Pe.groups,Pe.words=((Ae=Pe.words)==null?void 0:Ae.length)===0?[Pe==null?void 0:Pe.prop]:Pe.words,Pe.filter=Ke,(!(Pe!=null&&Pe.menus)||Array.isArray(Pe==null?void 0:Pe.menus)&&(($e=Pe==null?void 0:Pe.menus)==null?void 0:$e.length)===0)&&(xe==null?void 0:xe.length)>0&&(Pe.menus=xe)):(Pe.mainKey=!1,Pe.bindMenus=xe)),Pe}))),D}),te=(De=Da==null?void 0:Da.find(D=>(D==null?void 0:D.key)==="header"))==null?void 0:De.contents;if(Array.isArray(te==null?void 0:te[0])&&(te=te==null?void 0:te[0]),te=na.getColumnChild(te),te!=null&&te.some(D=>{var le,ge;return((ge=D==null?void 0:D.menus)==null?void 0:ge[((le=D==null?void 0:D.menus)==null?void 0:le.length)-1])===""})){let D=(ne=sn==null?void 0:sn.value)==null?void 0:ne.find(le=>(le==null?void 0:le.condition)==="child");Da=Ad(Da,D)}return Da}return l==null?void 0:l.contents},Rd=l=>{var t,s,c,b;let r=l==null?void 0:l.filter;if(r!=null&&r.includes("*")&&(r="({"+((s=(t=r==null?void 0:r.replace("{",tr))==null?void 0:t.split(tr))==null?void 0:s[1])),r=(c=r==null?void 0:r.replaceAll("{",""))==null?void 0:c.replaceAll("}",""),(r==null?void 0:r[0])!=="("&&(r="("+r+")"),r.slice(1,(r==null?void 0:r.length)-1)==="undefined")return l==null?void 0:l.contents;let n=na.calculatorAndToOr(r);if((n==null?void 0:n.length)>0){let h=[];return n==null||n.forEach(y=>{let u={};for(let x in y){let S=x;S!=null&&S.includes("[")||(u[S]=y[x])}h.push(u)}),(b=l==null?void 0:l.contents)==null?void 0:b.map(y=>{var x,S,M;let u=(S=(x=l==null?void 0:l.contents)==null?void 0:x.find(_=>(_==null?void 0:_.key)==="header"))==null?void 0:S.contents;if(u=(M=na.getEqualChild(u))==null?void 0:M.filter(_=>(_==null?void 0:_.label)!=="操作"),(y==null?void 0:y.key)==="tableContents"){let U=na.tableToForm(y==null?void 0:y.contents,u);h==null||h.forEach(B=>{var A,R;for(let C in B)!((A=U==null?void 0:U[0])!=null&&A.find(L=>{var T;return(L==null?void 0:L.key)===C||((T=L==null?void 0:L.key)==null?void 0:T.includes(C))}))&&!(U!=null&&U.find(L=>{var T;return(L==null?void 0:L.key)===C||((T=L==null?void 0:L.key)==null?void 0:T.includes(C))}))||(((R=B[C])==null?void 0:R[0])!=="!"?U=U==null?void 0:U.filter(L=>{var T,k;return((T=L==null?void 0:L.find(g=>{var j;return(g==null?void 0:g.key)===C||((j=g==null?void 0:g.key)==null?void 0:j.includes(C))}))==null?void 0:T.value)===B[C]||Array.isArray(B==null?void 0:B[C])&&((k=B==null?void 0:B[C])==null?void 0:k.find(g=>{var j;return((j=L==null?void 0:L.find(W=>{var J;return(W==null?void 0:W.key)===C||((J=W==null?void 0:W.key)==null?void 0:J.includes(C))}))==null?void 0:j.value)===g}))}):U=U==null?void 0:U.filter(L=>{var T;return((T=L==null?void 0:L.find(k=>{var g;return(k==null?void 0:k.key)===C||((g=k==null?void 0:k.key)==null?void 0:g.includes(C))}))==null?void 0:T.value)!==B[C]}))}),(U==null?void 0:U.length)===0?y.contents=[]:y.contents=U==null?void 0:U.map(B=>{let A={};return B==null||B.forEach(R=>{A[R==null?void 0:R.key]=R==null?void 0:R.value}),A})}return y})}return l==null?void 0:l.contents},Pd=l=>l==null?void 0:l.contents,Fd=l=>l==null?void 0:l.contents,jd=l=>{var r,n,t,s;if((l==null?void 0:l.filter)!==""&&(l!=null&&l.filter)){let c=(t=(n=l==null?void 0:l.filter)==null?void 0:n.slice(1,((r=l==null?void 0:l.filter)==null?void 0:r.length)-1))==null?void 0:t.split(",");return(s=l==null?void 0:l.contents)==null?void 0:s.map(h=>((h==null?void 0:h.key)==="header"&&(h.contents=ci(h.contents,c)),h))}return l==null?void 0:l.contents},Hd=l=>{var n;let r=(l==null?void 0:l.filter)??"";return(r==null?void 0:r[0])==="{"&&(r=r==null?void 0:r.slice(1,(r==null?void 0:r.length)-1)),r!==""?(n=l==null?void 0:l.contents)==null?void 0:n.map(s=>{var c;return(s==null?void 0:s.key)==="extraButton"&&(s.contents=(c=r==null?void 0:r.split(","))==null?void 0:c.map(b=>({label:b,prop:b}))),s}):l==null?void 0:l.contents},Ud=l=>l==null?void 0:l.contents,qd=l=>{var n;let r=(l==null?void 0:l.filter)??"";return(r==null?void 0:r[0])==="{"&&(r=r==null?void 0:r.slice(1,(r==null?void 0:r.length)-1)),r!==""?(n=l==null?void 0:l.contents)==null?void 0:n.map(s=>{var c;return(s==null?void 0:s.key)==="rowButton"&&(s.contents=(c=r==null?void 0:r.split(","))==null?void 0:c.map(b=>({label:b,prop:b}))),s}):l==null?void 0:l.contents},Wd=l=>{var n;let r=(l==null?void 0:l.filter)??"";if((r==null?void 0:r[0])==="{"&&(r=r==null?void 0:r.slice(1,(r==null?void 0:r.length)-1)),r!==""){let t=l==null?void 0:l.contents,s=(n=r==null?void 0:r.split(","))==null?void 0:n.map(c=>({label:c,prop:c}));return t.push({key:"bottomButton",contents:s}),t}return l==null?void 0:l.contents},Kd=l=>{var r,n,t,s;if(((r=l==null?void 0:l.filter)==null?void 0:r[0])!=="["){const c=parseInt(l==null?void 0:l.filter);return!c||Number.isNaN(c)?l==null?void 0:l.contents:(n=l==null?void 0:l.contents)==null?void 0:n.map(h=>{var v;return(h==null?void 0:h.key)==="formContent"&&(h.contents=(v=h.contents)==null?void 0:v.map(y=>(y.width=c,y))),h})}if(((t=l==null?void 0:l.filter)==null?void 0:t[0])==="["){let c=wt(l==null?void 0:l.filter),b=Array.isArray(c)?c.map(v=>parseInt(v)).filter(v=>!!v&&!Number.isNaN(v)):[];return b.length?(s=l==null?void 0:l.contents)==null?void 0:s.map(v=>{if((v==null?void 0:v.key)==="formContent"){const y=v.contents??[];v.contents=y.map((u,x)=>{const S=x+1;let M=0,_=0;for(let B=0;B<b.length;B++){if(_+=b[B],S<=_){M=B;break}B===b.length-1&&(M=b.length-1)}const U=b[M]||b[b.length-1]||1;return u.width=U,u})}return v}):l==null?void 0:l.contents}return l==null?void 0:l.contents},Yd=l=>{var r;if((l==null?void 0:l.filter)!==""){let n=l==null?void 0:l.filter;return(n==null?void 0:n[0])==="{"&&(n=n==null?void 0:n.slice(1,(n==null?void 0:n.length)-1)),n=n==null?void 0:n.split(","),(r=l==null?void 0:l.contents)==null?void 0:r.map(s=>{var c,b,h;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]=(h=s.contents[0])==null?void 0:h.map(v=>(n!=null&&n.find(y=>y===(v==null?void 0:v.prop))&&(v.fixed="left"),v)):s.contents=(b=s.contents)==null?void 0:b.map(v=>(n!=null&&n.find(y=>y===(v==null?void 0:v.prop))&&(v.fixed="left"),v))),s})}return l==null?void 0:l.contents},Gd=l=>{var r;if((l==null?void 0:l.filter)!==""){let n=l==null?void 0:l.filter;(n==null?void 0:n[0])==="{"&&(n=n==null?void 0:n.slice(1,(n==null?void 0:n.length)-1)),n=n==null?void 0:n.split(",");const t=c=>(n!=null&&n.find(b=>b===(c==null?void 0:c.prop))&&(c.required=!0),c!=null&&c.children&&Array.isArray(c.children)&&(c.children=c.children.map(b=>t(b))),c);return(r=l==null?void 0:l.contents)==null?void 0:r.map(c=>{var b,h,v;return(c==null?void 0:c.key)==="header"&&(Array.isArray((b=c==null?void 0:c.contents)==null?void 0:b[0])?c.contents[0]=(v=c.contents[0])==null?void 0:v.map(y=>t(y)):c.contents=(h=c.contents)==null?void 0:h.map(y=>t(y))),c})}return l==null?void 0:l.contents},Jd=async l=>{var t,s,c,b,h,v,y,u,x,S,M,_,U,B,A,R,C;const r=I.useUnit(I.pinia),{chooseTitle:n}=I.storeToRefs(r);if((l==null?void 0:l.filter)==="true"){let L=await Pr(((s=(t=n==null?void 0:n.value)==null?void 0:t[0])==null?void 0:s.parentContent)??((b=(c=n==null?void 0:n.value)==null?void 0:c[0])==null?void 0:b.relatedContent),!1),T=(v=(h=n==null?void 0:n.value)==null?void 0:h[0])==null?void 0:v.value;(u=(y=L==null?void 0:L[0])==null?void 0:y.compData)!=null&&u.find(W=>(W==null?void 0:W.key)==="header")?L=(x=L==null?void 0:L[0])==null?void 0:x.compData:L=(M=(S=L==null?void 0:L.filter(W=>{var J;return(J=W==null?void 0:W.compData)==null?void 0:J.find(ke=>(ke==null?void 0:ke.key)==="header")}))==null?void 0:S[0])==null?void 0:M.compData;let k=(_=L==null?void 0:L.find(W=>(W==null?void 0:W.key)==="header"))==null?void 0:_.contents;Array.isArray(k==null?void 0:k[0])&&(k=k==null?void 0:k[0]),k=((U=k==null?void 0:k.find(W=>W==null?void 0:W.isMainKey))==null?void 0:U.prop)??((B=k==null?void 0:k[0])==null?void 0:B.prop);let g=(R=(A=L==null?void 0:L.find(W=>(W==null?void 0:W.key)==="tableContents"))==null?void 0:A.contents)==null?void 0:R.find(W=>(W==null?void 0:W[k])===T);return(C=l==null?void 0:l.contents)==null?void 0:C.map(W=>{var J;return(W==null?void 0:W.key)==="formContent"&&(W.contents=(J=W.contents)==null?void 0:J.map(ke=>(ke.value=g==null?void 0:g[ke==null?void 0:ke.prop],ke))),W})}return l==null?void 0:l.contents},Xd=l=>{var r,n,t,s,c;if((r=l==null?void 0:l.extra)!=null&&r.row){let b=l==null?void 0:l.filter;if(b!=null&&b.includes("*")&&(b="({"+((t=(n=b==null?void 0:b.replace("{",tr))==null?void 0:n.split(tr))==null?void 0:t[1])),b=(s=b==null?void 0:b.replaceAll("{",""))==null?void 0:s.replaceAll("}",""),(b==null?void 0:b[0])!=="("&&(b="("+b+")"),b.slice(1,(b==null?void 0:b.length)-1)==="undefined")return l==null?void 0:l.contents;let h=na.calculatorAndToOr(b),v=h==null?void 0:h[0],y=(c=l==null?void 0:l.extra)==null?void 0:c.row,u=[];for(let x in v)(v==null?void 0:v[x])===(y==null?void 0:y[x])?u.push(!0):u.push(!1);return u!=null&&u.every(x=>x===!0)?l==null?void 0:l.contents:[]}else return l==null?void 0:l.contents},Zd=l=>{if(l!=null&&l.filter){let r=l==null?void 0:l.contents;return r.push({key:"tab",contents:l==null?void 0:l.filter}),r}return l==null?void 0:l.contents},Qd=l=>{if(l!=null&&l.filter){let r=l==null?void 0:l.contents;return r.push({key:"choice",contents:l==null?void 0:l.filter}),r}return l==null?void 0:l.contents},Ys={onNumSlice:Vd,onRandomContents:$d,onConditionContents:Rd,onFatherPaceContents:Pd,onPaceContents:Fd,onMainTagContents:jd,onButtonContents:Hd,onPamButtonContents:Ud,onRowButtonContents:qd,onRelated:Jd,onRowNum:Kd,onFixRow:Yd,onReqItem:Gd,onBottomButtonContents:Wd,onConditionContent:Xd,onTabs:Zd,onSinChoice:Qd,onTextSize:Id,onTextRGBA:Ld,onPosition:Md,onSize:Od},ep=async(l,r)=>{var c,b,h,v,y,u,x,S,M,_,U,B,A,R,C,L,T,k,g;let n="";if(((c=l==null?void 0:l.find(j=>(j==null?void 0:j.key)==="filter"))==null?void 0:c.contents)!==""&&(n=(b=l==null?void 0:l.find(j=>(j==null?void 0:j.key)==="filter"))==null?void 0:b.contents),n===""||!n)return l;(n==null?void 0:n[0])==="("?n=n==null?void 0:n.slice(1,(n==null?void 0:n.length)-1):(n=(v=(h=n==null?void 0:n.replace("(",tr))==null?void 0:h.split(tr))==null?void 0:v[1],n=n==null?void 0:n.slice(0,(n==null?void 0:n.length)-1));let t=(y=$a.analyzeSplitToContent(n,","))==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 t){let W,J="";(u=t==null?void 0:t[j])!=null&&u.includes("(")?(W=(M=(S=(x=t==null?void 0:t[j])==null?void 0:x.replace("(",tr))==null?void 0:S.split(tr))==null?void 0:M[0],J="("+((B=(U=(_=t==null?void 0:t[j])==null?void 0:_.replace("(",tr))==null?void 0:U.split(tr))==null?void 0:B[1])):(W=(C=(R=(A=t==null?void 0:t[j])==null?void 0:A.replace("=",tr))==null?void 0:R.split(tr))==null?void 0:C[0],J=(k=(T=(L=t==null?void 0:t[j])==null?void 0:L.replace("=",tr))==null?void 0:T.split(tr))==null?void 0:k[1]);let ke=(g=cn==null?void 0:cn.find(ze=>(ze==null?void 0:ze.key)===W))==null?void 0:g.value;if(ke){const ze=Ys[ke];s=await ze({contents:s,filter:J})}}return s},_o=async(l,r)=>{var b,h,v,y,u,x,S,M,_,U,B,A,R,C,L,T,k,g,j,W;let n="";if(((b=l==null?void 0:l.find(J=>(J==null?void 0:J.key)==="filter"))==null?void 0:b.contents)!==""&&(n=(h=l==null?void 0:l.find(J=>(J==null?void 0:J.key)==="filter"))==null?void 0:h.contents),n===""||!n)return l;(n==null?void 0:n[0])===","&&(n=n==null?void 0:n.slice(1,n==null?void 0:n.length)),(n==null?void 0:n[0])==="("?n=n==null?void 0:n.slice(1,(n==null?void 0:n.length)-1):(n==null?void 0:n[0])==="@"||(n=(y=(v=n==null?void 0:n.replace("(",tr))==null?void 0:v.split(tr))==null?void 0:y[1],n=n==null?void 0:n.slice(0,(n==null?void 0:n.length)-1));let t=(u=$a.analyzeSplitToContent(n,","))==null?void 0:u.map(J=>((J==null?void 0:J[(J==null?void 0:J.length)-1])===","&&(J=J==null?void 0:J.slice(0,(J==null?void 0:J.length)-1)),J!=null&&J.includes("(")||(J=J==null?void 0:J.replaceAll(":","=")),J)),s=l,c=new Map;t==null||t.forEach(J=>{var ze,De,ne;let ke=(ze=J==null?void 0:J.split("="))==null?void 0:ze[0];if(ke==="@MainPam"&&c.get(ke)){let xe=c.get(ke);xe=xe==null?void 0:xe.slice(0,(xe==null?void 0:xe.length)-1);let X=(ne=(De=J==null?void 0:J.replace("{",tr))==null?void 0:De.split(tr))==null?void 0:ne[1];X=xe+","+X,c.set(ke,X)}else c.set(ke,J)}),t=Array.from(c.values()),t=t==null?void 0:t.sort((J,ke)=>{var ze,De;return((ze=cn==null?void 0:cn.find(ne=>ke==null?void 0:ke.includes(ne==null?void 0:ne.key)))==null?void 0:ze.order)-((De=cn==null?void 0:cn.find(ne=>J==null?void 0:J.includes(ne==null?void 0:ne.key)))==null?void 0:De.order)});for(let J in t){let ke,ze="";(x=t==null?void 0:t[J])!=null&&x.includes("(")&&((S=t==null?void 0:t[J])!=null&&S.includes("@Filter"))?(ke=(U=(_=(M=t==null?void 0:t[J])==null?void 0:M.replace("(",tr))==null?void 0:_.split(tr))==null?void 0:U[0],ze="("+((R=(A=(B=t==null?void 0:t[J])==null?void 0:B.replace("(",tr))==null?void 0:A.split(tr))==null?void 0:R[1])):(ke=(T=(L=(C=t==null?void 0:t[J])==null?void 0:C.replace("=",tr))==null?void 0:L.split(tr))==null?void 0:T[0],ze=(j=(g=(k=t==null?void 0:t[J])==null?void 0:k.replace("=",tr))==null?void 0:g.split(tr))==null?void 0:j[1]);let De=(W=cn==null?void 0:cn.find(ne=>(ne==null?void 0:ne.key)===ke))==null?void 0:W.value;if(De){const ne=Ys[De];s=await ne({contents:s,filter:ze,extra:r})}}return s};let to="$R";const ap=I.useUnit(I.pinia),{selectTitle:lp}=I.storeToRefs(ap);let rp=[{label:"新增",prop:"新增"},{label:"导入",prop:"导入",type:"upload"},{label:"导出",prop:"导出",type:"popover",contents:[{label:"导出选中"},{label:"导出全部"}]}],np=[{label:"查看",prop:"查看"},{label:"编辑",prop:"编辑"},{label:"复制新增",prop:"复制新增"},{label:"删除",prop:"删除"}],tp=[{label:"导入",prop:"导入",type:"upload"},{label:"导出",prop:"导出",type:"popover",contents:[{label:"导出选中"},{label:"导出全部"}]}],op=[{label:"查看",prop:"查看"},{label:"编辑",prop:"编辑"}];const Qi=async(l,r)=>{let n=[],t=l==null?void 0:l.map(async s=>{var u,x,S,M,_,U,B,A,R,C,L,T,k,g,j,W,J,ke,ze,De,ne,xe,X,pe,Ke,Da,te,D,le,ge,ue,Ne,ia,ka,Ha,ee,Qe,Pe,ga,He,Ae,$e,Ge,Wa,Ia,P,F,G,ie,ce,pa,aa,Ie,Ce,wa,me,Je,Ze,Fe,ba,Le,da,re,Se,K,je,Be,za,Sa;let c=(M=(S=(x=(u=s==null?void 0:s.contents)==null?void 0:u.find(Ye=>{var ca;return(ca=Ye==null?void 0:Ye.key)==null?void 0:ca.includes("struct")}))==null?void 0:x.value)==null?void 0:S[0])==null?void 0:M.类型,b=Object.values(s==null?void 0:s.name);b=b==null?void 0:b.reverse();let h=(_=s==null?void 0:s.contents)==null?void 0:_.map(Ye=>Ye==null?void 0:Ye.key),v={comp:c,isShow:s==null?void 0:s.is_show,name:b==null?void 0:b[0],id:s==null?void 0:s.object_id,relatedTables:h,menuFilter:(U=s==null?void 0:s.filter)==null?void 0:U.menuFilter,status:s==null?void 0:s.status,fatherSyncContents:(B=s==null?void 0:s.filter)==null?void 0:B.fatherSyncs,relatedQuotes:(A=s==null?void 0:s.filter)==null?void 0:A.quotes,sonSyncContents:(R=s==null?void 0:s.filter)==null?void 0:R.sonSyncs};for(let Ye in b)parseInt(Ye)>=1&&(v[`name${parseInt(Ye)-1}`]=b[Ye]);let y=(L=(C=s==null?void 0:s.filter)==null?void 0:C.menuFilter)==null?void 0:L.split(",");if(((T=y==null?void 0:y.filter(Ye=>Ye==null?void 0:Ye.includes("@Filter")))==null?void 0:T.length)>0){let Ye=y==null?void 0:y.filter(La=>La==null?void 0:La.includes("@Filter"));Ye=Ye==null?void 0:Ye[0],Ye=(g=(k=Ye==null?void 0:Ye.replace("(",to))==null?void 0:k.split(to))==null?void 0:g[1],Ye=Ye==null?void 0:Ye.slice(0,(Ye==null?void 0:Ye.length)-1),Ye!=null&&Ye.includes("*")&&(Ye=(W=(j=Ye==null?void 0:Ye.replace("{",to))==null?void 0:j.split(to))==null?void 0:W[1],Ye=Ye==null?void 0:Ye.replace("}","")),Ye=na.calculatorAndToOr(Ye);let ca=(r==null?void 0:r.originPath)??"";(ca==null?void 0:ca[(ca==null?void 0:ca.length)-1])==="/"&&(ca=ca==null?void 0:ca.slice(0,(ca==null?void 0:ca.length)-1));let _e=await Pr(ca,!1),Q=(J=_e==null?void 0:_e.filter(La=>(La==null?void 0:La.comp)==="Table"))==null?void 0:J[0];Q=(ze=(ke=Q==null?void 0:Q.compData)==null?void 0:ke.find(La=>(La==null?void 0:La.key)==="tableContents"))==null?void 0:ze.contents;let ya=(ne=(De=lp.value)==null?void 0:De.find(La=>(La==null?void 0:La.condition)==="child"))==null?void 0:ne.value;Q=(xe=Q==null?void 0:Q.map(La=>{for(let yl in La)if((La==null?void 0:La[yl])===ya)return La}))==null?void 0:xe.filter(La=>La),Q=Q==null?void 0:Q[0],Ye=Ye==null?void 0:Ye[0];let We=[];for(let La in Ye){let yl="";rl.isObject(Q)&&(yl=(pe=(X=Object.keys(Q))==null?void 0:X.filter(Aa=>Aa==null?void 0:Aa.includes("."+La)))==null?void 0:pe[0]),yl!==""&&(Q!=null&&Q[yl])&&(Ye==null?void 0:Ye[La])===(Q==null?void 0:Q[yl])||Q!=null&&Q[La]&&(Ye==null?void 0:Ye[La])===(Q==null?void 0:Q[La])?We.push(!0):We.push(!1)}if(We!=null&&We.some(La=>La===!1)&&((Da=r==null?void 0:r.originPath)==null?void 0:Da[((Ke=r==null?void 0:r.originPath)==null?void 0:Ke.length)-1])!=="/")return}if(c==="Table"||c==="Method"){let Ye=((te=s==null?void 0:s.contents)==null?void 0:te.find(Aa=>{var el;return(el=Aa==null?void 0:Aa.key)==null?void 0:el.includes("content")}))||[],ca=[];v.comp="Table",Ye.value=(D=Ye==null?void 0:Ye.value)==null?void 0:D.sort((Aa,el)=>parseInt(Aa==null?void 0:Aa.id)-parseInt(el==null?void 0:el.id)),Ye.value=(le=Ye==null?void 0:Ye.value)==null?void 0:le.map(Aa=>{let el={};for(let Ja in Aa)JSON.stringify(Aa==null?void 0:Aa[Ja])==="{}"?el[Ja]="":el[Ja]=Aa==null?void 0:Aa[Ja];return el}),ca.push({key:"tableContents",contents:Ye==null?void 0:Ye.value});let _e=(ka=(ia=(Ne=(ue=(ge=s==null?void 0:s.contents)==null?void 0:ge.find(Aa=>{var el;return(el=Aa==null?void 0:Aa.key)==null?void 0:el.includes("struct")}))==null?void 0:ue.value)==null?void 0:Ne[0])==null?void 0:ia.结构)==null?void 0:ka.contents;Array.isArray(_e==null?void 0:_e[0])?_e[0]=(Ha=_e==null?void 0:_e[0])==null?void 0:Ha.filter(Aa=>(Aa==null?void 0:Aa.prop)!=="sort"&&(Aa==null?void 0:Aa.prop)!=="relatedId"):_e=_e==null?void 0:_e.filter(Aa=>(Aa==null?void 0:Aa.prop)!=="sort"&&(Aa==null?void 0:Aa.prop)!=="relatedId"),ca.push({key:"header",contents:_e}),ca.push({key:"filter",contents:(He=(ga=(Pe=(Qe=(ee=s==null?void 0:s.contents)==null?void 0:ee.find(Aa=>{var el;return(el=Aa==null?void 0:Aa.key)==null?void 0:el.includes("struct")}))==null?void 0:Qe.value)==null?void 0:Pe[0])==null?void 0:ga.引用)==null?void 0:He.contents});let Q=rp,ya=I.cloneDeep(np);c==="Method"&&ya.push({label:"生成方法",prop:"生成方法"}),!Array.isArray(_e==null?void 0:_e[0])&&((Ae=_e==null?void 0:_e[0])==null?void 0:Ae.prop)==="disabled"&&(Q=tp,ya=op);const We=["推力","真空","压力","温度","流量"],La=v.name;La&&We.includes(La)&&(Q=[...Q],Q.push({label:"导出paraform",prop:"导出paraform",type:"methodButton"}));let yl=[];if(!Array.isArray(_e==null?void 0:_e[0])&&(_e!=null&&_e.some(Aa=>{var el;return(Aa==null?void 0:Aa.calculatorFilter)&&((el=Aa==null?void 0:Aa.calculatorFilter)==null?void 0:el.includes("Manual"))}))){let Aa=($e=_e==null?void 0:_e.map(el=>el==null?void 0:el.calculatorFilter))==null?void 0:$e.filter(el=>el&&(el==null?void 0:el.includes("Manual")));Aa==null||Aa.forEach(el=>{var Pa;let Ja=$a.analyzeSplitToContent(el,",");if(Ja=Ja==null?void 0:Ja.map(Te=>((Te==null?void 0:Te[(Te==null?void 0:Te.length)-1])===","&&(Te=Te==null?void 0:Te.slice(0,(Te==null?void 0:Te.length)-1)),Te)),Ja!=null&&Ja.find(Te=>(Te==null?void 0:Te.includes("Extent"))&&(Te==null?void 0:Te.includes("Row")))&&(Ja!=null&&Ja.find(Te=>(Te==null?void 0:Te.includes("Button"))&&(Te==null?void 0:Te.includes(","))))){let Te=Ja==null?void 0:Ja.find(il=>il==null?void 0:il.includes("@Button"));Te=(Pa=Te==null?void 0:Te.split("="))==null?void 0:Pa[1],Te=Te==null?void 0:Te.slice(1,(Te==null?void 0:Te.length)-1),Te=Te==null?void 0:Te.split(","),Te=Te==null?void 0:Te[(Te==null?void 0:Te.length)-1],yl.push(Te)}}),yl=[...new Set(yl)],yl=yl==null?void 0:yl.map(el=>({label:el,prop:el,type:"methodButton"}))}else if(Array.isArray(_e==null?void 0:_e[0])&&((Ge=na.getColumnChild(_e==null?void 0:_e[0]))!=null&&Ge.some(Aa=>{var el;return(Aa==null?void 0:Aa.calculatorFilter)&&((el=Aa==null?void 0:Aa.calculatorFilter)==null?void 0:el.includes("Manual"))}))){let Aa=(Ia=(Wa=na.getColumnChild(_e==null?void 0:_e[0]))==null?void 0:Wa.map(el=>el==null?void 0:el.calculatorFilter))==null?void 0:Ia.filter(el=>el&&(el==null?void 0:el.includes("Manual")));Aa==null||Aa.forEach(el=>{var Pa;let Ja=$a.analyzeSplitToContent(el,",");if(Ja=Ja==null?void 0:Ja.map(Te=>((Te==null?void 0:Te[(Te==null?void 0:Te.length)-1])===","&&(Te=Te==null?void 0:Te.slice(0,(Te==null?void 0:Te.length)-1)),Te)),Ja!=null&&Ja.find(Te=>(Te==null?void 0:Te.includes("Extent"))&&(Te==null?void 0:Te.includes("Row")))&&(Ja!=null&&Ja.find(Te=>(Te==null?void 0:Te.includes("Button"))&&(Te==null?void 0:Te.includes(","))))){let Te=Ja==null?void 0:Ja.find(il=>il==null?void 0:il.includes("@Button"));Te=(Pa=Te==null?void 0:Te.split("="))==null?void 0:Pa[1],Te=Te==null?void 0:Te.slice(1,(Te==null?void 0:Te.length)-1),Te=Te==null?void 0:Te.split(","),Te=Te==null?void 0:Te[(Te==null?void 0:Te.length)-1],yl.push(Te)}}),yl=[...new Set(yl)],yl=yl==null?void 0:yl.map(el=>({label:el,prop:el,type:"methodButton"}))}ca.push({key:"extraButton",contents:Q}),ca.push({key:"rowButton",contents:[...ya,...yl]}),v.compData=await _o(ca,r),(P=v.compData)!=null&&P.find(Aa=>(Aa==null?void 0:Aa.key)==="tab")&&(v.tab=(G=(F=v.compData)==null?void 0:F.find(Aa=>(Aa==null?void 0:Aa.key)==="tab"))==null?void 0:G.contents),(ie=v.compData)!=null&&ie.find(Aa=>(Aa==null?void 0:Aa.key)==="choice")&&(v.choice=(pa=(ce=v.compData)==null?void 0:ce.find(Aa=>(Aa==null?void 0:Aa.key)==="choice"))==null?void 0:pa.contents)}else if(c==="Form"){let Ye=[],ca=(Ce=(Ie=(aa=s==null?void 0:s.contents)==null?void 0:aa.find(Q=>{var ya;return(ya=Q==null?void 0:Q.key)==null?void 0:ya.includes("content")}))==null?void 0:Ie.value)==null?void 0:Ce[0],_e=(Le=(ba=(Fe=(Ze=(Je=(me=(wa=s==null?void 0:s.contents)==null?void 0:wa.find(Q=>{var ya;return(ya=Q==null?void 0:Q.key)==null?void 0:ya.includes("struct")}))==null?void 0:me.value)==null?void 0:Je[0])==null?void 0:Ze.结构)==null?void 0:Fe.contents)==null?void 0:ba.map(Q=>(Q.value=ca==null?void 0:ca[Q==null?void 0:Q.prop],Q)))==null?void 0:Le.filter(Q=>(Q==null?void 0:Q.prop)!=="sort"&&(Q==null?void 0:Q.prop)!=="relatedId");Ye.push({key:"filter",contents:(je=(K=(Se=(re=(da=s==null?void 0:s.contents)==null?void 0:da.find(Q=>{var ya;return(ya=Q==null?void 0:Q.key)==null?void 0:ya.includes("struct")}))==null?void 0:re.value)==null?void 0:Se[0])==null?void 0:K.引用)==null?void 0:je.contents}),Ye.push({key:"formContent",contents:_e}),v.compData=await ep(Ye),(Be=v.compData)!=null&&Be.find(Q=>(Q==null?void 0:Q.key)==="tab")&&(v.tab=(Sa=(za=v.compData)==null?void 0:za.find(Q=>(Q==null?void 0:Q.key)==="tab"))==null?void 0:Sa.contents)}return v});return n=await Promise.all(t),n},ip=I.useLoginState(I.pinia),{loginUserInfo:yt}=I.storeToRefs(ip),ui=async(l,r,n="Manual",t=[])=>{var v;let s=l,c;Array.isArray(r==null?void 0:r[0])?c=na.getColumnChild(r==null?void 0:r[0]):c=r;let b=(v=c==null?void 0:c.filter(y=>{var u;return(y==null?void 0:y.calculatorFilter)&&((u=y==null?void 0:y.calculatorFilter)==null?void 0:u.includes(n))||(y==null?void 0:y.calculatorFilter)===""&&(y==null?void 0:y.functionName)}))==null?void 0:v.map(y=>({prop:y==null?void 0:y.prop,label:y==null?void 0:y.label,methods:y==null?void 0:y.calculatorFilter,functionName:y==null?void 0:y.functionName,functionRelatedWords:y==null?void 0:y.functionRelatedWords})),h=s==null?void 0:s.map(async y=>(y=await fp(y,b,c,n,s,t),y));return h=await Promise.all(h),h},sp=l=>{let r=l==null?void 0:l.contents,n=l==null?void 0:l.valueString,t=l==null?void 0:l.prop,s=l==null?void 0:l.headers,c;return Array.isArray(r)&&(r==null?void 0:r.length)!==1&&(r=na.getValueToObjectValue(r,na.getColumnContents(s))),n==null||n.forEach(b=>{var h;if(r!=null&&r[b]){let v=r==null?void 0:r[b];c=c?v?$a.isEqual(v.toString(),c.toString()):void 0:v}else{let v=(h=s==null?void 0:s.find(u=>(u==null?void 0:u.label)===b))==null?void 0:h.prop,y=(r==null?void 0:r[v])??0;c=c?y?$a.isEqual(y.toString(),c.toString()):void 0:y}}),r[t]=c===void 0?void 0:c?1:0,r},fr=l=>{const[r,n,t]=I.cloneDeep(l).split(":").map(Number);let s=+l;return!l||!(l!=null&&l.includes(":"))?s:(r??0)*3600+(n??0)*60+(t??0)},Un=l=>{const r=c=>c.toString().padStart(2,"0"),n=Math.floor(l/3600),t=Math.floor(l%3600/60),s=l%60;return`${r(n)}:${r(t)}:${parseInt(r(s))}`},cp=l=>{let r=l==null?void 0:l.contents,n=l==null?void 0:l.valueString,t=l==null?void 0:l.prop,s=l==null?void 0:l.headers,c=l==null?void 0:l.typeString,b=l==null?void 0:l.allContents,h=0;if(Array.isArray(r)&&(r==null?void 0:r.length)!==1&&(r=na.getValueToObjectValue(r,na.getColumnContents(s))),n==null||n.forEach(v=>{var y,u,x,S,M,_,U,B,A;if(r!=null&&r[v]){if(c==="Row")if(!((u=((y=r==null?void 0:r[v])==null?void 0:y.toString())??"")!=null&&u.includes(":"))&&!((x=h==null?void 0:h.toString())!=null&&x.includes(":"))){let R=+(r==null?void 0:r[v]);h=h+R}else h=fr(h.toString())+fr((S=r==null?void 0:r[v])==null?void 0:S.toString()),h=Un(h)}else if(c==="Row"){let R=(M=s==null?void 0:s.find(C=>(C==null?void 0:C.label)===v))==null?void 0:M.prop;if(!((U=Number.isNaN(r==null?void 0:r[R])?"":(_=r==null?void 0:r[R])==null?void 0:_.toString())!=null&&U.includes(":"))&&!((B=h==null?void 0:h.toString())!=null&&B.includes(":"))){let C=+((r==null?void 0:r[R])??0);h=h+C}else h=fr(h==null?void 0:h.toString())+fr((A=(r==null?void 0:r[R])??0)==null?void 0:A.toString()),h=Un(h)}}),c==="Column"){let v=[];n==null||n.forEach(y=>{let u=b==null?void 0:b.map(x=>{var S;return(x==null?void 0:x[y])??(x==null?void 0:x[(S=s==null?void 0:s.find(M=>(M==null?void 0:M.label)===y))==null?void 0:S.prop])});v=[...v,...u]}),h=v.reduce((y,u)=>{let x=0;Number.isNaN(y)||(x=+y);let S=0;return Number.isNaN(u)||(S=+u),x+S},0)}return r[t]=h,r},up=l=>{let r=l==null?void 0:l.contents,n=l==null?void 0:l.valueString,t=l==null?void 0:l.prop,s=l==null?void 0:l.headers,c=l==null?void 0:l.typeString,b=l==null?void 0:l.allContents,h=0;if(Array.isArray(r)&&(r==null?void 0:r.length)!==1&&(r=na.getValueToObjectValue(r,na.getColumnContents(s))),n==null||n.forEach(v=>{var y,u,x,S,M,_,U;if(r!=null&&r[v]){if(c==="Row")if(!((u=(y=r==null?void 0:r[v])==null?void 0:y.toString())!=null&&u.includes(":"))&&!((x=h==null?void 0:h.toString())!=null&&x.includes(":"))){let B=+(r==null?void 0:r[v]);h=h===0?h+B:h-B}else h=h===0?fr(h.toString())+fr(r==null?void 0:r[v].toString()):fr(h.toString())-fr(r==null?void 0:r[v].toString()),h=Un(h)}else if(c==="Row"){let B=(S=s==null?void 0:s.find(A=>(A==null?void 0:A.label)===v))==null?void 0:S.prop;if(!((_=Number.isNaN(r==null?void 0:r[B])?"":(M=r==null?void 0:r[B])==null?void 0:M.toString())!=null&&_.includes(":"))&&!((U=h==null?void 0:h.toString())!=null&&U.includes(":"))){let A=+((r==null?void 0:r[B])??0);h=h===0?h+A:h-A}else h=h===0?fr(h.toString())+fr(((r==null?void 0:r[B])??0).toString()):fr(h.toString())-fr(((r==null?void 0:r[B])??0).toString()),h=Un(h)}}),c==="Column"){let v=[];n==null||n.forEach(y=>{let u=b==null?void 0:b.map(x=>{var S;return(x==null?void 0:x[y])??(x==null?void 0:x[(S=s==null?void 0:s.find(M=>(M==null?void 0:M.label)===y))==null?void 0:S.prop])});v=[...v,...u]}),h=v.reduce((y,u)=>{let x=0;Number.isNaN(y)||(x=+y);let S=0;return Number.isNaN(u)||(S=+u),x-S},0)}return r[t]=h,r},dp=l=>{let r=l==null?void 0:l.contents,n=l==null?void 0:l.valueString,t=l==null?void 0:l.prop,s=l==null?void 0:l.headers,c=l==null?void 0:l.typeString,b=l==null?void 0:l.allContents,h=0;if(Array.isArray(r)&&(r==null?void 0:r.length)!==1&&(r=na.getValueToObjectValue(r,na.getColumnContents(s))),n==null||n.forEach(v=>{var y,u,x,S,M,_,U;if(r!=null&&r[v]){if(c==="Row")if(!((u=(y=r==null?void 0:r[v])==null?void 0:y.toString())!=null&&u.includes(":"))&&!((x=h==null?void 0:h.toString())!=null&&x.includes(":"))){let B=+(r==null?void 0:r[v]);h=h===0?h+B:h*B}else h=h===0?fr(h.toString())+fr(r==null?void 0:r[v].toString()):fr(h.toString())*fr(r==null?void 0:r[v].toString()),h=Un(h)}else if(c==="Row"){let B=(S=s==null?void 0:s.find(A=>(A==null?void 0:A.label)===v))==null?void 0:S.prop;if(!(r!=null&&r[B]))h=void 0;else if(!((_=Number.isNaN(r==null?void 0:r[B])?"":(M=r==null?void 0:r[B])==null?void 0:M.toString())!=null&&_.includes(":"))&&!((U=h==null?void 0:h.toString())!=null&&U.includes(":"))){let A=+((r==null?void 0:r[B])??0);h=h===0?h+A:h*A}else h=h===0?fr(h.toString())+fr(((r==null?void 0:r[B])??0).toString()):fr(h.toString())*fr(((r==null?void 0:r[B])??0).toString()),h=Un(h)}}),c==="Column"){let v=[];n==null||n.forEach(y=>{let u=b==null?void 0:b.map(x=>{var S;return(x==null?void 0:x[y])??(x==null?void 0:x[(S=s==null?void 0:s.find(M=>(M==null?void 0:M.label)===y))==null?void 0:S.prop])});v=[...v,...u]}),h=v.reduce((y,u)=>{let x=0;Number.isNaN(y)||(x=+y);let S=0;return Number.isNaN(u)||(S=+u),x*S},0)}return r[t]=h,r},pp=l=>{let r=l==null?void 0:l.contents,n=l==null?void 0:l.valueString,t=l==null?void 0:l.prop,s=l==null?void 0:l.headers,c=l==null?void 0:l.typeString,b=l==null?void 0:l.allContents,h=0;if(Array.isArray(r)&&(r==null?void 0:r.length)!==1&&(r=na.getValueToObjectValue(r,na.getColumnContents(s))),n==null||n.forEach(v=>{var y,u,x,S,M,_,U;if(r!=null&&r[v]){if(c==="Row")if(!((u=(y=r==null?void 0:r[v])==null?void 0:y.toString())!=null&&u.includes(":"))&&!((x=h==null?void 0:h.toString())!=null&&x.includes(":"))){let B=+(r==null?void 0:r[v]);h=h===0?h+B:h/B}else h=h===0?fr(h.toString())+fr(r==null?void 0:r[v].toString()):fr(h.toString())/fr(r==null?void 0:r[v].toString()),h=Un(h)}else if(c==="Row"){let B=(S=s==null?void 0:s.find(A=>(A==null?void 0:A.label)===v))==null?void 0:S.prop;if(!((_=Number.isNaN(r==null?void 0:r[B])?"":(M=r==null?void 0:r[B])==null?void 0:M.toString())!=null&&_.includes(":"))&&!((U=h==null?void 0:h.toString())!=null&&U.includes(":"))){let A=+((r==null?void 0:r[B])??0);h=h===0?h+A:h/A}else h=h===0?fr(h.toString())+fr(((r==null?void 0:r[B])??0).toString()):fr(h.toString())/fr(((r==null?void 0:r[B])??0).toString()),h=Un(h)}}),c==="Column"){let v=[];n==null||n.forEach(y=>{let u=b==null?void 0:b.map(x=>{var S;return(x==null?void 0:x[y])??(x==null?void 0:x[(S=s==null?void 0:s.find(M=>(M==null?void 0:M.label)===y))==null?void 0:S.prop])});v=[...v,...u]}),h=v.reduce((y,u)=>{let x=0;Number.isNaN(y)||(x=+y);let S=0;return Number.isNaN(u)||(S=+u),x/S},0)}return r[t]=h.toFixed(2),r},oo={Sum:cp,Substract:up,Multiple:dp,Divide:pp,Compare:sp},fp=async(l,r,n,t="Auto",s,c=[])=>{var u,x,S,M,_,U,B,A,R,C,L,T,k,g,j,W,J,ke,ze,De,ne;let b=l,h=[],v=await I.getPageDataApi({platId:parseInt((u=yt==null?void 0:yt.value)==null?void 0:u.plat_id),pageName:"menu"});v=(M=(S=(x=v==null?void 0:v.data)==null?void 0:x.result)==null?void 0:S.filter(xe=>(xe==null?void 0:xe.property_name)===""))==null?void 0:M[0];let y=[];if(v!=null&&v.object_name){v=v==null?void 0:v.object_name;let xe=await I.getPageDataApi({platId:parseInt((_=yt==null?void 0:yt.value)==null?void 0:_.plat_id),pageName:v});xe=(C=(R=(A=(B=(U=xe==null?void 0:xe.data)==null?void 0:U.result)==null?void 0:B[0])==null?void 0:A.contents)==null?void 0:R.find(X=>{var pe;return(pe=X==null?void 0:X.key)==null?void 0:pe.includes("content")}))==null?void 0:C.value,h=(L=xe==null?void 0:xe.map(X=>({functionName:X==null?void 0:X.函数名称,functionContent:X==null?void 0:X.输出值})))==null?void 0:L.filter(X=>(X==null?void 0:X.functionContent)!==""),h==null||h.forEach(X=>{y.push(X.functionName),oo[X.functionName]=new Function("return "+X.functionContent)()})}if((r==null?void 0:r.length)===0)return b;for(let xe in r){let X=(T=r==null?void 0:r[xe])==null?void 0:T.functionName;const pe=oo==null?void 0:oo[X];let Ke=(k=r==null?void 0:r[xe])==null?void 0:k.methods;if(Ke=$a.analyzeSplitToContent(Ke,","),(g=Ke==null?void 0:Ke.find(Da=>Da==null?void 0:Da.includes("@Type")))!=null&&g.includes(t)||(Ke==null?void 0:Ke.length)===0){let Da=((J=(W=(j=Ke==null?void 0:Ke.find(te=>te==null?void 0:te.includes("@Extent")))==null?void 0:j.replace(":","="))==null?void 0:W.split("="))==null?void 0:J[1])??[];if(await new Function("return ")(),(y==null?void 0:y.length)>0&&y.find(te=>te===X)){let te="";try{let le=(ke=r==null?void 0:r[xe])==null?void 0:ke.functionRelatedWords,ge=(c==null?void 0:c.length)>0?c==null?void 0:c.map(Ne=>{var ia;return Ne==null?void 0:Ne[(ia=r==null?void 0:r[xe])==null?void 0:ia.prop]}):["0"];ge=ge==null?void 0:ge.map(Ne=>Ne==null?void 0:Ne.slice((Ne==null?void 0:Ne.length)-5,Ne==null?void 0:Ne.length)),ge=ge==null?void 0:ge.map(Ne=>$a.isNumber(parseInt(Ne))&&parseInt(Ne)?parseInt(Ne):0);let ue=Math.max(...ge);le=le==null?void 0:le.map(Ne=>{if(Ne!=null&&Ne.includes("'"))return Ne==null?void 0:Ne.replaceAll("'","");if(Ne!=null&&Ne.includes("@"))return ue+1;{let ia=Object.keys(b);return Ne=(b==null?void 0:b[Ne])??(b==null?void 0:b[ia==null?void 0:ia.find(ka=>ka==null?void 0:ka.includes("."+Ne))]),Ne}}),te=pe(...le)}catch(le){rl.ElMessage.warning("关联数据出现错误,"+le.message)}let D=(ze=r==null?void 0:r[xe])==null?void 0:ze.prop;b[D]=te}else b=pe({contents:b,valueString:(De=r==null?void 0:r[xe])==null?void 0:De.functionRelatedWords,prop:(ne=r==null?void 0:r[xe])==null?void 0:ne.prop,headers:n,typeString:Da,allContents:s})}}return b},hp=I.useLoginState(I.pinia),{loginUserInfo:Hr}=I.storeToRefs(hp),vp=I.useMenuState(I.pinia),{activeMenuPath:es,currentMenuPath:io}=I.storeToRefs(vp),Gs=I.useUnit(I.pinia);let as="$R";const{selectTitle:xt}=I.storeToRefs(Gs),Js=async(l,r)=>{var b,h,v,y,u,x,S,M,_,U,B,A,R;let n=es.value,t="",s=((b=xt==null?void 0:xt.value)==null?void 0:b.find(C=>(C==null?void 0:C.condition)==="child"&&!(C!=null&&C.relatedContent)))??void 0;(l==null?void 0:l.length)===0||(n=r?n:(h=l==null?void 0:l[0])==null?void 0:h.object_name,t=(v=l==null?void 0:l[0])==null?void 0:v.father_name);let c=[];if(t!==""){let C=t;(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 L=await Pr(C,!1);L=(y=L==null?void 0:L[0])==null?void 0:y.compData;let T=(u=L==null?void 0:L.find(g=>(g==null?void 0:g.key)==="header"))==null?void 0:u.contents;T=((x=T==null?void 0:T.find(g=>g==null?void 0:g.isMainKey))==null?void 0:x.prop)??((S=T==null?void 0:T[0])==null?void 0:S.prop);let k=(_=(M=L==null?void 0:L.find(g=>(g==null?void 0:g.key)==="tableContents"))==null?void 0:M.contents)==null?void 0:_.map(g=>({label:g==null?void 0:g[T],value:g==null?void 0:g[T]}));c=(U=t==null?void 0:t.split("/"))==null?void 0:U.map(g=>(g===""?s?(s.isShow=!0,g=s):g={value:g,condition:"child",options:k,parentContent:(t==null?void 0:t[(t==null?void 0:t.length)-1])==="/"?t==null?void 0:t.slice(0,(t==null?void 0:t.length)-1):t,isShow:!0}:g={condition:"parent",value:g.trim(),isShow:!0},g))}if(n!==""){let C=(B=n==null?void 0:n.split("/"))==null?void 0:B.map(L=>(L={condition:"normal",value:L.trim(),isShow:!0},L));((A=C==null?void 0:C[0])==null?void 0:A.value)===((R=c==null?void 0:c[0])==null?void 0:R.value)&&(C=C==null?void 0:C.filter((L,T)=>T!==0)),c=[...c??[],...C??[]]}t===""&&s&&((s==null?void 0:s.parentContent)!==es.value&&(s.isShow=!1),(s==null?void 0:s.value)!==""&&c.push(s)),Gs.setSelectTitle(c)},mp=async l=>{var c,b,h,v,y,u,x,S,M;let r=await I.getPageDataApi({platId:parseInt((c=Hr==null?void 0:Hr.value)==null?void 0:c.plat_id),pageName:"menu"}),n=(b=r==null?void 0:r.data)==null?void 0:b.result,t=(u=(y=(v=(h=l==null?void 0:l.filter(_=>(_==null?void 0:_.comp)==="Table"))==null?void 0:h[0])==null?void 0:v.compData)==null?void 0:y.find(_=>(_==null?void 0:_.key)==="filter"))==null?void 0:u.contents;t=(M=(S=(x=t==null?void 0:t.replace("(",as))==null?void 0:x.split(as))==null?void 0:S[0])==null?void 0:M.replaceAll(":","/");let s=n==null?void 0:n.filter(_=>{var U;return(_==null?void 0:_.object_name)===io.value+"/"||((U=io.value)==null?void 0:U.includes(t))&&t+"/"===(_==null?void 0:_.object_name)});return(s==null?void 0:s.length)>0&&(l=l==null?void 0:l.map(_=>{var U;return(_==null?void 0:_.comp)==="Table"&&(_.compData=(U=_==null?void 0:_.compData)==null?void 0:U.map(B=>{var A,R,C;return(B==null?void 0:B.key)==="header"&&(Array.isArray((A=B.contents)==null?void 0:A[0])?B.contents[0]=(C=B.contents[0])==null?void 0:C.map((L,T)=>{var k;return T===0&&(L.isExistChild=!0,(k=io.value)!=null&&k.includes(t)&&(L.fatherPath=t)),L}):B.contents=(R=B.contents)==null?void 0:R.map((L,T)=>{var k;return T===0&&(L.isExistChild=!0,(k=io.value)!=null&&k.includes(t)&&(L.fatherPath=t)),L})),B})),_})),l},Pr=async(l,r,n={})=>{var b,h,v,y,u,x,S,M,_,U,B,A;let t=await I.getPageDataApi({platId:parseInt((b=Hr==null?void 0:Hr.value)==null?void 0:b.plat_id),pageName:l}),s=(h=t==null?void 0:t.data)==null?void 0:h.result;if((s==null?void 0:s.length)===0&&(n!=null&&n.originPath)&&(n==null?void 0:n.originPath)!==l){let R=await I.getPageDataApi({platId:parseInt((v=Hr==null?void 0:Hr.value)==null?void 0:v.plat_id),pageName:n==null?void 0:n.originPath});if(((u=(y=R==null?void 0:R.data)==null?void 0:y.result)==null?void 0:u.length)>0){let C=await Qi((x=R==null?void 0:R.data)==null?void 0:x.result,n);C=C==null?void 0:C.map(async k=>{var W,J,ke,ze,De,ne,xe,X,pe,Ke,Da,te,D,le,ge,ue,Ne,ia,ka,Ha,ee,Qe,Pe,ga,He,Ae,$e,Ge,Wa,Ia;let g=[],j=(W=Object.keys(k))==null?void 0:W.filter(P=>P==null?void 0:P.includes("name"));for(let P in k)j!=null&&j.find(F=>F===P)&&g.push(k==null?void 0:k[P]);if(g=g.reverse(),(k==null?void 0:k.comp)==="Table"){let P=(ze=(ke=(J=k==null?void 0:k.compData)==null?void 0:J.find(G=>(G==null?void 0:G.key)==="tableContents"))==null?void 0:ke.contents)==null?void 0:ze.map(G=>{let ie={};for(let ce in G)ce!=="id"&&ce!=="create_time"&&ce!=="update_time"&&ce!=="sort"&&ce!=="create_user_id"&&ce!=="update_user_id"&&ce!=="department_id"&&ce!=="relatedId"&&(ie[ce]=G==null?void 0:G[ce]);return G=Object.values(ie),G}),F=(ne=(De=k==null?void 0:k.compData)==null?void 0:De.find(G=>(G==null?void 0:G.key)==="header"))==null?void 0:ne.contents;if(Array.isArray(F==null?void 0:F[0])?(F[0].push({label:"排序",prop:"sort"}),F[0].push({label:"relatedId",prop:"relatedId",formType:"Upload"}),(xe=F[0])!=null&&xe.find(G=>(G==null?void 0:G.prop)==="disabled")&&(F[0]=(X=F[0])==null?void 0:X.filter(G=>(G==null?void 0:G.prop)!=="disabled"),F[0].unshift({label:"",prop:"disabled",sortable:!1}))):(F.push({label:"排序",prop:"sort"}),F.push({label:"relatedId",prop:"relatedId",formType:"Upload"}),F!=null&&F.find(G=>(G==null?void 0:G.prop)==="disabled")&&(F=F==null?void 0:F.filter(G=>(G==null?void 0:G.prop)!=="disabled"),F.unshift({label:"",prop:"disabled",sortable:!1}))),F!=null&&F.some(G=>{var ie;return(G==null?void 0:G.calculatorFilter)&&((ie=G==null?void 0:G.calculatorFilter)==null?void 0:ie.includes("Auto"))})&&(P=await ui(P,F,"Auto"),P=P==null?void 0:P.map(G=>Object.values(G))),k!=null&&k.fatherSyncContents){Array.isArray((pe=k==null?void 0:k.fatherSyncContents)==null?void 0:pe[0])&&(k.fatherSyncContents=(Ke=k==null?void 0:k.fatherSyncContents)==null?void 0:Ke[0]);let G=(Da=xt.value)==null?void 0:Da.find(ie=>(ie==null?void 0:ie.condition)==="child");k.fatherSyncContents=(te=k==null?void 0:k.fatherSyncContents)==null?void 0:te.map(ie=>{var ce,pa,aa,Ie,Ce,wa;return((pa=ie==null?void 0:ie.menus)==null?void 0:pa[((ce=ie==null?void 0:ie.menus)==null?void 0:ce.length)-1])==="/"&&(G==null?void 0:G.parentContent)+"/"!==(ie==null?void 0:ie.menus)?ie.menus=(ie==null?void 0:ie.menus)+(G==null?void 0:G.value):((Ie=ie==null?void 0:ie.menus)==null?void 0:Ie[((aa=ie==null?void 0:ie.menus)==null?void 0:aa.length)-1])==="/"&&(G==null?void 0:G.parentContent)+"/"===(ie==null?void 0:ie.menus)&&(ie.menus=(wa=ie.menus)==null?void 0:wa.slice(0,((Ce=ie.menus)==null?void 0:Ce.length)-1)),ie})}if(k!=null&&k.sonSyncContents){Array.isArray((D=k==null?void 0:k.sonSyncContents)==null?void 0:D[0])&&(k.sonSyncContents=(le=k==null?void 0:k.sonSyncContents)==null?void 0:le[0]);let G=(ge=xt.value)==null?void 0:ge.find(ie=>(ie==null?void 0:ie.condition)==="child");k.sonSyncContents=(ue=k==null?void 0:k.sonSyncContents)==null?void 0:ue.map(ie=>{var ce,pa,aa,Ie,Ce,wa;return((pa=ie==null?void 0:ie.menus)==null?void 0:pa[((ce=ie==null?void 0:ie.menus)==null?void 0:ce.length)-1])==="/"&&(G==null?void 0:G.parentContent)+"/"!==(ie==null?void 0:ie.menus)?ie.menus=(ie==null?void 0:ie.menus)+(G==null?void 0:G.value):((Ie=ie==null?void 0:ie.menus)==null?void 0:Ie[((aa=ie==null?void 0:ie.menus)==null?void 0:aa.length)-1])==="/"&&(G==null?void 0:G.parentContent)+"/"===(ie==null?void 0:ie.menus)&&(ie.menus=(wa=ie.menus)==null?void 0:wa.slice(0,((Ce=ie.menus)==null?void 0:Ce.length)-1)),ie})}if(k!=null&&k.relatedQuotes){Array.isArray((Ne=k==null?void 0:k.relatedQuotes)==null?void 0:Ne[0])&&(k.relatedQuotes=(ia=k==null?void 0:k.relatedQuotes)==null?void 0:ia[0]);let G=(ka=xt.value)==null?void 0:ka.find(ie=>(ie==null?void 0:ie.condition)==="child");k.relatedQuotes=(Ha=k==null?void 0:k.relatedQuotes)==null?void 0:Ha.map(ie=>{var ce,pa,aa,Ie,Ce,wa;return((pa=ie==null?void 0:ie.menus)==null?void 0:pa[((ce=ie==null?void 0:ie.menus)==null?void 0:ce.length)-1])==="/"&&(G==null?void 0:G.parentContent)+"/"!==(ie==null?void 0:ie.menus)?ie.menus=(ie==null?void 0:ie.menus)+(G==null?void 0:G.value):((Ie=ie==null?void 0:ie.menus)==null?void 0:Ie[((aa=ie==null?void 0:ie.menus)==null?void 0:aa.length)-1])==="/"&&(G==null?void 0:G.parentContent)+"/"===(ie==null?void 0:ie.menus)&&(ie.menus=(wa=ie.menus)==null?void 0:wa.slice(0,((Ce=ie.menus)==null?void 0:Ce.length)-1)),ie})}k={filter:(Qe=(ee=k==null?void 0:k.compData)==null?void 0:ee.find(G=>(G==null?void 0:G.key)==="filter"))==null?void 0:Qe.contents,key:k==null?void 0:k.comp,name:g,tableColumns:F,tableContents:P,menuFilter:k==null?void 0:k.menuFilter,fatherSyncContents:k==null?void 0:k.fatherSyncContents,relatedQuotes:k==null?void 0:k.relatedQuotes,sonSyncContents:k==null?void 0:k.sonSyncContents}}else{let P=(He=(ga=(Pe=k==null?void 0:k.compData)==null?void 0:Pe.find(G=>(G==null?void 0:G.key)==="formContent"))==null?void 0:ga.contents)==null?void 0:He.map(G=>(G==null?void 0:G.value)??"");P=[P];let F=(Ge=($e=(Ae=k==null?void 0:k.compData)==null?void 0:Ae.find(G=>(G==null?void 0:G.key)==="formContent"))==null?void 0:$e.contents)==null?void 0:Ge.map(G=>(G.value="",G));k={contents:P,filter:(Ia=(Wa=k==null?void 0:k.compData)==null?void 0:Wa.find(G=>(G==null?void 0:G.key)==="filter"))==null?void 0:Ia.contents,key:k==null?void 0:k.comp,name:g,value:F,fatherSyncContents:k==null?void 0:k.fatherSyncContents,relatedQuotes:k==null?void 0:k.relatedQuotes,sonSyncContents:k==null?void 0:k.sonSyncContents}}return k.isShow=!1,k}),C=await Promise.all(C);let L=[{key:"menuPath",contents:[{path:l,fatherPath:(_=(M=(S=R==null?void 0:R.data)==null?void 0:S.result)==null?void 0:M[0])==null?void 0:_.father_name,isShow:!1}]},{key:l,contents:C}];await I.createPlatFormDataApi({platId:parseInt((U=Hr==null?void 0:Hr.value)==null?void 0:U.plat_id),changeData:L});let T=await I.getPageDataApi({platId:parseInt((B=Hr==null?void 0:Hr.value)==null?void 0:B.plat_id),pageName:l});s=(A=T==null?void 0:T.data)==null?void 0:A.result}}r&&await Js(s,!!(n!=null&&n.originPath));let c=await Qi(s,n);return r&&(c=await mp(c)),c},ls=async l=>{var t,s,c,b,h,v,y,u,x,S,M;let r=(t=l==null?void 0:l.menus)==null?void 0:t.join("/");l!=null&&l.endChildMenu&&(l==null?void 0:l.endChildMenu)!==""&&(r==null?void 0:r[(r==null?void 0:r.length)-1])==="/"&&(r=r+(l==null?void 0:l.endChildMenu)),(r==null?void 0:r[(r==null?void 0:r.length)-1])==="/"&&(r=r+((c=(s=l.value)==null?void 0:s.split(" "))==null?void 0:c[0]));let n=await Pr(r,!1);if(n=(b=n==null?void 0:n.filter(_=>{var U,B;return(_==null?void 0:_.name)===((B=l==null?void 0:l.groups)==null?void 0:B[((U=l==null?void 0:l.groups)==null?void 0:U.length)-1])}))==null?void 0:b[0],(v=(h=n==null?void 0:n.compData)==null?void 0:h.find(_=>(_==null?void 0:_.key)==="tableContents"))!=null&&v.contents){n=(u=(y=n==null?void 0:n.compData)==null?void 0:y.find(U=>(U==null?void 0:U.key)==="tableContents"))==null?void 0:u.contents;let _=((x=l==null?void 0:l.words)==null?void 0:x[0])??(l==null?void 0:l.prop);return n=n==null?void 0:n.filter(U=>{var B,A,R;return(U==null?void 0:U[l!=null&&l.endChildMenu?_:l==null?void 0:l.prop])===(l!=null&&l.relatedWords&&((B=l==null?void 0:l.relatedWords)==null?void 0:B.length)>0?(R=(A=l.value)==null?void 0:A.split(" "))==null?void 0:R[0]:l.value)}),n==null?void 0:n[0]}else{let _=(M=(S=n==null?void 0:n.compData)==null?void 0:S.find(B=>(B==null?void 0:B.key)==="formContent"))==null?void 0:M.contents,U={};return _==null||_.forEach(B=>{U[B.prop]=B.value}),U}},yp={key:0,class:"extra-button-content"},gp={class:"table-operator-wrap"},bp={key:0,class:"extra-button-filter"},kp={key:1,class:"extra-header"},xp=["onClick"],_p={class:"table-op-text"},wp={class:"table-op-text"},Cp={class:"drop-menu",style:{width:"120px"}},Ep=["onClick"],Sp={key:0},Dp={key:1},Bp=["onClick"],Np={class:"table-op-text"},Tp={key:1,class:"extra-button-content tabs-button-wrapper"},Ap={class:"table-operator-wrap"},zp={class:"extra-button-filter"},Mp={key:0,class:"extra-header"},Op={class:"table-op-action"},Ip={class:"table-op-text"},Lp={class:"drop-menu",style:{width:"120px"}},Vp={key:0},$p={key:1},Rp=["onClick"],Pp={class:"table-op-text"},Fp={__name:"header",props:{pageLayout:{type:String,default:"vertical"},lockingPage:Boolean,level:{type:Number,default:1},compName:{type:String,default:"表格名称",required:!1},filterShow:{type:Boolean,default:!1},isDevMode:Boolean,selectNums:Number,dataNums:Number,filterValues:Array,buttons:{type:Array,default:()=>[]},columns:{type:Array,default:()=>[]}},emits:["buttonClick","filter","getImportData"],setup(l,{emit:r}){const n=r,t=l,s=a.ref(""),c=a.ref(!1),b=a.ref([]),h=a.ref([{label:"清空",background:"#999999"},{label:"确认"}]),v=[{label:"新增",icon:"new"},{label:"导入",icon:"import_101"},{label:"导出",icon:"export_101"},{label:"导出paraform",icon:"export_101"},{label:"OCR识别",icon:"OCR识别"},{label:"切换视图",icon:"cardViewport_101"}];function y(k,g){return k.map(j=>{const W={...j};return g.forEach(J=>{delete W[J]}),W})}function u(k){if(!k||k.t!=="n")return(k==null?void 0:k.v)??"";const g=k.v;if(k.z){const j=String(k.z).toLowerCase(),W=["yyyy/mm/dd","yyyy-mm-dd","yyyy.mm.dd","yy/mm/dd","yy-mm-dd","yy.mm.dd","mm/dd/yy","mm-dd-yy","mm.dd.yy","dd/mm/yy","dd-mm-yy","dd.mm.yy","m/d/yy","m/d/yyyy","d/m/yy","d/m/yyyy","yyyy年","yy年","m月","d日","yyyy年m月d日","yy年m月d日","[$-f800]","[$-f400]"];for(const ze of W)if(j.includes(ze))return x(g);const J=/[ymdhms]/.test(j),ke=/^[0#\.\,\s]+$/.test(j.replace(/[\\\/\-:]/g,""));if(J&&!ke)return x(g)}if(g>=1&&g<=73050){if(g<5e3)return g;if(g>=5e3&&g<4e4){const j=Math.floor((g-25569)/365.25)+1970;return j>=1970&&j<=2e3&&k.z&&/[ymd]/.test(String(k.z).toLowerCase())?x(g):g}if(g>=4e4)return x(g)}return g}function x(k){if(typeof k!="number")return k;try{const g=new Date((k-25569)*86400*1e3);if(isNaN(g.getTime()))return k;const j=g.getFullYear(),W=String(g.getMonth()+1).padStart(2,"0"),J=String(g.getDate()).padStart(2,"0");return`${j}-${W}-${J}`}catch{return k}}const S=k=>{const g=k.raw;if(!g)return;const j=new FileReader;j.onload=W=>{try{const J=new Uint8Array(W.target.result),ke=na.readSync(J,{type:"array"}),ze=ke.SheetNames[0],De=ke.Sheets[ze],xe=na.utils.decode_range(De["!ref"]).e.c+1,X=new Array(xe).fill(""),pe=[];for(const le in De){if(le[0]==="!")continue;const{r:ge,c:ue}=na.utils.decode_cell(le),Ne=De[le];let ia=u(Ne);if((ia==null||ia==="")&&(ia=""),ge===0)X[ue]=ia;else{if(!pe[ge-1]){pe[ge-1]={};for(let ka=0;ka<xe;ka++)pe[ge-1][`col_${ka}`]=""}pe[ge-1][`col_${ue}`]=ia}}for(let le=0;le<xe;le++)X[le]===void 0&&(X[le]="");const Ke=[];for(let le=0;le<X.length;le++)(!X[le]||X[le].toString().trim()==="")&&Ke.push(le);let Da,te;(Ke==null?void 0:Ke.length)>0?(rl.ElMessage.warning("存在键为空的列,已自动过滤,请检查补充"),Da=X.filter((le,ge)=>!Ke.includes(ge)),te=y(pe,Ke==null?void 0:Ke.map(le=>`col_${le}`))):(Da=X,te=pe);const D=pe==null?void 0:pe[0];if(!(D!=null&&D.hasOwnProperty("col_0")))return rl.ElMessage.error("导入的数据列不匹配,请检查是否错位");n("getImportData",Da,te)}catch(J){throw rl.ElMessage.error(J.message),new Error(J.message)}},j.readAsArrayBuffer(g)},M=k=>{var j;const g=(j=b.value)==null?void 0:j.reduce((W,J,ke)=>(ke===0?W[J.label]=k:W[J.label]=J==null?void 0:J.value,W),{});n("filter",g,k,!0)},_=(k,g={})=>{n("buttonClick",k,"",g)},U=k=>{var g,j;b.value=(j=(g=na.getColumnChild(I.cloneDeep(k)))==null?void 0:g.filter(W=>(W==null?void 0:W.label)!==""&&(W==null?void 0:W.label)!=="操作"))==null?void 0:j.map(W=>({label:(W==null?void 0:W.label)??"",value:"",name:(W==null?void 0:W.prop)??"",isFormColHidden:W==null?void 0:W.isTableColHidden,width:2,prop:(W==null?void 0:W.prop)??""}))},B=a.ref(!1),A=k=>{var g;if((k==null?void 0:k.buttonName)==="确认"&&(n("filter",k==null?void 0:k.content),B.value=(k==null?void 0:k.content)&&Object.values(k==null?void 0:k.content).length>0),(k==null?void 0:k.buttonName)==="清空"){const j=I.cloneDeep(k==null?void 0:k.content);for(const W in j)j[W]="";b.value=(g=b.value)==null?void 0:g.map(W=>({...W,value:""})),n("filter",j),B.value=!1}c.value=!1},R=()=>{c.value=!c.value},C=()=>{var g,j;b.value=(g=b.value)==null?void 0:g.map(W=>({...W,value:""}));const k=(j=b.value)==null?void 0:j.reduce((W,J)=>(W[J.label]=J.value,W),{});n("filter",k)},L=a.ref(null);let T;return T=k=>{var J;if(!c.value)return;const g=(J=L==null?void 0:L.value)==null?void 0:J.$el,j=g==null?void 0:g.contains(k.target);let W=!1;document.querySelectorAll(".el-popover, .el-popper").forEach(ke=>{ke.contains(k.target)&&(W=!0)}),!j&&!W&&(c.value=!1)},a.onMounted(()=>{document.addEventListener("click",T),U(t.columns)}),a.onBeforeUnmount(()=>{document.removeEventListener("click",T)}),a.watch(()=>t.columns,()=>{U(t.columns)},{deep:!0,immediate:!0}),(k,g)=>{var De,ne,xe,X,pe,Ke,Da,te;const j=a.resolveComponent("el-icon"),W=a.resolveComponent("svg-icon"),J=a.resolveComponent("el-input"),ke=a.resolveComponent("el-upload"),ze=a.resolveComponent("el-button");return l.pageLayout==="vertical"?(a.openBlock(),a.createElementBlock("div",yp,[a.createElementVNode("div",{class:a.normalizeClass(l.compName?"table-name-wrap":""),style:a.normalizeStyle({background:(t==null?void 0:t.level)>1?"transparent":"var(--ssgroup-background)",paddingLeft:((t==null?void 0:t.level)-1)*12+"px",fontWeight:600-((t==null?void 0:t.level)-1)*100>=400?600-((t==null?void 0:t.level)-1)*100:400,fontSize:17-(t==null?void 0:t.level)>=14?17-(t==null?void 0:t.level)+"px":"14px"})},a.toDisplayString(l.compName),7),a.createElementVNode("div",gp,[t!=null&&t.filterShow?(a.openBlock(),a.createElementBlock("div",bp,[a.createVNode(wu,{trigger:"contextmenu",ref_key:"popOverRef",ref:L,title:"",width:800,placement:"bottom-start",isVisible:c.value,"onUpdate:isVisible":g[4]||(g[4]=D=>c.value=D)},{reference:a.withCtx(()=>{var D,le,ge,ue;return[a.createVNode(J,{modelValue:s.value,"onUpdate:modelValue":g[0]||(g[0]=Ne=>s.value=Ne),style:{"min-width":"80px"},placeholder:B.value?(ge=(le=(D=l.filterValues)==null?void 0:D.filter(Ne=>Ne))==null?void 0:le.slice(0,3))==null?void 0:ge.join("/"):"搜索","prefix-icon":a.unref(rl.search_default),clearable:"",onInput:M,disabled:((ue=b.value)==null?void 0:ue.length)===0},{suffix:a.withCtx(()=>{var Ne,ia;return[!s.value&&((ia=(Ne=l.filterValues)==null?void 0:Ne.filter(ka=>ka))!=null&&ia.join("/"))?(a.openBlock(),a.createBlock(j,{key:0,style:{cursor:"pointer"},onClick:C},{default:a.withCtx(()=>[a.createVNode(a.unref(rl.circle_close_default))]),_:1})):a.createCommentVNode("",!0)]}),append:a.withCtx(()=>[a.createElementVNode("span",{title:"条件查询",onClick:a.withModifiers(R,["stop"])},[a.createVNode(W,{name:"query",style:{width:"15px",height:"15px",cursor:"pointer"}})])]),_:1},8,["modelValue","placeholder","prefix-icon","disabled"])]}),content:a.withCtx(()=>[a.createElementVNode("div",{class:"form-content-value",onKeydown:g[1]||(g[1]=a.withModifiers(()=>{},["stop"])),onKeyup:g[2]||(g[2]=a.withModifiers(()=>{},["stop"])),onKeypress:g[3]||(g[3]=a.withModifiers(()=>{},["stop"]))},[(a.openBlock(),a.createBlock(fl.ssForm,{rowContents:b.value,buttonValue:h.value,isRowFlex:!0,isEnableWrap:!1,isButtonRow:!1,key:h.value,isStartJustify:!1,onOnButtonClick:A},null,8,["rowContents","buttonValue"]))],32)]),_:1},8,["isVisible"])])):a.createCommentVNode("",!0),l.buttons&&((De=l.buttons)==null?void 0:De.length)>0?(a.openBlock(),a.createElementBlock("div",kp,[(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,le)=>{var ge;return a.openBlock(),a.createElementBlock("div",{class:"extra-contents",key:le},[(D==null?void 0:D.type)==="upload"?(a.openBlock(),a.createBlock(ke,{key:0,class:"upload-button-wrap","on-change":S,accept:".xlsx,.xls","auto-upload":!1,action:"#","show-file-list":!1,disabled:!!l.lockingPage},{default:a.withCtx(()=>{var ue;return[a.createElementVNode("div",{class:a.normalizeClass(["table-op-action",{"is-disabled":!!l.lockingPage}]),onClick:Ne=>_(D==null?void 0:D.label)},[a.createVNode(W,{class:"table-op-icon",name:(ue=v==null?void 0:v.find(Ne=>(Ne==null?void 0:Ne.label)===(D==null?void 0:D.label)))==null?void 0:ue.icon},null,8,["name"]),a.createElementVNode("span",_p,a.toDisplayString(D==null?void 0:D.label),1)],10,xp)]}),_:2},1032,["disabled"])):a.createCommentVNode("",!0),(D==null?void 0:D.type)==="popover"?(a.openBlock(),a.createBlock(fl._sfc_main,{key:1},{dropTitle:a.withCtx(()=>{var ue;return[a.createElementVNode("div",{class:a.normalizeClass(["table-op-action",{"is-disabled":!!l.lockingPage}])},[a.createVNode(W,{class:"table-op-icon",name:(ue=v==null?void 0:v.find(Ne=>(Ne==null?void 0:Ne.label)===(D==null?void 0:D.label)))==null?void 0:ue.icon},null,8,["name"]),a.createElementVNode("span",wp,a.toDisplayString(D==null?void 0:D.label),1)],2)]}),dropMenu:a.withCtx(()=>[a.createElementVNode("div",Cp,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(D==null?void 0:D.contents,ue=>{var Ne,ia;return a.openBlock(),a.createElementBlock("div",{key:ue==null?void 0:ue.label,class:a.normalizeClass(["table-op-drop-item",{"is-disabled":!!l.lockingPage}]),onClick:ka=>!l.lockingPage&&_(ue==null?void 0:ue.label)},[a.createTextVNode(a.toDisplayString(ue==null?void 0:ue.label),1),(Ne=ue==null?void 0:ue.label)!=null&&Ne.includes("选中")?(a.openBlock(),a.createElementBlock("span",Sp,"("+a.toDisplayString(l.selectNums)+")",1)):a.createCommentVNode("",!0),(ia=ue==null?void 0:ue.label)!=null&&ia.includes("全部")?(a.openBlock(),a.createElementBlock("span",Dp,"("+a.toDisplayString(l.dataNums)+")",1)):a.createCommentVNode("",!0)],10,Ep)}),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:ue=>!l.lockingPage&&_(D==null?void 0:D.label,D)},[a.createVNode(W,{class:"table-op-icon",name:(ge=v==null?void 0:v.find(ue=>(ue==null?void 0:ue.label)===(D==null?void 0:D.label)))==null?void 0:ge.icon},null,8,["name"]),a.createElementVNode("span",Np,a.toDisplayString(D==null?void 0:D.label),1)],10,Bp)):a.createCommentVNode("",!0)])}),128))])):a.createCommentVNode("",!0)])])):(a.openBlock(),a.createElementBlock("div",Tp,[a.createElementVNode("div",Ap,[a.createElementVNode("div",zp,[a.createVNode(J,{modelValue:s.value,"onUpdate:modelValue":g[5]||(g[5]=D=>s.value=D),style:{"min-width":"80px"},placeholder:B.value?(pe=(X=(xe=l.filterValues)==null?void 0:xe.filter(D=>D))==null?void 0:X.slice(0,3))==null?void 0:pe.join("/"):"搜索","prefix-icon":a.unref(rl.search_default),clearable:"",onInput:M,disabled:((Ke=b.value)==null?void 0:Ke.length)===0},{suffix:a.withCtx(()=>{var D,le;return[!s.value&&((le=(D=l.filterValues)==null?void 0:D.filter(ge=>ge))!=null&&le.join("/"))?(a.openBlock(),a.createBlock(j,{key:0,style:{cursor:"pointer"},onClick:C},{default:a.withCtx(()=>[a.createVNode(a.unref(rl.circle_close_default))]),_:1})):a.createCommentVNode("",!0)]}),append:a.withCtx(()=>[a.createElementVNode("span",{title:"条件查询",onClick:a.withModifiers(R,["stop"])},[a.createVNode(W,{name:"query",style:{width:"15px",height:"15px",cursor:"pointer"}})])]),_:1},8,["modelValue","placeholder","prefix-icon","disabled"])]),l.buttons&&((Da=l.buttons)==null?void 0:Da.length)>0?(a.openBlock(),a.createElementBlock("div",Mp,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList((te=l.buttons)==null?void 0:te.filter(D=>l.isDevMode||(D==null?void 0:D.label)!=="修改模板"),(D,le)=>{var ge;return a.openBlock(),a.createElementBlock("div",{class:"extra-contents",key:le},[(D==null?void 0:D.type)==="upload"?(a.openBlock(),a.createBlock(ke,{key:0,class:"upload-button-wrap","on-change":S,accept:".xlsx,.xls","auto-upload":!1,action:"#","show-file-list":!1},{default:a.withCtx(()=>{var ue;return[a.createElementVNode("div",Op,[a.createVNode(W,{class:"table-op-icon",name:(ue=v==null?void 0:v.find(Ne=>(Ne==null?void 0:Ne.label)===(D==null?void 0:D.label)))==null?void 0:ue.icon},null,8,["name"]),a.createElementVNode("span",Ip,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(fl._sfc_main,{key:1},{dropTitle:a.withCtx(()=>[(D==null?void 0:D.type)==="popover"?(a.openBlock(),a.createBlock(ze,{key:0,style:{background:"transparent",color:"#000000"}},{icon:a.withCtx(()=>{var ue;return[a.createVNode(W,{class:"table-op-icon",name:(ue=v==null?void 0:v.find(Ne=>(Ne==null?void 0:Ne.label)===(D==null?void 0:D.label)))==null?void 0:ue.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",Lp,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(D==null?void 0:D.contents,ue=>(a.openBlock(),a.createBlock(ze,{key:ue==null?void 0:ue.label,style:{width:"100%",margin:"0",border:"none",display:"flex","justify-content":"flex-start"},onClick:Ne=>_(ue==null?void 0:ue.label)},{default:a.withCtx(()=>{var Ne,ia;return[a.createTextVNode(a.toDisplayString(ue==null?void 0:ue.label),1),(Ne=ue==null?void 0:ue.label)!=null&&Ne.includes("选中")?(a.openBlock(),a.createElementBlock("span",Vp,"("+a.toDisplayString(l.selectNums)+")",1)):a.createCommentVNode("",!0),(ia=ue==null?void 0:ue.label)!=null&&ia.includes("全部")?(a.openBlock(),a.createElementBlock("span",$p,"("+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:ue=>!l.lockingPage&&_(D==null?void 0:D.label,D)},[a.createVNode(W,{class:"table-op-icon",name:(ge=v==null?void 0:v.find(ue=>(ue==null?void 0:ue.label)===(D==null?void 0:D.label)))==null?void 0:ge.icon},null,8,["name"]),a.createElementVNode("span",Pp,a.toDisplayString(D==null?void 0:D.label),1)],10,Rp)):a.createCommentVNode("",!0)])}),128))])):a.createCommentVNode("",!0)])]))}}},jp=Ul._export_sfc(Fp,[["__scopeId","data-v-3a44c010"]]),Hp={__name:"index",props:{columns:Array,tableData:Array},setup(l){return(r,n)=>{const t=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 b;return a.openBlock(),a.createBlock(t,{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:(((b=c==null?void 0:c.label)==null?void 0:b.length)*2||4)*27)},{default:a.withCtx(h=>[a.renderSlot(r.$slots,"content",{row:h.row,column:h.column,$index:h.$index,scope:h}),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(c.children,(v,y)=>(a.openBlock(),a.createBlock(fl._sfc_main$2,{key:y,column:v,tableData:l.tableData},a.createSlots({_:2},[a.renderList(r.$slots,(u,x)=>({name:x,fn:a.withCtx(({row:S,slotData:M,item:_,column:U})=>[a.renderSlot(r.$slots,x,a.mergeProps({ref_for:!0},M??S,{item:_??v,slotData:M??S,row:S,column:U,columnProp:v}))])}))]),1032,["column","tableData"]))),128))]),_:2},1032,["label","prop","fixed","align","show-overflow-tooltip","width","min-width"])}),128))]),_:3},8,["data"])}}};class Up extends $a.Loader{constructor(r){super(r),this.littleEndian=!0}load(r,n,t,s){const c=this,b=new $a.FileLoader(c.manager);b.setPath(c.path),b.setResponseType("arraybuffer"),b.setRequestHeader(c.requestHeader),b.setWithCredentials(c.withCredentials),b.load(r,function(h){try{n(c.parse(h))}catch(v){s?s(v):console.error(v),c.manager.itemError(r)}},t,s)}_getDataView(r,n,t,s){switch(t){case"F":return s===8?r.getFloat64(n,this.littleEndian):r.getFloat32(n,this.littleEndian);case"I":return s===1?r.getInt8(n):s===2?r.getInt16(n,this.littleEndian):r.getInt32(n,this.littleEndian);case"U":return s===1?r.getUint8(n):s===2?r.getUint16(n,this.littleEndian):r.getUint32(n,this.littleEndian)}}parse(r){function n(M,_){const U=M.length,B=new Uint8Array(_);let A=0,R=0,C,L,T;do if(C=M[A++],C<32){if(C++,R+C>_)throw new Error("Output buffer is not large enough");if(A+C>U)throw new Error("Invalid compressed data");do B[R++]=M[A++];while(--C)}else{if(L=C>>5,T=R-((C&31)<<8)-1,A>=U)throw new Error("Invalid compressed data");if(L===7&&(L+=M[A++],A>=U))throw new Error("Invalid compressed data");if(T-=M[A++],R+L+2>_)throw new Error("Output buffer is not large enough");if(T<0)throw new Error("Invalid compressed data");if(T>=R)throw new Error("Invalid compressed data");do B[R++]=B[T++];while(--L+2)}while(A<U);return B}function t(M){const _={},U=new Uint8Array(M);let B="",A="",R=0,C=!1;const L=U.length;for(;R<L&&C===!1;){const j=String.fromCharCode(U[R++]);j===`
2
+ `||j==="\r"?(A.trim().toLowerCase().startsWith("data")&&(C=!0),A=""):A+=j,B+=j}const T=B.search(/[\r\n]DATA\s(\S*)\s/i),k=/[\r\n]DATA\s(\S*)\s/i.exec(B.slice(T-1));if(_.data=k[1],_.headerLen=k[0].length+T,_.str=B.slice(0,_.headerLen),_.str=_.str.replace(/#.*/gi,""),_.version=/^VERSION (.*)/im.exec(_.str),_.fields=/^FIELDS (.*)/im.exec(_.str),_.size=/^SIZE (.*)/im.exec(_.str),_.type=/^TYPE (.*)/im.exec(_.str),_.count=/^COUNT (.*)/im.exec(_.str),_.width=/^WIDTH (.*)/im.exec(_.str),_.height=/^HEIGHT (.*)/im.exec(_.str),_.viewpoint=/^VIEWPOINT (.*)/im.exec(_.str),_.points=/^POINTS (.*)/im.exec(_.str),_.version!==null&&(_.version=parseFloat(_.version[1])),_.fields=_.fields!==null?_.fields[1].split(" "):[],_.type!==null&&(_.type=_.type[1].split(" ")),_.width!==null&&(_.width=parseInt(_.width[1])),_.height!==null&&(_.height=parseInt(_.height[1])),_.viewpoint!==null&&(_.viewpoint=_.viewpoint[1]),_.points!==null&&(_.points=parseInt(_.points[1],10)),_.points===null&&(_.points=_.width*_.height),_.size!==null&&(_.size=_.size[1].split(" ").map(function(j){return parseInt(j,10)})),_.count!==null)_.count=_.count[1].split(" ").map(function(j){return parseInt(j,10)});else{_.count=[];for(let j=0,W=_.fields.length;j<W;j++)_.count.push(1)}_.offset={};let g=0;for(let j=0,W=_.fields.length;j<W;j++)_.data==="ascii"?_.offset[_.fields[j]]=j:(_.offset[_.fields[j]]=g,g+=_.size[j]*_.count[j]);return _.rowSize=g,_}const s=t(r),c=[],b=[],h=[],v=[],y=[],u=new $a.Color;if(s.data==="ascii"){const M=s.offset,B=new TextDecoder().decode(r).slice(s.headerLen).split(`
3
+ `);for(let A=0,R=B.length;A<R;A++){if(B[A]==="")continue;const C=B[A].split(" ");if(M.x!==void 0&&(c.push(parseFloat(C[M.x])),c.push(parseFloat(C[M.y])),c.push(parseFloat(C[M.z]))),M.rgb!==void 0){const L=s.fields.findIndex(ke=>ke==="rgb"),T=s.type[L],k=parseFloat(C[M.rgb]);let g=k;if(T==="F"){const ke=new Float32Array(1);ke[0]=k,g=new Int32Array(ke.buffer)[0]}const j=(g>>16&255)/255,W=(g>>8&255)/255,J=(g>>0&255)/255;u.setRGB(j,W,J,$a.SRGBColorSpace),h.push(u.r,u.g,u.b)}M.normal_x!==void 0&&(b.push(parseFloat(C[M.normal_x])),b.push(parseFloat(C[M.normal_y])),b.push(parseFloat(C[M.normal_z]))),M.intensity!==void 0&&v.push(parseFloat(C[M.intensity])),M.label!==void 0&&y.push(parseInt(C[M.label]))}}if(s.data==="binary_compressed"){const M=new Uint32Array(r.slice(s.headerLen,s.headerLen+8)),_=M[0],U=M[1],B=n(new Uint8Array(r,s.headerLen+8,_),U),A=new DataView(B.buffer),R=s.offset;for(let C=0;C<s.points;C++){if(R.x!==void 0){const L=s.fields.indexOf("x"),T=s.fields.indexOf("y"),k=s.fields.indexOf("z");c.push(this._getDataView(A,s.points*R.x+s.size[L]*C,s.type[L],s.size[L])),c.push(this._getDataView(A,s.points*R.y+s.size[T]*C,s.type[T],s.size[T])),c.push(this._getDataView(A,s.points*R.z+s.size[k]*C,s.type[k],s.size[k]))}if(R.rgb!==void 0){const L=s.fields.indexOf("rgb"),T=A.getUint8(s.points*R.rgb+s.size[L]*C+2)/255,k=A.getUint8(s.points*R.rgb+s.size[L]*C+1)/255,g=A.getUint8(s.points*R.rgb+s.size[L]*C+0)/255;u.setRGB(T,k,g,$a.SRGBColorSpace),h.push(u.r,u.g,u.b)}if(R.normal_x!==void 0){const L=s.fields.indexOf("normal_x"),T=s.fields.indexOf("normal_y"),k=s.fields.indexOf("normal_z");b.push(this._getDataView(A,s.points*R.normal_x+s.size[L]*C,s.type[L],s.size[L])),b.push(this._getDataView(A,s.points*R.normal_y+s.size[T]*C,s.type[T],s.size[T])),b.push(this._getDataView(A,s.points*R.normal_z+s.size[k]*C,s.type[k],s.size[k]))}if(R.intensity!==void 0){const L=s.fields.indexOf("intensity");v.push(this._getDataView(A,s.points*R.intensity+s.size[L]*C,s.type[L],s.size[L]))}if(R.label!==void 0){const L=s.fields.indexOf("label");y.push(A.getInt32(s.points*R.label+s.size[L]*C,this.littleEndian))}}}if(s.data==="binary"){const M=new DataView(r,s.headerLen),_=s.offset;for(let U=0,B=0;U<s.points;U++,B+=s.rowSize){if(_.x!==void 0){const A=s.fields.indexOf("x"),R=s.fields.indexOf("y"),C=s.fields.indexOf("z");c.push(this._getDataView(M,B+_.x,s.type[A],s.size[A])),c.push(this._getDataView(M,B+_.y,s.type[R],s.size[R])),c.push(this._getDataView(M,B+_.z,s.type[C],s.size[C]))}if(_.rgb!==void 0){const A=M.getUint8(B+_.rgb+2)/255,R=M.getUint8(B+_.rgb+1)/255,C=M.getUint8(B+_.rgb+0)/255;u.setRGB(A,R,C,$a.SRGBColorSpace),h.push(u.r,u.g,u.b)}if(_.normal_x!==void 0){const A=s.fields.indexOf("normal_x"),R=s.fields.indexOf("normal_y"),C=s.fields.indexOf("normal_z");b.push(this._getDataView(M,B+_.normal_x,s.type[A],s.size[A])),b.push(this._getDataView(M,B+_.normal_y,s.type[R],s.size[R])),b.push(this._getDataView(M,B+_.normal_z,s.type[C],s.size[C]))}if(_.intensity!==void 0){const A=s.fields.indexOf("intensity");v.push(this._getDataView(M,B+_.intensity,s.type[A],s.size[A]))}_.label!==void 0&&y.push(M.getInt32(B+_.label,this.littleEndian))}}const x=new $a.BufferGeometry;c.length>0&&x.setAttribute("position",new $a.Float32BufferAttribute(c,3)),b.length>0&&x.setAttribute("normal",new $a.Float32BufferAttribute(b,3)),h.length>0&&x.setAttribute("color",new $a.Float32BufferAttribute(h,3)),v.length>0&&x.setAttribute("intensity",new $a.Float32BufferAttribute(v,1)),y.length>0&&x.setAttribute("label",new $a.Int32BufferAttribute(y,1)),x.computeBoundingSphere();const S=new $a.PointsMaterial({size:.005});return h.length>0&&(S.vertexColors=!0),new $a.Points(x,S)}}const qp=I.useModelComp(I.pinia),{systemPath:rs}=I.storeToRefs(qp),so=a.ref(),ns=new WeakMap;function Wp(l,r,n,t,s){const c=async S=>{try{const M=await I.platformDownloadFile({url:S});if(M.status!==200)throw new Error(`下载失败: ${M.status}`);return M.data}catch(M){throw console.error("addModelFromUrl失败:",M),M}},b=S=>new Promise((M,_)=>{const U=new FileReader;U.onload=B=>{try{const A=B.target.result,C=new An.MTLLoader().parse(A);C.preload(),M(C)}catch(A){_(A)}},U.onerror=()=>{_(new Error("MTL文件读取失败"))},U.readAsText(S)}),h=async S=>{const M={materials:{},create:function(_){return this.materials[_]?this.materials[_]:(console.warn(`Material '${_}' not found, using default material`),new $a.MeshPhongMaterial({color:8947848,side:$a.DoubleSide}))},getAsArray:function(){const _=[];for(const U in this.materials)_.push(this.materials[U]);return _},preload:function(){for(const _ in this.materials)this.materials[_].map&&(this.materials[_].map.needsUpdate=!0)}};for(const _ of S){const U=await b(_);Object.assign(M.materials,U.materials)}return M.preload(),M},v=async(S,M=[])=>new Promise((_,U)=>{const B=new FileReader;B.onload=async A=>{try{const R=A.target.result;let C=null;M&&M.length>0&&(M.length===1?C=await b(M[0]):C=await h(M));const L=new An.OBJLoader;C&&L.setMaterials(C);const T=L.parse(R);C||T.traverse(k=>{k.isMesh&&(k.material=new $a.MeshPhongMaterial({color:8947848,side:$a.DoubleSide}))}),_(T)}catch(R){U(R)}},B.onerror=()=>{U(new Error("OBJ文件读取失败"))},B.readAsText(S)}),y=async S=>{var M;try{n.value=!0;const{scene:_}=l();if(!_)throw new Error("Scene not initialized");s();const U=[];for(let B=0;B<S.length;B++){const A=S[B];t.value=`正在加载模型 ${B+1}/${S.length}...`;const R=await c(A.objUrl),C=((M=A.objUrl)==null?void 0:M.split("/").pop())||`model_${B}.obj`,L=new File([R],C,{type:R.type});let T=[];if(A.mtlUrls){const g=Array.isArray(A.mtlUrls)?A.mtlUrls:[A.mtlUrls];for(let j=0;j<g.length;j++){const W=g[j],J=await c(W),ke=(W==null?void 0:W.split("/").pop())||`material_${B}_${j}.mtl`,ze=new File([J],ke,{type:J.type});T.push(ze)}}const k=await v(L,T);_.add(k),r.value.push(k),U.push(k)}return n.value=!1,U}catch(_){throw console.error("加载模型失败:",_),n.value=!1,_}},u=async(S,M,_=[],U=[])=>{let B;const A=S.toLowerCase();switch(A){case".txt":case".cpt":case".obj":const R=await M.text();if(A===".txt"||A===".cpt"){const ee=/^(?!.*\bf\b)[^\n]*?(-?\d*\.?\d+)[^\n]*?(-?\d*\.?\d+)[^\n]*?(-?\d*\.?\d+)[^\n]*?$/gm,Pe=[...R.matchAll(ee)].map(Ae=>({x:parseFloat(Ae[1]),y:parseFloat(Ae[2]),z:parseFloat(Ae[3])})),ga=new $a.BufferGeometry,He=Pe.flatMap(Ae=>[Ae.x,Ae.y,Ae.z]);if(ga.setAttribute("position",new $a.Float32BufferAttribute(He,3)),A===".txt"){const Ae=new $a.PointsMaterial({color:"#5B5C99",size:1,sizeAttenuation:!1});B=new $a.Points(ga,Ae)}else if(A===".cpt"){const Ae=new $a.LineBasicMaterial({color:"#5B5C99",linewidth:100});B=new $a.Line(ga,Ae)}}else if(A===".obj"){const ee=new An.OBJLoader;if(_&&_.length>0){const Qe=new An.MTLLoader;for(const Pe of _){const ga=await Pe.text(),He=Qe.parse(ga);He.preload(),ee.setMaterials(He);break}}B=ee.parse(R),(!_||_.length===0)&&B.traverse(Qe=>{Qe.isMesh&&(Qe.material=new $a.MeshPhongMaterial({color:"#B3B3D4"})),Qe instanceof $a.Mesh&&(Qe.material.side=$a.DoubleSide)})}break;case".stl":const C=await M.arrayBuffer(),T=new An.STLLoader().parse(C),k=new $a.MeshPhongMaterial({color:"#B3B3D4",side:$a.DoubleSide});B=new $a.Mesh(T,k);break;case".nc":const g=["Mach_B_Axis_0.STL","Mach_C_Axis_0.STL","Mach_X_Axis_0.STL","Mach_Y_Axis_0.STL","Mach_Z_Axis_0.STL","Mach_Spindle_0.STL"],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)"},W=new $a.Group,J=g.map(ee=>new Promise((Qe,Pe)=>{new An.STLLoader().load(rs.value===""?`/model/${ee}`:`${rs.value}\\${ee}`,He=>{const Ae=new $a.MeshPhongMaterial({color:j[ee]||"#B3B3D4",side:$a.DoubleSide}),$e=new $a.Mesh(He,Ae);Qe($e)},void 0,Pe)}));try{(await Promise.all(J)).forEach(Qe=>W.add(Qe)),B=W}catch(ee){throw console.error("加载NC文件对应的STL文件失败:",ee),new Error("无法加载.NC文件对应的STL文件")}break;case".pcd":const ke=new Up,ze=new $a.Group;try{const ee=await rl.axios.get("http://139.196.154.85:20026/chfs/shared/重大专项/重大专项文件/target.pcd",{responseType:"blob",headers:{"Content-Type":"application/json"}}),Qe=new Blob([ee.data],{type:"application/octet-stream;charset=UTF-8"}),Pe=await rl.axios.get("http://139.196.154.85:20026/chfs/shared/重大专项/重大专项文件/final.pcd",{responseType:"blob",headers:{"Content-Type":"application/json"}}),ga=new Blob([Pe.data],{type:"application/octet-stream;charset=UTF-8"}),He=await new Promise(($e,Ge)=>{const Wa=URL.createObjectURL(Qe);ke.load(Wa,Ia=>{const P=new Float32Array(Ia.geometry.attributes.position.count*3);for(let F=0;F<Ia.geometry.attributes.position.count;F++)P[F*3]=1,P[F*3+1]=0,P[F*3+2]=0;Ia.geometry.setAttribute("color",new $a.BufferAttribute(P,3)),Ia.material.vertexColors=!0,Ia.scale.set(.3,.3,.3),URL.revokeObjectURL(Wa),$e(Ia)},void 0,Ge)}),Ae=await new Promise(($e,Ge)=>{const Wa=URL.createObjectURL(ga);ke.load(Wa,Ia=>{const P=new Float32Array(Ia.geometry.attributes.position.count*3);for(let F=0;F<Ia.geometry.attributes.position.count;F++)P[F*3]=0,P[F*3+1]=1,P[F*3+2]=0;Ia.geometry.setAttribute("color",new $a.BufferAttribute(P,3)),Ia.material.vertexColors=!0,Ia.scale.set(.3,.3,.3),URL.revokeObjectURL(Wa),$e(Ia)},void 0,Ge)});ze.add(He),ze.add(Ae),B=ze}catch(ee){throw console.error("PCD文件加载失败:",ee),new Error("无法加载PCD文件")}break;case".urdf":const De=URL.createObjectURL(M),ne=new bu.URDFLoader,xe="http://139.196.154.85:20026/chfs/shared/机器人/urdf/SmallBender_R-2000iC-165F/meshes",X={maxConcurrentLoads:4,enableCache:!0,enableLOD:!0,simplifyGeometry:!0,shareMaterials:!0,enableInstancing:!0},pe=new WeakMap,Ke=new WeakMap,Da=new WeakMap,te=async ee=>{if(pe.has(ee))return console.log(`从缓存加载: ${ee}`),pe.get(ee);try{const Qe=await rl.axios.get(`${xe}/${ee}`,{responseType:"blob",headers:{"Content-Type":"application/json"},timeout:6e5}),Pe=new Blob([Qe.data],{type:"application/octet-stream;charset=UTF-8"});return X.enableCache&&pe.set(ee,Pe),Pe}catch(Qe){throw console.error(`加载文件失败: ${ee}`,Qe),new Error(`无法加载文件: ${ee}`)}},D=(ee="default")=>{if(Ke.has(ee))return Ke.get(ee);const Qe=new $a.MeshPhongMaterial({color:12303291,shininess:30,transparent:!1,alphaTest:.1,side:$a.FrontSide});return Ke.set(ee,Qe),Qe},le=ee=>{try{ee.isBufferGeometry&&ee.mergeVertices&&ee.mergeVertices(),ee.computeVertexNormals&&ee.computeVertexNormals(),ee.computeBoundingSphere&&ee.computeBoundingSphere(),ee.deleteAttribute&&ee.deleteAttribute("uv2")}catch(Qe){console.warn("几何体优化失败,使用原始几何体:",Qe)}return ee},ge=async(ee,Qe,Pe)=>{const ga=`stl_${Qe}`;if(Da.has(ga)){const Ge=Da.get(ga);return new $a.Mesh(Ge,D())}const He=await ee.arrayBuffer();let $e=new An.STLLoader(Pe).parse(He);return $e=le($e),Da.set(ga,$e),new $a.Mesh($e,D())},ue=async(ee,Qe,Pe)=>{const ga=`obj_${Qe}`;if(pe.has(ga))return pe.get(ga).clone();const He=await ee.text(),Ae=new An.OBJLoader(Pe),$e=Qe.replace(".obj",".mtl");try{const Ia=await(await te($e)).text(),F=new An.MTLLoader(Pe).parse(Ia);F.preload(),Ae.setMaterials(F)}catch{console.warn(`MTL文件加载失败,使用默认材质: ${$e}`)}const Ge=Ae.parse(He);return Ge.traverse(Wa=>{Wa.isMesh&&(Wa.geometry=le(Wa.geometry),Wa.castShadow=!0,Wa.receiveShadow=!0,Wa.renderOrder=1)}),pe.set(ga,Ge),Ge},Ne=(ee,Qe)=>{const Pe=new $a.LOD;if(Pe.addLevel(ee,0),ee.geometry){const ga=ee.geometry.clone(),He=new $a.Mesh(ga,ee.material);Pe.addLevel(He,50)}return Pe};let ia=0,ka=0;const Ha=[];ne.loadMeshCb=async(ee,Qe,Pe,ga,He)=>{const Ae=ee.split("/").pop(),$e=Pe||(()=>{});ia++;const Ge=new Promise(async(Wa,Ia)=>{try{const P=await te(Ae);if(!P||P.size===0)throw new Error(`文件为空: ${Ae}`);const F=Ae.split(".").pop().toLowerCase();let G;switch(F){case"stl":G=await ge(P,Ae,Qe);break;case"obj":G=await ue(P,Ae,Qe);break;default:throw new Error(`不支持的文件格式: ${F}`)}X.enableLOD&&G.isMesh&&(G=Ne(G,Ae)),$e(G),ka++,ga&&ga({loaded:ka,total:ia,progress:ka/ia}),Wa(G)}catch(P){console.error(`mesh文件加载失败: ${Ae}`,P);const F=new $a.Group;$e(F),Wa(F);const G=new $a.BoxGeometry(.1,.1,.1),ie=new $a.MeshStandardMaterial({color:16711680,wireframe:!0});return new $a.Mesh(G,ie)}});Ha.push(Ge)};try{if(!De){so.value=void 0;break}if(B=await ne.loadAsync(De),console.log(`URDF文件加载完成,等待${ia}个mesh文件加载...`),Ha.length>0)try{await Promise.allSettled(Ha),console.log(`所有mesh文件处理完成,成功加载: ${ka}/${ia}`)}catch(Pe){console.warn("部分mesh文件加载失败,但继续显示模型",Pe)}B.traverse(Pe=>{Pe.isMesh&&(Pe.castShadow=!0,Pe.receiveShadow=!0,Pe.renderOrder=1,Pe.material&&(Pe.material.needsUpdate=!0))}),console.time("计算包围盒");const ee=new $a.Box3;ee.expandByObject(B);const Qe=`urdf_${Date.now()}`;B.userData.boundingBox=ee.clone(),B.userData.modelId=Qe,ns.set(Qe,{box:ee.clone(),center:ee.getCenter(new $a.Vector3),size:ee.getSize(new $a.Vector3),maxSize:Math.max(...ee.getSize(new $a.Vector3).toArray())}),so.value=B,console.log("URDF模型加载完成并优化")}catch(ee){console.error("URDF加载失败:",ee),so.value=void 0}finally{De&&URL.revokeObjectURL(De)}break;default:throw new Error(`不支持的文件格式: ${S}`)}return B};return{addModelsFromUrls:y,loadModelByDefaultPath:async S=>{console.log(S);try{n.value=!0,t.value="正在加载模型...";const{scene:M}=l();if(!M)throw new Error("Scene not initialized");s(),await new Promise(U=>setTimeout(U,100));const _=[];for(let U=0;U<S.length;U++){const B=S[U],A=await u(B.suffix,B.blob,B.mtlBlobs||[],B.meshFiles||[]);A&&(M.add(A),r.value.push(A),_.push(A))}return n.value=!1,t.value="",_}catch(M){throw console.error("加载模型失败:",M),n.value=!1,t.value="",M}},urdfModel:so,modelBoundingBoxes:ns}}window._iconfont_svg_string_4827314='<svg><symbol id="icon-chart-new" viewBox="0 0 1024 1024"><path d="M960 768V448h-64v320h-64v64H192v-64h-64V256h64v-64h256v-64H192V64H0v192h64v512H0v192h192v-64h640v64h192V768h-64zM64 128h64v64H64v-64z m0 768v-64h64v64H64z m896 0h-64v-64h64v64zM256 768V256h128v512H256z m192-320h128v320H448V448z m192 192h128v128H640V640zM512 288c0-17.664 14.336-32 32-32h160V96c0-17.664 14.336-32 32-32s32 14.336 32 32v160h160c17.664 0 32 14.336 32 32s-14.336 32-32 32H768v160c0 17.664-14.336 32-32 32s-32-14.336-32-32V320H544c-17.664 0-32-14.336-32-32z" ></path></symbol><symbol id="icon-ai13" viewBox="0 0 1024 1024"><path d="M863.719038 159.366637l-705.295378 0c-48.443315 0-88.129176 39.690978-88.129176 88.161922l0 528.943904c0 48.474015 39.685861 88.161922 88.129176 88.161922l705.295378 0c48.443315 0 88.134293-39.687908 88.134293-88.161922l0-528.943904C951.853331 199.056592 912.162354 159.366637 863.719038 159.366637M643.272277 776.472464l-484.84964 0 0-176.324868 484.84964 0L643.272277 776.472464zM643.272277 556.053332l-484.84964 0 0-176.296215 484.84964 0L643.272277 556.053332zM863.719038 776.472464 687.394171 776.472464l0-396.659065 176.324868 0L863.719038 776.472464z" ></path></symbol><symbol id="icon-qiehuanwenjianjia" viewBox="0 0 1024 1024"><path d="M409.6 102.4L512 204.8h307.2a102.4 102.4 0 0 1 102.144 94.72l0.256 7.68v512a102.4 102.4 0 0 1-94.72 102.144l-7.68 0.256H512v-76.8h281.6a51.2 51.2 0 0 0 50.842-45.21l0.358-5.99V332.8a51.2 51.2 0 0 0-45.21-50.842l-5.99-0.358H486.4L384 179.2H230.4a51.2 51.2 0 0 0-50.842 45.21l-0.358 5.99v179.2h-76.8V204.8a102.4 102.4 0 0 1 94.72-102.144l7.68-0.256h204.8z m217.6 588.8a38.4 38.4 0 1 1 0 76.8H358.4v99.584a25.6 25.6 0 0 1-41.83 19.814L132.3 736.614a25.6 25.6 0 0 1 16.231-45.414zM447.59 389.99l3.84 2.612L635.7 543.386a25.6 25.6 0 0 1-11.623 45.004l-4.608 0.41H140.8a38.4 38.4 0 0 1-5.222-76.442L140.8 512h268.8v-99.584a25.6 25.6 0 0 1 37.99-22.426z" ></path></symbol><symbol id="icon-baogao" viewBox="0 0 1104 1024"><path d="M265.401 1024a174.066 174.066 0 0 1-173.56-173.56V315.3a4.194 4.194 0 0 0-4.338-4.34H41.22A39.63 39.63 0 0 1 0 273.356V123.66C0 55.684 59.3 0 132.339 0h648.678a132.411 132.411 0 0 1 132.339 132.339v553.22a4.194 4.194 0 0 0 4.339 4.34h146.079a40.714 40.714 0 0 1 41.22 41.22v159.819a132.411 132.411 0 0 1-132.339 132.339l-707.254 0.723z m653.017-260.339A4.194 4.194 0 0 0 914.08 768v123.661a59.3 59.3 0 0 0 118.599 0V768a4.194 4.194 0 0 0-4.339-4.339z m-749.198-452.7a4.194 4.194 0 0 0-4.339 4.338v534.419a100.737 100.737 0 0 0 100.52 100.52h582.147a3.977 3.977 0 0 0 3.616-2.17 4.628 4.628 0 0 0 0-4.34 132.7 132.7 0 0 1-10.848-52.79V133.062a59.3 59.3 0 0 0-118.598 0v140.294a39.195 39.195 0 0 1-41.22 37.604zM132.34 73.762c-32.542 0-59.3 22.418-59.3 49.898v109.92a4.194 4.194 0 0 0 4.34 4.34h566.237a4.194 4.194 0 0 0 4.339-4.34V133.063a132.7 132.7 0 0 1 10.847-52.79c0.723-1.447 0-2.893 0-4.34a3.977 3.977 0 0 0-3.616-2.17z m169.22 692.068a36.881 36.881 0 0 1 0-73.763h402.08a36.881 36.881 0 0 1 0 73.763z m0-196.701a36.881 36.881 0 1 1 0-73.763h402.08a36.881 36.881 0 1 1 0 73.763z" ></path></symbol><symbol id="icon-xinghao" viewBox="0 0 1024 1024"><path d="M580.583 425.004c52.988-24.574 104.44-49.276 152.82-73.594 48.381-24.703 87.034-42.877 115.704-54.268 28.67-11.136 51.58-17.023 69.115-17.023a104.952 104.952 0 0 1 74.235 28.798 93.177 93.177 0 0 1 31.485 71.802c0 16.383-5.12 33.534-15.358 51.069-10.24 17.534-21.247 28.926-32.638 33.79-105.976 41.468-222.832 72.058-350.054 90.872 23.038 20.99 51.452 49.405 85.113 84.474 33.79 35.582 51.453 54.268 52.86 56.7 12.416 17.023 29.566 38.397 51.837 63.74 22.142 25.597 37.501 45.18 46.076 59.643a99.833 99.833 0 0 1 13.055 52.092 93.817 93.817 0 0 1-29.693 68.731 103.16 103.16 0 0 1-76.41 29.694c-31.23 0-66.172-24.318-105.337-72.443-39.037-48.124-89.465-135.158-151.029-260.46A12540.003 12540.003 0 0 1 386.677 862.22a387.3 387.3 0 0 1-61.563 81.53 96.889 96.889 0 0 1-67.835 27.774 101.625 101.625 0 0 1-76.026-31.358c-19.711-20.862-30.078-43.517-30.078-66.939 0-22.142 4.095-38.909 12.287-50.172 75.514-102.393 154.356-191.602 236.782-266.605a2401.103 2401.103 0 0 1-184.818-35.709 1163.818 1163.818 0 0 1-172.531-57.724c-9.984-5.12-19.583-16.382-29.054-33.917A104.696 104.696 0 0 1 0.018 380.72a93.433 93.433 0 0 1 31.358-71.675 102.648 102.648 0 0 1 72.186-28.926c19.839 0 44.285 5.887 73.979 17.79 29.438 11.904 67.067 29.054 112.632 51.453 45.564 22.526 97.656 47.74 155.892 75.514a1833.849 1833.849 0 0 1-26.494-177.267 1574.54 1574.54 0 0 1-10.367-137.078c0-30.205 9.599-56.06 28.798-78.074A95.481 95.481 0 0 1 512.62 0.076c29.822 0 54.012 10.75 73.339 32.51 19.454 21.886 29.054 50.683 29.054 86.649 0 9.855-1.664 29.182-4.48 58.491-2.56 29.182-7.04 64.252-12.16 105.465-5.375 41.34-11.39 88.697-17.79 141.813z" fill="#FF4444" ></path></symbol><symbol id="icon-mima" viewBox="0 0 1024 1024"><path d="M776.86 376.04c-22.05 0-40.16-16.24-43.91-37.98-18.08-104.98-109.79-185.1-219.84-185.1s-201.76 80.13-219.84 185.1c-3.74 21.73-21.85 37.98-43.91 37.98-27.05 0-48.82-24.04-44.44-50.73 24.3-148.16 153.25-261.58 308.19-261.58S796.99 177.15 821.3 325.31c4.38 26.69-17.39 50.73-44.44 50.73zM850.18 418.32H180.33c-37.98 0-68.76 30.79-68.76 68.76v403.71c0 37.98 30.79 68.76 68.76 68.76h665.36c37.97 0 68.75-30.77 68.77-68.74l0.19-408c0.02-35.61-28.85-64.49-64.47-64.49zM557.73 762.56c0 24.64-19.97 44.62-44.62 44.62-24.64 0-44.62-19.97-44.62-44.62v-89.23c0-24.64 19.97-44.62 44.62-44.62 24.64 0 44.62 19.98 44.62 44.62v89.23z" ></path></symbol><symbol id="icon-zhanghao" viewBox="0 0 1024 1024"><path d="M407.61 578.87c-174.46 0-304.73 113.04-304.73 277.2v17.69c0 85.81 139.6 85.81 316.37 85.81h187.73c169.75 0 316.37 0 316.37-85.81v-17.69c0-164.16-130.28-277.2-304.73-277.2H407.61zM503.71 535.67c138.19 0 250.63-105.81 250.63-235.94 0-130.06-112.44-235.86-250.63-235.86-138.11 0-250.56 105.81-250.56 235.86 0 130.13 112.45 235.94 250.56 235.94z" ></path></symbol><symbol id="icon-xiangqingye-37" viewBox="0 0 1024 1024"><path d="M368.64 34.133333H112.64C68.266667 34.133333 34.133333 68.266667 34.133333 112.64v256c0 23.893333 17.066667 40.96 40.96 40.96s40.96-17.066667 40.96-40.96V116.053333h252.586667c23.893333 0 40.96-17.066667 40.96-40.96S389.12 34.133333 368.64 34.133333zM911.36 34.133333h-256c-23.893333 0-40.96 17.066667-40.96 40.96s17.066667 40.96 40.96 40.96h252.586667v252.586667c0 23.893333 17.066667 40.96 40.96 40.96s40.96-17.066667 40.96-40.96V112.64C989.866667 68.266667 955.733333 34.133333 911.36 34.133333zM368.64 907.946667H116.053333v-252.586667c0-23.893333-17.066667-40.96-40.96-40.96S34.133333 634.88 34.133333 655.36v256C34.133333 955.733333 68.266667 989.866667 112.64 989.866667h256c23.893333 0 40.96-17.066667 40.96-40.96s-20.48-40.96-40.96-40.96zM948.906667 617.813333c-23.893333 0-40.96 17.066667-40.96 40.96v252.586667h-252.586667c-23.893333 0-40.96 17.066667-40.96 40.96s17.066667 40.96 40.96 40.96h256c40.96 0 78.506667-34.133333 78.506667-78.506667v-256c0-23.893333-17.066667-40.96-40.96-40.96z" fill="#3366CC" ></path><path d="M416.426667 488.106667L307.2 344.746667c-13.653333-17.066667-34.133333-20.48-51.2-6.826667-17.066667 13.653333-20.48 34.133333-6.826667 51.2L337.92 512l-95.573333 126.293333c-13.653333 17.066667-10.24 37.546667 6.826666 51.2 6.826667 3.413333 13.653333 6.826667 20.48 6.826667 10.24 0 23.893333-6.826667 30.72-13.653333l112.64-146.773334c10.24-17.066667 10.24-34.133333 3.413334-47.786666z" fill="#F4A914" ></path><path d="M597.333333 488.106667L488.106667 341.333333c-13.653333-17.066667-34.133333-20.48-51.2-6.826666-17.066667 13.653333-20.48 34.133333-6.826667 51.2l92.16 122.88-95.573333 126.293333c-13.653333 17.066667-10.24 37.546667 6.826666 51.2 6.826667 3.413333 13.653333 6.826667 20.48 6.826667 10.24 0 23.893333-6.826667 30.72-13.653334l112.64-146.773333c10.24-13.653333 10.24-30.72 0-44.373333z" fill="#F4A914" ></path><path d="M778.24 488.106667L669.013333 341.333333c-13.653333-17.066667-34.133333-20.48-51.2-6.826666-17.066667 13.653333-20.48 34.133333-6.826666 51.2l92.16 122.88-95.573334 126.293333c-6.826667 6.826667-6.826667 17.066667-6.826666 27.306667 0 10.24 6.826667 17.066667 13.653333 23.893333 6.826667 3.413333 13.653333 6.826667 23.893333 6.826667 10.24 0 23.893333-6.826667 30.72-13.653334l112.64-146.773333c6.826667-13.653333 6.826667-30.72-3.413333-44.373333z" fill="#F4A914" ></path></symbol><symbol id="icon-gongzhuangmoju" viewBox="0 0 1024 1024"><path d="M192 170.666667A106.965333 106.965333 0 0 0 85.333333 277.333333V426.666667h256l42.666667 85.333333h256l42.666667-85.333333h256V277.333333A106.965333 106.965333 0 0 0 832 170.666667z" fill="#3B709C" ></path><path d="M384 512l-42.666667-85.333333h341.333334l-42.666667 85.333333z m-298.666667-85.333333V256a85.333333 85.333333 0 0 1 85.333334-85.333333h682.666666a85.333333 85.333333 0 0 1 85.333334 85.333333v170.666667zM853.333333 853.333333H170.666667a85.333333 85.333333 0 0 1-85.333334-85.333333v-256h213.333334l42.666666 85.333333h341.333334l42.666666-85.333333h213.333334v256a85.333333 85.333333 0 0 1-85.333334 85.333333z" fill="#2C6798" ></path></symbol><symbol id="icon-jiagongguochengxinxi" viewBox="0 0 1024 1024"><path d="M345.216 664.192a315.84 315.84 0 0 1 93.12-224.64 315.84 315.84 0 0 1 100.992-68.16 315.392 315.392 0 0 1 123.648-24.96 315.392 315.392 0 0 1 158.72 42.368v-264a24.768 24.768 0 0 0-24.768-24.768H559.296a32.64 32.64 0 0 1 0.704 6.976v133.184c0 19.2-15.616 34.816-34.816 34.816H395.072a34.816 34.816 0 0 1-34.752-34.816v-133.12a32.64 32.64 0 0 1 0.64-6.976H123.456a24.768 24.768 0 0 0-24.768 24.832v676.544c0 13.76 11.072 24.832 24.768 24.832h266.24a316.224 316.224 0 0 1-44.416-162.112zM662.976 406.4a257.792 257.792 0 1 0 0 515.52 257.792 257.792 0 0 0 0-515.52z m112.256 293.376a104.704 104.704 0 0 1-107.328 25.216l-68.48 68.48a46.528 46.528 0 0 1-65.728-65.664l68.48-68.48a104.512 104.512 0 0 1 140.8-129.28l-67.072 67.072 10.88 42.88 43.328 11.328 67.072-67.136c16.64 38.336 9.216 84.416-21.952 115.584z m-220.16 51.456a20.928 20.928 0 1 0 41.856 0 20.928 20.928 0 0 0-41.856 0z" ></path></symbol><symbol id="icon-pingtaiguanli" viewBox="0 0 1024 1024"><path d="M1024 806.4V25.6c0-12.8-12.8-25.6-25.6-25.6H25.6C12.8 0 0 12.8 0 25.6v780.8h435.2v166.4H236.8v51.2h556.8v-51.2H588.8v-166.4H1024zM320 281.6c-12.8-12.8-19.2-25.6-32-32l44.8-76.8c44.8 25.6 96 12.8 121.6-32 12.8-12.8 12.8-32 12.8-44.8h89.6c0 51.2 38.4 83.2 89.6 83.2 12.8 0 32-6.4 44.8-12.8l44.8 76.8c-44.8 25.6-57.6 76.8-32 115.2 12.8 12.8 19.2 25.6 32 32l-44.8 76.8c-44.8-19.2-96-6.4-121.6 38.4-12.8 12.8-12.8 25.6-12.8 44.8H467.2c0-44.8-38.4-83.2-89.6-83.2-12.8 0-32 6.4-44.8 12.8l-44.8-83.2c38.4-25.6 51.2-76.8 32-115.2zM102.4 704v-51.2h825.6v51.2H102.4zM512 416c51.2 0 96-38.4 96-89.6S569.6 236.8 512 236.8c-51.2 0-96 38.4-96 89.6 0 51.2 44.8 89.6 96 89.6z" ></path></symbol><symbol id="icon-zhucaidanguanli" viewBox="0 0 1169 1024"><path d="M787.333831 588.946093a75.189984 75.189984 0 0 0-75.093984 75.092984 75.189984 75.189984 0 0 0 75.093984 75.093984 75.165984 75.165984 0 0 0 75.067984-75.093984 75.165984 75.165984 0 0 0-75.067984-75.092984m0 222.841953a147.919968 147.919968 0 0 1-147.748968-147.748969c0-81.455982 66.291986-147.747968 147.748968-147.747968 81.431983 0 147.747968 66.291986 147.747968 147.747968 0 81.480982-66.315986 147.748968-147.747968 147.748969m89.452981 102.106978c0.342 0.244 1.317 0.585 2.315999 0.585h0.122l71.484985-39.496992c-1.706-4.022999-9.605998-23.478995-9.605998-43.739991a113.858976 113.858976 0 0 1 107.739977-113.613975c0.853-4.729999 5.557999-31.524993 5.557998-51.639989s-4.704999-46.88399-5.558998-51.637989a113.858976 113.858976 0 0 1-107.738977-113.565976c0-20.357996 7.923998-39.813991 9.605998-43.81299l-70.313985-39.057992-0.293-0.025a5.339999 5.339999 0 0 0-2.706 0.732 196.753958 196.753958 0 0 1-26.014994 21.819995c-21.698995 15.238997-42.153991 22.967995-60.951987 22.967995-18.919996 0-39.594991-7.874998-61.390987-23.405995a194.705958 194.705958 0 0 1-26.160994-22.283995 5.777999 5.777999 0 0 0-2.729999-0.707h-0.245l-72.824985 40.032992c1.706 4.046999 9.580998 23.479995 9.580998 43.73999A113.858976 113.858976 0 0 1 528.895886 614.350088c-0.854 4.729999-5.509999 31.524993-5.509998 51.638989s4.655999 46.90899 5.533998 51.662989a113.858976 113.858976 0 0 1 107.763977 113.589975c0 20.334996-7.972998 39.863991-9.679998 43.788991l68.973985 38.545992h0.146c1.024 0 1.95-0.365 2.317-0.585a200.849957 200.849957 0 0 1 26.428994-23.161995c22.088995-16.188997 43.079991-24.429995 62.414987-24.429995 19.552996 0 40.715991 8.387998 62.950986 24.917995 14.920997 11.068998 25.258995 22.185995 26.550995 23.575995m22.673995 108.397976c-13.774997-0.025-27.135994-5.704999-35.765993-15.213996-11.775997-12.896997-49.005989-46.44599-79.530982-46.44599-30.280993 0-68.119985 33.767993-78.993984 45.54399-8.606998 9.386998-21.869995 14.969997-35.498992 14.969997-6.484999 0-12.604997-1.243-18.187996-3.706l-0.975-0.414-92.69698-51.833988-0.926-0.683a44.46999 44.46999 0 0 1-14.920996-53.735989c0.049-0.146 8.532998-19.699996 8.532998-37.594992a98.376979 98.376979 0 0 0-98.254979-98.254978h-3.900999c-15.505997 0-28.159994-13.799997-32.182993-35.108993-0.341-1.706-7.923998-42.178991-7.923999-74.044984 0-31.913993 7.557998-72.361984 7.899999-74.117984 4.119999-21.576995 16.992996-35.449992 32.816993-35.083993h3.266999a98.400979 98.400979 0 0 0 98.279979-98.303978c0-17.846996-8.484998-37.399992-8.558998-37.619992a44.34899 44.34899 0 0 1 15.067996-53.661989l0.95-0.658 97.840979-53.759988 1.024-0.415c5.485999-2.364999 11.507998-3.534999 17.895996-3.534999 13.604997 0 26.891994 5.436999 35.595992 14.628997 11.580998 12.116997 48.17699 43.641991 77.774984 43.64199 29.354994 0 65.755986-30.914993 77.287983-42.812991 8.654998-8.996998 21.844995-14.335997 35.302992-14.335997 6.509999 0 12.653997 1.219 18.285997 3.657l0.974999 0.414 94.47698 52.516988 0.95 0.658c16.895996 11.751997 23.332995 34.889993 14.945997 53.735989-0.049 0.146-8.532998 19.699996-8.532999 37.545992a98.400979 98.400979 0 0 0 98.254979 98.279978h3.291c15.774997-0.341 28.719994 13.506997 32.816993 35.107993 0.317 1.707 7.899998 42.203991 7.899998 74.069984 0 31.889993-7.582998 72.410984-7.948998 74.117984-4.046999 21.551995-16.992996 35.424992-32.767993 35.059993h-3.291a98.400979 98.400979 0 0 0-98.254979 98.278978c0 17.846996 8.483998 37.449992 8.556999 37.619992a44.42199 44.42199 0 0 1-15.017997 53.710989l-0.927 0.683-96.133979 53.100988-0.975 0.415a44.88499 44.88499 0 0 1-17.846996 3.583999z m222.061952-705.339848a48.76199 48.76199 0 1 1-97.523979 0V121.977194c0-13.457997-10.873998-24.453995-24.307995-24.453995h-877.859811c-13.262997 0-24.306995 10.970998-24.306995 24.453995v584.995874c0 13.457997 10.873998 24.453995 24.307995 24.453995h219.500953a48.76199 48.76199 0 1 1 0 97.523979H48.907989A48.76199 48.76199 0 0 1 0 780.190052V48.76221C0 21.822215 21.893995 0.00022 48.907989 0.00022h1023.706781a48.76199 48.76199 0 0 1 48.907989 48.76199v268.189942zM219.427953 975.23701c0-26.940994 21.991995-48.76199 48.981989-48.761989h194.607959a48.76199 48.76199 0 1 1 0 97.523979H268.433942a48.76199 48.76199 0 0 1-49.005989-48.76199z" ></path></symbol><symbol id="icon-caidanguanli" viewBox="0 0 1024 1024"><path d="M414.2 78H158.6c-41.5 0-75.3 33.8-75.3 75.3v255.5c0 41.5 33.8 75.3 75.3 75.3h255.5c41.5 0 75.3-33.8 75.3-75.3V153.3c0-41.5-33.7-75.3-75.2-75.3z m5.2 330.8c0 2.9-2.4 5.3-5.3 5.3H158.6c-2.9 0-5.3-2.4-5.3-5.3V153.3c0-2.9 2.4-5.3 5.3-5.3h255.5c2.9 0 5.3 2.4 5.3 5.3v255.5zM414.2 544.8H158.6c-41.5 0-75.3 33.8-75.3 75.3v255.5c0 41.5 33.8 75.3 75.3 75.3h255.5c41.5 0 75.3-33.8 75.3-75.3V620.1c0-41.5-33.7-75.3-75.2-75.3z m5.2 330.8c0 2.9-2.4 5.3-5.3 5.3H158.6c-2.9 0-5.3-2.4-5.3-5.3V620.1c0-2.9 2.4-5.3 5.3-5.3h255.5c2.9 0 5.3 2.4 5.3 5.3v255.5zM908.8 119.3H607.2c-19.3 0-35 15.7-35 35s15.7 35 35 35h301.6c19.3 0 35-15.7 35-35s-15.7-35-35-35zM908.8 343.8H607.2c-19.3 0-35 15.7-35 35s15.7 35 35 35h301.6c19.3 0 35-15.7 35-35s-15.7-35-35-35zM908.8 568.3H607.2c-19.3 0-35 15.7-35 35s15.7 35 35 35h301.6c19.3 0 35-15.7 35-35s-15.7-35-35-35zM908.8 792.8H607.2c-19.3 0-35 15.7-35 35s15.7 35 35 35h301.6c19.3 0 35-15.7 35-35s-15.7-35-35-35z" ></path></symbol><symbol id="icon-jueseguanli" viewBox="0 0 1024 1024"><path d="M874.9 577.3c-26.1-27.2-56.8-48.9-90.3-64.1 5.4-4.6 10.6-9.6 15.5-14.8 32.3-34.7 50.1-79.8 50.1-127.2 0-102.9-83.7-186.7-186.7-186.7-11 0-21.8 0.9-32.5 2.8-7.1-9.6-14.9-18.7-23.4-27.2-44.6-44.6-103.9-69.2-167-69.2s-122.4 24.6-167 69.2-69.2 103.9-69.2 167 24.6 122.4 69.2 167c10.8 10.8 22.4 20.4 34.8 28.7-4.9 1.8-9.7 3.8-14.5 5.8-44.9 19-85.2 46.2-119.9 80.8-34.6 34.6-61.8 75-80.8 119.9-19.7 46.5-29.6 95.9-29.6 146.8 0 17.7 1.2 35.5 3.7 52.9l69.3-9.7c-2-14.2-3-28.7-3-43.1 0-169.4 137.8-307.1 307.1-307.1s307.1 137.8 307.1 307.1c0 14.4-1 28.9-3 43.1l69.3 9.7c2.4-17.4 3.7-35.2 3.7-52.9 0-50.9-10-100.3-29.6-146.8-19-44.9-46.2-85.2-80.8-119.9-34.6-34.6-74.9-61.8-119.9-80.8-4.8-2-9.7-4-14.6-5.8 12.3-8.4 24-18 34.8-28.7 44.6-44.6 69.2-103.9 69.2-167 0-25-3.9-49.4-11.3-72.6 63.4 1.1 114.7 53 114.7 116.6 0 45.5-26.6 85.6-65.3 104.7-16.3 8.1-26.8 24.4-26.8 42.6v1c0 21.2 14.1 40 34.6 45.5 94.9 25.8 163.8 112.4 163.8 215 0 10.5-0.7 21-2.2 31.3l69.3 9.7c1.9-13.5 2.9-27.3 2.9-41-0.1-75.8-29.1-147.8-81.7-202.6z m-434.3-84c-91.6 0-166.2-74.6-166.2-166.2S349 160.9 440.6 160.9s166.2 74.6 166.2 166.2-74.5 166.2-166.2 166.2z" ></path></symbol><symbol id="icon-zhiweiguanli" viewBox="0 0 1024 1024"><path d="M878.4 243.5h-91.2v-41.2c0-58.6-47.7-106.2-106.2-106.2H354.2c-58.6 0-106.2 47.7-106.2 106.2v41.2h-91.2c-43.2 0-78.4 35.1-78.4 78.4V856c0 43.2 35.1 78.4 78.4 78.4h721.5c43.2 0 78.4-35.1 78.4-78.4V321.8c0-43.2-35.1-78.3-78.3-78.3zM318 202.3c0-20 16.2-36.2 36.2-36.2H681c20 0 36.2 16.3 36.2 36.2v41.2H318v-41.2zM156.8 313.5h721.5c4.6 0 8.4 3.7 8.4 8.4V554H692.4c-14.8-45.3-57.4-78.2-107.6-78.2H450.4c-50.2 0-92.9 32.9-107.6 78.2H148.5V321.8c0-4.6 3.7-8.3 8.3-8.3zM628 588.9c0 23.8-19.4 43.2-43.2 43.2H450.4c-23.8 0-43.2-19.4-43.2-43.2 0-23.8 19.4-43.2 43.2-43.2h134.3c23.9 0 43.3 19.4 43.3 43.2z m250.4 275.5H156.8c-4.6 0-8.4-3.7-8.4-8.4V623.9h194.3c14.8 45.3 57.4 78.2 107.6 78.2h134.3c50.2 0 92.9-32.9 107.6-78.2h194.3V856c0.2 4.6-3.5 8.4-8.1 8.4z" ></path></symbol><symbol id="icon-bumenguanli" viewBox="0 0 1024 1024"><path d="M322.5 62h384.6v70H322.5z" ></path><path d="M870.2 62h-59.3v70h59.3c7.2 0 13 5.8 13 13v733.9c0 7.2-5.8 13-13 13h-720c-7.2 0-13-5.8-13-13V145c0-7.2 5.8-13 13-13h68.6V62h-68.6c-45.8 0-83 37.2-83 83v733.9c0 45.8 37.2 83 83 83h720c45.8 0 83-37.2 83-83V145c0-45.8-37.3-83-83-83z" ></path><path d="M295 806.2c-0.5-5.7-0.7-11.6-0.7-17.3 0-119 96.8-215.8 215.8-215.8S726 669.8 726 788.8c0 5.8-0.2 11.6-0.7 17.3l69.8 5.6c0.6-7.6 0.9-15.3 0.9-22.9 0-76.4-29.7-148.1-83.7-202.1-29.7-29.8-64.9-52.1-103.3-66.2 45.6-31.5 75.5-84.1 75.5-143.5 0-96.1-78.2-174.4-174.4-174.4-96.1 0-174.4 78.2-174.4 174.4 0 59.5 29.9 112 75.5 143.5C373 534.6 337.8 557 308 586.7c-54 54-83.7 125.8-83.7 202.1 0 7.6 0.3 15.3 0.9 22.9l69.8-5.5z m215.2-533.6c57.5 0 104.4 46.8 104.4 104.4 0 57.5-46.8 104.4-104.4 104.4-57.5 0-104.4-46.8-104.4-104.4 0-57.6 46.8-104.4 104.4-104.4z" ></path></symbol><symbol id="icon-gerenzhongxin" viewBox="0 0 1024 1024"><path d="M930.4 337.3c-22.7-53.7-55.2-101.9-96.6-143.3-41.4-41.4-89.6-73.9-143.3-96.6C634.9 73.9 575.9 62 515.1 62c-60.8 0-119.9 11.9-175.5 35.4-53.7 22.7-101.9 55.2-143.3 96.6-41.4 41.4-73.9 89.6-96.6 143.3-23.5 55.6-35.4 114.6-35.4 175.5 0 50.5 8.3 100.1 24.7 147.4l66.1-22.9c-13.8-39.9-20.8-81.8-20.8-124.5 0-209.9 170.8-380.7 380.7-380.7 209.9 0 380.8 170.8 380.8 380.7 0 41.6-6.7 82.5-19.8 121.5l66.3 22.3c15.6-46.2 23.5-94.7 23.5-143.9 0-60.8-11.9-119.8-35.4-175.4z" ></path><path d="M656.9 422.2c0-76.9-62.6-139.5-139.5-139.5s-139.5 62.6-139.5 139.5 62.6 139.5 139.5 139.5 139.5-62.6 139.5-139.5z m-209 0c0-38.3 31.2-69.5 69.5-69.5s69.5 31.2 69.5 69.5-31.2 69.5-69.5 69.5-69.5-31.2-69.5-69.5zM713.8 627.8c-62-27.2-128.1-40.9-196.4-40.9-69 0-135.7 14-198.2 41.7-60.4 26.7-114.1 64.9-159.5 113.3l-20.3 21.7 18.1 23.6c41.2 53.6 94.8 98 155 128.3 63.2 31.8 131.3 48 202.6 48 71.9 0 140.6-16.4 204.2-48.8 60.7-30.9 114.5-76 155.6-130.4l17.9-23.7-20.5-21.6c-45.3-47.6-98.6-85-158.5-111.2zM515.1 893.5c-109 0-210.3-45.3-282.5-125.4 77.7-71.9 177.7-111.2 284.8-111.2 105.8 0 204.9 38.4 282.2 108.8-72.2 81.6-174.3 127.8-284.5 127.8z" ></path></symbol><symbol id="icon-yonghuguanli" viewBox="0 0 1024 1024"><path d="M751.4 553.2c-42.5-38.5-92.1-67.1-145.5-84.6 53.2-38.9 87.8-101.8 87.8-172.7C693.7 178 597.7 82 479.8 82c-57.1 0-110.8 22.2-151.2 62.6C288.2 185 266 238.7 266 295.8s22.2 110.8 62.6 151.2c7.8 7.8 16.2 15 25 21.4-10.5 3.5-20.9 7.3-31.2 11.7-48.2 20.4-91.4 49.5-128.5 86.7s-66.3 80.4-86.7 128.5c-21.1 49.9-31.8 102.9-31.8 157.4 0 24.8 2.3 49.7 6.8 73.9l68.8-12.7c-3.7-20-5.6-40.6-5.6-61.2 0-184.4 150-334.4 334.4-334.4 83.2 0 163 30.8 224.5 86.6l47.1-51.7zM479.8 152c79.3 0 143.9 64.5 143.9 143.9s-64.5 143.9-143.9 143.9S336 375.2 336 295.9 400.5 152 479.8 152zM726.3 665.3h213.8v70H726.3zM503 831.6h437.1v70H503z" ></path></symbol><symbol id="icon-app" viewBox="0 0 1024 1024"><path d="M363.485867 865.117867h305.5616c21.6576 0 39.2192-17.194667 39.2192-38.4s-17.5616-38.4-39.2192-38.4H363.485867c-21.6576 0-39.2192 17.194667-39.2192 38.4s17.5616 38.4 39.2192 38.4z" fill="#A6ADB4" ></path><path d="M945.288533 699.835733a40.448 40.448 0 0 0-43.195733 43.1872v147.037867a46.865067 46.865067 0 0 1-45.960533 48.708267H166.766933a46.882133 46.882133 0 0 1-45.038933-48.708267v-147.029333a40.439467 40.439467 0 1 0-80.887467 0v147.029333a125.883733 125.883733 0 0 0 125.9264 128.657067h693.0432c70.203733-1.006933 126.4384-58.461867 125.9264-128.657067v-147.029333a40.430933 40.430933 0 0 0-40.448-43.195734zM40.840533 127.735467v147.959466a39.517867 39.517867 0 0 0 79.044267 0V127.735467a45.943467 45.943467 0 0 1 46.882133-47.786667h693.0432a46.882133 46.882133 0 0 1 45.960534 47.786667v147.959466a39.509333 39.509333 0 0 0 39.517866 39.509334 40.448 40.448 0 0 0 40.448-39.509334V127.735467C986.248533 58.052267 930.423467 1.024 860.7232 0H166.775467A125.934933 125.934933 0 0 0 40.840533 127.744z m168.4992 427.972266H326.229333L357.316267 640H418.133333L295.150933 315.733333h-52.701866L119.466667 640h60.817066l29.056-84.292267zM269.124267 392.533333L307.2 503.466667h-76.8l38.724267-110.933334z m231.552 131.959467h32.631466a123.246933 123.246933 0 0 0 88.192-28.535467c23.389867-19.959467 36.394667-49.134933 35.413334-79.488 1.6384-28.245333-9.838933-55.722667-31.249067-74.743466a127.573333 127.573333 0 0 0-84.0192-25.813334H443.733333V640h56.942934V524.4928zM503.466667 366.933333h32.136533c42.180267 0 61.602133 17.493333 61.602133 53.162667 1.092267 16.0256-4.8128 31.701333-16.068266 42.666667a71.364267 71.364267 0 0 1-51.5584 14.677333H503.466667V366.933333z m286.293333-51.0976H691.2V640h57.3184V524.4672h32.853333c31.837867 1.928533 63.189333-8.311467 87.381334-28.544 23.543467-19.959467 36.625067-49.152 35.643733-79.505067 1.536-28.100267-9.710933-55.441067-30.754133-74.752a131.84 131.84 0 0 0-83.882667-25.8304z m39.4752 147.131734a73.813333 73.813333 0 0 1-49.527467 14.72H750.933333V366.933333h32.119467c42.1632 0 61.576533 17.527467 61.576533 53.2736 1.262933 15.957333-4.394667 31.650133-15.394133 42.752z" fill="#A6ADB4" ></path></symbol><symbol id="icon-yepian" viewBox="0 0 1024 1024"><path d="M807.936 99.328c-17.408 0-32.256 9.216-40.448 23.552h-348.16L284.672 355.84l35.84 35.84 126.976-219.648h321.536c8.192 12.8 22.528 20.992 38.912 20.992 25.6 0 46.592-20.992 46.592-46.592s-20.992-47.104-46.592-47.104z" ></path><path d="M301.056 50.688c-8.704 14.848-7.68 32.768 0 46.592L127.488 399.36l134.656 232.448 48.64-13.312L183.808 399.36l160.256-279.04c15.36-1.024 29.696-9.216 37.888-23.04 12.8-22.528 5.12-50.688-17.408-63.488s-50.688-5.632-63.488 16.896z" ></path><path d="M15.872 467.456c8.704 14.848 24.064 23.552 40.448 23.552L228.352 793.6l268.8 1.536 13.312-48.64-253.44-1.536-159.232-279.552c6.656-13.312 7.168-30.208-1.024-44.032-12.8-22.528-40.96-30.208-63.488-17.408-22.528 12.8-30.208 40.96-17.408 63.488z" ></path><path d="M216.064 924.672c17.408 0 32.256-9.216 40.448-23.552h348.16l134.144-232.448-35.84-35.84-126.976 219.648H254.976c-8.192-12.8-22.528-20.992-38.912-20.992-25.6 0-46.592 20.992-46.592 46.592s20.992 46.592 46.592 46.592z" ></path><path d="M722.944 973.312c8.704-14.848 7.68-32.768 0-46.592l173.568-302.08-134.656-232.448-48.64 13.312 127.488 219.136-160.256 279.04c-15.36 1.024-29.696 9.216-37.888 23.04-12.8 22.528-5.12 50.688 17.408 63.488 22.016 13.312 50.176 5.632 62.976-16.896z" ></path><path d="M1008.128 556.544c-8.704-14.848-24.064-23.552-40.448-23.552L795.648 230.4l-268.8-1.536-13.312 48.64 253.44 1.536 159.232 279.552c-6.656 13.312-7.168 30.208 1.024 44.032 12.8 22.528 40.96 30.208 63.488 17.408 22.528-12.8 30.208-40.96 17.408-63.488zM512 391.168C445.44 391.168 391.168 445.44 391.168 512S445.44 632.832 512 632.832s120.832-54.272 120.832-120.832S578.56 391.168 512 391.168z m0 196.096c-41.472 0-75.264-33.792-75.264-75.264s33.792-75.264 75.264-75.264 75.264 33.792 75.264 75.264-33.792 75.264-75.264 75.264z" ></path></symbol><symbol id="icon-left-circle-fill" viewBox="0 0 1024 1024"><path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64z m104 316.9c0 10.2-4.9 19.9-13.2 25.9L457.4 512l145.4 105.2c8.3 6 13.2 15.6 13.2 25.9V690c0 6.5-7.4 10.3-12.7 6.5l-246-178c-4.4-3.2-4.4-9.7 0-12.9l246-178c5.3-3.8 12.7-0.1 12.7 6.5v46.8z" ></path></symbol><symbol id="icon-right-circle-fill" viewBox="0 0 1024 1024"><path d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64z m154.7 454.5l-246 178c-5.3 3.8-12.7 0-12.7-6.5v-46.9c0-10.2 4.9-19.9 13.2-25.9L566.6 512 421.2 406.8c-8.3-6-13.2-15.6-13.2-25.9V334c0-6.5 7.4-10.3 12.7-6.5l246 178c4.4 3.2 4.4 9.8 0 13z" ></path></symbol><symbol id="icon-xitongguanli" viewBox="0 0 1026 1024"><path d="M400.896 67.072H140.8c-24.064 0-46.592 11.264-59.392 29.696-9.216 12.8-14.848 27.648-14.848 44.544v259.584c0 40.96 33.28 74.24 74.24 74.24h259.584c40.96 0 74.24-33.28 74.24-74.24V141.312c0.512-40.96-33.28-74.24-73.728-74.24z m0 361.984v9.216-9.216z m335.872 83.456c18.432 0 35.328-7.168 48.128-20.48L939.008 337.92c12.8-12.8 20.48-29.696 20.48-48.128s-7.168-35.328-20.48-48.128l-154.112-155.648c-26.112-26.112-70.656-26.112-96.256 0l-154.112 154.112c-12.8 12.8-20.48 29.696-20.48 48.128 0 18.432 7.168 35.328 20.48 48.128l154.112 154.112c12.8 14.336 29.184 22.016 48.128 22.016z m0-369.152l146.432 146.432-146.432 146.432-144.896-146.432L736.768 143.36z m-335.872 406.016H140.8c-40.96 0-74.24 33.28-74.24 74.24v259.584c0 40.96 33.28 74.24 74.24 74.24h259.584c40.96 0 74.24-33.28 74.24-74.24v-259.584c0.512-40.448-33.28-74.24-73.728-74.24z m0 352.768v18.432-18.432z m484.352-352.768h-259.584c-40.96 0-74.24 33.28-74.24 74.24v259.584c0 40.96 33.28 74.24 74.24 74.24h259.584c40.96 0 74.24-33.28 74.24-74.24v-259.584c0-40.448-33.792-74.24-74.24-74.24z" ></path></symbol><symbol id="icon-gongjianku" viewBox="0 0 1024 1024"><path d="M798.72 320v446.976H223.232V320H63.488v532.48c0 41.472 33.792 75.264 75.264 75.264h745.472c41.472 0 75.264-33.792 75.264-75.264v-532.48H798.72z" ></path><path d="M608.256 494.592z m-10.24-4.608z" ></path><path d="M819.2 96.256H203.776c-41.472 0-75.264 33.792-75.264 75.264V286.72h128v448h510.464V286.72h128V171.008c-0.512-41.472-34.304-74.752-75.776-74.752z m-154.112 493.056l-12.8 12.8c-12.8 12.8-33.28 12.8-46.08 0L477.184 473.088c-33.792 11.776-72.704 4.608-99.328-22.528-27.136-27.136-34.304-66.048-22.528-99.84l38.4 38.4c12.8 12.8 33.28 12.8 46.08 0l12.8-12.8c12.8-12.8 12.8-33.28 0-46.08L414.208 291.84c33.792-11.776 72.704-4.096 99.84 22.528 27.136 27.136 34.304 66.048 22.528 99.84l128.512 128.512c12.288 13.312 12.288 33.792 0 46.592z" ></path></symbol><symbol id="icon-fangfaku" viewBox="0 0 1024 1024"><path d="M256 170.496v170.496h512V170.496h85.504c23.552 0 42.496 18.944 42.496 42.496V896c0 23.552-18.944 42.496-42.496 42.496H170.496c-23.552 0-42.496-18.944-42.496-42.496V212.992c0-23.552 18.944-42.496 42.496-42.496H256z m256 513.024H256v83.456h256v-83.456zM768 491.52H256v83.456h512V491.52zM341.504 85.504h341.504V256H341.504V85.504z" ></path></symbol><symbol id="icon-shebeiku" viewBox="0 0 1024 1024"><path d="M960 491.52v380.416c0 26.112-23.04 47.616-52.224 47.616H116.224c-29.184 0-52.224-21.504-52.224-47.616V491.52c0-26.112 23.04-47.616 52.224-47.616h791.552c28.672 0 52.224 21.504 52.224 47.616z m-149.504 156.16H213.504V783.36h596.992v-135.68z m149.504-500.736v186.88c0 23.04-20.992 42.496-46.592 42.496H110.592c-25.6 0-46.592-18.944-46.592-42.496V146.944c0-23.04 20.992-42.496 46.592-42.496h802.304c26.112 0 47.104 18.944 47.104 42.496z m-671.744 25.6c-41.472 0-74.752 30.208-74.752 68.096s33.792 68.096 74.752 68.096S363.008 278.528 363.008 240.64s-33.792-68.096-74.752-68.096z m224.256 0c-41.472 0-74.752 30.208-74.752 68.096s33.792 68.096 74.752 68.096 74.752-30.208 74.752-68.096-33.792-68.096-74.752-68.096z" ></path></symbol><symbol id="icon-wenjian" viewBox="0 0 1024 1024"><path d="M273.54647 325.996013h476.395357c19.444708-2.046811 36.842605 11.769166 39.40112 30.702171 2.046811 19.444708-11.769166 36.330903-31.213874 38.377714-2.558514 0.511703-5.117029 0.511703-7.675543 0H273.54647c-10.234057-0.511703-19.956411-4.605326-26.608548-11.257463-6.652137-6.652137-10.74576-15.351086-10.74576-24.561737 0.511703-19.956411 17.397897-35.307497 37.866011-34.284091v1.023406z m0 209.286467h476.395357c19.444708-2.046811 36.842605 11.769166 39.40112 30.702171 2.046811 19.444708-11.769166 36.330903-31.213874 38.377714-2.558514 0.511703-5.117029 0.511703-7.675543 0H273.54647c-9.722354 0-19.444708-3.58192-26.608548-10.234057-6.652137-6.652137-10.74576-15.351086-10.74576-24.561737 0.511703-19.444708 17.397897-35.307497 37.354308-34.284091z m0 185.748136h324.931312c19.444708 0 35.307497 15.862788 35.307497 34.795794 0 19.444708-15.862788 34.795794-35.307497 34.795794H273.54647c-9.722354-0.511703-19.444708-4.093623-26.608548-10.74576-6.652137-6.140434-10.74576-14.839383-10.74576-24.050034 0.511703-19.444708 17.397897-35.307497 37.354308-34.795794zM135.898402 0.041294h96.71184c17.397897-0.511703 33.772388 8.187246 43.494742 22.514926l53.217097 82.38416c4.605326 7.16384 12.792571 11.769166 20.979817 11.257462h322.884501c8.698949 0 16.886194-4.093623 21.49152-11.257462l53.217097-82.38416c9.722354-14.32768 26.096846-23.026628 43.494742-22.514926h97.223543c53.7288-1.535109 98.246948 39.912823 100.293759 93.12992v837.657572c-2.046811 52.705394-46.56496 94.153325-100.293759 93.12992h-752.203196c-53.7288 1.535109-98.758651-39.912823-100.293759-92.618217V93.171214C37.139751 39.954117 82.169603-1.493814 135.898402 0.041294z m82.895863 70.103291H135.898402c-6.652137 0-13.304274 2.558514-18.421303 6.652138-4.605326 4.093623-7.16384 10.234057-7.16384 16.374491v837.657572c0.511703 13.304274 11.769166 23.538331 25.07344 23.026629h752.203196c6.652137 0 13.304274-2.558514 18.421303-6.652138 4.605326-4.093623 7.16384-10.234057 7.16384-16.374491V93.171214c0.511703-6.140434-2.046811-12.280868-7.16384-16.374491-5.117029-4.605326-11.257463-6.652137-18.421303-6.652138h-82.895862l-46.053257 70.614994c-18.933006 28.65536-51.681988 45.541554-86.477783 45.029851H350.813601c-34.795794 0.511703-67.544777-16.374491-86.477782-45.029851l-45.541554-70.614994zM399.425372 0.041294h225.149256c19.956411-0.511703 36.842605 15.351086 37.866011 34.795795-0.511703 19.956411-17.397897 35.307497-37.866011 34.795794H399.425372c-10.234057-0.511703-19.956411-4.093623-27.120251-10.74576-6.652137-6.140434-10.74576-15.351086-10.234057-24.050034C362.582767 15.39238 378.957258-0.470408 399.425372 0.041294z" ></path></symbol><symbol id="icon-bianjimoban" viewBox="0 0 1025 1024"><path d="M127.110228 701.648461q0 26.438928 18.812314 45.251241t46.268123 18.812314l253.203575 0 0 128.12711-318.284012 0q-26.438928 0-49.82721-9.660377t-40.675273-26.947368-26.947368-40.675273-9.660377-50.844091l0-637.584906q0-26.438928 9.660377-49.82721t26.947368-40.675273 40.675273-27.455809 49.82721-10.168818l766.728898 0q26.438928 0 49.82721 10.168818t40.675273 27.455809 27.455809 40.675273 10.168818 49.82721l0 187.106256-128.12711 1.016882q-2.033764-25.422046-19.829196-43.217478t-44.234359-17.795432l-637.584906 0q-27.455809 0-46.268123 18.812314t-18.812314 45.251241l0 382.347567zM1016.881827 501.322741q6.101291 9.151936 7.626614 23.388282t-10.677259 28.472691q-11.1857 14.236346-18.303873 21.354518l-8.135055 8.135055-105.75571-95.586892q5.084409-6.101291 14.236346-14.744786t14.236346-13.727905q14.236346-14.236346 30.506455-12.711023t27.455809 6.609732q12.202582 5.084409 26.438928 18.812314t22.3714 29.998014zM613.179742 789.100298q3.050645-3.050645 14.236346-16.270109t27.96425-32.540218 37.116187-42.200596 40.675273-46.268123q48.810328-54.911619 108.806356-122.025819l107.789474 95.586892q-59.996028 68.131082-108.806356 123.042701-20.337637 23.388282-40.675273 46.268123t-37.116187 41.183714-27.455809 29.998014-12.711023 13.727905q-9.151936 12.202582-25.422046 20.337637-7.118173 5.084409-21.354518 11.1857t-29.998014 12.202582-29.489573 10.677259-20.846077 5.59285q-26.438928 5.084409-23.388282-22.3714 1.016882-7.118173 4.067527-21.862959t6.609732-30.506455 7.118173-28.981132 5.59285-18.303873q5.084409-13.219464 17.286991-28.472691z" ></path></symbol><symbol id="icon-shanchu1" viewBox="0 0 1024 1024"><path d="M78.768011 168.230165c0-30.999918 24.230644-56.076722 54.15419-56.076722L403.692131 112.153443 403.692131 56.076722c0-30.999918 24.230644-56.076722 54.15419-56.076722l108.306335 0c29.923546 0 54.155214 25.076803 54.155214 56.076722l0 56.077745 270.768906 0c29.923546 0 54.15419 25.076803 54.15419 56.076722l0 56.076722L78.768011 224.307909 78.768011 168.230165zM891.076776 336.461352l0 112.153443 0 519.30746c0 30.923181-24.231667 56.077745-54.153167 56.077745L187.076392 1024c-29.923546 0-54.15419-25.154564-54.15419-56.077745L132.922201 448.614796 132.922201 336.461352l0-56.077745 758.154574 0L891.076776 336.461352zM349.53794 448.614796c0-30.923181-24.230644-56.076722-54.15419-56.076722-29.922523 0-54.153167 25.153541-54.153167 56.076722l0 407.154017c0 30.923181 24.230644 56.077745 54.153167 56.077745 29.923546 0 54.15419-25.154564 54.15419-56.077745L349.53794 448.614796zM566.153679 448.614796c0-30.923181-24.230644-56.076722-54.15419-56.076722-29.922523 0-54.153167 25.153541-54.153167 56.076722l0 407.154017c0 30.923181 24.230644 56.077745 54.153167 56.077745 29.923546 0 54.15419-25.154564 54.15419-56.077745L566.153679 448.614796zM782.770441 448.614796c0-30.923181-24.231667-56.076722-54.155214-56.076722s-54.15419 25.153541-54.15419 56.076722l0 407.154017c0 30.923181 24.230644 56.077745 54.15419 56.077745s54.155214-25.154564 54.155214-56.077745L782.770441 448.614796z" ></path></symbol><symbol id="icon-edit" viewBox="0 0 1024 1024"><path d="M923.9 335.8c-22.6-53.3-54.8-101.2-96-142.3-41.1-41.1-89-73.4-142.3-96-55.2-23.4-113.8-35.2-174.3-35.2S392.2 74.1 337 97.5c-53.3 22.6-101.2 54.8-142.3 96-41.1 41.1-73.4 89-96 142.3C75.3 391 63.5 449.7 63.5 510.1c0 60.4 11.8 119.1 35.2 174.3 22.6 53.3 54.8 101.2 96 142.3 41.1 41.1 89 73.4 142.3 96 55.2 23.4 113.9 35.2 174.3 35.2s119.1-11.8 174.3-35.2c35.9-15.2 69.3-34.8 99.8-58.5l-0.1-0.1c9.1-7.4 14.8-18.6 14.8-31.2 0-22.3-18-40.3-40.3-40.3-9.2 0-17.7 3.1-24.5 8.3l-0.2-0.3c-62 47.9-139.7 76.4-223.9 76.4-202.3 0-366.9-164.6-366.9-366.9s164.7-366.9 367-366.9 366.9 164.6 366.9 366.9c0 66.2-17.6 128.3-48.4 182l0.4 0.2c-4.4 6.5-7 14.2-7 22.6 0 22.3 18 40.3 40.3 40.3 16 0 29.8-9.3 36.3-22.8l0.2 0.1c8.9-15.5 16.8-31.5 23.8-48.1 23.4-55.2 35.2-113.9 35.2-174.3 0.1-60.4-11.7-119.1-35.1-174.3z" ></path><path d="M693.7 626.5H507.6l-57.1 66.1h243.2zM663.2 411.4c7.5-7.6 7.5-23.5 0-31.3l-45.4-46.8c-7.7-7.6-22.9-7.6-30.4 0l-45.7 46.8 76.1 78.1 45.4-46.8zM328.8 614.5v78.1h76.1l197.5-218.7-76-77.9z" ></path></symbol><symbol id="icon-new" viewBox="0 0 1024 1024"><path d="M926.3 337.9c-22.6-53.3-54.8-101.2-96-142.3-41.1-41.1-89-73.4-142.3-96-55.2-23.4-113.9-35.2-174.3-35.2S394.6 76.2 339.3 99.6c-53.3 22.6-101.2 54.8-142.3 96-41.1 41.1-73.4 89-96 142.3-23.4 55.2-35.2 113.9-35.2 174.3 0 60.4 11.8 119.1 35.2 174.3 22.6 53.3 54.8 101.2 96 142.3 41.1 41.1 89 73.4 142.3 96 55.2 23.4 113.9 35.2 174.3 35.2s119.1-11.8 174.3-35.2c53.3-22.6 101.2-54.8 142.3-96 41.1-41.1 73.4-89 96-142.3 23.4-55.2 35.2-113.9 35.2-174.3 0.1-60.4-11.8-119.1-35.1-174.3zM513.7 879.1c-202.3 0-366.9-164.6-366.9-366.9s164.6-366.9 366.9-366.9c202.3 0 366.9 164.6 366.9 366.9S716 879.1 513.7 879.1z" ></path><path d="M695.7 469.2h-139v-139c0-23.6-19.3-43-43-43-23.6 0-43 19.3-43 43v139h-139c-23.6 0-43 19.3-43 43s19.3 43 43 43h139v139c0 23.7 19.3 43 43 43 23.6 0 43-19.3 43-43v-139h139c23.6 0 43-19.3 43-43s-19.4-43-43-43z" ></path></symbol><symbol id="icon-biaoqianye1" viewBox="0 0 1024 1024"><path d="M345.557333 128l110.677334 168.405333H938.666667V896H85.333333V128h260.224zM299.52 213.333333H170.666667v597.333334h682.666666V381.738667H410.197333L299.52 213.333333z" fill="#222222" ></path><path d="M597.333333 136.533333c0-4.693333 3.541333-8.533333 7.893334-8.533333h325.546666c4.352 0 7.893333 3.84 7.893334 8.533333v68.266667c0 4.693333-3.541333 8.533333-7.893334 8.533333h-325.546666C600.874667 213.333333 597.333333 209.493333 597.333333 204.8V136.533333z" fill="#222222" ></path></symbol><symbol id="icon-biaoqianye" viewBox="0 0 1024 1024"><path d="M376.6 494.8c5.1 4.8 7.9 11.7 7.6 18.7 0.4 7.1-2.5 14-7.6 18.7-5.3 4.7-12.3 7.2-19.3 6.9h-69.6v235.1c0.2 7.4-2.9 14.4-8.4 19.1-5.5 5.4-12.9 8.3-20.5 8.1-7.6 0.3-15.1-2.7-20.5-8.1-5.3-4.9-8.2-11.9-8.1-19.1v-235H161c-7.2 0.3-14.2-2.3-19.3-7.3-5.2-4.8-8-11.7-7.6-18.7-0.3-7 2.5-13.7 7.6-18.3 5.3-4.8 12.2-7.3 19.3-7h198.4c6.3 0 12.4 2.5 17.2 6.9z m215.7 70.1c5.2 5.1 8 12.2 7.7 19.6v189.9c0.3 7.2-2.5 14.2-7.7 19.1-4.8 5.3-11.7 8.3-18.9 8.1-7.1 0.1-13.9-2.7-18.9-7.7-4.8-5.2-7.6-12-7.6-19.1-18 19.5-42.9 30.8-69.2 31.4-19.7 0.3-38.9-5.3-55.5-15.9-17.2-10.7-31.2-26.1-40.3-44.4-19.3-40.4-19.3-87.6 0-128 8.9-18.4 22.9-33.8 40.3-44.4 16-10.5 34.8-16.1 53.9-15.9 26.3-0.1 51.8 9.8 71.2 27.7-0.2-7.3 2.6-14.4 7.7-19.6 10.6-10.2 27.2-10.2 37.8 0l-0.5-0.8z m-61.2 168.7c24.1-31.6 24.1-75.6 0-107.2-11.5-14.3-28.9-22.3-47.1-21.6-17.9-0.5-35.1 7.4-46.3 21.6-12.1 15-18.5 34-18.1 53.4-0.6 19.5 5.7 38.6 17.7 53.8 11.6 13.9 28.8 21.7 46.7 21.2 18.1 0.4 35.3-7.4 47.1-21.2zM835.4 573c17.1 10.7 31 25.9 40.3 44 9.9 19.8 14.9 41.8 14.5 64 0.4 22.3-4.6 44.4-14.5 64.4-9 18.3-23 33.7-40.3 44.4-16 10.6-34.8 16.1-53.9 15.9-13.9 0.2-27.7-2.9-40.3-9-11.6-5-22.1-12.2-31-21.2v2.8c0.2 7.2-2.5 14.2-7.5 19.4-5 5.1-11.9 8-19.1 7.9-7.1 0.3-14-2.5-18.9-7.7-5.2-5.1-8-12.2-7.6-19.6V497.2c-0.2-7.3 2.5-14.4 7.6-19.6 10.6-10.3 27.2-10.3 37.8 0 5.1 5.2 7.9 12.2 7.6 19.6v93.3c8-9.8 18-17.7 29.4-23.2 12.4-6.8 26.2-10.3 40.3-10.2 19.7-0.2 39 5.3 55.6 15.9z m-15.7 163c12.2-15.1 18.6-34.3 18.1-53.8 0.6-19.4-5.7-38.3-17.7-53.4-12-13.4-29-21.1-46.9-21.1s-34.9 7.7-46.9 21.1c-24.1 31.6-24.1 75.6 0 107.2 11.6 14.1 29 22.1 47.1 21.6 18.3-0.2 35.4-9.1 46.3-24v2.4zM708.1 253.5c-15.5 0-28-12.5-28-28V113.4c-0.1-8 0-15.9 0-23.8V77.9c0-15.5 12.5-28 28-28H886c17 0 32.9 6.6 45 18.6 11.3 11.3 17.8 26 18.6 41.8 0.1 0.7 0.1 1.4 0.1 2.1v113.2c0 15.5-12.5 28-28 28H708.1z m28-56h157.4v-84.1c0-2-0.8-3.9-2.2-5.4-1.4-1.4-3.4-2.2-5.4-2.2H736.1v91.7zM371.9 254.6c-15.5 0-28-12.5-28-28V78.9c0-15.4 12.5-27.9 27.9-28l213.4-1.1h0.1c17 0 32.9 6.6 45 18.6 12 12.1 18.6 28 18.6 45v113.2c0 15.5-12.5 28-28 28h-249z m28-56.1h193v-85.2c0-2-0.8-3.9-2.2-5.4-1.4-1.4-3.3-2.2-5.3-2.2l-185.5 0.9v91.9z" fill="#595959" ></path><path d="M72.4 974.2c-17.3 0-33.5-6.7-45.7-18.7-12.2-12.1-18.9-28.1-18.9-45.1V113.6c0-35.2 29-63.8 64.6-63.8h169c17.3 0 33.5 6.6 45.7 18.7 12.2 12 18.9 28.1 18.9 45.1V283c0 2 0.8 3.9 2.3 5.4 1.5 1.4 3.4 2.2 5.4 2.2h637.9c17.3 0 33.5 6.6 45.7 18.7 12.2 12 18.9 28 18.9 45.1v556c0 17.1-6.7 33.1-18.9 45.1s-28.4 18.7-45.7 18.7H72.4z m7.7-860.6c-4.3 0-7.7 3.4-7.7 7.6v788.7c0 2 0.8 4 2.3 5.4 1.4 1.4 3.4 2.2 5.4 2.2h871.5c2.1 0 4-0.8 5.4-2.2 1.5-1.4 2.3-3.3 2.3-5.4V350.6c0-2-0.8-3.9-2.2-5.3-1.5-1.5-3.4-2.3-5.4-2.3h-638c-17.3 0-33.5-6.7-45.7-18.7-12.2-12-18.9-28.1-18.9-45.1V121.1c0-2-0.8-3.9-2.3-5.4-1.4-1.4-3.4-2.2-5.4-2.2H80.1z" fill="#595959" ></path></symbol><symbol id="icon-buzhou" viewBox="0 0 1024 1024"><path d="M488.106667 792.462222h257.137777a28.444444 28.444444 0 0 0 28.444445-28.444444 28.444444 28.444444 0 0 0-28.444445-28.444445H488.106667a28.444444 28.444444 0 0 0-28.444445 28.444445 28.444444 28.444444 0 0 0 28.444445 28.444444zM242.346667 764.017778A80.782222 80.782222 0 1 0 341.333333 686.08v-96.142222a80.213333 80.213333 0 0 0 0-155.875556V337.92a80.782222 80.782222 0 1 0-39.822222 0v96.142222a80.213333 80.213333 0 0 0 0 155.875556v96.142222a80.782222 80.782222 0 0 0-59.164444 77.937778zM284.444444 259.982222a40.96 40.96 0 0 1 81.92 0 40.391111 40.391111 0 0 1-40.391111 40.96 40.391111 40.391111 0 0 1-41.528889-40.96zM284.444444 512a40.96 40.96 0 1 1 40.96 40.96A40.96 40.96 0 0 1 284.444444 512z m40.391112 211.057778a40.391111 40.391111 0 0 1 40.391111 40.96 40.96 40.96 0 0 1-81.92 0 40.391111 40.391111 0 0 1 39.253333-40.96zM488.106667 540.444444h257.137777a28.444444 28.444444 0 1 0 0-56.888888H488.106667a28.444444 28.444444 0 1 0 0 56.888888zM488.106667 288.426667h257.137777a28.444444 28.444444 0 0 0 28.444445-28.444445 28.444444 28.444444 0 0 0-28.444445-28.444444H488.106667a28.444444 28.444444 0 0 0-28.444445 28.444444 28.444444 28.444444 0 0 0 28.444445 28.444445z" fill="#151515" ></path><path d="M859.022222 79.644444H164.977778a22.755556 22.755556 0 0 0-22.755556 22.755556v819.2a22.755556 22.755556 0 0 0 22.755556 22.755556h694.044444a22.755556 22.755556 0 0 0 22.755556-22.755556V102.4a22.755556 22.755556 0 0 0-22.755556-22.755556z m-22.755555 819.2H187.733333V125.155556h648.533334z" fill="#151515" ></path></symbol><symbol id="icon-ok" viewBox="0 0 1024 1024"><path d="M926.3 337.9c-22.6-53.3-54.8-101.2-96-142.3-41.1-41.1-89-73.4-142.3-96-55.2-23.4-113.9-35.2-174.3-35.2S394.6 76.2 339.3 99.6c-53.3 22.6-101.2 54.8-142.3 96-41.1 41.1-73.4 89-96 142.3-23.4 55.2-35.2 113.9-35.2 174.3 0 60.4 11.8 119.1 35.2 174.3 22.6 53.3 54.8 101.2 96 142.3 41.1 41.1 89 73.4 142.3 96 55.2 23.4 113.9 35.2 174.3 35.2s119.1-11.8 174.3-35.2c53.3-22.6 101.2-54.8 142.3-96 41.1-41.1 73.4-89 96-142.3 23.4-55.2 35.2-113.9 35.2-174.3 0.1-60.4-11.8-119.1-35.1-174.3zM513.7 879.1c-202.3 0-366.9-164.6-366.9-366.9s164.6-366.9 366.9-366.9c202.3 0 366.9 164.6 366.9 366.9S716 879.1 513.7 879.1z" ></path><path d="M715.6 371.6c-15.7-15.7-41.4-15.7-57 0l-196 196-95.9-95.9c-15.7-15.7-41.4-15.7-57 0-15.7 15.7-15.7 41.4 0 57l124.5 124.5c15.7 15.7 41.4 15.7 57 0l224.5-224.5c15.6-15.7 15.6-41.4-0.1-57.1z" ></path></symbol><symbol id="icon-cancel" viewBox="0 0 1024 1024"><path d="M926.3 337.9c-22.6-53.3-54.8-101.2-96-142.3-41.1-41.1-89-73.4-142.3-96-55.2-23.4-113.9-35.2-174.3-35.2S394.6 76.2 339.3 99.6c-53.3 22.6-101.2 54.8-142.3 96-41.1 41.1-73.4 89-96 142.3-23.4 55.2-35.2 113.9-35.2 174.3 0 60.4 11.8 119.1 35.2 174.3 22.6 53.3 54.8 101.2 96 142.3 41.1 41.1 89 73.4 142.3 96 55.2 23.4 113.9 35.2 174.3 35.2s119.1-11.8 174.3-35.2c53.3-22.6 101.2-54.8 142.3-96 41.1-41.1 73.4-89 96-142.3 23.4-55.2 35.2-113.9 35.2-174.3 0.1-60.4-11.8-119.1-35.1-174.3zM513.7 879.1c-202.3 0-366.9-164.6-366.9-366.9s164.6-366.9 366.9-366.9c202.3 0 366.9 164.6 366.9 366.9S716 879.1 513.7 879.1z" ></path><path d="M697.9 329.1c-15.6-15.6-41-15.6-56.6 0L513 457.4 384.7 329.1c-15.6-15.6-41-15.6-56.6 0-15.6 15.6-15.6 41 0 56.6L456.4 514 328.1 642.3c-15.6 15.6-15.6 41 0 56.6 15.6 15.6 41 15.6 56.6 0L513 570.6l128.3 128.3c15.6 15.6 41 15.6 56.6 0 15.6-15.6 15.6-41 0-56.6L569.6 514l128.3-128.3c15.6-15.6 15.6-41.1 0-56.6z" ></path></symbol><symbol id="icon-savebaocun" viewBox="0 0 1024 1024"><path d="M778.7 97.2H247.3C165 97.2 98 164.3 98 246.7v532.2c0 82.4 67 149.4 149.3 149.4h531.5c82.3 0 149.3-67 149.3-149.4V246.7C928 164.3 861 97.2 778.7 97.2z m-452.2 79.9h373.1v83.7H331.9c-2.9 0-5.5-2.6-5.5-5.5v-78.2z m373 671.3h-373v-225h373.1v225z m148.7-69.6c0 38.1-30.8 69.2-68.8 69.5V612.9c0-38.3-31.1-69.4-69.3-69.4H316c-38.2 0-69.3 31.1-69.3 69.4v235.4c-38-0.3-68.8-31.4-68.8-69.5V246.7c0-38.1 30.8-69.2 68.8-69.5v78.2c0 47.1 38.3 85.4 85.3 85.4h378c38.2 0 69.3-31.1 69.3-69.4v-94.2c38 0.3 68.8 31.4 68.8 69.5v532.1z" ></path></symbol><symbol id="icon-shijianxian2" viewBox="0 0 1024 1024"><path d="M171.52 924.16v-107.52c0-19.968 15.872-35.84 35.84-35.84s35.84 15.872 35.84 35.84v107.52c0 19.968-15.872 35.84-35.84 35.84s-35.84-15.872-35.84-35.84z m0-322.56v-107.52c0-19.968 15.872-35.84 35.84-35.84s35.84 15.872 35.84 35.84v107.52c0 19.968-15.872 35.84-35.84 35.84s-35.84-15.872-35.84-35.84z m0-394.24v-107.52c0-19.968 15.872-35.84 35.84-35.84s35.84 15.872 35.84 35.84v107.52c0 19.968-15.872 35.84-35.84 35.84s-35.84-15.872-35.84-35.84z" ></path><path d="M350.72 350.72c0 79.36-64 143.36-143.36 143.36s-143.36-64-143.36-143.36 64-143.36 143.36-143.36 143.36 64 143.36 143.36z m-143.36-71.68c-39.424 0-71.68 32.256-71.68 71.68s32.256 71.68 71.68 71.68 71.68-32.256 71.68-71.68-32.256-71.68-71.68-71.68z m143.36 430.08c0 79.36-64 143.36-143.36 143.36s-143.36-64-143.36-143.36 64-143.36 143.36-143.36 143.36 64 143.36 143.36z m-143.36-71.68c-39.424 0-71.68 32.256-71.68 71.68s32.256 71.68 71.68 71.68 71.68-32.256 71.68-71.68-32.256-71.68-71.68-71.68z m716.8-286.72h-501.76c-19.968 0-35.84-15.872-35.84-35.84s15.872-35.84 35.84-35.84h501.76c19.968 0 35.84 15.872 35.84 35.84s-15.872 35.84-35.84 35.84z m-284.672 107.52H420.352c-18.432 0-33.792-15.36-33.792-33.792v-4.096c0-18.432 15.36-33.792 33.792-33.792h219.136c18.432 0 33.792 15.36 33.792 33.792v4.096c0 18.432-15.36 33.792-33.792 33.792z m284.672 250.88h-501.76c-19.968 0-35.84-15.872-35.84-35.84s15.872-35.84 35.84-35.84h501.76c19.968 0 35.84 15.872 35.84 35.84s-15.872 35.84-35.84 35.84z m-284.672 107.52H420.352c-18.432 0-33.792-15.36-33.792-33.792v-4.096c0-18.432 15.36-33.792 33.792-33.792h219.136c18.432 0 33.792 15.36 33.792 33.792v4.096c0 18.432-15.36 33.792-33.792 33.792z" ></path></symbol><symbol id="icon-buzhoutiao" viewBox="0 0 1024 1024"><path d="M0 0h1024v1024H0z" fill="#FFFFFF" fill-opacity="0" ></path><path d="M204 372c66.31 0 121.852 46.1 136.326 108h137.53c12.901-33.907 45.71-58 84.144-58 38.435 0 71.243 24.093 84.145 58h139.71c12.902-33.907 45.71-58 84.145-58 49.706 0 90 40.294 90 90s-40.294 90-90 90c-38.434 0-71.242-24.092-84.144-57.998H646.144C633.242 577.908 600.434 602 562 602c-38.434 0-71.242-24.092-84.144-57.998h-137.53C325.852 605.9 270.309 652 204 652c-77.32 0-140-62.68-140-140s62.68-140 140-140z m0 64c-41.974 0-76 34.026-76 76s34.026 76 76 76 76-34.026 76-76-34.026-76-76-76z m358 50c-14.36 0-26 11.64-26 26s11.64 26 26 26 26-11.64 26-26-11.64-26-26-26z m308 0c-14.36 0-26 11.64-26 26s11.64 26 26 26 26-11.64 26-26-11.64-26-26-26z" fill="#666666" ></path></symbol><symbol id="icon-m-qianming" viewBox="0 0 1024 1024"><path d="M122.368 165.888h778.24c-9.216 0-16.384-7.168-16.384-16.384v713.728c0-9.216 7.168-16.384 16.384-16.384h-778.24c9.216 0 16.384 7.168 16.384 16.384V150.016c0 8.192-6.656 15.872-16.384 15.872z m-32.768 684.544c0 26.112 20.992 47.104 47.104 47.104h750.08c26.112 0 47.104-20.992 47.104-47.104V162.304c0-26.112-20.992-47.104-47.104-47.104H136.704c-26.112 0-47.104 20.992-47.104 47.104v688.128z" ></path><path d="M573.44 646.656l-3.072 6.144c-8.192 12.288-14.336 25.088-19.456 38.912-6.656 18.944-3.072 36.352 16.896 43.008 34.816 11.264 72.704 9.216 106.496-4.608 9.216-3.072 11.264-4.096 34.304-12.8 16.384-6.656 33.792-12.8 51.2-17.408 1.024 0 2.048-0.512 3.072-1.024 10.24-2.048 6.656-5.632 16.896 1.024 3.584 3.072 8.704 4.096 13.312 3.072 4.608-1.024 5.632-3.072 8.192-7.68 5.632-8.192 3.584-19.456-4.608-25.088-18.944-12.8-22.528-10.24-41.472-6.144-1.536 0.512-3.072 0.512-4.096 1.024-18.944 5.12-37.376 11.264-55.808 18.432-22.016 8.704-24.064 9.728-32.768 12.288-24.576 10.24-52.224 12.8-78.336 6.144 4.608-11.264 10.24-22.016 16.896-32.256 1.536-2.048 2.56-4.096 3.584-6.144 8.704-13.824 15.36-29.184 18.432-45.056 4.096-19.456-7.68-38.4-27.136-42.496-0.512 0-1.536-0.512-2.048-0.512-27.648-6.656-59.392 3.072-148.992 37.888-81.92 32.256-117.76 41.984-129.024 35.84-4.096-2.56-8.704-3.072-13.312-1.536-9.728 2.56-15.36 12.8-12.8 22.016 1.024 4.608 4.096 8.192 8.192 10.752 23.04 8.704 48.64 7.68 71.168-2.048 29.696-9.216 59.392-19.456 88.064-32.256 77.824-30.72 111.104-40.448 126.976-36.352 3.072 1.024 3.072 0 2.56 3.072-2.56 12.288-7.168 23.552-13.312 33.792zM665.088 235.52c-19.456-17.92-49.664-17.408-68.608 1.024L312.32 519.68c-2.048 2.048-3.584 4.608-4.608 7.68l-22.528 80.896c-2.56 9.728 3.072 19.456 12.8 21.504 3.584 1.024 7.68 0.512 11.264-0.512l71.168-29.696c5.632-2.56 10.752-5.632 15.36-10.24l283.648-269.824 2.56-2.56c18.432-19.456 17.92-50.176-2.048-68.608l-1.024-1.024-13.824-11.776z" ></path></symbol><symbol id="icon-touxiang_avatar" viewBox="0 0 1024 1024"><path d="M925.866667 797.866667c-12.8-25.6-34.133333-46.933333-64-64-29.866667-21.333333-68.266667-34.133333-119.466667-42.666667-4.266667 0-29.866667-4.266667-59.733333-12.8-21.333333-4.266667-34.133333-8.533333-38.4-12.8v-17.066667c4.266667-51.2 29.866667-76.8 55.466666-106.666666 8.533333-8.533333 17.066667-21.333333 25.6-29.866667 29.866667-42.666667 34.133333-89.6 34.133334-98.133333 0-8.533333 0-17.066667-4.266667-21.333334-4.266667-8.533333-8.533333-12.8-12.8-21.333333 0-12.8 4.266667-21.333333 4.266667-29.866667 0-21.333333 4.266667-55.466667-4.266667-89.6 0-8.533333-4.266667-12.8-4.266667-21.333333-8.533333-25.6-17.066667-46.933333-34.133333-68.266667-4.266667-12.8-64-72.533333-234.666667-85.333333H401.066667c-4.266667 0-17.066667 0-25.6 4.266667-21.333333 4.266667-38.4 21.333333-42.666667 42.666666v21.333334c-8.533333 8.533333-55.466667 51.2-55.466667 102.4-4.266667 34.133333-4.266667 85.333333 0 123.733333-8.533333 8.533333-17.066667 21.333333-12.8 42.666667 0 12.8 4.266667 55.466667 34.133334 98.133333 8.533333 8.533333 17.066667 17.066667 25.6 29.866667 25.6 29.866667 51.2 55.466667 55.466666 106.666666v17.066667c-4.266667 4.266667-17.066667 8.533333-38.4 12.8-29.866667 8.533333-59.733333 12.8-64 12.8-46.933333 8.533333-85.333333 21.333333-115.2 42.666667-25.6 17.066667-46.933333 38.4-64 64-25.6 38.4-25.6 76.8-25.6 85.333333v21.333333c0 25.6 21.333333 46.933333 46.933334 46.933334H896c25.6 0 46.933333-21.333333 46.933333-46.933334v-17.066666c8.533333-12.8 8.533333-51.2-17.066666-89.6z m-546.133334-128c0 4.266667 0 4.266667 0 0v4.266666c-4.266667 0-4.266667 0 0-4.266666z m503.466667 213.333333l-742.4 4.266667v-4.266667s0-25.6 12.8-51.2c8.533333-17.066667 25.6-29.866667 42.666667-42.666667 25.6-17.066667 55.466667-25.6 89.6-34.133333 4.266667 0 34.133333-4.266667 68.266666-12.8 51.2-12.8 76.8-29.866667 85.333334-46.933333 0-4.266667 0-4.266667 4.266666-8.533334v-42.666666c-8.533333-72.533333-42.666667-115.2-72.533333-145.066667-8.533333-8.533333-12.8-17.066667-21.333333-21.333333-21.333333-29.866667-21.333333-59.733333-21.333334-64l4.266667-4.266667 8.533333-8.533333c4.266667-17.066667 0-25.6 0-29.866667-4.266667-34.133333-4.266667-81.066667 0-119.466667 0-29.866667 29.866667-55.466667 29.866667-55.466666 8.533333-4.266667 17.066667-12.8 21.333333-21.333334 0-4.266667 4.266667-4.266667 4.266667-8.533333v-25.6H465.066667c140.8 8.533333 192 59.733333 192 59.733333 8.533333 12.8 17.066667 25.6 21.333333 42.666667 4.266667 4.266667 4.266667 8.533333 4.266667 12.8 4.266667 29.866667 4.266667 55.466667 4.266666 76.8 0 12.8 0 21.333333-4.266666 38.4 0 12.8 0 25.6 8.533333 29.866667l4.266667 4.266666 4.266666 4.266667s0 34.133333-21.333333 64c-4.266667 8.533333-12.8 12.8-21.333333 21.333333-29.866667 29.866667-64 72.533333-72.533334 145.066667v42.666667c0 4.266667 0 4.266667 4.266667 8.533333 8.533333 21.333333 34.133333 34.133333 85.333333 46.933333 34.133333 8.533333 64 12.8 68.266667 12.8 38.4 8.533333 68.266667 17.066667 93.866667 34.133334 17.066667 12.8 34.133333 25.6 42.666666 42.666666 8.533333 25.6 8.533333 51.2 4.266667 55.466667z" ></path></symbol><symbol id="icon-m-mianban" viewBox="0 0 1024 1024"><path d="M122.368 165.888h778.24c-9.216 0-16.384-7.168-16.384-16.384v713.728c0-9.216 7.168-16.384 16.384-16.384h-778.24c9.216 0 16.384 7.168 16.384 16.384V150.016c0 8.192-6.656 15.872-16.384 15.872z m-32.768 684.544c0 26.112 20.992 47.104 47.104 47.104h750.08c26.112 0 47.104-20.992 47.104-47.104V162.304c0-26.112-20.992-47.104-47.104-47.104H136.704c-26.112 0-47.104 20.992-47.104 47.104v688.128z" ></path><path d="M884.15744 348.01152v49.152h-745.984v-49.152z" ></path><path d="M356.43392 846.99136h-49.152v-450.048h49.152z" ></path></symbol><symbol id="icon-m-xialakuang" viewBox="0 0 1024 1024"><path d="M122.368 165.888h778.24c-9.216 0-16.384-7.168-16.384-16.384v713.728c0-9.216 7.168-16.384 16.384-16.384h-778.24c9.216 0 16.384 7.168 16.384 16.384V150.016c0 8.192-6.656 15.872-16.384 15.872z m-32.768 684.544c0 26.112 20.992 47.104 47.104 47.104h750.08c26.112 0 47.104-20.992 47.104-47.104V162.304c0-26.112-20.992-47.104-47.104-47.104H136.704c-26.112 0-47.104 20.992-47.104 47.104v688.128z" ></path><path d="M510.464 639.488l207.872-254.976H302.08z" ></path></symbol><symbol id="icon-m-biaodan" viewBox="0 0 1024 1024"><path d="M122.88 165.888h778.24c-9.216 0-16.384-7.168-16.384-16.384v713.728c0-9.216 7.168-16.384 16.384-16.384H122.88c9.216 0 16.384 7.168 16.384 16.384V150.016c0 8.192-6.656 15.872-16.384 15.872z m-32.768 684.544c0 26.112 20.992 47.104 47.104 47.104h750.08c26.112 0 47.104-20.992 47.104-47.104V162.304c0-26.112-20.992-47.104-47.104-47.104H137.216c-26.112 0-47.104 20.992-47.104 47.104v688.128z" ></path><path d="M244.224 279.04h142.848v49.152H244.224zM244.224 425.472h142.848v49.152H244.224zM436.736 279.04h342.528v49.152H436.736zM436.736 425.472h342.528v49.152H436.736zM244.224 572.416h142.848v49.152H244.224zM436.736 572.416h342.528v172.544H436.736z" ></path></symbol><symbol id="icon-m-biaoge" viewBox="0 0 1024 1024"><path d="M122.368 165.888h778.24c-9.216 0-16.384-7.168-16.384-16.384v713.728c0-9.216 7.168-16.384 16.384-16.384h-778.24c9.216 0 16.384 7.168 16.384 16.384V150.016c0 8.192-6.656 15.872-16.384 15.872z m-32.768 684.544c0 26.112 20.992 47.104 47.104 47.104h750.08c26.112 0 47.104-20.992 47.104-47.104V162.304c0-26.112-20.992-47.104-47.104-47.104H136.704c-26.112 0-47.104 20.992-47.104 47.104v688.128z" ></path><path d="M249.344 347.648h49.152v499.2h-49.152zM584.704 347.648h49.152v499.2h-49.152zM137.728 165.888h746.496v181.76H137.728z" ></path><path d="M137.728 481.792h746.496v49.152H137.728zM137.728 664.576h746.496v49.152H137.728z" ></path></symbol><symbol id="icon-dashboard-o" viewBox="0 0 1024 1024"><path d="M880 622c17.673 0 32 14.327 32 32v226c0 17.673-14.327 32-32 32H582c-17.673 0-32-14.327-32-32V654c0-17.673 14.327-32 32-32h298zM442 476c17.673 0 32 14.327 32 32v372c0 17.673-14.327 32-32 32H144c-17.673 0-32-14.327-32-32V508c0-17.673 14.327-32 32-32h298z m406 210H614v162h234V686zM410 540H176v308h234V540z m470-428c17.673 0 32 14.327 32 32v372c0 17.673-14.327 32-32 32H582c-17.673 0-32-14.327-32-32V144c0-17.673 14.327-32 32-32h298z m-32 64H614v308h234V176z m-406-64c17.673 0 32 14.327 32 32v226c0 17.673-14.327 32-32 32H144c-17.673 0-32-14.327-32-32V144c0-17.673 14.327-32 32-32h298z m-32 64H176v162h234V176z" fill="#000000" fill-opacity=".65" ></path></symbol><symbol id="icon-line-layoutmasonryfensanbuju" viewBox="0 0 1024 1024"><path d="M896 128H128c-25.6 0-42.666667 17.066667-42.666667 42.666667v682.666666c0 25.6 17.066667 42.666667 42.666667 42.666667h768c25.6 0 42.666667-17.066667 42.666667-42.666667V170.666667c0-25.6-17.066667-42.666667-42.666667-42.666667zM170.666667 213.333333h298.666666v341.333334H170.666667V213.333333z m0 597.333334v-170.666667h298.666666v170.666667H170.666667z m682.666666 0h-298.666666v-341.333334h298.666666v341.333334z m0-426.666667h-298.666666V213.333333h298.666666v170.666667z" fill="#09121F" ></path></symbol><symbol id="icon-zidingyibuju" viewBox="0 0 1024 1024"><path d="M0 0v256h1024V0z m960 192H64V64h896zM0 1024h512V320H0z m64-640h384v576H64zM576 576h448v-256H576z m64-192h320v128H640zM576 1024h448V640H576z m64-320h320v256H640z" fill="#575869" ></path></symbol><symbol id="icon-daochu" viewBox="0 0 1024 1024"><path d="M394.6 689.8c-13.2 3.2-27.4-9.5-31.7-23.2-8.4-28.5-12.7-58.6-12.7-88.1 0-159.4 151.5-325.1 314.1-352.1v-5.3c0-1.6 0-3.7 0.5-5.3l0.5-2.1c1.6-11.6 5.8-38.5 32.2-55.4 10.6-6.9 22.2-10 34.3-10 14.8 0 26.9 5.3 34.3 9.5 1.6 0.5 2.6 1.6 4.2 2.6L929.2 286c17.4 13.2 28 34.8 28 57 0 22.7-10.6 44.3-28.5 57.5L770.5 525.7c-11.6 9-25.3 13.7-39.1 13.7-12.1 0-23.8-3.7-34.8-10.6-21.1-13.7-31.7-34.8-31.7-64.4v-1.1C559.3 475 442.2 569 416.3 657.6c-4.8 14.3-13.7 32.2-21.7 32.2z m335.7-466.6V256c0 17.4-13.7 31.7-31.1 32.7-125.6 6.9-257.6 131.4-279.7 254.4C486 458.7 595.2 390 699.7 397.4c17.4 1.1 30.6 15.3 30.6 32.7V465c0 4.7 0.5 6.9 0.5 7.9l157.3-124.6c2.1-1.6 2.6-3.2 2.6-5.3 0-2.1-1.1-4.2-2.6-5.3L731.9 214.3c-1.1 1.6-1.6 5.8-2.1 8.4l0.5 0.5z m0 0" ></path><path d="M715.6 916.3H188.3c-67 0-121.9-54.9-121.9-121.9v-568c0-67 54.9-121.9 121.9-121.9h436.5v69.7H188.3c-28.5 0-52.3 23.2-52.3 52.3V795c0 28.5 23.2 52.3 52.3 52.3h527.3c28.5 0 52.3-23.2 52.3-52.3V593.2H837v201.6c0 66.6-54.4 121.5-121.4 121.5z m0 0" ></path><path d="M183 566.9h112.4V626H183v-59.1z m0 154.1h296.1v59.1H183V721z m0-425.4h237v59.1H183v-59.1z m0 140.9h112.4v59.1H183v-59.1z m0 0" ></path></symbol><symbol id="icon-daoru" viewBox="0 0 1024 1024"><path d="M111.6 148.8c7.9 0 16.9 17.9 21.6 32.2 25.9 88.7 143 182.6 248.6 194.2v-1.1c0-29.6 10.6-50.7 31.7-64.4 11.1-6.9 22.7-10.6 34.8-10.6 13.7 0 27.4 4.8 39.1 13.7L645.8 438c17.9 13.2 28.5 34.8 28.5 57.5 0 22.2-10.6 43.8-28 57L487.4 678.2c-1.6 1.1-2.6 2.1-4.2 2.6-7.4 4.2-19.5 9.5-34.3 9.5-12.1 0-23.7-3.2-34.3-10-26.4-16.9-30.6-43.8-32.2-55.4l-0.5-2.1c-0.5-1.6-0.5-3.7-0.5-5.3v-5.3c-162.6-26.9-314.1-192.6-314.1-352 0-29.6 4.2-59.6 12.7-88.1 4.2-13.8 18.4-26.5 31.6-23.3z m335.2 467.1c0.5 2.6 1.1 6.9 2.1 8.4l156.2-123.5c1.6-1.1 2.6-3.2 2.6-5.3 0-2.1-0.5-3.7-2.6-5.3L447.8 365.7c0 1.1-0.5 3.2-0.5 7.9v34.8c0 17.4-13.2 31.7-30.6 32.7-104.5 7.4-213.8-61.2-280.3-145.7 22.2 123 154.1 247.5 279.7 254.4 17.4 1.1 31.1 15.3 31.1 32.7v32.7l-0.4 0.7z m0.5-0.5" ></path><path d="M309 916.3c-67 0-121.4-54.9-121.4-121.4V593.2h69.1v201.6c0 29 23.8 52.3 52.3 52.3h527.3c29 0 52.3-23.8 52.3-52.3V226.4c0-29-23.8-52.3-52.3-52.3H399.8v-69.7h436.5c67 0 121.9 54.9 121.9 121.9v567.9c0 67-54.9 121.9-121.9 121.9H309v0.2z m0 0" ></path><path d="M841.6 626H729.1v-59.1h112.4V626z m0 154.1H545.5V721h296.1v59.1z m0-425.4h-237v-59.1h237v59.1z m0 140.9H729.1v-59.1h112.4v59.1z m0-59.1" ></path></symbol><symbol id="icon-a-juxing1851" viewBox="0 0 1024 1024"><path d="M0 0h438.857143v1024H0V0z m512 0h512v438.857143H512V0z m0 512h219.428571v219.428571H512V512z m292.571429 0h219.428571v219.428571h-219.428571V512z m-292.571429 292.571429h73.142857v73.142857H512v-73.142857z m146.285714 0h73.142857v73.142857H658.285714v-73.142857z m-146.285714 146.285714h73.142857v73.142857H512v-73.142857z m146.285714 0h73.142857v73.142857H658.285714v-73.142857z m146.285715 0h73.142857v73.142857h-73.142857v-73.142857z m146.285714 0h73.142857v73.142857h-73.142857v-73.142857z m-146.285714-146.285714h73.142857v73.142857h-73.142857v-73.142857z m146.285714 0h73.142857v73.142857h-73.142857v-73.142857z" ></path></symbol><symbol id="icon-sxsz" viewBox="0 0 1024 1024"><path d="M304.5 152.6h415L927 512 719.5 871.4h-415L97 512z" fill="#386BF3" ></path><path d="M512 512m-145.25 0a145.25 145.25 0 1 0 290.5 0 145.25 145.25 0 1 0-290.5 0Z" fill="#3D4265" ></path></symbol><symbol id="icon-mx" viewBox="0 0 1024 1024"><path d="M511.9 325.12v248.55L727.15 449.4l-0.01-248.55z" fill="#C3D2FB" ></path><path d="M296.65 200.85L511.9 325.12v248.56L296.65 449.4z" fill="#3D4265" ></path><path d="M511.9 325.12l215.25-124.27L511.9 76.57 296.65 200.85z" fill="#386BF3" ></path><path d="M296.62 698.02v248.55L511.87 822.3l-0.01-248.56z" fill="#C3D2FB" ></path><path d="M81.37 573.74l215.25 124.28v248.55L81.37 822.3z" fill="#3D4265" ></path><path d="M296.62 698.02l215.25-124.28-215.25-124.27L81.37 573.74z" fill="#386BF3" ></path><path d="M727.03 698.02v248.55L942.28 822.3l-0.01-248.56z" fill="#C3D2FB" ></path><path d="M511.78 573.74l215.25 124.28v248.55L511.78 822.3z" fill="#3D4265" ></path><path d="M727.03 698.02l215.25-124.28-215.25-124.27-215.25 124.27z" fill="#386BF3" ></path></symbol><symbol id="icon-al" viewBox="0 0 1024 1024"><path d="M192 132h440v640H192z" fill="#386BF3" ></path><path d="M632 260h200v512H632z" fill="#C3D2FB" ></path><path d="M398.86 612L512 725.14 625.14 612H912v280H112V612z" fill="#3D4265" ></path></symbol><symbol id="icon-sf" viewBox="0 0 1024 1024"><path d="M511.82 512.5v435L888.54 730l-0.02-435z" fill="#C3D2FB" ></path><path d="M135.1 295l376.72 217.5v435L135.1 730z" fill="#3D4265" ></path><path d="M511.82 512.5L888.54 295 511.82 77.5 135.1 295z" fill="#386BF3" ></path></symbol><symbol id="icon-moxing" viewBox="0 0 1061 1024"><path d="M447.122 467.332L49.24 268.162A33.501 33.501 0 0 0 0.136 300.745v441.02a33.042 33.042 0 0 0 16.062 27.994l396.965 248.275a33.96 33.96 0 0 0 17.438 5.507 33.042 33.042 0 0 0 33.043-33.042V497.162a33.042 33.042 0 0 0-16.522-29.83z m598.889-203.76a33.042 33.042 0 0 0-31.666 0l-463.507 203.76a33.042 33.042 0 0 0-19.733 30.289v493.337a33.042 33.042 0 0 0 49.563 28.453l463.048-265.255a33.042 33.042 0 0 0 16.521-28.453V291.566a33.042 33.042 0 0 0-14.226-27.994z m-54.611-84.9a33.042 33.042 0 0 0-22.487-29.83L550.838 1.53a32.583 32.583 0 0 0-19.733 0L83.659 158.021a33.042 33.042 0 0 0-4.13 61.036l397.882 199.17a33.501 33.501 0 0 0 14.685 3.213 33.96 33.96 0 0 0 13.31 0L969.37 215.845a33.042 33.042 0 0 0 22.029-37.173z" fill="#5E5C5C" ></path></symbol><symbol id="icon-yanzhengyanzhengma" viewBox="0 0 1024 1024"><path d="M943.1 172c-2.4-0.2-245.1-25.3-413.8-147.8-5.1-3.7-11-5.6-17.3-5.6-6.2 0-12.2 1.9-17.3 5.6C326.9 146 83.3 171.8 80.9 172c-15.2 1.4-26.6 14.1-26.6 29.3 0 6.7 0.6 165.8 54.8 344.4 32.1 105.8 76.4 196.4 131.9 269.2 70.3 92.3 158.5 156 262 189.2 2.9 0.9 5.9 1.4 9 1.4s6.1-0.5 8.9-1.4c103.6-33.2 191.7-96.8 262-189.2 55.4-72.7 99.8-163.2 131.9-269.2 54.1-178.6 54.8-337.7 54.8-344.4C969.7 186.1 958.3 173.5 943.1 172zM910.1 227.2l-0.1 1.6c-2.9 58.1-13.4 174.4-51.4 299.9-66.7 220.1-183.1 360.1-346 416.1L512 945l-0.6-0.2C349 888.9 232.7 749.4 165.8 530.1c-39.8-130.5-49.4-254.2-51.8-301.4l-0.1-1.6 1.5-0.2c70.6-10.3 250.5-44.8 395.5-142.4l0.9-0.7 1 0.7C658 182.1 837.9 216.6 908.5 227L910.1 227.2z" ></path><path d="M641.8 351 467 580.3l-89-76.1c-5.3-4.5-12.1-7-19.1-7-8.6 0-16.8 3.7-22.4 10.3-10.5 12.3-9.1 31 3.3 41.5l112.7 96.4c5.2 4.4 12.4 7 19.6 7 0.9 0 1.8 0 2.7-0.1 8-0.8 15.4-5 20.3-11.4l193.7-254c4.8-6.3 6.8-14 5.7-21.8-1-7.8-5.1-14.7-11.3-19.5C670.1 335.6 651.6 338.1 641.8 351z" ></path></symbol><symbol id="icon-verify" viewBox="0 0 1024 1024"><path d="M713.856 93.44c44.672 9.344 79.36 15.488 105.024 18.944a332.8 332.8 0 0 0 28.864 3.008A110.08 110.08 0 0 1 944 223.36v348.672c0 71.232-36.288 168.32-80.704 219.328a737.216 737.216 0 0 1-100.672 106.496C683.264 966.208 599.232 1008 512 1008s-171.328-41.792-250.624-110.144c-26.88-23.168-51.2-47.808-72.832-72.512a409.152 409.152 0 0 1-24.768-30.208c-47.68-52.928-83.776-150.4-83.776-223.104V223.36c0-54.72 42.752-102.528 99.264-108.096 5.76-0.32 17.536-1.408 34.432-3.648a953.6 953.6 0 0 0 95.168-17.92c19.392-4.608 34.944-12.16 65.92-30.4l9.984-5.888C434.048 28.416 466.432 16 512 16c39.296 0 68.288 11.84 127.488 43.968l2.304 1.28c38.784 21.056 55.296 28.672 72.064 32.192z m-19.712 93.952c-29.376-6.144-50.688-16-98.176-41.856l-2.304-1.216C549.312 120.32 529.088 112 512 112c-24.192 0-42.88 7.168-78.656 28.16-4.736 2.88-4.736 2.88-9.728 5.76-38.784 22.912-61.12 33.664-92.48 41.216-37.76 8.96-72.96 15.36-104.768 19.648a556.8 556.8 0 0 1-39.68 4.16c-5.12 0.512-10.688 6.784-10.688 12.416v348.672c0 49.344 27.52 123.84 62.08 162.56a642.176 642.176 0 0 0 85.952 90.56c63.552 54.72 128.192 86.848 187.968 86.848 59.776 0 124.416-32.128 187.968-86.848a642.176 642.176 0 0 0 88.32-93.632c31.808-36.608 59.712-111.36 59.712-159.488V223.36c0-5.44-5.888-12.032-6.656-12.288-20.288-0.448-66.112-6.72-147.2-23.68zM400.128 488.704L487.68 576.256l185.088-185.088a48 48 0 0 1 67.84 67.84L521.6 678.144a48 48 0 0 1-67.84 0l-121.6-121.536a48 48 0 1 1 67.968-67.84z" fill="#768893" ></path></symbol><symbol id="icon-preview" viewBox="0 0 1024 1024"><path d="M854.36155804 32.02835121a114.60838884 114.60838884 0 0 1 114.21544637 105.17775738l0.39294247 9.43063278v170.60277392a49.1178817 49.1178817 0 0 1-97.77732893 6.68003145l-0.45843311-6.68003145V146.63674137a16.37262679 16.37262679 0 0 0-12.63966726-15.9796843l-3.73295954-0.39294246H130.1675186a16.37262679 16.37262679 0 0 0-15.91419368 12.57417659l-0.45843312 3.79845017v732.18388095a16.37262679 16.37262679 0 0 0 12.63966859 15.91419369l3.73295821 0.4584331h275.4530781a49.1178817 49.1178817 0 0 1 6.68003143 97.77732894l-6.68003143 0.4584331H130.1675186a114.60838884 114.60838884 0 0 1-114.21544639-105.24324667l-0.39294246-9.36514216V146.63674137a114.60838884 114.60838884 0 0 1 105.24324669-114.28093698l9.36514216-0.32745318h724.19403944z m-286.32450218 495.1082417a235.76582919 235.76582919 0 0 1 358.88798459 303.35203402l80.61881587 80.55332523a39.29430509 39.29430509 0 0 1-55.53595059 55.66693187l-80.61881589-80.61881587a235.83131983 235.83131983 0 0 1-303.35203398-358.88798459z m277.87622625 55.60144257a157.17721902 157.17721902 0 1 0-222.27478502 222.2747837 157.17721902 157.17721902 0 0 0 222.27478502-222.2747837z m-450.70567639-33.26917864a42.56883017 42.56883017 0 1 1 0 85.13766035H210.39339064a42.56883017 42.56883017 0 1 1 0-85.13766035h184.81421508z m0-158.68350096a42.56883017 42.56883017 0 1 1 0 85.13766036H210.39339064a42.56883017 42.56883017 0 1 1 0-85.13766036h184.81421508z m233.67013285-158.68350095a42.56883017 42.56883017 0 1 1 0 85.13766036h-418.48434793a42.56883017 42.56883017 0 1 1 0-85.13766036h418.48434793z" fill="#7f7f7f" ></path></symbol><symbol id="icon-yunshangchuan-xian" viewBox="0 0 1039 1024"><path d="M711.40656 345.248C667.88656 248.448 594.91056 208 481.83856 208c-118.848 0-219.328 96.512-256.736 267.76l-4.96 22.752-23.2 2.256c-83.744 8.192-120.176 54.176-131.36 144.4C54.30256 736.528 103.18256 816 193.85456 816h190.672a32 32 0 1 1 0 64H193.83856C58.68656 880-13.44144 762.72 2.07856 637.296 15.61456 528 65.80656 458.416 167.75856 440.224 215.27856 254.704 335.99856 144 481.83856 144c143.072 0 241.184 58.72 294.24 189.808 3.328-0.176 6.576-0.272 9.76-0.272 125.184 0 223.68 93.696 239.84 252.768 0.896 8.96 1.36 17.952 1.36 26.96C1027.03856 760.576 907.61456 880 760.30256 880h-120.064a32 32 0 1 1 0-64h120.064c111.968 0 202.72-90.768 202.72-202.736 0-6.848-0.32-13.68-1.024-20.48-12.912-127.088-84.544-195.248-176.16-195.248-23.136 0-55.68 7.232-96.928 22.032a32 32 0 1 1-21.616-60.224c15.584-5.6 30.288-10.304 44.112-14.08zM544.23856 598.512V848a32 32 0 0 1-64 0V598.512l-39.712 46.32a32 32 0 1 1-48.592-41.664l95.632-111.552a32.032 32.032 0 0 1 49.344 0l95.616 111.552a32 32 0 0 1-48.592 41.664l-39.696-46.32z" ></path></symbol><symbol id="icon-yulan" viewBox="0 0 1024 1024"><path d="M897.28 85.333333h-750.933333c-28.16 0-51.2 23.04-51.2 51.2v750.933334c0 28.16 23.04 51.2 51.2 51.2h276.906666c18.773333 0 34.133333-15.36 34.133334-34.133334s-15.36-34.133333-34.133334-34.133333H163.413333V153.6h716.8v275.626667c0 18.773333 15.36 34.133333 34.133334 34.133333s34.133333-15.36 34.133333-34.133333V136.533333c0-28.16-22.613333-51.2-51.2-51.2z" fill="#4C4C4C" ></path><path d="M649.813333 315.733333h-324.266666c-18.773333 0-34.133333-15.36-34.133334-34.133333s15.36-34.133333 34.133334-34.133333h324.266666c18.773333 0 34.133333 15.36 34.133334 34.133333s-14.933333 34.133333-34.133334 34.133333zM564.48 452.266667h-238.933333c-18.773333 0-34.133333-15.36-34.133334-34.133334s15.36-34.133333 34.133334-34.133333h238.933333c18.773333 0 34.133333 15.36 34.133333 34.133333s-14.933333 34.133333-34.133333 34.133334zM479.146667 588.8h-153.6c-18.773333 0-34.133333-15.36-34.133334-34.133333s15.36-34.133333 34.133334-34.133334h153.6c18.773333 0 34.133333 15.36 34.133333 34.133334s-14.933333 34.133333-34.133333 34.133333zM724.48 544c-94.293333 0-170.666667 76.373333-170.666667 170.666667s76.373333 170.666667 170.666667 170.666666 170.666667-76.373333 170.666667-170.666666-76.373333-170.666667-170.666667-170.666667z m0 273.066667c-56.32 0-102.4-46.08-102.4-102.4s46.08-102.4 102.4-102.4 102.4 46.08 102.4 102.4-45.653333 102.4-102.4 102.4z" fill="#4C4C4C" ></path><path d="M938.666667 928.853333c-13.226667 13.226667-34.986667 13.226667-48.213334 0l-72.533333-72.533333c-13.226667-13.226667-13.226667-34.986667 0-48.213333 13.226667-13.226667 34.986667-13.226667 48.213333 0l72.533334 72.533333c13.226667 13.226667 13.226667 34.56 0 48.213333z" fill="#4C4C4C" ></path></symbol><symbol id="icon-sousuo" viewBox="0 0 1024 1024"><path d="M1004.8 915.2l-243.2-243.2c0 0-6.4-6.4-6.4-6.4C800 595.2 832 505.6 832 416 832 185.6 646.4 0 416 0S0 185.6 0 416 185.6 832 416 832c89.6 0 179.2-32 243.2-83.2 0 6.4 6.4 6.4 6.4 6.4l243.2 243.2c25.6 25.6 70.4 25.6 96 6.4C1030.4 979.2 1030.4 940.8 1004.8 915.2zM64 416C64 224 224 64 416 64S768 224 768 416 608 768 416 768 64 608 64 416z" fill="#231815" ></path></symbol><symbol id="icon-ziliucheng" viewBox="0 0 1024 1024"><path d="M212.992 526.336 212.992 526.336 212.992 526.336 215.04 526.336 212.992 526.336Z" ></path><path d="M813.056 768l96.256 0c20.48 0 38.912 16.384 38.912 38.912l0 96.256c0 20.48-16.384 38.912-38.912 38.912l-96.256 0c-20.48 0-38.912-16.384-38.912-38.912l0-38.912-18.432 0c-53.248 0-96.256-43.008-96.256-96.256L659.456 614.4l-96.256 0 0 192.512c0 20.48-16.384 38.912-38.912 38.912L120.832 845.824c-20.48 0-38.912-16.384-38.912-38.912L81.92 401.408c0-20.48 16.384-38.912 38.912-38.912l192.512 0L313.344 190.464 120.832 190.464C98.304 190.464 81.92 174.08 81.92 151.552L81.92 112.64c0-20.48 16.384-38.912 38.912-38.912l788.48 0c20.48 0 38.912 16.384 38.912 38.912l0 38.912c0 20.48-16.384 38.912-38.912 38.912L331.776 190.464l0 174.08 192.512 0c20.48 0 38.912 16.384 38.912 38.912L563.2 593.92l96.256 0 0-153.6c0-53.248 43.008-96.256 96.256-96.256l18.432 0 0-38.912c0-20.48 16.384-38.912 38.912-38.912l96.256 0c20.48 0 38.912 16.384 38.912 38.912l0 96.256c0 20.48-16.384 38.912-38.912 38.912l-96.256 0c-20.48 0-38.912-16.384-38.912-38.912l0-38.912-18.432 0c-43.008 0-77.824 34.816-77.824 77.824L677.888 593.92l96.256 0 0-38.912c0-20.48 16.384-38.912 38.912-38.912l96.256 0c20.48 0 38.912 16.384 38.912 38.912l0 96.256c0 20.48-16.384 38.912-38.912 38.912l-96.256 0c-20.48 0-38.912-16.384-38.912-38.912L774.144 614.4l-96.256 0 0 153.6c0 43.008 34.816 77.824 77.824 77.824l18.432 0 0-38.912C774.144 784.384 792.576 768 813.056 768z" ></path></symbol><symbol id="icon-danyuange" viewBox="0 0 1024 1024"><path d="M467.970999 661.248453h-184.831769a70.655912 70.655912 0 0 0-54.527932 25.599968A82.431897 82.431897 0 0 0 204.803328 744.19235v196.607754A82.687897 82.687897 0 0 0 228.611298 998.400032a71.423911 71.423911 0 0 0 54.527932 25.599968h184.831769a73.727908 73.727908 0 0 0 55.039931-25.599968 81.919898 81.919898 0 0 0 23.551971-58.623927v-195.583755a81.919898 81.919898 0 0 0-23.551971-58.367927 72.959909 72.959909 0 0 0-55.039931-25.599968z m5.887993-84.991893A118.015852 118.015852 0 0 0 512.002944 549.376593 127.99984 127.99984 0 0 0 545.538902 460.800704V126.465122A133.119834 133.119834 0 0 0 537.602912 76.801184a123.391846 123.391846 0 0 0-25.599968-40.447949 118.015852 118.015852 0 0 0-37.119954-25.599968A104.703869 104.703869 0 0 0 428.547048 0.00128H116.995438A105.471868 105.471868 0 0 0 71.683494 9.985268a121.087849 121.087849 0 0 0-37.119953 25.599968A127.99984 127.99984 0 0 0 9.219572 76.801184 133.119834 133.119834 0 0 0 0.003584 126.465122V460.800704a127.99984 127.99984 0 0 0 34.559957 88.31989 121.087849 121.087849 0 0 0 37.119953 27.135966 105.471868 105.471868 0 0 0 45.311944 9.983987h311.55161a106.239867 106.239867 0 0 0 45.311944-9.983987z m527.35934-329.215589a71.67991 71.67991 0 0 0-54.783931-25.599968h-184.575769a72.959909 72.959909 0 0 0-55.295931 25.599968 81.919898 81.919898 0 0 0-23.551971 58.367927v195.583756a83.199896 83.199896 0 0 0 23.551971 59.647925 73.983908 73.983908 0 0 0 55.295931 25.599968H947.2024a72.447909 72.447909 0 0 0 54.783932-25.599968 84.991894 84.991894 0 0 0 22.015972-59.647925v-195.583756a82.943896 82.943896 0 0 0-22.783972-58.367927zM947.2024 661.248453h-185.343768a72.959909 72.959909 0 0 0-55.295931 25.599968 81.919898 81.919898 0 0 0-23.551971 58.367927v196.607755A81.919898 81.919898 0 0 0 706.562701 998.400032a73.983908 73.983908 0 0 0 55.295931 25.599968H947.2024a72.447909 72.447909 0 0 0 54.783932-25.599968 83.455896 83.455896 0 0 0 22.015972-57.599928v-196.607754a83.199896 83.199896 0 0 0-22.783972-58.367927 71.67991 71.67991 0 0 0-54.783931-25.599968z m0 0" ></path></symbol><symbol id="icon-rengongzhineng_filledbeifen" viewBox="0 0 1024 1024"><path d="M913.678222 374.556444c0-175.431111-160.782222-317.653333-359.139555-317.653333a382.577778 382.577778 0 0 0-254.663111 93.767111 270.108444 270.108444 0 0 0-91.335112 118.840889 318.350222 318.350222 0 0 0-20.849777 98.773333c-0.597333 38.840889 18.389333 76.871111 1.664 114.688-11.633778 26.453333-41.870222 48.824889-61.312 69.916445 0 0-54.442667 36.224 49.436444 41.173333 2.929778 0.142222 16.071111 62.222222 19.342222 76.430222a16.753778 16.753778 0 0 0-3.271111 10.752c0 11.904 15.004444 21.617778 33.450667 21.617778h11.278222c-24.362667 3.313778-41.955556 12.8-41.955555 26.026667 0 9.102222 11.562667 21.105778 28.842666 28.302222 0 0-21.333333 66.744889 10.296889 81.962667a36.977778 36.977778 0 0 0 21.333333 1.564444c44.856889 2.446222 125.155556-0.739556 169.784889-0.739555 0-0.810667 23.466667 127.146667 23.466667 127.146666h403.299556c0 0.64-38.769778-289.265778-38.769778-289.265777 70.968889-101.632 95.544889-192.611556 96.881778-268.643556 1.422222-11.491556 2.161778-23.068444 2.176-34.659556h0.042666zM701.155556 320.711111a72.632889 72.632889 0 0 1-65.706667-42.055111l-54.471111 31.544889a108.344889 108.344889 0 0 1-7.509334 107.975111l102.172445 59.192889a36.508444 36.508444 0 1 1-10.894222 25.984 35.555556 35.555556 0 0 1 2.019555-10.026667L561.777778 432.512a109.511111 109.511111 0 1 1 10.168889-138.154667l57.728-33.422222a72.718222 72.718222 0 1 1 71.466666 59.733333v0.042667z" fill="#323233" ></path></symbol><symbol id="icon-fuhao-huizhi" viewBox="0 0 1024 1024"><path d="M254.4 82.624L82.624 254.4a60.704 60.704 0 0 0 0 85.92L254.4 512l128.8-128.8-42.88-42.88-85.92 85.888-42.88-42.88 85.888-85.92-42.88-42.88-85.92 85.888-42.88-42.88 171.776-171.84 171.584 171.616L512 254.4l-171.776-171.84a60.576 60.576 0 0 0-85.76 0z m644.096 644.064l-171.808 171.808-42.88-42.912 85.888-85.888-42.88-42.88-85.92 85.856-42.88-42.88 85.888-85.888-42.912-42.912L512 769.6l171.776 171.776a60.704 60.704 0 0 0 85.92 0l171.776-171.776a60.704 60.704 0 0 0 0-85.92L769.6 512l-42.912 42.88 171.808 171.808zM680.8 211.328l131.968 131.872-43.968 44L636.8 255.2l44-43.872zM240.96 650.976l131.968 131.872-44 44-131.968-131.872 44-44zM680.704 123.424a124.544 124.544 0 0 1 176.288 0.096l43.584 43.52a124.704 124.704 0 0 1 0.096 176.16L355.264 888.416l-268.352 48.384 48.384-268.288L680.704 123.424zM334.4 821.344L857.472 298.656c23.84-23.872 23.552-63.264-0.8-87.52L813.12 167.616c-24.544-24.544-63.552-24.832-87.584-0.8L202.432 689.6l-27.52 159.424 159.52-27.616z" fill="#0A8CF0" ></path></symbol><symbol id="icon-shanchu" viewBox="0 0 1024 1024"><path d="M799.2 874.4c0 34.4-28.001 62.4-62.4 62.4H287.2c-34.4 0-62.4-28-62.4-62.4V212h574.4v662.4zM349.6 100c0-7.2 5.6-12.8 12.8-12.8h300c7.2 0 12.8 5.6 12.8 12.8v37.6H349.6V100z m636.8 37.6H749.6V100c0-48.001-39.2-87.2-87.2-87.2h-300c-48 0-87.2 39.199-87.2 87.2v37.6H37.6C16.8 137.6 0 154.4 0 175.2s16.8 37.6 37.6 37.6h112v661.6c0 76 61.6 137.6 137.6 137.6h449.6c76 0 137.6-61.6 137.6-137.6V212h112c20.8 0 37.6-16.8 37.6-37.6s-16.8-36.8-37.6-36.8zM512 824c20.8 0 37.6-16.8 37.6-37.6v-400c0-20.8-16.8-37.6-37.6-37.6s-37.6 16.8-37.6 37.6v400c0 20.8 16.8 37.6 37.6 37.6m-175.2 0c20.8 0 37.6-16.8 37.6-37.6v-400c0-20.8-16.8-37.6-37.6-37.6s-37.6 16.8-37.6 37.6v400c0.8 20.8 17.6 37.6 37.6 37.6m350.4 0c20.8 0 37.6-16.8 37.6-37.6v-400c0-20.8-16.8-37.6-37.6-37.6s-37.6 16.8-37.6 37.6v400c0 20.8 16.8 37.6 37.6 37.6" fill="#8A8A8A" ></path></symbol><symbol id="icon-jurassic_import-form" viewBox="0 0 1024 1024"><path d="M764.9 64H225.4l1.4 224.2 64-0.4-1-159.8h383.6v224H896v544H289.8l1-159.8-64-0.4-1.4 224.2H960V277.7L764.9 64z m-27.6 64.7L882.8 288H737.3V128.7z" fill="#707070" ></path><path d="M356.5 224h255.9v64H356.5z" fill="#707070" ></path><path d="M576.4 416h255.9v64H576.4zM512.5 576h319.8v64H512.5zM384.5 736h447.8v64H384.5z" fill="#707070" ></path><path d="M336.9 349H198.6l98.9 98.9H64v128.2h233.5L198.6 675h138.3l162.9-163z" fill="#707070" ></path></symbol><symbol id="icon-kaoheweidufenxi" viewBox="0 0 1024 1024"><path d="M815.542857 212.943238l118.296381 68.266667v168.033524l-201.532952 116.345904-0.487619-163.352381-125.366857-72.46019 209.091047-116.833524z m-89.673143-51.736381L519.314286 279.454476 305.785905 156.233143 511.561143 37.449143l214.308571 123.757714zM294.619429 887.466667L89.234286 768.877714V546.133333l205.677714 118.00381-0.292571 223.329524z m85.333333 49.249523l-0.097524-223.914666 133.607619 76.653714 132.632381-76.604952-1.024 222.744381-133.558857 77.043809-131.510857-75.922286zM434.468571 328.021333L295.253333 407.747048l-0.195047 156.672L89.234286 444.318476V281.258667l132.047238-76.263619 213.089524 123.026285z m86.113524 49.737143l126.780953 73.191619-0.780191 164.08381-133.12 76.897524-133.656381-78.019048-0.097524-157.403429 140.921905-78.750476z m413.257143 169.008762v222.110476l-200.655238 115.809524-0.633905-221.769143 201.289143-116.150857z" fill="#82529d" ></path></symbol><symbol id="icon-wenjianjia" viewBox="0 0 1024 1024"><path d="M855.04 385.024q19.456 2.048 38.912 10.24t33.792 23.04 21.504 37.376 2.048 54.272q-2.048 8.192-8.192 40.448t-14.336 74.24-18.432 86.528-19.456 76.288q-5.12 18.432-14.848 37.888t-25.088 35.328-36.864 26.112-51.2 10.24l-567.296 0q-21.504 0-44.544-9.216t-42.496-26.112-31.744-40.96-12.288-53.76l0-439.296q0-62.464 33.792-97.792t95.232-35.328l503.808 0q22.528 0 46.592 8.704t43.52 24.064 31.744 35.84 12.288 44.032l0 11.264-53.248 0q-40.96 0-95.744-0.512t-116.736-0.512-115.712-0.512-92.672-0.512l-47.104 0q-26.624 0-41.472 16.896t-23.04 44.544q-8.192 29.696-18.432 62.976t-18.432 61.952q-10.24 33.792-20.48 65.536-2.048 8.192-2.048 13.312 0 17.408 11.776 29.184t29.184 11.776q31.744 0 43.008-39.936l54.272-198.656q133.12 1.024 243.712 1.024l286.72 0z" ></path></symbol><symbol id="icon-biaoqian" viewBox="0 0 1024 1024"><path d="M934.912 516.096q23.552 26.624 19.456 49.664t-26.624 46.592l-324.608 327.68q-8.192 7.168-19.456 11.264t-23.04 4.608-23.04-2.56-18.432-10.24q-121.856-122.88-218.112-220.16l-80.896-80.896q-39.936-39.936-71.168-71.68t-51.2-51.2-20.992-21.504q-3.072-4.096-10.752-14.848t-6.656-25.088l0-19.456 0-40.96q0-23.552 0.512-52.736t0.512-58.88q1.024-70.656 2.048-156.672 2.048-13.312 6.144-24.064t15.36-22.016q10.24-11.264 22.016-16.384t22.016-5.12l329.728 0q2.048 0 9.216 0.512t10.24 1.536q6.144 2.048 11.264 5.12t10.24 8.192zM217.088 317.44q40.96 0 69.12-28.672t28.16-69.632-28.16-69.632-69.12-28.672q-20.48 0-37.888 7.68t-30.72 20.992-20.992 31.232-7.68 38.4 7.68 38.4 20.992 31.232 30.72 20.992 37.888 7.68z" fill="#ea9518" ></path></symbol><symbol id="icon-wenben" viewBox="0 0 1024 1024"><path d="M823.296 60.416q65.536 0 99.328 38.4t33.792 93.696l0 543.744q0 25.6-21.504 46.08l-171.008 163.84q-13.312 11.264-22.528 14.336t-23.552 3.072l-459.776 0q-23.552 0-47.104-9.728t-41.984-27.648-30.208-43.008-11.776-55.808l0-634.88q0-60.416 33.28-96.256t94.72-35.84l568.32 0zM608.256 702.464q13.312 0 22.528-9.216t9.216-22.528q0-14.336-9.216-23.04t-22.528-8.704l-320.512 0q-13.312 0-22.528 8.704t-9.216 23.04q0 13.312 9.216 22.528t22.528 9.216l320.512 0zM736.256 509.952q13.312 0 22.528-9.216t9.216-22.528-9.216-22.528-22.528-9.216l-448.512 0q-13.312 0-22.528 9.216t-9.216 22.528 9.216 22.528 22.528 9.216l448.512 0zM799.744 318.464q13.312 0 22.528-9.216t9.216-23.552q0-13.312-9.216-22.528t-22.528-9.216l-512 0q-13.312 0-22.528 9.216t-9.216 22.528q0 14.336 9.216 23.552t22.528 9.216l512 0z" fill="#db639b" ></path></symbol><symbol id="icon-yingyong" viewBox="0 0 1026 1024"><path d="M371.732817 94.172314q25.773475 0 44.112294 17.843175t18.338819 43.616651l0 247.821878q0 25.773475-18.338819 44.112294t-44.112294 18.338819l-247.821878 0q-25.773475 0-43.616651-18.338819t-17.843175-44.112294l0-247.821878q0-25.773475 17.843175-43.616651t43.616651-17.843175l247.821878 0zM371.732817 589.81607q25.773475 0 44.112294 17.843175t18.338819 43.616651l0 248.813166q0 25.773475-18.338819 43.616651t-44.112294 17.843175l-247.821878 0q-25.773475 0-43.616651-17.843175t-17.843175-43.616651l0-248.813166q0-25.773475 17.843175-43.616651t43.616651-17.843175l247.821878 0zM868.367861 589.81607q25.773475 0 43.616651 17.843175t17.843175 43.616651l0 248.813166q0 25.773475-17.843175 43.616651t-43.616651 17.843175l-247.821878 0q-25.773475 0-44.112294-17.843175t-18.338819-43.616651l0-248.813166q0-25.773475 18.338819-43.616651t44.112294-17.843175l247.821878 0zM1006.156825 203.21394q19.82575 19.82575 19.82575 46.590513t-19.82575 45.599226l-184.379477 184.379477q-19.82575 19.82575-46.094869 19.82575t-46.094869-19.82575l-184.379477-184.379477q-18.834463-18.834463-18.834463-45.599226t18.834463-46.590513l184.379477-184.379477q19.82575-18.834463 46.094869-18.834463t46.094869 18.834463z" fill="#0061b2" ></path></symbol><symbol id="icon-wenjianjia-copy" viewBox="0 0 1024 1024"><path d="M855.04 385.024q19.456 2.048 38.912 10.24t33.792 23.04 21.504 37.376 2.048 54.272q-2.048 8.192-8.192 40.448t-14.336 74.24-18.432 86.528-19.456 76.288q-5.12 18.432-14.848 37.888t-25.088 35.328-36.864 26.112-51.2 10.24l-567.296 0q-21.504 0-44.544-9.216t-42.496-26.112-31.744-40.96-12.288-53.76l0-439.296q0-62.464 33.792-97.792t95.232-35.328l503.808 0q22.528 0 46.592 8.704t43.52 24.064 31.744 35.84 12.288 44.032l0 11.264-53.248 0q-40.96 0-95.744-0.512t-116.736-0.512-115.712-0.512-92.672-0.512l-47.104 0q-26.624 0-41.472 16.896t-23.04 44.544q-8.192 29.696-18.432 62.976t-18.432 61.952q-10.24 33.792-20.48 65.536-2.048 8.192-2.048 13.312 0 17.408 11.776 29.184t29.184 11.776q31.744 0 43.008-39.936l54.272-198.656q133.12 1.024 243.712 1.024l286.72 0z" ></path></symbol></svg>',(l=>{var r=(n=(n=document.getElementsByTagName("script"))[n.length-1]).getAttribute("data-injectcss"),n=n.getAttribute("data-disable-injectsvg");if(!n){var t,s,c,b,h,v=function(x,S){S.parentNode.insertBefore(x,S)};if(r&&!l.__iconfont__svg__cssinject__){l.__iconfont__svg__cssinject__=!0;try{document.write("<style>.svgfont {display: inline-block;width: 1em;height: 1em;fill: currentColor;vertical-align: -0.1em;font-size:16px;}</style>")}catch(x){console&&console.log(x)}}t=function(){var x,S=document.createElement("div");S.innerHTML=l._iconfont_svg_string_4827314,(S=S.getElementsByTagName("svg")[0])&&(S.setAttribute("aria-hidden","true"),S.style.position="absolute",S.style.width=0,S.style.height=0,S.style.overflow="hidden",S=S,(x=document.body).firstChild?v(S,x.firstChild):x.appendChild(S))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(t,0):(s=function(){document.removeEventListener("DOMContentLoaded",s,!1),t()},document.addEventListener("DOMContentLoaded",s,!1)):document.attachEvent&&(c=t,b=l.document,h=!1,u(),b.onreadystatechange=function(){b.readyState=="complete"&&(b.onreadystatechange=null,y())})}function y(){h||(h=!0,c())}function u(){try{b.documentElement.doScroll("left")}catch{return void setTimeout(u,50)}y()}})(window);const Kp={class:"statistics-cards-container"},Yp=["onClick"],Gp=a.defineComponent({__name:"index",props:{items:{default:()=>[]},disabled:{type:Boolean,default:!1},textSize:{default:void 0},textColor:{default:void 0}},setup(l){const r=l,n=a.ref(null),t=x=>{if(Array.isArray(x)&&x.length>=3){const[S,M,_,U]=x;return U!==void 0?`rgba(${S}, ${M}, ${_}, ${U})`:`rgb(${S}, ${M}, ${_})`}if(typeof x=="string"){const S=x.trim();if(S.startsWith("[")&&S.endsWith("]")){const M=S.slice(1,-1).split(",").map(_=>Number(_.trim()));if(M.length>=3&&M.every(_=>!Number.isNaN(_))){const[_,U,B,A]=M;return A!==void 0?`rgba(${_}, ${U}, ${B}, ${A})`:`rgb(${_}, ${U}, ${B})`}}return S}},s=a.computed(()=>{const x=Number(r==null?void 0:r.textSize),S=t(r==null?void 0:r.textColor),M={},_={};return!Number.isNaN(x)&&x&&(M.fontSize=`${x}px`,_.fontSize=`${x}px`),S&&(M.color=S,_.color=S),{label:M,value:_}}),c=x=>fl.getComponent(x),b=x=>{if(!x)return;const S=x.querySelector("input, textarea, .el-input__inner");S&&typeof S.focus=="function"&&S.focus()},h=(x,S,M)=>{r.disabled||x.field&&(n.value=S,a.nextTick(()=>{b(M.currentTarget)}))},v=()=>{n.value=null},y=x=>{var M;const S=((M=x==null?void 0:x.field)==null?void 0:M.value)??(x==null?void 0:x.value);return S==null||S===""?"-":S},u=x=>{const S=x!=null&&x.width&&x.width>0?x.width:1,_=`calc((100% - ${(S-1)*16}px) / ${S})`;return{flex:`0 0 ${_}`,maxWidth:_,minWidth:"140px",boxSizing:"border-box"}};return(x,S)=>(a.openBlock(),a.createElementBlock("div",Kp,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(x.items,(M,_)=>{var U,B,A,R,C,L,T,k;return a.openBlock(),a.createElementBlock("div",{class:"statistics-card",key:_,style:a.normalizeStyle(u(M))},[a.createElementVNode("div",{class:"statistics-label",style:a.normalizeStyle(s.value.label)},a.toDisplayString(M==null?void 0:M.label),5),a.createElementVNode("div",{class:"statistics-value",style:a.normalizeStyle(s.value.value),onClick:g=>h(M,_,g)},[n.value===_&&M.field?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(c(((U=M.field)==null?void 0:U.type)??"Input")),{key:0,modelValue:M.field.value,"onUpdate:modelValue":g=>M.field.value=g,isEdit:!0,disabled:(B=M.field)==null?void 0:B.disabled,content:((A=M.field)==null?void 0:A.contents)??[],optionUrl:M.field,originalValue:(R=M.field)==null?void 0:R.value,config:(C=M.field)==null?void 0:C.config,configModel:((L=M.field)==null?void 0:L.prop)??((T=M.field)==null?void 0:T.name),selectedTagList:((k=M.field)==null?void 0:k.selectValue)??[],onBlur:v,onBlurChange:v},null,40,["modelValue","onUpdate:modelValue","disabled","content","optionUrl","originalValue","config","configModel","selectedTagList"])):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(a.toDisplayString(y(M)),1)],64))],12,Yp)],4)}),128))]))}}),Jp=Ul._export_sfc(Gp,[["__scopeId","data-v-bc3dcbbb"]]),Xs=I.defineStore("formToTableComp",{state:()=>({selectArray:[],selectString:""}),actions:{setSelectArray(l){this.selectArray=l},setSelectString(l){this.selectString=l}}}),Xp={class:"calculator-content"},Zp={class:"calculator-child"},Qp={class:"calculator-child"},ef=a.defineComponent({__name:"calculator",setup(l){const r=a.ref(),n=a.ref();return a.onMounted(()=>{r.value=[{type:"Upload",label:"输入",name:"input"}],n.value=[{type:"Upload",label:"输出",name:"output"}]}),(t,s)=>(a.openBlock(),a.createElementBlock("div",Xp,[a.createElementVNode("div",Zp,[a.createVNode(fl.ssForm,{rowContents:r.value,isRowFlex:!0},null,8,["rowContents"])]),a.createElementVNode("div",Qp,[a.createVNode(fl.ssForm,{rowContents:n.value,isEdit:!1,isRowFlex:!0},null,8,["rowContents"])])]))}}),af=Ul._export_sfc(ef,[["__scopeId","data-v-73db0fe7"]]),di=(l,r)=>{let n=l,t=r;return Array.isArray(n)&&(n=n==null?void 0:n.map((s,c)=>{if(Array.isArray(s)){let b={};return s=s==null?void 0:s.forEach((h,v)=>{var y;(y=t==null?void 0:t[v])!=null&&y.prop?b[t[v].prop]=h:Array.isArray(h)&&(b.children=di(h,t))}),Object.assign(b,{id:c})}else return s})),n},Zs=(l,r,n)=>{let t=l,s=r;return t=t==null?void 0:t.map((c,b)=>{var h,v;return!Array.isArray(c)||!((h=s==null?void 0:s[b])!=null&&h.label)&&!n||(c.unshift(((v=s==null?void 0:s[b])==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=Zs(y,(u=s==null?void 0:s[b])==null?void 0:u.children,n)),y}))),c}),t},lf=(l,r,n)=>{if(r==="")return l==null?void 0:l.filter(t=>(t==null?void 0:t.id)!==n);{const t=r.split("-");return rf(l,t,n)}},rf=(l,r,n)=>{let t=l,s=r;return(s==null?void 0:s.length)===0?t=t==null?void 0:t.filter(c=>c.id!==n):t=t==null?void 0:t.map(c=>(c.id.toString()===(s==null?void 0:s[0])&&(s==null||s.shift(),c=Qs(c,s,n)),c)),t},Qs=(l,r,n)=>{var c,b;let t=l,s=r;return(s==null?void 0:s.length)===0?t.children=(c=t.children)==null?void 0:c.filter(h=>h.id!==n):t.children=(b=t.children)==null?void 0:b.map(h=>(h.id.toString()===(s==null?void 0:s[0])&&(s==null||s.shift(),h=Qs(h,s,n)),h)),t},nf=(l,r,n)=>{if(r==="")return n;{const t=r.split("-");return tf(l,t,n)}},tf=(l,r,n)=>{let t=l,s=r;return(s==null?void 0:s.length)===0?t=n:t=t==null?void 0:t.map(c=>(c.id.toString()===(s==null?void 0:s[0])&&(s==null||s.shift(),c=ec(c,s,n)),c)),t},ec=(l,r,n)=>{var c;let t=l,s=r;return(s==null?void 0:s.length)===0?t.children=n:t.children=(c=t.children)==null?void 0:c.map(b=>(b.id.toString()===(s==null?void 0:s[0])&&(s==null||s.shift(),b=ec(b,s,n)),b)),t};class of{constructor(r={}){$r(this,"url");$r(this,"heartbeatInterval");$r(this,"socket",null);$r(this,"isConnected",!1);$r(this,"heartTimer",null);$r(this,"canvas",null);$r(this,"ctx",null);$r(this,"mainCamCutMode",0);$r(this,"pMainShowStartX",0);$r(this,"pMainShowStartY",0);$r(this,"onLog");$r(this,"onDevCount");$r(this,"onResolution");$r(this,"onCameraStatus");$r(this,"onPhoto");this.url=r.url??"ws://127.0.0.1:22225",this.heartbeatInterval=r.heartbeatInterval??3e3}init(r,n,t){var b;(b=this.canvas)!=null&&b.parentNode&&this.canvas.parentNode.removeChild(this.canvas);const s=document.createElement("canvas");s.style.border="solid 1px #A0A0A0",s.id="MainCamCanvas",s.width=n,s.height=t;const c=s.getContext("2d");if(!c)throw new Error("无法获取 CanvasRenderingContext2D");r.appendChild(s),this.canvas=s,this.ctx=c}async connect(){this.socket&&(this.socket.readyState===WebSocket.OPEN||this.socket.readyState===WebSocket.CONNECTING)||await new Promise((r,n)=>{const t=new WebSocket(this.url);t.binaryType="arraybuffer",t.onopen=()=>{this.socket=t,this.isConnected=!0,this.startHeartbeat(),this.log("socket.onopen"),r()},t.onerror=s=>{this.isConnected=!1,this.log("socket.onerror"),n(s)},t.onclose=()=>{this.isConnected=!1,this.stopHeartbeat(),this.log("socket.onclose")},t.onmessage=s=>{this.handleMessage(s)}})}destroy(){var r;this.stopHeartbeat();try{this.closeCamera()}catch{}if(this.socket){try{this.socket.onmessage=null}catch{}try{this.socket.onopen=null}catch{}try{this.socket.onerror=null}catch{}try{this.socket.onclose=null}catch{}try{this.socket.close()}catch{}this.socket=null}this.isConnected=!1,(r=this.canvas)!=null&&r.parentNode&&this.canvas.parentNode.removeChild(this.canvas),this.canvas=null,this.ctx=null}getDevCount(){this.sendBytes(new Uint8Array([119,136,80]))}getResolution(r=0){this.sendBytes(new Uint8Array([119,136,81,r]))}chooseResolution(r){if(!Array.isArray(r)||r.length===0)return null;const n=r.find(s=>s.width===2592&&s.height===1944);return n||[...r].sort((s,c)=>c.width*c.height-s.width*s.height)[0]||null}openCamera(r=0,n=1280,t=720){if(!this.canvas)throw new Error("请先 init() 传入容器并创建 canvas");const s=new Uint8Array(12);s[0]=119,s[1]=136,s[2]=1,s[3]=r,s[4]=this.canvas.width>>8&255,s[5]=this.canvas.width&255,s[6]=this.canvas.height>>8&255,s[7]=this.canvas.height&255,s[8]=n>>8&255,s[9]=n&255,s[10]=t>>8&255,s[11]=t&255,this.sendBytes(s)}closeCamera(){this.sendBytes(new Uint8Array([119,136,2,0]))}photo(){const s=new Uint8Array(12);s[0]=119,s[1]=136,s[2]=16,s[3]=0,s[4]=0,s[5]=0,s[6]=0,s[7]=0,s[8]=1,s[9]=0,s[10]=0,s[11]=0,this.sendBytes(s)}bestSize(){this.sendBytes(new Uint8Array([119,136,5,0]))}rotateLeft(){this.sendBytes(new Uint8Array([119,136,7,0]))}rotateRight(){this.sendBytes(new Uint8Array([119,136,8,0]))}focus(){this.sendBytes(new Uint8Array([119,136,48,0]))}log(r){var n;(n=this.onLog)==null||n.call(this,r)}sendBytes(r){if(!this.socket||this.socket.readyState!==WebSocket.OPEN||!this.isConnected)throw new Error("socket 未连接");this.socket.send(r.buffer)}startHeartbeat(){this.stopHeartbeat(),this.heartTimer=window.setInterval(()=>{this.log("heartCheck...........")},this.heartbeatInterval)}stopHeartbeat(){this.heartTimer&&(clearInterval(this.heartTimer),this.heartTimer=null)}handleMessage(r){var s,c,b,h,v,y;const n=new Uint8Array(r.data);if(n.length<=0)return;if(n[0]===17&&n[1]===17&&n[2]===17){this.log("heart socket!!!!");return}if(n[0]!==85||n[1]!==102)return;const t=n[2];if(t===80){const u=n[3],x=n.length-4,S=new Uint8Array(x);for(let U=0;U<x;U++)S[U]=n[4+U];const _=decodeURIComponent(this.byteToString(S)).split("|");(s=this.onDevCount)==null||s.call(this,u,_);return}if(t===81){const u=n[3]||0,x=[];for(let S=0;S<u;S++){const M=(n[4+S*4+0]||0)*256+(n[4+S*4+1]||0),_=(n[4+S*4+2]||0)*256+(n[4+S*4+3]||0);x.push({width:M,height:_,text:`${M}*${_}`})}(c=this.onResolution)==null||c.call(this,u,x);return}if(t===1){n[3]===1&&((b=this.onCameraStatus)==null||b.call(this,"opened")),n[3]===3&&((h=this.onCameraStatus)==null||h.call(this,"closed"));return}if(t===16){if(n[3]===1){const x=n[4]*256+n[5],S=n[6]*65536+n[7]*256+n[8];let M="";if(x>0){const B=new Uint8Array(x);for(let A=0;A<x;A++)B[A]=n[9+A];M=decodeURIComponent(this.byteToString(B))}const _=new Uint8Array(S);for(let B=0;B<S;B++)_[B]=n[9+x+B];const U=this.uint8ArrayToString(_);(v=this.onPhoto)==null||v.call(this,{flag:0,imgPath:M,base64:U})}n[3]===2&&((y=this.onPhoto)==null||y.call(this,{flag:2,imgPath:"",base64:""}));return}if(t===204){if(!this.canvas||!this.ctx)return;const u=n[3]*256+n[4],x=n[5]*256+n[6];this.pMainShowStartX=n[7]*256+n[8],this.pMainShowStartY=n[9]*256+n[10],this.ctx.clearRect(0,0,this.canvas.width,this.canvas.height);const S=this.ctx.createImageData(u,x);let M=11;for(let _=0;_<S.data.length;_+=4)S.data[_+0]=n[M],S.data[_+1]=n[M+1],S.data[_+2]=n[M+2],S.data[_+3]=255,M+=3;this.ctx.putImageData(S,this.pMainShowStartX,this.pMainShowStartY),this.mainCamCutMode;return}}uint8ArrayToString(r){let n="";for(let t=0;t<r.length;t++)n+=String.fromCharCode(r[t]);return n}byteToString(r){let n="";for(let t=0;t<r.length;t++)n+=String.fromCharCode(r[t]);return n}}const sf={style:{display:"flex",gap:"16px",height:"100%"}},cf={key:0,style:{color:"var(--el-text-color-secondary)"}},uf={style:{width:"420px",display:"flex","flex-direction":"column",gap:"16px"}},df={style:{border:"1px solid var(--el-border-color)","border-radius":"4px",padding:"12px"}},pf={ref:"pictureBox",style:{height:"220px",border:"1px dashed var(--el-border-color)","border-radius":"4px",background:"var(--el-fill-color-lighter)",position:"relative",overflow:"auto",padding:"8px"}},ff={key:0,style:{height:"100%",display:"flex","align-items":"center","justify-content":"center",color:"var(--el-text-color-secondary)"}},hf={key:1,style:{display:"grid","grid-template-columns":"repeat(2, minmax(0, 1fr))",gap:"8px"}},vf=["src","onClick"],mf=["onClick"],yf={style:{border:"1px solid var(--el-border-color)","border-radius":"4px",padding:"12px",flex:"1","min-height":"0",display:"flex","flex-direction":"column"}},gf={class:"dialog-footer"},bf=a.defineComponent({__name:"index",props:{visible:{type:Boolean,default:!1}},emits:["confirm","cancel"],setup(l,{emit:r}){const n=l,t=r,s=a.ref(null),c=a.ref(!1),b=a.ref([]),h=a.ref(""),v=a.ref(!1),y=a.ref([]),u=new of({url:"ws://127.0.0.1:22225"});function x(W,J){var X;const ke=W.split(","),ze=((X=ke[0].match(/:(.*?);/))==null?void 0:X[1])??"image/jpeg",De=atob(ke[1]);let ne=De.length;const xe=new Uint8Array(ne);for(;ne--;)xe[ne]=De.charCodeAt(ne);return new File([xe],J,{type:ze})}function S(){u.onLog=W=>{console.log("[GPY]",W)},u.onDevCount=(W,J)=>{if(h.value+=`设备数量=${W},设备=${J.join(",")}
4
+ `,W>0){h.value+=`检测到设备,正在获取分辨率...
5
+ `;try{u.getResolution(0)}catch(ke){h.value+=`获取分辨率失败:${(ke==null?void 0:ke.message)??ke}
6
+ `}}else h.value+=`未检测到高拍仪设备!
7
+ `},u.onResolution=(W,J)=>{if(W<=0||!Array.isArray(J)||J.length===0){h.value+=`未获取到可用分辨率,回退使用 1280*720 打开...
8
+ `;try{u.openCamera(0,1280,720)}catch(ze){h.value+=`打开摄像头失败:${(ze==null?void 0:ze.message)??ze}
9
+ `}return}const ke=u.chooseResolution(J);if(!ke){h.value+=`分辨率选择失败,回退使用 1280*720 打开...
10
+ `;try{u.openCamera(0,1280,720)}catch(ze){h.value+=`打开摄像头失败:${(ze==null?void 0:ze.message)??ze}
11
+ `}return}h.value+=`获取分辨率 ${ke.text}成功,打开摄像头...
12
+ `;try{u.closeCamera(),setTimeout(()=>{try{u.openCamera(0,ke.width,ke.height)}catch(ze){h.value+=`打开摄像头失败:${(ze==null?void 0:ze.message)??ze}
13
+ `}},100)}catch{try{u.openCamera(0,ke.width,ke.height)}catch(ze){h.value+=`打开摄像头失败:${(ze==null?void 0:ze.message)??ze}
14
+ `}}},u.onCameraStatus=W=>{W==="opened"?(c.value=!0,h.value+=`摄像头已打开
15
+ `):(c.value=!1,h.value+=`摄像头已关闭
16
+ `)},u.onPhoto=W=>{if(W.flag===0&&W.base64){const J=`data:image/jpeg;base64,${W.base64}`,ke=x(J,`gpy-capture-${Date.now()}.jpg`);b.value.push({uid:`${Date.now()}_${Math.random().toString(16).slice(2)}`,url:J,file:ke}),h.value+=`拍照完成,已接收图片(当前 ${b.value.length} 张)
17
+ `}else h.value+=`拍照失败 flag=${W.flag}
18
+ `}}const M=async()=>{if(await a.nextTick(),!s.value)return;_(),S();const W=s.value.getBoundingClientRect();u.init(s.value,Math.floor(W.width),Math.floor(W.height)),h.value+=`正在连接设备服务...
19
+ `,await u.connect(),h.value+=`正在获取设备数量...
20
+ `,u.getDevCount()},_=()=>{try{u.destroy()}catch(W){console.error(W)}c.value=!1,b.value=[],h.value="",v.value=!1,y.value=[]};a.watch(()=>n.visible,W=>{W?M():_()});const U=()=>{try{u.bestSize()}catch(W){console.error(W)}},B=()=>{try{u.rotateLeft()}catch(W){console.error(W)}},A=()=>{try{u.rotateRight()}catch(W){console.error(W)}},R=()=>{try{u.focus()}catch(W){console.error(W)}},C=()=>{h.value+=`正在拍照...
21
+ `;try{u.photo()}catch(W){h.value+=`拍照调用失败:${(W==null?void 0:W.message)??W}
22
+ `}},L=()=>{b.value.length>0?t("confirm",b.value.map(W=>W.file)):t("confirm",[])},T=W=>{W<0||W>=b.value.length||(b.value.splice(W,1),h.value+=`已删除一张图片(剩余 ${b.value.length} 张)
23
+ `)},k=W=>{if(!W)return;const J=`gpy-preview-${Date.now()}.jpg`;y.value=[{name:J,blobUrl:W}],v.value=!0},g=()=>{v.value=!1},j=()=>{_(),t("cancel")};return(W,J)=>{const ke=a.resolveComponent("el-input"),ze=a.resolveComponent("el-button");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createVNode(vr.ssDialog,{title:"扫描录入",visible:n.visible,onBeforeDestroy:j,width:"1200px",style:{height:"80%"}},{default:a.withCtx(()=>[a.createElementVNode("div",sf,[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",cf,"初始化摄像头..."))],512),a.createElementVNode("div",uf,[a.createElementVNode("div",df,[J[0]||(J[0]=a.createElementVNode("div",{style:{"font-weight":"600","margin-bottom":"8px"}},"拍照图片",-1)),a.createElementVNode("div",pf,[b.value.length===0?(a.openBlock(),a.createElementBlock("div",ff,"暂无图片")):(a.openBlock(),a.createElementBlock("div",hf,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(b.value,(De,ne)=>(a.openBlock(),a.createElementBlock("div",{key:De.uid,style:{position:"relative",border:"1px solid var(--el-border-color)","border-radius":"4px",overflow:"hidden",background:"#fafafa"}},[a.createElementVNode("img",{src:De.url,onClick:xe=>k(De.url),style:{width:"100%",height:"94px","object-fit":"contain",display:"block",background:"#fafafa",cursor:"zoom-in"},alt:"captured image",title:"点击放大"},null,8,vf),a.createElementVNode("div",{onClick:xe=>T(ne),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,mf)]))),128))]))],512)]),a.createElementVNode("div",yf,[J[1]||(J[1]=a.createElementVNode("div",{style:{"font-weight":"600","margin-bottom":"8px"}},"操作记录",-1)),a.createVNode(ke,{type:"textarea",value:h.value,readonly:"",rows:10,placeholder:"设备操作记录...",style:{flex:"1"}},null,8,["value"])])])])]),footer:a.withCtx(()=>[a.createElementVNode("div",gf,[a.createVNode(ze,{onClick:U,disabled:!c.value,id:"themeBorderButton"},{default:a.withCtx(()=>J[2]||(J[2]=[a.createTextVNode("适屏")])),_:1,__:[2]},8,["disabled"]),a.createVNode(ze,{onClick:B,disabled:!c.value,id:"themeBorderButton"},{default:a.withCtx(()=>J[3]||(J[3]=[a.createTextVNode("左旋")])),_:1,__:[3]},8,["disabled"]),a.createVNode(ze,{onClick:A,disabled:!c.value,id:"themeBorderButton"},{default:a.withCtx(()=>J[4]||(J[4]=[a.createTextVNode("右旋")])),_:1,__:[4]},8,["disabled"]),a.createVNode(ze,{onClick:R,disabled:!c.value,id:"themeBorderButton"},{default:a.withCtx(()=>J[5]||(J[5]=[a.createTextVNode("对焦")])),_:1,__:[5]},8,["disabled"]),a.createVNode(ze,{onClick:C,disabled:!c.value,id:"themeButton"},{default:a.withCtx(()=>J[6]||(J[6]=[a.createTextVNode("拍照")])),_:1,__:[6]},8,["disabled"]),J[9]||(J[9]=a.createElementVNode("div",{style:{flex:"1"}},null,-1)),a.createVNode(ze,{onClick:L,disabled:b.value.length===0,id:"themeButton"},{default:a.withCtx(()=>J[7]||(J[7]=[a.createTextVNode("确认")])),_:1,__:[7]},8,["disabled"]),a.createVNode(ze,{onClick:j,id:"themeBorderButton"},{default:a.withCtx(()=>J[8]||(J[8]=[a.createTextVNode("取消")])),_:1,__:[8]})])]),_:1},8,["visible"]),v.value?(a.openBlock(),a.createBlock(fl.ssFilePreview,{key:0,fileDataList:y.value,onDestroy:g},null,8,["fileDataList"])):a.createCommentVNode("",!0)],64)}}}),kf=Ul._export_sfc(bf,[["__scopeId","data-v-24a2050a"]]);function ac(l){return rl.axios.post("http://222.92.178.198:8000/api/v1/excel-chat",l)}function xf(l){return rl.axios.get(l,{responseType:"blob"})}const ts=I.useMenuState(I.pinia),_f=async l=>{var c,b,h,v,y,u;let r=l==null?void 0:l.导入文件,n=l==null?void 0:l.函数参数,t=(c=r==null?void 0:r[0])==null?void 0:c.url,s="";if(!(t!=null&&t.includes("http"))||!(t!=null&&t.includes("https"))){ts.setContentLoading(!0);const x=await I.platformDownloadFile({url:t});let S=x==null?void 0:x.data;const M=new FormData;M.append("file",S,((b=r==null?void 0:r[0])==null?void 0:b.name)+"."+((h=t==null?void 0:t.split("."))==null?void 0:h[1])),M.append("query",n);let _=await ac(M);_=(u=(y=(v=_==null?void 0:_.data)==null?void 0:v.data)==null?void 0:y.response)==null?void 0:u.replace("generateResult",l==null?void 0:l.函数名称),s=_,ts.setContentLoading(!1)}return s},ki=I.defineStore("formComp",{state:()=>({objUrl:[],blobUrls:[]}),actions:{setObjUrl(l){this.objUrl=l},setBlobUrls(l){this.blobUrls=l}}}),wo={检校类型:["检校类型","证书类别"],证书编号:["证书编号"],设备名称:["设备名称","器具名称","样品名称","仪器名称","被校设备"],型号规格:["型号规格","型号/规格","型号"],出厂编号:["出厂编号","器具/管理编号","器具编号","管理编号","仪器编号"],制造厂:["制造厂","制造单位","制造厂商","制造商"],检校结果:["检校结果","检定结论","校准结果","校准/检定结果","检定结果"],依据文件:["依据文件","检定依据","检定所依据的技术文件","所依据/参照技术文件(代号/名称)","检定所依据的技术文件(编号/名称)","检定方法说明"],检校日期:["检校日期","校准日期","校验日期","检定日期","发证日期","发布日期","接收日期","签证日期"],有效日期:["有效日期","有效期","有效期至"]},os={columnName:"OCR图片",acceptTypes:"image/*",maxSize:10,maxFiles:20,apiUrl:"http://139.196.154.85:20015/api/public/paddleOCR"};class wf{constructor(r){$r(this,"config");this.config={...os,...r}}updateConfig(r){this.config={...this.config,...r}}getConfig(){return{...this.config}}validateFileSize(r){const n=this.config.maxSize*1024*1024;return r.size<=n}validateFileType(r){return r.type.startsWith("image/")||r.type==="application/pdf"}getAuthorizationToken(){const r=rl.Local.get(rl.accessTokenKey);return r?`Bearer ${r}`:""}buildOCRRequest(r,n){return{title:n,form:{OCR图片文件:r}}}async recognize(r,n){const t=this.getAuthorizationToken(),s=this.buildOCRRequest(r,n),c=this.config.apiUrl||os.apiUrl;return(await rl.axios.post(c,s,{headers:{"Content-Type":"application/json",Authorization:t}})).data}getFieldAliases(r){return wo[r]?wo[r]:[r]}extractTableHeaders(r){const n=[],t=new Set,s=b=>{const h=b==null?void 0:b.label;return!(!h||h==="操作"||h===this.config.columnName||(b==null?void 0:b.type)==="operate"||(b==null?void 0:b.prop)==="operate")},c=b=>{(b||[]).forEach(h=>{if(!h)return;const v=(h==null?void 0:h.children)||(h==null?void 0:h.child)||(h==null?void 0:h.columns);if(Array.isArray(v)&&v.length>0){c(v);return}if(s(h)){const y=h.label;if(!t.has(y)){t.add(y);const u=this.getFieldAliases(y);n.push(u)}}})};return c(r||[]),n}}function lc(l){return new wf(l)}lc();const pi=async(l,r)=>{var b,h,v,y,u,x,S,M,_,U,B,A,R,C,L,T,k;let n=(h=(b=I.cloneDeep(l))==null?void 0:b.optionUrl)==null?void 0:h.menuSelect,t=[];n==null||n.forEach(g=>{});let s="",c=await na.menuToParent(n);if(c==null||c.forEach(g=>{var j,W,J,ke;(g==null?void 0:g.name)===(((ke=(J=(W=(j=I.cloneDeep(l))==null?void 0:j.optionUrl)==null?void 0:W.groupSelect)==null?void 0:J[0])==null?void 0:ke.replaceAll("'",""))??"")&&(s=g==null?void 0:g.id)}),r){s=r;const g=await yr.getInsofDataApi({id:s}),j=(x=(u=(y=(v=g==null?void 0:g.data)==null?void 0:v.result)==null?void 0:y[0])==null?void 0:u.key)==null?void 0:x.pageKey;c=await na.getItemData(j,sessionStorage.getItem("systemKey"),"")}if(s!==""){let g;r?g=(S=c==null?void 0:c.find(J=>(J==null?void 0:J.id)===r))==null?void 0:S.compData:g=(M=c==null?void 0:c.find(J=>{var ke,ze,De,ne;return(J==null?void 0:J.name)===(((ze=(ke=l==null?void 0:l.groupSelect)==null?void 0:ke.split(":"))==null?void 0:ze[0])||((ne=(De=l==null?void 0:l.optionUrl)==null?void 0:De.groupSelect)==null?void 0:ne[0]))}))==null?void 0:M.compData;let j=(U=(_=g==null?void 0:g.find(J=>(J==null?void 0:J.key)==="header"))==null?void 0:_.contents)==null?void 0:U.map(J=>J==null?void 0:J.label);(A=(B=g==null?void 0:g.find(J=>(J==null?void 0:J.key)==="header"))==null?void 0:B.contents)!=null&&A.every(J=>Array.isArray(J))&&(j=(L=na.getColumnChild((C=(R=g==null?void 0:g.find(J=>(J==null?void 0:J.key)==="header"))==null?void 0:R.contents)==null?void 0:C[0]))==null?void 0:L.map(J=>J==null?void 0:J.prop));let W=(k=(T=g==null?void 0:g.find(J=>(J==null?void 0:J.key)==="tableContents"))==null?void 0:T.contents)==null?void 0:k.map(J=>{if(Array.isArray(J))J=J==null?void 0:J.filter(ke=>!(ke!=null&&ke.id));else{let ke={};for(let ze in J)ze!=="id"&&(ke[ze]=J==null?void 0:J[ze]);J=ke}return J});W==null||W.forEach(J=>{Array.isArray(J)?t.push(na.getValueToObjectValue(J,j)):t.push(J)})}return t},Cf=I.useMenuState(I.pinia),{activeMenuPath:N6}=I.storeToRefs(Cf),Ef=I.useUnit(I.pinia),{chooseTitle:T6}=I.storeToRefs(Ef),Sf="col-operate",xi=l=>`${Sf}-${l}`,Df=(l,r)=>{const n=new Map;l.forEach(s=>{const{prop:c}=s;n.set(c,s)});const t=s=>{Array.isArray(s)&&s.forEach(c=>{const{prop:b}=c||{},h=n.get(b);Bf(h,c),Array.isArray(c==null?void 0:c.children)&&c.children.length>0&&t(c.children)})};return t(r),r},Bf=(l,r)=>(l&&(r.sortable=l==null?void 0:l.sortable,r.filterable=l==null?void 0:l.filterable,r.showSummary=l==null?void 0:l.showSummary,r.operable=l==null?void 0:l.operable,r.fixed=l==null?void 0:l.fixed),r),Nf=(l,r)=>{const{sortable:n=!1,filterable:t=!1,showSummary:s=!1,operable:c=!1,fixed:b=!1}=r||{};return{prop:l,sortable:n,filterable:t,showSummary:s,operable:c,fixed:b}},Tf=async l=>{var c,b;if(!l)return;const r=xi(l),n=await yr.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),uniqueKey:r}}),t=(c=n==null?void 0:n.data)==null?void 0:c.code,s=(b=n==null?void 0:n.data)==null?void 0:b.result;if(t==200)return s==null?void 0:s[0]},Af=async l=>{var c,b,h,v;if(!l)return;const r=xi(l),n=await yr.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),uniqueKey:r}}),t=(c=n==null?void 0:n.data)==null?void 0:c.code,s=(b=n==null?void 0:n.data)==null?void 0:b.result;return t==200?(v=(h=s==null?void 0:s[0])==null?void 0:h.value)==null?void 0:v.columns:[]},zf=async(l,r)=>{if(!l||!r)return;const n=xi(l);return await yr.createInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),uniqueKey:n},value:{columns:r}})},Mf=async(l,r)=>!l||!r?void 0:await yr.updateInsofDataApi({id:l,value:{columns:r}}),is=async(l,r)=>{const n=sessionStorage.getItem("systemKey");if(!l||!r||!n)return;const t=await Tf(l);return t?await Mf(t==null?void 0:t.id,r):await zf(l,r)};var vo={exports:{}},Of=vo.exports,ss;function If(){return ss||(ss=1,function(l,r){(function(n,t){t()})(Of,function(){function n(y,u){return typeof u>"u"?u={autoBom:!1}:typeof u!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),u={autoBom:!u}),u.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(y.type)?new Blob(["\uFEFF",y],{type:y.type}):y}function t(y,u,x){var S=new XMLHttpRequest;S.open("GET",y),S.responseType="blob",S.onload=function(){v(S.response,u,x)},S.onerror=function(){console.error("could not download file")},S.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 b=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof I.commonjsGlobal=="object"&&I.commonjsGlobal.global===I.commonjsGlobal?I.commonjsGlobal:void 0,h=b.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),v=b.saveAs||(typeof window!="object"||window!==b?function(){}:"download"in HTMLAnchorElement.prototype&&!h?function(y,u,x){var S=b.URL||b.webkitURL,M=document.createElement("a");u=u||y.name||"download",M.download=u,M.rel="noopener",typeof y=="string"?(M.href=y,M.origin===location.origin?c(M):s(M.href)?t(y,u,x):c(M,M.target="_blank")):(M.href=S.createObjectURL(y),setTimeout(function(){S.revokeObjectURL(M.href)},4e4),setTimeout(function(){c(M)},0))}:"msSaveOrOpenBlob"in navigator?function(y,u,x){if(u=u||y.name||"download",typeof y!="string")navigator.msSaveOrOpenBlob(n(y,x),u);else if(s(y))t(y,u,x);else{var S=document.createElement("a");S.href=y,S.target="_blank",setTimeout(function(){c(S)})}}:function(y,u,x,S){if(S=S||open("","_blank"),S&&(S.document.title=S.document.body.innerText="downloading..."),typeof y=="string")return t(y,u,x);var M=y.type==="application/octet-stream",_=/constructor/i.test(b.HTMLElement)||b.safari,U=/CriOS\/[\d]+/.test(navigator.userAgent);if((U||M&&_||h)&&typeof FileReader<"u"){var B=new FileReader;B.onloadend=function(){var C=B.result;C=U?C:C.replace(/^data:[^;]*;/,"data:attachment/file;"),S?S.location.href=C:location=C,S=null},B.readAsDataURL(y)}else{var A=b.URL||b.webkitURL,R=A.createObjectURL(y);S?S.location=R:location.href=R,S=null,setTimeout(function(){A.revokeObjectURL(R)},4e4)}});b.saveAs=v.saveAs=v,l.exports=v})}(vo)),vo.exports}If();const rt=I.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}}}),Lf=I.useLoginState(I.pinia),{loginUserInfo:li}=I.storeToRefs(Lf),Vf=async l=>{var t,s,c;let r=await I.getAllTables({platId:parseInt((t=li==null?void 0:li.value)==null?void 0:t.plat_id),tableNames:[l]});return r=(c=(s=r==null?void 0:r.data)==null?void 0:s.result)==null?void 0:c[0],await Js(r,!1),[{comp:"Table",isShow:!0,name:"日志管理",compData:[{key:"extraButton",contents:[]},{key:"rowButton",contents:[]},{key:"header",contents:[{label:"请求类型",prop:"request_method",formType:"Input",align:"center"},{label:"请求路径",prop:"request_url",formType:"Input",align:"center"},{label:"请求参数",prop:"request_param",formType:"Upload",align:"center"},{label:"返回结果",prop:"request_result",formType:"Upload",align:"center"},{label:"返回信息",prop:"request_message",formType:"Input",align:"center"},{label:"请求表格",prop:"request_table",formType:"Input",align:"center"},{label:"请求种类",prop:"request_type",formType:"Input",align:"center"},{label:"请求创建时间",prop:"create_time",formType:"Date",align:"center"},{label:"请求创建人",prop:"create_user_id",formType:"Input",align:"center"}]},{key:"tableContents",contents:r}]}]},$f=I.useLoginState(),{loginUserInfo:kl}=I.storeToRefs($f);let co="$R";const _r=I.useModelComp(I.pinia),rc=a.ref(!1),{itemData:Rf,itemGridData:Qn,curStructureCompIds:cs,isSubmitCurStructure:Pf,routeToChildPath:Ff,pageMapState:fi,itemExtendData:uo,refreshTable:us}=I.storeToRefs(_r),To=rt(I.pinia),Sr=I.useMenuState(I.pinia),Xl=a.shallowRef([]),{asideMenus:jf,activeTopMenuPath:Hf,activeMenuPath:El,platform:A6,buttonTriggerType:Uf,currentMenuPath:Gr}=I.storeToRefs(Sr),nn=I.useUnit(I.pinia),{selectTitle:Hn,chooseTitle:hi}=I.storeToRefs(nn);a.ref();const Ct=a.ref(!0),qn=a.ref(0),vi=a.ref([]);a.ref(!1);const _i=a.ref(!1),$t=a.ref(),nc=a.ref(),tc=a.ref(),qf=()=>{_r.setItemGridData([]),_r.setIsEdit("edit"),_r.setSubmitCurStructure(El.value!=="/平台管理/菜单管理")},Wf=()=>{_r.setIsEdit("view"),_r.setRefreshCurStructure(!0)},Kf=async l=>{var s;let r=Hn.value,n=r==null?void 0:r.findIndex(c=>(c==null?void 0:c.value)===(l==null?void 0:l.value)),t=r==null?void 0:r.filter((c,b)=>b<=n);nn.setSelectTitle(fl.safeClone(t)),t=(s=t==null?void 0:t.map(c=>c==null?void 0:c.value))==null?void 0:s.join("/"),Sr.setActiveMenuPath(null),Sr.setActiveMenuPath(t)},ri=async(l,r,n,t="contentConfig")=>{var s;try{if(!Array.isArray(l))return;let c,b;r==="create"?(c={dataList:l==null?void 0:l.map(v=>{var y;return{key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:n!=null&&n.startsWith("/")?n==null?void 0:n.substring(1):n,type:"structure",structureBelong:t,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")}}}})},b=yr.batchAddInsofDataApi):r==="update"?(c={dataList:l==null?void 0:l.map(v=>{var y;return{id:v==null?void 0:v.id,value:{pageData:{...v,compData:(y=v==null?void 0:v.compData)==null?void 0:y.filter(u=>(u==null?void 0:u.key)!=="tableContents")}}}})},b=yr.batchUpdateInsofDataApi):r==="delete"&&(c={ids:l},b=yr.batchDeleteInsofDataApi);const h=await b(c);if(((s=h==null?void 0:h.data)==null?void 0:s.code)===200)return h.data.result;throw rl.ElMessage.error("保存响应失败"),new Error("保存响应失败")}catch{rl.ElMessage.error("保存响应失败")}},ds=async(l,r,n,t)=>{var s,c,b,h,v,y,u,x,S,M,_;try{const U=(c=(s=l==null?void 0:l.results)==null?void 0:s.filter(T=>!(T!=null&&T.id)||typeof(T==null?void 0:T.id)=="string"))==null?void 0:c.map(T=>({key:{pageKey:l==null?void 0:l.pageKey,systemKey:sessionStorage.getItem("systemKey"),type:r,relatedInfo:n},value:{tableData:T}})),B=(h=(b=l==null?void 0:l.results)==null?void 0:b.filter(T=>(T==null?void 0:T.id)&&typeof(T==null?void 0:T.id)=="number"))==null?void 0:h.map(T=>({id:T==null?void 0:T.id,value:{tableData:T}})),A=JSON.parse(JSON.stringify(l)),R=(v=A==null?void 0:A.results)==null?void 0:v.map(T=>T.id);let C;n?C=(x=(u=(y=fi.value)==null?void 0:y[El.value])==null?void 0:u.filter(T=>{var k,g,j;return((k=T==null?void 0:T.key)==null?void 0:k.type)===r&&((j=(g=T==null?void 0:T.key)==null?void 0:g.relatedInfo)==null?void 0:j.target)===t}))==null?void 0:x.map(T=>T==null?void 0:T.id):C=(_=(M=(S=fi.value)==null?void 0:S[El.value])==null?void 0:M.filter(T=>{var k;return((k=T==null?void 0:T.key)==null?void 0:k.type)===r}))==null?void 0:_.map(T=>T==null?void 0:T.id);const L=C==null?void 0:C.filter(T=>!(R!=null&&R.includes(T))&&typeof T=="number");(U==null?void 0:U.length)>0&&await yr.batchAddInsofDataApi({dataList:U}),(B==null?void 0:B.length)>0&&await yr.batchUpdateInsofDataApi({dataList:B}),(L==null?void 0:L.length)>0&&await yr.batchDeleteInsofDataApi({ids:L})}catch(U){throw new Error(U)}},Yf=async l=>{var y,u,x,S,M,_,U,B,A,R;Sr.setContentLoading(!0);const r=JSON.parse(JSON.stringify(Rf.value));if(!Pf.value)return Sr.setCacheStructures({key:Uf.value,data:r}),rl.ElMessage.success("已暂存");const n=r==null?void 0:r.map(C=>C.id),t=n.filter(C=>{var L;return!((L=cs.value)!=null&&L.includes(C))}),s=(y=cs.value)==null?void 0:y.filter(C=>!n.includes(C)),c=[...t,...s].filter(C=>typeof C!==null&&typeof C<"u"),b=r==null?void 0:r.filter(C=>!C.id),h=r==null?void 0:r.filter(C=>C.id);let v=[];if(c&&(c==null?void 0:c.length)>0&&v.push(ri(c,"delete",l)),b&&(b==null?void 0:b.length)>0&&v.push(ri(b,"create",l)),h&&(h==null?void 0:h.length)>0&&v.push(ri(h,"update",l)),Qn.value&&((u=Qn.value)!=null&&u.isDelete&&((S=(x=Qn.value)==null?void 0:x.results)==null?void 0:S.length)>0&&((_=(M=Qn.value)==null?void 0:M.results)!=null&&_.every(C=>typeof C=="number"))?await yr.batchDeleteInsofDataApi({ids:(U=Qn.value)==null?void 0:U.results}):(console.log("itemGridData.value",Qn.value),v.push(await ds(Qn.value,"gridLayout")))),uo.value)for(const C in uo.value)v.push(await ds((B=uo.value)==null?void 0:B[C],"extend",{target:C,compId:(R=(A=uo.value)==null?void 0:A[C])==null?void 0:R.compId},C));await Promise.all(v).then(()=>{rl.ElMessage.success("保存成功"),_r.setRefreshCurStructure(!0)}).catch(C=>{rl.ElMessage.success(C)}),Sr.setContentLoading(!1)},Rt=l=>Et(l),Gf=a.computed(()=>{var l;return(l=Xl.value)==null?void 0:l.filter(r=>(r==null?void 0:r.affix)&&(r==null?void 0:r.affix)!=="default")}),oc=a.computed(()=>{var l;return(l=Xl.value)==null?void 0:l.filter(r=>!(r!=null&&r.affix)||(r==null?void 0:r.affix)==="default")}),ic=a.ref(0),sc=a.ref(null),Jf="ocr_committed_temp_ids_v1",Xf=(l,r)=>`${Jf}:${String(l??"")}:${String(r??"")}`,Zf=(l,r,n)=>{try{const t=Xf(l,r),s=sessionStorage.getItem(t),c=s?JSON.parse(s):[],b=Array.isArray(c)?c:[],h=Array.from(new Set([...b,...n||[]].map(v=>String(v)))).slice(-200);sessionStorage.setItem(t,JSON.stringify(h))}catch{}},Co=async(l,r="data",n)=>{var s,c,b,h,v,y,u,x,S,M,_,U,B,A,R,C,L,T,k,g,j,W,J,ke,ze,De,ne,xe,X,pe,Ke,Da,te,D,le,ge,ue,Ne,ia,ka,Ha,ee,Qe,Pe,ga,He,Ae,$e,Ge,Wa,Ia,P,F,G,ie,ce,pa,aa,Ie,Ce,wa,me,Je,Ze,Fe,ba,Le,da,re,Se,K,je,Be,za,Sa,Ye,ca,_e,Q,ya,We,La,yl,Aa,el,Ja,Pa;let t=((b=(c=(s=Hn.value)==null?void 0:s.filter(Te=>(Te==null?void 0:Te.condition)==="child"))==null?void 0:c[0])==null?void 0:b.value)??"";if((l==null?void 0:l.buttonName)==="新增"){let Te=(h=l==null?void 0:l.fixContent)==null?void 0:h.map(de=>{let Fa={};for(let ja in de)Array.isArray(de==null?void 0:de[ja])?Fa[ja]=JSON.stringify(de==null?void 0:de[ja]):Fa[ja]=de==null?void 0:de[ja];return Fa}),il=await I.quoteApi({platId:parseInt((v=kl==null?void 0:kl.value)==null?void 0:v.plat_id),type:"fatherSyncs",related:[{menus:t!==""?El.value+"/"+t:El.value,groups:l==null?void 0:l.name}]});il=(y=il==null?void 0:il.data)==null?void 0:y.result,il=il==null?void 0:il.filter(de=>{var Fa,ja;return!((de==null?void 0:de.fatherPath)!==""&&((ja=(Fa=de==null?void 0:de.quote)==null?void 0:Fa[0])==null?void 0:ja.menus)===(El==null?void 0:El.value))});let va=il==null?void 0:il.map(de=>{var Na,Ua;let Fa={},ja=Te==null?void 0:Te[0],Ee;return Array.isArray((Na=de==null?void 0:de.struct)==null?void 0:Na[0])?Ee=na.getColumnChild((Ua=de==null?void 0:de.struct)==null?void 0:Ua[0]):Ee=de==null?void 0:de.struct,Ee==null||Ee.forEach(ye=>{var hl,Za;Fa[ye.prop]=((hl=ye==null?void 0:ye.words)!=null&&hl[0]?ja==null?void 0:ja[(Za=ye==null?void 0:ye.words)==null?void 0:Za[0]]:ja==null?void 0:ja[ye==null?void 0:ye.prop])??""}),Fa.id="1",Fa.relatedId=`[${Fa.id}]`,delete Fa.sort,{tableName:"content_"+(de==null?void 0:de.id),tableContents:[Fa]}}),_a=[{tableName:(u=l==null?void 0:l.relatedContents)==null?void 0:u.find(de=>de==null?void 0:de.includes("content")),tableContents:Te}];_a=[..._a,...va];let xa=await I.quoteApi({platId:parseInt((x=kl==null?void 0:kl.value)==null?void 0:x.plat_id),type:"sonSyncs",related:[{menus:t!==""?El.value+"/"+t:El.value,groups:l==null?void 0:l.name}]});xa=(M=(S=xa==null?void 0:xa.data)==null?void 0:S.result)==null?void 0:M.filter(de=>!(_a!=null&&_a.find(Fa=>(Fa==null?void 0:Fa.tableName)==="content_"+(de==null?void 0:de.id)))),xa=xa==null?void 0:xa.filter(de=>{var Fa,ja;return!((de==null?void 0:de.fatherPath)!==""&&((ja=(Fa=de==null?void 0:de.quote)==null?void 0:Fa[0])==null?void 0:ja.menus)===(El==null?void 0:El.value))});let oa=xa==null?void 0:xa.map(de=>{var Na,Ua,ye,hl,Za,xl,qa;let Fa={},ja=Te==null?void 0:Te[0],Ee;return Array.isArray((Na=de==null?void 0:de.struct)==null?void 0:Na[0])?Ee=na.getColumnChild((Ua=de==null?void 0:de.struct)==null?void 0:Ua[0]):Ee=de==null?void 0:de.struct,((hl=(ye=Ee==null?void 0:Ee[0])==null?void 0:ye.words)!=null&&hl[0]?ja!=null&&ja[(xl=(Za=Ee==null?void 0:Ee[0])==null?void 0:Za.words)==null?void 0:xl[0]]:ja!=null&&ja[(qa=Ee==null?void 0:Ee[0])==null?void 0:qa.prop])?(Ee==null||Ee.forEach(ol=>{var al,ul;Fa[ol.prop]=((al=ol==null?void 0:ol.words)!=null&&al[0]?ja==null?void 0:ja[(ul=ol==null?void 0:ol.words)==null?void 0:ul[0]]:ja==null?void 0:ja[ol==null?void 0:ol.prop])??""}),Fa.id="1",Fa.relatedId=`[${Fa.id}]`,delete Fa.sort):Fa=void 0,{tableName:"content_"+(de==null?void 0:de.id),tableContents:[Fa]}});oa=oa==null?void 0:oa.filter(de=>{var Fa;return!((Fa=de==null?void 0:de.tableContents)!=null&&Fa.every(ja=>ja===void 0))}),_a=[..._a,...oa],await I.pageBatchAddApi({platId:parseInt((_=kl==null?void 0:kl.value)==null?void 0:_.plat_id),changeContents:_a});let ha=[];_a==null||_a.forEach(de=>{var Fa;(Fa=de==null?void 0:de.tableContents)==null||Fa.forEach(ja=>{ha.push({id:"1",request_method:"Post",request_url:"/platform/page/add",request_param:JSON.stringify(ja),request_result:"{}",is_delete:!1,request_table:de==null?void 0:de.tableName,request_type:"add"})})}),await I.pageBatchAddApi({platId:parseInt((U=kl==null?void 0:kl.value)==null?void 0:U.plat_id),changeContents:[{tableName:"log",tableContents:ha}]})}if((l==null?void 0:l.buttonName)==="OCR批量新增"){const Te=((l==null?void 0:l.ocrRows)||[]).map(xa=>xa==null?void 0:xa.id).filter(xa=>xa!=null),il=((l==null?void 0:l.ocrRows)||[]).map(xa=>{const oa={...xa};return delete oa._isOCRRow,delete oa._ocrTableId,Object.keys(oa).forEach(ha=>{/(^|\.)证书附件$/.test(ha)&&Array.isArray(oa[ha])&&(oa[ha]=JSON.stringify(oa[ha].map(de=>({url:(de==null?void 0:de.url)||"",name:(de==null?void 0:de.name)||(de==null?void 0:de.fileName)||"",fileName:(de==null?void 0:de.fileName)||(de==null?void 0:de.name)||""})).filter(de=>de.url||de.name)))}),oa});let va=[{tableName:(B=l==null?void 0:l.relatedContents)==null?void 0:B.find(xa=>xa==null?void 0:xa.includes("content")),tableContents:il}];await I.pageBatchAddApi({platId:parseInt((A=kl==null?void 0:kl.value)==null?void 0:A.plat_id),changeContents:va});let _a=[];va==null||va.forEach(xa=>{var oa;(oa=xa==null?void 0:xa.tableContents)==null||oa.forEach(ha=>{_a.push({id:"1",request_method:"Post",request_url:"/platform/page/add",request_param:JSON.stringify(ha),request_result:"{}",is_delete:!1,request_table:xa==null?void 0:xa.tableName,request_type:"ocrBatchAdd"})})}),await I.pageBatchAddApi({platId:parseInt((R=kl==null?void 0:kl.value)==null?void 0:R.plat_id),changeContents:[{tableName:"log",tableContents:_a}]}),Zf(l==null?void 0:l.parentTableId,l==null?void 0:l.index,Te)}if((l==null?void 0:l.buttonName)==="编辑"){const il=((l==null?void 0:l.fixContent)||(l==null?void 0:l.singleContent)||[]||[]).map(Ee=>{const Na={...Ee};return delete Na._isOCRRow,delete Na._ocrTableId,delete Na._isTemp,delete Na.tableEditType,delete Na.index,Na});let va=il==null?void 0:il.map(Ee=>{let Na={};for(let Ua in Ee)Array.isArray(Ee==null?void 0:Ee[Ua])?Na[Ua]=JSON.stringify(Ee==null?void 0:Ee[Ua]):Na[Ua]=Ee==null?void 0:Ee[Ua];return Na}),_a=await I.quoteApi({platId:parseInt((C=kl==null?void 0:kl.value)==null?void 0:C.plat_id),type:"fatherSyncs",related:[{menus:t!==""?El.value+"/"+t:El.value,groups:l==null?void 0:l.name}]});_a=(L=_a==null?void 0:_a.data)==null?void 0:L.result,_a=_a==null?void 0:_a.filter(Ee=>{var Na,Ua;return!((Ee==null?void 0:Ee.fatherPath)!==""&&((Ua=(Na=Ee==null?void 0:Ee.quote)==null?void 0:Na[0])==null?void 0:Ua.menus)===(El==null?void 0:El.value))});let xa=(T=va==null?void 0:va[0])==null?void 0:T.id,oa=[{tableName:(k=l==null?void 0:l.relatedContents)==null?void 0:k.find(Ee=>Ee==null?void 0:Ee.includes("content")),tableContents:va}],ha=(g=_a==null?void 0:_a.map(Ee=>{var Ua,ye,hl,Za,xl;let Na=(Ua=Ee==null?void 0:Ee.contents)==null?void 0:Ua.filter(qa=>{var ol,al;return JSON.stringify(qa==null?void 0:qa.relatedId)!=="{}"&&(qa==null?void 0:qa.relatedId)!==""&&(qa!=null&&qa.relatedId)?(ol=qa==null?void 0:qa.relatedId)==null?void 0:ol.includes(parseInt(xa)):(qa==null?void 0:qa.sort)===((al=va==null?void 0:va[0])==null?void 0:al.sort)});if((Na==null?void 0:Na.length)>0){let qa=va==null?void 0:va[0];qa={...qa,id:(ye=Na==null?void 0:Na[0])==null?void 0:ye.id};let ol={},al=qa,ul;return Array.isArray((hl=Ee==null?void 0:Ee.struct)==null?void 0:hl[0])?ul=na.getColumnChild((Za=Ee==null?void 0:Ee.struct)==null?void 0:Za[0]):ul=Ee==null?void 0:Ee.struct,ul==null||ul.forEach(dl=>{var Wl,ql;ol[dl.prop]=((Wl=dl==null?void 0:dl.words)!=null&&Wl[0]?al==null?void 0:al[(ql=dl==null?void 0:dl.words)==null?void 0:ql[0]]:al==null?void 0:al[dl==null?void 0:dl.prop])??""}),ol.id=(xl=Na==null?void 0:Na[0])==null?void 0:xl.id,delete ol.sort,delete ol.relatedId,{tableName:"content_"+(Ee==null?void 0:Ee.id),tableContents:[ol]}}else return}))==null?void 0:g.filter(Ee=>Ee);oa=[...oa,...ha];let de=await I.quoteApi({platId:parseInt((j=kl==null?void 0:kl.value)==null?void 0:j.plat_id),type:"sonSyncs",related:[{menus:t!==""?El.value+"/"+t:El.value,groups:l==null?void 0:l.name}]});de=(J=(W=de==null?void 0:de.data)==null?void 0:W.result)==null?void 0:J.filter(Ee=>!(oa!=null&&oa.find(Na=>(Na==null?void 0:Na.tableName)==="content_"+(Ee==null?void 0:Ee.id)))),de=de==null?void 0:de.filter(Ee=>{var Na,Ua;return!((Ee==null?void 0:Ee.fatherPath)!==""&&((Ua=(Na=Ee==null?void 0:Ee.quote)==null?void 0:Na[0])==null?void 0:Ua.menus)===(El==null?void 0:El.value))});let Fa=(ke=de==null?void 0:de.map(Ee=>{var Ua,ye,hl,Za,xl;let Na=(Ua=Ee==null?void 0:Ee.contents)==null?void 0:Ua.filter(qa=>{var ol,al;return JSON.stringify(qa==null?void 0:qa.relatedId)!=="{}"&&(qa==null?void 0:qa.relatedId)!==""&&(qa!=null&&qa.relatedId)?(ol=qa==null?void 0:qa.relatedId)==null?void 0:ol.includes(parseInt(xa)):(qa==null?void 0:qa.sort)===((al=va==null?void 0:va[0])==null?void 0:al.sort)});if((Na==null?void 0:Na.length)>0){let qa=va==null?void 0:va[0];qa={...qa,id:(ye=Na==null?void 0:Na[0])==null?void 0:ye.id};let ol={},al=qa,ul;return Array.isArray((hl=Ee==null?void 0:Ee.struct)==null?void 0:hl[0])?ul=na.getColumnChild((Za=Ee==null?void 0:Ee.struct)==null?void 0:Za[0]):ul=Ee==null?void 0:Ee.struct,ul==null||ul.forEach(dl=>{var Wl,ql;ol[dl.prop]=((Wl=dl==null?void 0:dl.words)!=null&&Wl[0]?al==null?void 0:al[(ql=dl==null?void 0:dl.words)==null?void 0:ql[0]]:al==null?void 0:al[dl==null?void 0:dl.prop])??""}),ol.id=(xl=Na==null?void 0:Na[0])==null?void 0:xl.id,delete ol.sort,delete ol.relatedId,{tableName:"content_"+(Ee==null?void 0:Ee.id),tableContents:[ol]}}else return}))==null?void 0:ke.filter(Ee=>Ee);oa=[...oa,...Fa],await I.pageBatchUpdateApi({platId:parseInt((ze=kl==null?void 0:kl.value)==null?void 0:ze.plat_id),changeContents:oa});let ja=[];oa==null||oa.forEach(Ee=>{var Na;(Na=Ee==null?void 0:Ee.tableContents)==null||Na.forEach(Ua=>{ja.push({id:"1",request_method:"Post",request_url:"/platform/page/update",request_param:JSON.stringify(Ua),request_result:"{}",is_delete:!1,request_table:Ee==null?void 0:Ee.tableName,request_type:"update"})})}),await I.pageBatchAddApi({platId:parseInt((De=kl==null?void 0:kl.value)==null?void 0:De.plat_id),changeContents:[{tableName:"log",tableContents:ja}]})}if((l==null?void 0:l.buttonName)==="删除"){let Te=[{tableName:(ne=l==null?void 0:l.relatedContents)==null?void 0:ne.find(de=>de==null?void 0:de.includes("content")),tableContents:l==null?void 0:l.fixContent}],il=await I.quoteApi({platId:parseInt((xe=kl==null?void 0:kl.value)==null?void 0:xe.plat_id),type:"fatherSyncs",related:[{menus:t!==""?El.value+"/"+t:El.value,groups:l==null?void 0:l.name}]});il=(X=il==null?void 0:il.data)==null?void 0:X.result,il=il==null?void 0:il.filter(de=>{var Fa,ja;return!((de==null?void 0:de.fatherPath)!==""&&((ja=(Fa=de==null?void 0:de.quote)==null?void 0:Fa[0])==null?void 0:ja.menus)===(El==null?void 0:El.value))});let va=(Ke=(pe=l==null?void 0:l.fixContent)==null?void 0:pe[0])==null?void 0:Ke.id,_a=(Da=il==null?void 0:il.map(de=>{var ja,Ee,Na,Ua,ye,hl;let Fa=(ja=de==null?void 0:de.contents)==null?void 0:ja.filter(Za=>{var xl,qa,ol;return JSON.stringify(Za==null?void 0:Za.relatedId)!=="{}"&&(Za==null?void 0:Za.relatedId)!==""&&(Za!=null&&Za.relatedId)?(xl=Za==null?void 0:Za.relatedId)==null?void 0:xl.includes(parseInt(va)):(Za==null?void 0:Za.sort)===((ol=(qa=l==null?void 0:l.fixContent)==null?void 0:qa[0])==null?void 0:ol.sort)});if((Fa==null?void 0:Fa.length)>0){let Za=(Ee=l==null?void 0:l.fixContent)==null?void 0:Ee[0];Za={...Za,id:(Na=Fa==null?void 0:Fa[0])==null?void 0:Na.id};let xl={},qa=Za,ol;return Array.isArray((Ua=de==null?void 0:de.struct)==null?void 0:Ua[0])?ol=na.getColumnChild((ye=de==null?void 0:de.struct)==null?void 0:ye[0]):ol=de==null?void 0:de.struct,ol==null||ol.forEach(al=>{var ul,dl;xl[al.prop]=((ul=al==null?void 0:al.words)!=null&&ul[0]?qa==null?void 0:qa[(dl=al==null?void 0:al.words)==null?void 0:dl[0]]:qa==null?void 0:qa[al==null?void 0:al.prop])??""}),xl.id=(hl=Fa==null?void 0:Fa[0])==null?void 0:hl.id,delete xl.sort,delete xl.relatedId,{tableName:"content_"+(de==null?void 0:de.id),tableContents:[xl]}}else return}))==null?void 0:Da.filter(de=>de);Te=[...Te,..._a];let xa=await I.quoteApi({platId:parseInt((te=kl==null?void 0:kl.value)==null?void 0:te.plat_id),type:"sonSyncs",related:[{menus:t!==""?El.value+"/"+t:El.value,groups:l==null?void 0:l.name}]});xa=(le=(D=xa==null?void 0:xa.data)==null?void 0:D.result)==null?void 0:le.filter(de=>!(Te!=null&&Te.find(Fa=>(Fa==null?void 0:Fa.tableName)==="content_"+(de==null?void 0:de.id)))),xa=xa==null?void 0:xa.filter(de=>{var Fa,ja;return!((de==null?void 0:de.fatherPath)!==""&&((ja=(Fa=de==null?void 0:de.quote)==null?void 0:Fa[0])==null?void 0:ja.menus)===(El==null?void 0:El.value))});let oa=(ge=xa==null?void 0:xa.map(de=>{var ja,Ee,Na,Ua,ye,hl;let Fa=(ja=de==null?void 0:de.contents)==null?void 0:ja.filter(Za=>{var xl,qa,ol;return JSON.stringify(Za==null?void 0:Za.relatedId)!=="{}"&&(Za==null?void 0:Za.relatedId)!==""&&(Za!=null&&Za.relatedId)?(xl=Za==null?void 0:Za.relatedId)==null?void 0:xl.includes(parseInt(va)):(Za==null?void 0:Za.sort)===((ol=(qa=l==null?void 0:l.fixContent)==null?void 0:qa[0])==null?void 0:ol.sort)});if((Fa==null?void 0:Fa.length)>0){let Za=(Ee=l==null?void 0:l.fixContent)==null?void 0:Ee[0];Za={...Za,id:(Na=Fa==null?void 0:Fa[0])==null?void 0:Na.id};let xl={},qa=Za,ol;return Array.isArray((Ua=de==null?void 0:de.struct)==null?void 0:Ua[0])?ol=na.getColumnChild((ye=de==null?void 0:de.struct)==null?void 0:ye[0]):ol=de==null?void 0:de.struct,ol==null||ol.forEach(al=>{var ul,dl;xl[al.prop]=((ul=al==null?void 0:al.words)!=null&&ul[0]?qa==null?void 0:qa[(dl=al==null?void 0:al.words)==null?void 0:dl[0]]:qa==null?void 0:qa[al==null?void 0:al.prop])??""}),xl.id=(hl=Fa==null?void 0:Fa[0])==null?void 0:hl.id,delete xl.sort,delete xl.relatedId,{tableName:"content_"+(de==null?void 0:de.id),tableContents:[xl]}}else return}))==null?void 0:ge.filter(de=>de);Te=[...Te,...oa],await I.pageBatchDeleteApi({platId:parseInt((ue=kl==null?void 0:kl.value)==null?void 0:ue.plat_id),changeContents:Te});let ha=[];Te==null||Te.forEach(de=>{var Fa;(Fa=de==null?void 0:de.tableContents)==null||Fa.forEach(ja=>{ha.push({id:"1",request_method:"Post",request_url:"/platform/page/delete",request_param:JSON.stringify(ja),request_result:"{}",is_delete:!1,request_table:de==null?void 0:de.tableName,request_type:"delete"})})}),await I.pageBatchAddApi({platId:parseInt((Ne=kl==null?void 0:kl.value)==null?void 0:Ne.plat_id),changeContents:[{tableName:"log",tableContents:ha}]})}if((l==null?void 0:l.buttonName)==="复制新增"){let Te=await I.getPageDataApi({platId:parseInt((ia=kl==null?void 0:kl.value)==null?void 0:ia.plat_id),pageName:"menu"});if(Te=(ka=Te==null?void 0:Te.data)==null?void 0:ka.result,Te!=null&&Te.find(il=>(il==null?void 0:il.father_name)===El.value+"/")){tc.value=l,nc.value=Te==null?void 0:Te.filter(_a=>(_a==null?void 0:_a.father_name)===El.value+"/");let il=(ee=(Ha=l==null?void 0:l.columns)==null?void 0:Ha.find(_a=>_a==null?void 0:_a.mainKey))==null?void 0:ee.prop,va=(Pe=(Qe=l==null?void 0:l.fixContent)==null?void 0:Qe[0])==null?void 0:Pe[il];_i.value=!0,$t.value=[{prop:il,label:il,name:il,value:va}]}else{let il=(ga=l==null?void 0:l.fixContent)==null?void 0:ga.map(xa=>{let oa={};for(let ha in xa)Array.isArray(xa==null?void 0:xa[ha])?oa[ha]=JSON.stringify(xa==null?void 0:xa[ha]):oa[ha]=xa==null?void 0:xa[ha];return oa.relatedId="",oa}),va=[{tableName:(He=l==null?void 0:l.relatedContents)==null?void 0:He.find(xa=>xa==null?void 0:xa.includes("content")),tableContents:il}];await I.pageBatchAddApi({platId:parseInt((Ae=kl==null?void 0:kl.value)==null?void 0:Ae.plat_id),changeContents:va});let _a=[];va==null||va.forEach(xa=>{var oa;(oa=xa==null?void 0:xa.tableContents)==null||oa.forEach(ha=>{_a.push({id:"1",request_method:"Post",request_url:"/platform/page/add",request_param:JSON.stringify(ha),request_result:"{}",is_delete:!1,request_table:xa==null?void 0:xa.tableName,request_type:"copyAdd"})})}),await I.pageBatchAddApi({platId:parseInt(($e=kl==null?void 0:kl.value)==null?void 0:$e.plat_id),changeContents:[{tableName:"log",tableContents:_a}]})}}if((l==null?void 0:l.buttonName)==="methodButton"){let Te=((Ia=(Wa=(Ge=l==null?void 0:l.columns)==null?void 0:Ge.map(Ee=>Ee==null?void 0:Ee.filter))==null?void 0:Wa.filter(Ee=>Ee!==""))==null?void 0:Ia[0])??"";Te=$a.analyzeSplitToContent(Te,","),Te=(Te==null?void 0:Te.find(Ee=>Ee==null?void 0:Ee.includes("@Filter")))??"";let il=(P=l==null?void 0:l.fixContent)==null?void 0:P.map(Ee=>{let Na={};for(let Ua in Ee)Array.isArray(Ee==null?void 0:Ee[Ua])?Na[Ua]=JSON.stringify(Ee==null?void 0:Ee[Ua]):Na[Ua]=Ee==null?void 0:Ee[Ua];return Na}),va=await I.quoteApi({platId:parseInt((F=kl==null?void 0:kl.value)==null?void 0:F.plat_id),type:"fatherSyncs",related:[{menus:t!==""?El.value+"/"+t:El.value,groups:l==null?void 0:l.name}]});va=(G=va==null?void 0:va.data)==null?void 0:G.result,va=va==null?void 0:va.filter(Ee=>{var Na,Ua;return!((Ee==null?void 0:Ee.fatherPath)!==""&&((Ua=(Na=Ee==null?void 0:Ee.quote)==null?void 0:Na[0])==null?void 0:Ua.menus)===(El==null?void 0:El.value))});let _a=(ce=(ie=l==null?void 0:l.columns)==null?void 0:ie[0])==null?void 0:ce.prop,xa=(pa=il==null?void 0:il[0])==null?void 0:pa[_a],oa=[{tableName:(aa=l==null?void 0:l.relatedContents)==null?void 0:aa.find(Ee=>Ee==null?void 0:Ee.includes("content")),tableContents:il}],ha=(Ie=va==null?void 0:va.map(Ee=>{var Ua,ye,hl,Za,xl;let Na=(Ua=Ee==null?void 0:Ee.contents)==null?void 0:Ua.filter(qa=>{var ol;return(ol=Object.values(qa))==null?void 0:ol.find(al=>al===xa)});if((Na==null?void 0:Na.length)>0){let qa=il==null?void 0:il[0];qa={...qa,id:(ye=Na==null?void 0:Na[0])==null?void 0:ye.id};let ol={},al=qa,ul;return Array.isArray((hl=Ee==null?void 0:Ee.struct)==null?void 0:hl[0])?ul=na.getColumnChild((Za=Ee==null?void 0:Ee.struct)==null?void 0:Za[0]):ul=Ee==null?void 0:Ee.struct,ul==null||ul.forEach(dl=>{var Wl,ql;ol[dl.prop]=((Wl=dl==null?void 0:dl.words)!=null&&Wl[0]?al==null?void 0:al[(ql=dl==null?void 0:dl.words)==null?void 0:ql[0]]:al==null?void 0:al[dl==null?void 0:dl.prop])??""}),ol.id=(xl=Na==null?void 0:Na[0])==null?void 0:xl.id,delete ol.sort,{tableName:"content_"+(Ee==null?void 0:Ee.id),tableContents:[ol]}}else return}))==null?void 0:Ie.filter(Ee=>Ee);oa=[...oa,...ha];let de=await I.quoteApi({platId:parseInt((Ce=kl==null?void 0:kl.value)==null?void 0:Ce.plat_id),type:"sonSyncs",related:[{menus:t!==""?El.value+"/"+t:El.value,groups:l==null?void 0:l.name}]});if(de=(me=(wa=de==null?void 0:de.data)==null?void 0:wa.result)==null?void 0:me.filter(Ee=>!(oa!=null&&oa.find(Na=>(Na==null?void 0:Na.tableName)==="content_"+(Ee==null?void 0:Ee.id)))),de=de==null?void 0:de.filter(Ee=>{var Na,Ua;return!((Ee==null?void 0:Ee.fatherPath)!==""&&((Ua=(Na=Ee==null?void 0:Ee.quote)==null?void 0:Na[0])==null?void 0:Ua.menus)===(El==null?void 0:El.value))}),Te&&Te!==""){(Te==null?void 0:Te[(Te==null?void 0:Te.length)-1])===","&&(Te=Te==null?void 0:Te.slice(0,(Te==null?void 0:Te.length)-1)),Te=(Ze=(Je=Te==null?void 0:Te.replace("(",co))==null?void 0:Je.split(co))==null?void 0:Ze[1],Te=Te==null?void 0:Te.slice(0,(Te==null?void 0:Te.length)-1),(Te==null?void 0:Te[0])==="*"&&(Te="{"+((ba=(Fe=Te==null?void 0:Te.replace("{",co))==null?void 0:Fe.split(co))==null?void 0:ba[1])),Te=(Le=Te==null?void 0:Te.replaceAll("{",""))==null?void 0:Le.replaceAll("}","");let Ee=na.calculatorAndToOr(Te);Ee=Ee==null?void 0:Ee[0];let Na;if((da=Object.values(Ee))!=null&&da.some(Ua=>(Ua==null?void 0:Ua[0])==="*")){let Ua=(Se=(re=Hn.value)==null?void 0:re.find(ye=>(ye==null?void 0:ye.condition)==="child"))!=null&&Se.value?(Gr==null?void 0:Gr.value)+"/"+((je=(K=Hn.value)==null?void 0:K.find(ye=>(ye==null?void 0:ye.condition)==="child"))==null?void 0:je.value):Gr==null?void 0:Gr.value;Na=await Pr(Ua,!1)}for(let Ua in Ee)if(((Be=Ee==null?void 0:Ee[Ua])==null?void 0:Be[0])==="*"){let ye=(ca=(Ye=(Sa=Ee[Ua])==null?void 0:Sa.slice(1,(za=Ee[Ua])==null?void 0:za.length))==null?void 0:Ye.split(":"))==null?void 0:ca[0],hl=(Q=(_e=Ee[Ua])==null?void 0:_e.split(":"))==null?void 0:Q[1],Za=(ya=Na==null?void 0:Na.filter(xl=>(xl==null?void 0:xl.name)===ye))==null?void 0:ya[0];Za=(La=(We=Za==null?void 0:Za.compData)==null?void 0:We.find(xl=>(xl==null?void 0:xl.key)==="tableContents"))==null?void 0:La.contents,Za=(yl=Za==null?void 0:Za[0])==null?void 0:yl[hl],Ee[Ua]=Za}Te=((Aa=Object.values(Ee))==null?void 0:Aa[0])??""}let Fa=(el=de==null?void 0:de.map(Ee=>{var Ua,ye,hl,Za,xl;let Na=(Ua=Ee==null?void 0:Ee.contents)==null?void 0:Ua.filter(qa=>{var ol;return(ol=Object.values(qa))==null?void 0:ol.find(al=>al===(Te===""?xa:Te))});if((Na==null?void 0:Na.length)>0){let qa=il==null?void 0:il[0];qa={...qa,id:(ye=Na==null?void 0:Na[0])==null?void 0:ye.id};let ol={},al=qa,ul;return Array.isArray((hl=Ee==null?void 0:Ee.struct)==null?void 0:hl[0])?ul=na.getColumnChild((Za=Ee==null?void 0:Ee.struct)==null?void 0:Za[0]):ul=Ee==null?void 0:Ee.struct,ul==null||ul.forEach(dl=>{var ql,Pl,Hl,gr;let Wl=(ql=l==null?void 0:l.columns)==null?void 0:ql.find(rr=>{var kr,wr,Er;return((wr=(kr=rr==null?void 0:rr.words)==null?void 0:kr[0])==null?void 0:wr.replaceAll("'",""))===(dl==null?void 0:dl.prop)&&((Er=rr==null?void 0:rr.functionRelatedWords)==null?void 0:Er.length)>0});Wl=(Pl=Wl==null?void 0:Wl.prop)==null?void 0:Pl.replaceAll("'",""),ol[dl.prop]=((Hl=dl==null?void 0:dl.words)!=null&&Hl[0]?al==null?void 0:al[(gr=dl==null?void 0:dl.words)==null?void 0:gr[0]]:(al==null?void 0:al[dl==null?void 0:dl.prop])??(al==null?void 0:al[Wl]))??void 0}),ol.id=(xl=Na==null?void 0:Na[0])==null?void 0:xl.id,delete ol.sort,{tableName:"content_"+(Ee==null?void 0:Ee.id),tableContents:[ol]}}else return}))==null?void 0:el.filter(Ee=>Ee);oa=[...oa,...Fa],await I.pageBatchUpdateApi({platId:parseInt((Ja=kl==null?void 0:kl.value)==null?void 0:Ja.plat_id),changeContents:oa});let ja=[];oa==null||oa.forEach(Ee=>{var Na;(Na=Ee==null?void 0:Ee.tableContents)==null||Na.forEach(Ua=>{ja.push({id:"1",request_method:"Post",request_url:"/platform/page/add",request_param:JSON.stringify(Ua),request_result:"{}",is_delete:!1,request_table:Ee==null?void 0:Ee.tableName,request_type:"method"})})}),await I.pageBatchAddApi({platId:parseInt((Pa=kl==null?void 0:kl.value)==null?void 0:Pa.plat_id),changeContents:[{tableName:"log",tableContents:ja}]})}_r.setRefreshCurStructure(!0),await mi(l)},mi=async l=>{var c,b,h,v,y,u,x,S,M,_,U,B,A,R,C,L,T,k;let r=(c=l==null?void 0:l.relatedContents)==null?void 0:c.filter(g=>g==null?void 0:g.includes("content_")),n=await I.getAllTables({platId:parseInt((b=kl==null?void 0:kl.value)==null?void 0:b.plat_id),tableNames:r});if(n=(v=(h=n==null?void 0:n.data)==null?void 0:h.result)==null?void 0:v[0],!n||!Array.isArray(n))return;n=n==null?void 0:n.map(g=>{g==null||delete g.source_table;const j={};for(let W in g){const J=g==null?void 0:g[W],ke=J&&Object.prototype.toString.call(J)==="[object Object]"&&Object.keys(J).length===0,ze=Array.isArray(J)&&J.length===0;J==null||J==="{}"||ke||ze?j[W]="":j[W]=J}return j});let t=(u=(y=r==null?void 0:r[0])==null?void 0:y.split("_"))==null?void 0:u[1],s=(x=Xl.value)==null?void 0:x.find(g=>(g==null?void 0:g.id)===t);if(s&&(s==null?void 0:s.comp)!=="Tabs"){let g=(S=s.compData)==null?void 0:S.map(j=>{var W;if((j==null?void 0:j.key)==="tableContents"){let J={...j,contents:n};return J.contents=(W=(J==null?void 0:J.contents)??[])==null?void 0:W.map(ke=>{let ze={};for(let De in ke)JSON.stringify(ke==null?void 0:ke[De])==="{}"?ze[De]="":ze[De]=ke==null?void 0:ke[De];return ze}),J}return j});s.compData=await _o(g,{}),Xl.value=(M=Xl.value)==null?void 0:M.map(j=>((j==null?void 0:j.id)===(s==null?void 0:s.id)&&(j=s),j))}else{let g=(_=Xl.value)==null?void 0:_.filter(j=>(j==null?void 0:j.comp)==="Tabs"||(j==null?void 0:j.comp)==="ParentItem");if(g=(U=g==null?void 0:g.filter(j=>{var W,J;return((W=j==null?void 0:j.compData)==null?void 0:W.find(ke=>(ke==null?void 0:ke.id)===t))||((J=j==null?void 0:j.children)==null?void 0:J.find(ke=>(ke==null?void 0:ke.id)===t))}))==null?void 0:U[0],g){const j=((B=g==null?void 0:g.compData)==null?void 0:B.find(W=>(W==null?void 0:W.id)===t))??((A=g==null?void 0:g.children)==null?void 0:A.find(W=>(W==null?void 0:W.id)===t));if(j){let W;j!=null&&j.compData&&((R=j.compData)==null?void 0:R.length)>0?W=(C=j.compData)==null?void 0:C.map(J=>(J==null?void 0:J.key)==="tableContents"?{...J,contents:n}:J):W=(L=j.children)==null?void 0:L.map(J=>(J==null?void 0:J.key)==="tableContents"?{...J,contents:n}:J),j.compData=await _o(W,{}),g.compData=(T=g.compData)==null?void 0:T.map(J=>((J==null?void 0:J.id)===(j==null?void 0:j.id)&&(J=j),J)),Xl.value=(k=Xl.value)==null?void 0:k.map(J=>((g!=null&&g.tabInform?(J==null?void 0:J.tabInform)===(g==null?void 0:g.tabInform):(J==null?void 0:J.name)===(g==null?void 0:g.name))&&(J=g),J))}}}},Qf=l=>{let r=$t.value;$t.value=r==null?void 0:r.map(n=>(n.value=l==null?void 0:l[n==null?void 0:n.prop],n))},e0=async()=>{var S,M,_,U,B,A,R,C,L,T;let l=tc.value,r=nc.value,n=(M=(S=l==null?void 0:l.columns)==null?void 0:S.find(k=>k==null?void 0:k.mainKey))==null?void 0:M.prop,t=(U=(_=$t.value)==null?void 0:_[0])==null?void 0:U.value,s=(B=l==null?void 0:l.fixContent)==null?void 0:B.map(k=>{var j;let g={};for(let W in k)Array.isArray(k==null?void 0:k[W])?g[W]=JSON.stringify(k==null?void 0:k[W]):g[W]=k==null?void 0:k[W];return(j=l==null?void 0:l.columns)==null||j.forEach(W=>{(W==null?void 0:W.formType)==="Upload"&&(g==null?void 0:g[W==null?void 0:W.prop])===""&&(g[W==null?void 0:W.prop]="{}")}),g[n]=t,g}),c=[{tableName:(A=l==null?void 0:l.relatedContents)==null?void 0:A.find(k=>k==null?void 0:k.includes("content")),tableContents:s}];await I.pageBatchAddApi({platId:parseInt((R=kl==null?void 0:kl.value)==null?void 0:R.plat_id),changeContents:c}),r=r==null?void 0:r.filter(k=>{var g,j,W;return(W=k==null?void 0:k.object_name)==null?void 0:W.includes((j=(g=l==null?void 0:l.fixContent)==null?void 0:g[0])==null?void 0:j[n])});let b=[],h=new Map;r==null||r.forEach(k=>{b.push(`content_${k==null?void 0:k.object_id}`),b.push(`struct_${k==null?void 0:k.object_id}`),h.set(k==null?void 0:k.object_id,k)});let v=await I.getAllTables({platId:parseInt((C=kl==null?void 0:kl.value)==null?void 0:C.plat_id),tableNames:b});v=(L=v==null?void 0:v.data)==null?void 0:L.result;let y=[],u=[];v=$a.chunk(v,2),v==null||v.forEach(k=>{var W,J,ke,ze,De,ne,xe,X,pe,Ke,Da,te,D,le,ge,ue,Ne,ia,ka,Ha,ee;let g=h.get((ze=(ke=(J=(W=k==null?void 0:k[1])==null?void 0:W[0])==null?void 0:J.source_table)==null?void 0:ke.split("_"))==null?void 0:ze[1]),j=(xe=(ne=(De=g==null?void 0:g.object_name)==null?void 0:De.split("/"))==null?void 0:ne.filter((Qe,Pe)=>{var ga,He;return((He=(ga=g==null?void 0:g.object_name)==null?void 0:ga.split("/"))==null?void 0:He.length)-1!==Pe}))==null?void 0:xe.join("/");if(j=j+"/"+t,u!=null&&u.find(Qe=>(Qe==null?void 0:Qe.path)===j)||u.push({fatherPath:g==null?void 0:g.father_name,isShow:g==null?void 0:g.is_show,path:j}),((pe=(X=k==null?void 0:k[1])==null?void 0:X[0])==null?void 0:pe.类型)==="Table"){let Qe=((te=(Da=(Ke=k==null?void 0:k[1])==null?void 0:Ke[0])==null?void 0:Da.结构)==null?void 0:te.contents)??[],Pe=fl.safeClone(Qe);Array.isArray(Pe==null?void 0:Pe[0])&&(Pe=na.getColumnChild(Pe==null?void 0:Pe[0]));let ga=[];if(((D=k==null?void 0:k[0])==null?void 0:D.length)>0&&(ga=(le=k==null?void 0:k[0])==null?void 0:le.map(He=>Pe==null?void 0:Pe.map($e=>($e=(He==null?void 0:He[$e==null?void 0:$e.prop])??"",$e)))),y!=null&&y.find(He=>(He==null?void 0:He.key)===j)){let He=(ge=y==null?void 0:y.find($e=>($e==null?void 0:$e.key)===j))==null?void 0:ge.contents;He.push({isShow:g==null?void 0:g.is_show,filter:((ia=(Ne=(ue=k==null?void 0:k[1])==null?void 0:ue[0])==null?void 0:Ne.引用)==null?void 0:ia.contents)??"",key:"Table",name:Object.values(g==null?void 0:g.name),tableColumns:Qe,tableContents:ga});let Ae=y==null?void 0:y.findIndex($e=>($e==null?void 0:$e.key)===j);y[Ae].contents=He}else y.push({key:j,contents:[{isShow:g==null?void 0:g.is_show,filter:((ee=(Ha=(ka=k==null?void 0:k[1])==null?void 0:ka[0])==null?void 0:Ha.引用)==null?void 0:ee.contents)??"",key:"Table",name:Object.values(g==null?void 0:g.name),tableColumns:Qe,tableContents:ga}]})}});let x=[];x.push({key:"menuPath",contents:u}),x=[...x,...y],await I.createPlatFormDataApi({platId:parseInt((T=kl==null?void 0:kl.value)==null?void 0:T.plat_id),changeData:x}),_i.value=!1,_r.setRefreshTable(!0)},Eo=async(l,r)=>{},So=async l=>{Xl.value=await na.getDeepDiffItems(l),_r.setItemData(Xl.value),_r.setOriginalData(Xl.value)};a.ref();const a0=a.ref(null),l0=()=>{var l,r;console.log("倒计时结束时"),I.ElMessageBox.alert(`超时未提交,【${(r=(l=El.value)==null?void 0:l.split("/"))==null?void 0:r[0]}】失败`,"告警",{confirmButtonText:"确认",type:"error"})},cc=a.ref([]),r0=a.computed(()=>{var l,r;return(r=(l=fi.value)==null?void 0:l[El.value])==null?void 0:r.filter(n=>{var t;return((t=n==null?void 0:n.key)==null?void 0:t.type)==="gridLayout"})});a.watch(()=>[Hf.value],()=>{nn.setSelectTitle([]),nn.setChooseTitle([])},{deep:!0});a.watch(()=>hi.value,async(l,r)=>{var t,s,c,b,h,v;if(JSON.stringify(l)===JSON.stringify(r))return;let n=(t=hi.value)==null?void 0:t.filter(y=>(y==null?void 0:y.condition)==="child"&&(y==null?void 0:y.value)!==""&&(y==null?void 0:y.parentContent)!==Gr.value);if((n==null?void 0:n.length)>0){Sr.setContentLoading(!0);let y=((s=n==null?void 0:n[0])==null?void 0:s.relatedContent)??(El==null?void 0:El.value),u=y+"/"+((c=n==null?void 0:n[0])==null?void 0:c.value),x=!!((b=n==null?void 0:n[0])!=null&&b.parentContent),S=await Pr(u,x,{originPath:y});S=(h=S==null?void 0:S.filter(U=>U))==null?void 0:h.map(U=>(U.isShow=!0,U)),console.log(S,"loadingContents");let M=await na.getDeepDiffItems(S),_=M==null?void 0:M.filter(U=>U==null?void 0:U.choice);To.setSelectTab((v=_==null?void 0:_[0])==null?void 0:v.choiceName),M=M==null?void 0:M.filter(U=>{var B;return!(U!=null&&U.choiceName)||(U==null?void 0:U.choiceName)===((B=_==null?void 0:_[0])==null?void 0:B.choiceName)}),Xl.value=M,Sr.setContentLoading(!1)}});const n0=l=>{setTimeout(async()=>{var b,h,v;let r=(b=hi.value)==null?void 0:b.filter(y=>(y==null?void 0:y.condition)==="child"&&(y==null?void 0:y.value)!==""&&(y==null?void 0:y.parentContent)!==Gr.value),n=El==null?void 0:El.value,t=El==null?void 0:El.value;(r==null?void 0:r.length)>0&&(t=((h=r==null?void 0:r[0])==null?void 0:h.relatedContent)??(El==null?void 0:El.value),n=t+"/"+((v=r==null?void 0:r[0])==null?void 0:v.value));let s=await Pr(n,!1,{originPath:t});s=s==null?void 0:s.map(y=>(y.isShow=!0,y)),To.setSelectTab(l);let c=await na.getDeepDiffItems(s);Xl.value=c==null?void 0:c.filter(y=>!(y!=null&&y.choiceName)||(y==null?void 0:y.choiceName)===l)},10)};a.watch(()=>jf.value,l=>{l!=null&&l.length||(Xl.value=[])},{immediate:!0});a.watch(()=>[El.value],async l=>{var c,b,h,v;if(!El.value)return;if(El.value==="/"){Xl.value=[];return}Sr.setCurrentMenuPath(El.value),_r.setLockingPage(""),Xl.value=[];let r=a.getCurrentInstance();(c=r==null?void 0:r.scope)==null||c.stop(),r=null,Ct.value=!1,Sr.setContentLoading(!0),rc.value=!0;let n=l==null?void 0:l[0],t=n,s=(b=Hn.value)==null?void 0:b.filter(y=>(y==null?void 0:y.condition)==="child"&&(y==null?void 0:y.value)!==""&&(y==null?void 0:y.parentContent)!==El.value&&!(y!=null&&y.relatedContent));if((s==null?void 0:s.length)>0&&(n=n+"/"+((h=s==null?void 0:s[0])==null?void 0:h.value)),n==="系统管理/日志管理")Xl.value=await Vf("log");else{let y=await Pr(n,!0,{originPath:t});y=y==null?void 0:y.map(S=>(S.isShow=!0,S));let u=await na.getDeepDiffItems(y),x=u==null?void 0:u.filter(S=>S==null?void 0:S.choice);To.setSelectTab((v=x==null?void 0:x[0])==null?void 0:v.choiceName),Xl.value=u==null?void 0:u.filter(S=>{var M;return!(S!=null&&S.choiceName)||(S==null?void 0:S.choiceName)===((M=x==null?void 0:x[0])==null?void 0:M.choiceName)})}Sr.setContentLoading(!1),_r.setExtraContents([]),nn.setSelectIndex(""),nn.setSelectMenu(""),_r.setItemData(Xl.value),_r.setOriginalData(Xl.value),_r.setRefreshTable(!1),a.nextTick(()=>{qn.value=qn.value++,Ct.value=!0})},{immediate:!0});a.watch(()=>[us.value],async()=>{var l,r,n,t;if(us.value){Xl.value=[];let s=a.getCurrentInstance();(l=s==null?void 0:s.scope)==null||l.stop(),s=null,Ct.value=!1,Sr.setContentLoading(!0),rc.value=!0;let c=Gr==null?void 0:Gr.value,b=c,h=(r=Hn.value)==null?void 0:r.filter(x=>(x==null?void 0:x.condition)==="child"&&(x==null?void 0:x.value)!==""&&(x==null?void 0:x.parentContent)!==(Gr==null?void 0:Gr.value));(h==null?void 0:h.length)>0&&(c=c+"/"+((n=h==null?void 0:h[0])==null?void 0:n.value));let v=await Pr(c,!0,{originPath:b});v=v==null?void 0:v.map(x=>(x.isShow=!0,x));let y=await na.getDeepDiffItems(v),u=y==null?void 0:y.filter(x=>x==null?void 0:x.choice);if(To.setSelectTab((t=u==null?void 0:u[0])==null?void 0:t.choiceName),Xl.value=y==null?void 0:y.filter(x=>{var S;return!(x!=null&&x.choiceName)||(x==null?void 0:x.choiceName)===((S=u==null?void 0:u[0])==null?void 0:S.choiceName)}),Sr.setContentLoading(!1),_r.setExtraContents([]),nn.setSelectIndex(""),nn.setSelectMenu(""),_r.setItemData(Xl.value),_r.setOriginalData(Xl.value),_r.setRefreshTable(!1),(h==null?void 0:h.length)>0){let x=[...Hn.value,...h];nn.setSelectTitle(x)}a.nextTick(()=>{qn.value=qn.value++,Ct.value=!0})}},{immediate:!0,deep:!0});const t0=async()=>{Sr.setLinkMenuInfo(null),Sr.setActiveMenuPath(Ff.value),Xl.value=null,_r.setRouteToChildPath(""),Sr.setChildMenu("")},o0=l=>new RegExp("button","i").test(l),i0=l=>/^[\u4e00-\u9fa5]+\/[\u4e00-\u9fa5]+\^(.+)$/.test(l),uc=l=>{if(i0(l)){const r=l==null?void 0:l.split("^");(r==null?void 0:r.length)>0&&(r!=null&&r[0])&&Sr.setLinkMenuInfo({path:r==null?void 0:r[0],data:r==null?void 0:r[1]})}},dc=async(l,r,n)=>{var S,M,_,U,B,A,R,C,L,T,k,g;let t="",s="";for(let j in r)(r==null?void 0:r[j])===l&&(s=j);n==null||n.forEach(j=>{(j==null?void 0:j.prop)===s&&(t=j==null?void 0:j.fatherPath)});let c=t===""?El.value:t;t!==""&&Sr.setCurrentMenuPath(c),Sr.setCurrentMenuPath(c+"/"+l),Sr.setContentLoading(!0),await Pr(c+"/"+l,!0,{originPath:c+"/",row:r});let b=await Pr(c,!1),h=(S=b==null?void 0:b.filter(j=>(j==null?void 0:j.comp)==="Table"))==null?void 0:S[0],v=((B=(U=(_=(M=h==null?void 0:h.compData)==null?void 0:M.find(j=>(j==null?void 0:j.key)==="header"))==null?void 0:_.contents)==null?void 0:U[0])==null?void 0:B.prop)??((T=(L=(C=(R=(A=h==null?void 0:h.compData)==null?void 0:A.find(j=>(j==null?void 0:j.key)==="header"))==null?void 0:R.contents)==null?void 0:C[0])==null?void 0:L[0])==null?void 0:T.prop),y=(g=(k=h==null?void 0:h.compData)==null?void 0:k.find(j=>(j==null?void 0:j.key)==="tableContents"))==null?void 0:g.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=Hn.value,x={value:l,condition:"child",options:y,relatedContent:c,isShow:!0};u.push(x),nn.setSelectTitle(u),nn.setChooseTitle([x]),Sr.setContentLoading(!1),_r.setExtraContents([]),nn.setSelectIndex(""),nn.setSelectMenu(""),_r.setItemData(Xl.value),_r.setOriginalData(Xl.value)},s0=l=>{ic.value=l},bt=a.reactive({index:0,comp:null}),c0=a.computed(()=>{var l;return(l=Xl.value)==null?void 0:l.map((r,n)=>({id:r.id,name:r.name,status:u0(r,n)}))}),pc=(l,r)=>{var v,y,u,x,S;const n=r?l:l-2,t=(v=Xl.value)==null?void 0:v[n],s=(u=(y=t==null?void 0:t.compData)==null?void 0:y.find(M=>(M==null?void 0:M.key)==="header"))==null?void 0:u.contents,c=s==null?void 0:s.findIndex(M=>(M==null?void 0:M.isMainKey)&&(M==null?void 0:M.label)!=="操作"),b=c===-1?0:c,h=(S=(x=t==null?void 0:t.compData)==null?void 0:x.find(M=>(M==null?void 0:M.key)==="tableContents"))==null?void 0:S.contents;return{valid:h==null?void 0:h.every(M=>M==null?void 0:M[b+1]),length:(h==null?void 0:h.length)||0}},u0=(l,r)=>{var t;let n="process";if(((t=l==null?void 0:l.comp)==null?void 0:t.toUpperCase())==="TABLE"){const{valid:s,length:c}=pc(r,!0);bt.index===r?n="process":c===0?n="wait":n=s?"success":"error"}return n},fc=l=>{var n,t,s,c,b;const r=l+1;if(r>1&&((s=(t=(n=Xl.value)==null?void 0:n[l])==null?void 0:t.comp)==null?void 0:s.toUpperCase())==="TABLE"){const{valid:h}=pc(r);h?(bt.index=r,bt.comp=(c=Xl.value)==null?void 0:c[l]):rl.ElMessage({showClose:!0,type:"warning",message:"当前流程有输入未完成"})}else bt.index=r,bt.comp=(b=Xl.value)==null?void 0:b[l]},hc=a.computed(()=>{var l,r;return(r=(l=oc.value)==null?void 0:l[0])==null?void 0:r.isStepLayout});a.watch(()=>hc.value,l=>{l&&fc(0)},{immediate:!0});const d0={class:"table-content"},p0={class:"menu-config-wrap"},f0=["onClick"],h0={key:0,class:"viewport-wrap"},v0=["onClick"],m0={title:"选择显示列信息"},y0={class:"menu-config-wrap",style:{padding:"0 0 0 16px","box-sizing":"border-box","min-height":"200px",width:"400px",overflow:"auto",position:"relative"}},g0=["title"],b0={class:"col-operate-wrap"},k0={key:0,class:"col-operate-radio-wrapper"},x0={title:"拖拽排序列",style:{cursor:"move",color:"grey",position:"absolute",right:"15px"}},_0={key:0,style:{display:"flex","justify-content":"center","align-items":"center"}},w0={class:"pop-view"},C0={class:"pop-wrapper"},E0={class:"file-list-pop"},S0=["title","onClick"],D0=["onClick"],B0=["onClick"],N0={key:1,style:{display:"flex","justify-content":"flex-end",gap:"8px","margin-top":"8px"}},T0={class:"form-content"},A0={key:0,class:"dialog-footer"},z0={class:"dialog-footer"},M0={class:"ocr-dialog-content"},O0={class:"ocr-steps"},I0={key:0,class:"ocr-action-buttons"},L0={key:1,class:"ocr-preview-area"},V0={class:"ocr-file-grid"},$0={class:"file-thumbnail"},R0=["src"],P0={key:1,class:"thumbnail-placeholder"},F0={class:"progress-svg",viewBox:"0 0 36 36"},j0=["stroke","stroke-width","stroke-dasharray"],H0={key:0,class:"progress-icon"},U0={key:1,class:"progress-icon"},q0=["onClick"],W0={class:"file-name"},K0={key:0,class:"ocr-recognize-button"},Y0={key:2,class:"ocr-progress-section"},G0={key:3,class:"ocr-confirm-area"},J0={class:"ocr-preview-tip"},X0={class:"ocr-preview-table"},Z0={style:{display:"flex","align-items":"center",gap:"8px"}},Q0={key:0},e3={key:4,class:"ocr-success-area"},a3={key:0,class:"ocr-dialog-footer"},l3={class:"form-content"},r3={style:{display:"flex","justify-content":"space-between",gap:"8px"}},n3={style:{display:"flex"}},ps="ss-ocr-upload-history",t3="ss-ocr-cert-history-v1",o3={__name:"index",props:{pageLayout:{type:String,default:"vertical"},related:{type:Array,default:[]},level:{type:Number,default:1},compName:{type:String,default:"",required:!1},compNames:{type:Array,default:()=>[],required:!1},compItem:{type:Object,default:()=>{}},operatingForm:{type:Object,default:()=>{}},cacheNewData:{type:Object,default:()=>{}},config:Object,parentTableId:{type:Number,default:0},itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},index:Number,isDevMode:Boolean,changedContent:{type:Object,default:()=>{}},showHeader:{type:Boolean,default:!0},allowSelect:{type:Boolean,default:!0},allowOperate:{type:Boolean,default:!0},allMapContents:{type:Object,default:()=>{}}},emits:["getSliceContLength","clickMainKey","change","contentChange","onButtonClick","contentClick","pageChange","rowClick","routeUrl"],setup(l,{emit:r}){var Oi;const n=a.ref([]),t=ki(I.pinia),s=a.ref(null),c=a.ref(new Set),b=a.ref(new Map),h=a.ref(new Map),v=new Map,y=a.ref(new Map),u=l,x=a.ref((u==null?void 0:u.allowSelect)??!0),S=a.ref(((Oi=u==null?void 0:u.config)==null?void 0:Oi.showIndex)??!0),M=a.ref(),_=a.ref(!0),U=a.ref(!1),B=a.ref([]),A={sortable:"switch",filterable:"switch",showSummary:"switch",operable:"switch",fixed:"radio"},R=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=na.useOriginalState(I.pinia);let L="$R";const{originalPath:T}=I.storeToRefs(C),k=T.value,g=a.computed(()=>{var f;const d=(f=na.getAllLeafNodes(De.value)||[])==null?void 0:f.filter(z=>(z==null?void 0:z.type)!=="operate"&&(z==null?void 0:z.label)!=="操作"&&(z==null?void 0:z.prop)!=="operate");return d.length>0?d.every(z=>!!(z!=null&&z.sortable)):!1});a.computed(()=>{var f;return(f=De.value)==null?void 0:f.every(z=>z==null?void 0:z.filterable)}),a.computed(()=>{var f;return(f=De.value)==null?void 0:f.every(z=>z==null?void 0:z.operable)});const j=a.ref(!0),W=a.ref([]),J=a.reactive({column:{},status:!1,text:"合计"}),ke=a.reactive({currentPage:1,pageSize:10,total:0,pageSizes:[5,10,20]}),ze=r,De=a.ref([]),ne=a.ref([]),xe=a.ref([]),X=a.reactive({prop:"",order:null}),pe=a.ref([]),Ke=a.ref(!1),Da=a.ref(!1),te=a.ref(null),{isUseBackdrop:D,initTrackFileType:le,getFileExtension:ge,setData:ue,getFileInfo:Ne,getFilesInfo:ia}=go.useThreeSystem(),ka=a.ref([]),Ha=a.ref(!1),ee=a.ref(),Qe=I.useMenuState(),{importLoading:Pe,activeMenuPath:ga,contentLoading:He,linkMenuInfo:Ae}=I.storeToRefs(Qe),$e=na.useTableComp(I.pinia),Ge=I.useModelComp(I.pinia),Wa=rt(I.pinia),{extraContents:Ia,cacheUpdatingData:P,tableViewContents:F,tableLoading:G,pageMapState:ie,lockingPage:ce}=I.storeToRefs(Ge),{selectTab:pa}=I.storeToRefs(Wa),{compType:aa,hasEditable:Ie}=js.useRole(),Ce=a.ref([]),wa=a.ref([]),me=a.ref(new Map);a.ref(!1);const Je=a.ref("");a.ref();const Ze=a.ref(!0),Fe=a.ref(0),ba=a.ref(!0),Le=a.ref(""),da=a.ref(!1),re=a.ref(null);a.ref([]);const Se=a.ref({label:"查看三维模型"}),K=a.ref(!1),je=a.ref(),Be=a.ref([]),za=a.ref([]),Sa=a.ref(!1),Ye=a.ref([]),ca=a.ref([]),_e=a.ref([]),Q=a.ref([]),ya=a.ref([]),We=()=>{try{const d=localStorage.getItem(ps),f=d?JSON.parse(d):[];ya.value=Array.isArray(f)?f:[]}catch{ya.value=[]}},La=()=>{try{localStorage.setItem(ps,JSON.stringify(ya.value||[]))}catch{}},yl=d=>{var Z,ae,H;if(!d)return;const f=d.url||((Z=d==null?void 0:d.uploadResult)==null?void 0:Z.url)||"",z=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(!f&&!z)return;const O={name:z,url:f,ts:Date.now()},$=String(O.name||"").trim().toLowerCase(),N=(ya.value||[]).findIndex(ve=>String((ve==null?void 0:ve.name)||"").trim().toLowerCase()===$);N>-1&&ya.value.splice(N,1),ya.value.unshift(O),ya.value.length>20&&(ya.value=ya.value.slice(0,20)),La()};We();const Aa=(d,f)=>`${t3}:${String(d??"")}:${String(f??"")}`,el=(d,f)=>{try{const z=sessionStorage.getItem(Aa(d,f)),O=z?JSON.parse(z):[];return Array.isArray(O)?O:[]}catch{return[]}},Ja=(d,f,z)=>{try{sessionStorage.setItem(Aa(d,f),JSON.stringify(Array.isArray(z)?z:[]))}catch{}},Pa=(d,f,z)=>{if(!f)return;const O=el(d,f),$=[z,...O||[]].filter(Boolean).slice(0,1);return Ja(d,f,$),$},Te=(d,f,z)=>{if(!f||!z)return;const O=Aa(d,f),$=Aa(d,z);try{const N=sessionStorage.getItem(O);if(!N)return;const Z=(()=>{try{const ve=JSON.parse(N);return Array.isArray(ve)?ve:[]}catch{return[]}})(),ae=el(d,z),H=[...Z,...ae||[]].filter(Boolean).sort((ve,we)=>Number((we==null?void 0:we.ts)||0)-Number((ve==null?void 0:ve.ts)||0)).slice(0,1);sessionStorage.setItem($,JSON.stringify(H)),sessionStorage.removeItem(O)}catch{}},il=a.ref(!1),va=a.ref(!1),_a=a.ref([]),xa=a.ref(null);a.ref(!1),a.ref([]),a.ref(""),a.ref("");const oa=a.ref(!1),ha=a.ref([]),de=a.ref(1),Fa=a.ref(new Map),ja=a.ref(new Map),Ee=a.ref(0),Na=a.ref(!1),Ua=a.ref([]),ye=a.ref([]),hl=d=>{var f;try{const z=(f=na.getAllLeafNodes(De.value)||[])==null?void 0:f.filter(O=>(O==null?void 0:O.type)!=="operate"&&(O==null?void 0:O.label)!=="操作"&&(O==null?void 0:O.prop)!=="operate");return(z==null?void 0:z.find(O=>(O==null?void 0:O.prop)===d||(O==null?void 0:O.label)===d))||null}catch{return null}},Za=d=>{const f=hl(d),z=(f==null?void 0:f.formType)||(f==null?void 0:f.columnType)||"Input";return fl.getComponent(z)||fl.getComponent("Input")},xl=a.ref([]),qa=a.ref(null),ol=a.ref([]),al=a.ref(null),ul=a.ref(""),dl=a.ref(!1),Wl=a.ref([]),ql=a.ref(""),Pl=a.ref(!1),Hl=a.ref([]),gr=a.ref([]),rr=a.ref([]),kr=a.ref(null),wr=a.ref([]),Er=a.ref("");a.computed(()=>{var d;try{const f=(d=na.getAllLeafNodes(De.value)||[])==null?void 0:d.filter(O=>(O==null?void 0:O.type)!=="operate"&&(O==null?void 0:O.label)!=="操作"&&(O==null?void 0:O.prop)!=="operate"),z=new Map;return f==null||f.forEach(O=>{O!=null&&O.label&&(O!=null&&O.prop)&&z.set(O.label,O.prop)}),z.get("编号")||""}catch{return""}});const un=a.computed(()=>{var d;try{const f=(d=na.getAllLeafNodes(De.value)||[])==null?void 0:d.filter(O=>(O==null?void 0:O.type)!=="operate"&&(O==null?void 0:O.label)!=="操作"&&(O==null?void 0:O.prop)!=="operate"),z=new Map;return f==null||f.forEach(O=>{O!=null&&O.label&&(O!=null&&O.prop)&&z.set(O.label,O.prop)}),z.get("名称")||""}catch{return""}}),Jr=a.computed(()=>{var d;try{const f=(d=na.getAllLeafNodes(De.value)||[])==null?void 0:d.filter(O=>(O==null?void 0:O.type)!=="operate"&&(O==null?void 0:O.label)!=="操作"&&(O==null?void 0:O.prop)!=="operate"),z=new Map;return f==null||f.forEach(O=>{O!=null&&O.label&&(O!=null&&O.prop)&&z.set(O.label,O.prop)}),z.get("制造厂")||""}catch{return""}}),dn=()=>{Pl.value=!1,Hl.value=[],gr.value=[],rr.value=[],kr.value=null,wr.value=[],Er.value=""},Xr=d=>d==null?!1:typeof d=="string"?d.trim()!=="":Array.isArray(d)?d.length>0:!0,Ur=(d,f)=>{const z=(d==null?void 0:d.ocrRow)||{};for(const $ of Object.keys(z))$==="id"||$==="_isOCRRow"||$==="_ocrTableId"||Xr(z[$])&&(f[$]=z[$]);const O=wa.value.find($=>$.id===f.id);if(O)for(const $ of Object.keys(z))$==="id"||$==="_isOCRRow"||$==="_ocrTableId"||Xr(z[$])&&(O[$]=z[$]);me.value&&me.value.set(f.id,f),Pa(u==null?void 0:u.index,f.id,d==null?void 0:d.versionItem),gr.value=[...gr.value||[],JSON.parse(JSON.stringify(f))]},pn=async(d,f=null)=>{var z,O,$,N,Z,ae,H;try{const ve=(z=na.getAllLeafNodes(De.value)||[])==null?void 0:z.filter(la=>(la==null?void 0:la.type)!=="operate"&&(la==null?void 0:la.label)!=="操作"&&(la==null?void 0:la.prop)!=="operate"),we=new Map;ve==null||ve.forEach(la=>{la!=null&&la.label&&(la!=null&&la.prop)&&we.set(la.label,la.prop)});const Ve=we.get("系统编号")||we.get("编号");if(!Ve){console.warn("未找到系统编号字段,跳过向检校记录表插入数据");return}const Me=f||kr.value;if((Array.isArray(Me==null?void 0:Me.result)?Me.result:[]).length===0){console.warn("OCR识别结果为空,跳过向检校记录表插入数据");return}for(let la=0;la<d.length;la++){const Va=d[la],Ba=Va[Ve];if(!Ba){console.warn(`第 ${la+1} 条匹配行缺少系统编号,跳过`);continue}const ea=`设备管理/试验设备/${Ba}`,Ga=await I.getPageDataApi({platId:parseInt((O=Vl.value)==null?void 0:O.plat_id),pageName:ea});if(!(($=Ga==null?void 0:Ga.data)!=null&&$.result)||!Array.isArray(Ga.data.result)){console.warn(`未找到详情页数据: ${ea}`);continue}const ra=Ga.data.result.find(ma=>(ma==null?void 0:ma.property_name)==="校检记录");if(!ra){console.warn(`详情页 ${ea} 中未找到校检记录表`);continue}const Ra=(N=ra.contents)==null?void 0:N.find(ma=>(ma==null?void 0:ma.key)&&ma.key.startsWith("content_"));if(!Ra||!Ra.key){console.warn("校检记录表中未找到 content item");continue}const se=Ra.key,Ea=Array.isArray(Ra.value)?Ra.value:[];if(Ea.length>=5){const sa=[...Ea].sort((fa,Oa)=>{const pl=Number((fa==null?void 0:fa.create_time)||0),Qa=Number((Oa==null?void 0:Oa.create_time)||0);return pl-Qa})[0];sa!=null&&sa.id&&await I.pageBatchDeleteApi({platId:parseInt((Z=Vl.value)==null?void 0:Z.plat_id),changeContents:[{tableName:se,tableContents:[{id:sa.id}]}]})}const ta=(ae=ve==null?void 0:ve.find(ma=>(ma==null?void 0:ma.label)==="证书附件"))==null?void 0:ae.prop,Ca=String(Date.now()),oe={id:Ca},E=Ea[0]||{},Re=new Date().toISOString().split("T")[0];if(Object.keys(E||{}).forEach(ma=>{if(ma!=="id"){if(ma==="证书附件"){oe[ma]="";return}if(ma==="校检日期"||ma==="检校日期"){oe[ma]=Va[ma]||Va.校检日期||Va.检校日期||Re;return}if(["校检周期","检校周期","校检结果","检校结果","计量状态","依据文件","证书编号"].includes(ma)){oe[ma]=Va[ma]??"";return}oe[ma]=Va[ma]??""}}),ta&&Va[ta]){const ma=Va[ta];if(Array.isArray(ma)&&ma.length>0)oe.证书附件=JSON.stringify(ma.map(sa=>({url:(sa==null?void 0:sa.url)||"",name:(sa==null?void 0:sa.name)||(sa==null?void 0:sa.fileName)||"",fileName:(sa==null?void 0:sa.fileName)||(sa==null?void 0:sa.name)||""})).filter(sa=>sa.url||sa.name));else if(typeof ma=="string")try{const sa=JSON.parse(ma);oe.证书附件=ma}catch{oe.证书附件=JSON.stringify([{url:ma,name:ma,fileName:ma}])}}console.log(se,"tableName","inspectionRecordRow",oe),await I.pageBatchAddApi({platId:parseInt((H=Vl.value)==null?void 0:H.plat_id),changeContents:[{tableName:se,tableContents:[oe]}]});const he=ra==null?void 0:ra.object_id;if(he&&Ca){const ma=ta&&Va[ta]?Va[ta]:null;let sa=[],fa="",Oa=!1;if(Array.isArray(ma)&&ma.length>0){sa=ma.map(bl=>({name:(bl==null?void 0:bl.name)||(bl==null?void 0:bl.fileName)||"",url:(bl==null?void 0:bl.url)||""})).filter(bl=>bl.url||bl.name);const Qa=ma[0];fa=(Qa==null?void 0:Qa.url)||"";const gl=(Qa==null?void 0:Qa.name)||(Qa==null?void 0:Qa.fileName)||"";Oa=String(gl).toLowerCase().endsWith(".pdf")||String(fa).toLowerCase().endsWith(".pdf")}else if(typeof ma=="string")try{const Qa=JSON.parse(ma);Array.isArray(Qa)?(sa=Qa.map(gl=>({name:(gl==null?void 0:gl.name)||(gl==null?void 0:gl.fileName)||"",url:(gl==null?void 0:gl.url)||""})).filter(gl=>gl.url||gl.name),sa.length>0&&(fa=sa[0].url||"",Oa=String(sa[0].name).toLowerCase().endsWith(".pdf")||String(fa).toLowerCase().endsWith(".pdf"))):(fa=ma,Oa=String(ma).toLowerCase().endsWith(".pdf"))}catch{fa=ma,Oa=String(ma).toLowerCase().endsWith(".pdf")}const pl={ts:Date.now(),versionId:String(Date.now())+"_"+String(la),label:new Date().toLocaleString(),certType:Va.证书类型||"",certNo:Va.证书编号||"",fileType:Oa?"pdf":"image",sourceUrl:Oa?fa:"",images:sa};Pa(he,Ca,pl)}}}catch(ve){console.error("向校检记录表插入OCR识别结果失败:",ve),rl.ElMessage.error("向校检记录表插入数据失败,请查看控制台")}},tn=d=>{const f=Array.isArray(d)?d:Hl.value||[];if(f.length===0){dn();return}if(f.find(N=>(N==null?void 0:N.__decision)==="replace"&&!(N!=null&&N.selectedTargetId))){rl.ElMessage.warning("存在“替换”但未选择目标记录的条目,请处理后再提交");return}f.forEach(N=>{var ae;const Z=N==null?void 0:N.__decision;if(!(!Z||Z==="skip")){if(Z==="add"){Pa(u==null?void 0:u.index,(ae=N==null?void 0:N.ocrRow)==null?void 0:ae.id,N==null?void 0:N.versionItem),rr.value=[...rr.value||[],N.ocrRow];return}if(Z==="replace"){const H=N==null?void 0:N.selectedTargetId,ve=(Ce.value||[]).find(we=>String(we==null?void 0:we.id)===String(H));if(!ve)return;Ur(N,ve)}}}),(gr.value||[]).length>0&&(Ce.value=[...Ce.value||[]]),(rr.value||[]).length>0&&(Ce.value=[...Ce.value||[],...rr.value||[]],wa.value=[...wa.value||[],...rr.value||[]],(rr.value||[]).forEach(N=>{var Z,ae;return(ae=(Z=me.value)==null?void 0:Z.set)==null?void 0:ae.call(Z,N.id,N)})),Nr.value=Ce.value;const O=gr.value||[],$=rr.value||[];if(O.length>0&&(ze("change",{buttonName:"编辑",singleContent:O,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:De.value,name:u==null?void 0:u.compName}),pn(O)),$.length>0){const N=kr.value;ze("change",{buttonName:"OCR批量新增",content:Ce.value,index:u==null?void 0:u.index,parentTableId:u==null?void 0:u.parentTableId,column:De.value,ocrRows:$,relatedContents:u==null?void 0:u.related,uploadedFiles:(Array.isArray(N==null?void 0:N.result)?N.result:[]).map(Z=>(Array.isArray(Z==null?void 0:Z.图片信息)?Z.图片信息:[]).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:(O||[]).length,newCount:($||[]).length})}rl.ElMessage.success("已提交候选处理结果"),dn()},Dr=lc(),Zr=a.computed(()=>Dr.getConfig()),Br=a.ref(),Il=a.ref(),qr=Xs(I.pinia),Nr=a.ref(),vn=a.ref(0),tt=I.useUnit(I.pinia),{selectIndex:Wn,selectMenu:In,selectTitle:mn}=I.storeToRefs(tt),{selectString:Zl}=I.storeToRefs(qr),xr=I.useLoginState(I.pinia),{loginUserInfo:Vl}=I.storeToRefs(xr),jl=a.ref(720),zl=a.ref(!1),cr=a.ref(!1),ar=a.ref([]),Rl=a.ref(),zr=a.ref(!0),Mr=a.ref(!0);a.ref([]);const yn=a.inject("contentRef");a.provide("contentRef",yn),a.provide("getSuggestListForCell",cu),a.provide("getSuggestLoadingForCell",(d,f)=>{const z=`${d==null?void 0:d.id}:${(f==null?void 0:f.prop)||(f==null?void 0:f.property)}`;return y.value.get(z)||!1}),a.watch(()=>{var d;return(d=Ce.value)==null?void 0:d.length},d=>{ke.total=d}),a.watch(()=>F.value,async()=>{var f,z,O,$,N,Z,ae,H,ve,we,Ve,Me,Ue,la,Va,Ba,ea;if(((f=F.value)==null?void 0:f.length)===0||!((z=u==null?void 0:u.itemData)!=null&&z.find(Ga=>(Ga==null?void 0:Ga.key)==="columnPath"))||!((O=u==null?void 0:u.itemData)!=null&&O.find(Ga=>(Ga==null?void 0:Ga.key)==="pageColumn")))return;let d=(ve=(H=(ae=(Z=(N=($=u==null?void 0:u.itemData)==null?void 0:$.find(Ga=>(Ga==null?void 0:Ga.key)==="pageColumn"))==null?void 0:N.contents)==null?void 0:Z.split("["))==null?void 0:ae[1])==null?void 0:H.split("]"))==null?void 0:ve[0];((Ue=(Me=(Ve=(we=u==null?void 0:u.itemData)==null?void 0:we.find(Ga=>(Ga==null?void 0:Ga.key)==="pageColumn"))==null?void 0:Ve.contents)==null?void 0:Me.split("["))==null?void 0:Ue[0])+((Va=(la=F.value)==null?void 0:la.find(Ga=>(Ga==null?void 0:Ga.key)===d))==null?void 0:Va.value),(ea=(Ba=u==null?void 0:u.itemData)==null?void 0:Ba.find(Ga=>(Ga==null?void 0:Ga.key)==="pageGroup"))==null||ea.contents,Mi(compData,u.allMapContents)},{deep:!0});const Qr=d=>{var z,O,$,N,Z;const f=(O=(z=De.value)==null?void 0:z.filter(ae=>ae==null?void 0:ae.mainKey))==null?void 0:O.map(ae=>ae==null?void 0:ae.prop);if(f.length===0){const ae=($=De.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(Z=f==null?void 0:f.map(ae=>d==null?void 0:d[ae]))==null?void 0:Z.join("|")},Kn=d=>{var ae,H,ve,we,Ve;const f=(H=(ae=De.value)==null?void 0:ae.filter(Me=>Me==null?void 0:Me.required))==null?void 0:H.map(Me=>Me==null?void 0:Me.prop),z=[];if(d==null||d.forEach(Me=>{f==null||f.forEach(Ue=>{const la=Me[Ue];(la==null||la==="")&&(z.includes(Ue)||z.push(Ue))})}),z.length>0)return rl.ElMessage.warning(`请填写必填项:${z.join("、")}`);const O=new Map,$=new Map;(ve=Ce.value)==null||ve.forEach(Me=>{const Ue=Qr(Me);O.set(Ue,Me)}),d==null||d.forEach(Me=>{const Ue=Qr(Me);$.set(Ue,Me)});const N=d==null?void 0:d.filter(Me=>O.has(Qr(Me))),Z=(we=Ce.value)==null?void 0:we.filter(Me=>$.has(Qr(Me)));return(N==null?void 0:N.length)>0&&(o.columns=(Ve=De.value)==null?void 0:Ve.filter(Me=>(Me==null?void 0:Me.label)!=="操作"),o.existRows=Z,o.tableData=N,o.show=!0),d==null?void 0:d.filter(Me=>{const Ue=Qr(Me);return!O.has(Ue)})},Sn=a.ref(""),Yn=a.ref(null),gn=async()=>{var d,f,z,O,$,N;try{const Z=await I.quoteApi({related:[{menus:ga.value,groups:u==null?void 0:u.compName}],platId:parseInt((d=Vl.value)==null?void 0:d.plat_id)});if(((f=Z==null?void 0:Z.data)==null?void 0:f.code)===200){Yn.value=(z=Z==null?void 0:Z.data)==null?void 0:z.result;const ae=(O=De.value)==null?void 0:O.map(we=>(we==null?void 0:we.prop)||(we==null?void 0:we.label)),H=Dn(ae,($=Z==null?void 0:Z.data)==null?void 0:$.result),ve=H==null?void 0:H.flatMap(we=>we==null?void 0:we.quote);(ve==null?void 0:ve.length)>0&&(Sn.value=(N=ve==null?void 0:ve.map(we=>we==null?void 0:we.menus))==null?void 0:N.join("、"))}}catch(Z){throw new Error(Z)}};function Dn(d,f){var z;return(z=f.filter(O=>O.struct&&Array.isArray(O.struct)?O.struct.some($=>$.words&&Array.isArray($.words)?$.words.some(N=>d.includes(N)):!1):!1))==null?void 0:z.map(O=>{const $={...O};return $.struct&&Array.isArray($.struct)&&($.struct=$.struct.filter(N=>N.words&&Array.isArray(N.words)?N.words.some(Z=>d.includes(Z)):!1)),$})}const Ln=async(d,f)=>{var z,O,$,N,Z,ae,H,ve,we,Ve;try{Yn.value||await gn();const Me=f==null?void 0:f.map(Ra=>{const se=Object.keys(Ra),Ea={};return se.forEach((ta,Ca)=>{Ea[d[Ca]]=Ra[ta]}),Ea}),Ue=Kn(Me);if(!Ue||(Ue==null?void 0:Ue.length)===0)return;const la=[];let Va=(Ce.value||[]).slice();(Ue||[]).forEach(Ra=>{const se={...Ra};try{se.sort=Nn(0,Va)}catch{}la.push(se),Va.unshift(se)});let Ba=await I.quoteApi({platId:parseInt((z=Vl==null?void 0:Vl.value)==null?void 0:z.plat_id),type:"fatherSyncs",related:[{menus:ga.value,groups:""},{menus:ga.value,groups:u==null?void 0:u.compName}]});Ba=(O=Ba==null?void 0:Ba.data)==null?void 0:O.result;let ea=Ba==null?void 0:Ba.map(Ra=>({tableName:"content_"+(Ra==null?void 0:Ra.id),tableContents:la==null?void 0:la.map((se,Ea)=>({id:Ea,...se}))})),Ga=[{tableName:($=u==null?void 0:u.related)==null?void 0:$.find(Ra=>Ra==null?void 0:Ra.includes("content")),tableContents:la==null?void 0:la.map((Ra,se)=>({id:se,...Ra}))}];Ga=[...Ga,...ea];const ra=await I.pageBatchAddApi({platId:parseInt((N=Vl.value)==null?void 0:N.plat_id),changeContents:Ga});if(((Z=ra==null?void 0:ra.data)==null?void 0:Z.code)===200){const Ra={buttonName:"新增",columns:De.value,fixContent:la==null?void 0:la.map((Ea,ta)=>({id:ta,...Ea})),relatedContents:u==null?void 0:u.related};await mi(Ra),((ae=o==null?void 0:o.existRows)==null?void 0:ae.length)>0?rl.ElMessage.success("部分数据导入成功"):rl.ElMessage.success("数据导入成功");let se=[];Ga==null||Ga.forEach(Ea=>{var ta;(ta=Ea==null?void 0:Ea.tableContents)==null||ta.forEach(Ca=>{se.push({id:"1",request_method:"Post",request_url:"/platform/page/add",request_param:JSON.stringify(Ca),request_result:"{}",is_delete:!1,request_table:Ea==null?void 0:Ea.tableName,request_type:"export"})})}),await I.pageBatchAddApi({platId:parseInt((H=Vl==null?void 0:Vl.value)==null?void 0:H.plat_id),changeContents:[{tableName:"log",tableContents:se}]})}else{let Ra=[];Ga==null||Ga.forEach(se=>{var Ea;(Ea=se==null?void 0:se.tableContents)==null||Ea.forEach(ta=>{Ra.push({id:"1",request_method:"Post",request_url:"/platform/page/add",request_param:JSON.stringify(ta),request_result:"{}",is_delete:!1,request_table:se==null?void 0:se.tableName,request_type:"error"})})}),await I.pageBatchAddApi({platId:parseInt((ve=Vl==null?void 0:Vl.value)==null?void 0:ve.plat_id),changeContents:[{tableName:"log",tableContents:Ra}]}),rl.ElMessage.error("数据导入响应失败")}}catch(Me){throw rl.ElMessage.error("数据导入处理失败"),await I.pageBatchAddApi({platId:parseInt((we=Vl==null?void 0:Vl.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(Me),is_delete:!1,request_table:(Ve=u==null?void 0:u.related)==null?void 0:Ve.find(Ue=>Ue==null?void 0:Ue.includes("content")),request_type:"error"}]}]}),new Error(Me)}},Wr=async d=>{var N,Z,ae,H,ve,we,Ve;let f=xe.value;f!=null&&f.find(Me=>(d==null?void 0:d.key)===(Me==null?void 0:Me.key))&&(f=f==null?void 0:f.filter(Me=>(d==null?void 0:d.key)!==(Me==null?void 0:Me.key))),f.push({key:d==null?void 0:d.key,value:[(Z=d==null?void 0:d.value)==null?void 0:Z[((N=d==null?void 0:d.value)==null?void 0:N.length)-1]]});let z=Q.value;z=z==null?void 0:z.map(Me=>{var Ue,la;return(Me==null?void 0:Me.type)==="Select"&&(d==null?void 0:d.key)===(Me==null?void 0:Me.prop)&&Array.isArray(Me.value)&&(Ue=Me.value)!=null&&Ue.every(Va=>typeof Va=="string")&&(Me.selectValue=(la=f==null?void 0:f.find(Va=>(Va==null?void 0:Va.key)===(Me==null?void 0:Me.prop)))==null?void 0:la.value),Me});let O=(H=(ae=z==null?void 0:z.find(Me=>(Me==null?void 0:Me.prop)===(d==null?void 0:d.key)))==null?void 0:ae.optionUrl)==null?void 0:H.menuId,$=z==null?void 0:z.find(Me=>(Me==null?void 0:Me.prop)===(d==null?void 0:d.key));if(O){let Me=await pi($==null?void 0:$.optionUrl,O),Ue,la=W.value,Va=(Ve=(we=(ve=Q.value)==null?void 0:ve.find(Ba=>{var ea;return(ea=$==null?void 0:$.optionUrl)==null?void 0:ea.menuId}))==null?void 0:we.selectValue)==null?void 0:Ve[0];if(Me==null||Me.forEach(Ba=>{var ea,Ga,ra,Ra,se,Ea,ta,Ca,oe,E;if(O){let Re=(Ga=(ea=Q.value)==null?void 0:ea.find(ma=>{var sa,fa;return((sa=$==null?void 0:$.optionUrl)==null?void 0:sa.menuId)===((fa=ma==null?void 0:ma.optionUrl)==null?void 0:fa.menuId)}))==null?void 0:Ga.prop,he=(Ra=(ra=z==null?void 0:z.find(ma=>(ma==null?void 0:ma.prop)===Re))==null?void 0:ra.selectValue)==null?void 0:Ra[0];Re!=null&&Re.includes("·")&&(Re=(se=Re==null?void 0:Re.split("·"))==null?void 0:se[0],he=(oe=(Ca=(ta=d==null?void 0:d.value)==null?void 0:ta[((Ea=d==null?void 0:d.value)==null?void 0:Ea.length)-1])==null?void 0:Ca.split(" "))==null?void 0:oe[0]),la!=null&&la.find(ma=>(ma==null?void 0:ma.value)===Va)?Ue=(E=la==null?void 0:la.find(ma=>(ma==null?void 0:ma.value)===Va))==null?void 0:E.objectValue:Ba[Re]===he&&(Ue=Ba)}}),Ue){let Ba=z;Ba=Ba==null?void 0:Ba.map(ea=>{var Ga,ra,Ra,se,Ea,ta;return O&&(Ue!=null&&Ue[ea==null?void 0:ea.prop])&&Le.value==="新增"&&(ea==null?void 0:ea.prop)!==($==null?void 0:$.prop)?ea.value=(Ue==null?void 0:Ue[ea==null?void 0:ea.prop])||(Ue==null?void 0:Ue[(se=(Ra=(ra=(Ga=ea==null?void 0:ea.optionUrl)==null?void 0:Ga.groupSelect)==null?void 0:ra[1])==null?void 0:Ra.replaceAll("[",""))==null?void 0:se.replaceAll("]","")]):ea.value=(ta=(Ea=Q.value)==null?void 0:Ea.find(Ca=>(Ca==null?void 0:Ca.prop)===(ea==null?void 0:ea.prop)))==null?void 0:ta.value,ea}),Q.value=Ba}}xe.value=f},Bn=async(d,f)=>{var z,O,$,N,Z;if((z=d==null?void 0:d.toString())!=null&&z.includes(".txt")||(O=d==null?void 0:d.toString())!=null&&O.includes(".cpt")||($=d==null?void 0:d.toString())!=null&&$.includes(".cyd")){const ae=await rl.axios.get(d,{responseType:"blob",headers:{"Content-Type":"application/json"}}),H=new Blob([ae.data],{type:"application/octet-stream;charset=UTF-8"});let ve=URL.createObjectURL(H);ee.value=[{name:(Z=d==null?void 0:d.split("/"))==null?void 0:Z[((N=d==null?void 0:d.split("/"))==null?void 0:N.length)-1],blobUrl:ve}],Ha.value=!0}else Array.isArray(f)&&(f==null?void 0:f.length)>0&&ze("routeUrl",{isEdit:!1,routerUrl:f})};a.onBeforeUnmount(()=>{Mr.value=!1;let d=vn.value;vn.value=d+1});const bn=a.reactive({prop:"",order:null}),Rr=a.computed(()=>{const d=(Ce.value??[]).slice(),f=bn.prop||X.prop,z=bn.order||X.order;if(!f||!z)return d;const O=z==="ascending",$=Z=>{if(f)return Z&&Object.prototype.hasOwnProperty.call(Z,f)?Z[f]:f.includes(".")?f.split(".").reduce((ae,H)=>ae==null?ae:ae[H],Z):Z==null?void 0:Z[f]},N=Z=>{if(Z==null)return{ok:!1,value:NaN};if(typeof Z=="number")return{ok:Number.isFinite(Z),value:Z};const ae=String(Z).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 ve=Number(H);return{ok:Number.isFinite(ve),value:ve}};return d.sort((Z,ae)=>{const H=$(Z),ve=$(ae);if(H==null&&ve==null)return 0;if(H==null)return O?-1:1;if(ve==null)return O?1:-1;const we=N(H),Ve=N(ve);if(we.ok&&Ve.ok)return O?we.value-Ve.value:Ve.value-we.value;const Me=se=>{if(se==null)return{ok:!1,value:NaN};const Ea=String(se).trim();if(Ea==="")return{ok:!1,value:NaN};const ta=Ea.match(/^(-)?(\d+):(\d{1,2}):(\d{1,2})$/);if(!ta)return{ok:!1,value:NaN};const Ca=ta[1]?-1:1,oe=Number(ta[2]),E=Number(ta[3]),Re=Number(ta[4]);return[oe,E,Re].some(he=>Number.isNaN(he))?{ok:!1,value:NaN}:E>=60||Re>=60?{ok:!1,value:NaN}:{ok:!0,value:Ca*(oe*3600+E*60+Re)}},Ue=Me(H),la=Me(ve);if(Ue.ok&&la.ok)return O?Ue.value-la.value:la.value-Ue.value;const Va=new Date(H).getTime(),Ba=new Date(ve).getTime(),ea=!Number.isNaN(Va),Ga=!Number.isNaN(Ba);if(ea&&Ga)return O?Va-Ba:Ba-Va;const ra=String(H),Ra=String(ve);return O?ra.localeCompare(Ra):Ra.localeCompare(ra)})}),Vn=a.computed(()=>{var z;const d=(ke.currentPage-1)*ke.pageSize,f=d+ke.pageSize;return ze("getSliceContLength",ke),(z=Rr.value)==null?void 0:z.slice(d,f)}),fn=d=>{ke.currentPage=d,ze("getSliceContLength",ke)},St=d=>{var O;ke.pageSize=d;const f=((O=Ce.value)==null?void 0:O.length)??0,z=d>0?Math.ceil(f/d):1;ke.currentPage>z&&(ke.currentPage=z||1,rl.ElMessage.warning("当前页超出范围,已自动跳转到最后一页")),ze("getSliceContLength",ke)},Ao=({prop:d,order:f})=>{bn.prop=d,bn.order=f,ke.currentPage=1};function zo(d){const f=[];function z(O,$=""){O.forEach(N=>{N.children&&N.children.length>0?z(N.children,N.prop):f.push(N.prop)})}return z(d),f}const kn=(d,f)=>{var ae,H,ve,we;let z=(H=(ae=De.value)==null?void 0:ae.map(Ve=>Ve==null?void 0:Ve.prop))==null?void 0:H.filter(Ve=>Ve!=="operate");((ve=De.value)==null?void 0:ve.some(Ve=>{var Me;return((Me=Ve==null?void 0:Ve.children)==null?void 0:Me.length)>0}))&&(z=zo((we=De.value)==null?void 0:we.filter(Ve=>(Ve==null?void 0:Ve.prop)!=="operate")));let $;if($=(d==null?void 0:d.length)===(z==null?void 0:z.length)?d:d.slice(0,z==null?void 0:z.length),!($==null?void 0:$.every(Ve=>z==null?void 0:z.find(Me=>Ve===Me))))return rl.ElMessage.error("导入的数据表头不匹配");Ln($,f)},Mo=(d,f)=>{var $;const z=d==null?void 0:d.filter(N=>N!=="序号"),O=f==null?void 0:f.map(N=>{const Z=Object.entries(N);return Z.shift(),Object.fromEntries(Z)});Ge.setRefreshCurStructure(!1),(($=De.value)==null?void 0:$.length)===0||kn(z,O)},Oo=(d,f,z,O)=>{const $=[],N=[],Z=ve=>Object.keys(ve).length;for(const ve in d)if(d[ve]!==void 0){const we=d[ve],Ve=[];for(const[Me,Ue]of Object.entries(we))Ve.push(Ue),N.length<Z(we)&&N.push(Me);$.push(Ve)}$.unshift(N);const ae=na.utils.aoa_to_sheet($),H=na.utils.book_new();na.utils.book_append_sheet(H,ae,O),na.writeFileSync(H,`${f}.xlsx`),ar.value=[]},Ft=async(d,f,z,O=!1,$)=>{var N,Z,ae,H,ve,we,Ve,Me;try{Ge.setRefreshCurStructure(!1);const Ue=await yr.getInsofDataApi({id:u==null?void 0:u.index});if(((N=Ue==null?void 0:Ue.data)==null?void 0:N.code)===200){let la=(ve=(H=(ae=(Z=Ue==null?void 0:Ue.data)==null?void 0:Z.result)==null?void 0:ae[0])==null?void 0:H.value)==null?void 0:ve.pageData;O?la={...la,compData:(Ve=la==null?void 0:la.compData)==null?void 0:Ve.map(Ba=>{var ea;return(Ba==null?void 0:Ba.key)==="header"?{...Ba,contents:(ea=Ba==null?void 0:Ba.contents)==null?void 0:ea.map(Ga=>({...Ga,[d]:z}))}:Ba})}:la={...la,compData:(we=la==null?void 0:la.compData)==null?void 0:we.map(Ba=>{var ea,Ga;return(Ba==null?void 0:Ba.key)==="header"?{...Ba,contents:(ea=Ba==null?void 0:Ba.contents)==null?void 0:ea.map(ra=>{if(Array.isArray(ra))ra=ra==null?void 0:ra.map(Ra=>(Ra==null?void 0:Ra.prop)===(f==null?void 0:f.prop)?{...Ra,[d]:z}:Ra);else if((ra==null?void 0:ra.prop)===(f==null?void 0:f.prop))return{...ra,[d]:z};return ra})}:(Ba==null?void 0:Ba.key)==="tableToForm"&&$?{...Ba,contents:(Ga=Ba==null?void 0:Ba.contents)==null?void 0:Ga.map(ra=>(ra==null?void 0:ra.prop)===(f==null?void 0:f.prop)?{...ra,[$]:z}:ra)}:Ba})};const Va=await yr.updateInsofDataApi({id:u==null?void 0:u.index,value:{pageData:la}});((Me=Va==null?void 0:Va.data)==null?void 0:Me.code)===200?(rl.ElMessage.success("编辑成功"),Ge.setRefreshCurStructure(!0)):rl.ElMessage.error("编辑响应失败")}}catch(Ue){rl.ElMessage.error(Ue)}},jt=async(d,f)=>{await Ft("label",f,d)},Ht=async(d,f)=>{await Ft("columnType",f,d,!1,"type")},Or=async({newRow:d,targetIndex:f})=>{var $;if(!Ie(u.config,{type:aa.TABLE}))return;const O=(ke.currentPage-1)*ke.pageSize+(f??0);d._isTemp=!0;try{(d.sort===void 0||d.sort===null||String(d.sort).trim()==="")&&(d.sort=Nn(O,Ce.value||[]))}catch{}Ce.value.splice(O,0,d),await a.nextTick(),b.value.has(d.id)||b.value.set(d.id,I.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),zl.value=!0},Io=(d,f,z,O=[])=>(!Array.isArray(f)||f.length===0||f.forEach($=>{const N=$==null?void 0:$.prop;if(!N)return;let Z=d==null?void 0:d[N];if(Z==null||String(Z).trim()==="")return;Z=String(Z);const ae=new Set([...(Array.isArray(z)?z:[]).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(O)?O:[]).map(we=>we==null?void 0:we[N]).filter(we=>we!=null).map(we=>String(we))]);if(!ae.has(Z))return;let H=1,ve="";for(;ve=`${Z}(${H})`,!!ae.has(ve);)H++;d[N]=ve}),d),Dt=async()=>{var $,N,Z,ae,H,ve,we,Ve;const d=Array.from(c.value||[]);if(d.length===0)return;const f=(N=na.getColumnChild(($=I.cloneDeep(De.value))==null?void 0:$.filter(Me=>(Me==null?void 0:Me.label)!=="操作")))==null?void 0:N.filter(Me=>(Me==null?void 0:Me.required)===!0);if((f==null?void 0:f.length)>0)for(let Me=0;Me<d.length;Me++){const Ue=d[Me],la=(Z=Ce.value)==null?void 0:Z.find(Va=>(Va==null?void 0:Va.id)===Ue);if(la)for(let Va=0;Va<f.length;Va++){const Ba=f[Va],ea=Ba==null?void 0:Ba.prop,Ga=(Ba==null?void 0:Ba.label)??ea,ra=la==null?void 0:la[ea];if(ra===""||ra===null||ra===void 0||Array.isArray(ra)&&ra.length===0){rl.ElMessage.error(`${Ga}不能为空`);return}}}const z=[],O=[];if(d.forEach(Me=>{var Ga;const Ue=(Ga=Ce.value)==null?void 0:Ga.find(ra=>(ra==null?void 0:ra.id)===Me);if(!Ue)return;if(Ue!=null&&Ue._isTemp){const Ra=(na.getAllLeafNodes(De.value)||[]).filter(E=>(E==null?void 0:E.mainKey)===!0||(E==null?void 0:E.isMainKey)===!0),se=Ce.value.findIndex(E=>(E==null?void 0:E.id)===Me),Ea=se>=0?se+1:Ce.value.length+1;Io(Ue,Ra,Ce.value,z);const ta={id:Ea.toString()};(Ue==null?void 0:Ue.sort)!==void 0&&(Ue==null?void 0:Ue.sort)!==null&&String(Ue.sort).trim()!==""?ta.sort=String(Ue.sort):ta.sort=Nn(se>=0?se:Ce.value.length-1,Ce.value||[]),(na.getAllLeafNodes(De.value)||[]).filter(E=>(E==null?void 0:E.type)!=="operate"&&(E==null?void 0:E.label)!=="操作"&&(E==null?void 0:E.prop)!=="operate").forEach(E=>{const Re=E==null?void 0:E.prop;if(Re){const he=Ue[Re];he!==void 0?ta[Re]=he??"":ta[Re]=""}}),z.push(ta);return}const Va=(na.getAllLeafNodes(De.value)||[]).filter(ra=>(ra==null?void 0:ra.type)!=="operate"&&(ra==null?void 0:ra.label)!=="操作"&&(ra==null?void 0:ra.prop)!=="operate"),Ba=new Set(Va.map(ra=>ra==null?void 0:ra.prop).filter(Boolean)),ea={};for(const ra of Ba)Object.prototype.hasOwnProperty.call(Ue,ra)&&(ea[ra]=Ue[ra]);O.push({id:Ue.id,value:{tableData:ea}})}),Ge.setTableLoading(u==null?void 0:u.index),O.length>0){const Me=O.map(la=>{const Va={id:la.id,...la.value.tableData};return delete Va._isOCRRow,delete Va._ocrTableId,delete Va._isTemp,delete Va.tableEditType,delete Va.index,Va}),Ue=[{tableName:(ae=u==null?void 0:u.related)==null?void 0:ae.find(la=>la==null?void 0:la.includes("content")),tableContents:Me}];try{await I.pageBatchUpdateApi({platId:parseInt((H=Vl.value)==null?void 0:H.plat_id),changeContents:Ue})}catch(la){rl.ElMessage.error(((we=(ve=la==null?void 0:la.response)==null?void 0:ve.data)==null?void 0:we.message)||(la==null?void 0:la.message)||"保存失败"),Ge.setTableLoading(!1);return}}if(z.length>0){const Me={fixContent:z,buttonName:"新增",relatedContents:u==null?void 0:u.related,name:u==null?void 0:u.compName,columns:De.value};ze("change",Me)}rl.ElMessage.success("保存成功"),c.value.clear(),b.value.clear(),Ce.value=(Ve=Ce.value)==null?void 0:Ve.map(Me=>({...Me,tableEditType:"text"})),zl.value=!1,Ge.setRefreshCurStructure(!0)},Lo=()=>{var f;const d=Array.from(c.value||[]);if(d.length===0){zl.value=!1;return}d.forEach(z=>{var N,Z;const O=b.value.get(z),$=(N=Ce.value)==null?void 0:N.find(ae=>(ae==null?void 0:ae.id)===z);if($!=null&&$._isTemp){Ce.value=Ce.value.filter(ae=>(ae==null?void 0:ae.id)!==$.id);return}if(O){const ae=(Z=Ce.value)==null?void 0:Z.findIndex(H=>(H==null?void 0:H.id)===z);ae!==-1&&(Ce.value[ae]={...Ce.value[ae],...O})}}),c.value.clear(),b.value.clear(),Ce.value=(f=Ce.value)==null?void 0:f.map(z=>({...z,tableEditType:"text"})),zl.value=!1},Bt=a.ref(!1),Ut=async d=>{var $,N,Z,ae;if(!zl.value||d!=null&&d.isComposing||(d==null?void 0:d.key)!=="Enter")return;const f=d==null?void 0:d.target;if(((N=($=f==null?void 0:f.tagName)==null?void 0:$.toLowerCase)==null?void 0:N.call($))==="textarea")return;const O=document.getElementById("excel-table");O&&!O.contains(f)||((Z=f==null?void 0:f.blur)==null||Z.call(f),(ae=d.preventDefault)==null||ae.call(d),await a.nextTick(),await qt())},qt=async()=>{if(P.value){zl.value=!1;return}if(!Bt.value){Bt.value=!0;try{Array.from(c.value||[]).length>0?await Dt():zl.value=!1}finally{Promise.resolve().then(()=>{Bt.value=!1})}}},Vo=d=>{ar.value=d},$o=(d,f)=>{Rl.value===f?zr.value=!1:zr.value=!0,Rl.value=f==null?void 0:f.changeProp},Wt=d=>{if(!d)return;const{item:f,value:z}=d,O=Q.value.find($=>$.prop==f.prop);O&&O.contents.push({label:z,value:z})},xn=a.computed(()=>{var z,O,$;const d=(z=De.value)==null?void 0:z.some(N=>N==null?void 0:N.filterable);return document.documentElement.style.setProperty("--ssTable-header-filter-display",d?"inline-block":"none"),($=(O=De.value)==null?void 0:O.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}))}),_n=async(d,f,z)=>{const O=I.cloneDeep(De.value);await a.nextTick();const $=O==null?void 0:O.map(Z=>(z==null?void 0:z.label)===(Z==null?void 0:Z.label)?{...Z,[f]:d}:Z),N=$n($);await is(u.index,N),De.value=$,ne.value=N},$n=d=>{var $;const f=d||[];return(($=na.getAllLeafNodes(f)||[])==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:Z}=N;return Nf(Z,N)})},Ro=async d=>{let f=await Af(u.index);f||(f=$n(d)),ne.value=f},Kt=async(d,f)=>{const z=I.cloneDeep(De.value),O=Z=>Array.isArray(Z)?Z.map(ae=>{const H=Array.isArray(ae==null?void 0:ae.children)&&ae.children.length>0,ve={...ae};return(ve==null?void 0:ve.prop)==="operate"||(ve==null?void 0:ve.label)==="操作"||(ve==null?void 0:ve.type)==="operate"?(ve.sortable=!1,ve.filterable=!1,ve.operable=!1):ve.sortable=H?!1:!!d,H&&(ve.children=O(ve.children)),ve}):Z,$=O(z),N=$n($);await is(u.index,N),De.value=$,ne.value=N,await a.nextTick(),vn.value=vn.value+1},Yt=()=>{da.value=!1},Gt=d=>{ze("clickTrigger",d)},Rn=async d=>{var N,Z,ae,H,ve,we,Ve,Me,Ue,la,Va,Ba,ea,Ga,ra;const f=d==null?void 0:d.row,z=d==null?void 0:d.rowData,O=d==null?void 0:d.suffix;if((N=f==null?void 0:f.toString())!=null&&N.includes(".urdf")||d!=null&&d.isUrdf||O!=null&&O.includes(".urdf")){if(f.includes(",")){rl.ElMessage.error("当前版本仅允许单个urdf预览!");return}if(D(f)){const se={files:[Ne(f)],data:{}};ue(se);return}Ye.value=[{url:f,extension:ge(f)}],Da.value=!0,te.value={data:I.cloneDeep(z)},Ke.value=!0;return}let $=[];if((Z=f==null?void 0:f.toString())!=null&&Z.includes(".stl")||(ae=f==null?void 0:f.toString())!=null&&ae.includes(".STL")||(H=f==null?void 0:f.toString())!=null&&H.includes(".obj")||(ve=f==null?void 0:f.toString())!=null&&ve.includes(".mtl")){const Ra=(we=f==null?void 0:f.toString())==null?void 0:we.split(","),se=ia(Ra),Ea=se==null?void 0:se[0];if(D(Ea==null?void 0:Ea.extension)){ue({files:se,data:{}});return}Ye.value=se,Da.value=!1,Ke.value=!0;return}if((Ve=f==null?void 0:f.toString())!=null&&Ve.includes(".stl")||(Me=f==null?void 0:f.toString())!=null&&Me.includes(".STL")||(Ue=f==null?void 0:f.toString())!=null&&Ue.includes(".obj")||(la=f==null?void 0:f.toString())!=null&&la.includes(".mtl")||O!=null&&O.includes(".stl")||O!=null&&O.includes(".STL")||O!=null&&O.includes(".obj")||O!=null&&O.includes(".mtl")){let Ra,se=[],Ea={};if(Array.isArray(f)?Ra=f:Ra=f==null?void 0:f.split(","),Ra==null||Ra.forEach(ta=>{ta.includes(".mtl")?se.push(ta):Ea.blob=Ea.blob?Ea.blob+","+ta:ta}),(se==null?void 0:se.length)>0&&(Ea.mtlBlobs=se),O&&(Ea.suffix=O),(Ba=(Va=Object.values(Ea))==null?void 0:Va[0])!=null&&Ba.includes("http:"))$.push(Ea);else{const ta=new Blob([Ea.blob],{type:"application/octet-stream;charset=UTF-8"});let Ca=URL.createObjectURL(ta),oe="";(ea=f==null?void 0:f.split("/"))==null||ea.forEach((E,Re)=>{var he;Re===((he=f==null?void 0:f.split("/"))==null?void 0:he.length)-1&&(oe=E)}),(Ga=Ea.blob)!=null&&Ga.includes(".stl")&&(oe=(oe==null?void 0:oe.replaceAll(">",""))+".urdf"),ee.value=[{name:oe,blobUrl:Ca}],Ha.value=!0}}else{const Ra=await rl.axios.get(f,{responseType:"blob",headers:{"Content-Type":"application/json"}}),se=new Blob([Ra.data],{type:"application/octet-stream;charset=UTF-8"});let Ea=URL.createObjectURL(se),ta="";if((ra=f==null?void 0:f.split("/"))==null||ra.forEach((Ca,oe)=>{var E;oe===((E=f==null?void 0:f.split("/"))==null?void 0:E.length)-1&&(ta=Ca)}),D(ta)){const Ca=le(ta),oe=Ne(f);ue({files:[oe],data:{trackFileType:Ca}});return}ee.value=[{name:ta,blobUrl:Ea}],Ha.value=!0}($==null?void 0:$.length)>0&&t.setBlobUrls($)},Gn=d=>{var O,$,N,Z;if(d!=null&&d.downloadUrl)return d==null?void 0:d.name;const f=(Z=(O=d==null?void 0:d.url)==null?void 0:O.split("."))==null?void 0:Z[((N=($=d==null?void 0:d.url)==null?void 0:$.split("."))==null?void 0:N.length)-1];return(d==null?void 0:d.name)+"."+f},Jt=d=>{if(!d)return"未知文件";try{const O=Gn(d);if(typeof O=="string"&&O.includes("."))return O}catch{}const f=(d==null?void 0:d.fileName)||(d==null?void 0:d.name)||"未知文件",z=(d==null?void 0:d.suffix)||"";return f.includes(".")?f:`${f}${z}`},Xt=d=>{if(d==null||typeof d=="number"||typeof d!="string")return d;const f=d.match(/^(\d+)\_(\d+)$/);if(!f)return d;const z=Number(f[1]),O=Number(f[2]);return!Number.isFinite(z)||!Number.isFinite(O)?d:String(z*1e3+O)},Jn=d=>{if(d==null)return null;const f=String(d).trim();if(!f)return null;const z=Number(f);return Number.isFinite(z)?z:null},Po=d=>{if(d==null)return null;const f=String(d).trim();if(!f)return null;if(/^\d+$/.test(f)){const $=Number(f);return Number.isFinite($)?f.length<=10?$*1e3:$:null}const z=f.includes("T")?f:f.replace(" ","T"),O=Date.parse(z);return Number.isFinite(O)?O:null},Zt=(d,f=[])=>{const z=Array.isArray(d)?d.slice():[];if(z.length<=1)return z;const O=new Map((f||[]).map((Z,ae)=>[String(Z),ae])),$=z.some(Z=>Jn(Z==null?void 0:Z.sort)!==null),N=z.map((Z,ae)=>({r:Z,idx:ae,id:String((Z==null?void 0:Z.id)??""),sortVal:Jn(Z==null?void 0:Z.sort),createTimeMs:Po(Z==null?void 0:Z.create_time),prevIdx:O.has(String(Z==null?void 0:Z.id))?O.get(String(Z==null?void 0:Z.id)):Number.POSITIVE_INFINITY}));return N.sort((Z,ae)=>{if($){const we=Z.sortVal,Ve=ae.sortVal;if(we===null&&Ve!==null)return 1;if(we!==null&&Ve===null)return-1;if(we!==null&&Ve!==null&&we!==Ve)return we-Ve}const H=Z.createTimeMs,ve=ae.createTimeMs;return H!==null&&ve!==null&&H!==ve?ve-H:H!==null&&ve===null?-1:H===null&&ve!==null?1:Z.prevIdx!==ae.prevIdx?Z.prevIdx-ae.prevIdx:Z.idx-ae.idx}),N.map(Z=>Z.r)},Nn=(d,f=[])=>{const z=f==null?void 0:f[d-1],O=f==null?void 0:f[d],$=Jn(z==null?void 0:z.sort),N=Jn(O==null?void 0:O.sort);let Z=null;$!==null&&N!==null&&N>$?Z=($+N)/2:$!==null?Z=$+1:N!==null?Z=Math.max(N-1,0):Z=(d??0)+1;const ae=Number(Z.toFixed(6));return String(Number.isFinite(ae)?ae:Z)},Fo=async d=>{let f=null,z=null;if(d!=null&&d.id){const $=I.ElLoading.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"});try{const N=await I.platformDownloadFile(d);f=URL.createObjectURL(N.data),z=Jt(d)}finally{$.close()}}else if(d!=null&&d.downloadUrl){const $=await it(),N=I.ElLoading.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"}),Z=await rl.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([Z.data],{type:"application/octet-stream;charset=UTF-8"});f=URL.createObjectURL(ae),z=d==null?void 0:d.name}else{const $=await I.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")?(f=URL.createObjectURL($.data),z=Gn(d)):f=d==null?void 0:d.url}if(D(f)){const $={row:`${f}`,suffix:ge(z)};Rn($);return}const O={name:z,blobUrl:f};ee.value=[O],Ha.value=!0},ot=async d=>{let f=null,z=null;if(d!=null&&d.id){const N=await I.platformDownloadFile(d);f=URL.createObjectURL(N.data),z=Jt(d)}else if(d!=null&&d.downloadUrl){const N=await it(),Z=await rl.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([Z.data],{type:"application/octet-stream;charset=UTF-8"});f=URL.createObjectURL(ae),z=d==null?void 0:d.name}else{const N=await I.platformDownloadFile({url:d==null?void 0:d.url});f=URL.createObjectURL(N.data),z=Gn(d)}const O={name:z,blobUrl:f},$=document.createElement("a");$.href=O.blobUrl,$.download=O.name,$.style.display="none",document.body.appendChild($),$.click(),setTimeout(()=>{document.body.removeChild($)},100)},jo=(d,f)=>{var O;if(Object.values(f).length===0)return;let z=d;return Object.values(f).find($=>{var N,Z,ae;return((N=$==null?void 0:$.toString())==null?void 0:N.includes(".txt"))||((Z=$==null?void 0:$.toString())==null?void 0:Z.includes(".cpt"))||((ae=$==null?void 0:$.toString())==null?void 0:ae.includes(".obj"))})?z=[...d,Se.value]:(O=u==null?void 0:u.config)!=null&&O.allowMove&&(z=[...d,{label:"迁移"}]),z},Nt=()=>{U.value=!0},Ho=a.ref([]),Uo=async(d,f,z=!1)=>{var Z,ae,H,ve;if(!d)return;if(z){Ce.value=[...me.value.values()].filter(we=>Object.values(we).some(Ve=>typeof Ve=="string"?Ve==null?void 0:Ve.toLowerCase().includes(f==null?void 0:f.toLowerCase()):!1));return}let O={};for(let we in d)(d==null?void 0:d[we])!==""&&(O[we]=d==null?void 0:d[we]);if(JSON.stringify(O)==="{}"){Ce.value=Array.from(((Z=me.value)==null?void 0:Z.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 I.getFillFind({platId:parseInt((H=Vl==null?void 0:Vl.value)==null?void 0:H.plat_id),tableName:$,params:O});N=(ve=N==null?void 0:N.data)==null?void 0:ve.result,Ce.value=N,Ge.setTableLoading(!1)},Qt=async d=>{var z,O;if(!Ie(u.config,{type:aa.TABLE})||!d)return;((z=Array.from(c.value))==null?void 0:z.length)>0&&await Dt();const f=d==null?void 0:d.id;f!=null&&(c.value.clear(),b.value.clear(),b.value.has(f)||b.value.set(f,I.cloneDeep(d)),Ce.value=(O=Ce.value)==null?void 0:O.map($=>({...$,tableEditType:($==null?void 0:$.id)===f?"edit":"text"})),c.value.add(f),zl.value=!0)},Pn=async(d,f,z,O)=>{O!=null&&O.isExistChild&&ze("clickMainKey",d,z,De.value)},wn=()=>{Ha.value=!1},eo=d=>{ze("rowClick",d)};a.watch(()=>u.changedContent,()=>{var z,O;if(!u.changedContent)return;let d=(z=Ce.value)==null?void 0:z.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 f=(O=u.itemData)==null?void 0:O.map($=>(($==null?void 0:$.key)==="tableContents"&&($.contents=d),$));Ce.value=d,ze("contentChange",{contents:f,index:u.index}),ze("change",{content:d,index:u==null?void 0:u.index,buttonName:"",id:u==null?void 0:u.index})},{deep:!0,immediate:!0});const Tt=()=>{},qo=async()=>{const d=ga.value,f=sessionStorage.getItem("systemKey"),z=await na.getItemData(d,f,""),O=(z==null?void 0:z.find(ae=>(ae==null?void 0:ae.name)==="方法明细"))||(z==null?void 0:z[0]),$=(O==null?void 0:O.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},it=async()=>{const f=rl.Local.get("access-token");return f?`Bearer ${f}`:""},Wo=async(d,{token:f,inputData:z}={})=>await rl.axios.post(d,z,{headers:{Authorization:f}}).catch($=>(Qe.setImportLoading(!1),Promise.reject($))),Ko=d=>{var O;let f={};const z=[];return f.form={},(O=I.cloneDeep(d))==null||O.forEach(($,N)=>{var Z,ae,H,ve,we,Ve,Me,Ue,la,Va,Ba,ea,Ga,ra;if(($==null?void 0:$.comp)==="Table"){(ae=(Z=$==null?void 0:$.compData)==null?void 0:Z.find(ta=>(ta==null?void 0:ta.key)==="header"))==null||ae.contents;let Ra=(we=(ve=(H=$==null?void 0:$.compData)==null?void 0:H.find(ta=>(ta==null?void 0:ta.key)==="tableContents"))==null?void 0:ve.contents)==null?void 0:we.map(ta=>ta.slice(1));(Va=(la=(Ue=(Me=(Ve=$==null?void 0:$.compData)==null?void 0:Ve.find(ta=>(ta==null?void 0:ta.key)==="header"))==null?void 0:Me.contents)==null?void 0:Ue[0])==null?void 0:la[0])==null||Va.label;let se=(ea=(Ba=$==null?void 0:$.compData)==null?void 0:Ba.find(ta=>(ta==null?void 0:ta.key)==="header"))==null?void 0:ea.contents,Ea=[];Ra==null||Ra.forEach(ta=>{let Ca=[];ta==null||ta.forEach((oe,E)=>{var he;let Re={};((he=se[E])==null?void 0:he.label)!=="操作"&&(Re[se[E].label]=oe,Ca.push(Re))}),Ea.push(Ca)}),f[$.name]=Ea}else{const Ra=(ra=(Ga=$.compData)==null?void 0:Ga.find(se=>(se==null?void 0:se.key)==="formContent"))==null?void 0:ra.contents;Ra==null||Ra.forEach(se=>{var Ea,ta;if(se.prop!==""){let Ca=se==null?void 0:se.value;Array.isArray(Ca)?Ca=((Ea=Ca==null?void 0:Ca[0])==null?void 0:Ea.oldUrl)||"http://222.92.178.198:62001/"+((ta=Ca==null?void 0:Ca[0])==null?void 0:ta.url):Ca=Ca.toString(),se={key:(se==null?void 0:se.prop)??(se==null?void 0:se.label),value:Ca},z.push(se)}})}}),f.form=na.getFormContents(z),f},Yo=d=>{const f=[],z=O=>{O&&typeof O=="object"&&!Array.isArray(O)?Object.values(O).forEach(z):f.push(O)};return z(d),f},Go=async(d,f,z)=>{var se,Ea,ta,Ca,oe,E,Re,he,ma,sa,fa,Oa,pl,Qa,gl,bl,$l;Qe.setImportLoading(!0),Ge.setFreshContent(!1);let O=await qo().catch(Ya=>(Qe.setImportLoading(!1),Promise.reject(Ya)));O=O==null?void 0:O.filter(Ya=>{var Cl;return((Cl=Ya==null?void 0:Ya.find(Ka=>Ka==null?void 0:Ka.id))==null?void 0:Cl.id)===(f==null?void 0:f.id)});let $=na.getEqualChild([(se=De.value)==null?void 0:se.filter(Ya=>(Ya==null?void 0:Ya.label)!=="操作")]);const N=(ta=(Ea=na.tableToForm(O,$))==null?void 0:Ea[0])==null?void 0:ta.find(Ya=>{const Cl=Ya==null?void 0:Ya.key;return Cl==="Interface"||Cl==="方法体"}),Z=N==null?void 0:N.value;if(!Z){console.log("未搜索到isMain, 缺少算法执行接口"),Qe.setImportLoading(!1);return}const ae=De.value?na.getEqualChild([De.value]):[],H=ae.find(Ya=>{const Cl=Ya==null?void 0:Ya.prop;return Cl==="Input1"||Cl==="输入数据.输入1"||Cl==="样本输入数据"}),ve=H==null?void 0:H.prop;let we=f==null?void 0:f[ve];const Ve=await it().catch(Ya=>(Qe.setImportLoading(!1),Promise.reject(Ya)));let Me=!0,Ue="";(Ca=De.value)==null||Ca.forEach(Ya=>{(Ya==null?void 0:Ya.prop)===ve&&(Me=!!(Ya!=null&&Ya.childPath),Ue=Ya==null?void 0:Ya.childPath)});let la="";if(Me){let Ya=(E=(oe=De.value)==null?void 0:oe.find(ml=>(ml==null?void 0:ml.isMainKey)===!0))==null?void 0:E.prop;la=f==null?void 0:f[Ya];let Cl=Ue==null?void 0:Ue.split(k),Ka=[];Cl==null||Cl.forEach((ml,Tl)=>{(Cl==null?void 0:Cl.length)-1===Tl&&Ka.push(la),Ka.push(ml)}),Ka=Ka==null?void 0:Ka[0];let vl=await na.getItemData(Ka,sessionStorage.getItem("systemKey"),""),Xa=vl==null?void 0:vl.filter(ml=>(ml==null?void 0:ml.name)===ve);Xa=Xa==null?void 0:Xa.map(ml=>{var Tl;return ml.compData=(Tl=ml==null?void 0:ml.compData)==null?void 0:Tl.map(Nl=>{var hr;return(Nl==null?void 0:Nl.key)==="tableContents"&&(Nl.contents=(hr=Nl==null?void 0:Nl.contents)==null?void 0:hr.filter(Ll=>(Ll==null?void 0:Ll[1])===(f==null?void 0:f[ve]))),Nl}),ml}),(!Xa||(Xa==null?void 0:Xa.length)===0)&&(Xa=vl,Xa=Xa==null?void 0:Xa.map(ml=>{var Tl;return ml.compData=(Tl=ml==null?void 0:ml.compData)==null?void 0:Tl.map(Nl=>{var hr;return(Nl==null?void 0:Nl.key)==="tableContents"&&(Nl.contents=(hr=Nl==null?void 0:Nl.contents)==null?void 0:hr.filter(Ll=>{var _l,Al;return(Ll==null?void 0:Ll[1])===(f==null?void 0:f[(Al=(_l=De==null?void 0:De.value)==null?void 0:_l[0])==null?void 0:Al.prop])})),Nl}),ml})),we=Ko(Xa)}const Va=await Wo(Z,{token:Ve,inputData:we}).catch(Ya=>(Qe.setImportLoading(!1),Promise.reject(Ya))),Ba=(Re=Va==null?void 0:Va.data)==null?void 0:Re.data,ea=ae.find(Ya=>(Ya==null?void 0:Ya.prop)==="Output1"),Ga=ea==null?void 0:ea.prop;let ra=[],Ra=[];if(Ba&&((he=Object.values(Ba))==null?void 0:he.length)>0){let Ya=[];const Cl=new FormData,Ka=(ma=Yo(Ba))==null?void 0:ma.map(async Xa=>{var ml,Tl;if(!Array.isArray(Xa)&&(Xa!=null&&Xa.includes("http"))){let Nl=await rl.axios.get(Xa,{responseType:"blob"}),hr=(Tl=Xa==null?void 0:Xa.split("/"))==null?void 0:Tl[((ml=Xa==null?void 0:Xa.split("/"))==null?void 0:ml.length)-1];Cl.append("files",Nl.data,hr)}else Ya.push(Xa)});if(await Promise.all(Ka),!na.isFormDataEmpty(Cl)){let Xa=await I.uploadAmountApi(Cl),ml=(fa=(sa=Xa==null?void 0:Xa.data)==null?void 0:sa.result)==null?void 0:fa.map(Tl=>{var Nl,hr,Ll,_l,Al,Yl;return{name:(Yl=(Al=(_l=(Nl=Tl==null?void 0:Tl.url)==null?void 0:Nl.split("/"))==null?void 0:_l[((Ll=(hr=Tl==null?void 0:Tl.url)==null?void 0:hr.split("/"))==null?void 0:Ll.length)-1])==null?void 0:Al.split("."))==null?void 0:Yl[0],url:Tl==null?void 0:Tl.url}});Ya=[...Ya,...ml]}let vl={};for(let Xa in f)Xa!=="id"&&(vl[Xa]=f[Xa]);vl[Ga]=Ya,Ra.push({id:f==null?void 0:f.id,value:{tableData:vl}})}if((Ra==null?void 0:Ra.length)>0){const Ya=Ra.map(Ka=>{const vl={id:Ka.id,...Ka.value.tableData};return delete vl._isOCRRow,delete vl._ocrTableId,delete vl._isTemp,delete vl.tableEditType,delete vl.index,vl}),Cl=[{tableName:(Oa=u==null?void 0:u.related)==null?void 0:Oa.find(Ka=>Ka==null?void 0:Ka.includes("content")),tableContents:Ya}];await I.pageBatchUpdateApi({platId:parseInt((pl=Vl.value)==null?void 0:pl.plat_id),changeContents:Cl})}if((ra==null?void 0:ra.length)>0)try{await I.pageBatchAddApi({platId:parseInt((Qa=Vl.value)==null?void 0:Qa.plat_id),changeContents:[{tableName:(gl=u==null?void 0:u.related)==null?void 0:gl.find(Ya=>Ya==null?void 0:Ya.includes("content")),tableContents:ra.map(Ya=>{var Ka,vl,Xa;const Cl={id:((Ka=Ya==null?void 0:Ya.key)==null?void 0:Ka.id)??((vl=Ya==null?void 0:Ya.key)==null?void 0:vl.rowId)??(Ya==null?void 0:Ya.id),...((Xa=Ya==null?void 0:Ya.value)==null?void 0:Xa.tableData)||{}};return delete Cl._isOCRRow,delete Cl._ocrTableId,delete Cl._isTemp,delete Cl.tableEditType,delete Cl.index,Object.keys(Cl).forEach(ml=>{ml==="证书附件"&&Array.isArray(Cl[ml])&&(Cl[ml]=JSON.stringify(Cl[ml]))}),Cl})}]})}catch(Ya){rl.ElMessage.error((($l=(bl=Ya==null?void 0:Ya.response)==null?void 0:bl.data)==null?void 0:$l.message)||(Ya==null?void 0:Ya.message)||"保存失败"),Ge.setTableLoading(!1);return}Mt(!0),Qe.setImportLoading(!1),Ge.setFreshContent(!0)},ao=(d,f)=>(d=d==null?void 0:d.map(z=>{var O,$;return z!=null&&z.children&&((O=z.children)!=null&&O.find(N=>N.id===(f==null?void 0:f.id))?z.children=($=z.children)==null?void 0:$.filter(N=>(N==null?void 0:N.id)!==(f==null?void 0:f.id)):z.children=ao(z.children,f)),z}),d),st=a.ref(!1),Jo=()=>{st.value=!0},Xo=async d=>{var z,O,$,N;st.value=!1;const f=Array.isArray(d)?d:d?[d]:[];if(f.length!==0)for(const Z of f){const ae={name:Z.name||`capture-${Date.now()}.jpg`,url:URL.createObjectURL(Z),raw:Z,uid:Date.now()+Math.random()};_a.value.push(ae),Dl(ae,"uploading"),Ml(ae,0);try{const H=new FormData;H.append("file",Z,ae.name);const ve=await I.platformUploadFile(H);ae.uploadResult=((z=ve==null?void 0:ve.data)==null?void 0:z.result)||{name:ae.name,url:"",fileName:ae.name},yl({name:((O=ae.uploadResult)==null?void 0:O.name)||ae.name,url:(($=ae.uploadResult)==null?void 0:$.url)||"",id:(N=ae.uploadResult)==null?void 0:N.id}),Dl(ae,"uploaded"),Ml(ae,100)}catch(H){console.error("文件上传失败:",H),rl.ElMessage.error(`文件 ${ae.name} 上传失败,请重试`),Dl(ae,"pending"),Ml(ae,0);const ve=_a.value.findIndex(we=>we.uid===ae.uid);ve>-1&&_a.value.splice(ve,1)}}},i=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,f,z)=>{f===(u==null?void 0:u.index)?z(new Error("选择源不能和目标源一致")):z()}}]},buttonValue:[{label:"取消",background:"#999999",color:"var(--ssbutton-theme-color)"},{label:"确认",background:"var(--ssbutton-theme-bg)",color:"var(--ssbutton-theme-color)"}]}),o=a.reactive({title:"温馨提示:检测到导入的以下数据,系统中已存在,请选择操作",show:!1,width:"70%",columns:[],tableData:[],existRows:[],buttonValue:[{label:"取消",value:"cancel",background:"#999999",color:"var(--ssbutton-theme-color)"},{label:"覆盖",render:"popover",value:"replace",background:"var(--ssbutton-theme-bg)",color:"var(--ssbutton-theme-color)"}],result:""}),p=()=>{o.show=!1},m=async d=>{var f,z,O,$,N,Z,ae,H;try{if(d==="cancel"&&(o.show=!1),d==="replace"&&((f=o==null?void 0:o.existRows)==null?void 0:f.length)>0){await I.pageBatchDeleteApi({platId:parseInt((z=Vl.value)==null?void 0:z.plat_id),changeContents:[{tableName:((O=u==null?void 0:u.related)==null?void 0:O.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:o==null?void 0:o.existRows}]});const ve=await I.pageBatchAddApi({platId:parseInt((N=Vl.value)==null?void 0:N.plat_id),changeContents:[{tableName:(Z=u==null?void 0:u.related)==null?void 0:Z.find(we=>we==null?void 0:we.includes("content")),tableContents:(()=>{const we=(Ce.value||[]).filter(la=>!((o==null?void 0:o.existRows)||[]).some(Va=>String(Va==null?void 0:Va.id)===String(la==null?void 0:la.id))),Ve=(o==null?void 0:o.tableData)||[],Me=[];let Ue=we.slice();return Ve.forEach(la=>{const Va={...la};try{Va.sort=Nn(0,Ue)}catch{}Me.push(Va),Ue.unshift(Va)}),Me.map((la,Va)=>({id:Va,...la}))})()}]});((ae=ve==null?void 0:ve.data)==null?void 0:ae.code)===200&&(await mi({buttonName:"新增",columns:De.value,fixContent:(H=o==null?void 0:o.tableData)==null?void 0:H.map((we,Ve)=>({id:Ve,...we})),relatedContents:u==null?void 0:u.related}),rl.ElMessage.success("数据导入替换成功"))}}catch{throw new Error(e)}finally{o.show=!1,o.columns=[],o.tableData=[],o.existRows=[]}},w=()=>{i.show=!1},V=d=>{var f,z;if((d==null?void 0:d.buttonName)==="取消")return i.show=!1;i.to=d==null?void 0:d.content,!(!(u!=null&&u.index)||!((f=i.to)!=null&&f.groupName))&&(u==null?void 0:u.index)!==((z=i.to)==null?void 0:z.groupName)&&(ze("change",{buttonName:"迁移",value:{from:i.from,to:i.to,data:i.selectRow}}),i.show=!1)},q=async d=>{var f,z,O,$;if(d){if(!Dr.validateFileSize(d.raw)){rl.ElMessage.warning(`文件大小不能超过 ${Zr.value.maxSize}MB`);const N=_a.value.findIndex(Z=>Z.uid===d.uid);N>-1&&_a.value.splice(N,1),Y();return}if(!Dr.validateFileType(d.raw)){rl.ElMessage.warning("请上传图片文件");const N=_a.value.findIndex(Z=>Z.uid===d.uid);N>-1&&_a.value.splice(N,1),Y();return}Dl(d,"uploading"),Ml(d,0);try{const N=new FormData;N.append("file",d.raw,d.name);const Z=await I.platformUploadFile(N);d.uploadResult=((f=Z==null?void 0:Z.data)==null?void 0:f.result)||{name:d.name,url:"",fileName:d.name},yl({name:((z=d.uploadResult)==null?void 0:z.name)||d.name,url:((O=d.uploadResult)==null?void 0:O.url)||"",id:($=d.uploadResult)==null?void 0:$.id}),Dl(d,"uploaded"),Ml(d,100)}catch(N){console.error("文件上传失败:",N),rl.ElMessage.error(`文件 ${d.name} 上传失败,请重试`),Dl(d,"pending"),Ml(d,0);const Z=_a.value.findIndex(ae=>ae.uid===d.uid);Z>-1&&_a.value.splice(Z,1)}finally{Y()}}},Y=()=>{a.nextTick(()=>{const d=document.querySelector('.ocr-upload-input input[type="file"]');d&&(d.value="")})},fe=async()=>{var z,O;if(sessionStorage.setItem("ocr_root_table_id",String((u==null?void 0:u.index)??"")),_a.value.length===0){rl.ElMessage.warning("请先选择要上传的图片");return}if(_a.value.filter($=>{const N=cl($);return N!=="uploaded"&&N!=="completed"&&N!=="failed"}).length>0){rl.ElMessage.warning("请等待所有文件上传完成后再开始识别");return}va.value=!0,Ee.value=0;let f=null;try{_a.value.forEach(ea=>{Dl(ea,"processing")});const $=Math.floor(Math.random()*10)+90;f=setInterval(()=>{Ee.value<$?Ee.value+=1:clearInterval(f)},50);const N=_a.value.map(ea=>{var Ga,ra,Ra;return{name:((Ga=ea.uploadResult)==null?void 0:Ga.name)||ea.name,url:((ra=ea.uploadResult)==null?void 0:ra.url)||"",fileName:((Ra=ea.uploadResult)==null?void 0:Ra.fileName)||ea.name}}),Z=Dr.extractTableHeaders(De.value),ae=N.map(ea=>({name:(ea==null?void 0:ea.fileName)||(ea==null?void 0:ea.name),url:(ea==null?void 0:ea.url)||""})),H=await Dr.recognize(ae,Z);if(console.log(H,"ocrResult"),clearInterval(f),f=null,(H==null?void 0:H.code)===500||(H==null?void 0:H.type)==="error"||!(H!=null&&H.result)){Ee.value=0,_a.value.forEach(ea=>{Dl(ea,"failed"),Ml(ea,0)}),rl.ElMessage.error((H==null?void 0:H.message)||"OCR识别失败,请重试"),va.value=!1;return}Ee.value=$;const ve=Array.isArray(H==null?void 0:H.result)?H.result:[];if(ve.length===0){Ee.value=0,_a.value.forEach(ea=>{Dl(ea,"failed"),Ml(ea,0)}),rl.ElMessage.warning("OCR识别未返回有效数据"),va.value=!1;return}const we=new Set,Ve=[];ve.forEach((ea,Ga)=>{const ra=ea!=null&&ea.数据&&typeof(ea==null?void 0:ea.数据)=="object"?ea.数据:{},Ra=Array.isArray(ea==null?void 0:ea.图片信息)?ea.图片信息:[],se=new Map;Ra.forEach(ta=>{ta!=null&&ta.name&&se.set(ta.name,ta.url||"")});const Ea={_index:Ga,_certType:(ea==null?void 0:ea.证书类型)||"",_certNo:(ea==null?void 0:ea.证书编号)||"",_ocrImages:Ra,__ocrFieldMeta:{}};Object.entries(ra).forEach(([ta,Ca])=>{let oe="",E=0,Re=[],he="";Ca&&typeof Ca=="object"&&!Array.isArray(Ca)?(oe=(Ca==null?void 0:Ca.value)??"",E=(Ca==null?void 0:Ca.score)??0,Re=Array.isArray(Ca==null?void 0:Ca.bboxNorm)?Ca==null?void 0:Ca.bboxNorm:[],he=(Ca==null?void 0:Ca.imageName)||""):Array.isArray(Ca)&&Ca.length>=2?(oe=Ca[0]??"",E=Ca[1]??0):(oe=Ca??"",E=0),Ea[ta]=oe,Ea[`${ta}_accuracy`]=E,we.add(ta),Ea.__ocrFieldMeta[ta]={value:oe,score:E,bboxNorm:Re,imageName:he,imageUrl:he&&se.get(he)||"",images:Ra}}),Ve.push(Ea)});const Me=[],Ue=new Set;Ve.forEach(ea=>{ea&&we.forEach(Ga=>{const ra=ea[`${Ga}_accuracy`];(typeof ra=="number"?ra>0:ra!=null&&String(ra).trim()!==""&&String(ra)!=="0")&&Ue.add(Ga)})}),we.forEach(ea=>{Me.push({prop:ea,label:ea,editable:!0,minWidth:230}),Ue.has(ea)&&Me.push({prop:`${ea}_accuracy`,label:"准确率",editable:!1,minWidth:100,isAccuracy:!0})}),_a.value.forEach(ea=>{Dl(ea,"completed")}),Ee.value=100,ye.value=Me,Ua.value=Ve,xl.value=N,qa.value=H;const la=["出厂编号","设备名称","制造厂"],Va=Me.filter(ea=>ea&&!ea.isAccuracy&&typeof ea.prop=="string").map(ea=>ea.prop),Ba=["出厂编号","设备名称","制造厂"];ol.value=Va.filter(ea=>Ba.includes(ea)),console.log("[OCR] 默认勾选字段 props:",ol.value),de.value=2,va.value=!1,Na.value=!1}catch($){console.error("OCR处理失败:",$),f&&(clearInterval(f),f=null),rl.ElMessage.error(((O=(z=$==null?void 0:$.response)==null?void 0:z.data)==null?void 0:O.message)||"OCR识别失败,请重试"),va.value=!1,Ee.value=0,_a.value.forEach(N=>{Dl(N,"pending"),Ml(N,0)})}},Oe=d=>{if(d==null)return"";let f=String(d);return f=f.replace(/\s+/g," ").trim(),f=f.replace(/[!-~]/g,z=>String.fromCharCode(z.charCodeAt(0)-65248)),f=f.replace(/ /g," "),f=f.replace(/^(编号|No\.?|NO\.?|no\.?|SN\.?|sn\.?|序列号)\s*[::]?\s*/i,""),f},be=()=>{var ea,Ga;const d=xl.value,f=qa.value,z=Ua.value;if(!z||z.length===0){rl.ElMessage.warning("暂无数据可添加");return}const O=(ea=na.getAllLeafNodes(De.value)||[])==null?void 0:ea.filter(ra=>(ra==null?void 0:ra.type)!=="operate"&&(ra==null?void 0:ra.label)!=="操作"&&(ra==null?void 0:ra.prop)!=="operate"),$=new Map,N=new Map,Z=(Ga=O==null?void 0:O.find(ra=>(ra==null?void 0:ra.label)==="证书附件"))==null?void 0:Ga.prop;O==null||O.forEach(ra=>{ra!=null&&ra.label&&(ra!=null&&ra.prop)&&($.set(ra.label,ra.prop),N.set(ra.prop,ra.label))});const ae=Date.now(),H=ra=>String(ae*1e3+ra),ve=[],we=[],Ve=ra=>{const Ra=wo&&wo[ra]||[ra];for(const se of Ra){const Ea=$.get(se);if(Ea)return Ea}return""},Me=Ve("出厂编号"),Ue=Ve("设备名称"),la=Ve("制造厂"),Va=[],Ba=ra=>{var oe,E;if(!Z)return[];const Ra=(Array.isArray(d)?d[ra]:null)||null,se=(Ra==null?void 0:Ra.url)||"",Ea=(Ra==null?void 0:Ra.fileName)||(Ra==null?void 0:Ra.name)||"";return(String(Ea).toLowerCase().endsWith(".pdf")||String(se).toLowerCase().endsWith(".pdf"))&&se?[{url:se,name:Ea,fileName:Ea}]:(Array.isArray((E=(oe=f==null?void 0:f.result)==null?void 0:oe[ra])==null?void 0:E.图片信息)?f.result[ra].图片信息:[]).map(Re=>({url:(Re==null?void 0:Re.url)||"",name:(Re==null?void 0:Re.name)||"",fileName:(Re==null?void 0:Re.name)||""})).filter(Re=>Re.url)};if(z.forEach((ra,Ra)=>{var pl;const se={id:H(Ra),_isOCRRow:!0,_ocrTableId:u==null?void 0:u.index};for(const[Qa,gl]of $.entries())Object.prototype.hasOwnProperty.call(ra,Qa)&&(se[gl]=ra[Qa]);Z&&(se[Z]=Ba(Ra));const Ea=(Array.isArray(f==null?void 0:f.result)?f.result[Ra]:null)||null,ta=(Array.isArray(d)?d[Ra]:null)||null,Ca=(ta==null?void 0:ta.url)||"",oe=(ta==null?void 0:ta.fileName)||(ta==null?void 0:ta.name)||"",E=String(oe).toLowerCase().endsWith(".pdf")||String(Ca).toLowerCase().endsWith(".pdf"),Re={ts:Date.now(),versionId:String(Date.now())+"_"+String(Ra),label:new Date().toLocaleString(),certType:(Ea==null?void 0:Ea.证书类型)||"",certNo:(Ea==null?void 0:Ea.证书编号)||"",fileType:E?"pdf":"image",sourceUrl:E?Ca:"",images:Array.isArray(Ea==null?void 0:Ea.图片信息)?Ea.图片信息.map(Qa=>({name:(Qa==null?void 0:Qa.name)||"",url:(Qa==null?void 0:Qa.url)||""})).filter(Qa=>Qa.url):[]},he=Qa=>Oe(Qa?se==null?void 0:se[Qa]:""),ma=he(Me),sa=he(Ue),fa=he(la);if(!!(Me&&Ue&&la&&ma&&sa&&fa)){const Qa=(Ce.value||[]).find(gl=>{const bl=Oe(Me?gl==null?void 0:gl[Me]:""),$l=Oe(Ue?gl==null?void 0:gl[Ue]:""),Ya=Oe(la?gl==null?void 0:gl[la]:"");return bl&&$l&&Ya&&bl===ma&&$l===sa&&Ya===fa});if(Qa){Va.push({idx:Ra,ocrRow:se,versionItem:Re,ocrNo:ma,candidates:[Qa],selectedTargetId:String((Qa==null?void 0:Qa.id)??""),__decision:"replace",allowAdd:!1,allowReplace:!0});return}}if(ma&&Me){const Qa=(Ce.value||[]).filter(gl=>{const bl=Oe(Me?gl==null?void 0:gl[Me]:"");return bl&&bl===ma});if(Qa.length>0){Va.push({idx:Ra,ocrRow:se,versionItem:Re,ocrNo:ma,candidates:Qa,selectedTargetId:"",__decision:"",allowAdd:!0,allowReplace:!0});return}}try{if(se.sort===void 0||se.sort===null||String(se.sort).trim()===""){const Qa=(Ce.value||[]).map(bl=>Jn(bl==null?void 0:bl.sort)).filter(bl=>bl!==null),gl=Qa.length>0?Math.max(...Qa):((pl=Ce.value)==null?void 0:pl.length)??0;se.sort=String(Number((gl+1).toFixed(6)))}}catch{}Pa(u==null?void 0:u.index,se.id,Re),Va.push({idx:Ra,ocrRow:se,versionItem:Re,ocrNo:ma,candidates:[],selectedTargetId:"",__decision:"add",allowAdd:!0,allowReplace:!1})}),(Va||[]).length>0){Hl.value=(Va||[]).map(ra=>({...ra,selectedTargetId:(ra==null?void 0:ra.selectedTargetId)||""})),Pl.value=!0,gr.value=we,rr.value=ve,kr.value=f,wr.value=d,Er.value=Z||"";return}},Xe=(d,f,z)=>{Ua.value[d]&&(Ua.value[d][f]=z)},Ta=d=>d==null||d===0?"-":`${(Number(d)*100).toFixed(1)}%`,tl=d=>{if(d==null||d===0)return"#909399";const f=Number(d);return f>=.9?"#67c23a":f>=.7?"#e6a23c":"#f56c6c"},ll=d=>{var z,O,$,N;if(al.value===d){al.value=null,dl.value=!1,ul.value="";return}al.value=d,ul.value="";const f=(z=Ua.value)==null?void 0:z[d];if(f&&Array.isArray(f._ocrImages)&&f._ocrImages.length>0){Wl.value=f._ocrImages.map(H=>({name:(H==null?void 0:H.name)||"",url:(H==null?void 0:H.url)||""})).filter(H=>H.name||H.url);const Z=f.__ocrFieldMeta||{},ae=(O=Object.values(Z))==null?void 0:O.find(H=>H==null?void 0:H.imageName);ql.value=(ae==null?void 0:ae.imageName)||((N=($=Wl.value)==null?void 0:$[0])==null?void 0:N.name)||"",dl.value=Wl.value.length>0}else Wl.value=[],dl.value=!1,ql.value=""},sl=()=>{il.value=!1,_a.value=[],xa.value=null,de.value=1,Fa.value.clear(),ja.value.clear(),Ee.value=0,dl.value=!1},wl=d=>d.raw?URL.createObjectURL(d.raw):d.url?d.url:"",cl=d=>{const f=d.uid||d.name;return Fa.value.get(f)||"pending"},Bl=d=>{const f=d.uid||d.name;return ja.value.get(f)||0},Ml=(d,f)=>{const z=d.uid||d.name;ja.value.set(z,Math.min(100,Math.max(0,f)))},Kl=d=>{const f=cl(d),z=100.53;if(f==="completed"||f==="uploaded")return`${z} ${z}`;if(f==="failed")return`${z} ${z}`;if(f==="uploading"){const O=Bl(d);return`${z*(O/100)} ${z}`}else if(f==="processing")return`${z*.5} ${z}`;return`0 ${z}`},Dl=(d,f)=>{const z=d.uid||d.name;Fa.value.set(z,f),(f==="completed"||f==="uploaded")&&Ml(d,100)},Fl=()=>{a.nextTick(()=>{const d=document.querySelector('.ocr-upload-input input[type="file"]');if(d)d.value="",d.click();else{const f=document.createElement("input");f.type="file",f.multiple=!0,f.accept="image/*,application/pdf",f.style.display="none",f.onchange=async z=>{const O=Array.from(z.target.files||[]);for(const $ of O){const N={name:$.name,raw:$,uid:Date.now()+Math.random()};_a.value.push(N),await q(N)}z.target.value="",document.body.removeChild(f)},document.body.appendChild(f),f.click()}})},Ir=()=>{de.value>1&&de.value--},mr=()=>{de.value===1?_a.value.length>0&&!va.value&&fe():de.value===2&&(be(),de.value=3)},Fr=async d=>{await on(d==null?void 0:d.row)},en=async({row:d,prop:f})=>{!d||!f||await on(d,f)},on=async(d,f)=>{var $,N;const z=d==null?void 0:d.id;if(!z){rl.ElMessage.warning("暂无可预览数据");return}let O=el(u==null?void 0:u.index,z);if(!O||O.length===0){const Z=sessionStorage.getItem("ocr_root_table_id"),ae=Z!==null?Number(Z):null;if(ae!=null&&ae!==""&&!Number.isNaN(ae)){const H=el(ae,z);Array.isArray(H)&&H.length>0&&(Ja(u==null?void 0:u.index,z,H),O=H)}}if(!O||O.length===0){const Z=($=na.getAllLeafNodes(De.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=f||((N=Z==null?void 0:Z.find(H=>(H==null?void 0:H.label)==="证书附件"))==null?void 0:N.prop);if(ae&&d[ae]){const H=d[ae];let ve=[],we="",Ve=!1;if(typeof H=="string")try{const Me=JSON.parse(H);Array.isArray(Me)&&(ve=Me.map(Ue=>({name:(Ue==null?void 0:Ue.name)||(Ue==null?void 0:Ue.fileName)||"",url:(Ue==null?void 0:Ue.url)||""})).filter(Ue=>Ue.url||Ue.name),ve.length>0&&(we=ve[0].url||"",Ve=String(ve[0].name).toLowerCase().endsWith(".pdf")||String(we).toLowerCase().endsWith(".pdf")))}catch{we=H,Ve=String(H).toLowerCase().endsWith(".pdf"),ve=[{name:H,url:H}]}else Array.isArray(H)&&(ve=H.map(Me=>({name:(Me==null?void 0:Me.name)||(Me==null?void 0:Me.fileName)||"",url:(Me==null?void 0:Me.url)||""})).filter(Me=>Me.url||Me.name),ve.length>0&&(we=ve[0].url||"",Ve=String(ve[0].name).toLowerCase().endsWith(".pdf")||String(we).toLowerCase().endsWith(".pdf")));if(ve.length>0||we){const Me={ts:Date.now(),versionId:String(Date.now()),label:new Date().toLocaleString(),certType:d.证书类型||"",certNo:d.证书编号||"",fileType:Ve?"pdf":"image",sourceUrl:Ve?we:"",images:ve};O=[Me],Pa(u==null?void 0:u.index,z,Me)}}}if(!O||O.length===0){rl.ElMessage.warning("暂无可预览数据");return}ha.value=O,oa.value=!0},ct=d=>{_a.value=_a.value.filter((f,z)=>z!==d)},Tn=async(d,f,z)=>{var O,$,N,Z,ae,H,ve,we,Ve,Me,Ue,la,Va,Ba,ea,Ga,ra,Ra,se,Ea,ta;if(Ie(u.config,{type:aa.TABLE,tableOperate:d})){if(Je.value="",Sa.value=!0,Ze.value=!0,ze("onButtonClick",d,f),W.value=[],d==="删除")I.ElMessageBox.confirm("是否确认删除","温馨提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var Ca,oe,E,Re;(Ca=Ce.value)!=null&&Ca.find(he=>(he==null?void 0:he.id)===(f==null?void 0:f.id))?Ce.value=(oe=I.cloneDeep(Ce.value))==null?void 0:oe.filter(he=>(he==null?void 0:he.id)!==(f==null?void 0:f.id)):Ce.value=ao(I.cloneDeep(Ce.value),f);try{f!=null&&f.id&&((Re=(E=me.value)==null?void 0:E.has)!=null&&Re.call(E,f==null?void 0:f.id))&&me.value.delete(f.id)}catch{}lf(Nr.value,In.value,f==null?void 0:f.id),Ge.setTableLoading(u==null?void 0:u.index),ze("change",{content:Ce.value,fixContent:[f],index:u==null?void 0:u.index,type:"delete",name:u==null?void 0:u.compName,buttonName:d,columns:De.value,relatedContents:u==null?void 0:u.related}),console.log(f,"item")});else if(d==="批量删除"){if(((O=ar.value)==null?void 0:O.length)===0)return rl.ElMessage.warning("请先勾选操作的数据");I.ElMessageBox.confirm("是否确认删除","温馨提示",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(async()=>{var E,Re,he,ma,sa;const Ca=(E=ar.value)==null?void 0:E.map(fa=>fa.id);Ce.value=(Re=I.cloneDeep(Ce.value))==null?void 0:Re.filter(fa=>!(Ca!=null&&Ca.includes(fa.id))),Ge.setTableLoading(u==null?void 0:u.index),ze("change",{content:Ce.value,fixContent:ar.value,index:u==null?void 0:u.index,type:"delete",name:u==null?void 0:u.compName,buttonName:d,relatedContents:u==null?void 0:u.related,columns:De.value});const oe=(Ca||[]).filter(Boolean);if(oe.length>0&&oe.every(fa=>fa!=null&&fa!=="")){const fa=(ar.value||[]).map(Oa=>{const pl={...Oa};return delete pl._isOCRRow,delete pl._ocrTableId,delete pl._isTemp,delete pl.tableEditType,delete pl.index,pl});await I.pageBatchDeleteApi({platId:parseInt((he=Vl.value)==null?void 0:he.plat_id),changeContents:[{tableName:((ma=u==null?void 0:u.related)==null?void 0:ma.find(Oa=>Oa==null?void 0:Oa.includes("content_")))||((sa=u==null?void 0:u.related)==null?void 0:sa.find(Oa=>Oa==null?void 0:Oa.includes("content"))),tableContents:fa}]})}})}else if(d==="复制新增"){Le.value="复制新增",I.cloneDeep(f);const Ca=($=De.value)==null?void 0:$.find(oe=>oe==null?void 0:oe.isMainKey);Ca||((N=De.value)==null||N[0]),Il.value=f,Mt(!0)}else if(d==="新增")Le.value="新增",At(""),da.value=!0;else if(d==="编辑")Le.value="编辑",At(f),da.value=!0;else if(d==="查看")Le.value="查看",At(f),Sa.value=!1,Ze.value=!1,da.value=!0;else if(d==="查看三维模型"){const Ca={};for(let E in f)E!=="id"&&(Ca[E]=f[E]);let oe=(Z=Object.values(Ca))==null?void 0:Z[1];$e.setTableShowThree(oe)}else if(d==="切换视图")ru();else if(((ae=z==null?void 0:z.extra)==null?void 0:ae.type)==="modelExample")Le.value=d,K.value=!0;else if(d==="新建"){let Ca=ie.value,oe=[];for(let sa in Ca)sa!=null&&sa.includes(`loading${((H=Vl.value)==null?void 0:H.account)||((ve=Vl.value)==null?void 0:ve.账号)}`)&&(oe=[...oe,...sa]);let E=[];for(let sa in Ca)sa!=null&&sa.includes(`updateLoading${((we=Vl.value)==null?void 0:we.account)||((Ve=Vl.value)==null?void 0:Ve.账号)}`)&&(E=[...E,...sa]);let Re=oe==null?void 0:oe.map(sa=>sa==null?void 0:sa.id);const he=E==null?void 0:E.map(sa=>sa==null?void 0:sa.id);Re=[...I.cloneDeep(Re),...he],(Re==null?void 0:Re.length)>0&&(Re!=null&&Re.every(sa=>sa!==null&&sa))&&await yr.batchDeleteInsofDataApi({ids:Re});const ma=(Me=_e.value)==null?void 0:Me.find(sa=>(sa==null?void 0:sa.label)==="新建");await Yc(!1,ma)}else if(d==="修改模板"){let Ca=I.cloneDeep(ga).value;Ge.setRouteToChildPath(Ca),Qe.setActiveMenuPath(Ca+k)}else if(d==="执行")Go(d,f);else if(d==="导出paraform"){const Ca=I.ElLoading.service({lock:!0,text:"正在导出paraform...",background:"rgba(0, 0, 0, 0.7)"});try{const oe=["推力","真空","压力","温度","流量"],E=_l=>{var Al,Yl,Ol;return _l?typeof(_l==null?void 0:_l.value)=="string"?_l.value:((Ol=(Yl=(Al=_l==null?void 0:_l._custom)==null?void 0:Al.value)==null?void 0:Yl.value)==null?void 0:Ol.value)||"":""},Re=Array.isArray(mn.value)?mn.value:[],he=E(Re.find(_l=>(_l==null?void 0:_l.condition)==="child")),ma=String(he||"").slice(0,8),sa=_l=>{if(_l==null)return"";const Al=String(_l).trim();if(!Al)return"";if(/^\d{8}$/.test(Al))return Al;const Yl=Al.match(/^(\d{4})[-\/.](\d{1,2})[-\/.](\d{1,2})$/);if(Yl){const ur=Yl[1],dr=Yl[2].padStart(2,"0"),Gl=Yl[3].padStart(2,"0");return`${ur}${dr}${Gl}`}const Ol=Al.replace(/\D/g,"");return Ol.length>=8?Ol.slice(0,8):""},fa=async _l=>{var Al,Yl;if(!_l)return"";try{const Ol=await Pr("试验任务/任务管理",!1),ur=(ir,lr=[])=>{if(!Array.isArray(ir))return lr;for(const nr of ir)(nr==null?void 0:nr.comp)==="Table"&&(nr!=null&&nr.name)&&lr.push(nr),Array.isArray(nr==null?void 0:nr.children)&&ur(nr.children,lr),Array.isArray(nr==null?void 0:nr.tab)&&ur(nr.tab,lr),Array.isArray(nr==null?void 0:nr.choice)&&ur(nr.choice,lr);return lr},Gl=ur(Ol||[]).find(ir=>(ir==null?void 0:ir.name)==="任务列表"),or=((Yl=(Al=Gl==null?void 0:Gl.compData)==null?void 0:Al.find(ir=>(ir==null?void 0:ir.key)==="tableContents"))==null?void 0:Yl.contents)||[];if(!Array.isArray(or)||or.length===0)return"";const Vr=or.find(ir=>String((ir==null?void 0:ir["试验代号(名称)"])||"").slice(0,8)===_l);return sa(Vr==null?void 0:Vr.计划试验时间)}catch(Ol){return console.warn("获取任务列表计划试验时间失败:",Ol),""}},Oa=(ga.value||"").replace(/\/+$/,""),pl=he?`${Oa}/${he}`:Oa,Qa=await Pr(pl||ga.value,!1),gl=String(pa.value||"").trim(),bl=_l=>String(_l||"").trim(),$l=(_l,Al=[],Yl="")=>{if(!Array.isArray(_l))return Al;for(const Ol of _l){const ur=bl((Ol==null?void 0:Ol.choiceName)||(Ol==null?void 0:Ol.name0)||Yl);(Ol==null?void 0:Ol.comp)==="Table"&&(Ol==null?void 0:Ol.name)&&oe.includes(Ol.name)&&(!gl||ur===gl)&&Al.push(Ol),Array.isArray(Ol==null?void 0:Ol.children)&&$l(Ol.children,Al,ur),Array.isArray(Ol==null?void 0:Ol.tab)&&$l(Ol.tab,Al,ur),Array.isArray(Ol==null?void 0:Ol.choice)&&$l(Ol.choice,Al,ur)}return Al},Ya=$l(Qa||[]),Cl=new Map;for(const _l of Ya)_l!=null&&_l.name&&!Cl.has(_l.name)&&Cl.set(_l.name,_l);const Ka=oe.map(_l=>Cl.get(_l)).filter(Boolean);if(!Ka||Ka.length===0)return rl.ElMessage.warning("未找到需要导出的表(推力、真空、压力、温度、流量)");const vl=_l=>{const Al=new Map,Yl=(Ol,ur=[])=>{if(Array.isArray(Ol))for(const dr of Ol){const Gl=((dr==null?void 0:dr.label)??"").toString().trim(),or=Gl?[...ur,Gl]:[...ur];if(Array.isArray(dr==null?void 0:dr.children)&&dr.children.length>0)Yl(dr.children,or);else{const ir=((dr==null?void 0:dr.prop)??"").toString();if(!ir)continue;const lr=Gl||ir,nr=(or.length>0?[...ur,lr]:[lr]).join(".");Al.set(ir,nr)}}};return Yl(_l,[]),Al},Xa=(_l,Al)=>{const Yl=vl(_l||[]),ur=(na.getAllLeafNodes(_l||[])||[]).filter(Gl=>(Gl==null?void 0:Gl.prop)&&(Gl==null?void 0:Gl.type)!=="operate"&&(Gl==null?void 0:Gl.label)!=="操作"&&(Gl==null?void 0:Gl.prop)!=="operate"),dr=Array.isArray(Al)?Al:[];return dr.length===0?[]:dr.map(Gl=>{const or={};return ur.forEach(Vr=>{const ir=String(Vr.prop),lr=Yl.get(ir)||String(Vr.label||Vr.prop);or[lr]=(Gl==null?void 0:Gl[ir])??""}),or})},ml=Ka.map(_l=>{var dr,Gl;const Al=(_l==null?void 0:_l.compData)||[];let Yl=(dr=Al==null?void 0:Al.find(or=>(or==null?void 0:or.key)==="header"))==null?void 0:dr.contents;Array.isArray(Yl==null?void 0:Yl[0])&&(Yl=Yl[0]);const Ol=((Gl=Al==null?void 0:Al.find(or=>(or==null?void 0:or.key)==="tableContents"))==null?void 0:Gl.contents)||[];if(!Array.isArray(Yl)||Yl.length===0||!Array.isArray(Ol)||Ol.length===0)return null;const ur=Xa(Yl||[],Ol||[]);return!Array.isArray(ur)||ur.length===0?null:{类型:_l==null?void 0:_l.name,数据:ur}}).filter(Boolean);if(!ml||ml.length===0)return rl.ElMessage.warning("没有可导出的数据(推力、真空、压力、温度、流量均为空)");const Tl=await fa(ma),Nl={试验代号:ma,试验日期:Tl,ParaForm:ml},hr=await it().catch(()=>""),Ll=await I.exportParaformApi(Nl,hr);if(((Ue=Ll==null?void 0:Ll.data)==null?void 0:Ue.code)===200&&((Va=(la=Ll==null?void 0:Ll.data)==null?void 0:la.result)!=null&&Va.Excel文件)){const _l=Ll.data.result.Excel文件,Al=await I.platformDownloadFile({url:_l}),Yl=new Blob([Al.data],{type:"application/vnd.ms-excel"}),Ol=URL.createObjectURL(Yl),ur=I.dayjs().format("YYYYMMDD"),Gl=`${(ma||"UNKNOWN").trim()||"UNKNOWN"}_${ur}_paraform.xls`,or=document.createElement("a");or.href=Ol,or.download=Gl,or.style.display="none",document.body.appendChild(or),or.click(),setTimeout(()=>{document.body.removeChild(or),URL.revokeObjectURL(Ol)},100);const Vr=Array.isArray((ea=(Ba=Ll==null?void 0:Ll.data)==null?void 0:Ba.result)==null?void 0:ea.warnings)?Ll.data.result.warnings:[];if(Vr.length>0){const ir=Vr.map((lr,nr)=>`${nr+1}. ${(lr==null?void 0:lr.field)||"未知字段"}:${(lr==null?void 0:lr.message)||""}`).join(`
24
+ `);rl.ElMessage.warning({message:`导出成功,但存在以下提示:
25
+ ${ir}`,duration:5e3,showClose:!0})}else rl.ElMessage.success("导出成功")}else rl.ElMessage.error(((Ga=Ll==null?void 0:Ll.data)==null?void 0:Ga.message)||"导出失败")}catch(oe){console.error("导出paraform失败:",oe),rl.ElMessage.error("导出失败:"+((oe==null?void 0:oe.message)||"未知错误"))}finally{Ca.close()}}else if(d!=null&&d.includes("导出")&&d!=="导出paraform"){if(d==="导出选中"&&((ra=ar.value)==null?void 0:ra.length)===0)return rl.ElMessage.warning(`请先勾选${d}的数据`);if(d==="导出全部"&&((Ra=Ce.value)==null?void 0:Ra.length)===0)return rl.ElMessage.warning("暂无数据导出");let Ca=["序号",...(Ea=(se=De.value)==null?void 0:se.map(he=>he==null?void 0:he.prop))==null?void 0:Ea.filter(he=>he!=="操作")],oe=d==="导出全部"?Ce.value:ar.value;const E=["id","sort","tableEditType","create_time","update_time","source_table","create_user_id","update_user_id","department_id","relatedId"];oe=oe==null?void 0:oe.map(he=>Object.fromEntries(Object.entries(he).filter(([ma])=>!E.includes(ma)))),Ca=["序号",...Ca],oe=oe==null?void 0:oe.map((he,ma)=>({序号:ma+1,...he}));let Re=(u==null?void 0:u.compName)||"表格信息";Oo(oe,Re,Ca,Re)}else if(d==="OCR识别")il.value=!0,_a.value=[],de.value=1,Fa.value.clear(),ja.value.clear(),Ee.value=0;else if(d==="迁移")i.selectRow=f,i.show=!0;else if(d==="生成方法"){let Ca=await _f(f),oe;f!==""?oe=[f]:oe=I.cloneDeep(Ce.value),oe=oe==null?void 0:oe.map(Re=>(Re.输出值=Ca,Re));const E={fixContent:oe,buttonName:"编辑",relatedContents:u==null?void 0:u.related,columns:De.value,name:u==null?void 0:u.compName};ze("change",E)}else if(((ta=z==null?void 0:z.extra)==null?void 0:ta.type)==="methodButton"){let Ca;f!==""?Ca=[f]:Ca=I.cloneDeep(Ce.value);const E={fixContent:await ui(Ca,De==null?void 0:De.value,"Manual",Ce.value),buttonName:"methodButton",relatedContents:u==null?void 0:u.related,columns:De.value,name:u==null?void 0:u.compName};ze("change",E)}}},Wc=async(d,f)=>{var z,O,$,N,Z,ae,H,ve,we,Ve,Me,Ue,la,Va,Ba,ea,Ga,ra,Ra,se;try{let Ea,ta;const Ca=(z=ie.value[ga.value+k])==null?void 0:z.filter(Oa=>{var pl;return((pl=Oa==null?void 0:Oa.key)==null?void 0:pl.type)==="structureMethod"}),oe=(O=ie.value[ga.value+k])==null?void 0:O.filter(Oa=>{var pl;return((pl=Oa==null?void 0:Oa.key)==null?void 0:pl.type)==="structure"}),E=Ca==null?void 0:Ca.find(Oa=>{var pl,Qa;return((Qa=(pl=Oa==null?void 0:Oa.value)==null?void 0:pl.pageData)==null?void 0:Qa.method)==="保存"});if(!E)return;const Re=(ae=(Z=ie.value[(N=($=E==null?void 0:E.value)==null?void 0:$.pageData)==null?void 0:N.path])==null?void 0:Z.filter(Oa=>{var pl;return((pl=Oa==null?void 0:Oa.key)==null?void 0:pl.type)==="data"}))==null?void 0:ae.find(Oa=>{var pl,Qa,gl,bl;return((Qa=(pl=Oa==null?void 0:Oa.value)==null?void 0:pl.tableData)==null?void 0:Qa.算法名称)===((bl=(gl=E==null?void 0:E.value)==null?void 0:gl.pageData)==null?void 0:bl.method)});if(!Re)return;const he={buttonName:(ve=(H=E==null?void 0:E.value)==null?void 0:H.pageData)==null?void 0:ve.method,api:(Ve=(we=Re==null?void 0:Re.value)==null?void 0:we.tableData)==null?void 0:Ve.算法体,content:oe==null?void 0:oe.map(Oa=>{var pl;return(pl=Oa==null?void 0:Oa.value)==null?void 0:pl.pageData}),extraContent:[],extraValues:(Ue=(Me=E==null?void 0:E.value)==null?void 0:Me.pageData)==null?void 0:Ue.data,methodName:(Va=(la=E==null?void 0:E.value)==null?void 0:la.pageData)==null?void 0:Va.path};if(!d)return;const ma={...d,compData:(Ba=d==null?void 0:d.compData)==null?void 0:Ba.map(Oa=>{var pl;return(Oa==null?void 0:Oa.key)==="formContent"?{...Oa,contents:(pl=Oa==null?void 0:Oa.contents)==null?void 0:pl.map(Qa=>(Qa==null?void 0:Qa.prop)===f?{...Qa,value:""}:Qa)}:Oa})},sa={key:{pageKey:ga.value+k,parentTable:"",systemKey:sessionStorage.getItem("systemKey"),type:"structure"},value:{pageData:ma}},fa=await rl.axios.post(he.api,sa,{headers:{"Content-Type":"application/json"}});return((ea=fa==null?void 0:fa.data)==null?void 0:ea.code)===200&&(Ea=(ra=(Ga=fa==null?void 0:fa.data)==null?void 0:Ga.result)==null?void 0:ra.latestReportCode,ta=(se=(Ra=fa==null?void 0:fa.data)==null?void 0:Ra.result)==null?void 0:se.status),{newMainKeyValue:Ea,newStatus:ta}}catch(Ea){throw rl.ElMessage.error(Ea),new Error(Ea)}},Ei=a.reactive({prop:"状态",value:""});a.ref(["系统自动生成信息","审批意见"]);const Kc=async(d,f,z)=>{var H,ve;let O=d==null?void 0:d[f==null?void 0:f.prop],$=1,N,Z;const ae=I.cloneDeep(ga).value+k+O;if(ae){Ei.value="",N=(H=ie.value[ae])==null?void 0:H.filter(Me=>{var Ue;return((Ue=Me==null?void 0:Me.key)==null?void 0:Ue.type)==="structure"});const we=N==null?void 0:N.find(Me=>{var Ue,la,Va;return((Va=(la=(Ue=Me==null?void 0:Me.value)==null?void 0:Ue.pageData)==null?void 0:la.comp)==null?void 0:Va.toUpperCase())==="FORM"});Z={...(ve=we==null?void 0:we.value)==null?void 0:ve.pageData,id:we==null?void 0:we.id};const Ve=await Wc(Z,f==null?void 0:f.prop);if(Ei.value=Ve==null?void 0:Ve.newStatus,Ve!=null&&Ve.newMainKeyValue)return Ve==null?void 0:Ve.newMainKeyValue}if(Ce.value.some(we=>(we==null?void 0:we[f==null?void 0:f.prop])===O)){const we=O;for(;Ce.value.some(Ve=>(Ve==null?void 0:Ve[f==null?void 0:f.prop])===`${we}(${$})`);)$++;O=`${we}(${$})`}return O},Yc=async(d,f,z)=>{var N,Z,ae,H;let O,$;if(await Kc(z==null?void 0:z.data,z==null?void 0:z.firstCol),O=I.cloneDeep(ga).value+k,$=I.cloneDeep(O)+`loading${((N=Vl.value)==null?void 0:N.account)||((Z=Vl.value)==null?void 0:Z.账号)}`,f){const ve=(H=(ae=ie.value[$])==null?void 0:ae.filter(we=>{var Ve;return((Ve=we==null?void 0:we.key)==null?void 0:Ve.parentTable)===""}))==null?void 0:H.map(we=>{var Ve;return{id:we==null?void 0:we.id,...(Ve=we==null?void 0:we.value)==null?void 0:Ve.pageData}});(ve==null?void 0:ve.length)>0||await na.loadingConstruct(O,$,null,null,null),Ge.setRouteToChildPath(I.cloneDeep(ga).value),Qe.setActiveMenuPath($)}else Ge.setRouteToChildPath(I.cloneDeep(ga).value),Qe.setActiveMenuPath($)},Gc=()=>{Ke.value=!1,Ye.value=[],Da.value=!1},At=d=>{var N,Z,ae,H,ve,we,Ve,Me,Ue,la,Va,Ba,ea,Ga,ra,Ra,se,Ea,ta,Ca,oe;const f=[];pe.value=I.cloneDeep(De.value),(Z=na.getColumnChild((N=I.cloneDeep(De.value))==null?void 0:N.filter(E=>(E==null?void 0:E.label)!=="操作")))==null||Z.forEach((E,Re)=>{var he,ma,sa;E!=null&&E.formType&&((he=E==null?void 0:E.formType)==null?void 0:he.toUpperCase())==="SELECT"||E!=null&&E.menuId?f.push({label:(ma=E==null?void 0:E.prop)!=null&&ma.includes(".")?E==null?void 0:E.prop:(E==null?void 0:E.label)??(E==null?void 0:E.prop)??"",name:(E==null?void 0:E.prop)??"t"+Re,prop:E==null?void 0:E.prop,type:"Select",value:(d==null?void 0:d[E==null?void 0:E.prop])??(E==null?void 0:E.value)??"",id:(E==null?void 0:E.id)??Re,contents:(E==null?void 0:E.options)??[],width:1,isFormColHidden:E==null?void 0:E.isFormColHidden,relatedValueId:E==null?void 0:E.relatedValueId,disabled:E==null?void 0:E.disabled,menus:E==null?void 0:E.menus,groups:E==null?void 0:E.groups,words:E==null?void 0:E.words,allSelectionContents:(E==null?void 0:E.allSelectionContents)??[],filterContent:E==null?void 0:E.filterContent,disabled:(E==null?void 0:E.prop)==="disabled"?!0:E==null?void 0:E.disabled,filter:E==null?void 0:E.filter,bindMenus:E==null?void 0:E.bindMenus,isMainPath:E==null?void 0:E.isMainPath,required:(E==null?void 0:E.required)??!1,relatedContents:E==null?void 0:E.relatedContents,mainKey:E==null?void 0:E.mainKey,relatedContents:E==null?void 0:E.relatedContents,functionName:E==null?void 0:E.functionName,functionRelatedWords:E==null?void 0:E.functionRelatedWords,calculatorFilter:E==null?void 0:E.calculatorFilter}):f.push({label:(sa=E==null?void 0:E.prop)!=null&&sa.includes(".")?E==null?void 0:E.prop:(E==null?void 0:E.label)??(E==null?void 0:E.prop)??"",prop:E==null?void 0:E.prop,name:(E==null?void 0:E.prop)??"t"+Re,type:!(E!=null&&E.formType)||(E==null?void 0:E.formType)===""?"Input":E==null?void 0:E.formType,value:(E==null?void 0:E.formType)==="Upload"?(d==null?void 0:d[E==null?void 0:E.prop])??"{}":(d==null?void 0:d[E==null?void 0:E.prop])??(E==null?void 0:E.value)??"",id:(E==null?void 0:E.id)??Re,contents:(E==null?void 0:E.options)??[],width:1,isFormColHidden:E==null?void 0:E.isFormColHidden,disabled:(E==null?void 0:E.prop)==="disabled"?!0:E==null?void 0:E.disabled,relatedValueId:E==null?void 0:E.relatedValueId,menus:E==null?void 0:E.menus,groups:E==null?void 0:E.groups,words:E==null?void 0:E.words,filter:E==null?void 0:E.filter,bindMenus:E==null?void 0:E.bindMenus,isMainPath:E==null?void 0:E.isMainPath,required:(E==null?void 0:E.required)??!1,relatedContents:E==null?void 0:E.relatedContents,mainKey:E==null?void 0:E.mainKey,relatedContents:E==null?void 0:E.relatedContents,functionName:E==null?void 0:E.functionName,functionRelatedWords:E==null?void 0:E.functionRelatedWords,calculatorFilter:E==null?void 0:E.calculatorFilter})}),d===""||!d||(Je.value=(d==null?void 0:d.id)??"");let z=na.getColumnChild((ae=I.cloneDeep(De.value))==null?void 0:ae.filter(E=>(E==null?void 0:E.label)!=="操作"));Be.value&&((H=Be.value)==null?void 0:H.length)>0&&(Be.value=(ve=I.cloneDeep(Be).value)==null?void 0:ve.map(E=>{var he;let Re=(E==null?void 0:E.prop)||((he=z==null?void 0:z.find(ma=>(ma==null?void 0:ma.label)===(E==null?void 0:E.label)))==null?void 0:he.prop);return Re&&(E.value=d[Re]),E})),Q.value=Be.value&&((we=Be.value)==null?void 0:we.length)>0?na.getTableFormToForm(Be.value):f,Q.value=((Ve=Q.value)==null?void 0:Ve.map(E=>({...E,disabled:(E==null?void 0:E.prop)==="disabled"?!0:E==null?void 0:E.disabled})))??Q.value;let O=[],$=((la=(Ue=(Me=u.itemData)==null?void 0:Me.filter(E=>(E==null?void 0:E.key)==="filter"))==null?void 0:Ue[0])==null?void 0:la.contents)??"";if($=$a.analyzeSplitToContent($,","),($==null?void 0:$.length)>0&&(O=$.flat()),(O==null?void 0:O.length)>0){let E=O==null?void 0:O.filter(fa=>fa==null?void 0:fa.includes("@Type"));if(E=E==null?void 0:E[(E==null?void 0:E.length)-1],(E==null?void 0:E[(E==null?void 0:E.length)-1])===","&&(E=E==null?void 0:E.slice(0,(E==null?void 0:E.length)-1)),E){let fa=(Ba=(Va=E==null?void 0:E.replace("=",L))==null?void 0:Va.split(L))==null?void 0:Ba[1];((ea=fa==null?void 0:fa.trim())==null?void 0:ea.toUpperCase())==="MANUAL"&&(u==null||u.index,Q.value=(Ga=Q.value)==null?void 0:Ga.map((Oa,pl)=>Oa))}let Re=(ra=Q.value)==null?void 0:ra.filter(fa=>fa==null?void 0:fa.mainKey),he;Re==null||Re.forEach(fa=>{var pl;if(he!==void 0)return;let Oa=fa==null?void 0:fa.menus;((pl=Re==null?void 0:Re.filter(Qa=>Qa==null?void 0:Qa.mainKey))==null?void 0:pl.length)>1&&(he=Oa,fa==null||fa.groups)});let ma=[],sa=new Map;if(Re==null||Re.forEach(fa=>{var Oa,pl,Qa,gl,bl,$l,Ya,Cl,Ka,vl,Xa,ml,Tl;if((Oa=fa==null?void 0:fa.prop)!=null&&Oa.includes(".")){let Nl=[];sa.get(((Qa=(pl=fa==null?void 0:fa.prop)==null?void 0:pl.split("."))==null?void 0:Qa[0])+(fa!=null&&fa.isMainPath?0:1)+((gl=fa==null?void 0:fa.groups)==null?void 0:gl[0]))&&(Nl=sa.get((($l=(bl=fa==null?void 0:fa.prop)==null?void 0:bl.split("."))==null?void 0:$l[0])+(fa!=null&&fa.isMainPath?0:1)+((Ya=fa==null?void 0:fa.groups)==null?void 0:Ya[0]))),Nl.push(fa),sa.set(((Ka=(Cl=fa==null?void 0:fa.prop)==null?void 0:Cl.split("."))==null?void 0:Ka[0])+(fa!=null&&fa.isMainPath?0:1)+((vl=fa==null?void 0:fa.groups)==null?void 0:vl[0]),Nl)}else{let Nl=[];sa.get("normal"+(fa!=null&&fa.isMainPath?0:1)+((Xa=fa==null?void 0:fa.groups)==null?void 0:Xa[0]))&&(Nl=sa.get("normal"+(fa!=null&&fa.isMainPath?0:1)+((ml=fa==null?void 0:fa.groups)==null?void 0:ml[0]))),Nl.push(fa),sa.set("normal"+(fa!=null&&fa.isMainPath?0:1)+((Tl=fa==null?void 0:fa.groups)==null?void 0:Tl[0]),Nl)}}),ma=Array.from(sa.values()),(ma==null?void 0:ma.length)>0)for(let fa in ma){let Oa=ma==null?void 0:ma[fa];if((Oa==null?void 0:Oa.length)!==1){if((Oa==null?void 0:Oa.length)>1){let pl=Oa==null?void 0:Oa.map(vl=>vl==null?void 0:vl.prop),Qa=Oa==null?void 0:Oa.map(vl=>vl==null?void 0:vl.label),gl=Oa==null?void 0:Oa.map(vl=>vl==null?void 0:vl.value),bl=(Ra=I.cloneDeep(Oa))==null?void 0:Ra[0],$l=(se=Q.value)==null?void 0:se.findIndex(vl=>(vl==null?void 0:vl.prop)===(bl==null?void 0:bl.prop)),Ya=(Ea=Q.value)==null?void 0:Ea.slice(0,$l),Cl=(Ca=Q.value)==null?void 0:Ca.slice($l,(ta=Q.value)==null?void 0:ta.length);bl.label=Qa==null?void 0:Qa.join("·"),bl.value=gl==null?void 0:gl.join(" "),bl.value.trim()===""&&(bl.value=""),bl.prop=pl==null?void 0:pl.join("·");let Ka=Oa==null?void 0:Oa.map(vl=>{var Xa;return(Xa=vl==null?void 0:vl.words)==null?void 0:Xa.join(".")});bl.relatedWords=Ka,bl.usingType="parent",Cl.unshift(bl),Q.value=[...Ya,...Cl],Q.value=(oe=Q.value)==null?void 0:oe.map(vl=>(pl!=null&&pl.find(Xa=>Xa===(vl==null?void 0:vl.prop))&&(vl.isFormColHidden=!0,vl.relatedWords=Ka),vl))}}}}},Jc=()=>{var f;const d=(f=s.value)==null?void 0:f.$el;d&&$a.Sortable.create(d,{animation:150,handle:".col-drag-icon",ghostClass:"sortable-ghost",onEnd:z=>{var Z;const{oldIndex:O,newIndex:$}=z;if(O===$)return;const N=xn.value.splice(O,1)[0];xn.value.splice($,0,N),De.value=(Z=De.value)==null?void 0:Z.slice().sort((ae,H)=>{if(ae.label==="操作")return 1;if(H.label==="操作")return-1;const ve=xn.value.findIndex(Ve=>Ve.label===ae.label),we=xn.value.findIndex(Ve=>Ve.label===H.label);return ve-we})}})};a.onMounted(()=>{je.value=window.innerWidth-240*2,window.addEventListener("keydown",Ut)});const Xc=()=>{a.nextTick(()=>{Jc()})},Zo=(d,f)=>{var O;if(!d&&!(d!=null&&d.children))return{contents:d,currentSelectContents:void 0};let z;return d.children=(O=d.children)==null?void 0:O.map($=>{var N,Z;if(($==null?void 0:$.id)===Je.value){let ae={};for(let H in $){let ve=(N=f==null?void 0:f.find(we=>(we==null?void 0:we.prop)===H))==null?void 0:N.label;ve?ae[H]=(Z=Il.value)==null?void 0:Z[ve]:ae[H]=$[H]??""}$=Object.assign(ae,Il.value),z=$}else{let ae=Zo($,f);$=ae==null?void 0:ae.contents,z=ae==null?void 0:ae.currentSelectContents}return $}),{contents:d,currentSelectContents:z}},Si=(d,f)=>{let z,O;return d!=null&&d.find($=>($==null?void 0:$.id)===Je.value)?z=d==null?void 0:d.map($=>{var N,Z,ae;if(($==null?void 0:$.id)===Je.value){let H={};for(let we in $){let Ve=(N=f==null?void 0:f.find(Me=>(Me==null?void 0:Me.prop)===we))==null?void 0:N.label;Ve?H[we]=((Z=Il.value)==null?void 0:Z[Ve])??"":H[we]=$[we]??""}let ve=Il.value;for(let we in H)(ae=Il.value)!=null&&ae[we]||(ve[we]=(H==null?void 0:H[we])??"");$=ve,O=$}return $}):z=d==null?void 0:d.map($=>{var N,Z,ae,H;if(($==null?void 0:$.id)===Je.value){let ve={};for(let we in $){let Ve=(N=f==null?void 0:f.find(Me=>(Me==null?void 0:Me.prop)===we))==null?void 0:N.label;Ve?ve[we]=(Z=Il.value)==null?void 0:Z[Ve]:ve[we]=$[we]??""}$=Object.assign(ve,Il.value),O=$}else $=(ae=Zo($,f))==null?void 0:ae.contents,O=(H=Zo($,f))==null?void 0:H.currentSelectContents;return $}),{newContents:z,currentSelectContents:O}},Di=(d,f,z)=>{var O,$;return d[f==null?void 0:f.prop]=z,typeof d.id=="number"&&(d.id=(O=d.id)==null?void 0:O.toString()),d.children&&(($=d.children)==null?void 0:$.length)>0&&(d.children=d.children.map(Di)),d},Bi=d=>{var z;const f=[];return f.push({...d}),d!=null&&d.children&&Array.isArray(d.children)&&((z=d.children)==null||z.forEach(O=>{f.push(...Bi(O))})),(f==null?void 0:f.length)>0?f==null?void 0:f.map(O=>{const $={...O};return delete $.children,$}):[]},lo=["Pacific6000数据采集装置.通道号","通道号"],zt=d=>{if(!d)return"";const f=lo.map(z=>d==null?void 0:d[z]).find(z=>z!=null&&String(z).trim()!=="");return f==null?"":String(f).trim()},Qo=async(d,f=void 0)=>{if(!d)return!1;try{const z=Ue=>{var la,Va,Ba;return Ue?typeof(Ue==null?void 0:Ue.value)=="string"?Ue.value:((Ba=(Va=(la=Ue==null?void 0:Ue._custom)==null?void 0:la.value)==null?void 0:Va.value)==null?void 0:Ba.value)||"":""},O=Array.isArray(mn.value)?mn.value:[],$=z(O.find(Ue=>(Ue==null?void 0:Ue.condition)==="child")),N=(ga.value||"").replace(/\/+$/,""),Z=$?`${N}/${$}`:N,ae=await Pr(Z||ga.value,!1),H=String(pa.value||"").trim(),ve=Ue=>String(Ue||"").trim(),we=(Ue,la=[],Va="")=>{if(!Array.isArray(Ue))return la;for(const Ba of Ue){const ea=ve((Ba==null?void 0:Ba.choiceName)||(Ba==null?void 0:Ba.name0)||Va);(Ba==null?void 0:Ba.comp)==="Table"&&(!H||ea===H)&&la.push(Ba),Array.isArray(Ba==null?void 0:Ba.children)&&we(Ba.children,la,ea),Array.isArray(Ba==null?void 0:Ba.tab)&&we(Ba.tab,la,ea),Array.isArray(Ba==null?void 0:Ba.choice)&&we(Ba.choice,la,ea)}return la},Ve=we(ae||[]),Me=String((u==null?void 0:u.compName)||"");return Ve.some(Ue=>{var Va,Ba;const la=((Ba=(Va=Ue==null?void 0:Ue.compData)==null?void 0:Va.find(ea=>(ea==null?void 0:ea.key)==="tableContents"))==null?void 0:Ba.contents)||[];return!Array.isArray(la)||la.length===0?!1:la.some(ea=>{if(String((Ue==null?void 0:Ue.name)||"")===Me&&(ea==null?void 0:ea.id)===f)return!1;const ra=zt(ea);return!!ra&&ra===d})})}catch{return(Ce.value||[]).some(O=>{if((O==null?void 0:O.id)===f)return!1;const $=zt(O);return!!$&&$===d})}},Mt=async(d=!0,f,z)=>{var ve,we,Ve,Me,Ue,la,Va,Ba,ea,Ga,ra,Ra,se,Ea,ta,Ca,oe,E,Re,he,ma,sa,fa,Oa,pl,Qa,gl,bl,$l,Ya,Cl;if(Il.value){const Ka=(we=na.getColumnChild((ve=I.cloneDeep(De.value))==null?void 0:ve.filter(Xa=>(Xa==null?void 0:Xa.label)!=="操作")))==null?void 0:we.filter(Xa=>(Xa==null?void 0:Xa.required)===!0);for(let Xa=0;Xa<((Ka==null?void 0:Ka.length)??0);Xa++){const ml=Ka[Xa],Tl=ml==null?void 0:ml.prop,Nl=(ml==null?void 0:ml.label)??Tl,hr=(Ve=Il.value)==null?void 0:Ve[Tl];if(hr===""||hr===null||hr===void 0||Array.isArray(hr)&&hr.length===0){rl.ElMessage.error(`${Nl}不能为空`);return}}const vl=zt(Il.value);if(vl&&await Qo(vl,Je.value||void 0)){rl.ElMessage.warning("当前任务下通道号不能重复,请重新选择");return}}let O=na.getColumnChild((Me=I.cloneDeep(De.value))==null?void 0:Me.filter(Ka=>(Ka==null?void 0:Ka.label)!=="操作")),$,N=I.cloneDeep(Ce.value);if(!Il.value){da.value=!1;return}if(Je.value===""){Fe.value++;let Ka;Ka={id:Fe.value.toString()};try{Ka.sort=Nn(0,Ce.value||[])}catch{}Ka!=null&&Ka.children&&(Ka={...Ka,children:(Ue=Ka.children)==null?void 0:Ue.map(Xa=>Di(Xa,f,z))});const vl=Object.assign(Il.value,Ka);N.unshift(vl),$=vl}else N=(la=Si(N,O))==null?void 0:la.newContents,$=(Va=Si(N,O))==null?void 0:Va.currentSelectContents;const Z=(Ba=u.itemData)==null?void 0:Ba.filter(Ka=>(Ka==null?void 0:Ka.key)==="childTree")[0];if(((ea=Z==null?void 0:Z.contents)==null?void 0:ea.length)>0){Le.value="编辑";const Ka=[];N==null||N.forEach((ml,Tl)=>{var hr;let Nl={};if(Array.isArray(ml)){let Ll=[];ml==null||ml.filter(_l=>!(_l!=null&&_l.id)).forEach((_l,Al)=>{var Yl,Ol,ur,dr,Gl,or,Vr;if((Ol=(Yl=Br.value)==null?void 0:Yl[Al])!=null&&Ol.prop&&!Array.isArray(_l)){let ir={};ir[Br.value[Al].column]=_l,Ia!=null&&Ia.value&&((ur=Ia==null?void 0:Ia.value)==null?void 0:ur.length)>0&&((dr=Ia==null?void 0:Ia.value)!=null&&dr.find(lr=>JSON.stringify(lr==null?void 0:lr[0])===JSON.stringify(ir)))&&(Ll=(Gl=Ia==null?void 0:Ia.value)==null?void 0:Gl.find(lr=>JSON.stringify(lr==null?void 0:lr[0])===JSON.stringify(ir))),Ll&&Ll.length>0?Nl[Br.value[Al].prop]=Ll!=null&&Ll.find(lr=>{var nr;return((nr=Object.keys(lr))==null?void 0:nr[0])===Br.value[Al].column})?(or=Ll==null?void 0:Ll.find(lr=>{var nr;return((nr=Object.keys(lr))==null?void 0:nr[0])===Br.value[Al].column}))==null?void 0:or[Br.value[Al].column]:_l:Nl[Br.value[Al].prop]=_l}else Array.isArray(_l)&&((Vr=Br.value[Al])!=null&&Vr.prop?Nl[Br.value[Al].prop]=_l:Nl.children=di(_l,Br.value))})}else Nl=ml;if(Array.isArray(ml)&&ml.some(Ll=>Ll==null?void 0:Ll.id)){const Ll=(hr=ml==null?void 0:ml.find(_l=>_l.id))==null?void 0:hr.id;Ka.push(Object.assign(Nl,{id:Xt(Ll)}))}else Nl.id?Ka.push(Nl):Ka.push(Object.assign(Nl,{id:Tl.toString()}))});const vl=(Ce.value||[]).map(ml=>String(ml==null?void 0:ml.id)),Xa=Zt(Ka,vl);Ce.value=zi(Xa,Z,De.value)}Ti(Ce.value),Nr.value=Ce.value;const ae=nf(Nr.value,In.value,N);let H=[];if(P.value?(H=(Ga=I.cloneDeep(P).value.singleContent)==null?void 0:Ga.filter(Ka=>(Ka==null?void 0:Ka.id)!==($==null?void 0:$.id)),H.push($)):H=[$],zl.value){const Ka={content:ae,singleContent:((ra=Z==null?void 0:Z.contents)==null?void 0:ra.length)>0?H==null?void 0:H.flatMap(Bi):H,index:u==null?void 0:u.index,buttonName:"编辑",column:De.value,parentTableId:u==null?void 0:u.parentTableId};Ge.setCacheUpdatingData(Ka)}if((Ra=De.value)==null||Ra.forEach(Ka=>{(Ka==null?void 0:Ka.formType)==="Upload"&&($[Ka.prop]=$[Ka.prop]===""?"{}":typeof $[Ka.prop]!="string"?JSON.stringify($[Ka.prop]):$[Ka.prop])}),d){(Ca=(ta=(Ea=(se=u.itemData)==null?void 0:se.find(Xa=>(Xa==null?void 0:Xa.key)==="filterAllType"))==null?void 0:Ea.value)==null?void 0:ta.find(Xa=>(Xa==null?void 0:Xa.value)==="onConditionContents"))==null||Ca.content;let Ka=(oe=u.itemData)==null?void 0:oe.filter(Xa=>(Xa==null?void 0:Xa.key)==="filterAllType");Ka=Array.from(new Map(Ka.filter(Boolean).map((Xa,ml)=>[Xa.value,{...Xa,_idx:ml}])).values()).sort((Xa,ml)=>Xa._idx-ml._idx).map(({_idx:Xa,...ml})=>ml),Ka=(E=Ka==null?void 0:Ka[(Ka==null?void 0:Ka.length)-1])==null?void 0:E.value;const vl={fixContent:[$],buttonName:Le.value,relatedContents:u==null?void 0:u.related,columns:De.value,name:u==null?void 0:u.compName};Ge.setTableLoading(u==null?void 0:u.index),da.value=!1,Il.value=void 0,ze("change",vl)}if((ma=(he=(Re=Q.value)==null?void 0:Re[0])==null?void 0:he.optionUrl)!=null&&ma.menuId){da.value=!1;let Ka=(sa=u.itemData)==null?void 0:sa.filter(vl=>(vl==null?void 0:vl.key)==="filterAllType");if((Ka==null?void 0:Ka.length)>0){let vl=Ka==null?void 0:Ka.map(Tl=>Tl==null?void 0:Tl.value),Xa=(pl=(Oa=(fa=vl.flat().find(Tl=>{var Nl;return(Nl=Tl==null?void 0:Tl.content)==null?void 0:Nl.includes("@Num")}))==null?void 0:fa.content)==null?void 0:Oa.split(":"))==null?void 0:pl[1];((bl=(gl=(Qa=vl.flat().find(Tl=>{var Nl;return(Nl=Tl==null?void 0:Tl.content)==null?void 0:Nl.includes("@Type:")}))==null?void 0:Qa.content)==null?void 0:gl.split(":"))==null?void 0:bl[1])!=="Manual"&&(Xa=parseInt(Xa),Ce.value=(Cl=Ce.value)==null?void 0:Cl.slice((($l=Ce.value)==null?void 0:$l.length)-Xa,(Ya=Ce.value)==null?void 0:Ya.length))}}};a.onUnmounted(()=>{window.removeEventListener("keydown",Ut),De.value=[],Ce.value=[],pe.value=[],ka.value=[],Be.value=[],za.value=[],Ye.value=[],ca.value=[],Q.value=[],ar.value=[],s.value=null,Sn.value=""});const ro=async(d,f,z)=>{var Ue,la,Va,Ba,ea,Ga,ra,Ra,se,Ea,ta,Ca,oe;Rl.value=(z==null?void 0:z.prop)??(z==null?void 0:z.property);const O=I.cloneDeep(u.itemData),$=((Ue=O==null?void 0:O.find(E=>(E==null?void 0:E.key)==="header"))==null?void 0:Ue.contents)??[];let N=$==null?void 0:$.find((E,Re)=>{var he,ma,sa;return(E==null?void 0:E.prop)===Rl.value||(E==null?void 0:E.label)===Rl.value||(Re==null?void 0:Re.toString())===((sa=(ma=(he=Rl.value)==null?void 0:he.split("a"))==null?void 0:ma[1])==null?void 0:sa.toString())});const Z=na.getColumnChild((la=I.cloneDeep(De.value))==null?void 0:la.filter(E=>(E==null?void 0:E.label)!=="操作"));if(N||(N=Z==null?void 0:Z.find(E=>(E==null?void 0:E.prop)===Rl.value||(E==null?void 0:E.label)===Rl.value)),N&&!((Va=N==null?void 0:N.menus)!=null&&Va.length)&&!((Ba=N==null?void 0:N.groups)!=null&&Ba.length)&&!((ea=N==null?void 0:N.words)!=null&&ea.length)){const E=(Ga=Q.value)==null?void 0:Ga.find(Re=>(Re==null?void 0:Re.prop)===Rl.value);E&&(N={...N,menus:(E==null?void 0:E.menus)??(N==null?void 0:N.menus),groups:(E==null?void 0:E.groups)??(N==null?void 0:N.groups),words:(E==null?void 0:E.words)??(N==null?void 0:N.words),bindMenus:(E==null?void 0:E.bindMenus)??(N==null?void 0:N.bindMenus),isMainPath:(E==null?void 0:E.isMainPath)??(N==null?void 0:N.isMainPath),relatedContents:(E==null?void 0:E.relatedContents)??(N==null?void 0:N.relatedContents),endChildMenu:(E==null?void 0:E.endChildMenu)??(N==null?void 0:N.endChildMenu)})}if(N&&((ra=Q==null?void 0:Q.value)==null||ra.forEach(E=>{var Re,he,ma,sa,fa;(E==null?void 0:E.prop)===(N==null?void 0:N.prop)&&(E!=null&&E.endChildMenu)&&((Re=N==null?void 0:N.prop)!=null&&Re.includes(".")&&((ma=(he=N==null?void 0:N.prop)==null?void 0:he.split("."))==null?void 0:ma[0])!==((fa=(sa=E==null?void 0:E.prop)==null?void 0:sa.split("."))==null?void 0:fa[0])?N.endChildMenu=E==null?void 0:E.value:N.endChildMenu=E==null?void 0:E.endChildMenu)})),!N)return;const ae=Rl.value,H=(Ra=Ce.value)==null?void 0:Ra.findIndex(E=>(E==null?void 0:E.id)===(f==null?void 0:f.id));H!==-1&&ae&&(Ce.value[H]={...Ce.value[H],[ae]:d});const ve=E=>{Array.isArray(E)&&E.forEach(Re=>{Array.isArray(Re==null?void 0:Re.allSelectionContents)&&Re.allSelectionContents.length>0&&(Re.contactValue=Ce.value[H]??f),Array.isArray(Re==null?void 0:Re.children)&&Re.children.length>0&&ve(Re.children)})};ve(De.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 Ve=E=>{Array.isArray(E)&&E.forEach(Re=>{var ma,sa;if(((Re==null?void 0:Re.type)==="Select"||(Re==null?void 0:Re.formType)&&Re.formType.toUpperCase()==="SELECT"||(Re==null?void 0:Re.columnType)&&Re.columnType.toUpperCase()==="SELECT")&&Array.isArray(Re==null?void 0:Re.menus)&&Re.menus.length>0&&Re.menus[Re.menus.length-1]===""&&(N!=null&&N.isMainPath)&&(N!=null&&N.mainKey)){const fa=(ma=Re==null?void 0:Re.prop)!=null&&ma.includes(".")?Re.prop.split(".")[0]:null,Oa=(sa=N==null?void 0:N.prop)!=null&&sa.includes(".")?N.prop.split(".")[0]:null;(!fa||!Oa||fa===Oa)&&(Re.endChildMenu=we)}Array.isArray(Re==null?void 0:Re.children)&&Re.children.length>0&&Ve(Re.children)})};if(Ve(De.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 E=N!=null&&N.relatedContents&&((se=N==null?void 0:N.relatedContents)==null?void 0:se.length)>0?(Ea=N==null?void 0:N.relatedContents)==null?void 0:Ea.find(Re=>{var he,ma,sa,fa;return(Re==null?void 0:Re[(fa=(he=N==null?void 0:N.prop)==null?void 0:he.split("."))==null?void 0:fa[((sa=(ma=N==null?void 0:N.prop)==null?void 0:ma.split("."))==null?void 0:sa.length)-1]])===(N==null?void 0:N.value)}):await ls(N);if(E){const Re={...f};Z==null||Z.forEach(he=>{var ma,sa,fa,Oa,pl,Qa,gl,bl,$l,Ya,Cl,Ka,vl,Xa,ml,Tl;(he==null?void 0:he.prop)!==(N==null?void 0:N.prop)&&(N!=null&&N.relatedContents&&((ma=N==null?void 0:N.relatedContents)==null?void 0:ma.length)>0?(sa=he==null?void 0:he.prop)!=null&&sa.includes(".")&&((Oa=(fa=he==null?void 0:he.prop)==null?void 0:fa.split("."))==null?void 0:Oa[0])===((Qa=(pl=N==null?void 0:N.prop)==null?void 0:pl.split("."))==null?void 0:Qa[0])?Re[he.prop]=E[(Ya=(gl=he==null?void 0:he.prop)==null?void 0:gl.split("."))==null?void 0:Ya[(($l=(bl=he==null?void 0:he.prop)==null?void 0:bl.split("."))==null?void 0:$l.length)-1]]??Re[he.prop]:Re[he.prop]=(E==null?void 0:E[he.prop])??Re[he.prop]:$a.same((N==null?void 0:N.menus)??[],(he==null?void 0:he.menus)??[])&&$a.same((N==null?void 0:N.groups)??[],(he==null?void 0:he.groups)??[])&&!$a.same((N==null?void 0:N.words)??[],(he==null?void 0:he.words)??[])?(Cl=he==null?void 0:he.prop)!=null&&Cl.includes(".")&&((vl=(Ka=he==null?void 0:he.prop)==null?void 0:Ka.split("."))==null?void 0:vl[0])!==((ml=(Xa=N==null?void 0:N.prop)==null?void 0:Xa.split("."))==null?void 0:ml[0])||(Re[he.prop]=(E==null?void 0:E[(Tl=he==null?void 0:he.words)==null?void 0:Tl.join(".")])??(E==null?void 0:E[he.prop])??Re[he.prop]):(!(he!=null&&he.isMainPath)&&$a.same((N==null?void 0:N.bindMenus)??[],(he==null?void 0:he.bindMenus)??[]),Re[he.prop]=(E==null?void 0:E[he.prop])??Re[he.prop]))}),Ce.value=(ta=I.cloneDeep(Ce.value))==null?void 0:ta.map(he=>(he==null?void 0:he.id)===(f==null?void 0:f.id)?{...Re,id:he==null?void 0:he.id}:he)}}if((Ca=N==null?void 0:N.optionUrl)!=null&&Ca.menuSelect){let E="";Z==null||Z.forEach(ma=>{var sa,fa,Oa,pl,Qa;E===""&&((Oa=(fa=(sa=ma==null?void 0:ma.optionUrl)==null?void 0:sa.groupSelect)==null?void 0:fa[1])!=null&&Oa.includes("["))&&(E=(Qa=(pl=ma==null?void 0:ma.optionUrl)==null?void 0:pl.groupSelect)==null?void 0:Qa[1])});let Re=await pi(N),he;if(Re==null||Re.forEach(ma=>{var sa,fa,Oa,pl,Qa,gl,bl,$l,Ya,Cl;E===((fa=(sa=N==null?void 0:N.optionUrl)==null?void 0:sa.groupSelect)==null?void 0:fa[1])&&((Qa=(pl=(Oa=N==null?void 0:N.optionUrl)==null?void 0:Oa.groupSelect)==null?void 0:pl[1])!=null&&Qa.includes("["))&&((Cl=I.cloneDeep(ma))==null?void 0:Cl[(Ya=($l=(bl=(gl=N==null?void 0:N.optionUrl)==null?void 0:gl.groupSelect)==null?void 0:bl[1])==null?void 0:$l.replaceAll("[",""))==null?void 0:Ya.replaceAll("]","")])===(N==null?void 0:N.value)&&(he=ma)}),he){const ma={...f};Z==null||Z.forEach(sa=>{var fa,Oa,pl,Qa,gl,bl,$l,Ya,Cl,Ka,vl;(he!=null&&he[sa==null?void 0:sa.label]||he!=null&&he[(Qa=(pl=(Oa=(fa=sa==null?void 0:sa.optionUrl)==null?void 0:fa.groupSelect)==null?void 0:Oa[1])==null?void 0:pl.replaceAll("[",""))==null?void 0:Qa.replaceAll("]","")])&&(($l=(bl=(gl=sa==null?void 0:sa.optionUrl)==null?void 0:gl.groupSelect)==null?void 0:bl[1])!=null&&$l.includes("["))&&(ma[sa.prop]=(he==null?void 0:he[sa==null?void 0:sa.label])||(he==null?void 0:he[(vl=(Ka=(Cl=(Ya=sa==null?void 0:sa.optionUrl)==null?void 0:Ya.groupSelect)==null?void 0:Cl[1])==null?void 0:Ka.replaceAll("[",""))==null?void 0:vl.replaceAll("]","")]))}),Ce.value=(oe=I.cloneDeep(Ce.value))==null?void 0:oe.map(sa=>(sa==null?void 0:sa.id)===(f==null?void 0:f.id)?{...ma,id:sa==null?void 0:sa.id}:sa)}}},Zc=async d=>{var Ue,la,Va,Ba,ea,Ga,ra,Ra,se,Ea,ta,Ca;if(!d)return;const f=I.cloneDeep(Il.value||{});Il.value=d;const z=zt(f),O=zt(Il.value);if(O&&O!==z&&await Qo(O,Je.value||void 0)){rl.ElMessage.warning("当前任务下通道号不能重复,请重新选择"),lo.forEach(E=>{if(Object.prototype.hasOwnProperty.call(Il.value||{},E)||Object.prototype.hasOwnProperty.call(f||{},E)){const Re=(f==null?void 0:f[E])??"";Il.value[E]=Re,d[E]=Re}}),Q.value=(Q.value||[]).map(E=>{if(!(E!=null&&E.prop)||!lo.includes(E.prop))return E;const Re=(f==null?void 0:f[E.prop])??"";return{...E,value:Re,selectValue:Re===""?[]:[Re]}});return}let $=I.cloneDeep(u.itemData);$==null||$.map(oe=>{var E,Re,he,ma;return(oe==null?void 0:oe.key)==="header"&&(Array.isArray((E=oe.contents)==null?void 0:E[0])?oe.contents=(he=na.getColumnChild((Re=oe.contents)==null?void 0:Re[0]))==null?void 0:he.map((sa,fa)=>{var Oa,pl,Qa,gl,bl,$l;return((Qa=(pl=(Oa=Q.value)==null?void 0:Oa.find(Ya=>(Ya==null?void 0:Ya.prop)===(sa==null?void 0:sa.prop)))==null?void 0:pl.optionUrl)==null?void 0:Qa.multiple)===!0&&!Array.isArray((gl=Object.values(d))==null?void 0:gl[fa])?sa.value=[(bl=Object.values(d))==null?void 0:bl[fa]]:sa.value=($l=Object.values(d))==null?void 0:$l[fa],sa}):oe.contents=(ma=oe.contents)==null?void 0:ma.map((sa,fa)=>{var Oa,pl,Qa,gl,bl,$l;return((Qa=(pl=(Oa=Q.value)==null?void 0:Oa.find(Ya=>(Ya==null?void 0:Ya.prop)===(sa==null?void 0:sa.prop)))==null?void 0:pl.optionUrl)==null?void 0:Qa.multiple)===!0&&!Array.isArray((gl=Object.values(d))==null?void 0:gl[fa])?sa.value=[(bl=Object.values(d))==null?void 0:bl[fa]]:sa.value=($l=Object.values(d))==null?void 0:$l[fa],sa})),oe});let N=Q.value,Z=(Ue=$==null?void 0:$.find(oe=>(oe==null?void 0:oe.key)==="header"))==null?void 0:Ue.contents;if(Rl.value||(N=N==null?void 0:N.map(oe=>{var E;return oe.value=oe.value??((E=Z==null?void 0:Z.find((Re,he)=>(Re==null?void 0:Re.prop)===(oe==null?void 0:oe.name)))==null?void 0:E.value),oe})),!zr.value)return;let ae=I.cloneDeep(Rl.value);(la=Rl.value)!=null&&la.includes("·")&&(Rl.value=(Ba=(Va=Rl.value)==null?void 0:Va.split("·"))==null?void 0:Ba[0]);let H=(Ga=(ea=$==null?void 0:$.find(oe=>(oe==null?void 0:oe.key)==="header"))==null?void 0:ea.contents)==null?void 0:Ga.find((oe,E)=>(oe==null?void 0:oe.prop)===Rl.value);(ra=Q==null?void 0:Q.value)==null||ra.forEach(oe=>{var E,Re,he,ma,sa,fa,Oa,pl,Qa;(oe==null?void 0:oe.prop)===(H==null?void 0:H.prop)&&(oe!=null&&oe.endChildMenu)&&((E=H==null?void 0:H.prop)!=null&&E.includes(".")&&((he=(Re=H==null?void 0:H.prop)==null?void 0:Re.split("."))==null?void 0:he[0])!==((sa=(ma=oe==null?void 0:oe.prop)==null?void 0:ma.split("."))==null?void 0:sa[0])?H.endChildMenu=(Oa=(fa=oe==null?void 0:oe.value)==null?void 0:fa.split(" "))==null?void 0:Oa[0]:H.endChildMenu=(Qa=(pl=oe==null?void 0:oe.endChildMenu)==null?void 0:pl.split(" "))==null?void 0:Qa[0])});let ve=H!=null&&H.isMainPath&&(H!=null&&H.mainKey)?H==null?void 0:H.value:"",we=N,Ve=xe.value;if(Ve!=null&&Ve.find(oe=>(H==null?void 0:H.prop)===(oe==null?void 0:oe.key))&&(Ve=Ve==null?void 0:Ve.filter(oe=>(H==null?void 0:H.prop)!==(oe==null?void 0:oe.key))),Ve!=null&&Ve.find(oe=>ae===(oe==null?void 0:oe.key))&&(Ve=Ve==null?void 0:Ve.filter(oe=>ae!==(oe==null?void 0:oe.key))),(H==null?void 0:H.formType)==="Select"&&(we=we==null?void 0:we.map(oe=>{var E,Re,he,ma,sa,fa,Oa,pl,Qa,gl,bl,$l,Ya,Cl,Ka,vl;return(oe==null?void 0:oe.type)==="Select"&&(((E=oe==null?void 0:oe.allSelectionContents)==null?void 0:E.length)>0&&(oe.contactValue=d),((H==null?void 0:H.prop)===(oe==null?void 0:oe.prop)||ae===(oe==null?void 0:oe.prop))&&H&&(Array.isArray(H.value)&&((Re=H.value)==null?void 0:Re.length)>0&&((he=H.value)!=null&&he.every(Xa=>typeof Xa=="string"))?(Ve.push({key:oe==null?void 0:oe.prop,value:[(sa=H.value)==null?void 0:sa[((ma=H.value)==null?void 0:ma.length)-1]]}),oe.selectValue=(fa=Ve==null?void 0:Ve.find(Xa=>(Xa==null?void 0:Xa.key)===(oe==null?void 0:oe.prop)))==null?void 0:fa.value):Array.isArray(H.value)&&((Oa=H.value)==null?void 0:Oa.length)===0?(Ve=[],oe.selectValue=[],d[oe==null?void 0:oe.prop]=""):Array.isArray(oe.value)&&Ve.push({key:oe==null?void 0:oe.prop,value:[(pl=oe.value)==null?void 0:pl[(oe==null?void 0:oe.length)-1]]})),((gl=oe==null?void 0:oe.menus)==null?void 0:gl[((Qa=oe==null?void 0:oe.menus)==null?void 0:Qa.length)-1])===""&&(H!=null&&H.isMainPath)&&(H!=null&&H.mainKey)&&((bl=oe==null?void 0:oe.prop)!=null&&bl.includes(".")&&((Ya=($l=oe==null?void 0:oe.prop)==null?void 0:$l.split("."))==null?void 0:Ya[0])!==((Ka=(Cl=H==null?void 0:H.prop)==null?void 0:Cl.split("."))==null?void 0:Ka[0])||(oe.endChildMenu=(vl=ve==null?void 0:ve.split(" "))==null?void 0:vl[0]))),oe.value=(d==null?void 0:d[oe==null?void 0:oe.prop])??(oe==null?void 0:oe.value),oe})),xe.value=Ve,we!=null&&we.some(oe=>(oe==null?void 0:oe.functionName)&&(oe==null?void 0:oe.functionName)!=="")){let oe=await ui([d],De==null?void 0:De.value,"Auto",Ce.value);we=we==null?void 0:we.map(E=>{var Re;return E.value=((Re=oe==null?void 0:oe[0])==null?void 0:Re[E==null?void 0:E.prop])??E.value,E}),Il.value=oe==null?void 0:oe[0]}if(Q.value=we,H=Object.assign({},H??{},{relatedWords:(se=(Ra=Q==null?void 0:Q.value)==null?void 0:Ra.find(oe=>(oe==null?void 0:oe.prop)===(H==null?void 0:H.prop)))==null?void 0:se.relatedWords}),(H==null?void 0:H.mainKey)&&(H!=null&&H.value)&&(H==null?void 0:H.value)!==""){let oe=H!=null&&H.relatedContents&&((Ea=H==null?void 0:H.relatedContents)==null?void 0:Ea.length)>0?(ta=H==null?void 0:H.relatedContents)==null?void 0:ta.find(E=>{var Re,he,ma,sa;return(E==null?void 0:E[(sa=(Re=H==null?void 0:H.prop)==null?void 0:Re.split("."))==null?void 0:sa[((ma=(he=H==null?void 0:H.prop)==null?void 0:he.split("."))==null?void 0:ma.length)-1]])===(H==null?void 0:H.value)}):await ls(H);if(oe&&JSON.stringify(oe)!=="{}"){let E=we;E=E==null?void 0:E.map(he=>{var ma,sa,fa,Oa,pl,Qa,gl,bl,$l,Ya,Cl,Ka,vl,Xa,ml,Tl,Nl,hr,Ll,_l,Al;return(H==null?void 0:H.prop)===(he==null?void 0:he.prop)?he.value=(oe==null?void 0:oe[(ma=he==null?void 0:he.words)==null?void 0:ma.join(".")])??(oe==null?void 0:oe[he==null?void 0:he.prop])??oe[(pl=(sa=he==null?void 0:he.prop)==null?void 0:sa.split("."))==null?void 0:pl[((Oa=(fa=he==null?void 0:he.prop)==null?void 0:fa.split("."))==null?void 0:Oa.length)-1]]:H!=null&&H.relatedContents&&((Qa=H==null?void 0:H.relatedContents)==null?void 0:Qa.length)>0?he.value=(gl=he==null?void 0:he.prop)!=null&&gl.includes(".")&&(($l=(bl=he==null?void 0:he.prop)==null?void 0:bl.split("."))==null?void 0:$l[0])===((Cl=(Ya=H==null?void 0:H.prop)==null?void 0:Ya.split("."))==null?void 0:Cl[0])?oe[(ml=(Ka=he==null?void 0:he.prop)==null?void 0:Ka.split("."))==null?void 0:ml[((Xa=(vl=he==null?void 0:he.prop)==null?void 0:vl.split("."))==null?void 0:Xa.length)-1]]:(oe==null?void 0:oe[he==null?void 0:he.prop])??(he==null?void 0:he.value):$a.same((H==null?void 0:H.menus)??[],(he==null?void 0:he.menus)??[])&&$a.same((H==null?void 0:H.groups)??[],(he==null?void 0:he.groups)??[])&&!$a.same((H==null?void 0:H.words)??[],(he==null?void 0:he.words)??[])?(Tl=he==null?void 0:he.prop)!=null&&Tl.includes(".")&&((hr=(Nl=he==null?void 0:he.prop)==null?void 0:Nl.split("."))==null?void 0:hr[0])!==((_l=(Ll=H==null?void 0:H.prop)==null?void 0:Ll.split("."))==null?void 0:_l[0])||(he.value=(oe==null?void 0:oe[(Al=he==null?void 0:he.words)==null?void 0:Al.join(".")])??(oe==null?void 0:oe[he==null?void 0:he.prop])??he.value):(!(he!=null&&he.isMainPath)&&$a.same((H==null?void 0:H.bindMenus)??[],(he==null?void 0:he.bindMenus)??[]),he.value=(oe==null?void 0:oe[he==null?void 0:he.prop])??he.value),he}),Q.value=E;let Re={};(Ca=Q.value)==null||Ca.forEach(he=>{Re[he.prop]=he==null?void 0:he.value}),Il.value=Re}}zr.value=!0,U.value=!1},Qc=d=>d?(d==null?void 0:d.toUpperCase())==="INPUT"?"TEXTAREA":d:"TEXTAREA",eu=d=>{var N,Z;const f=(Z=(N=Be.value)==null?void 0:N.find(ae=>(ae==null?void 0:ae.label)===(d==null?void 0:d.label)))==null?void 0:Z.multiple,z=d==null?void 0:d.prop;if((d==null?void 0:d.formType)!="Select")return;Ce.value.forEach(ae=>{const H=ae==null?void 0:ae[z];f&&bo.isString(H)&&(ae[z]=[H]),!f&&!bo.isString(H)&&(ae[z]="")})},Ni=(d,f)=>{var z;return f==null||f.forEach(O=>{d[O==null?void 0:O.prop]=O==null?void 0:O.value}),d.children&&((z=d.children)==null?void 0:z.length)>0&&(d.children=d.children.map(O=>Ni(O,f))),d},ei=d=>{var z,O,$,N,Z,ae;At("");const f=(z=Q.value)==null?void 0:z.reduce((H,ve)=>(H[ve.name]=ve.value,H),{});if(((O=Object.keys(f))==null?void 0:O.length)>0){Il.value=f,Je.value="",Fe.value=($=Ce.value)==null?void 0:$.length,ca.value=(N=_e.value)==null?void 0:N.filter(ve=>(ve==null?void 0:ve.label)!=="新增");const H=(ae=(Z=pe.value)==null?void 0:Z.filter(ve=>(ve==null?void 0:ve.label)!=="操作"))==null?void 0:ae.map(ve=>{var Ve,Me,Ue;const we=(Me=(Ve=Be.value)==null?void 0:Ve.find(la=>(la==null?void 0:la.label)===(ve==null?void 0:ve.label)))==null?void 0:Me.multiple;return eu(ve),{...ve,contents:(ve==null?void 0:ve.options)??[],optionUrl:ve!=null&&ve.formMenuSelect&&((Ue=ve==null?void 0:ve.formMenuSelect)==null?void 0:Ue.length)>0?{groupSelect:ve==null?void 0:ve.groupSelect,menuSelect:ve==null?void 0:ve.formMenuSelect,selectRelateType:"",type:ve==null?void 0:ve.formType,multiple:we}:null}});De.value=H==null?void 0:H.map(ve=>Ni(ve,[{prop:"type",value:"edit"},{prop:"columnType",value:Qc(ve==null?void 0:ve.formType)||(ve==null?void 0:ve.columnType)}])),d==="createClick"&&(Le.value="新增",Mt(!0))}},ut={START:"开始时间",END:"结束时间",HOURS:"工时"},au=(d,f)=>Number(I.dayjs(f).diff(I.dayjs(d),"day",!0).toFixed(1)),Ti=d=>{var N;const f=u.itemData,z=(N=f==null?void 0:f.find(Z=>(Z==null?void 0:Z.key)==="header"))==null?void 0:N.contents,O=new Map;return z==null||z.forEach((Z,ae)=>{const{label:H}=Z;O.set(H,ae)}),!O.has(ut.START)||!O.has(ut.END)||!O.has(ut.HOURS)?d:d==null?void 0:d.map(Z=>{const ae=Z==null?void 0:Z[ut.START],H=Z==null?void 0:Z[ut.END],ve=au(ae,H);return ae&&H&&(Z[ut.HOURS]=`${ve}天`),Z})},Ai=(d,f,z=0)=>{if(z>((f==null?void 0:f.length)??""))return d;const O=f==null?void 0:f[z],$=new Map;for(const Z of d){const ae=Z[O];$.has(ae)||$.set(ae,[]),$.get(ae)&&$.get(ae).push(Z)}const N=[];for(const[Z,ae]of $){const[H,...ve]=ae,we={...H};z+1===((f==null?void 0:f.length)??"")?we.children=ae==null?void 0:ae.map(Ve=>(Ve.level=I.cloneDeep(z)+1,Ve)).filter((Ve,Me)=>Me!==0):ve.length>0&&(we.children=Ai(ve,f,z+1)),we.level=z,N.push(we)}return N},zi=(d,f,z)=>{var $;if(!(f!=null&&f.contents)||(($=f==null?void 0:f.contents)==null?void 0:$.length)===0)return d;let O=[];return O=Ai(d,f==null?void 0:f.contents,0),O},Mi=async(d,f)=>{var Ba,ea,Ga,ra,Ra,se,Ea,ta,Ca,oe,E,Re,he,ma,sa,fa,Oa,pl,Qa,gl,bl,$l,Ya,Cl,Ka,vl,Xa,ml,Tl,Nl,hr,Ll,_l,Al,Yl,Ol,ur,dr,Gl,or,Vr,ir,lr,nr,Ii,Li,Vi;const z=d==null?void 0:d.filter(ua=>(ua==null?void 0:ua.key)==="header");d==null||d.filter(ua=>(ua==null?void 0:ua.key)==="tableIndexColumn")[0];const O=d==null?void 0:d.filter(ua=>(ua==null?void 0:ua.key)==="childTree")[0];let $=!0;if((Ga=(ea=(Ba=d==null?void 0:d.find(ua=>(ua==null?void 0:ua.key)==="filterAllType"))==null?void 0:Ba.value)==null?void 0:ea.find(ua=>(ua==null?void 0:ua.value)==="onPamButtonContents"))!=null&&Ga.content){let ua=(se=(Ra=(ra=d==null?void 0:d.find(Sl=>(Sl==null?void 0:Sl.key)==="filterAllType"))==null?void 0:ra.value)==null?void 0:Ra.find(Sl=>(Sl==null?void 0:Sl.value)==="onPamButtonContents"))==null?void 0:se.content;ua=(Ea=ua==null?void 0:ua.split(":"))==null?void 0:Ea[1],ua=(ta=ua.slice(1,(ua==null?void 0:ua.length)-1))==null?void 0:ta.split(","),$=!!(ua!=null&&ua.find(Sl=>Sl==="操作"))}const N=d==null?void 0:d.find(ua=>(ua==null?void 0:ua.key)==="page"),Z=d==null?void 0:d.find(ua=>(ua==null?void 0:ua.key)==="rowButton"),ae=d==null?void 0:d.find(ua=>(ua==null?void 0:ua.key)==="extraButton"),H=d==null?void 0:d.filter(ua=>(ua==null?void 0:ua.key)==="tableContents"),ve=d==null?void 0:d.filter(ua=>(ua==null?void 0:ua.key)==="bottomButton"),we=d==null?void 0:d.filter(ua=>(ua==null?void 0:ua.key)==="tableIndex");Be.value=(oe=(Ca=d==null?void 0:d.filter(ua=>(ua==null?void 0:ua.key)==="tableToForm"))==null?void 0:Ca[0])==null?void 0:oe.contents,ba.value=(N==null?void 0:N.contents)??!0;let Ve=[];Zl.value===""?Ve=z==null?void 0:z[0]:Ve=(z==null?void 0:z.find(ua=>(ua==null?void 0:ua.selectLabel)==="("+Zl.value+")"))??(z==null?void 0:z.find(ua=>!(ua!=null&&ua.selectLabel)));let Me=[];Zl.value===""?Me=we==null?void 0:we[0]:Me=(we==null?void 0:we.find(ua=>(ua==null?void 0:ua.selectLabel)==="("+Zl.value+")"))??(we==null?void 0:we.find(ua=>!(ua!=null&&ua.selectLabel)));let Ue=[],la=[];if(((E=Ve==null?void 0:Ve.contents)==null?void 0:E.length)>0){let ua=[],Sl=Ve==null?void 0:Ve.contents;if(Array.isArray(Sl==null?void 0:Sl[0])&&((Re=Sl==null?void 0:Sl[0])!=null&&Re.every(nl=>!(nl!=null&&nl.children)))&&(Sl=Sl==null?void 0:Sl[0]),Sl.some(nl=>Array.isArray(nl)&&(nl==null?void 0:nl.find(qe=>qe.children))))ua=(he=na.getGradeColumns(Sl,$))==null?void 0:he[0],ua!=null&&ua.find(nl=>(nl==null?void 0:nl.label)==="操作")||ua.push({label:"操作",prop:"operate",type:"operate"});else{let nl=Sl.some(qe=>Array.isArray(qe))?Sl==null?void 0:Sl[0]:Sl;nl!=null&&nl.find(qe=>(qe==null?void 0:qe.label)==="操作")||nl.push({label:"操作",prop:"operate",type:"operate"}),nl==null||nl.forEach((qe,Jl)=>{var Tr,Cr,Ar,br,Zn,ft,ht,pr,hn,Fn,vt,Yr,jn,Fi,ji,Hi,Ui,qi,Wi,Ki;if((Cr=(Tr=ga.value)==null?void 0:Tr.split("/"))==null||Cr.forEach(Ql=>{var sr,Cn,Yi;Ql!==""&&((Yi=(Cn=(sr=Ql==null?void 0:Ql.split(k+"updateLoading"))==null?void 0:sr[0])==null?void 0:Cn.split(k+"loading"))==null||Yi[0])}),qe!=null&&qe.methodContent){let Ql=(Zn=(br=(Ar=qe==null?void 0:qe.methodContent)==null?void 0:Ar.replace("@","%%#"))==null?void 0:br.split("%%#"))==null?void 0:Zn[1];if(Ql=Ql==null?void 0:Ql.slice(0,(Ql==null?void 0:Ql.length)-1),Ql=na.contentTransArrayToAllNoExtra(Ql??"",","),(ft=Ql==null?void 0:Ql.find(sr=>sr==null?void 0:sr.includes("@Button")))!=null&&ft.includes("Prop")&&((ht=Ql==null?void 0:Ql.find(sr=>sr==null?void 0:sr.includes("Type")))!=null&&ht.includes("Manual"))){let sr=(hn=(pr=Ql==null?void 0:Ql.find(Cn=>Cn==null?void 0:Cn.includes("@Button")))==null?void 0:pr.split(":"))==null?void 0:hn[1];sr=((Yr=(vt=(Fn=sr==null?void 0:sr.replaceAll("[",""))==null?void 0:Fn.replaceAll("]",""))==null?void 0:vt.split(","))==null?void 0:Yr[1])??"算法执行",Ue.push(sr)}else if((jn=Ql==null?void 0:Ql.find(sr=>sr==null?void 0:sr.includes("@Button")))!=null&&jn.includes("Row")&&((Fi=Ql==null?void 0:Ql.find(sr=>sr==null?void 0:sr.includes("Type")))!=null&&Fi.includes("Manual"))){let sr=(Hi=(ji=Ql==null?void 0:Ql.find(Cn=>Cn==null?void 0:Cn.includes("@Button")))==null?void 0:ji.split(":"))==null?void 0:Hi[1];sr=((Wi=(qi=(Ui=sr==null?void 0:sr.replaceAll("[",""))==null?void 0:Ui.replaceAll("]",""))==null?void 0:qi.split(","))==null?void 0:Wi[1])??"算法执行",la.push(sr)}}(Ki=Be.value)==null||Ki.find(Ql=>(Ql==null?void 0:Ql.prop)===(qe==null?void 0:qe.prop)),ua.push({label:(qe==null?void 0:qe.label)==="操作"?$?"操作":"":(qe==null?void 0:qe.label)??"",prop:(qe==null?void 0:qe.label)==="操作"?"operate":(qe==null?void 0:qe.prop)??"a"+Jl,width:qe!=null&&qe.width?parseInt(qe.width):"",fixed:(qe==null?void 0:qe.fixed)??void 0,sortable:(qe==null?void 0:qe.sortable)??!1,filterable:(qe==null?void 0:qe.filterable)??!1,operable:(qe==null?void 0:qe.operable)??!1,showSummary:(qe==null?void 0:qe.showSummary)??!1,align:(qe==null?void 0:qe.align)??"left",showOverflowTooltip:(qe==null?void 0:qe.showOverflowTooltip)??!0,isNotDrag:(qe==null?void 0:qe.isNotDrag)??!1,isEditCol:(qe==null?void 0:qe.isEditCol)??!1,isOperate:(qe==null?void 0:qe.isOperate)??!1,id:(qe==null?void 0:qe.id)??Jl,type:(qe==null?void 0:qe.label)==="操作"?"operate":void 0,formType:(qe==null?void 0:qe.formType)??(qe!=null&&qe.groupSelect?"Select":""),disabled:qe==null?void 0:qe.disabled,options:(qe==null?void 0:qe.options)??[],value:(qe==null?void 0:qe.value)??"",isExistChild:(qe==null?void 0:qe.isExistChild)??!1,mainKey:(qe==null?void 0:qe.mainKey)??Jl===0,allSelectionContents:(qe==null?void 0:qe.allContents)??[],filterContent:qe==null?void 0:qe.filterContents,menus:qe==null?void 0:qe.menus,groups:qe==null?void 0:qe.groups,words:qe==null?void 0:qe.words,filter:qe==null?void 0:qe.filter,bindMenus:qe==null?void 0:qe.bindMenus,fatherPath:qe==null?void 0:qe.fatherPath,isMainPath:qe==null?void 0:qe.isMainPath,required:(qe==null?void 0:qe.required)??!1,relatedContents:qe==null?void 0:qe.relatedContents,functionName:qe==null?void 0:qe.functionName,functionRelatedWords:qe==null?void 0:qe.functionRelatedWords,calculatorFilter:qe==null?void 0:qe.calculatorFilter,relatedPages:qe==null?void 0:qe.relatedPages})})}B.value=(ma=ve==null?void 0:ve[0])==null?void 0:ma.contents;const an=na.getNewColumnChild(ua),$i=nl=>Array.isArray(nl)?nl.map(qe=>(Array.isArray(qe==null?void 0:qe.children)&&qe.children.length>0?(qe.sortable=!1,$i(qe.children)):(qe==null?void 0:qe.prop)==="operate"||(qe==null?void 0:qe.label)==="操作"||(qe==null?void 0:qe.type)==="operate"||(qe.sortable=!1),qe)):nl;$i(an),await Ro(an),Df(ne.value,an),De.value=an,ka.value=an,n.value=(sa=De.value)==null?void 0:sa.map(nl=>nl==null?void 0:nl.label);let ln=(Oa=(fa=na.getAllLeafNodes(De.value))==null?void 0:fa.filter(nl=>(nl==null?void 0:nl.type)!=="operate"))==null?void 0:Oa.map((nl,qe)=>({prop:(nl==null?void 0:nl.prop)??"a"+qe,column:nl.label}));Br.value=ln;let Kr=[];Zl.value===""?Kr=H==null?void 0:H[0]:Kr=(H==null?void 0:H.find(nl=>(nl==null?void 0:nl.selectLabel)==="("+Zl.value+")"))??(H==null?void 0:H.find(nl=>!(nl!=null&&nl.selectLabel)));let Xn=Array.isArray((pl=Kr==null?void 0:Kr.contents)==null?void 0:pl[0])&&((Qa=Kr==null?void 0:Kr.contents)!=null&&Qa[0].every(nl=>Array.isArray(nl)))?(gl=Kr==null?void 0:Kr.contents)==null?void 0:gl[0]:Kr==null?void 0:Kr.contents;Me!=null&&Me.contents&&((bl=Me==null?void 0:Me.contents)==null?void 0:bl.length)!==0&&(Xn=($l=I.cloneDeep(Xn))==null?void 0:$l.map((nl,qe)=>{if(!Array.isArray(nl)){let Jl={};for(let Tr in nl)Tr!=="id"&&Tr!=="index"&&(Jl[Tr]=nl[Tr]);nl=Object.values(Jl)}return nl}));const hu=!!((Ya=De.value)!=null&&Ya.find(nl=>nl.prop==="index"));Xn=Zs(Xn,Me==null?void 0:Me.contents,hu);const dt=[];Xn==null||Xn.forEach((nl,qe)=>{var Tr;let Jl={};if(Array.isArray(nl)){let Cr=[];nl==null||nl.filter(Ar=>!(Ar!=null&&Ar.id)).forEach((Ar,br)=>{var Zn,ft,ht,pr,hn,Fn;if((Zn=ln==null?void 0:ln[br])!=null&&Zn.prop&&!Array.isArray(Ar)){let vt={};vt[ln[br].column]=Ar,Ia!=null&&Ia.value&&((ft=Ia==null?void 0:Ia.value)==null?void 0:ft.length)>0&&((ht=Ia==null?void 0:Ia.value)!=null&&ht.find(Yr=>JSON.stringify(Yr==null?void 0:Yr[0])===JSON.stringify(vt)))&&(Cr=(pr=Ia==null?void 0:Ia.value)==null?void 0:pr.find(Yr=>JSON.stringify(Yr==null?void 0:Yr[0])===JSON.stringify(vt))),Cr&&Cr.length>0?Jl[ln[br].prop]=Cr!=null&&Cr.find(Yr=>{var jn;return((jn=Object.keys(Yr))==null?void 0:jn[0])===ln[br].column})?(hn=Cr==null?void 0:Cr.find(Yr=>{var jn;return((jn=Object.keys(Yr))==null?void 0:jn[0])===ln[br].column}))==null?void 0:hn[ln[br].column]:Ar:Jl[ln[br].prop]=Ar}else Array.isArray(Ar)&&((Fn=ln[br])!=null&&Fn.prop?Jl[ln[br].prop]=Ar:Jl.children=di(Ar,ln))})}else Jl=nl;if(Array.isArray(nl)&&nl.some(Cr=>Cr==null?void 0:Cr.id)){const Cr=(Tr=nl==null?void 0:nl.find(Ar=>Ar.id))==null?void 0:Tr.id;dt.push(Object.assign(Jl,{id:Xt(Cr)}))}else Jl.id?dt.push(Jl):dt.push(Object.assign(Jl,{id:qe.toString()}))});try{const nl=JSON.parse(sessionStorage.getItem("ocr_last_saved_table")||"null"),qe=JSON.parse(sessionStorage.getItem("ocr_last_saved_ids")||"null"),Jl=nl==null?void 0:nl.tableId,Tr=nl==null?void 0:nl.compIndex;if(Jl&&Array.isArray(qe)&&qe.length>0&&String(Jl)===String(u==null?void 0:u.parentTableId)&&String(Tr)===String(u==null?void 0:u.index)){const Cr=new Set(dt.map(br=>String(br==null?void 0:br.id))),Ar=qe.filter(br=>!Cr.has(String(br)));if(Ar.length>0){const br=nl==null?void 0:nl.pageKey,Zn=br!=null&&br.startsWith("/")?br.substring(1):br;((f==null?void 0:f[br])||(f==null?void 0:f[Zn])||[]).filter(pr=>{var hn,Fn;return((hn=pr==null?void 0:pr.key)==null?void 0:hn.type)==="data"&&String((Fn=pr==null?void 0:pr.key)==null?void 0:Fn.tableId)===String(Jl)&&Ar.includes(pr==null?void 0:pr.id)}).forEach(pr=>{var hn;Cr.has(String(pr==null?void 0:pr.id))||(dt.push({id:pr==null?void 0:pr.id,...((hn=pr==null?void 0:pr.value)==null?void 0:hn.tableData)||{}}),Cr.add(String(pr==null?void 0:pr.id)))})}}}catch{}let pt=null;try{const nl=`ocr_committed_temp_ids_v1:${String((u==null?void 0:u.parentTableId)??"")}:${String((u==null?void 0:u.index)??"")}`,qe=JSON.parse(sessionStorage.getItem(nl)||"null");Array.isArray(qe)&&qe.length>0&&(pt=new Set(qe.map(Jl=>String(Jl))))}catch{}const Ri=Array.from(((Cl=me.value)==null?void 0:Cl.values())||[]).filter(nl=>!(!(nl!=null&&nl._isOCRRow&&(nl==null?void 0:nl._ocrTableId)===(u==null?void 0:u.index))||pt&&pt.has(String(nl==null?void 0:nl.id)))),vu=(Ce.value||[]).map(nl=>String(nl==null?void 0:nl.id)),Pi=Zt(dt,vu);if(Ce.value=zi(Pi,O,De.value),wa.value=Pi,(Ka=wa.value)==null||Ka.forEach(nl=>{var qe;(qe=me.value)==null||qe.set(nl.id,nl)}),pt&&pt.size>0)try{const nl=new Set(Array.from(pt.values()));Ce.value=(Ce.value||[]).filter(qe=>!nl.has(String(qe==null?void 0:qe.id))),wa.value=(wa.value||[]).filter(qe=>!nl.has(String(qe==null?void 0:qe.id))),nl.forEach(qe=>{var Jl,Tr;try{(Tr=(Jl=me.value)==null?void 0:Jl.delete)==null||Tr.call(Jl,qe)}catch{}})}catch{}const no=JSON.parse(sessionStorage.getItem("ocr_last_saved_table")||"null"),ai=JSON.parse(sessionStorage.getItem("ocr_last_saved_ids")||"null");if(no&&Array.isArray(ai)&&ai.length>0&&String(no==null?void 0:no.compIndex)===String(u==null?void 0:u.index)){const nl=new Set((wa.value||[]).map(qe=>String(qe==null?void 0:qe.id)));ai.filter(qe=>!nl.has(String(qe)))}if(Ri.length>0){const nl=new Set((Ce.value||[]).map(Jl=>Jl==null?void 0:Jl.id)),qe=Ri.filter(Jl=>!nl.has(Jl.id));qe.length>0&&(Ce.value=[...Ce.value||[],...qe],wa.value=[...wa.value||[],...qe],qe.forEach(Jl=>{var Tr;return(Tr=me.value)==null?void 0:Tr.set(Jl.id,Jl)}))}}else De.value=[],pe.value=[],Ce.value=[],wa.value=[],me.value=new Map;if(la=[...new Set(la)],la=la==null?void 0:la.map(ua=>({label:ua,type:"methodButton"})),((vl=Z==null?void 0:Z.contents)==null?void 0:vl.length)>0?za.value=Z==null?void 0:Z.contents:za.value=[],za.value=[...za.value,...la],Ue=[...new Set(Ue)],Ue=Ue==null?void 0:Ue.map(ua=>({label:ua,type:"methodButton"})),((Xa=ae==null?void 0:ae.contents)==null?void 0:Xa.length)>0)if((Nl=(Tl=(ml=d==null?void 0:d.find(ua=>(ua==null?void 0:ua.key)==="filterAllType"))==null?void 0:ml.value)==null?void 0:Tl.find(ua=>(ua==null?void 0:ua.value)==="onButtonContents"))!=null&&Nl.content){let ua=(_l=(Ll=(hr=d==null?void 0:d.find(Sl=>(Sl==null?void 0:Sl.key)==="filterAllType"))==null?void 0:hr.value)==null?void 0:Ll.find(Sl=>(Sl==null?void 0:Sl.value)==="onButtonContents"))==null?void 0:_l.content;if(ua=(Al=ua==null?void 0:ua.split(":"))==null?void 0:Al[1],ua=(Yl=ua.slice(1,(ua==null?void 0:ua.length)-1))==null?void 0:Yl.split(","),ca.value=(Ol=ae==null?void 0:ae.contents)==null?void 0:Ol.filter(Sl=>ua==null?void 0:ua.find(an=>an===(Sl==null?void 0:Sl.label))),_e.value=(ur=ae==null?void 0:ae.contents)==null?void 0:ur.filter(Sl=>ua==null?void 0:ua.find(an=>an===(Sl==null?void 0:Sl.label))),(dr=ae==null?void 0:ae.contents)!=null&&dr.some(Sl=>(Sl==null?void 0:Sl.label)==="OCR识别")&&!((Gl=ca.value)!=null&&Gl.some(Sl=>(Sl==null?void 0:Sl.label)==="OCR识别"))){const Sl=(or=ae==null?void 0:ae.contents)==null?void 0:or.find(an=>(an==null?void 0:an.label)==="OCR识别");ca.value=[...ca.value,Sl],_e.value=[..._e.value,Sl]}_.value=!!(ua!=null&&ua.find(Sl=>Sl==="搜索")),j.value=!!(ua!=null&&ua.find(Sl=>Sl==="块状显示"))}else ca.value=ae==null?void 0:ae.contents,_e.value=ae==null?void 0:ae.contents;else ca.value=[],_e.value=[];ca.value=[...ca.value,...Ue],_e.value=[..._e.value,...Ue],typeof ga.value=="string"&&ga.value==="设备管理/试验设备"&&(u==null?void 0:u.compName)==="设备列表"?((Vr=ca.value)!=null&&Vr.some(ua=>(ua==null?void 0:ua.label)==="OCR识别")||(ca.value=[...ca.value||[],{label:"OCR识别"}]),(ir=_e.value)!=null&&ir.some(ua=>(ua==null?void 0:ua.label)==="OCR识别")||(_e.value=[..._e.value||[],{label:"OCR识别"}])):(ca.value=(ca.value||[]).filter(ua=>(ua==null?void 0:ua.label)!=="OCR识别"),_e.value=(_e.value||[]).filter(ua=>(ua==null?void 0:ua.label)!=="OCR识别")),(lr=ca.value)!=null&&lr.some(ua=>(ua==null?void 0:ua.label)==="切换视图")||(ca.value=[...ca.value||[],{label:"切换视图"}]),(nr=_e.value)!=null&&nr.some(ua=>(ua==null?void 0:ua.label)==="切换视图")||(_e.value=[..._e.value||[],{label:"切换视图"}]),Fe.value=((Ii=Ce==null?void 0:Ce.value)==null?void 0:Ii.length)??0,Ti(Ce.value),Nr.value=Ce.value,zl.value&&(De.value=(Vi=(Li=pe.value)==null?void 0:Li.filter(ua=>(ua==null?void 0:ua.label)!=="操作"))==null?void 0:Vi.map(ua=>{var Sl;return{...ua,type:"edit",optionUrl:ua!=null&&ua.formMenuSelect&&((Sl=ua==null?void 0:ua.formMenuSelect)==null?void 0:Sl.length)>0?{groupSelect:ua==null?void 0:ua.groupSelect,menuSelect:ua==null?void 0:ua.formMenuSelect,selectRelateType:"",type:ua==null?void 0:ua.formType}:null}}),ei())};a.watch(()=>[u.itemData,Zl.value,Wn.value,In.value,Ia==null?void 0:Ia.value],async()=>{var d,f,z,O,$,N;if((d=u==null?void 0:u.itemData)!=null&&d.find(Z=>(Z==null?void 0:Z.key)==="columnPath")&&!((f=F.value)!=null&&f.find(Z=>{var ae,H;return(Z==null?void 0:Z.key)===((H=(ae=u==null?void 0:u.itemData)==null?void 0:ae.find(ve=>(ve==null?void 0:ve.key)==="columnPath"))==null?void 0:H.contents)}))){let Z=F.value,ae={key:(O=(z=u==null?void 0:u.itemData)==null?void 0:z.find(H=>(H==null?void 0:H.key)==="columnPath"))==null?void 0:O.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};Z!=null&&Z.find(H=>(H==null?void 0:H.key)===(ae==null?void 0:ae.key))?Z=Z==null?void 0:Z.map(H=>((H==null?void 0:H.key)===(ae==null?void 0:ae.key)&&(H.value=ae.value),H)):Z.push(ae),Ge.setTableViewContents(Z)}await Mi(u.itemData,u.allMapContents)},{deep:!0,immediate:!0}),a.watch(()=>u==null?void 0:u.operatingForm,d=>{d!=null&&d.form&&(At(d==null?void 0:d.form),Le.value=d==null?void 0:d.dialogTitle,Sa.value=!0,da.value=!0)},{immediate:!0,deep:!0});const lu=()=>{var d;(d=M.value)!=null&&d.includes("read")&&(zl.value=!zl.value)},ru=()=>{cr.value=!cr.value};a.watch(()=>{var d;return(d=u==null?void 0:u.config)==null?void 0:d.viewport},d=>{var f;M.value=d,(d==null?void 0:d.length)===0?zl.value=!1:(d!=null&&d.includes("read")||(zl.value=!0),d!=null&&d.includes("edit")||(zl.value=!1)),S.value=((f=u==null?void 0:u.config)==null?void 0:f.showIndex)||zl.value},{immediate:!0}),a.watch(()=>zl.value,d=>{var f;d?(ei("viewChange"),Ge.setCacheUpdatingData(null)):(ca.value=_e.value,De.value=ka.value,P.value&&(Ge.setTableLoading(u==null?void 0:u.index),ze("change",P.value))),S.value=d||((f=u==null?void 0:u.config)==null?void 0:f.showIndex),ar.value=[]},{immediate:!0}),a.watch(()=>{var d;return(d=Vn.value)==null?void 0:d.length},d=>{d===0&&(ke.currentPage=1)}),a.watch(()=>u==null?void 0:u.compNames,d=>{i.contents=[{label:"列表名",prop:"groupName",name:"列表名",type:"select",value:"",id:0,contents:d||[],width:1}]},{immediate:!0}),a.ref(!1);const nu=(d,f)=>{var z;ei("createClick"),f===ke.pageSize&&(ke.currentPage=Math.ceil(((z=Ce.value)==null?void 0:z.length)/ke.pageSize))},tu=async(d,f,z)=>{var $,N,Z,ae,H;const O=(f==null?void 0:f.property)??(f==null?void 0:f.prop);if(O&&lo.includes(O)&&z!==void 0&&z!==null&&String(z).trim()!==""){const ve=String(z).trim();if(await Qo(ve,d==null?void 0:d.id)){rl.ElMessage.warning("当前任务下通道号不能重复,请重新选择");const Ve=($=Ce.value)==null?void 0:$.findIndex(Ue=>(Ue==null?void 0:Ue.id)===(d==null?void 0:d.id)),Me=Ve!==-1?(Z=(N=Ce.value)==null?void 0:N[Ve])==null?void 0:Z[O]:void 0;O&&(d[O]=Me??"");return}}if(zl.value){const ve=d==null?void 0:d.id;ve!=null&&(b.value.has(ve)||b.value.set(ve,I.cloneDeep(d)),c.value.add(ve));const we=(ae=Ce.value)==null?void 0:ae.findIndex(Ve=>(Ve==null?void 0:Ve.id)===(d==null?void 0:d.id));we!==-1&&O&&(Ce.value[we]={...Ce.value[we],[O]:z}),ro(z,d,f);return}ro(z,d,f),Il.value=I.cloneDeep(d),Je.value=d==null?void 0:d.id,Fe.value=(H=Ce.value)==null?void 0:H.length,Le.value=d!=null&&d._isTemp?"新增":"编辑",Mt(!1)},ou=async()=>{var d,f;try{const z=[];if(u!=null&&u.related&&Array.isArray(u.related)&&(console.log("props.related",u.related),u.related.forEach(O=>{if(typeof O=="string"&&O.includes("content_")){const $=O.split("_")[1];$&&(z.push(`content_${$}`),z.push(`struct_${$}`))}})),z.length===0&&(u!=null&&u.itemData)){const O=(f=(d=u.itemData)==null?void 0:d.find($=>($==null?void 0:$.key)==="contentTableId"))==null?void 0:f.contents;O&&(z.push(`content_${O}`),z.push(`struct_${O}`))}return z}catch(z){return console.error("获取 tableNames 失败:",z),[]}},iu=async(d,f,z)=>{var N,Z;if(!z||typeof z!="string"||z.trim()===""){const ae=(f==null?void 0:f.property)??(f==null?void 0:f.prop),H=`${d==null?void 0:d.id}:${ae}`;h.value.delete(H),y.value.set(H,!1);return}const O=(f==null?void 0:f.property)??(f==null?void 0:f.prop),$=`${d==null?void 0:d.id}:${O}`;y.value.set($,!0);try{const ae=await ou();if(ae.length===0){console.warn("未找到同名表,跳过全局搜索"),h.value.delete($),y.value.set($,!1);return}const H=parseInt((N=Vl.value)==null?void 0:N.plat_id);if(!H){console.warn("platId 无效,跳过全局搜索"),h.value.delete($),y.value.set($,!1);return}const ve=await I.getAllTables({platId:H,tableNames:ae}),we=((Z=ve==null?void 0:ve.data)==null?void 0:Z.result)||[],Ve=[],Me=[];for(let Ue=0;Ue<we.length;Ue+=2)Ue+1<we.length&&Me.push([we[Ue],we[Ue+1]]);Me.forEach(([Ue,la])=>{var Ra;if(!Array.isArray(Ue)||Ue.length===0||!Array.isArray(la)||la.length===0)return;const Va=la[0];let Ba=((Ra=Va==null?void 0:Va.结构)==null?void 0:Ra.contents)??[];if(!Array.isArray(Ba)||Ba.length===0)return;let ea=I.cloneDeep(Ba);if(Array.isArray(ea==null?void 0:ea[0])&&(ea=na.getColumnChild(ea[0])),!Array.isArray(ea)||ea.length===0||!ea.some(se=>(se==null?void 0:se.prop)===O))return;[...Ue].sort((se,Ea)=>{const ta=Number((se==null?void 0:se.update_time)??0);return Number((Ea==null?void 0:Ea.update_time)??0)-ta}).slice(0,20).forEach(se=>{const Ea=se[O];if(Ea!=null){const ta=String(Ea);ta.toLowerCase().includes(z.toLowerCase())&&Ve.findIndex(oe=>{var E;return se.id&&((E=oe.rowData)==null?void 0:E.id)===se.id?!0:oe.label===ta})===-1&&Ve.push({label:ta,rowData:I.cloneDeep(se),sourceTable:(Va==null?void 0:Va.source_table)||""})}})}),h.value.set($,Ve)}catch(ae){console.error("全局搜索建议失败:",ae),h.value.delete($)}finally{y.value.set($,!1)}},su=(d,f,z)=>{if(!zl.value)return;const O=(f==null?void 0:f.property)??(f==null?void 0:f.prop),$=(f==null?void 0:f.formType)||(f==null?void 0:f.columnType)||"";if($&&$.toUpperCase()!=="INPUT"&&$!=="")return;const N=`${d==null?void 0:d.id}:${O}`;if(v.has(N)&&clearTimeout(v.get(N)),!z||z.trim()===""){h.value.delete(N),y.value.set(N,!1);return}const Z=setTimeout(()=>{iu(d,{prop:O,property:O},z),v.delete(N)},300);v.set(N,Z)};function cu(d,f){const z=`${d==null?void 0:d.id}:${(f==null?void 0:f.property)??(f==null?void 0:f.prop)}`;return h.value.get(z)||[]}const uu=(d,f,z)=>{var we;if(!z||!z.rowData)return;const O=z.rowData,$=d==null?void 0:d.id,N=(f==null?void 0:f.property)??(f==null?void 0:f.prop),ae=(na.getAllLeafNodes(De.value)||[]).filter(Ve=>(Ve==null?void 0:Ve.type)!=="operate"&&(Ve==null?void 0:Ve.label)!=="操作"&&(Ve==null?void 0:Ve.prop)!=="operate");ae.forEach(Ve=>{const Me=Ve==null?void 0:Ve.prop;Me&&O[Me]!==void 0&&(d[Me]=O[Me])});const H=(we=Ce.value)==null?void 0:we.findIndex(Ve=>(Ve==null?void 0:Ve.id)===$);H!==-1&&ae.forEach(Ve=>{const Me=Ve==null?void 0:Ve.prop;Me&&O[Me]!==void 0&&(Ce.value[H][Me]=O[Me])}),$!=null&&(b.value.has($)||b.value.set($,I.cloneDeep(d)),c.value.add($));const ve=`${$}:${N}`;h.value.delete(ve),y.value.set(ve,!1),ro(d[N],d,f)},Lr=d=>{var H,ve,we,Ve,Me,Ue,la,Va,Ba,ea,Ga;const{row:f,column:z,item:O,slotData:$}=d;let N=f!=null&&f[z==null?void 0:z.prop]||(f==null?void 0:f[z==null?void 0:z.prop])===0?((ve=(H=f==null?void 0:f[z==null?void 0:z.prop])==null?void 0:H[0])==null?void 0:ve.contents)??((f==null?void 0:f[z==null?void 0:z.prop])===0?"0":f==null?void 0:f[z==null?void 0:z.prop]):((Ve=(we=f==null?void 0:f[O==null?void 0:O.prop])==null?void 0:we[0])==null?void 0:Ve.contents)??(f==null?void 0:f[O==null?void 0:O.prop])??((Ue=(Me=$==null?void 0:$[O==null?void 0:O.prop])==null?void 0:Me[0])==null?void 0:Ue.contents)??($==null?void 0:$[O==null?void 0:O.prop])??((Ba=(Va=f==null?void 0:f[(la=O==null?void 0:O.child)==null?void 0:la.prop])==null?void 0:Va[0])==null?void 0:Ba.contents)??(f==null?void 0:f[(ea=O==null?void 0:O.child)==null?void 0:ea.prop]),ae=Array.isArray(N)&&!(N!=null&&N.every(ra=>typeof ra=="string"||typeof ra=="number"))?"查看":N;if(ae=Array.isArray(ae)?ae.join(","):ae,(z==null?void 0:z.formType)==="Date")if(!ae||ae===""||ae===null||ae===void 0)ae="";else{const ra=I.dayjs(ae,["YYYY-MM-DD","YYYY/MM/DD","YYYY年MM月DD日","YYYYMMDD"],!0);ae=ra.isValid()?ra.format("YYYYMMDD"):ae??""}return Array.isArray(z==null?void 0:z.relatedPages)&&((Ga=z==null?void 0:z.relatedPages)==null?void 0:Ga.length)>0&&(ae="详情页"),ae},du=d=>{var ve,we,Ve,Me,Ue,la,Va,Ba,ea,Ga;const{row:f,column:z,item:O,slotData:$}=d;let N=f!=null&&f[z==null?void 0:z.prop]?((we=(ve=f==null?void 0:f[z==null?void 0:z.prop])==null?void 0:ve[0])==null?void 0:we.contents)??(f==null?void 0:f[z==null?void 0:z.prop]):((Me=(Ve=f==null?void 0:f[O==null?void 0:O.prop])==null?void 0:Ve[0])==null?void 0:Me.contents)??(f==null?void 0:f[O==null?void 0:O.prop])??((la=(Ue=$==null?void 0:$[O==null?void 0:O.prop])==null?void 0:Ue[0])==null?void 0:la.contents)??($==null?void 0:$[O==null?void 0:O.prop])??((ea=(Ba=f==null?void 0:f[(Va=O==null?void 0:O.child)==null?void 0:Va.prop])==null?void 0:Ba[0])==null?void 0:ea.contents)??(f==null?void 0:f[(Ga=O==null?void 0:O.child)==null?void 0:Ga.prop]);const ae=Array.isArray(N)&&!(N!=null&&N.every(ra=>typeof ra=="string"||typeof ra=="number")),H=Array.isArray(N)&&(N==null?void 0:N.find(ra=>ra==null?void 0:ra.url));return ae&&H},pu=d=>{var $,N;if(!(d!=null&&d.column))return!1;const f=ga.value==="试验任务/任务管理",z=(u==null?void 0:u.compName)==="任务列表",O=(($=d==null?void 0:d.column)==null?void 0:$.label)==="任务状态"||((N=d==null?void 0:d.column)==null?void 0:N.prop)==="任务状态";return f&&z&&O},fu=(d,f)=>d.find(z=>Object.values(z).some(O=>O===f));return a.watch(()=>Ae.value,async d=>{if(d){Qe.setContentLoading(!0),await a.nextTick();const f=fu(Ce.value,d==null?void 0:d.data);if(!f)return Qe.setContentLoading(!1);await Pn(d==null?void 0:d.data,null,f,{data:d==null?void 0:d.data}),Qe.setContentLoading(!1)}},{deep:!0,immediate:!0}),a.watch(()=>u==null?void 0:u.cacheNewData,d=>{var f;d&&(Array.isArray(d)?d.forEach(z=>{var O,$,N,Z,ae;if(换,String(z==null?void 0:z.compId)===String(u==null?void 0:u.index)&&(z!=null&&z.resId)&&((O=z==null?void 0:z.data)!=null&&O.id)){const H=($=z==null?void 0:z.data)==null?void 0:$.id,ve=z==null?void 0:z.resId;if(Ce.value=(N=Ce.value)==null?void 0:N.map(we=>{if((we==null?void 0:we.id)===H){const Ve={...we,id:ve};return delete Ve._isOCRRow,delete Ve._ocrTableId,Ve}return we}),(ae=(Z=me.value)==null?void 0:Z.has)!=null&&ae.call(Z,H)){const Ve={...me.value.get(H)||{},id:ve};delete Ve._isOCRRow,delete Ve._ocrTableId,me.value.delete(H),me.value.set(ve,Ve)}Te(u==null?void 0:u.index,H,ve)}}):String(d==null?void 0:d.compId)===String(u==null?void 0:u.index)&&(Ce.value=(f=Ce.value)==null?void 0:f.map(z=>{var O;if((z==null?void 0:z.id)===((O=d==null?void 0:d.data)==null?void 0:O.id)){const $={...z,id:d==null?void 0:d.resId};return delete $._isOCRRow,delete $._ocrTableId,$}return z})))},{immediate:!0,deep:!0}),(d,f)=>{var ea,Ga,ra,Ra;const z=a.resolveComponent("svg-icon"),O=a.resolveComponent("el-popover"),$=a.resolveComponent("el-switch"),N=a.resolveComponent("el-checkbox"),Z=a.resolveComponent("el-radio"),ae=a.resolveComponent("el-radio-group"),H=a.resolveComponent("el-checkbox-group"),ve=a.resolveComponent("el-button"),we=a.resolveComponent("el-icon"),Ve=a.resolveComponent("el-progress"),Me=a.resolveComponent("el-alert"),Ue=a.resolveComponent("el-table-column"),la=a.resolveComponent("el-table"),Va=a.resolveComponent("el-upload"),Ba=a.resolveComponent("el-text");return a.openBlock(),a.createElementBlock("div",d0,[Mr.value?(a.openBlock(),a.createBlock(fl.ssTable,{id:"excel-table",pageObj:ke,showIndex:S.value,isTree:(ea=l.compItem)==null?void 0:ea.isTree,summaryInfo:J,columns:De.value,defaultSort:X,isCardViewport:cr.value,checkedColumns:n.value,key:vn.value+De.value,tableData:Vn.value,isEditViewport:zl.value,isShowPagination:ba.value,isShowEdit:!1,isShowDelete:!1,allowSelect:x.value,onDbClickRow:Qt,extraButton:ca.value,rowButton:za.value,cacheExtraButtons:_e.value,isClearSelection:((Ga=ar.value)==null?void 0:Ga.length)===0,onDoCurrentChange:fn,onDoSizeChange:St,onSortChange:Ao,onContentClick:Pn,onRowClick:eo,onSelectChange:Vo,onCellChange:tu,onCellInput:su,onSelectSuggest:uu,onChange:ro,onPreview:Rn,onSubmitEditingTable:qt,onHandleColEditChange:jt,onHandleColTypeChange:Ht,onClickButton:Tn,onAddNewRow:Or,bottomButton:B.value},a.createSlots({headerButton:a.withCtx(se=>{var Ea,ta;return[l.showHeader?(a.openBlock(),a.createBlock(jp,{key:0,id:"tableHeaderButton",pageLayout:l.pageLayout,lockingPage:a.unref(ce)===a.unref(ga),filterValues:Ho.value,selectNums:(Ea=ar.value)==null?void 0:Ea.length,dataNums:(ta=Ce.value)==null?void 0:ta.length,compName:l.compName,isDevMode:l.isDevMode,buttons:se.buttons,onButtonClick:f[1]||(f[1]=(Ca,oe,E)=>Tn(Ca,oe,{extra:E})),columns:De.value,onFilter:Uo,onGetImportData:Mo,level:l.level,filterShow:_.value},null,8,["pageLayout","lockingPage","filterValues","selectNums","dataNums","compName","isDevMode","buttons","columns","level","filterShow"])):a.createCommentVNode("",!0)]}),viewport:a.withCtx(()=>{var se,Ea,ta,Ca;return[((se=Ce.value)==null?void 0:se.length)>0&&l.allowOperate&&j.value?(a.openBlock(),a.createElementBlock("div",h0,[(Ea=M.value)!=null&&Ea.includes("read")&&((ta=M.value)!=null&&ta.includes("edit"))&&((Ca=za.value)!=null&&Ca.some(oe=>(oe==null?void 0:oe.label)==="编辑"))&&!cr.value&&a.unref(ce)!==a.unref(ga)?(a.openBlock(),a.createElementBlock("span",{key:0,title:"编辑表格",onClick:lu},[a.createVNode(z,{name:"editTable",class:"view-icon"})])):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0)]}),rowCreate:a.withCtx(({row:se,index:Ea})=>[a.createElementVNode("span",{title:"新增",class:"row-create-wrap",onClick:ta=>nu(se,Ea)},[a.createVNode(z,{name:"rowCreate",style:{width:"10px",height:"10px"}})],8,v0)]),operateCol:a.withCtx(()=>[a.createVNode(O,{title:"选择显示列信息",placement:"left-start","popper-class":"menu-operate-popover",trigger:"hover",onShow:Xc},{reference:a.withCtx(()=>[a.createElementVNode("span",m0,[a.createVNode(z,{name:"operate",style:{width:"15px",height:"15px",cursor:"pointer"}})])]),default:a.withCtx(()=>[a.createElementVNode("div",y0,[f[20]||(f[20]=a.createElementVNode("div",{class:"group-title"},"表格操作",-1)),a.createVNode($,{"model-value":g.value,"active-text":"排序","inactive-text":"",style:{"margin-right":"8px"},onChange:f[2]||(f[2]=se=>Kt(se))},null,8,["model-value"]),f[21]||(f[21]=a.createElementVNode("div",{class:"group-title"},"表格列操作",-1)),a.createVNode(H,{modelValue:n.value,"onUpdate:modelValue":f[3]||(f[3]=se=>n.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(xn.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,g0)]),_:2},1032,["value"]),a.createVNode(O,{"popper-class":"col-operate-popover",title:"列操作",placement:"left",teleported:!1,trigger:"hover"},{reference:a.withCtx(()=>[a.createVNode(z,{name:"colOperate",style:{width:"15px",height:"15px",cursor:"pointer",color:"grey",position:"absolute",right:"40px"}})]),default:a.withCtx(()=>{var Ea;return[a.createElementVNode("div",b0,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList((Ea=Object.keys(se))==null?void 0:Ea.filter(ta=>{var Ca;return(Ca=R.value)==null?void 0:Ca.find(oe=>(oe==null?void 0:oe.value)===ta)}),ta=>{var Ca,oe;return a.openBlock(),a.createElementBlock("div",{key:ta},[A[ta]=="radio"?(a.openBlock(),a.createElementBlock("div",k0,[f[19]||(f[19]=a.createElementVNode("div",null,"固定:",-1)),a.createVNode(ae,{"model-value":se==null?void 0:se[ta],onChange:E=>_n(E,ta,se)},{default:a.withCtx(()=>{var E,Re;return[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList((Re=(E=R.value)==null?void 0:E.find(he=>(he==null?void 0:he.value)===ta))==null?void 0:Re.options,he=>(a.openBlock(),a.createBlock(Z,{key:he==null?void 0:he.value,label:he==null?void 0:he.value,value:he==null?void 0:he.value},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(he==null?void 0:he.label),1)]),_:2},1032,["label","value"]))),128))]}),_:2},1032,["model-value","onChange"])])):a.createCommentVNode("",!0),A[ta]=="switch"?(a.openBlock(),a.createBlock($,{key:1,"model-value":se==null?void 0:se[ta],"active-text":(oe=(Ca=R.value)==null?void 0:Ca.find(E=>(E==null?void 0:E.value)===ta))==null?void 0:oe.label,onChange:E=>_n(E,ta,se)},null,8,["model-value","active-text","onChange"])):a.createCommentVNode("",!0)])}),128))])]}),_:2},1024),a.createElementVNode("span",x0,[a.createVNode(z,{name:"drag",class:"col-drag-icon",style:{width:"15px",height:"15px"}})])]))),128))]),_:1},8,["modelValue"])])]),_:1})]),content:a.withCtx(se=>{var Ea,ta,Ca,oe,E,Re,he,ma,sa,fa,Oa,pl,Qa,gl,bl,$l,Ya,Cl,Ka,vl;return[((Ea=se==null?void 0:se.column)==null?void 0:Ea.label)==="证书附件"||((ta=se==null?void 0:se.column)==null?void 0:ta.prop)==="证书附件"?(a.openBlock(),a.createElementBlock("div",_0,[a.createVNode(z,{name:"query",style:{width:"20px",height:"20px",color:"var(--ssComponent-theme-color)",cursor:"pointer"},onClick:a.withModifiers(Xa=>Fr(se),["stop"]),title:"查看OCR图片"},null,8,["onClick"])])):du(se)?(a.openBlock(),a.createBlock(O,{key:1,"popper-class":"file-popover",placement:"right",trigger:"hover",effect:"light",width:"auto"},{reference:a.withCtx(()=>[a.createElementVNode("span",w0,a.toDisplayString(Lr(se)),1)]),default:a.withCtx(()=>{var Xa,ml;return[a.createElementVNode("div",C0,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList((ml=se==null?void 0:se.row)==null?void 0:ml[(Xa=se==null?void 0:se.column)==null?void 0:Xa.prop],Tl=>(a.openBlock(),a.createElementBlock("div",E0,[a.createElementVNode("div",{class:"prop-url",title:Gn(Tl),onClick:Nl=>Fo(Tl)},a.toDisplayString(Gn(Tl)),9,S0),a.createElementVNode("div",{class:"prop-download",onClick:Nl=>ot(Tl)}," 下载 ",8,D0)]))),256))])]}),_:2},1024)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:2},[pu(se)?(a.openBlock(),a.createBlock(Eu,{key:0,value:Lr(se)},null,8,["value"])):(a.openBlock(),a.createElementBlock("div",{key:1,class:"table-cell-content",style:a.normalizeStyle({color:!Array.isArray(Lr(se))&&((oe=(Ca=Lr(se))==null?void 0:Ca.toString())!=null&&oe.includes(".txt")||(Re=(E=Lr(se))==null?void 0:E.toString())!=null&&Re.includes(".cpt")||(ma=(he=Lr(se))==null?void 0:he.toString())!=null&&ma.includes(".cyd"))?"var(--vertical-menuitem-active-bg)":"",textDecoration:!Array.isArray(Lr(se))&&((fa=(sa=Lr(se))==null?void 0:sa.toString())!=null&&fa.includes(".txt")||(pl=(Oa=Lr(se))==null?void 0:Oa.toString())!=null&&pl.includes(".cpt")||(gl=(Qa=Lr(se))==null?void 0:Qa.toString())!=null&&gl.includes(".cyd"))?"underline":"",cursor:!Array.isArray(Lr(se))&&(($l=(bl=Lr(se))==null?void 0:bl.toString())!=null&&$l.includes(".txt")||(Cl=(Ya=Lr(se))==null?void 0:Ya.toString())!=null&&Cl.includes(".cpt")||(vl=(Ka=Lr(se))==null?void 0:Ka.toString())!=null&&vl.includes(".cyd"))?"pointer":"",marginLeft:(se==null?void 0:se.colIndex)===0?`${((se==null?void 0:se.level)??0)*20}px`:0}),onClick:Xa=>{var ml;return Bn(Lr(se),((ml=se==null?void 0:se.column)==null?void 0:ml.relatedPages)??[])}},a.toDisplayString(Lr(se)===0?"0":Lr(se)),13,B0))],64))]}),_:2},[((ra=za.value)==null?void 0:ra.length)>0?{name:"actions",fn:a.withCtx(({item:se,fIndex:Ea})=>[a.createVNode(O,{title:"",placement:"left-start","popper-class":"menu-operate-popover"},{reference:a.withCtx(()=>[a.createVNode(z,{name:"more",style:{cursor:"pointer",width:"15px",height:"15px"},onClick:f[0]||(f[0]=a.withModifiers(()=>{},["stop"]))})]),default:a.withCtx(()=>[a.createElementVNode("div",p0,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(jo(za.value,se),(ta,Ca)=>(a.openBlock(),a.createElementBlock("div",{class:"menu-config-item",key:Ca,onClick:a.withModifiers(oe=>Tn(ta==null?void 0:ta.label,se,{extra:ta}),["stop"])},[a.createElementVNode("div",{style:a.normalizeStyle({color:ta==null?void 0:ta.textColor}),class:"extra-button-label"},a.toDisplayString(ta==null?void 0:ta.label),5)],8,f0))),128))])]),_:2},1024)]),key:"0"}:void 0]),1032,["pageObj","showIndex","isTree","summaryInfo","columns","defaultSort","isCardViewport","checkedColumns","tableData","isEditViewport","isShowPagination","allowSelect","extraButton","rowButton","cacheExtraButtons","isClearSelection","bottomButton"])):a.createCommentVNode("",!0),zl.value?(a.openBlock(),a.createElementBlock("div",N0,[a.createVNode(ve,{id:"themeBorderButton",onClick:Lo},{default:a.withCtx(()=>f[22]||(f[22]=[a.createTextVNode("取消")])),_:1,__:[22]}),a.createVNode(ve,{class:"ok-button",id:"themeButton",onClick:Dt},{default:a.withCtx(()=>f[23]||(f[23]=[a.createTextVNode("保存")])),_:1,__:[23]})])):a.createCommentVNode("",!0),a.createVNode(vr.ssDialog,{title:Le.value,visible:da.value,width:jl.value,onBeforeDestroy:Yt,style:{height:"74%"}},{default:a.withCtx(()=>[a.createElementVNode("div",T0,[a.createVNode(fl.ssForm,{ref_key:"formRef",ref:re,rowContents:Q.value,showOperator:!1,onChange:Zc,isEnableWrap:!1,onFixChangeValue:Nt,onClickTrigger:Gt,isEdit:Ze.value,onBlurChange:$o,onCreate:Wt,onTagChange:Wr},null,8,["rowContents","isEdit"])])]),footer:a.withCtx(()=>[Sa.value?(a.openBlock(),a.createElementBlock("div",A0,[a.createVNode(ve,{onClick:f[4]||(f[4]=se=>da.value=!1),id:"themeBorderButton"},{default:a.withCtx(()=>f[24]||(f[24]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[24]}),a.createVNode(ve,{class:"ok-button",onClick:f[5]||(f[5]=se=>Mt(!0)),id:"themeButton"},{default:a.withCtx(()=>f[25]||(f[25]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[25]})])):a.createCommentVNode("",!0)]),_:1},8,["title","visible","width"]),a.createVNode(vr.ssDialog,{title:Le.value,visible:K.value,width:je.value,onBeforeDestroy:f[7]||(f[7]=se=>K.value=!1)},{default:a.withCtx(()=>[a.createVNode(af)]),footer:a.withCtx(()=>[a.createElementVNode("div",z0,[a.createVNode(ve,{onClick:f[6]||(f[6]=se=>K.value=!1),class:"cancel-button",id:"themeBorderButton"},{default:a.withCtx(()=>f[26]||(f[26]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[26]}),a.createVNode(ve,{class:"ok-button",onClick:Tt,id:"themeButton"},{default:a.withCtx(()=>f[27]||(f[27]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[27]})])]),_:1},8,["title","visible","width"]),Ha.value?(a.openBlock(),a.createBlock(fl.ssFilePreview,{key:2,fileDataList:ee.value,onDestroy:wn},null,8,["fileDataList"])):a.createCommentVNode("",!0),Ke.value?(a.openBlock(),a.createBlock(vr.ssDialog,{key:3,visible:Ke.value,onBeforeDestroy:Gc,style:{height:"80vh",width:"80vw"},"body-class":"three-dialog-body","footer-class":"three-dialog-footer"},{default:a.withCtx(()=>[a.createVNode(go.ThreeViewerHost,{files:Ye.value,threeData:te.value},null,8,["files","threeData"])]),_:1},8,["visible"])):a.createCommentVNode("",!0),a.createVNode(vr.ssDialog,{title:"OCR扫描录入",visible:il.value,"close-on-click-modal":!1,onBeforeDestroy:sl,width:"1000px",dialogHeight:700,minWidth:900,minHeight:600,class:"ocr-upload-dialog",resizable:!0},{default:a.withCtx(()=>[f[38]||(f[38]=a.createElementVNode("div",{class:"ocr-header-bg"},null,-1)),a.createElementVNode("div",M0,[a.createElementVNode("div",O0,[a.createElementVNode("div",{class:a.normalizeClass(["ocr-step-item",{active:de.value===1}])},f[28]||(f[28]=[a.createElementVNode("div",{class:"step-circle"},"1",-1),a.createElementVNode("div",{class:"step-label",style:{"font-weight":"800"}},"文件识别",-1)]),2),f[31]||(f[31]=a.createElementVNode("div",{class:"ocr-step-connector"},null,-1)),a.createElementVNode("div",{class:a.normalizeClass(["ocr-step-item",{active:de.value===2}])},f[29]||(f[29]=[a.createElementVNode("div",{class:"step-circle"},"2",-1),a.createElementVNode("div",{class:"step-label",style:{"font-weight":"800"}},"文件确认",-1)]),2),f[32]||(f[32]=a.createElementVNode("div",{class:"ocr-step-connector"},null,-1)),a.createElementVNode("div",{class:a.normalizeClass(["ocr-step-item",{active:de.value===3}])},f[30]||(f[30]=[a.createElementVNode("div",{class:"step-circle"},"3",-1),a.createElementVNode("div",{class:"step-label",style:{"font-weight":"800"}},"文件提交",-1)]),2)]),de.value===1?(a.openBlock(),a.createElementBlock("div",I0,[a.createVNode(ve,{onClick:Jo,class:"ocr-action-btn",disabled:va.value,size:"default"},{default:a.withCtx(()=>f[33]||(f[33]=[a.createTextVNode("扫描文件 ")])),_:1,__:[33]},8,["disabled"]),a.createVNode(ve,{onClick:Fl,class:"ocr-action-btn",disabled:va.value,size:"default"},{default:a.withCtx(()=>f[34]||(f[34]=[a.createTextVNode("上传文件 ")])),_:1,__:[34]},8,["disabled"])])):a.createCommentVNode("",!0),de.value===1?(a.openBlock(),a.createElementBlock("div",L0,[a.createElementVNode("div",V0,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(_a.value,(se,Ea)=>{var ta;return a.openBlock(),a.createElementBlock("div",{key:Ea,class:"ocr-file-item"},[a.createElementVNode("div",$0,[se.raw&&((ta=se.raw.type)!=null&&ta.startsWith("image/"))?(a.openBlock(),a.createElementBlock("img",{key:0,src:wl(se),alt:"预览",class:"thumbnail-image"},null,8,R0)):(a.openBlock(),a.createElementBlock("div",P0,[a.createVNode(we,{size:40},{default:a.withCtx(()=>[a.createVNode(a.unref(rl.document_default))]),_:1})])),a.createElementVNode("div",{class:a.normalizeClass(["file-progress-ring",{uploading:cl(se)==="uploading",processing:cl(se)==="processing",completed:cl(se)==="completed"||cl(se)==="uploaded",failed:cl(se)==="failed"}])},[(a.openBlock(),a.createElementBlock("svg",F0,[f[35]||(f[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:cl(se)==="completed"||cl(se)==="uploaded",uploading:cl(se)==="uploading",processing:cl(se)==="processing",failed:cl(se)==="failed"}]),cx:"18",cy:"18",r:"16",fill:"none",stroke:cl(se)==="failed"?"#f56c6c":cl(se)==="completed"||cl(se)==="uploaded"?"#67c23a":"#409eff","stroke-width":cl(se)==="completed"||cl(se)==="uploaded"||cl(se)==="failed"?3:2,"stroke-dasharray":Kl(se),"stroke-dashoffset":"0","stroke-linecap":"round",transform:"rotate(-90 18 18)"},null,10,j0)])),cl(se)==="completed"||cl(se)==="uploaded"?(a.openBlock(),a.createElementBlock("div",H0,[a.createVNode(we,{class:"check-icon"},{default:a.withCtx(()=>[a.createVNode(a.unref(rl.check_default))]),_:1})])):a.createCommentVNode("",!0),cl(se)==="failed"?(a.openBlock(),a.createElementBlock("div",U0,[a.createVNode(we,{class:"error-icon"},{default:a.withCtx(()=>[a.createVNode(a.unref(rl.close_default))]),_:1})])):a.createCommentVNode("",!0)],2),a.createElementVNode("div",{class:"file-delete-btn",onClick:Ca=>ct(Ea)},[a.createVNode(we,null,{default:a.withCtx(()=>[a.createVNode(a.unref(rl.close_default))]),_:1})],8,q0)]),a.createElementVNode("div",W0,a.toDisplayString(se.name||"文件名123"),1)])}),128))]),_a.value.length>0?(a.openBlock(),a.createElementBlock("div",K0,[a.createVNode(ve,{onClick:fe,class:"ocr-start-recognize-btn",disabled:va.value||_a.value.length===0,size:"default"},{default:a.withCtx(()=>f[36]||(f[36]=[a.createTextVNode("开始识别 ")])),_:1,__:[36]},8,["disabled"])])):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0),de.value===1?(a.openBlock(),a.createElementBlock("div",Y0,[a.createVNode(Ve,{percentage:Ee.value,"stroke-width":8},null,8,["percentage"])])):a.createCommentVNode("",!0),de.value===2?(a.openBlock(),a.createElementBlock("div",G0,[a.createElementVNode("div",J0,[a.createVNode(Me,{title:"请核对识别结果。",type:"info",closable:!1,"show-icon":""})]),a.createElementVNode("div",X0,[a.createVNode(la,{data:Ua.value,border:"",stripe:"","max-height":"400",style:{width:"100%"}},{default:a.withCtx(()=>[a.createVNode(Ue,{type:"index",label:"序号",width:"60",fixed:""}),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(ye.value,se=>(a.openBlock(),a.createBlock(Ue,{key:se.prop,prop:se.prop,"min-width":se.minWidth||230,"class-name":se.isAccuracy?"accuracy-column":""},{header:a.withCtx(()=>[a.createElementVNode("div",Z0,[a.createElementVNode("span",null,a.toDisplayString(se.label),1)])]),default:a.withCtx(({row:Ea,$index:ta})=>{var Ca,oe,E;return[se.isAccuracy?(a.openBlock(),a.createElementBlock("span",{key:0,class:"accuracy-value",style:a.normalizeStyle({color:tl(Ea[se.prop]),fontWeight:500})},a.toDisplayString(Ta(Ea[se.prop])),5)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[al.value!==ta?(a.openBlock(),a.createElementBlock("span",Q0,a.toDisplayString(Ea[se.prop]),1)):(a.openBlock(),a.createBlock(a.resolveDynamicComponent(Za(se.prop)),{key:1,modelValue:Ea[se.prop],"onUpdate:modelValue":Re=>Ea[se.prop]=Re,size:"small",placeholder:"请输入"+se.label,content:((Ca=hl(se.prop))==null?void 0:Ca.contents)??((oe=hl(se.prop))==null?void 0:oe.options)??[],optionUrl:(E=hl(se.prop))==null?void 0:E.optionUrl,onChange:Re=>Xe(ta,se.prop,Re),onFocus:Re=>ul.value=se.prop,onBlur:f[8]||(f[8]=Re=>ul.value="")},null,40,["modelValue","onUpdate:modelValue","placeholder","content","optionUrl","onChange","onFocus"]))],64))]}),_:2},1032,["prop","min-width","class-name"]))),128)),a.createVNode(Ue,{label:"编辑",width:"80",fixed:"right"},{default:a.withCtx(({$index:se})=>[al.value===se?(a.openBlock(),a.createBlock(we,{key:0,class:"ocr-edit-icon editing",style:{"margin-left":"12px"},onClick:a.withModifiers(Ea=>ll(se),["stop"])},{default:a.withCtx(()=>[a.createVNode(a.unref(rl.check_default))]),_:2},1032,["onClick"])):(a.openBlock(),a.createBlock(z,{key:1,name:"edit_101",class:"ocr-edit-icon",onClick:a.withModifiers(Ea=>ll(se),["stop"])},null,8,["onClick"]))]),_:1})]),_:1},8,["data"])])])):a.createCommentVNode("",!0),de.value===3?(a.openBlock(),a.createElementBlock("div",e3,[a.createVNode(we,{size:"32",class:"ocr-success-icon"},{default:a.withCtx(()=>[a.createVNode(a.unref(rl.check_default))]),_:1}),f[37]||(f[37]=a.createElementVNode("div",{class:"ocr-success-text"},"文件提交成功",-1))])):a.createCommentVNode("",!0)]),a.createVNode(Va,{ref:"ocrUploadRef","file-list":_a.value,"onUpdate:fileList":f[9]||(f[9]=se=>_a.value=se),multiple:"",action:"","auto-upload":!1,limit:20,accept:"image/*,application/pdf","on-change":q,"show-file-list":!1,class:"ocr-upload-input",style:{display:"none"}},null,8,["file-list"])]),footer:a.withCtx(()=>[de.value!==3?(a.openBlock(),a.createElementBlock("div",a3,[a.createVNode(ve,{onClick:Ir,class:"ocr-start-recognize-btn",disabled:de.value===1||va.value},{default:a.withCtx(()=>f[39]||(f[39]=[a.createTextVNode(" 上一步 ")])),_:1,__:[39]},8,["disabled"]),a.createVNode(ve,{onClick:mr,class:"ocr-start-recognize-btn",disabled:va.value},{default:a.withCtx(()=>f[40]||(f[40]=[a.createTextVNode(" 下一步 ")])),_:1,__:[40]},8,["disabled"])])):a.createCommentVNode("",!0)]),_:1},8,["visible"]),a.createVNode(kf,{visible:st.value,onConfirm:Xo,onCancel:f[10]||(f[10]=se=>st.value=!1)},null,8,["visible"]),a.createVNode(od,{visible:oa.value,"onUpdate:visible":f[11]||(f[11]=se=>oa.value=se),versions:ha.value},null,8,["visible","versions"]),a.createVNode(Wu,{visible:dl.value,"onUpdate:visible":f[12]||(f[12]=se=>dl.value=se),images:Wl.value,"default-image-name":ql.value,"field-meta":al.value!==null?((Ra=Ua.value[al.value])==null?void 0:Ra.__ocrFieldMeta)||{}:{},"focused-field-name":ul.value,onClose:f[13]||(f[13]=se=>dl.value=!1),class:"ocr-img-preview-dialog"},null,8,["visible","images","default-image-name","field-meta","focused-field-name"]),a.createVNode(bd,{visible:Pl.value,"onUpdate:visible":f[14]||(f[14]=se=>Pl.value=se),candidates:Hl.value,"name-prop":un.value,"mfr-prop":Jr.value,columns:De.value,onSubmit:tn,onPreviewFile:en},null,8,["visible","candidates","name-prop","mfr-prop","columns"]),a.createVNode(Sd,{visible:Na.value,"onUpdate:visible":f[15]||(f[15]=se=>Na.value=se),ocrPreviewData:Ua.value,"onUpdate:ocrPreviewData":f[16]||(f[16]=se=>Ua.value=se),ocrSelectedFields:ol.value,"onUpdate:ocrSelectedFields":f[17]||(f[17]=se=>ol.value=se),ocrPreviewColumns:ye.value,onConfirm:be,onFieldChange:f[18]||(f[18]=({rowIndex:se,prop:Ea,value:ta})=>Xe(se,Ea,ta))},null,8,["visible","ocrPreviewData","ocrSelectedFields","ocrPreviewColumns"]),a.createVNode(vr.ssDialog,{title:i.title,visible:i.show,width:i.width,onBeforeDestroy:w},{default:a.withCtx(()=>[a.createElementVNode("div",l3,[a.createVNode(fl.ssForm,{rowContents:i==null?void 0:i.contents,formRules:i==null?void 0:i.formRules,showOperator:!1,buttonValue:i.buttonValue,isEdit:Ze.value,isStartJustify:!1,onOnButtonClick:V},null,8,["rowContents","formRules","buttonValue","isEdit"])])]),_:1},8,["title","visible","width"]),a.createVNode(vr.ssDialog,{title:o.title,visible:o.show,width:o.width,alignCenter:!0,onBeforeDestroy:p},{header:a.withCtx(()=>[a.createVNode(Ba,{size:"small",type:"danger",style:{width:"100%"}},{default:a.withCtx(()=>f[41]||(f[41]=[a.createTextVNode("(选择【覆盖】,可能会影响到原数据的引用关系;选择【取消】将会放弃重复数据的导入。请谨慎操作!)")])),_:1,__:[41]})]),footer:a.withCtx(()=>[a.createElementVNode("div",r3,[a.createVNode(Ba,{size:"small",style:{width:"100%","text-align":"left"},type:"info"},{default:a.withCtx(()=>[a.createTextVNode("引用模块:"+a.toDisplayString(Sn.value||"暂无"),1)]),_:1}),a.createElementVNode("div",n3,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(o==null?void 0:o.buttonValue,se=>(a.openBlock(),a.createBlock(ve,{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:Ea=>m(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(Hp,{columns:o==null?void 0:o.columns,tableData:o==null?void 0:o.tableData},{content:a.withCtx(({row:se,item:Ea,slotData:ta,scope:Ca,column:oe,columnProp:E,$index:Re})=>[a.createTextVNode(a.toDisplayString((se==null?void 0:se[(oe==null?void 0:oe.prop)||(oe==null?void 0:oe.label)])||(ta==null?void 0:ta[oe==null?void 0:oe.property])),1)]),_:1},8,["columns","tableData"])]),_:1},8,["title","visible","width"])])}}},vc=Ul._export_sfc(o3,[["__scopeId","data-v-c5039ec7"]]),i3={class:"static-form-card"},s3={key:0,class:"static-form-body"},c3=["onClick"],u3={key:1},d3=a.defineComponent({__name:"index",props:{itemData:{default:()=>[]},fields:{default:()=>[]},compName:{default:""},title:{default:""},disabled:{type:Boolean,default:!1},textSize:{default:void 0},textColor:{default:void 0}},setup(l){const r=l,n=S=>{switch(S){case"占用":return"warning";case"注销":return"info";case"损坏":return"danger";case"可用":return"success";default:return""}},t=a.computed(()=>{var U;const S=(U=r.itemData)==null?void 0:U.find(B=>(B==null?void 0:B.key)==="formContent"),M=(S==null?void 0:S.contents)||[];return(r.fields&&r.fields.length>0?r.fields:M).filter(B=>!(B!=null&&B.isFormColHidden)&&(B==null?void 0:B.label)).map(B=>{let A=B==null?void 0:B.value;Array.isArray(A)&&(A=A.map(T=>T==null?"":typeof T=="object"?T.label??T.value??T.name??JSON.stringify(T):String(T)).filter(Boolean).join(",")),A!=null&&typeof A=="object"&&(A=A.label??A.value??A.name??JSON.stringify(A));const R=B.label??"",C=A==null||A===""?"-":String(A),L=R==="使用状态";return{label:R,value:C,isStatus:L,tagType:L?n(C):"",width:B.width??1,field:B}})}),s=a.ref(null),c=S=>{if(Array.isArray(S)&&S.length>=3){const[M,_,U,B]=S;return B!==void 0?`rgba(${M}, ${_}, ${U}, ${B})`:`rgb(${M}, ${_}, ${U})`}if(typeof S=="string"){const M=S.trim();if(M.startsWith("[")&&M.endsWith("]")){const _=M.slice(1,-1).split(",").map(U=>Number(U.trim()));if(_.length>=3&&_.every(U=>!Number.isNaN(U))){const[U,B,A,R]=_;return R!==void 0?`rgba(${U}, ${B}, ${A}, ${R})`:`rgb(${U}, ${B}, ${A})`}}return M}},b=a.computed(()=>{const S=Number(r==null?void 0:r.textSize),M=c(r==null?void 0:r.textColor),_={},U={},B={},A={};return!Number.isNaN(S)&&S&&(_.fontSize=`${S}px`,U.fontSize=`${S+1}px`,B.fontSize=`${S}px`,A.fontSize=`${S}px`),M&&(U.color=M,B.color=M,A.color=M),{item:_,label:U,value:B,empty:A}}),h=S=>fl.getComponent(S),v=S=>{if(!S)return;const M=S.querySelector("input, textarea, .el-input__inner");M&&typeof M.focus=="function"&&M.focus()},y=(S,M,_)=>{r.disabled||(s.value=M,a.nextTick(()=>{v(_.currentTarget)}))},u=()=>{s.value=null},x=S=>{const M=S!=null&&S.width&&S.width>0?S.width:1,U=`calc((100% - ${(M-1)*48}px) / ${M})`;return{flex:`0 0 ${U}`,maxWidth:U,minWidth:"0",boxSizing:"border-box"}};return(S,M)=>{const _=a.resolveComponent("el-tag");return a.openBlock(),a.createElementBlock("div",i3,[t.value.length?(a.openBlock(),a.createElementBlock("div",s3,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.value,(U,B)=>{var A,R,C,L,T,k,g,j;return a.openBlock(),a.createElementBlock("div",{key:B,class:"static-form-item",style:a.normalizeStyle({...x(U),...b.value.item})},[a.createElementVNode("div",{class:"static-form-label",style:a.normalizeStyle(b.value.label)},a.toDisplayString(U.label)+": ",5),a.createElementVNode("div",{class:"static-form-value",style:a.normalizeStyle(b.value.value),onClick:W=>y(U,B,W)},[s.value===B&&U.field?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(h(((A=U.field)==null?void 0:A.type)??"Input")),{key:0,modelValue:U.field.value,"onUpdate:modelValue":W=>U.field.value=W,isEdit:!0,disabled:(R=U.field)==null?void 0:R.disabled,content:((C=U.field)==null?void 0:C.contents)??[],optionUrl:U.field,originalValue:(L=U.field)==null?void 0:L.value,config:(T=U.field)==null?void 0:T.config,configModel:((k=U.field)==null?void 0:k.prop)??((g=U.field)==null?void 0:g.name),selectedTagList:((j=U.field)==null?void 0:j.selectValue)??[],onBlur:u,onBlurChange:u},null,40,["modelValue","onUpdate:modelValue","disabled","content","optionUrl","originalValue","config","configModel","selectedTagList"])):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[U.isStatus?(a.openBlock(),a.createBlock(_,{key:0,type:U.tagType,size:"Default",effect:"plain"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(U.value??"-"),1)]),_:2},1032,["type"])):(a.openBlock(),a.createElementBlock("span",u3,a.toDisplayString(U.value??"-"),1))],64))],12,c3)],4)}),128))])):(a.openBlock(),a.createElementBlock("div",{key:1,class:"static-form-empty",style:a.normalizeStyle(b.value.empty)}," 暂无数据 ",4))])}}}),mc=Ul._export_sfc(d3,[["__scopeId","data-v-351e0bf9"]]),p3={class:"form-content"},f3={title:"选择标签"},h3={class:"menu-config-wrap",style:{padding:"0 0 0 16px","box-sizing":"border-box","min-height":"200px",width:"400px",overflow:"auto",position:"relative"}},v3={class:"col-operate-wrap"},m3={title:"拖拽排序列",style:{cursor:"move",color:"grey",position:"absolute",right:"15px"}},y3={__name:"index",props:{formRules:Object,itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},index:Number,compName:{type:String,default:""},allMapContents:{type:Object},config:{type:Object,default:()=>{}}},emits:["change","contentChange","routeUrl","clickTrigger"],setup(l,{emit:r}){const n=()=>{b.value=!1,h.value=!1,v.value=[]},t=l;a.computed(()=>{var Ze;const me=(Ze=ge.value)==null?void 0:Ze.split("/");return(me==null?void 0:me.some(Fe=>(Fe==null?void 0:Fe.includes("updateLoading"))||(Fe==null?void 0:Fe.includes("loading"))))?!1:X.value==="view"});const s=r,c=a.ref([]),b=a.ref(!1),h=a.ref(!1),v=a.ref([]),{getFileExtension:y}=go.useThreeSystem(),u=a.ref(),x=a.ref(!1),S=a.ref(!1),M=I.useUnit(I.pinia),{chooseTitle:_}=I.storeToRefs(M),U=a.ref([]),B=a.ref(),A=a.ref(!1),R=a.ref([]),C=Xs(I.pinia),L=ki(I.pinia),T=a.ref(!1),k=a.ref(),g=a.ref(),j=a.ref(),W=I.useLoginState(I.pinia),{loginUserInfo:J}=I.storeToRefs(W),ke=a.ref(),ze=a.ref(!0),De=I.useModelComp(I.pinia),{tableViewContents:ne,itemData:xe,isEdit:X,routeToChildPath:pe,lockingPage:Ke}=I.storeToRefs(De),Da=a.ref(null),te=a.ref(!1),D=a.ref(!1),le=I.useMenuState(),{activeMenuPath:ge}=I.storeToRefs(le),ue=na.useOriginalState(I.pinia),{originalPath:Ne}=I.storeToRefs(ue),{compType:ia,hasEditable:ka}=js.useRole(),Ha=()=>!ka(t.config,{type:ia.FORM});a.computed(()=>ge.value==="设备管理/试验设备"&&t.compName==="设备概要");const ee=a.ref([]),Qe=a.ref([{label:"编辑",value:"operable",checked:!1},{label:"禁用",value:"disabled",checked:!1}]),Pe=async me=>{D.value=me,await Ia("disabled",null,me,!0)},ga=async me=>{await Ia("operable",null,me,!0)};a.watch(()=>ge.value,async()=>{c.value=[],v.value=[]},{deep:!0,immediate:!0});const He=()=>{a.nextTick(()=>{Wa()})},Ae=me=>{var Je;c.value=(Je=c.value)==null?void 0:Je.map(Ze=>({...Ze,isFormColHidden:!(me!=null&&me.includes(Ze.label))}))};a.onUnmounted(()=>{Da.value=null});const $e=me=>{s("clickTrigger",me)},Ge=async me=>{var Je,Ze,Fe,ba,Le,da;if(me===""){let re="";(Je=c.value)==null||Je.forEach(Be=>{Be!=null&&Be.isMain&&(re=Be==null?void 0:Be.value)});let Se=await na.getItemData(pe.value,sessionStorage.getItem("systemKey"),"");re=((da=(Le=(ba=(Fe=(Ze=Se==null?void 0:Se[0])==null?void 0:Ze.compData)==null?void 0:Fe.find(Be=>(Be==null?void 0:Be.key)==="mainRouters"))==null?void 0:ba.contents)==null?void 0:Le[0])==null?void 0:da.routerContent)+Ne.value+re;let je=await na.getItemData(re,sessionStorage.getItem("systemKey"),"");A.value=!0,R.value=je==null?void 0:je.filter(Be=>(Be==null?void 0:Be.comp)!=="methodButton"),s("routeUrl",R.value)}},Wa=()=>{var Je;const me=(Je=Da.value)==null?void 0:Je.$el;me&&$a.Sortable.create(me,{animation:150,handle:".col-drag-icon",ghostClass:"sortable-ghost",onEnd:Ze=>{const{oldIndex:Fe,newIndex:ba}=Ze;if(Fe===ba)return;const Le=c.value.splice(Fe,1)[0];c.value.splice(ba,0,Le)}})},Ia=async(me,Je,Ze,Fe=!1)=>{try{De.setRefreshCurStructure(!1)}catch{rl.ElMessage.error("编辑处理失败")}},P=async(me,Je)=>{await Ia()},F=async(me,Je)=>{me&&await Ia()},G=async(me,Je,Ze)=>{await Ia(Je,Ze,me,!1)},ie=(me,Je)=>{ke.value===Je?ze.value=!1:ze.value=!0,ke.value=Je==null?void 0:Je.changeProp},ce=async me=>{var Ze,Fe,ba,Le,da,re,Se,K,je,Be,za,Sa,Ye,ca,_e;let Je=[];if((Ze=me==null?void 0:me.toString())!=null&&Ze.includes(".urdf")){if(me.includes(",")){rl.ElMessage.error("当前版本仅允许单个urdf预览!");return}v.value=[{url:me,extension:y(me)}],h.value=!0,b.value=!0;return}if((Fe=me==null?void 0:me.toString())!=null&&Fe.includes(".stl")||(ba=me==null?void 0:me.toString())!=null&&ba.includes(".STL")||(Le=me==null?void 0:me.toString())!=null&&Le.includes(".obj")||(da=me==null?void 0:me.toString())!=null&&da.includes(".mtl")){const ya=((re=me==null?void 0:me.toString())==null?void 0:re.split(",")).map(We=>({url:We,extension:y(We)}));v.value=ya,h.value=!1,b.value=!0;return}if((Se=me==null?void 0:me.toString())!=null&&Se.includes(".stl")||(K=me==null?void 0:me.toString())!=null&&K.includes(".STL")||(je=me==null?void 0:me.toString())!=null&&je.includes(".obj")||(Be=me==null?void 0:me.toString())!=null&&Be.includes(".mtl")){let Q,ya=[],We={};if(Array.isArray(me)?Q=me:Q=me==null?void 0:me.split(","),Q==null||Q.forEach(La=>{La.includes(".mtl")?ya.push(La):We.blob=We.blob?We.blob+","+La:La}),(ya==null?void 0:ya.length)>0&&(We.mtlBlobs=ya),(Sa=(za=Object.values(We))==null?void 0:za[0])!=null&&Sa.includes("http:"))Je.push(We);else{const La=new Blob([We.blob],{type:"application/octet-stream;charset=UTF-8"});let yl=URL.createObjectURL(La),Aa="";(Ye=me==null?void 0:me.split("/"))==null||Ye.forEach((el,Ja)=>{var Pa;Ja===((Pa=me==null?void 0:me.split("/"))==null?void 0:Pa.length)-1&&(Aa=el)}),(ca=We.blob)!=null&&ca.includes(".stl")&&(Aa=(Aa==null?void 0:Aa.replaceAll(">",""))+".urdf"),B.value=[{name:Aa,blobUrl:yl}],S.value=!0}}else{const Q=I.ElLoading.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"}),ya=await rl.axios.get(me,{responseType:"blob",headers:{"Content-Type":"application/json"}}).finally(()=>{Q.close()}),We=new Blob([ya.data],{type:"application/octet-stream;charset=UTF-8"});let La=URL.createObjectURL(We),yl="";(_e=me==null?void 0:me.split("/"))==null||_e.forEach((Aa,el)=>{var Ja;el===((Ja=me==null?void 0:me.split("/"))==null?void 0:Ja.length)-1&&(yl=Aa)}),B.value=[{name:yl,blobUrl:La}],S.value=!0}(Je==null?void 0:Je.length)>0&&L.setBlobUrls(Je)},pa=()=>{S.value=!1},aa=me=>{var Le,da,re,Se;const Je=(da=(Le=fl.safeClone(t.itemData))==null?void 0:Le.find(K=>(K==null?void 0:K.key)==="formContent"))==null?void 0:da.contents,Ze=fl.safeClone(me.content);let Fe={};Ze&&((re=Object.values(Ze))==null?void 0:re.length)>0&&((Se=Object.values(Ze))==null||Se.forEach((K,je)=>{Fe[Je[je].key]=K}));const ba={content:Fe,index:t==null?void 0:t.index,buttonName:me==null?void 0:me.buttonName};s("change",ba)};a.computed(()=>"http://222.92.178.198:62001");const Ie=async me=>{var za,Sa,Ye,ca,_e,Q,ya,We,La,yl,Aa,el,Ja,Pa,Te,il;if(!me)return;(Sa=(za=t==null?void 0:t.itemData)==null?void 0:za.find(va=>(va==null?void 0:va.key)==="parentFormPath"))==null||Sa.contents;let Je=ne.value;(Je==null?void 0:Je.length)>0&&(Je=Je==null?void 0:Je.map(va=>{var xa,oa,ha,de;let _a=(xa=va==null?void 0:va.key)==null?void 0:xa.split("/");return(t==null?void 0:t.compName)===(_a==null?void 0:_a[0])&&(oa=c.value)!=null&&oa.find(Fa=>(Fa==null?void 0:Fa.prop)===(_a==null?void 0:_a[1]))&&(va.value=(de=(ha=c.value)==null?void 0:ha.find(Fa=>(Fa==null?void 0:Fa.prop)===(_a==null?void 0:_a[1])))==null?void 0:de.value),va}),De.setTableViewContents(Je));const Ze=fl.safeClone(t.itemData);let Fe=Ze==null?void 0:Ze.map(va=>{var _a;return(va==null?void 0:va.key)==="formContent"&&((_a=va.contents)==null||_a.map((xa,oa)=>{var ha,de,Fa,ja,Ee,Na,Ua,ye,hl,Za,xl,qa,ol,al,ul,dl,Wl,ql,Pl;return xa.type=(de=(ha=c.value)==null?void 0:ha.find(Hl=>(Hl==null?void 0:Hl.prop)===(xa==null?void 0:xa.prop)))==null?void 0:de.type,xa.options=xa!=null&&xa.options?xa.options:((Ee=(ja=(Fa=xa==null?void 0:xa.key)==null?void 0:Fa.split("$"))==null?void 0:ja[1])==null?void 0:Ee.length)>0?(hl=(ye=_u((Ua=(Na=xa==null?void 0:xa.key)==null?void 0:Na.split("$"))==null?void 0:Ua[1]))==null?void 0:ye.split(","))==null?void 0:hl.map(Hl=>({label:Hl,value:Hl})):[],(Za=xa==null?void 0:xa.key)!=null&&Za.includes("$")&&(xa.key=(qa=(xl=xa==null?void 0:xa.key)==null?void 0:xl.split("$"))==null?void 0:qa[0]),xa.signature=(al=(ol=c.value)==null?void 0:ol.find(Hl=>(Hl==null?void 0:Hl.prop)===(xa==null?void 0:xa.prop)))==null?void 0:al.signature,xa.isLoginUser=(dl=(ul=c.value)==null?void 0:ul.find(Hl=>(Hl==null?void 0:Hl.prop)===(xa==null?void 0:xa.prop)))==null?void 0:dl.isLoginUser,xa.value=(Wl=Object.values(me))==null?void 0:Wl[oa],xa.isFormColHidden=(Pl=(ql=c.value)==null?void 0:ql.find(Hl=>(Hl==null?void 0:Hl.prop)===(xa==null?void 0:xa.prop)))==null?void 0:Pl.isFormColHidden,xa})),va}),ba=c.value,Le=(ca=(Ye=fl.safeClone(Fe))==null?void 0:Ye.find(va=>(va==null?void 0:va.key)==="formContent"))==null?void 0:ca.contents;if(ba=ba==null?void 0:ba.map(va=>{var _a,xa;return(va==null?void 0:va.type)==="Select"&&((_a=va==null?void 0:va.allSelectionContents)==null?void 0:_a.length)>0&&(va.contactValue=me),va.value=(xa=Le==null?void 0:Le.find((oa,ha)=>((oa==null?void 0:oa.id)??ha)===(va==null?void 0:va.id)))==null?void 0:xa.value,va}),!ze.value){s("contentChange",{contents:Fe,index:t.index});return}let da="",re=(ya=(Q=(_e=fl.safeClone(Fe))==null?void 0:_e.find(va=>(va==null?void 0:va.key)==="formContent"))==null?void 0:Q.contents)==null?void 0:ya.find((va,_a)=>{var xa,oa,ha;return(va==null?void 0:va.label)===ke.value||_a.toString()===((ha=(oa=(xa=ke.value)==null?void 0:xa.split("t"))==null?void 0:oa[1])==null?void 0:ha.toString())}),Se=(We=re==null?void 0:re.optionUrl)==null?void 0:We.menuSelect,K=!0;if((Aa=(yl=(La=fl.safeClone(Fe))==null?void 0:La.find(va=>(va==null?void 0:va.key)==="formContent"))==null?void 0:yl.contents)==null||Aa.forEach(va=>{var _a,xa,oa,ha,de,Fa;K&&((oa=(xa=(_a=va==null?void 0:va.optionUrl)==null?void 0:_a.groupSelect)==null?void 0:xa[1])!=null&&oa.includes("["))&&(da=(de=(ha=va==null?void 0:va.optionUrl)==null?void 0:ha.groupSelect)==null?void 0:de[1],JSON.stringify(Se)===JSON.stringify((Fa=va==null?void 0:va.optionUrl)==null?void 0:Fa.menuSelect)&&(K=!1))}),(el=re==null?void 0:re.optionUrl)!=null&&el.menuSelect&&ze.value){let va=await pi(re),_a,xa=(Ja=re==null?void 0:re.optionUrl)==null?void 0:Ja.menuSelect;if(va==null||va.forEach(oa=>{var ha,de,Fa,ja,Ee,Na,Ua,ye,hl,Za;da===((de=(ha=re==null?void 0:re.optionUrl)==null?void 0:ha.groupSelect)==null?void 0:de[1])&&((Ee=(ja=(Fa=re==null?void 0:re.optionUrl)==null?void 0:Fa.groupSelect)==null?void 0:ja[1])!=null&&Ee.includes("["))&&((Za=fl.safeClone(oa))==null?void 0:Za[(hl=(ye=(Ua=(Na=re==null?void 0:re.optionUrl)==null?void 0:Na.groupSelect)==null?void 0:Ua[1])==null?void 0:ye.replaceAll("[",""))==null?void 0:hl.replaceAll("]","")])===(re==null?void 0:re.value)&&(_a=oa)}),_a){let oa=fl.safeClone(ba);oa=oa==null?void 0:oa.map(de=>{var Fa,ja,Ee,Na,Ua,ye,hl,Za,xl,qa,ol;return(_a!=null&&_a[de==null?void 0:de.label]||_a!=null&&_a[(Na=(Ee=(ja=(Fa=de==null?void 0:de.optionUrl)==null?void 0:Fa.groupSelect)==null?void 0:ja[1])==null?void 0:Ee.replaceAll("[",""))==null?void 0:Na.replaceAll("]","")])&&((hl=(ye=(Ua=de==null?void 0:de.optionUrl)==null?void 0:Ua.groupSelect)==null?void 0:ye[1])!=null&&hl.includes("["))&&xa!=null&&xa.every(al=>{var ul,dl;return(dl=(ul=de==null?void 0:de.optionUrl)==null?void 0:ul.menuSelect)==null?void 0:dl.includes(al)})&&(de.value=(_a==null?void 0:_a[de==null?void 0:de.label])||(_a==null?void 0:_a[(ol=(qa=(xl=(Za=de==null?void 0:de.optionUrl)==null?void 0:Za.groupSelect)==null?void 0:xl[1])==null?void 0:qa.replaceAll("[",""))==null?void 0:ol.replaceAll("]","")]),Array.isArray(de.value)&&de.value.every(al=>(al==null?void 0:al.url)&&(al==null?void 0:al.name))&&(de.type="Upload")),de}),oa=oa==null?void 0:oa.map(de=>{var Fa,ja,Ee;return(Fa=de==null?void 0:de.optionUrl)!=null&&Fa.oldMenuSelect&&(de.optionUrl.menuSelect=(Ee=(ja=fl.safeClone(de))==null?void 0:ja.optionUrl)==null?void 0:Ee.oldMenuSelect),de}),c.value=fl.safeClone(oa);let ha=fl.safeClone(oa);ha=ha==null?void 0:ha.map(de=>{var Fa,ja,Ee,Na,Ua,ye;return(ja=(Fa=de==null?void 0:de.optionUrl)==null?void 0:Fa.menuSelect)!=null&&ja.some(hl=>hl==null?void 0:hl.includes("["))&&(de.optionUrl.oldMenuSelect=(Na=(Ee=fl.safeClone(de))==null?void 0:Ee.optionUrl)==null?void 0:Na.menuSelect,de.optionUrl.menuSelect=(ye=(Ua=de==null?void 0:de.optionUrl)==null?void 0:Ua.menuSelect)==null?void 0:ye.map(hl=>{var Za,xl,qa,ol;if(hl!=null&&hl.includes("[")){let al=(xl=(Za=hl==null?void 0:hl.replaceAll("[","").replaceAll("]",""))==null?void 0:Za.split(":"))==null?void 0:xl[1];hl=(ol=(qa=fl.safeClone(oa))==null?void 0:qa.find(ul=>(ul==null?void 0:ul.label)===al))==null?void 0:ol.value}return hl})),de}),c.value=ha}else c.value=ba;Fe=Fe==null?void 0:Fe.map(oa=>{var ha;return(oa==null?void 0:oa.key)==="formContent"&&(oa.contents=(ha=oa.contents)==null?void 0:ha.map(de=>{var Fa,ja,Ee,Na;return de.value=((ja=(Fa=c.value)==null?void 0:Fa.find(Ua=>(Ua==null?void 0:Ua.label)===(de==null?void 0:de.key)))==null?void 0:ja.value)??(de==null?void 0:de.value),de.type=((Na=(Ee=c.value)==null?void 0:Ee.find(Ua=>(Ua==null?void 0:Ua.prop)===(de==null?void 0:de.key)))==null?void 0:Na.type)??(de==null?void 0:de.type),de})),oa})}ze.value=!1,s("contentChange",{contents:Fe,index:t.index});let je=[],Be=[];if((Te=fl.safeClone((Pa=Fe==null?void 0:Fe.find(va=>(va==null?void 0:va.key)==="formContent"))==null?void 0:Pa.contents))==null||Te.forEach(va=>{var _a;Array.isArray(va==null?void 0:va.value)&&((_a=va==null?void 0:va.value)!=null&&_a.find(xa=>{var oa;return(oa=xa==null?void 0:xa.url)==null?void 0:oa.includes(".obj")}))&&(Be=va==null?void 0:va.value)}),(Be==null?void 0:Be.length)>0){const va=(il=fl.safeClone(Be))==null?void 0:il.filter(_a=>{var xa;return(xa=_a==null?void 0:_a.url)==null?void 0:xa.includes(".obj")});va==null||va.forEach(_a=>{var oa,ha,de,Fa;const xa=(oa=Be==null?void 0:Be.filter(ja=>{var Ee;return(ja==null?void 0:ja.name)===(_a==null?void 0:_a.name)&&((Ee=ja==null?void 0:ja.url)==null?void 0:Ee.includes(".mtl"))}))==null?void 0:oa.map(ja=>ja==null?void 0:ja.url);je.push({objUrl:_a==null?void 0:_a.url,mtlUrls:((ha=Be==null?void 0:Be.filter(ja=>{var Ee;return(ja==null?void 0:ja.name)===(_a==null?void 0:_a.name)&&((Ee=ja==null?void 0:ja.url)==null?void 0:Ee.includes(".mtl"))}))==null?void 0:ha.length)===1?(Fa=(de=Be==null?void 0:Be.filter(ja=>{var Ee;return(ja==null?void 0:ja.name)===(_a==null?void 0:_a.name)&&((Ee=ja==null?void 0:ja.url)==null?void 0:Ee.includes(".mtl"))}))==null?void 0:de[0])==null?void 0:Fa.url:xa})}),L.setObjUrl(je)}},Ce=(me,Je,Ze)=>{let Fe="";const ba=Je==null?void 0:Je.map(Le=>{var da;return(da=Le==null?void 0:Le.value)==null?void 0:da.pageData});return ba==null||ba.forEach(Le=>{var da;(Le==null?void 0:Le.name)===(me==null?void 0:me[0])&&((da=Le==null?void 0:Le.compData)==null||da.forEach(re=>{var Se;(re==null?void 0:re.key)==="formContent"&&((Se=re==null?void 0:re.contents)==null||Se.forEach(K=>{var je;(K==null?void 0:K.prop)===(me==null?void 0:me[1])&&(Fe=(K==null?void 0:K.value)===""?na.judgeContents((je=fl.safeClone(K))==null?void 0:je.optionUrl,Ze):K==null?void 0:K.value)}))}))}),Fe},wa=(me,Je,Ze,Fe)=>{var re,Se;let ba="",Le="";(re=fl.safeClone(Je))==null||re.forEach((K,je)=>{K!=null&&K.includes("[")?Le=Le+Ne.value+me[je]:Le=Le===""?Le+K:Le+"/"+K});let da=(Se=Fe[Le])==null?void 0:Se.map(K=>{var je;return(je=K==null?void 0:K.value)==null?void 0:je.pageData});return da==null||da.forEach(K=>{var je;(K==null?void 0:K.name)===(Ze==null?void 0:Ze[0])&&((je=K==null?void 0:K.compData)==null||je.forEach(Be=>{var za;(Be==null?void 0:Be.key)==="formContent"&&((za=Be==null?void 0:Be.contents)==null||za.forEach(Sa=>{(Sa==null?void 0:Sa.prop)===(Ze==null?void 0:Ze[1])&&(ba=Sa==null?void 0:Sa.value)}))}))}),ba};return a.watch(()=>t.itemData,async()=>{var je,Be,za,Sa,Ye,ca,_e,Q,ya,We,La,yl,Aa,el,Ja,Pa,Te,il,va,_a,xa;const me=(je=t.itemData)==null?void 0:je.find(oa=>(oa==null?void 0:oa.key)==="formContent"),Je=(Be=fl.safeClone(t.itemData))==null?void 0:Be.find(oa=>(oa==null?void 0:oa.key)==="formButton"),Ze=(za=fl.safeClone(t.itemData))==null?void 0:za.find(oa=>(oa==null?void 0:oa.key)==="formFlex"),Fe=(Sa=fl.safeClone(t.itemData))==null?void 0:Sa.find(oa=>(oa==null?void 0:oa.key)==="formWrap"),ba=(Ye=fl.safeClone(t.itemData))==null?void 0:Ye.find(oa=>(oa==null?void 0:oa.key)==="enableWrap"),Le=(ca=fl.safeClone(t.itemData))==null?void 0:ca.find(oa=>(oa==null?void 0:oa.key)==="textSize"),da=(_e=fl.safeClone(t.itemData))==null?void 0:_e.find(oa=>(oa==null?void 0:oa.key)==="textRGBA");(Fe==null?void 0:Fe.contents)==="纵向"?x.value=!1:x.value=!0;const re=Number(Le==null?void 0:Le.contents);k.value=Number.isNaN(re)?void 0:re,g.value=da==null?void 0:da.contents;const Se=ba==null?void 0:ba.contents;if(Se===void 0?T.value=et.BLOCK:typeof Se=="boolean"?T.value=Se?et.ORDINARY:et.BLOCK:T.value=Se,j.value=typeof(Ze==null?void 0:Ze.contents)!="boolean"?!(!(Ze!=null&&Ze.contents)===""||((Q=Ze==null?void 0:Ze.contents)==null?void 0:Q.toUpperCase())==="VERTICAL"):Ze==null?void 0:Ze.contents,((ya=me==null?void 0:me.contents)==null?void 0:ya.length)>0&&Array.isArray(me==null?void 0:me.contents)){let oa=t.allMapContents;const ha=(La=(We=fl.safeClone(me))==null?void 0:We.contents)==null?void 0:La.map((ye,hl)=>{var kr,wr,Er,un,Jr,dn,Xr,Ur,pn,tn,Dr,Zr,Br;let Za=(ye==null?void 0:ye.label)??(ye==null?void 0:ye.key)??"";ye==null||ye.type;let xl=(ye==null?void 0:ye.options)??[];if((kr=ye==null?void 0:ye.key)!=null&&kr.includes("$")&&(Za=(wr=fl.safeClone(ye==null?void 0:ye.key).split("$"))==null?void 0:wr[0],((un=(Er=fl.safeClone(ye==null?void 0:ye.key).split("$"))==null?void 0:Er[1])==null?void 0:un.length)>0)){const[Il,qr]=(dn=(Jr=fl.safeClone(ye==null?void 0:ye.key).split("$"))==null?void 0:Jr[1])==null?void 0:dn.split(/[()]/);(Xr=na.FormType.find(Nr=>(Nr==null?void 0:Nr.key)===Il))==null||Xr.value,((Ur=qr==null?void 0:qr.split(","))==null?void 0:Ur.length)>0&&(xl=(pn=qr==null?void 0:qr.split(","))==null?void 0:pn.map(Nr=>({label:Nr,value:Nr})))}let qa=ye==null?void 0:ye.options;((tn=ye==null?void 0:ye.optionUrl)==null?void 0:tn.selectRelateType)==="自定义绑定"&&(qa=(Zr=(Dr=ye==null?void 0:ye.optionUrl)==null?void 0:Dr.defaultSelect)==null?void 0:Zr.map(Il=>({label:Il,value:Il})));let ol=(ye==null?void 0:ye.menuPath)??[],al=(ye==null?void 0:ye.groups)??[],ul=(ye==null?void 0:ye.columns)??[],dl=!1,Wl=(ye==null?void 0:ye.isFormColHidden)??!1,ql="",Pl=ye!=null&&ye.value?ye.value:(qa==null?void 0:qa.length)>0?(Br=qa==null?void 0:qa[0])==null?void 0:Br.value:(ye==null?void 0:ye.value)??"",Hl=!1,gr="Input";return((qa==null?void 0:qa.length)>0||(ol==null?void 0:ol.length)>0)&&(gr="Select"),(Array.isArray(ql)&&(ql!=null&&ql.every(Il=>(Il==null?void 0:Il.name)&&(Il==null?void 0:Il.url)))||Array.isArray(Pl)&&(Pl!=null&&Pl.every(Il=>(Il==null?void 0:Il.name)&&(Il==null?void 0:Il.url))))&&(gr="upload"),ye!=null&&ye.isMainUrl&&(gr="Url"),{label:Za??"",name:Za??"t"+hl,prop:Za??fl.safeClone(ye==null?void 0:ye.key),type:(ye==null?void 0:ye.type)??gr,value:(ye==null?void 0:ye.type)==="Date"&&Pl===""?new Date:Pl,id:(ye==null?void 0:ye.id)??hl,contents:(qa==null?void 0:qa.length)>0?qa:xl??[],width:(ye==null?void 0:ye.width)??1,isLoginUser:dl,config:ye==null?void 0:ye.config,optionUrl:(ye==null?void 0:ye.optionUrl)??ye,isFormColHidden:Wl,signature:Hl,isMain:ye==null?void 0:ye.isMain,required:(ye==null?void 0:ye.required)??!1,isMainUrl:ye==null?void 0:ye.isMainUrl,operable:(ye==null?void 0:ye.operable)??!1,disabled:(ye==null?void 0:ye.disabled)??!1,isSync:ye==null?void 0:ye.isSync,menus:ol,groups:al,words:ul,allSelectionContents:ye==null?void 0:ye.allContents,filterContent:ye==null?void 0:ye.filterContents}}),de=ha==null?void 0:ha.map(ye=>ye==null?void 0:ye.value);let Fa="";de==null||de.forEach(ye=>{ye!==""&&ye!==void 0&&(Fa=Fa===""?ye:Fa+"/"+ye)}),C.setSelectArray(de),C.setSelectString(Fa);let ja=(yl=fl.safeClone(ha))==null?void 0:yl.map(ye=>(ye!=null&&ye.value&&na.IsJson(ye==null?void 0:ye.value)&&Array.isArray(JSON.parse(ye==null?void 0:ye.value))&&(ye.value=JSON.parse(ye.value)),ye)),Ee={};ja==null||ja.forEach(ye=>{Ee[ye.label]=ye==null?void 0:ye.value}),ja=ja==null?void 0:ja.map(ye=>{var hl,Za,xl,qa,ol,al,ul,dl,Wl;if((ye==null?void 0:ye.type)==="Select"&&((hl=ye==null?void 0:ye.allSelectionContents)==null?void 0:hl.length)>0&&(ye.contactValue=Ee),(xl=(Za=ye==null?void 0:ye.optionUrl)==null?void 0:Za.menuSelect)!=null&&xl.some(ql=>ql==null?void 0:ql.includes("["))){let ql="";ye.optionUrl.oldMenuSelect=(ol=(qa=fl.safeClone(ye))==null?void 0:qa.optionUrl)==null?void 0:ol.menuSelect,ye.optionUrl.menuSelect=(ul=(al=ye==null?void 0:ye.optionUrl)==null?void 0:al.menuSelect)==null?void 0:ul.map(Pl=>{var Hl,gr,rr,kr,wr,Er;if(Pl!=null&&Pl.includes("[")){let un=(gr=(Hl=Pl==null?void 0:Pl.replaceAll("[","").replaceAll("]",""))==null?void 0:Hl.split(":"))==null?void 0:gr[1];ql=Ce((rr=Pl==null?void 0:Pl.replaceAll("[","").replaceAll("]",""))==null?void 0:rr.split(":"),oa==null?void 0:oa[ge.value],oa),Pl=((wr=(kr=fl.safeClone(ja))==null?void 0:kr.find(Jr=>(Jr==null?void 0:Jr.label)===un))==null?void 0:wr.value)||Ce((Er=Pl==null?void 0:Pl.replaceAll("[","").replaceAll("]",""))==null?void 0:Er.split(":"),oa==null?void 0:oa[ge.value],oa)}return Pl}),ql!==""&&ye.value===""&&(ye.value=wa(ye.optionUrl.menuSelect,ye.optionUrl.oldMenuSelect,(dl=ye==null?void 0:ye.optionUrl)==null?void 0:dl.groupSelect,oa),Array.isArray(ye.value)&&((Wl=ye.value)!=null&&Wl.every(Pl=>Pl==null?void 0:Pl.url))&&(ye.type="UPLOAD"))}return ye}),c.value=ja,D.value=((Aa=c.value)==null?void 0:Aa.every(ye=>ye==null?void 0:ye.disabled))||Ke.value===ge.value,te.value=(el=c.value)==null?void 0:el.every(ye=>ye==null?void 0:ye.operable),ee.value=(Ja=c.value)==null?void 0:Ja.map(ye=>ye==null?void 0:ye.label);let Na=[],Ua=[];if((Pa=fl.safeClone(c.value))==null||Pa.forEach(ye=>{var hl;Array.isArray(ye==null?void 0:ye.value)&&((hl=ye==null?void 0:ye.value)!=null&&hl.find(Za=>{var xl;return(xl=Za==null?void 0:Za.url)==null?void 0:xl.includes(".obj")}))&&(Ua=ye==null?void 0:ye.value)}),(Ua==null?void 0:Ua.length)>0){const ye=(Te=fl.safeClone(Ua))==null?void 0:Te.filter(hl=>{var Za;return(Za=hl==null?void 0:hl.url)==null?void 0:Za.includes(".obj")});ye==null||ye.forEach(hl=>{var xl,qa,ol,al;const Za=(xl=Ua==null?void 0:Ua.filter(ul=>{var dl;return(ul==null?void 0:ul.name)===(hl==null?void 0:hl.name)&&((dl=ul==null?void 0:ul.url)==null?void 0:dl.includes(".mtl"))}))==null?void 0:xl.map(ul=>ul==null?void 0:ul.url);Na.push({objUrl:hl==null?void 0:hl.url,mtlUrls:((qa=Ua==null?void 0:Ua.filter(ul=>{var dl;return(ul==null?void 0:ul.name)===(hl==null?void 0:hl.name)&&((dl=ul==null?void 0:ul.url)==null?void 0:dl.includes(".mtl"))}))==null?void 0:qa.length)===1?(al=(ol=Ua==null?void 0:Ua.filter(ul=>{var dl;return(ul==null?void 0:ul.name)===(hl==null?void 0:hl.name)&&((dl=ul==null?void 0:ul.url)==null?void 0:dl.includes(".mtl"))}))==null?void 0:ol[0])==null?void 0:al.url:Za})}),L.setObjUrl(Na)}(il=fl.safeClone(c.value))==null||il.forEach(ye=>{var hl,Za,xl,qa,ol,al,ul,dl,Wl,ql,Pl,Hl,gr;if((Za=(hl=ye==null?void 0:ye.value)==null?void 0:hl.toString())!=null&&Za.includes(".stl")||(qa=(xl=ye==null?void 0:ye.value)==null?void 0:xl.toString())!=null&&qa.includes(".STL")||(al=(ol=ye==null?void 0:ye.value)==null?void 0:ol.toString())!=null&&al.includes(".obj")||(dl=(ul=ye==null?void 0:ye.value)==null?void 0:ul.toString())!=null&&dl.includes(".mtl")||(ql=(Wl=ye==null?void 0:ye.value)==null?void 0:Wl.toString())!=null&&ql.includes(".urdf")){let rr={},kr=[],wr;Array.isArray(ye==null?void 0:ye.value)?wr=ye==null?void 0:ye.value:wr=(Pl=ye==null?void 0:ye.value)==null?void 0:Pl.split(","),wr==null||wr.forEach(Er=>{Er.includes(".mtl")?kr.push(Er):rr.blob=rr.blob==="undefined"?Er:rr.blob+","+Er}),(kr==null?void 0:kr.length)>0&&(rr.mtlBlobs=kr),(gr=(Hl=Object.values(rr))==null?void 0:Hl[0])!=null&&gr.includes("http:")}})}else c.value=[];let K=ne.value;if((K==null?void 0:K.length)>0&&(K=K==null?void 0:K.map(oa=>{var de,Fa,ja,Ee;let ha=(de=oa==null?void 0:oa.key)==null?void 0:de.split("/");return(t==null?void 0:t.compName)===(ha==null?void 0:ha[0])&&(Fa=c.value)!=null&&Fa.find(Na=>(Na==null?void 0:Na.prop)===(ha==null?void 0:ha[1]))&&(oa.value=(Ee=(ja=c.value)==null?void 0:ja.find(Na=>(Na==null?void 0:Na.prop)===(ha==null?void 0:ha[1])))==null?void 0:Ee.value),oa}),De.setTableViewContents(K)),t!=null&&t.formRules)u.value=t==null?void 0:t.formRules;else{let oa={};(va=fl.safeClone(c).value)==null||va.forEach(ha=>{((ha==null?void 0:ha.isMain)===!0||(ha==null?void 0:ha.required)===!0)&&(oa[(ha==null?void 0:ha.prop)??(ha==null?void 0:ha.name)]=[{required:!0,message:`${(ha==null?void 0:ha.label)||(ha==null?void 0:ha.prop)||(ha==null?void 0:ha.name)}不能为空`}])}),u.value=oa}if(((_a=Je==null?void 0:Je.contents)==null?void 0:_a.length)>0){const oa=[];(xa=Je==null?void 0:Je.contents)==null||xa.forEach((ha,de)=>{(ha==null?void 0:ha.label)!==""&&oa.push({label:(ha==null?void 0:ha.label)??"",id:(ha==null?void 0:ha.id)??de,type:(ha==null?void 0:ha.type)??"",background:ha==null?void 0:ha.background})}),U.value=oa}else U.value=[]},{deep:!0,immediate:!0}),a.watch(()=>Ke.value,me=>{D.value=me===ge.value},{immediate:!0}),(me,Je)=>{var re,Se;const Ze=a.resolveComponent("svg-icon"),Fe=a.resolveComponent("el-switch"),ba=a.resolveComponent("el-checkbox"),Le=a.resolveComponent("el-popover"),da=a.resolveComponent("el-checkbox-group");return a.openBlock(),a.createElementBlock("div",p3,[T.value===a.unref(et).TEXT?(a.openBlock(),a.createBlock(mc,{key:0,itemData:l.itemData,compName:l.compName,fields:c.value,textSize:k.value,textColor:g.value,disabled:D.value||Ha()},null,8,["itemData","compName","fields","textSize","textColor","disabled"])):T.value===a.unref(et).BLOCK?(a.openBlock(),a.createBlock(Jp,{key:1,items:(Se=(re=c.value)==null?void 0:re.filter(K=>!(K!=null&&K.isFormColHidden)))==null?void 0:Se.map(K=>({label:K==null?void 0:K.label,value:K==null?void 0:K.value,width:(K==null?void 0:K.width)??1,field:K})),textSize:k.value,textColor:g.value,disabled:D.value||Ha()},null,8,["items","textSize","textColor","disabled"])):(a.openBlock(),a.createElementBlock("div",{key:2,class:a.normalizeClass({"form-shadow-box":T.value===a.unref(et).ORDINARY})},[a.createVNode(fl.ssForm,{rowContents:c.value,formRules:u.value,buttonValue:U.value,isRowFlex:!1,isEnableWrap:!0,textSize:k.value,textColor:g.value,onOnButtonClick:aa,onChange:Ie,formDisabled:D.value||Ha(),formLabelsOperable:te.value,isButtonRow:x.value,onPreview:ce,onBlurChange:ie,onHandleColEditChange:P,onHandleColTypeChange:F,onRouteUrl:Ge,onClickTrigger:$e},{operateCol:a.withCtx(({renderColumns:K,formDisabled:je,formLabelsOperable:Be})=>[a.createVNode(Le,{title:"选择操作的标签",placement:"left-start","popper-class":"menu-operate-popover",trigger:"hover",onShow:He},{reference:a.withCtx(()=>[a.createElementVNode("span",f3,[a.createVNode(Ze,{name:"more",style:{cursor:"pointer",width:"15px",height:"15px"}})])]),default:a.withCtx(()=>[a.createElementVNode("div",h3,[Je[1]||(Je[1]=a.createElementVNode("div",{class:"group-title"},"表单操作",-1)),a.createVNode(Fe,{"model-value":je,"active-text":"禁用","inactive-text":"",onChange:Pe,style:{"margin-right":"8px"}},null,8,["model-value"]),a.createVNode(Fe,{"model-value":Be,"active-text":"编辑所有标签","inactive-text":"",onChange:ga},null,8,["model-value"]),Je[2]||(Je[2]=a.createElementVNode("div",{class:"group-title"},"表单列操作",-1)),a.createVNode(da,{modelValue:ee.value,"onUpdate:modelValue":Je[0]||(Je[0]=za=>ee.value=za),style:{height:"100%"},ref_key:"checkboxGroupRef",ref:Da,onChange:Ae},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(K,za=>(a.openBlock(),a.createElementBlock("div",{style:{display:"flex","align-items":"center"},key:za.label},[a.createVNode(ba,{value:za.label,style:{width:"100%",marginRight:0}},{default:a.withCtx(()=>[a.createElementVNode("span",null,a.toDisplayString(za.label),1)]),_:2},1032,["value"]),a.createVNode(Le,{title:"标签操作",placement:"left",teleported:!1,trigger:"hover"},{reference:a.withCtx(()=>[a.createVNode(Ze,{name:"colOperate",style:{width:"15px",height:"15px",cursor:"pointer",color:"grey",position:"absolute",right:"40px"}})]),default:a.withCtx(()=>{var Sa;return[a.createElementVNode("div",v3,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList((Sa=Object.keys(za))==null?void 0:Sa.filter(Ye=>{var ca;return(ca=Qe.value)==null?void 0:ca.find(_e=>(_e==null?void 0:_e.value)===Ye)}),Ye=>{var ca,_e;return a.openBlock(),a.createElementBlock("div",{key:Ye},[a.createVNode(fl._sfc_main$1,{value:za==null?void 0:za[Ye],"active-text":(_e=(ca=Qe.value)==null?void 0:ca.find(Q=>(Q==null?void 0:Q.value)===Ye))==null?void 0:_e.label,inactiveText:"",onChange:Q=>G(Q,Ye,za)},null,8,["value","active-text","onChange"])])}),128))])]}),_:2},1024),a.createElementVNode("span",m3,[a.createVNode(Ze,{name:"drag",class:"col-drag-icon",style:{width:"15px",height:"15px"}})])]))),128))]),_:2},1032,["modelValue"])])]),_:2},1024)]),_:1},8,["rowContents","formRules","buttonValue","textSize","textColor","formDisabled","formLabelsOperable","isButtonRow"])],2)),S.value?(a.openBlock(),a.createBlock(fl.ssFilePreview,{key:3,fileDataList:B.value,onDestroy:pa},null,8,["fileDataList"])):a.createCommentVNode("",!0),b.value?(a.openBlock(),a.createBlock(vr.ssDialog,{key:4,visible:b.value,onBeforeDestroy:n,style:{height:"700px",width:"1000px"}},{default:a.withCtx(()=>[a.createVNode(go.ThreeViewerHost,{files:v.value,onGetAnimationData:me.onAnimationData},null,8,["files","onGetAnimationData"])]),_:1},8,["visible"])):a.createCommentVNode("",!0)])}}},fs=Ul._export_sfc(y3,[["__scopeId","data-v-c4708f41"]]),Do=a.ref(0),yc=l=>{var r;return!l||(l==null?void 0:l.length)===0?[]:(r=I.cloneDeep(l))==null?void 0:r.map(t=>(Do.value++,t={label:(t==null?void 0:t.label)??"",prop:(t==null?void 0:t.label)==="操作"?"operate":t==null?void 0:t.prop,width:t!=null&&t.width?parseInt(t.width):"",fixed:(t==null?void 0:t.fixed)??void 0,sortable:(t==null?void 0:t.sortable)??!1,align:(t==null?void 0:t.align)??"left",showOverflowTooltip:(t==null?void 0:t.showOverflowTooltip)??!0,isNotDrag:(t==null?void 0:t.isNotDrag)??!1,isEditCol:(t==null?void 0:t.isEditCol)??!1,isOperate:(t==null?void 0:t.isOperate)??!1,id:(t==null?void 0:t.id)??Do.value,children:yc(t==null?void 0:t.children)},t))},g3=l=>{var n;return(n=I.cloneDeep(l))==null?void 0:n.map(t=>(Do.value++,t={label:(t==null?void 0:t.label)??"",prop:(t==null?void 0:t.label)==="操作"?"operate":t==null?void 0:t.prop,width:t!=null&&t.width?parseInt(t.width):"",fixed:(t==null?void 0:t.fixed)??void 0,sortable:(t==null?void 0:t.sortable)??!1,align:(t==null?void 0:t.align)??"left",showOverflowTooltip:(t==null?void 0:t.showOverflowTooltip)??!0,isNotDrag:(t==null?void 0:t.isNotDrag)??!1,isEditCol:(t==null?void 0:t.isEditCol)??!1,isOperate:(t==null?void 0:t.isOperate)??!1,id:(t==null?void 0:t.id)??Do.value,children:yc(t==null?void 0:t.children)},t))},gc=(l,r)=>{var n;return l!=null&&l.find(t=>(t==null?void 0:t.id)===r)?(n=I.cloneDeep(l))==null?void 0:n.filter(s=>(s==null?void 0:s.id)!==r):(l=l==null?void 0:l.map(t=>(t.children=gc(t==null?void 0:t.children,r),t)),l)},bc=(l,r)=>{var n;return l!=null&&l.find(t=>(t==null?void 0:t.id)===(r==null?void 0:r.id))?(n=I.cloneDeep(l))==null?void 0:n.map(s=>((s==null?void 0:s.id)===(r==null?void 0:r.id)&&(s=r),s)):(l=l==null?void 0:l.map(t=>(t.children=bc(t==null?void 0:t.children,r),t)),l)},kc=(l,r)=>{var n;return l!=null&&l.find(t=>{var s;return(t==null?void 0:t.id)===((s=r==null?void 0:r.contents)==null?void 0:s.id)})?(n=I.cloneDeep(l))==null?void 0:n.map(s=>{var c;return(s==null?void 0:s.id)===((c=r==null?void 0:r.contents)==null?void 0:c.id)&&(s=r==null?void 0:r.contents),s}):(l=l==null?void 0:l.map(t=>(t.children=kc(t==null?void 0:t.children,r),t)),l)},xc=(l,r)=>{var n;return l!=null&&l.find(t=>(t==null?void 0:t.id)===(r==null?void 0:r.id))?(n=I.cloneDeep(l))==null?void 0:n.map(s=>((s==null?void 0:s.id)===(r==null?void 0:r.id)&&(s!=null&&s.children||(s.children=[]),s.children.push(r.contents)),s)):(l=l==null?void 0:l.map(t=>(t.children=xc(t==null?void 0:t.children,r),t)),l)},er=[{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"}],k3=[{label:"新增",value:"add"}],zn=[{key:"label",label:"按钮名",type:"Input"},{key:"type",label:"类型",type:"Select",options:k3},{key:"background",label:"按钮背景色",type:"Color"}],Mn=[{key:"label",label:"按钮名",type:"Input"},{key:"type",label:"类型",type:"Select",options:b3},{key:"textColor",label:"按钮颜色",type:"Color"}],x3={class:"table-header-child"},_3={class:"table-header-child-main"},w3={class:"table-header-child-content"},C3={class:"table-header-child-content-item"},E3={class:"fix-button"},S3={key:0},D3={class:"form-content"},B3={__name:"tableNewChild",props:{tableChildContents:Array},emits:["fixChange","deleteChange"],setup(l,{emit:r}){const n=l,t=r,s=a.ref(!1),c=a.ref(""),b=na.useTableComp(I.pinia),{tableIndex:h}=I.storeToRefs(b);a.ref(0);const v=a.ref(""),y=a.ref([]),u=a.ref([]),x=C=>{var T;s.value=!0;let L=[];er==null||er.forEach(k=>{let g=I.cloneDeep(h.value)+1;b.setTableIndex(g),L.push({label:k==null?void 0:k.label,name:k==null?void 0:k.label,type:k.type,value:C[k.key],id:h.value,contents:k==null?void 0:k.options})}),C!=null&&C.children&&((T=C==null?void 0:C.children)==null?void 0:T.length)>0&&L.push({children:C==null?void 0:C.children,isFormColHidden:!0}),v.value=C==null?void 0:C.id,y.value=L,u.value=L},S=C=>{t("fixChange",I.cloneDeep(C))},M=C=>{t("deleteChange",I.cloneDeep(C))},_=C=>{s.value=!0;let L=[];er==null||er.forEach(T=>{let k=I.cloneDeep(h.value)+1;b.setTableIndex(k),L.push({label:T==null?void 0:T.label,name:T==null?void 0:T.label,type:T.type,value:"",id:h.value,contents:T==null?void 0:T.options})}),c.value=C==null?void 0:C.id,y.value=L,u.value=L},U=C=>{let L=I.cloneDeep(u.value);L=L==null?void 0:L.map(T=>(T.children||(T.value=C==null?void 0:C[T.name]),T)),u.value=L},B=()=>{var L,T;y.value=u.value;let C={};if(v.value!=="")C.id=v.value,(L=y.value)==null||L.forEach(k=>{const g=er==null?void 0:er.find(j=>(j==null?void 0:j.label)===(k==null?void 0:k.label));g?C[g.key]=k.value:k!=null&&k.children&&k.children.length>0&&(C.children=k.children)}),s.value=!1,t("fixChange",{contents:I.cloneDeep(C),id:c.value,type:"fix"});else{let k=I.cloneDeep(h.value)+1;b.setTableIndex(k),C.id="id"+h.value,(T=y.value)==null||T.forEach(g=>{const j=er==null?void 0:er.find(W=>(W==null?void 0:W.label)===(g==null?void 0:g.label));j?C[j.key]=g.value:g!=null&&g.children&&g.children.length>0&&(C.children=g.children)}),s.value=!1,t("fixChange",{contents:I.cloneDeep(C),id:c.value,type:"add"})}v.value="",y.value=[],u.value=[]},A=()=>{s.value=!1,v.value="",c.value="",y.value=[],u.value=[]},R=C=>{I.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{t("deleteChange",C),rl.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})};return(C,L)=>{const T=a.resolveComponent("svg-icon");return a.openBlock(),a.createElementBlock("div",x3,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n==null?void 0:n.tableChildContents,(k,g)=>(a.openBlock(),a.createElementBlock("div",_3,[a.createElementVNode("div",w3,[a.createElementVNode("div",C3,a.toDisplayString(k.label),1),a.createElementVNode("div",E3,[a.createVNode(T,{name:"ChildAdd",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:j=>_(k)},null,8,["onClick"]),a.createVNode(T,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:j=>x(k)},null,8,["onClick"]),a.createVNode(T,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:j=>R(k)},null,8,["onClick"])])]),k!=null&&k.children&&k.children.length>0?(a.openBlock(),a.createElementBlock("div",S3,[a.createVNode(_c,{tableChildContents:k==null?void 0:k.children,onDeleteChange:M,onFixChange:S},null,8,["tableChildContents"])])):a.createCommentVNode("",!0)]))),256)),a.createVNode(vr.ssDialog,{visible:s.value,onBeforeDestroy:A,width:840},{default:a.withCtx(()=>[a.createElementVNode("div",D3,[(a.openBlock(),a.createBlock(fl.ssForm,{rowContents:y.value,key:y.value,isEnableWrap:!0,onChange:U},null,8,["rowContents"]))])]),footer:a.withCtx(()=>[a.createElementVNode("div",{class:"dialog-footer"},[a.createElementVNode("div",{onClick:A,class:"cancel-button button"},a.toDisplayString("取消")),a.createElementVNode("div",{class:"ok-button button",onClick:B},a.toDisplayString("确认"))])]),_:1},8,["visible"])])}}},N3=Ul._export_sfc(B3,[["__scopeId","data-v-e0fef72d"]]),T3={class:"table-header-child"},A3={class:"table-header-child-main"},z3={class:"table-header-child-content"},M3={class:"table-header-child-content-item"},O3={class:"fix-button"},I3={key:0},L3={class:"form-content"},V3={class:"dialog-footer"},$3={__name:"tableChildren",props:{tableChildContents:Array},emits:["fixChange","deleteChange"],setup(l,{emit:r}){const n=l,t=r,s=a.ref(!1),c=a.ref(""),b=na.useTableComp(I.pinia),{tableIndex:h}=I.storeToRefs(b),v=a.ref(""),y=a.ref([]),u=a.ref([]),x=C=>{t("fixChange",I.cloneDeep(C))},S=C=>{var T;s.value=!0;let L=[];er==null||er.forEach(k=>{let g=I.cloneDeep(h.value)+1;b.setTableIndex(g),L.push({label:k==null?void 0:k.label,name:k==null?void 0:k.label,type:k.type,value:C[k.key],id:h.value,contents:k==null?void 0:k.options})}),C!=null&&C.children&&((T=C==null?void 0:C.children)==null?void 0:T.length)>0&&L.push({children:C==null?void 0:C.children,isFormColHidden:!0}),v.value=C==null?void 0:C.id,y.value=L,u.value=L},M=C=>{s.value=!0;let L=[];er==null||er.forEach(T=>{let k=I.cloneDeep(h.value)+1;b.setTableIndex(k),L.push({label:T==null?void 0:T.label,name:T==null?void 0:T.label,type:T.type,value:"",id:h.value,contents:T==null?void 0:T.options})}),c.value=C==null?void 0:C.id,y.value=L,u.value=L},_=C=>{let L=I.cloneDeep(u.value);L=L==null?void 0:L.map(T=>(T.children||(T.value=C==null?void 0:C[T.name]),T)),u.value=L},U=()=>{var L,T;y.value=u.value;let C={};if(v.value!=="")C.id=v.value,(L=y.value)==null||L.forEach(k=>{const g=er==null?void 0:er.find(j=>(j==null?void 0:j.label)===(k==null?void 0:k.label));g?C[g.key]=k.value:k!=null&&k.children&&k.children.length>0&&(C.children=k.children)}),s.value=!1,t("fixChange",{contents:I.cloneDeep(C),id:c.value,type:"fix"});else{let k=I.cloneDeep(h.value)+1;b.setTableIndex(k),C.id="idChild"+h.value,(T=y.value)==null||T.forEach(g=>{const j=er==null?void 0:er.find(W=>(W==null?void 0:W.label)===(g==null?void 0:g.label));j?C[j.key]=g.value:g!=null&&g.children&&g.children.length>0&&(C.children=g.children)}),s.value=!1,t("fixChange",{contents:I.cloneDeep(C),id:c.value,type:"add"})}v.value="",y.value=[],u.value=[]},B=()=>{s.value=!1,v.value="",c.value="",y.value=[],u.value=[]},A=C=>{I.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{t("deleteChange",C),rl.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},R=C=>{t("deleteChange",C)};return(C,L)=>{const T=a.resolveComponent("svg-icon"),k=a.resolveComponent("el-button");return a.openBlock(),a.createElementBlock("div",T3,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n==null?void 0:n.tableChildContents,(g,j)=>(a.openBlock(),a.createElementBlock("div",A3,[a.createElementVNode("div",z3,[a.createElementVNode("div",M3,a.toDisplayString(g.label),1),a.createElementVNode("div",O3,[a.createVNode(T,{name:"ChildAdd",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:W=>M(g)},null,8,["onClick"]),a.createVNode(T,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:W=>S(g)},null,8,["onClick"]),a.createVNode(T,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:W=>A(g)},null,8,["onClick"])])]),g!=null&&g.children&&g.children.length>0?(a.openBlock(),a.createElementBlock("div",I3,[a.createVNode(N3,{tableChildContents:g==null?void 0:g.children,onDeleteChange:R,onFixChange:x},null,8,["tableChildContents"])])):a.createCommentVNode("",!0)]))),256)),a.createVNode(vr.ssDialog,{visible:s.value,onBeforeDestroy:B,width:840},{default:a.withCtx(()=>[a.createElementVNode("div",L3,[(a.openBlock(),a.createBlock(fl.ssForm,{rowContents:y.value,key:y.value,isEnableWrap:!0,onChange:_},null,8,["rowContents"]))])]),footer:a.withCtx(()=>[a.createElementVNode("div",V3,[a.createVNode(k,{onClick:B,class:"cancel-button button",id:"themeBorderButton"},{default:a.withCtx(()=>L[0]||(L[0]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[0]}),a.createVNode(k,{class:"ok-button button",onClick:U,id:"themeButton"},{default:a.withCtx(()=>L[1]||(L[1]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[1]})])]),_:1},8,["visible"])])}}},_c=Ul._export_sfc($3,[["__scopeId","data-v-ebd68fa1"]]),R3={class:"table-operate-content"},P3={class:"table-operate-item"},F3={class:"operate-title"},j3={class:"operate-content"},H3={class:"fix-content"},U3={class:"fix-content-label"},q3={class:"fix-button"},W3={key:0},K3={class:"operate-title"},Y3={class:"operate-content"},G3={class:"fix-content"},J3={class:"fix-content-label"},X3={class:"fix-button"},Z3={class:"operate-title"},Q3={class:"operate-content"},e1={class:"fix-content"},a1={class:"fix-content-label"},l1={class:"fix-button"},r1={class:"operate-title"},n1={class:"operate-content"},o1={class:"fix-content"},i1={class:"fix-content-label"},s1={class:"fix-button"},c1={class:"operate-content"},u1={style:{display:"flex","justify-content":"space-between"}},d1={class:"form-content"},p1={class:"dialog-footer"},f1={class:"form-content"},h1={class:"dialog-footer"},v1={class:"form-content"},m1={class:"dialog-footer"},y1={class:"form-content"},g1={class:"dialog-footer"},b1={__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(l,{emit:r}){const n=l,t=r,s=a.ref([]),c=a.ref(!1),b=a.ref(!1),h=a.ref([]),v=a.ref(!1),y=a.ref([]),u=a.ref(!1),x=a.ref([]),S=a.ref(""),M=a.ref(""),_=a.ref([]),U=a.ref([]),B=a.ref([]),A=a.ref([]),R=a.ref(!1),C=a.ref([]),L=a.ref([]),T=a.ref(0),k=a.ref([]),g=a.ref([]),j=a.ref([]),W=()=>{R.value=!0;let P=[];zn==null||zn.forEach(F=>{T.value++,P.push({label:F==null?void 0:F.label,name:F==null?void 0:F.label,type:F.type,value:(F==null?void 0:F.key)==="background"?"var(--ssComponent-primary-color)":"",id:T.value,contents:F==null?void 0:F.options})}),C.value=P,L.value=P},J=()=>{var F,G,ie;b.value=!0;let P=[];(ie=(G=(F=na.FormContent)==null?void 0:F.find(ce=>(ce==null?void 0:ce.key)==="Input"))==null?void 0:G.value)==null||ie.forEach(ce=>{T.value++,P.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:T.value,contents:ce==null?void 0:ce.options})}),k.value=P,g.value=P},ke=P=>{P||(k.value=g.value)},ze=async P=>{var F,G,ie,ce,pa,aa,Ie,Ce,wa,me,Je,Ze;if((P==null?void 0:P.类型)!==((G=(F=g.value)==null?void 0:F.find(Fe=>(Fe==null?void 0:Fe.label)==="类型"))==null?void 0:G.value)){let Fe=[],ba=await((pa=(ce=(ie=na.FormContent)==null?void 0:ie.find(Le=>(Le==null?void 0:Le.key)===((P==null?void 0:P.类型)===""?"Input":P==null?void 0:P.类型)))==null?void 0:ce.value)==null?void 0:pa.value)?await((me=(wa=(Ce=na.FormContent)==null?void 0:Ce.find(Le=>(Le==null?void 0:Le.key)===((P==null?void 0:P.类型)===""?"Input":P==null?void 0:P.类型)))==null?void 0:wa.value)==null?void 0:me.value):(Ie=(aa=na.FormContent)==null?void 0:aa.find(Le=>(Le==null?void 0:Le.key)===((P==null?void 0:P.类型)===""?"Input":P==null?void 0:P.类型)))==null?void 0:Ie.value;if(ba==null||ba.forEach(Le=>{T.value++,Fe.push({label:Le==null?void 0:Le.label,name:(Le==null?void 0:Le.name)||(Le==null?void 0:Le.label),type:Le.type,value:Le!=null&&Le.属性名?(P==null?void 0:P.prop)||(P==null?void 0:P.name)||(P==null?void 0:P.label):(P==null?void 0:P[Le.label])??"",id:T.value,contents:Le==null?void 0:Le.options,prop:(Le==null?void 0:Le.prop)||(Le==null?void 0:Le.name)||(Le==null?void 0:Le.label)})}),P!=null&&P.菜单选项&&((Je=P==null?void 0:P.菜单选项)==null?void 0:Je.length)>0){const Le=await na.menuToContentType(P==null?void 0:P.菜单选项);Fe=Fe==null?void 0:Fe.map(da=>((da==null?void 0:da.name)==="组信息选项"&&(da.contents=Le),da))}g.value=await na.selectToBase(I.cloneDeep(Fe)),k.value=await na.selectToBase(I.cloneDeep(Fe))}else{let Fe=I.cloneDeep(k.value);if(Fe=Fe==null?void 0:Fe.map(ba=>(ba.value=P==null?void 0:P[ba.name],ba)),P!=null&&P.菜单选项&&((Ze=P==null?void 0:P.菜单选项)==null?void 0:Ze.length)>0){const ba=await na.menuToContentType(P==null?void 0:P.菜单选项);Fe=Fe==null?void 0:Fe.map(Le=>((Le==null?void 0:Le.name)==="组信息选项"&&(Le.contents=ba),Le))}Fe=na.formToOptionsContents(Fe),g.value=await na.selectToBase(I.cloneDeep(Fe))}},De=async P=>{await ze(P),k.value=g.value},ne=(P,F)=>{if((F==null?void 0:F.type)=="Select"&&(P==null?void 0:P.key)==="selectRelateType"){const G=F==null?void 0:F.optionUrl;return(G==null?void 0:G.selectRelateType)||F[P.key]}if((F==null?void 0:F.type)=="Select"&&(P==null?void 0:P.key)==="menuSelect"){const G=F==null?void 0:F.optionUrl;return(G==null?void 0:G.menuSelect)||F[P.key]}if((F==null?void 0:F.type)=="Select"&&(P==null?void 0:P.key)==="groupSelect"){const G=F==null?void 0:F.optionUrl;return(G==null?void 0:G.groupSelect)||F[P.key]}if((F==null?void 0:F.type)=="Select"&&(P==null?void 0:P.key)==="originalContent")return(F==null?void 0:F.value)||F[P.key];if((F==null?void 0:F.type)=="Select"&&(P==null?void 0:P.key)==="multiple"){const G=F[P.key];return Us(G)?G:P.default}return(P==null?void 0:P.label)==="类型"&&F[P.key]===""?"Input":(P==null?void 0:P.key)==="isFormColHidden"&&!F[P.key]?!1:F[P.key]},xe=async P=>{var ie,ce,pa,aa,Ie,Ce,wa,me,Je;b.value=!0;let F=[];const G=await((pa=(ce=(ie=na.FormContent)==null?void 0:ie.find(Ze=>(Ze==null?void 0:Ze.key)===((P==null?void 0:P.type)===""?"Input":P==null?void 0:P.type)))==null?void 0:ce.value)==null?void 0:pa.value)?await((me=(wa=(Ce=na.FormContent)==null?void 0:Ce.find(Ze=>(Ze==null?void 0:Ze.key)===((P==null?void 0:P.type)===""?"Input":P==null?void 0:P.type)))==null?void 0:wa.value)==null?void 0:me.value):(Ie=(aa=na.FormContent)==null?void 0:aa.find(Ze=>(Ze==null?void 0:Ze.key)===((P==null?void 0:P.type)===""?"Input":P==null?void 0:P.type)))==null?void 0:Ie.value;if(G==null||G.forEach(Ze=>{T.value++,F.push({label:Ze==null?void 0:Ze.label,name:(Ze==null?void 0:Ze.name)||(Ze==null?void 0:Ze.label),type:Ze.type,value:(Ze==null?void 0:Ze.label)==="属性名"?(P==null?void 0:P.prop)||(P==null?void 0:P.name)||(P==null?void 0:P.label):ne(Ze,P),id:T.value,contents:Ze==null?void 0:Ze.options})}),P!=null&&P.menuSelect&&((Je=P==null?void 0:P.menuSelect)==null?void 0:Je.length)>0){const Ze=await na.menuToContentType(P==null?void 0:P.menuSelect);F=F==null?void 0:F.map(Fe=>((Fe==null?void 0:Fe.name)==="组信息选项"&&(Fe.contents=Ze),Fe))}S.value=P==null?void 0:P.id,k.value=await na.selectToBase(na.formToOptionsContents(F)),g.value=await na.selectToBase(na.formToOptionsContents(F))},X=P=>{I.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var F,G;j.value=(F=I.cloneDeep(j.value))==null?void 0:F.filter(ie=>(ie==null?void 0:ie.id)!==(P==null?void 0:P.id)),t("change",(G=I.cloneDeep(n.originalItemContents))==null?void 0:G.map(ie=>((ie==null?void 0:ie.key)==="tableToForm"&&(ie.contents=j.value),ie))),rl.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},pe=()=>{b.value=!1,k.value=[],S.value=""},Ke=async()=>{var ie,ce,pa,aa,Ie,Ce,wa,me,Je,Ze;k.value=g.value;let P={};S.value!==""?P.id=S.value:(T.value++,P.id="id"+T.value);let F=await((pa=(ce=(ie=na.FormContent)==null?void 0:ie.find(Fe=>{var ba,Le;return(Fe==null?void 0:Fe.key)===(((Le=(ba=k.value)==null?void 0:ba.find(da=>(da==null?void 0:da.label)==="类型"))==null?void 0:Le.value)??"label")}))==null?void 0:ce.value)==null?void 0:pa.value)??((Ie=(aa=na.FormContent)==null?void 0:aa.find(Fe=>{var ba,Le;return(Fe==null?void 0:Fe.key)===(((Le=(ba=k.value)==null?void 0:ba.find(da=>(da==null?void 0:da.label)==="类型"))==null?void 0:Le.value)??"label")}))==null?void 0:Ie.value);if((Ce=k.value)==null||Ce.forEach(Fe=>{const ba=F==null?void 0:F.find(Le=>(Le==null?void 0:Le.label)===(Fe==null?void 0:Fe.label));ba&&(P[ba.key]=Fe.value)}),P.name=P.label,(wa=j.value)!=null&&wa.find(Fe=>Fe.id===P.id))j.value=(me=j.value)==null?void 0:me.map(Fe=>(Fe.id===P.id&&(Fe=P),Fe));else{let Fe=I.cloneDeep(j.value);j.value||(j.value=[]),Fe.push(P),j.value=Fe}j.value=j.value.map(({id:Fe,...ba})=>ba),b.value=!1,S.value="";let G=I.cloneDeep(n.originalItemContents);(Je=I.cloneDeep(n.originalItemContents))!=null&&Je.find(Fe=>(Fe==null?void 0:Fe.key)==="tableToForm")?G=(Ze=I.cloneDeep(n.originalItemContents))==null?void 0:Ze.map(Fe=>((Fe==null?void 0:Fe.key)==="tableToForm"&&(Fe.contents=j.value),Fe)):G.push({key:"tableToForm",contents:j.value}),t("change",G)},Da=P=>{R.value=!0;let F=[];zn==null||zn.forEach(G=>{T.value++,F.push({label:G==null?void 0:G.label,name:G==null?void 0:G.label,type:G.type,value:P[G.key],id:T.value,contents:G==null?void 0:G.options})}),S.value=P==null?void 0:P.id,C.value=F,L.value=F};a.watch(()=>u.value,()=>{var F,G;let P=I.cloneDeep(n.originalItemContents);(F=I.cloneDeep(n.originalItemContents))!=null&&F.find(ie=>(ie==null?void 0:ie.key)==="page")?P=(G=I.cloneDeep(n.originalItemContents))==null?void 0:G.map(ie=>((ie==null?void 0:ie.key)==="page"&&(ie.contents=u.value),ie)):P.push({key:"page",contents:u.value}),t("change",P)},{deep:!0});const te=P=>{I.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var F,G;U.value=(F=I.cloneDeep(U.value))==null?void 0:F.filter(ie=>(ie==null?void 0:ie.id)!==(P==null?void 0:P.id)),t("change",(G=I.cloneDeep(n.originalItemContents))==null?void 0:G.map(ie=>((ie==null?void 0:ie.key)==="extraButton"&&(ie.contents=U.value),ie))),rl.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},D=()=>{var G,ie,ce,pa,aa;C.value=L.value;let P={};if(S.value!==""?P.id=S.value:(T.value++,P.id="id"+T.value),(G=C.value)==null||G.forEach(Ie=>{const Ce=zn==null?void 0:zn.find(wa=>(wa==null?void 0:wa.label)===(Ie==null?void 0:Ie.label));Ce?P[Ce.key]=Ie.value:Ie!=null&&Ie.children&&Ie.children.length>0&&(P.children=Ie.children)}),(ie=U.value)!=null&&ie.find(Ie=>Ie.id===P.id))U.value=(ce=U.value)==null?void 0:ce.map(Ie=>(Ie.id===P.id&&(Ie=P),Ie));else{let Ie=I.cloneDeep(U.value)??[];Ie.push(P),U.value=Ie}R.value=!1,S.value="";let F=I.cloneDeep(n.originalItemContents);(pa=I.cloneDeep(n.originalItemContents))!=null&&pa.find(Ie=>(Ie==null?void 0:Ie.key)==="extraButton")?F=(aa=I.cloneDeep(n.originalItemContents))==null?void 0:aa.map(Ie=>((Ie==null?void 0:Ie.key)==="extraButton"&&(Ie.contents=U.value),Ie)):F.push({key:"extraButton",contents:U.value}),t("change",F)},le=P=>{let F=I.cloneDeep(L.value);F=F==null?void 0:F.map(G=>(G.children||(G.value=P==null?void 0:P[G.name]),G)),L.value=F},ge=()=>{R.value=!1,C.value=[],S.value=""},ue=P=>{v.value=!0;let F=[];Mn==null||Mn.forEach(G=>{T.value++,F.push({label:G==null?void 0:G.label,name:G==null?void 0:G.label,type:G.type,value:P[G.key],id:T.value,contents:G==null?void 0:G.options})}),S.value=P==null?void 0:P.id,B.value=F,A.value=F},Ne=P=>{I.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var F,G;_.value=(F=I.cloneDeep(_.value))==null?void 0:F.filter(ie=>(ie==null?void 0:ie.id)!==(P==null?void 0:P.id)),t("change",(G=I.cloneDeep(n.originalItemContents))==null?void 0:G.map(ie=>((ie==null?void 0:ie.key)==="rowButton"&&(ie.contents=_.value),ie))),rl.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},ia=()=>{c.value=!0;let P=[];er==null||er.forEach(F=>{T.value++,P.push({label:F==null?void 0:F.label,name:F==null?void 0:F.label,type:F.type,value:"",id:T.value,contents:F==null?void 0:F.options})}),y.value=P,x.value=P},ka=()=>{v.value=!0;let P=[];Mn==null||Mn.forEach(F=>{T.value++,P.push({label:F==null?void 0:F.label,name:F==null?void 0:F.label,type:F.type,value:"",id:T.value,contents:F==null?void 0:F.options})}),B.value=P,A.value=P},Ha=P=>{let F=I.cloneDeep(A.value);F=F==null?void 0:F.map(G=>(G.children||(G.value=P==null?void 0:P[G.name]),G)),A.value=F},ee=()=>{var G,ie,ce,pa,aa;B.value=A.value;let P={};if(S.value!==""?P.id=S.value:(T.value++,P.id="id"+T.value),(G=B.value)==null||G.forEach(Ie=>{const Ce=Mn==null?void 0:Mn.find(wa=>(wa==null?void 0:wa.label)===(Ie==null?void 0:Ie.label));Ce?P[Ce.key]=Ie.value:Ie!=null&&Ie.children&&Ie.children.length>0&&(P.children=Ie.children)}),(ie=_.value)!=null&&ie.find(Ie=>Ie.id===P.id))_.value=(ce=_.value)==null?void 0:ce.map(Ie=>(Ie.id===P.id&&(Ie=P),Ie));else{let Ie=I.cloneDeep(_.value);Ie.push(P),_.value=Ie}v.value=!1,S.value="";let F=I.cloneDeep(n.originalItemContents);(pa=I.cloneDeep(n.originalItemContents))!=null&&pa.find(Ie=>(Ie==null?void 0:Ie.key)==="rowButton")?F=(aa=I.cloneDeep(n.originalItemContents))==null?void 0:aa.map(Ie=>((Ie==null?void 0:Ie.key)==="rowButton"&&(Ie.contents=_.value),Ie)):F.push({key:"rowButton",contents:_.value}),t("change",F)},Qe=()=>{v.value=!1,S.value="",A.value=[],B.value=[]},Pe=P=>{c.value=!0;let F=[];er==null||er.forEach(G=>{T.value++,F.push({label:G==null?void 0:G.label,name:G==null?void 0:G.label,type:G.type,value:"",id:T.value,contents:G==null?void 0:G.options})}),y.value=F,M.value=P==null?void 0:P.id,x.value=F},ga=P=>{var F;h.value=gc(I.cloneDeep(h.value),P==null?void 0:P.id),t("change",(F=I.cloneDeep(n.originalItemContents))==null?void 0:F.map(G=>{var ie;return(G==null?void 0:G.key)==="header"&&(G.contents=(ie=h.value)!=null&&ie.some(ce=>ce==null?void 0:ce.children)?[h.value]:h.value),G}))},He=P=>{var G,ie,ce;P.type==="fix"?P.id!==""?h.value=kc(h.value,P):h.value=bc(h.value,P==null?void 0:P.contents):h.value=xc(h.value,P),h.value=(G=h.value)!=null&&G.some(pa=>pa==null?void 0:pa.children)?[h.value]:h.value,S.value="";let F=I.cloneDeep(n.originalItemContents);(ie=I.cloneDeep(n.originalItemContents))!=null&&ie.find(pa=>(pa==null?void 0:pa.key)==="header")?F=(ce=I.cloneDeep(n.originalItemContents))==null?void 0:ce.map(pa=>((pa==null?void 0:pa.key)==="header"&&(pa.contents=h.value),pa)):F.push({key:"header",contents:h.value}),t("change",F)},Ae=P=>{var G;c.value=!0;let F=[];er==null||er.forEach(ie=>{T.value++,F.push({label:ie==null?void 0:ie.label,name:ie==null?void 0:ie.label,type:ie.type,value:P[ie.key],id:T.value,contents:ie==null?void 0:ie.options})}),P!=null&&P.children&&((G=P==null?void 0:P.children)==null?void 0:G.length)>0&&F.push({children:P==null?void 0:P.children,isFormColHidden:!0}),S.value=P==null?void 0:P.id,M.value="",y.value=F,x.value=F},$e=P=>{let F=I.cloneDeep(x.value);F=F==null?void 0:F.map(G=>(G.children||(G.value=P==null?void 0:P[G.name]),G)),x.value=F},Ge=()=>{c.value=!1,S.value="",M.value="",x.value=[]},Wa=()=>{var G,ie,ce,pa,aa,Ie;y.value=x.value;let P={};if(S.value!==""?P.id=S.value:(T.value++,P.id="id"+T.value),(G=y.value)==null||G.forEach(Ce=>{const wa=er==null?void 0:er.find(me=>(me==null?void 0:me.label)===(Ce==null?void 0:Ce.label));wa?P[wa.key]=Ce.value:Ce!=null&&Ce.children&&Ce.children.length>0&&(P.children=Ce.children)}),(ie=h.value)!=null&&ie.find(Ce=>Ce.id===P.id))h.value=(ce=h.value)==null?void 0:ce.map(Ce=>(Ce.id===P.id&&(Ce=P),Ce));else{let Ce=I.cloneDeep(h.value)??[];M.value===""?Ce.push(P):Ce=Ce==null?void 0:Ce.map(wa=>(wa.id===M.value&&(wa.children||(wa.children=[]),wa.children.push(P)),wa)),h.value=Ce}h.value=(pa=h.value)!=null&&pa.some(Ce=>Ce==null?void 0:Ce.children)?[h.value]:h.value,c.value=!1,S.value="",M.value="";let F=I.cloneDeep(n.originalItemContents);(aa=I.cloneDeep(n.originalItemContents))!=null&&aa.find(Ce=>(Ce==null?void 0:Ce.key)==="header")?F=(Ie=I.cloneDeep(n.originalItemContents))==null?void 0:Ie.map(Ce=>((Ce==null?void 0:Ce.key)==="header"&&(Ce.contents=h.value),Ce)):F.push({key:"header",contents:h.value}),t("change",F)},Ia=P=>{I.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var F,G;h.value=(F=I.cloneDeep(h.value))==null?void 0:F.filter(ie=>(ie==null?void 0:ie.id)!==(P==null?void 0:P.id)),t("change",(G=I.cloneDeep(n.originalItemContents))==null?void 0:G.map(ie=>{var ce;return(ie==null?void 0:ie.key)==="header"&&(ie.contents=(ce=h.value)!=null&&ce.some(pa=>pa==null?void 0:pa.children)?[h.value]:h.value),ie})),rl.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})};return a.watch(()=>n.originalItemContents,()=>{var P,F,G,ie,ce,pa,aa,Ie,Ce,wa,me,Je,Ze,Fe,ba,Le,da,re,Se;if(!(!n.originalItemContents||n.originalItemContents.length===0))if(s.value=I.cloneDeep(n.originalItemContents),h.value=(F=(P=s.value)==null?void 0:P.find(K=>(K==null?void 0:K.key)==="header"))==null?void 0:F.contents,_.value=(ie=(G=s.value)==null?void 0:G.find(K=>(K==null?void 0:K.key)==="rowButton"))==null?void 0:ie.contents,U.value=(pa=(ce=s.value)==null?void 0:ce.find(K=>(K==null?void 0:K.key)==="extraButton"))==null?void 0:pa.contents,u.value=(Ie=(aa=s.value)==null?void 0:aa.find(K=>(K==null?void 0:K.key)==="page"))!=null&&Ie.contents?!!((wa=(Ce=s.value)==null?void 0:Ce.find(K=>(K==null?void 0:K.key)==="page"))!=null&&wa.contents):!1,j.value=(Je=(me=s.value)==null?void 0:me.find(K=>(K==null?void 0:K.key)==="tableToForm"))==null?void 0:Je.contents,h.value=(Ze=h.value)==null?void 0:Ze.map((K,je)=>(Array.isArray(K)?K=g3(K):K={label:(K==null?void 0:K.label)??"",prop:(K==null?void 0:K.label)==="操作"?"operate":K==null?void 0:K.prop,width:K!=null&&K.width?parseInt(K.width):"",fixed:(K==null?void 0:K.fixed)??void 0,sortable:(K==null?void 0:K.sortable)??!1,align:(K==null?void 0:K.align)??"left",showOverflowTooltip:(K==null?void 0:K.showOverflowTooltip)??!0,isNotDrag:(K==null?void 0:K.isNotDrag)??!1,isEditCol:(K==null?void 0:K.isEditCol)??!1,isOperate:(K==null?void 0:K.isOperate)??!1,id:(K==null?void 0:K.id)??je,formMenuSelect:(K==null?void 0:K.formMenuSelect)??void 0,groupSelect:(K==null?void 0:K.groupSelect)??void 0},K)),h.value=(Fe=h.value)!=null&&Fe.every(K=>Array.isArray(K))?(ba=h.value)==null?void 0:ba[0]:h.value,_.value=(Le=_.value)==null?void 0:Le.map((K,je)=>K={label:(K==null?void 0:K.label)??"",type:(K==null?void 0:K.type)??"",textColor:(K==null?void 0:K.textColor)??"#000000",id:(K==null?void 0:K.id)??je}),U.value=(da=U.value)==null?void 0:da.map((K,je)=>K={label:(K==null?void 0:K.label)??"",type:(K==null?void 0:K.type)??"",background:(K==null?void 0:K.background)??"var(--ssComponent-primary-color)",id:(K==null?void 0:K.id)??je}),j.value)j.value=(Se=j.value)==null?void 0:Se.map(K=>{T.value++;let je=K;return je.id=T.value,je});else{let K=[];const je=(re=na.getColumnChild(I.cloneDeep(h.value)))==null?void 0:re.filter(Be=>(Be==null?void 0:Be.prop)!=="operate");je==null||je.forEach(Be=>{var za;T.value++,K.push({label:Be==null?void 0:Be.label,name:(Be==null?void 0:Be.prop)||(Be==null?void 0:Be.label),type:Be!=null&&Be.groupSelect?"Select":"Input",value:"",id:T.value,contents:Be==null?void 0:Be.options,menuSelect:Be==null?void 0:Be.formMenuSelect,groupSelect:(za=Be==null?void 0:Be.groupSelect)==null?void 0:za.split(":"),selectRelateType:"关联绑定列"})}),j.value=K}},{deep:!0,immediate:!0}),(P,F)=>{const G=a.resolveComponent("svg-icon"),ie=a.resolveComponent("el-button");return a.openBlock(),a.createElementBlock("div",R3,[a.createElementVNode("div",P3,[a.createElementVNode("div",F3,[F[2]||(F[2]=a.createElementVNode("div",null,a.toDisplayString("表头"),-1)),a.createVNode(ie,{class:"icon-content",onClick:ia,id:"themeButton"},{icon:a.withCtx(()=>[a.createVNode(G,{name:"Plus",class:"icon-size"})]),default:a.withCtx(()=>[F[1]||(F[1]=a.createTextVNode(" 新增 "))]),_:1,__:[1]})]),a.createElementVNode("div",j3,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(h.value,(ce,pa)=>(a.openBlock(),a.createElementBlock("div",{key:pa},[a.createElementVNode("div",H3,[a.createElementVNode("div",U3,a.toDisplayString(ce==null?void 0:ce.label),1),a.createElementVNode("div",q3,[a.createVNode(G,{name:"ChildAdd",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:aa=>Pe(ce)},null,8,["onClick"]),a.createVNode(G,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:aa=>Ae(ce)},null,8,["onClick"]),a.createVNode(G,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:aa=>Ia(ce)},null,8,["onClick"])])]),ce!=null&&ce.children&&ce.children.length>0?(a.openBlock(),a.createElementBlock("div",W3,[a.createVNode(_c,{tableChildContents:ce==null?void 0:ce.children,onDeleteChange:ga,onFixChange:He},null,8,["tableChildContents"])])):a.createCommentVNode("",!0)]))),128))]),a.createElementVNode("div",K3,[F[4]||(F[4]=a.createElementVNode("div",null,a.toDisplayString("行内按钮"),-1)),a.createVNode(ie,{class:"icon-content",id:"themeButton",onClick:ka},{icon:a.withCtx(()=>[a.createVNode(G,{name:"Plus",class:"icon-size"})]),default:a.withCtx(()=>[F[3]||(F[3]=a.createTextVNode(" 新增 "))]),_:1,__:[3]})]),a.createElementVNode("div",Y3,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(_.value,(ce,pa)=>(a.openBlock(),a.createElementBlock("div",{key:pa},[a.createElementVNode("div",G3,[a.createElementVNode("div",J3,a.toDisplayString(ce==null?void 0:ce.label),1),a.createElementVNode("div",X3,[a.createVNode(G,{name:"ChildFix",style:{width:"24px",height:"24px"},class:"svg-icon-content",onClick:aa=>ue(ce)},null,8,["onClick"]),a.createVNode(G,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:aa=>Ne(ce)},null,8,["onClick"])])])]))),128))]),a.createElementVNode("div",Z3,[F[6]||(F[6]=a.createElementVNode("div",null,a.toDisplayString("表外按钮"),-1)),a.createVNode(ie,{class:"icon-content",id:"themeButton",onClick:W},{icon:a.withCtx(()=>[a.createVNode(G,{name:"Plus",class:"icon-size"})]),default:a.withCtx(()=>[F[5]||(F[5]=a.createTextVNode(" 新增 "))]),_:1,__:[5]})]),a.createElementVNode("div",Q3,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(U.value,(ce,pa)=>(a.openBlock(),a.createElementBlock("div",{key:pa},[a.createElementVNode("div",e1,[a.createElementVNode("div",a1,a.toDisplayString(ce==null?void 0:ce.label),1),a.createElementVNode("div",l1,[a.createVNode(G,{name:"ChildFix",style:{width:"24px",height:"24px"},class:"svg-icon-content",onClick:aa=>Da(ce)},null,8,["onClick"]),a.createVNode(G,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:aa=>te(ce)},null,8,["onClick"])])])]))),128))]),a.createElementVNode("div",r1,[F[8]||(F[8]=a.createElementVNode("div",null,a.toDisplayString("表格弹框字段设置"),-1)),a.createVNode(ie,{class:"icon-content",id:"themeButton",onClick:J},{icon:a.withCtx(()=>[a.createVNode(G,{name:"Plus",class:"icon-size"})]),default:a.withCtx(()=>[F[7]||(F[7]=a.createTextVNode(" 新增 "))]),_:1,__:[7]})]),a.createElementVNode("div",n1,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(j.value,(ce,pa)=>(a.openBlock(),a.createElementBlock("div",{key:pa},[a.createElementVNode("div",o1,[a.createElementVNode("div",i1,a.toDisplayString(ce==null?void 0:ce.label),1),a.createElementVNode("div",s1,[a.createVNode(G,{name:"ChildFix",style:{width:"24px",height:"24px"},class:"svg-icon-content",onClick:aa=>xe(ce)},null,8,["onClick"]),a.createVNode(G,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:aa=>X(ce)},null,8,["onClick"])])])]))),128))]),F[10]||(F[10]=a.createElementVNode("div",{class:"operate-title"},[a.createElementVNode("div",null,a.toDisplayString("分页"))],-1)),a.createElementVNode("div",c1,[a.createElementVNode("div",u1,[F[9]||(F[9]=a.createElementVNode("div",{class:"operate-center-content"},a.toDisplayString("是否分页"),-1)),a.createVNode(fl._sfc_main$1,{modelValue:u.value,"onUpdate:modelValue":F[0]||(F[0]=ce=>u.value=ce)},null,8,["modelValue"])])])]),a.createVNode(vr.ssDialog,{visible:c.value,onBeforeDestroy:Ge,width:840},{default:a.withCtx(()=>[a.createElementVNode("div",d1,[(a.openBlock(),a.createBlock(fl.ssForm,{rowContents:y.value,key:y.value,isEnableWrap:!0,onChange:$e},null,8,["rowContents"]))])]),footer:a.withCtx(()=>[a.createElementVNode("div",p1,[a.createVNode(ie,{onClick:Ge,class:"cancel-button button",id:"themeBorderButton"},{default:a.withCtx(()=>F[11]||(F[11]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[11]}),a.createVNode(ie,{class:"ok-button button",onClick:Wa,id:"themeButton"},{default:a.withCtx(()=>F[12]||(F[12]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[12]})])]),_:1},8,["visible"]),a.createVNode(vr.ssDialog,{visible:v.value,onBeforeDestroy:Qe,width:840},{default:a.withCtx(()=>[a.createElementVNode("div",f1,[(a.openBlock(),a.createBlock(fl.ssForm,{rowContents:B.value,key:B.value,isEnableWrap:!0,onChange:Ha},null,8,["rowContents"]))])]),footer:a.withCtx(()=>[a.createElementVNode("div",h1,[a.createVNode(ie,{onClick:Qe,class:"cancel-button button",id:"themeBorderButton"},{default:a.withCtx(()=>F[13]||(F[13]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[13]}),a.createVNode(ie,{class:"ok-button button",onClick:ee,id:"themeButton"},{default:a.withCtx(()=>F[14]||(F[14]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[14]})])]),_:1},8,["visible"]),a.createVNode(vr.ssDialog,{visible:R.value,onBeforeDestroy:ge,width:840},{default:a.withCtx(()=>[a.createElementVNode("div",v1,[(a.openBlock(),a.createBlock(fl.ssForm,{rowContents:C.value,key:C.value,isEnableWrap:!0,onChange:le},null,8,["rowContents"]))])]),footer:a.withCtx(()=>[a.createElementVNode("div",m1,[a.createVNode(ie,{onClick:ge,class:"cancel-button button",id:"themeBorderButton"},{default:a.withCtx(()=>F[15]||(F[15]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[15]}),a.createVNode(ie,{class:"ok-button button",onClick:D,id:"themeButton"},{default:a.withCtx(()=>F[16]||(F[16]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[16]})])]),_:1},8,["visible"]),a.createVNode(vr.ssDialog,{visible:b.value,onBeforeDestroy:pe,width:840},{default:a.withCtx(()=>[a.createElementVNode("div",y1,[(a.openBlock(),a.createBlock(fl.ssForm,{rowContents:k.value,key:k.value,isEnableWrap:!0,onChange:ze,onChangeVisible:ke,onBlurChange:De},null,8,["rowContents"]))])]),footer:a.withCtx(()=>[a.createElementVNode("div",g1,[a.createVNode(ie,{onClick:pe,class:"cancel-button button",id:"themeBorderButton"},{default:a.withCtx(()=>F[17]||(F[17]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[17]}),a.createVNode(ie,{class:"ok-button button",onClick:Ke,id:"themeButton"},{default:a.withCtx(()=>F[18]||(F[18]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[18]})])]),_:1},8,["visible"])])}}},k1=Ul._export_sfc(b1,[["__scopeId","data-v-7a6b87b5"]]),x1=I.useModelComp(I.pinia),{pageMapState:_1}=I.storeToRefs(x1),w1=I.useMenuState(I.pinia),{activeMenuPath:C1}=I.storeToRefs(w1),E1=a.ref(24),S1=a.ref(6),D1=a.ref(70),B1=a.ref(.18),N1=a.ref(45),T1=(l,r,n,t)=>{var s,c,b,h,v,y,u,x,S,M,_,U,B,A,R,C;return{x:((c=(s=l==null?void 0:l.value)==null?void 0:s.tableData)==null?void 0:c.x)||r%2*12,y:((h=(b=l==null?void 0:l.value)==null?void 0:b.tableData)==null?void 0:h.y)||r,w:((y=(v=l==null?void 0:l.value)==null?void 0:v.tableData)==null?void 0:y.w)||E1.value,h:((x=(u=l==null?void 0:l.value)==null?void 0:u.tableData)==null?void 0:x.h)||n,minW:((M=(S=l==null?void 0:l.value)==null?void 0:S.tableData)==null?void 0:M.minW)||S1.value,minH:((U=(_=l==null?void 0:l.value)==null?void 0:_.tableData)==null?void 0:U.minH)||B1.value,maxH:((A=(B=l==null?void 0:l.value)==null?void 0:B.tableData)==null?void 0:A.maxH)||N1.value,i:((C=(R=l==null?void 0:l.value)==null?void 0:R.tableData)==null?void 0:C.i)||r,id:(l==null?void 0:l.id)||r+"",component:t}},A1=(l,r)=>{var t,s,c,b,h,v,y,u;let n=1;if(l!=null&&l.compData&&Array.isArray(l==null?void 0:l.compData))if(((t=l==null?void 0:l.comp)==null?void 0:t.toUpperCase())==="TABLE"){if(((b=(c=(s=l==null?void 0:l.compData)==null?void 0:s.find(S=>(S==null?void 0:S.key)==="tableContents"))==null?void 0:c.contents)==null?void 0:b.length)===0)return 2}else((h=l==null?void 0:l.comp)==null?void 0:h.toUpperCase())==="FORM"&&(n=((u=(y=(v=l==null?void 0:l.compData)==null?void 0:v.find(S=>(S==null?void 0:S.key)==="formContent"))==null?void 0:y.contents)==null?void 0:u.length)/5);return n*2},wc=(l,r,n)=>{var b,h;const t=(h=(b=_1.value)==null?void 0:b[C1.value])==null?void 0:h.filter(v=>{var y;return((y=v==null?void 0:v.key)==null?void 0:y.type)==="gridLayout"}),s=t==null?void 0:t.find(v=>{var y,u,x;return((x=(u=(y=v==null?void 0:v.value)==null?void 0:y.tableData)==null?void 0:u.component)==null?void 0:x.id)===l.id}),c=A1(l);return l!=null&&l.children&&(l==null?void 0:l.children.length)>0&&(l.children=l.children.map((v,y)=>wc(v,y))),{...T1(s,r,c,l)}},z1=(l,r)=>{if((l==null?void 0:l.length)===0)return[];const n=I.cloneDeep(l);return Array.isArray(l)?n==null?void 0:n.map((t,s)=>wc(t,s)):[]},M1=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}]}]}}),O1=(l,r)=>l==null?void 0:l.map(n=>{for(const t in r)if(t===(n==null?void 0:n.prop))return{...n,value:r[t]};return n}),I1=a.defineComponent({__name:"index",props:{compType:String,comp:Object,target:{type:String,default:"alone"},optionItems:Array},emits:["change"],setup(l,{emit:r}){const n=l,t=r,s=a.ref([]);a.watch(()=>n.compType,h=>{var u;const v=M1(n==null?void 0:n.optionItems),y=h?(u=v[h==null?void 0:h.toUpperCase()])==null?void 0:u[n==null?void 0:n.target]:[];s.value=y==null?void 0:y.map(x=>{for(const[S,M]of Object.entries((n==null?void 0:n.comp)||{}))if((x==null?void 0:x.prop)===S)return{...x,value:M};return x})},{immediate:!0});const c=h=>fl.getComponent(h),b=h=>{var v,y;(h==null?void 0:h.prop)==="layout"&&(h==null?void 0:h.value)==="horizontal"?s.value=(v=s.value)==null?void 0:v.map(u=>{var x;return(u==null?void 0:u.prop)==="isStepLayout"?{...u,options:(x=u==null?void 0:u.options)==null?void 0:x.map(S=>({...S,disabled:!0}))}:(u==null?void 0:u.prop)==="isGridLayout"?{...u,disabled:!0}:u}):s.value=(y=s.value)==null?void 0:y.map(u=>{var x;return(u==null?void 0:u.prop)==="isStepLayout"?{...u,options:(x=u==null?void 0:u.options)==null?void 0:x.map(S=>({...S,disabled:!1}))}:(u==null?void 0:u.prop)==="isGridLayout"?{...u,disabled:!1}:u}),t("change",{target:n==null?void 0:n.target,styleConfigs:s.value,prop:h==null?void 0:h.prop})};return(h,v)=>{const y=a.resolveComponent("el-col"),u=a.resolveComponent("el-row");return a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(s.value,x=>(a.openBlock(),a.createBlock(u,{class:"style-row",key:x==null?void 0:x.prop},{default:a.withCtx(()=>[a.createVNode(y,{span:6,class:"style-row-title"},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(x==null?void 0:x.label)+":",1)]),_:2},1024),a.createVNode(y,{span:18,style:{display:"flex"}},{default:a.withCtx(()=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(c(x.type)),{modelValue:x.value,"onUpdate:modelValue":S=>x.value=S,content:x==null?void 0:x.options,optionUrl:x==null?void 0:x.optionUrl,disabled:x==null?void 0:x.disabled,activeText:x==null?void 0:x.activeText,inactiveText:x==null?void 0:x.inactiveText,onChange:S=>b(x)},null,40,["modelValue","onUpdate:modelValue","content","optionUrl","disabled","activeText","inactiveText","onChange"]))]),_:2},1024)]),_:2},1024))),128)}}}),L1=Ul._export_sfc(I1,[["__scopeId","data-v-6c233914"]]),V1=a.defineComponent({__name:"index",props:{compType:String,activeTabName:String,comp:Object,extendItem:{type:Object,default:{}},target:{type:String,default:"alone"},relatedData:Array},emits:["change","onButtonClick"],setup(l,{emit:r}){const n=l,t=r,s=[{required:!0,message:"输入不能为空",trigger:"blur"}],c=a.ref([]),b=A=>A==null?void 0:A.reduce((R,C)=>(R[C==null?void 0:C.prop]=C==null?void 0:C.rule,R),{}),h=a.computed(()=>({formRules:b(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=(A,R,C)=>{var k;let L=[];(n==null?void 0:n.activeTabName)==="任务配置"?(L=[{label:"任务名称",prop:"任务名称",key:"任务名称",value:"",width:1,isFormColHidden:!1},{label:"任务关键词",prop:"任务关键词",key:"任务关键词",type:"cascader",value:[],width:1,isFormColHidden:!1,config:{checkOnClickNode:!0,showPrefix:!1},contents:[{label:"列名称",value:"列名称",children:A},{label:"按钮名称",value:"按钮名称",children:R}]},{label:"执行任务",prop:"执行任务",key:"执行任务",type:"cascader",value:[],width:1,isFormColHidden:!1,config:{checkOnClickNode:!0,showPrefix:!1},contents:[{label:"进度设置",value:"进度设置",children:[{label:"计时",value:"计时",children:[{label:"倒计时",value:"倒计时"},{label:"进行时",value:"进行时"}]},{label:"进度条",value:"进度条"}]},{label:"统计",value:"统计",children:[{label:"统计规则",value:"统计规则",children:[{label:"求和",value:"求和"},{label:"自定义",value:"自定义"}]}]}]},{label:"执行动作",prop:"执行动作",key:"执行动作",type:"select",value:[],width:1,isFormColHidden:!1,contents:[{label:"点击时",value:"点击时"},{label:"页面加载时",value:"页面加载时"}]},{label:"执行交互",prop:"执行交互",key:"执行交互",type:"cascader",value:[],width:1,isFormColHidden:!1,config:{checkOnClickNode:!0,showPrefix:!1},contents:[{label:"界面显示",value:"界面显示",children:[{label:"主页",value:"主页"},{label:"详情页",value:"详情页"}]},{label:"弹窗提示",value:"弹窗提示"},{label:"后台提交",value:"后台提交"}]},{label:"任务状态",prop:"任务状态",key:"任务状态",type:"radio",value:"启动",width:1,isFormColHidden:!1,contents:[{label:"启动",value:"启动"},{label:"暂停",value:"暂停"}]}],c.value=[{prop:"任务名称",rule:s},{prop:"任务关键词",rule:s},{prop:"执行任务",rule:s},{prop:"执行动作",rule:s},{prop:"执行交互",rule:s}]):(n==null?void 0:n.activeTabName)==="任务关联"&&(L=[{prop:"关联名称",label:"关联名称",key:"关联名称",type:"input",value:"",isTableColHidden:!1,isFormColHidden:!1},{label:"关联形式",prop:"关联形式",key:"关联形式",type:"select",value:"流程式",width:1,isFormColHidden:!1,contents:[{label:"流程式",value:"流程式"}]},{label:"关联任务集合",prop:"关联任务集合",key:"关联任务集合",type:"tag",value:[],width:1,isFormColHidden:!1,contents:(k=n==null?void 0:n.relatedData)==null?void 0:k.map(g=>({label:g==null?void 0:g.任务名称,value:g==null?void 0:g.任务名称}))},{prop:"关联状态",label:"关联状态",key:"关联状态",type:"radio",value:"启动",isTableColHidden:!1,isFormColHidden:!1,contents:[{label:"启动",value:"启动"},{label:"暂停",value:"暂停"}]}],c.value=[{prop:"关联名称",rule:s},{prop:"关联状态",rule:s},{prop:"关联形式",rule:s},{prop:"关联任务集合",rule:s}]);let T;return C&&(C==null?void 0:C.length)>0?T=[...L,...x(A,R,C)]:T=L,T},x=(A,R,C)=>{const L=[{label:"进度关键词",prop:"进度关键词",key:"进度关键词",type:"input",value:"",width:2,isFormColHidden:!1,contents:[]},{label:"统计算法源",prop:"统计算法源",key:"统计算法源",type:"input",value:"",width:2,isFormColHidden:!1,contents:[]},{label:"统计是否获取错误集",prop:"统计是否获取错误集",key:"统计是否获取错误集",type:"radio",value:!1,width:2,isFormColHidden:!1,contents:[{label:"是",value:!0},{label:"否",value:!1}]}];return C?L==null?void 0:L.filter(T=>C==null?void 0:C.includes(T==null?void 0:T.prop)):L},S=(A,R)=>{var g,j,W,J,ke,ze,De,ne,xe;const C=((ke=(J=(W=(j=(g=n==null?void 0:n.comp)==null?void 0:g.compData)==null?void 0:j.find(X=>(X==null?void 0:X.key)==="header"))==null?void 0:W.contents)==null?void 0:J.filter(X=>(X==null?void 0:X.label)!=="操作"))==null?void 0:ke.map(X=>({value:X==null?void 0:X.prop,label:X.label})))||[],L=/button/i,T=((xe=(ne=(De=(ze=n==null?void 0:n.comp)==null?void 0:ze.compData)==null?void 0:De.filter(X=>L.test(X==null?void 0:X.key)))==null?void 0:ne.flatMap(X=>X==null?void 0:X.contents))==null?void 0:xe.map(X=>({value:X==null?void 0:X.label,label:X.label})))||[],k=u(C,T,A);v.value=R?O1(k,R):k,A&&(A==null?void 0:A.length)>0&&c.value.push(...A==null?void 0:A.map(X=>({prop:X,rule:s})))};a.onMounted(()=>{S(null,n==null?void 0:n.extendItem)});const M=A=>{const R=A==null?void 0:A[y.value];if(y.value==="执行任务"){if(!(R!=null&&R.join("/")))return;const C=R==null?void 0:R.join("/");S(C==="统计/统计规则/自定义"?["统计算法源","统计是否获取错误集"]:C==="进度设置/进度条"?["进度关键词"]:null,A)}},_=A=>{t("change",{target:n==null?void 0:n.target,extendConfigs:A})},U=(A,R)=>{y.value=R==null?void 0:R.changeProp,M(A)},B=A=>{t("onButtonClick",A)};return(A,R)=>(a.openBlock(),a.createBlock(fl.ssForm,{rowContents:v.value,key:v.value,isStartJustify:!1,isEnableWrap:!1,formRules:h.value.formRules,buttonValue:h.value.buttonValue,onChange:_,onBlurChange:U,onOnButtonClick:B},null,8,["rowContents","formRules","buttonValue"]))}}),$1=Ul._export_sfc(V1,[["__scopeId","data-v-7c660c1f"]]),R1={};function P1(l,r){return null}const F1=Ul._export_sfc(R1,[["render",P1]]),j1={class:"form-operate-content"},H1={class:"form-operate-item"},U1={class:"operate-title"},q1={class:"operate-content"},W1={class:"fix-content"},K1={class:"fix-button"},Y1={class:"operate-title"},G1={class:"operate-content"},J1={class:"fix-content"},X1={class:"fix-button"},Z1={style:{display:"flex","justify-content":"space-between"}},Q1={class:"form-content"},e2={class:"dialog-footer"},a2={class:"form-content"},l2={__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(l,{emit:r}){const n=l,t=r,s=a.ref(!1),c=a.ref([]),b=a.ref([]),h=a.ref(!1),v=a.ref([]),y=a.ref([]),u=a.ref(""),x=a.ref(!1),S=a.ref(0),M=a.ref([]),_=a.ref([]),U=(ne,xe)=>{if((xe==null?void 0:xe.type)=="Select"&&(ne==null?void 0:ne.key)==="selectRelateType"){const X=xe==null?void 0:xe.optionUrl;return(X==null?void 0:X.selectRelateType)||xe[ne.key]}if((xe==null?void 0:xe.type)=="Select"&&(ne==null?void 0:ne.key)==="menuSelect"){const X=xe==null?void 0:xe.optionUrl;return(X==null?void 0:X.menuSelect)||xe[ne.key]}if((xe==null?void 0:xe.type)=="Select"&&(ne==null?void 0:ne.key)==="groupSelect"){const X=xe==null?void 0:xe.optionUrl;return(X==null?void 0:X.groupSelect)||xe[ne.key]}if((xe==null?void 0:xe.type)=="Select"&&(ne==null?void 0:ne.key)==="originalContent")return(xe==null?void 0:xe.value)||xe[ne.key];if((xe==null?void 0:xe.type)=="Select"&&(ne==null?void 0:ne.key)==="multiple"){const X=xe[ne.key];return Us(X)?X:ne.default}return(ne==null?void 0:ne.label)==="类型"&&xe[ne.key]===""?"Input":(ne==null?void 0:ne.key)==="isFormColHidden"&&!xe[ne.key]?!1:xe[ne.key]},B=async ne=>{var pe,Ke,Da,te,D,le;s.value=!0;let xe=[];const X=await((Da=(Ke=(pe=na.FormContent)==null?void 0:pe.find(ge=>(ge==null?void 0:ge.key)===((ne==null?void 0:ne.type)===""?"Input":ne==null?void 0:ne.type)))==null?void 0:Ke.value)==null?void 0:Da.value)??((D=(te=na.FormContent)==null?void 0:te.find(ge=>(ge==null?void 0:ge.key)===((ne==null?void 0:ne.type)===""?"Input":ne==null?void 0:ne.type)))==null?void 0:D.value);if(X==null||X.forEach(ge=>{S.value++,xe.push({label:ge==null?void 0:ge.label,name:ge==null?void 0:ge.label,type:ge.type,prop:ge==null?void 0:ge.prop,value:U(ge,ne),id:S.value,contents:ge==null?void 0:ge.options,width:(ne==null?void 0:ne.width)??1})}),ne!=null&&ne.menuSelect&&((le=ne==null?void 0:ne.menuSelect)==null?void 0:le.length)>0){const ge=await na.menuToContentType(ne==null?void 0:ne.menuSelect);xe=xe==null?void 0:xe.map(ue=>((ue==null?void 0:ue.name)==="组信息选项"&&(ue.contents=ge),ue))}u.value=ne==null?void 0:ne.id,c.value=await na.selectToBase(na.formToOptionsContents(xe)),b.value=await na.selectToBase(na.formToOptionsContents(xe))},A=ne=>{var X;h.value=!0;let xe=[];(X=na.FormButton)==null||X.forEach(pe=>{S.value++,xe.push({label:pe==null?void 0:pe.label,name:pe==null?void 0:pe.label,type:pe.type,value:(pe==null?void 0:pe.label)==="类型"&&ne[pe.key]===""?"normal":ne[pe.key],id:S.value,contents:pe==null?void 0:pe.options})}),M.value=xe,_.value=xe,u.value=ne==null?void 0:ne.id};a.watch(()=>x.value,()=>{var xe,X;let ne=I.cloneDeep(n.originalItemContents);(xe=I.cloneDeep(n.originalItemContents))!=null&&xe.find(pe=>(pe==null?void 0:pe.key)==="enableWrap")?ne=(X=I.cloneDeep(n.originalItemContents))==null?void 0:X.map(pe=>((pe==null?void 0:pe.key)==="enableWrap"&&(pe.contents=!x.value),pe)):ne.push({key:"enableWrap",contents:!x.value}),t("change",ne)},{deep:!0});const R=()=>{var X,pe,Ke,Da,te;M.value=_.value;let ne={};if(u.value!==""?ne.id=u.value:(S.value++,ne.id="id"+S.value),(X=M.value)==null||X.forEach(D=>{var ge;const le=(ge=na.FormButton)==null?void 0:ge.find(ue=>(ue==null?void 0:ue.label)===(D==null?void 0:D.label));le&&(ne[le.key]=D.value)}),(pe=v.value)!=null&&pe.find(D=>D.id===ne.id))v.value=(Ke=v.value)==null?void 0:Ke.map(D=>(D.id===ne.id&&(D=ne),D));else{let D=I.cloneDeep(v.value);v.value||(v.value=[]),D.push(ne),v.value=D}h.value=!1,u.value="";let xe=I.cloneDeep(n.originalItemContents);(Da=I.cloneDeep(n.originalItemContents))!=null&&Da.find(D=>(D==null?void 0:D.key)==="formButton")?xe=(te=I.cloneDeep(n.originalItemContents))==null?void 0:te.map(D=>((D==null?void 0:D.key)==="formButton"&&(D.contents=v.value),D)):xe.push({key:"formButton",contents:v.value}),t("change",xe)},C=ne=>{I.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var xe,X;y.value=(xe=I.cloneDeep(y.value))==null?void 0:xe.filter(pe=>(pe==null?void 0:pe.id)!==(ne==null?void 0:ne.id)),t("change",(X=I.cloneDeep(n.originalItemContents))==null?void 0:X.map(pe=>((pe==null?void 0:pe.key)==="formContent"&&(pe.contents=y.value),pe))),rl.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},L=ne=>{I.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{var xe,X;v.value=(xe=I.cloneDeep(v.value))==null?void 0:xe.filter(pe=>(pe==null?void 0:pe.id)!==(ne==null?void 0:ne.id)),t("change",(X=I.cloneDeep(n.originalItemContents))==null?void 0:X.map(pe=>((pe==null?void 0:pe.key)==="formButton"&&(pe.contents=v.value),pe))),rl.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},T=()=>{var xe;h.value=!0;let ne=[];(xe=na.FormButton)==null||xe.forEach(X=>{S.value++,ne.push({label:X==null?void 0:X.label,name:X==null?void 0:X.label,type:X.type,value:(X==null?void 0:X.label)==="类型"?"normal":"",id:S.value,contents:X==null?void 0:X.options})}),M.value=ne,_.value=ne},k=()=>{var xe,X,pe;s.value=!0;let ne=[];(pe=(X=(xe=na.FormContent)==null?void 0:xe.find(Ke=>(Ke==null?void 0:Ke.key)==="Input"))==null?void 0:X.value)==null||pe.forEach(Ke=>{S.value++,ne.push({label:Ke==null?void 0:Ke.label,name:Ke==null?void 0:Ke.label,type:Ke.type,value:(Ke==null?void 0:Ke.label)==="类型"?"Input":"",id:S.value,contents:Ke==null?void 0:Ke.options})}),c.value=ne,b.value=ne},g=ne=>{let xe=I.cloneDeep(_.value);xe=xe==null?void 0:xe.map(X=>(X.value=ne==null?void 0:ne[X.name],X)),_.value=xe},j=ne=>{const xe=ne.find(Ke=>(Ke==null?void 0:Ke.name)==="类型");if((xe==null?void 0:xe.value)!="Select")return;const X=ne.find(Ke=>(Ke==null?void 0:Ke.name)==="多选"),pe=ne.find(Ke=>(Ke==null?void 0:Ke.name)==="初始值");X!=null&&X.value&&bo.isString(pe.value)&&(pe.value=[pe.value]),!(X!=null&&X.value)&&!bo.isString(pe.value)&&(pe.value="")},W=async ne=>{var xe,X,pe,Ke,Da,te,D,le,ge,ue,Ne,ia;if((ne==null?void 0:ne.类型)!==((X=(xe=b.value)==null?void 0:xe.find(ka=>(ka==null?void 0:ka.label)==="类型"))==null?void 0:X.value)){let ka=[];const Ha=await((Da=(Ke=(pe=na.FormContent)==null?void 0:pe.find(ee=>(ee==null?void 0:ee.key)===((ne==null?void 0:ne.类型)===""?"Input":ne==null?void 0:ne.类型)))==null?void 0:Ke.value)==null?void 0:Da.value)?await((ue=(ge=(le=na.FormContent)==null?void 0:le.find(ee=>(ee==null?void 0:ee.key)===((ne==null?void 0:ne.类型)===""?"Input":ne==null?void 0:ne.类型)))==null?void 0:ge.value)==null?void 0:ue.value):(D=(te=na.FormContent)==null?void 0:te.find(ee=>(ee==null?void 0:ee.key)===((ne==null?void 0:ne.类型)===""?"Input":ne==null?void 0:ne.类型)))==null?void 0:D.value;if(Ha==null||Ha.forEach(ee=>{var Pe,ga;S.value++;const Qe=xu(ee==null?void 0:ee.default)?(ne==null?void 0:ne[ee.label])??ee.value??"":ee==null?void 0:ee.default;ka.push({label:ee==null?void 0:ee.label,name:ee==null?void 0:ee.label,type:ee.type,value:Qe,prop:ee==null?void 0:ee.prop,id:S.value,contents:ee==null?void 0:ee.options,width:((ga=(Pe=b.value)==null?void 0:Pe[0])==null?void 0:ga.width)??1})}),ne!=null&&ne.菜单选项&&((Ne=ne==null?void 0:ne.菜单选项)==null?void 0:Ne.length)>0){const ee=await na.menuToContentType(ne==null?void 0:ne.菜单选项);ka=ka==null?void 0:ka.map(Qe=>((Qe==null?void 0:Qe.name)==="组信息选项"&&(Qe.contents=ee),Qe))}j(ka),b.value=await na.selectToBase(I.cloneDeep(ka)),c.value=await na.selectToBase(I.cloneDeep(ka))}else{let ka=I.cloneDeep(b.value);if(ka=ka==null?void 0:ka.map(Ha=>(Ha.value=ne==null?void 0:ne[Ha.name],Ha)),ne!=null&&ne.菜单选项&&((ia=ne==null?void 0:ne.菜单选项)==null?void 0:ia.length)>0){const Ha=await na.menuToContentType(ne==null?void 0:ne.菜单选项);ka=ka==null?void 0:ka.map(ee=>((ee==null?void 0:ee.name)==="组信息选项"&&(ee.contents=Ha),ee))}ka=na.formToOptionsContents(ka),j(ka),b.value=await na.selectToBase(I.cloneDeep(ka))}},J=ne=>{ne||(c.value=b.value)},ke=async ne=>{await W(ne),c.value=b.value},ze=$a.debounce(async()=>{var pe,Ke,Da,te,D,le,ge,ue,Ne,ia,ka,Ha;c.value=b.value;let ne={};ne.width=((Ke=(pe=c.value)==null?void 0:pe[0])==null?void 0:Ke.width)??1,u.value!==""?ne.id=u.value:(S.value++,ne.id="id"+S.value);let xe=await((D=(te=(Da=na.FormContent)==null?void 0:Da.find(ee=>{var Qe,Pe;return(ee==null?void 0:ee.key)===(((Pe=(Qe=c.value)==null?void 0:Qe.find(ga=>(ga==null?void 0:ga.label)==="类型"))==null?void 0:Pe.value)??"label")}))==null?void 0:te.value)==null?void 0:D.value)??((ge=(le=na.FormContent)==null?void 0:le.find(ee=>{var Qe,Pe;return(ee==null?void 0:ee.key)===(((Pe=(Qe=c.value)==null?void 0:Qe.find(ga=>(ga==null?void 0:ga.label)==="类型"))==null?void 0:Pe.value)??"label")}))==null?void 0:ge.value);if((ue=c.value)==null||ue.forEach(ee=>{const Qe=xe==null?void 0:xe.find(Pe=>(Pe==null?void 0:Pe.label)===(ee==null?void 0:ee.label));Qe&&(ne[Qe.key]=ee.value)}),ne.width=ne.width?ne.width:1,ne.key=ne==null?void 0:ne.label,ne.isFormColHidden=ne==null?void 0:ne.isFormColHidden,(Ne=y.value)!=null&&Ne.find(ee=>ee.id===ne.id))y.value=(ia=y.value)==null?void 0:ia.map(ee=>(ee.id===ne.id&&(ee=ne),ee));else{let ee=I.cloneDeep(y.value);ee.push(ne),y.value=ee}y.value=y.value.map(({id:ee,...Qe})=>Qe),s.value=!1,u.value="";let X=I.cloneDeep(n.originalItemContents);(ka=I.cloneDeep(n.originalItemContents))!=null&&ka.find(ee=>(ee==null?void 0:ee.key)==="formContent")?X=(Ha=I.cloneDeep(n.originalItemContents))==null?void 0:Ha.map(ee=>((ee==null?void 0:ee.key)==="formContent"&&(ee.contents=y.value),ee)):X.push({key:"formContent",contents:y.value}),t("change",X)},300),De=()=>{s.value=!1,h.value=!1,u.value="",b.value=[],_.value=[]};return a.watch(()=>n.originalItemContents,()=>{var xe,X,pe,Ke,Da,te;if(!n.originalItemContents||n.originalItemContents.length===0)return;const ne=I.cloneDeep(n.originalItemContents);y.value=((xe=ne==null?void 0:ne.find(D=>(D==null?void 0:D.key)==="formContent"))==null?void 0:xe.contents)??[],v.value=((X=ne==null?void 0:ne.find(D=>(D==null?void 0:D.key)==="formButton"))==null?void 0:X.contents)??[],x.value=(pe=ne==null?void 0:ne.find(D=>(D==null?void 0:D.key)==="enableWrap"))!=null&&pe.contents?!((Ke=ne==null?void 0:ne.find(D=>(D==null?void 0:D.key)==="enableWrap"))!=null&&Ke.contents):!0,y.value=(Da=I.cloneDeep(y.value))==null?void 0:Da.map((D,le)=>{var ue;let ge=D;return ge.id=(D==null?void 0:D.id)??le,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=((ue=D==null?void 0:D.options)==null?void 0:ue.length)===0?(D==null?void 0:D.contents)??"":D==null?void 0:D.options,ge}),y.value=na.formToOptionsContents(y.value),v.value=(te=v.value)==null?void 0:te.map((D,le)=>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:le})},{deep:!0,immediate:!0}),(ne,xe)=>{const X=a.resolveComponent("svg-icon"),pe=a.resolveComponent("el-button");return a.openBlock(),a.createElementBlock("div",j1,[a.createElementVNode("div",H1,[a.createElementVNode("div",U1,[xe[2]||(xe[2]=a.createElementVNode("div",null,a.toDisplayString("表单内容"),-1)),a.createVNode(pe,{class:"icon-content",id:"themeButton",onClick:k},{icon:a.withCtx(()=>[a.createVNode(X,{name:"Plus",class:"icon-size"})]),default:a.withCtx(()=>[xe[1]||(xe[1]=a.createElementVNode("div",null,a.toDisplayString("新增"),-1))]),_:1,__:[1]})]),a.createElementVNode("div",q1,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(y.value,(Ke,Da)=>(a.openBlock(),a.createElementBlock("div",{key:Da},[a.createElementVNode("div",W1,[a.createElementVNode("div",null,a.toDisplayString(Ke.label),1),a.createElementVNode("div",K1,[a.createVNode(X,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:te=>B(Ke)},null,8,["onClick"]),a.createVNode(X,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:te=>C(Ke)},null,8,["onClick"])])])]))),128))]),a.createElementVNode("div",Y1,[xe[4]||(xe[4]=a.createElementVNode("div",null,a.toDisplayString("表单按钮"),-1)),a.createVNode(pe,{class:"icon-content",id:"themeButton",onClick:T},{icon:a.withCtx(()=>[a.createVNode(X,{name:"Plus",class:"icon-size"})]),default:a.withCtx(()=>[xe[3]||(xe[3]=a.createTextVNode(" 新增 "))]),_:1,__:[3]})]),a.createElementVNode("div",G1,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(v.value,(Ke,Da)=>(a.openBlock(),a.createElementBlock("div",{key:Da},[a.createElementVNode("div",J1,[a.createElementVNode("div",null,a.toDisplayString(Ke.label),1),a.createElementVNode("div",X1,[a.createVNode(X,{name:"ChildFix",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:te=>A(Ke)},null,8,["onClick"]),a.createVNode(X,{name:"ChildDelete",class:"svg-icon-content",style:{width:"24px",height:"24px"},onClick:te=>L(Ke)},null,8,["onClick"])])])]))),128))]),xe[6]||(xe[6]=a.createElementVNode("div",{class:"operate-title"},[a.createElementVNode("div",null,a.toDisplayString("表单布局"))],-1)),a.createElementVNode("div",Z1,[xe[5]||(xe[5]=a.createElementVNode("div",{class:"operate-center-content"},a.toDisplayString("是否自动撑宽"),-1)),a.createVNode(fl._sfc_main$1,{modelValue:x.value,"onUpdate:modelValue":xe[0]||(xe[0]=Ke=>x.value=Ke)},null,8,["modelValue"])])]),a.createVNode(vr.ssDialog,{visible:s.value,onBeforeDestroy:De,width:840},{default:a.withCtx(()=>[a.createElementVNode("div",Q1,[(a.openBlock(),a.createBlock(fl.ssForm,{rowContents:c.value,key:c.value,isEnableWrap:!0,onChange:W,onChangeVisible:J,onBlurChange:ke},null,8,["rowContents"]))])]),footer:a.withCtx(()=>[a.createElementVNode("div",e2,[a.createVNode(pe,{onClick:De,class:"cancel-button button",id:"themeBorderButton"},{default:a.withCtx(()=>xe[7]||(xe[7]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[7]}),a.createVNode(pe,{class:"ok-button button",onClick:a.unref(ze),id:"themeButton"},{default:a.withCtx(()=>xe[8]||(xe[8]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[8]},8,["onClick"])])]),_:1},8,["visible"]),a.createVNode(vr.ssDialog,{visible:h.value,onBeforeDestroy:De,width:840},{default:a.withCtx(()=>[a.createElementVNode("div",a2,[(a.openBlock(),a.createBlock(fl.ssForm,{rowContents:M.value,key:M.value,isEnableWrap:!0,onChange:g},null,8,["rowContents"]))])]),footer:a.withCtx(()=>[a.createElementVNode("div",{class:"dialog-footer"},[a.createElementVNode("div",{onClick:De,class:"cancel-button button"},a.toDisplayString("取消")),a.createElementVNode("div",{class:"ok-button button",onClick:R},a.toDisplayString("确认"))])]),_:1},8,["visible"])])}}},hs=Ul._export_sfc(l2,[["__scopeId","data-v-20850524"]]),r2={class:"step-module content"},n2={class:"module-data"},t2={class:"step-module layout"},o2={class:"form-content"},i2=a.defineComponent({__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(l,{emit:r}){const n=l,t=r,s=a.ref([{label:"方向:",prop:"direction",type:"RADIO",contents:[{label:"水平",value:"horizontal"},{label:"垂直",value:"vertical"}],value:"horizontal"},{label:"是否居中:",prop:"alignCenter",type:"RADIO",contents:[{label:"是",value:!0},{label:"否",value:!1}],value:!0},{label:"应用简洁风格",prop:"simple",type:"RADIO",contents:[{label:"是",value:!0},{label:"否",value:!1}],value:!1}]),c=a.ref([{label:"",prop:"index",type:"input",value:"",isFormColHidden:!0},{label:"标题",prop:"title",type:"input",value:""},{label:"描述",prop:"description",type:"input",value:""}]),b=a.ref([{label:"取消",background:"#c0c4cc"},{label:"确认",background:"#436aaf"}]),h=a.reactive({visible:!1,width:"40%",title:"步骤条"}),v=a.ref("create"),y=a.ref({}),u=a.ref([]),x=B=>{var A;y.value=B,t("change",(A=_())==null?void 0:A.compData)},S=(B,A)=>{var R,C;switch(B){case"create":(R=c.value)==null||R.forEach(L=>{L.value=""}),v.value="create",h.visible=!0;break;case"update":(C=c.value)==null||C.forEach(L=>{L.value=A[L==null?void 0:L.prop]}),v.value="update",h.visible=!0;break;case"delete":u.value.splice(A,1),v.value="delete";break}},M=B=>{var A,R,C;if((B==null?void 0:B.buttonName)==="确认"){const L=I.cloneDeep(B==null?void 0:B.content);switch(Object.keys(L).forEach(T=>{L[T]===""&&delete L[T]}),v.value){case"create":u.value.push({...L,index:((A=u.value)==null?void 0:A.length)+1});break;case"update":u.value=(R=u.value)==null?void 0:R.map(T=>T.index===(L==null?void 0:L.index)?{...T,title:L==null?void 0:L.title,description:L==null?void 0:L.description}:T);break}t("change",(C=_())==null?void 0:C.compData),h.visible=!1}else h.visible=!1},_=()=>({comp:"Step",compData:[{key:"stepList",contents:u.value},{key:"stepConfig",contents:y.value}]}),U=()=>{h.visible=!1};return a.watch(()=>n==null?void 0:n.itemContents,B=>{var A,R;B&&(y.value=((A=B==null?void 0:B.find(C=>C.key==="stepConfig"))==null?void 0:A.contents)??{},u.value=((R=B==null?void 0:B.find(C=>C.key==="stepList"))==null?void 0:R.contents)??[])},{immediate:!0}),(B,A)=>{const R=a.resolveComponent("svg-icon"),C=a.resolveComponent("el-button");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",null,[a.createElementVNode("div",r2,[A[2]||(A[2]=a.createElementVNode("h4",{class:"module-title"},"内容",-1)),a.createVNode(C,{class:"module-icon",id:"themeButton",onClick:A[0]||(A[0]=L=>S("create"))},{icon:a.withCtx(()=>[a.createVNode(R,{name:"Plus",class:"icon-size"})]),default:a.withCtx(()=>[A[1]||(A[1]=a.createTextVNode(" 新增 "))]),_:1,__:[1]})]),a.createElementVNode("div",n2,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(u.value,(L,T)=>(a.openBlock(),a.createElementBlock("div",{class:"module-data-item",key:T},[a.createElementVNode("span",null,a.toDisplayString(L==null?void 0:L.title),1),a.createElementVNode("div",null,[a.createVNode(C,{type:"primary",size:"small",onClick:k=>S("update",{...L,index:T+1})},{default:a.withCtx(()=>A[3]||(A[3]=[a.createTextVNode("修改")])),_:2,__:[3]},1032,["onClick"]),a.createVNode(C,{type:"danger",size:"small",onClick:k=>S("delete",T)},{default:a.withCtx(()=>A[4]||(A[4]=[a.createTextVNode("删除")])),_:2,__:[4]},1032,["onClick"])])]))),128))]),a.createElementVNode("div",t2,[A[5]||(A[5]=a.createElementVNode("div",{class:"module-title"},"布局",-1)),a.createVNode(fl.ssForm,{rowContents:s.value,onChange:x},null,8,["rowContents"])])]),a.createVNode(vr.ssDialog,{visible:h.visible,title:h.title,onBeforeDestroy:U,width:h.width},{default:a.withCtx(()=>[a.createElementVNode("div",o2,[(a.openBlock(),a.createBlock(fl.ssForm,{rowContents:c.value,key:c.value,isEnableWrap:!1,isButtonRow:!1,isStartJustify:!1,buttonValue:b.value,onOnButtonClick:M},null,8,["rowContents","buttonValue"]))])]),_:1},8,["visible","title","width"])],64)}}}),s2=Ul._export_sfc(i2,[["__scopeId","data-v-7dbd17f2"]]),c2={class:"step-module content"},u2={class:"module-data"},d2={class:"step-module layout"},p2={class:"form-content"},f2=a.defineComponent({__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(l,{emit:r}){const n=l,t=r,s=a.ref("create"),c=a.ref({}),b=a.ref([]),h=a.ref([{label:"方向:",prop:"placement",type:"radio",contents:[{label:"底部",value:"bottom"},{label:"顶部",value:"top"}],value:"bottom"},{label:"节点类型:",prop:"type",type:"select",contents:[{label:"primary",value:"primary"},{label:"success",value:"success"},{label:"warning",value:"warning"},{label:"danger",value:"danger"},{label:"info",value:"info"}],value:"primary"},{label:"颜色:",prop:"color",type:"color",value:""},{label:"尺寸:",prop:"size",type:"radio",contents:[{label:"normal",value:"normal"},{label:"large",value:"large"}],value:"normal"},{label:"是否空心",prop:"isHollow",type:"RADIO",contents:[{label:"是",value:!0},{label:"否",value:!1}],value:!0},{label:"是否居中",prop:"isCenter",type:"RADIO",contents:[{label:"是",value:!0},{label:"否",value:!1}],value:!0}]),v=a.ref([{label:"",prop:"index",type:"input",value:"",isFormColHidden:!0},{label:"内容",prop:"content",type:"input",value:""},{label:"时间戳",prop:"timestamp",type:"datetime",value:""}]),y=a.ref([{label:"取消",background:"#c0c4cc"},{label:"确认",background:"#436aaf"}]),u=a.reactive({visible:!1,width:"40%",title:"时间线"}),x=B=>{var A;c.value=B,t("change",(A=_())==null?void 0:A.compData)},S=(B,A)=>{var R,C;switch(B){case"create":(R=v.value)==null||R.forEach(L=>{L.value=""}),s.value="create",u.visible=!0;break;case"update":(C=v.value)==null||C.forEach(L=>{L.value=A[L==null?void 0:L.prop]}),s.value="update",u.visible=!0;break;case"delete":b.value.splice(A,1),s.value="delete";break}},M=B=>{var A,R,C,L;if((B==null?void 0:B.buttonName)==="确认"){const T=I.cloneDeep(B==null?void 0:B.content);switch(Object.keys(T).forEach(k=>{T[k]===""&&delete T[k]}),s.value){case"create":(R=b.value)==null||R.push({...T,index:((A=b.value)==null?void 0:A.length)+1});break;case"update":b.value=(C=b.value)==null?void 0:C.map(k=>k.index===(T==null?void 0:T.index)?{...k,content:T==null?void 0:T.content,timestamp:T==null?void 0:T.timestamp}:k);break}t("change",(L=_())==null?void 0:L.compData),u.visible=!1}else u.visible=!1},_=()=>({comp:"TimeLine",compData:[{key:"timeLineList",contents:b.value},{key:"timeLineConfig",contents:c.value}]}),U=()=>{u.visible=!1};return a.watch(()=>n==null?void 0:n.itemContents,B=>{var A,R;B&&(c.value=((A=B==null?void 0:B.find(C=>C.key==="timeLineConfig"))==null?void 0:A.contents)??{},b.value=((R=B==null?void 0:B.find(C=>C.key==="timeLineList"))==null?void 0:R.contents)??[])},{immediate:!0}),(B,A)=>{const R=a.resolveComponent("svg-icon"),C=a.resolveComponent("el-button");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",null,[a.createElementVNode("div",c2,[A[2]||(A[2]=a.createElementVNode("h4",{class:"module-title"},"内容",-1)),a.createVNode(C,{class:"module-icon",id:"themeButton",onClick:A[0]||(A[0]=L=>S("create"))},{icon:a.withCtx(()=>[a.createVNode(R,{name:"Plus",class:"icon-size"})]),default:a.withCtx(()=>[A[1]||(A[1]=a.createTextVNode(" 新增 "))]),_:1,__:[1]})]),a.createElementVNode("div",u2,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(b.value,(L,T)=>(a.openBlock(),a.createElementBlock("div",{class:"module-data-item",key:T},[a.createElementVNode("span",null,a.toDisplayString(L==null?void 0:L.content),1),a.createElementVNode("div",null,[a.createVNode(C,{type:"primary",size:"small",onClick:k=>S("update",{...L,index:T+1})},{default:a.withCtx(()=>A[3]||(A[3]=[a.createTextVNode("修改")])),_:2,__:[3]},1032,["onClick"]),a.createVNode(C,{type:"danger",size:"small",onClick:k=>S("delete",T)},{default:a.withCtx(()=>A[4]||(A[4]=[a.createTextVNode("删除")])),_:2,__:[4]},1032,["onClick"])])]))),128))]),a.createElementVNode("div",d2,[A[5]||(A[5]=a.createElementVNode("div",{class:"module-title"},"布局",-1)),a.createVNode(fl.ssForm,{rowContents:h.value,onChange:x},null,8,["rowContents"])])]),a.createVNode(vr.ssDialog,{visible:u.visible,title:u.title,onBeforeDestroy:U,width:u.width},{default:a.withCtx(()=>[a.createElementVNode("div",p2,[(a.openBlock(),a.createBlock(fl.ssForm,{rowContents:v.value,key:v.value,isEnableWrap:!1,isButtonRow:!1,isStartJustify:!1,buttonValue:y.value,onOnButtonClick:M},null,8,["rowContents","buttonValue"]))])]),_:1},8,["visible","title","width"])],64)}}}),h2=Ul._export_sfc(f2,[["__scopeId","data-v-39ffc861"]]),v2={};function m2(l,r){return a.openBlock(),a.createElementBlock("div")}const y2=Ul._export_sfc(v2,[["render",m2]]),g2={class:"extra-content"},b2={key:0},k2={key:1},x2={class:"dialog-footer"},_2={__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},index:Number,changedContent:{type:Object,default:()=>{}}},emits:["change"],setup(l,{emit:r}){const n=l,t=a.ref(0),s=a.ref(),c=a.ref(),b=r,h=a.ref(!1),v=a.ref({}),y=a.ref({}),u=a.ref();a.watch(()=>[n.itemData],()=>{var L;const C=I.cloneDeep(n.itemData);s.value=(L=I.cloneDeep(C))==null?void 0:L.map(T=>{var k;if(T.key==="extra"){let g=[];(k=T.value)==null||k.forEach(j=>{var W;g.push((W=Object.values(j))==null?void 0:W[0])}),T.value=g}return T})},{deep:!0,immediate:!0});const x=(C,L,T,k)=>{var j;let g={};((j=C==null?void 0:C[0])==null?void 0:j.contents)==="详情"&&(h.value=!0,g[L]=C,c.value=C==null?void 0:C.filter(W=>(W==null?void 0:W.key)!=="tableContentName"),v.value=g,y.value=T,u.value=k.id)},S=C=>{var W,J,ke,ze;const L=(J=(W=Object.values(I.cloneDeep(v.value)))==null?void 0:W[0])==null?void 0:J.filter(De=>(De==null?void 0:De.key)==="tableContentName"),T=(ze=(ke=Object.values(I.cloneDeep(v.value)))==null?void 0:ke[0])==null?void 0:ze.filter(De=>(De==null?void 0:De.key)!=="tableContentName"),k=T==null?void 0:T.map((De,ne)=>{var xe;return ne===C.index&&(De==null?void 0:De.comp)==="Table"&&(De.compData=(xe=De.compData)==null?void 0:xe.map(X=>{var pe,Ke;return(X==null?void 0:X.key)==="tableContents"&&(X.contents=(Ke=(pe=C.content)==null?void 0:pe.map(Da=>{let te={};for(let D in Da)D!=="id"&&(te[D]=Da[D]);return te}))==null?void 0:Ke.map(Da=>Object.values(Da))),X})),De});k.unshift(L==null?void 0:L[0]);let g=I.cloneDeep(v.value),j={};for(let De in g)j[De]=k;v.value=j},M=()=>{h.value=!1,v.value={},y.value={},u.value=void 0,t.value++},_=C=>{var W,J,ke,ze;const L=(J=(W=Object.values(I.cloneDeep(v.value)))==null?void 0:W[0])==null?void 0:J.filter(De=>(De==null?void 0:De.key)==="tableContentName"),T=(ze=(ke=Object.values(I.cloneDeep(v.value)))==null?void 0:ke[0])==null?void 0:ze.filter(De=>(De==null?void 0:De.key)!=="tableContentName"),k=T==null?void 0:T.map((De,ne)=>(ne===C.index&&(De.compData=C.contents),De));k.unshift(L==null?void 0:L[0]);let g=I.cloneDeep(v.value),j={};for(let De in g)j[De]=k;v.value=j},U=()=>{var L,T;let C={};for(let k in y.value)k===((L=Object.keys(v.value))==null?void 0:L[0])?C[k]=(T=Object.values(v.value))==null?void 0:T[0]:C[k]=y.value[k];b("change",{buttonName:"编辑",index:u.value,singleContent:C},"methodData"),h.value=!1,v.value={},y.value={},u.value=void 0},B=()=>{h.value=!1,v.value={},y.value={},u.value=void 0},A=C=>{b("change",C,"methodData")},R=C=>Et(C);return(C,L)=>{const T=a.resolveComponent("el-button");return a.openBlock(),a.createElementBlock("div",g2,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(s.value,(k,g)=>(a.openBlock(),a.createElementBlock("div",{key:t.value},[(k==null?void 0:k.key)==="extra"?(a.openBlock(),a.createElementBlock("div",b2)):(a.openBlock(),a.createElementBlock("div",k2,[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(R(k.comp)),{itemData:k==null?void 0:k.compData,childItemData:k==null?void 0:k.itemChildData,key:g,index:(k==null?void 0:k.id)??g,onContentClick:x,onChange:A},null,40,["itemData","childItemData","index"]))]))]))),128)),a.createVNode(vr.ssDialog,{visible:h.value,onBeforeDestroy:B},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(c.value,(k,g)=>(a.openBlock(),a.createElementBlock("div",{key:g,class:"extra-dialog"},[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(R(k.comp)),{itemData:k==null?void 0:k.compData,onChange:S,childItemData:k==null?void 0:k.itemChildData,key:g,onContentChange:_,index:(k==null?void 0:k.id)??g,class:"extra-component"},null,40,["itemData","childItemData","index"]))]))),128))]),footer:a.withCtx(()=>[a.createElementVNode("div",x2,[a.createVNode(T,{class:"cancel-button footer-button",onClick:M,id:"themeBorderButton"},{default:a.withCtx(()=>L[0]||(L[0]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[0]}),a.createVNode(T,{class:"confirm-button footer-button",onClick:U,id:"themeButton"},{default:a.withCtx(()=>L[1]||(L[1]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[1]})])]),_:1},8,["visible"])])}}},w2=Ul._export_sfc(_2,[["__scopeId","data-v-2d9c5ab2"]]),C2={key:0,class:"method-content"},E2={__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},index:Number,changedContent:{type:Object,default:()=>{}}},setup(l){const r=a.ref([]),n=na.useOriginalState(I.pinia),{originalPath:t}=I.storeToRefs(n),s=l,c=a.ref(!1),b=a.ref(),h=na.useTableComp(I.pinia),{multipleTableConst:v}=I.storeToRefs(h),y=I.useModelComp(I.pinia),u=a.ref(!1),x=I.useMenuState(I.pinia),S=I.useLoginState(I.pinia),{itemData:M,isEdit:_,routeToChildPath:U,tableViewContents:B,lockingPage:A,payloadTypes:R}=I.storeToRefs(y),{activeMenuPath:C,platform:L,childMenu:T}=I.storeToRefs(x),{loginUserInfo:k}=I.storeToRefs(S),g=a.ref(!1),j=async()=>{var te,D;(te=r.value)!=null&&te.find(le=>(le==null?void 0:le.buttonName)==="保存")&&await X((D=r.value)==null?void 0:D.find(le=>(le==null?void 0:le.buttonName)==="保存")),await na.onSaveBack()};a.watch(()=>M.value,async()=>{_.value==="view"&&!g.value&&await Da(I.cloneDeep(s.itemData)),g.value=!1},{deep:!0});const W=()=>{c.value=!1,b.value=void 0},J=te=>te.map(D=>{const le={};for(const ge in D){const ue=D[ge];if(ge.includes(v.value)){const Ne=ge.split(v.value);let ia=le;Ne.forEach((ka,Ha)=>{Ha===Ne.length-1?ia[ka]=ue:(ia[ka]||(ia[ka]={}),ia=ia[ka])})}else le[ge]=ue}return le}),ke=async(te,D,le=[])=>{var ue,Ne,ia,ka,Ha,ee,Qe,Pe,ga,He,Ae,$e,Ge,Wa,Ia;let ge=(ue=I.cloneDeep(D))==null?void 0:ue.filter(P=>(P==null?void 0:P.comp)!=="methodButton");if(te!=null&&te.includes("[")){let P=(ee=(Ha=(ka=(ia=(Ne=I.cloneDeep(te))==null?void 0:Ne.split("["))==null?void 0:ia[1])==null?void 0:ka.split("]"))==null?void 0:Ha[0])==null?void 0:ee.split(":"),F="";if(P!=null&&P[0]){let G=(Qe=ge==null?void 0:ge.find(ie=>(ie==null?void 0:ie.name)===(P==null?void 0:P[0])))==null?void 0:Qe.compData;if(!G){let ie=(Pe=te==null?void 0:te.split("["))==null?void 0:Pe[0],ce=await na.getItemData(ie,sessionStorage.getItem("systemKey"),"",!1,"","",le);G=(ga=ce==null?void 0:ce.find(pa=>(pa==null?void 0:pa.name)===(P==null?void 0:P[0])))==null?void 0:ga.compData}G==null||G.forEach(ie=>{var ce,pa,aa,Ie,Ce,wa;if((ie==null?void 0:ie.key)==="formContent")(ce=ie==null?void 0:ie.contents)==null||ce.forEach(me=>{var Je;(me==null?void 0:me.key)===(P==null?void 0:P[1])&&(Array.isArray(me==null?void 0:me.value)?F=me==null?void 0:me.value:F=(Je=me==null?void 0:me.value)==null?void 0:Je.toString())});else if((ie==null?void 0:ie.key)==="tableContents"){let me=[],Je=(pa=G==null?void 0:G.find(Fe=>(Fe==null?void 0:Fe.key)==="header"))==null?void 0:pa.contents,Ze=(P==null?void 0:P[1])??"";if(Je!=null&&Je.every(Fe=>Array.isArray(Fe))){let Fe=na.getColumnChild((Ce=Je==null?void 0:Je[0])==null?void 0:Ce.filter(ba=>(ba==null?void 0:ba.label)!=="操作"));(wa=ie.contents)==null||wa.forEach(ba=>{let Le={};ba=ba==null?void 0:ba.filter(da=>!(da!=null&&da.id)),Fe==null||Fe.forEach((da,re)=>{let Se=ba[re];typeof ba[re]=="number"&&(Se=ba[re].toString()),(Ze===""||Ze===da.prop)&&(Le[da.prop]=Se)}),me.push(Le)}),me=J(me)}else{let Fe=(aa=Je==null?void 0:Je.map(ba=>ba==null?void 0:ba.label))==null?void 0:aa.filter(ba=>ba!=="操作");(Ie=ie.contents)==null||Ie.forEach(ba=>{let Le={};ba=ba==null?void 0:ba.filter(da=>!(da!=null&&da.id)),Fe==null||Fe.forEach((da,re)=>{let Se=ba[re];typeof ba[re]=="number"&&(Se=ba[re].toString()),(Ze===""||Ze===da)&&(Le[da]=Se)}),me.push(Le)})}F=me}})}return F}else if(te!=null&&te.includes("/")){let P={};return(He=I.cloneDeep(ge))==null||He.forEach((F,G)=>{var ie,ce,pa,aa,Ie,Ce,wa,me,Je,Ze,Fe,ba,Le,da,re,Se,K,je,Be;if((F==null?void 0:F.comp)==="Table"){let za=Array.isArray((pa=(ce=(ie=F==null?void 0:F.compData)==null?void 0:ie.find(_e=>(_e==null?void 0:_e.key)==="header"))==null?void 0:ce.contents)==null?void 0:pa[0])?(wa=(Ce=(Ie=(aa=F==null?void 0:F.compData)==null?void 0:aa.find(_e=>(_e==null?void 0:_e.key)==="header"))==null?void 0:Ie.contents)==null?void 0:Ce[0])==null?void 0:wa.some(_e=>_e==null?void 0:_e.children):[],Sa=(Ze=(Je=(me=F==null?void 0:F.compData)==null?void 0:me.find(_e=>(_e==null?void 0:_e.key)==="tableContents"))==null?void 0:Je.contents)==null?void 0:Ze.map(_e=>(_e!=null&&_e.find(Q=>Q==null?void 0:Q.id)&&(_e=_e.slice(1)),_e)),Ye=(re=(da=(Le=(ba=(Fe=F==null?void 0:F.compData)==null?void 0:Fe.find(_e=>(_e==null?void 0:_e.key)==="header"))==null?void 0:ba.contents)==null?void 0:Le[0])==null?void 0:da[0])==null?void 0:re.label,ca=(K=(Se=F==null?void 0:F.compData)==null?void 0:Se.find(_e=>(_e==null?void 0:_e.key)==="header"))==null?void 0:K.contents;if(za)(za==null?void 0:za.length)===0?P[F.name]=P!=null&&P[F.name]?P[F.name]:na.tableToForm(Sa,ca):P[Ye]=na.tableToForm(Sa,ca);else{const _e=[];ca=ca.slice(1,ca.length-1),ca==null||ca.forEach((Q,ya)=>{Sa==null||Sa.forEach(We=>{_e.push({key:Q.label+We[0],value:We[ya+1]})})}),P["form"+G]=_e}}else{const za=(Be=(je=F.compData)==null?void 0:je.find(Ye=>(Ye==null?void 0:Ye.key)==="formContent"))==null?void 0:Be.contents;P!=null&&P.form||(P.form=[]);const Sa=[];za==null||za.forEach(Ye=>{Ye.key!==""&&(Ye={key:(Ye==null?void 0:Ye.key)??(Ye==null?void 0:Ye.label),value:Ye==null?void 0:Ye.value},Sa.push(Ye))}),P.form=[...Sa,...I.cloneDeep(P==null?void 0:P.form)]}}),P}else{if(te==="createInsofDataApi"){let P=(Ae=I.cloneDeep(D))==null?void 0:Ae[0];return P={comp:($e=I.cloneDeep(P))==null?void 0:$e.comp,compData:(Ge=I.cloneDeep(P))==null?void 0:Ge.compData,name:(Wa=I.cloneDeep(P))==null?void 0:Wa.name,isShow:(Ia=I.cloneDeep(P))==null?void 0:Ia.isShow},{key:{type:"structure",systemKey:sessionStorage.getItem("systemKey"),parentTable:"",pageKey:C.value},value:{pageData:P}}}return te}},ze=async(te,D,le)=>{var Ne,ia,ka;let ge=await na.getItemData(D,sessionStorage.getItem("systemKey"),""),ue=ge==null?void 0:ge.find(Ha=>(Ha==null?void 0:Ha.name)===(le==null?void 0:le[0]));if(ue){if((ue==null?void 0:ue.comp)==="Table"){let Ha={};for(let $e in I.cloneDeep(te))I.cloneDeep(te)[$e]!=="loginUser"?Ha[$e]=I.cloneDeep(te)[$e]:Ha[$e]=((Ne=k.value)==null?void 0:Ne.account)||((ia=k.value)==null?void 0:ia.账号);let ee=[],Qe=Ha;Array.isArray(te)||(Qe=[Ha]),Qe==null||Qe.forEach($e=>{ee.push({[$e[le[1]]]:$e})});let Pe=[],ga=ee==null?void 0:ee.map($e=>{var Ge;return(Ge=Object.keys($e))==null?void 0:Ge[0]});ge==null||ge.forEach($e=>{var Ge;($e==null?void 0:$e.name)===(le==null?void 0:le[0])&&((Ge=$e==null?void 0:$e.compData)==null||Ge.forEach(Wa=>{var Ia;(Wa==null?void 0:Wa.key)==="tableContents"&&((Ia=Wa==null?void 0:Wa.contents)==null||Ia.forEach(P=>{P!=null&&P.some(F=>ga.includes(F))&&Pe.push({[P.find(F=>F.id).id]:P.find(F=>ga.includes(F))})}))}))});let He=Pe==null?void 0:Pe.map($e=>{var Ge;return(Ge=Object.keys($e))==null?void 0:Ge[0]}),Ae=[];if(He==null||He.forEach($e=>{var Ia;let Ge=(Ia=Pe==null?void 0:Pe.find(P=>{var F;return((F=Object.keys(P))==null?void 0:F[0].toString())===$e.toString()}))==null?void 0:Ia[$e],Wa=ee==null?void 0:ee.find(P=>{var F;return((F=Object.keys(P))==null?void 0:F[0])===Ge});Ae.push({id:parseInt($e),value:{tableData:Wa[Ge]}})}),(Ae==null?void 0:Ae.length)>0)return Ae}else if((ue==null?void 0:ue.comp)==="Form"){let Ha=I.cloneDeep(ue);Ha.compData=(ka=Ha.compData)==null?void 0:ka.map(Pe=>{var ga;return(Pe==null?void 0:Pe.key)==="formContent"&&(Pe.contents=(ga=Pe.contents)==null?void 0:ga.map(He=>((He==null?void 0:He.key)===(le==null?void 0:le[1])&&(He.value=(te==null?void 0:te[He==null?void 0:He.prop])||te),He))),Pe});let ee={};for(let Pe in Ha)Pe!=="id"&&(ee[Pe]=Ha[Pe]);let Qe=[];if(Qe.push({id:ue==null?void 0:ue.id,keyType:le==null?void 0:le[1],value:{pageData:ee}}),(Qe==null?void 0:Qe.length)>0)return Qe}}},De=async(te,D,le)=>{var Ne,ia,ka,Ha,ee,Qe,Pe,ga,He,Ae;let ge=await na.getItemData(D,sessionStorage.getItem("systemKey"),""),ue=ge==null?void 0:ge.find($e=>($e==null?void 0:$e.name)===(le==null?void 0:le[0]));if(ue){if((ue==null?void 0:ue.comp)==="Table"){let $e={};for(let Ge in I.cloneDeep(te))I.cloneDeep(te)[Ge]!=="loginUser"?$e[Ge]=I.cloneDeep(te)[Ge]:$e[Ge]=((Ne=k.value)==null?void 0:Ne.account)||((ia=k.value)==null?void 0:ia.账号);await yr.createInsofDataApi({key:{type:"data",pageKey:D,tableId:ue==null?void 0:ue.id,systemKey:sessionStorage.getItem("systemKey")},value:{tableData:$e}})}else if((ue==null?void 0:ue.comp)==="Form"){let $e=I.cloneDeep(ue),Ge=Object.keys(te),Wa="";(Ha=(ka=I.cloneDeep($e))==null?void 0:ka.compData)==null||Ha.forEach(ce=>{var pa,aa;(ce==null?void 0:ce.key)==="formContent"&&((aa=(pa=I.cloneDeep(ce))==null?void 0:pa.contents)==null||aa.forEach(Ie=>{var Ce;Ge.includes(Ie==null?void 0:Ie.key)&&(Ie==null?void 0:Ie.value)===((Ce=k.value)==null?void 0:Ce.姓名)&&(Wa=Ie==null?void 0:Ie.key)}))});let Ia=[];(ee=Object.values(te[Wa]))==null||ee.forEach(ce=>{ce!=null&&ce.includes("(")&&Ia.push(ce)}),Ia=[...new Set(Ia)];const P=Ia==null?void 0:Ia.map(async ce=>{var wa,me,Je,Ze,Fe,ba,Le,da,re,Se,K,je;let pa="";(ba=(Fe=(Ze=(Je=(me=(wa=I.cloneDeep(ce))==null?void 0:wa.split("("))==null?void 0:me[1])==null?void 0:Je.split(")"))==null?void 0:Ze[0])==null?void 0:Fe.split(":"))==null||ba.forEach(Be=>{pa=pa===""?pa+Be.replaceAll("'",""):pa+"/"+Be.replaceAll("'","")});let aa=[];(je=(K=(Se=(re=(da=(Le=I.cloneDeep(ce))==null?void 0:Le.split("<"))==null?void 0:da[1])==null?void 0:re.split(">"))==null?void 0:Se[0])==null?void 0:K.split(":"))==null||je.forEach(Be=>{aa.push(Be.replaceAll("'",""))});const Ie=await na.getItemData(pa,sessionStorage.getItem("systemKey"),"");let Ce="";return Ie==null||Ie.forEach(Be=>{var za;Be.name===(aa==null?void 0:aa[0])&&((za=Be==null?void 0:Be.compData)==null||za.forEach(Sa=>{var Ye;(Sa==null?void 0:Sa.key)==="formContent"&&((Ye=Sa.contents)==null||Ye.forEach(ca=>{(ca==null?void 0:ca.key)===(aa==null?void 0:aa[1])&&(Ce=ca==null?void 0:ca.value)}))}))}),{[ce]:Ce}}),F=await Promise.all(P);$e.compData=(Pe=(Qe=I.cloneDeep($e))==null?void 0:Qe.compData)==null?void 0:Pe.map(ce=>{var pa,aa;return(ce==null?void 0:ce.key)==="formContent"&&(ce.contents=(aa=(pa=I.cloneDeep(ce))==null?void 0:pa.contents)==null?void 0:aa.map(Ie=>{var Ce,wa,me,Je;return(Ce=te[Wa])!=null&&Ce[Ie==null?void 0:Ie.key]&&(te[Wa][Ie==null?void 0:Ie.key].includes("(")?Ie.value=(wa=F==null?void 0:F.find(Ze=>{var Fe;return((Fe=Object.keys(Ze))==null?void 0:Fe[0])===te[Wa][Ie==null?void 0:Ie.key]}))==null?void 0:wa[te[Wa][Ie==null?void 0:Ie.key]]:Ie.value=(Je=(me=I.cloneDeep(te))==null?void 0:me[Wa])==null?void 0:Je[Ie==null?void 0:Ie.key]),Ie})),ce});const G=await yr.getInsofDataApi({key:{type:"structure",pageKey:D,systemKey:sessionStorage.getItem("systemKey")}});let ie="";((ga=G==null?void 0:G.data)==null?void 0:ga.type)==="success"&&((Ae=(He=G==null?void 0:G.data)==null?void 0:He.result)==null||Ae.forEach(ce=>{var pa,aa;((aa=(pa=ce==null?void 0:ce.value)==null?void 0:pa.pageData)==null?void 0:aa.name)===(le==null?void 0:le[0])&&(ie=ce.id)}),await yr.updateInsofDataApi({id:ie,value:{pageData:$e}}))}}},ne=(te,D="",le={})=>{for(const[ge,ue]of Object.entries(te)){const Ne=D?`${D}.${ge}`:ge;ue!==null&&typeof ue=="object"&&!Array.isArray(ue)&&Object.prototype.toString.call(ue)!=="[object Date]"?ne(ue,Ne,le):le[Ne]=ue}return le},xe=async(te,D,le,ge)=>{var ia,ka,Ha,ee,Qe,Pe,ga,He,Ae,$e,Ge,Wa,Ia,P,F,G,ie,ce,pa,aa,Ie,Ce,wa,me,Je;let ue=await na.getItemData(D,sessionStorage.getItem("systemKey"),""),Ne=ue==null?void 0:ue.find(Ze=>(Ze==null?void 0:Ze.name)===(le==null?void 0:le[0]));if(Ne){if(!(le!=null&&le[1])&&(Ne==null?void 0:Ne.comp)==="Table"){let Ze={},Fe=[],ba=(ka=(ia=Ne==null?void 0:Ne.compData)==null?void 0:ia.find(re=>(re==null?void 0:re.key)==="header"))==null?void 0:ka.contents;ba!=null&&ba.every(re=>Array.isArray(re))?Fe=(ee=na.getColumnChild((Ha=ba==null?void 0:ba[0])==null?void 0:Ha.filter(re=>(re==null?void 0:re.label)!=="操作")))==null?void 0:ee.map(re=>re==null?void 0:re.prop):Fe=ba==null?void 0:ba.map(re=>re==null?void 0:re.label);for(let re in I.cloneDeep(te))if(I.cloneDeep(te)[re]!=="loginUser"){let Se=ne(I.cloneDeep(te)[re]),K={};for(let je in Se)if(Fe!=null&&Fe.find(Be=>Be===je))K[je]=Se[je];else if(Fe!=null&&Fe.find(Be=>(Be==null?void 0:Be.toUpperCase())===(je==null?void 0:je.toUpperCase()))){let Be=Fe==null?void 0:Fe.find(za=>(za==null?void 0:za.toUpperCase())===(je==null?void 0:je.toUpperCase()));K[Be]=Se[je]}Ze[re]=K}else Ze[re]=((Qe=k.value)==null?void 0:Qe.account)||((Pe=k.value)==null?void 0:Pe.账号);let Le=await yr.getInsofDataApi({keyLikes:{tableId:Ne==null?void 0:Ne.id}});if(((He=(ga=Le==null?void 0:Le.data)==null?void 0:ga.result)==null?void 0:He.length)>0){let re=($e=(Ae=Le==null?void 0:Le.data)==null?void 0:Ae.result)==null?void 0:$e.map(Se=>Se==null?void 0:Se.id);(re==null?void 0:re.length)>0&&await yr.batchDeleteInsofDataApi({ids:re})}let da=[];if((Ge=Ne==null?void 0:Ne.compData)!=null&&Ge.find(re=>(re==null?void 0:re.key)==="pageColumn")&&((P=(Ia=(Wa=Ne==null?void 0:Ne.compData)==null?void 0:Wa.find(re=>(re==null?void 0:re.key)==="pageColumn"))==null?void 0:Ia.contents)!=null&&P.includes("["))){const re=await yr.getInsofDataApi({id:Ne==null?void 0:Ne.tableId});let Se=((ce=(ie=(G=(F=re==null?void 0:re.data)==null?void 0:F.result)==null?void 0:G[0])==null?void 0:ie.key)==null?void 0:ce.pageKey)??"";(pa=Object.values(Ze))==null||pa.forEach(K=>{da.push({key:{type:"data",pageKey:Se,tableId:Ne==null?void 0:Ne.tableId,systemKey:sessionStorage.getItem("systemKey")},value:{tableData:K}})})}else(aa=Object.values(Ze))==null||aa.forEach(re=>{da.push({key:{type:"data",pageKey:D,tableId:Ne==null?void 0:Ne.id,systemKey:sessionStorage.getItem("systemKey")},value:{tableData:re}})});(da==null?void 0:da.length)>0&&await yr.batchAddInsofDataApi({dataList:da})}else if(!(le!=null&&le[1])&&(Ne==null?void 0:Ne.comp)==="Form"){let Ze=I.cloneDeep(Ne);Ze.compData=(Ce=(Ie=I.cloneDeep(Ze))==null?void 0:Ie.compData)==null?void 0:Ce.map(Le=>{var da,re;return(Le==null?void 0:Le.key)==="formContent"&&(Le.contents=(re=(da=I.cloneDeep(Le))==null?void 0:da.contents)==null?void 0:re.map(Se=>{var K,je;return(K=I.cloneDeep(te))!=null&&K[Se==null?void 0:Se.key]&&(Se.value=(je=I.cloneDeep(te))==null?void 0:je[Se==null?void 0:Se.key]),Se})),Le});const Fe=await yr.getInsofDataApi({key:{type:"structure",pageKey:D,systemKey:sessionStorage.getItem("systemKey")}});let ba="";((wa=Fe==null?void 0:Fe.data)==null?void 0:wa.type)==="success"&&((Je=(me=Fe==null?void 0:Fe.data)==null?void 0:me.result)==null||Je.forEach(Le=>{var da,re;((re=(da=Le==null?void 0:Le.value)==null?void 0:da.pageData)==null?void 0:re.name)===(le==null?void 0:le[0])&&(ba=Le.id)}),await yr.updateInsofDataApi({id:ba,value:{pageData:Ze}}))}}},X=async te=>{var D,le,ge,ue,Ne,ia,ka,Ha,ee,Qe,Pe,ga,He,Ae;x.setImportLoading(!0);try{if(te.api){let $e=new WeakMap,Ge=await na.getItemData((T==null?void 0:T.value)===""?C.value:T==null?void 0:T.value,sessionStorage.getItem("systemKey"),"",!1,"","",$e),Wa="";if(Ge=Ge==null?void 0:Ge.map(aa=>{var Ie,Ce,wa,me,Je,Ze,Fe,ba,Le,da,re,Se;if((aa==null?void 0:aa.comp)==="Form")aa.compData=(Ie=aa.compData)==null?void 0:Ie.map(K=>{var je;return(K==null?void 0:K.key)==="formContent"&&(K.contents=(je=K.contents)==null?void 0:je.map(Be=>{var za;if((Be==null?void 0:Be.value)===""&&(Be==null?void 0:Be.type)==="Select"){let Sa=na.judgeContents((za=I.cloneDeep(Be))==null?void 0:za.optionUrl,$e);Be.value=Be.value||Sa}return Be})),K});else if((aa==null?void 0:aa.comp)==="Table"&&(Ce=aa.compData)!=null&&Ce.find(K=>(K==null?void 0:K.key)==="pageColumn")){let K=(me=(wa=aa.compData)==null?void 0:wa.find(Sa=>(Sa==null?void 0:Sa.key)==="pageColumn"))==null?void 0:me.contents,je=((Ze=(Je=aa.compData)==null?void 0:Je.find(Sa=>(Sa==null?void 0:Sa.key)==="pageGroup"))==null?void 0:Ze.contents)??"",Be=(Le=(ba=(Fe=K==null?void 0:K.split("["))==null?void 0:Fe[1])==null?void 0:ba.split("]"))==null?void 0:Le[0];Wa=((da=K==null?void 0:K.split("["))==null?void 0:da[0])+((Se=(re=B.value)==null?void 0:re.find(Sa=>(Sa==null?void 0:Sa.key)===Be))==null?void 0:Se.value)}return aa}),!(Wa===""||Wa==="")){const aa=await na.getItemData(Wa,sessionStorage.getItem("systemKey"),"",!1,"","",$e);Ge=Ge==null?void 0:Ge.map(Ie=>{var Ce,wa,me,Je,Ze,Fe,ba,Le,da,re,Se,K,je;if((Ie==null?void 0:Ie.comp)==="Table"&&(Ce=Ie.compData)!=null&&Ce.find(Be=>(Be==null?void 0:Be.key)==="pageColumn")){let Be=(me=(wa=Ie.compData)==null?void 0:wa.find(_e=>(_e==null?void 0:_e.key)==="pageColumn"))==null?void 0:me.contents,za=((Ze=(Je=Ie.compData)==null?void 0:Je.find(_e=>(_e==null?void 0:_e.key)==="pageGroup"))==null?void 0:Ze.contents)??"",Sa=(Le=(ba=(Fe=Be==null?void 0:Be.split("["))==null?void 0:Fe[1])==null?void 0:ba.split("]"))==null?void 0:Le[0],Ye=((da=Be==null?void 0:Be.split("["))==null?void 0:da[0])+((Se=(re=B.value)==null?void 0:re.find(_e=>(_e==null?void 0:_e.key)===Sa))==null?void 0:Se.value),ca=(K=aa==null?void 0:aa.find(_e=>(_e==null?void 0:_e.name)===(za===""?s==null?void 0:s.compName:za)))==null?void 0:K.compData;Ie.compData=(je=Ie.compData)==null?void 0:je.map(_e=>{var Q;return(_e==null?void 0:_e.key)==="tableContents"&&(_e.contents=(Q=ca==null?void 0:ca.find(ya=>(ya==null?void 0:ya.key)==="tableContents"))==null?void 0:Q.contents),_e})}return Ie})}let Ia={};if(((le=(D=te==null?void 0:te.extraValues)==null?void 0:D.input)==null?void 0:le.length)>0){const aa=(ue=(ge=te==null?void 0:te.extraValues)==null?void 0:ge.input)==null?void 0:ue.map(async Ie=>{var Ce;pe!=null&&pe.find(wa=>wa===Ie)?Ia=await ke(Ie,Ge):Ia[Object.keys(Ie)[0]]=await ke((Ce=Object.values(Ie))==null?void 0:Ce[0],Ge,$e)});await Promise.all(aa)}else Ia=await ke("/",Ge);let P=!1;(ia=(Ne=te==null?void 0:te.extraValues)==null?void 0:Ne.output)==null||ia.forEach(aa=>{var Ie,Ce;(Ce=(Ie=Object.values(aa))==null?void 0:Ie[0])!=null&&Ce.includes(".doc")&&(P=!0)});let F;if(P){const aa=I.ElLoading.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"});F=await rl.axios.post(te.api,Ia,{responseType:"blob",headers:{"Content-Type":"application/json"}}).finally(()=>{aa.close()})}else F=await rl.axios.post(te.api,Ia,{headers:{"Content-Type":"application/json"}});let G=(Qe=(ee=(Ha=(ka=I.cloneDeep(te))==null?void 0:ka.extraValues)==null?void 0:Ha.output)==null?void 0:ee.map(aa=>{var Ie,Ce,wa,me,Je,Ze,Fe,ba,Le,da,re,Se,K,je,Be,za;if(!((Ce=(Ie=Object.values(aa))==null?void 0:Ie[0])!=null&&Ce.includes(".doc"))){let Sa=(da=(Le=(ba=(me=I.cloneDeep((wa=Object.values(aa))==null?void 0:wa[0]))==null?void 0:me.split("["))==null?void 0:ba[((Fe=(Ze=I.cloneDeep((Je=Object.values(aa))==null?void 0:Je[0]))==null?void 0:Ze.split("["))==null?void 0:Fe.length)-1])==null?void 0:Le.split("]"))==null?void 0:da[0],Ye=Sa==null?void 0:Sa.split(":"),ca=(K=I.cloneDeep((re=Object.values(aa))==null?void 0:re[0]))==null?void 0:K.substring(0,I.cloneDeep((Se=Object.values(aa))==null?void 0:Se[0]).lastIndexOf("["));if(ca=(Be=I.cloneDeep(ca))==null?void 0:Be.slice(0,((je=I.cloneDeep(ca))==null?void 0:je.length)-1),ca!=null&&ca.includes("[")){let _e="";if((za=na.contentTransArrayToAll(ca,"/"))==null||za.forEach(Q=>{var ya,We,La,yl,Aa,el,Ja;if(!(Q!=null&&Q.includes("[")))_e=_e===""?_e+Q.replaceAll("/",""):_e+"/"+Q.replaceAll("/","");else{let Pa=I.cloneDeep(Q).slice(1,((ya=I.cloneDeep(Q))==null?void 0:ya.length)-1),Te=(el=(Aa=(yl=(La=(We=I.cloneDeep(Pa))==null?void 0:We.split("["))==null?void 0:La[1])==null?void 0:yl.split("]"))==null?void 0:Aa[0])==null?void 0:el.split(":"),il="",va=(Ja=Ge==null?void 0:Ge.find(_a=>(_a==null?void 0:_a.name)===(Te==null?void 0:Te[0])))==null?void 0:Ja.compData;va==null||va.forEach(_a=>{var xa;(_a==null?void 0:_a.key)==="formContent"&&((xa=_a==null?void 0:_a.contents)==null||xa.forEach(oa=>{(oa==null?void 0:oa.key)===(Te==null?void 0:Te[1])&&(il=oa==null?void 0:oa.value)}))}),_e=_e===""?_e+il.replaceAll("/",""):_e+"/"+il.replaceAll("/","")}}),ca=_e,ca[(ca==null?void 0:ca.length)-1]!=="/")return ca}}}))==null?void 0:Qe.filter(aa=>aa);G=[...new Set(I.cloneDeep(G))];let ie=G==null?void 0:G.map(async aa=>{let Ie=await na.getItemData(aa,sessionStorage.getItem("systemKey"),"",!1,"","",$e);if((Ie==null?void 0:Ie.length)===0)return await na.getParentContents(aa)});await Promise.all(ie);let ce=[],pa=(He=(ga=(Pe=I.cloneDeep(te))==null?void 0:Pe.extraValues)==null?void 0:ga.output)==null?void 0:He.map(async aa=>{var ba,Le,da,re,Se,K,je,Be,za,Sa,Ye,ca,_e,Q,ya,We,La,yl,Aa,el,Ja,Pa,Te,il,va,_a,xa,oa,ha,de,Fa,ja,Ee,Na,Ua,ye,hl,Za,xl,qa,ol,al,ul,dl,Wl,ql,Pl,Hl,gr,rr,kr,wr,Er,un,Jr,dn,Xr,Ur,pn,tn,Dr,Zr,Br,Il,qr,Nr,vn,tt,Wn,In;if((Le=(ba=Object.values(aa))==null?void 0:ba[0])!=null&&Le.includes(".doc")){var Ie=new Blob([F.data],{type:"application/octet-stream;charset=UTF-8"}),Ce=F.headers["content-disposition"],wa=new RegExp("filename=([^;]+\\.[^\\.;]+);*"),me=wa.exec(Ce),Je=me==null?void 0:me[1],Ze=document.createElement("a"),Fe=window.URL.createObjectURL(Ie);b.value=[{name:Je,blobUrl:Fe}],c.value=!0}else{let mn=(Sa=(za=(Be=(re=I.cloneDeep((da=Object.values(aa))==null?void 0:da[0]))==null?void 0:re.split("["))==null?void 0:Be[((je=(K=I.cloneDeep((Se=Object.values(aa))==null?void 0:Se[0]))==null?void 0:K.split("["))==null?void 0:je.length)-1])==null?void 0:za.split("]"))==null?void 0:Sa[0],Zl=mn==null?void 0:mn.split(":"),xr=(_e=I.cloneDeep((Ye=Object.values(aa))==null?void 0:Ye[0]))==null?void 0:_e.substring(0,I.cloneDeep((ca=Object.values(aa))==null?void 0:ca[0]).lastIndexOf("["));if(xr!=null&&xr.includes("[")?xr=(ya=I.cloneDeep(xr))==null?void 0:ya.slice(0,((Q=I.cloneDeep(xr))==null?void 0:Q.length)-1):xr===""&&(xr=C.value),xr=xr.replaceAll("<","[").replaceAll(">","]"),xr!=null&&xr.includes("[")){let jl="";(We=na.contentTransArrayToAll(xr,"/"))==null||We.forEach((zl,cr)=>{var ar,Rl,zr,Mr,yn,Qr,Kn,Sn,Yn,gn,Dn;if(!(zl!=null&&zl.includes("[")))jl=jl===""?jl+zl.replaceAll("/",""):jl+"/"+zl.replaceAll("/","");else{let Ln="",Wr="";(ar=I.cloneDeep(zl))!=null&&ar.includes("]")?(Ln=I.cloneDeep(zl).slice(1,((Rl=I.cloneDeep(zl))==null?void 0:Rl.length)-1),Wr=(Kn=(Qr=(yn=(Mr=(zr=I.cloneDeep(Ln))==null?void 0:zr.split("["))==null?void 0:Mr[1])==null?void 0:yn.split("]"))==null?void 0:Qr[0])==null?void 0:Kn.split(":")):(Ln=I.cloneDeep(zl).slice(1,(Sn=I.cloneDeep(zl))==null?void 0:Sn.length),Wr=(Yn=I.cloneDeep(Ln))==null?void 0:Yn.split("/"));let Bn="",bn=(gn=Ge==null?void 0:Ge.find(Rr=>(Rr==null?void 0:Rr.name)===(Wr==null?void 0:Wr[0])))==null?void 0:gn.compData;bn==null||bn.forEach(Rr=>{var Vn;(Rr==null?void 0:Rr.key)==="formContent"&&((Vn=Rr==null?void 0:Rr.contents)==null||Vn.forEach(fn=>{(fn==null?void 0:fn.key)===(Wr==null?void 0:Wr[1])&&(Bn=fn==null?void 0:fn.value)}))}),((Dn=na.contentTransArrayToAll(xr,"/"))==null?void 0:Dn.length)-1!==cr?jl=jl===""?jl+Bn.replaceAll("/",""):jl+"/"+Bn.replaceAll("/",""):jl=jl+t.value+Bn.replaceAll("/","")}}),(La=C.value)!=null&&La.includes(jl)?xr=C.value:xr=jl}let Vl=I.cloneDeep((yl=Object.keys(aa))==null?void 0:yl[0]);if(((Aa=F==null?void 0:F.data)==null?void 0:Aa.statusCode)===200||((el=F==null?void 0:F.data)==null?void 0:el.code)===200){if(((Pa=(Ja=F==null?void 0:F.data)==null?void 0:Ja.data)!=null&&Pa[Vl]||(il=(Te=F==null?void 0:F.data)==null?void 0:Te.result)!=null&&il[Vl])&&(Zl==null?void 0:Zl.length)===1)return await xe(((_a=(va=F==null?void 0:F.data)==null?void 0:va.data)==null?void 0:_a[Vl])||((oa=(xa=F==null?void 0:F.data)==null?void 0:xa.result)==null?void 0:oa[Vl]),I.cloneDeep(xr),Zl,Wa);if((de=(ha=F==null?void 0:F.data)==null?void 0:ha.data)!=null&&de[Vl]||(ja=(Fa=F==null?void 0:F.data)==null?void 0:Fa.result)!=null&&ja[Vl]){let jl=await ze(((Na=(Ee=F==null?void 0:F.data)==null?void 0:Ee.data)==null?void 0:Na[Vl])||((ye=(Ua=F==null?void 0:F.data)==null?void 0:Ua.result)==null?void 0:ye[Vl]),I.cloneDeep(xr),Zl);return jl&&(ce=[...ce,...jl]),jl}else{if(!((hl=F==null?void 0:F.data)!=null&&hl.data)){let jl=await na.getItemData(C.value,sessionStorage.getItem("systemKey"),"",!1,"","",$e);jl=jl==null?void 0:jl.map(cr=>{var ar;return(cr==null?void 0:cr.name)===(Zl==null?void 0:Zl[0])&&(cr.compData=(ar=cr.compData)==null?void 0:ar.map(Rl=>{var zr;return(Rl==null?void 0:Rl.key)==="formContent"&&(Rl.contents=(zr=Rl.contents)==null?void 0:zr.map(Mr=>{var yn,Qr;return(Mr==null?void 0:Mr.key)===(Zl==null?void 0:Zl[1])&&(Mr.value=(Qr=(yn=F==null?void 0:F.data)==null?void 0:yn.result)==null?void 0:Qr[Vl==null?void 0:Vl.replaceAll(":","")]),Mr})),Rl})),cr});let zl=[];(Za=jl==null?void 0:jl.filter(cr=>(cr==null?void 0:cr.comp)==="Form"))==null||Za.forEach(async cr=>{let ar={};for(let Rl in cr)Rl!=="id"&&(ar[Rl]=cr[Rl]);zl.push({id:cr==null?void 0:cr.id,value:{pageData:ar}})}),(zl==null?void 0:zl.length)>0&&await yr.batchUpdateInsofDataApi({dataList:zl});return}if((Zl==null?void 0:Zl.length)===1){const jl=(ol=(qa=(xl=F==null?void 0:F.data)==null?void 0:xl.data)==null?void 0:qa.path)==null?void 0:ol.path;let zl="";(ql=(Wl=(dl=(ul=(al=jl==null?void 0:jl.split("("))==null?void 0:al[1])==null?void 0:ul.split(")"))==null?void 0:dl[0])==null?void 0:Wl.split(":"))==null||ql.forEach(Rl=>{var zr,Mr;zl=zl===""?zl+((zr=Rl==null?void 0:Rl.replaceAll("'",""))==null?void 0:zr.trim()):zl+"/"+((Mr=Rl==null?void 0:Rl.replaceAll("'",""))==null?void 0:Mr.trim())});let cr=[(kr=(rr=(gr=(Hl=(Pl=jl==null?void 0:jl.split("<"))==null?void 0:Pl[1])==null?void 0:Hl.split(">"))==null?void 0:gr[0])==null?void 0:rr.replaceAll("'",""))==null?void 0:kr.trim()],ar;return(un=(Er=(wr=F==null?void 0:F.data)==null?void 0:wr.data)==null?void 0:Er.data)!=null&&un[Zl==null?void 0:Zl[0]]?ar=await xe((Xr=(dn=(Jr=F==null?void 0:F.data)==null?void 0:Jr.data)==null?void 0:dn.data)==null?void 0:Xr[Zl==null?void 0:Zl[0]],zl,Zl,Wa):ar=await De((pn=(Ur=F==null?void 0:F.data)==null?void 0:Ur.data)==null?void 0:pn.data,zl,cr,$e),ar}else{const jl=(Zr=(Dr=(tn=F==null?void 0:F.data)==null?void 0:tn.data)==null?void 0:Dr.path)==null?void 0:Zr.path;let zl="";return(vn=(Nr=(qr=(Il=(Br=jl==null?void 0:jl.split("("))==null?void 0:Br[1])==null?void 0:Il.split(")"))==null?void 0:qr[0])==null?void 0:Nr.split(":"))==null||vn.forEach(ar=>{var Rl,zr;zl=zl===""?zl+((Rl=ar==null?void 0:ar.replaceAll("'",""))==null?void 0:Rl.trim()):zl+"/"+((zr=ar==null?void 0:ar.replaceAll("'",""))==null?void 0:zr.trim())}),await ze((In=(Wn=(tt=F==null?void 0:F.data)==null?void 0:tt.data)==null?void 0:Wn.data)==null?void 0:In[Zl==null?void 0:Zl[0]],zl,Zl)}}}}});if(await Promise.all(pa),(ce==null?void 0:ce.length)>0){let aa=[];ce==null||ce.forEach(wa=>{aa!=null&&aa.find(me=>{var Je,Ze,Fe,ba;return((Ze=(Je=me==null?void 0:me.value)==null?void 0:Je.pageData)==null?void 0:Ze.name)===((ba=(Fe=wa==null?void 0:wa.value)==null?void 0:Fe.pageData)==null?void 0:ba.name)})||aa.push(wa)});let Ie=[];aa==null||aa.forEach(wa=>{var Ze,Fe,ba,Le;let me=I.cloneDeep(wa);me.value.pageData.compData=(Ze=me.value.pageData.compData)==null?void 0:Ze.map(da=>{var re;return(da==null?void 0:da.key)==="formContent"&&(da.contents=(re=da.contents)==null?void 0:re.map(Se=>{var je,Be,za,Sa;let K=(je=I.cloneDeep(ce))==null?void 0:je.find(Ye=>(Ye==null?void 0:Ye.keyType)===(Se==null?void 0:Se.key));if(K){let Ye=(Sa=(za=(Be=K.value.pageData.compData)==null?void 0:Be.find(ca=>(ca==null?void 0:ca.key)==="formContent"))==null?void 0:za.contents)==null?void 0:Sa.find(ca=>(ca==null?void 0:ca.key)===(Se==null?void 0:Se.key));Se.value=Ye==null?void 0:Ye.value}return Se})),da}),Ie.push({id:me==null?void 0:me.id,value:me==null?void 0:me.value});let Je=[];(Le=(ba=(Fe=me==null?void 0:me.value)==null?void 0:Fe.pageData)==null?void 0:ba.compData)==null||Le.forEach(da=>{var re;(da==null?void 0:da.key)==="formContent"&&((re=da==null?void 0:da.contents)==null||re.forEach(Se=>{var K,je,Be,za,Sa,Ye;if((je=(K=Se==null?void 0:Se.optionUrl)==null?void 0:K.menuSelect)!=null&&je.find(ca=>ca==null?void 0:ca.includes("[")))if(Je!=null&&Je.find(ca=>{var _e,Q,ya;return((_e=ca==null?void 0:ca.key)==null?void 0:_e.join(","))===((ya=(Q=Se==null?void 0:Se.optionUrl)==null?void 0:Q.menuSelect)==null?void 0:ya.join(","))})){let ca=(Be=Je==null?void 0:Je.find(_e=>{var Q,ya,We;return((Q=_e==null?void 0:_e.key)==null?void 0:Q.join(","))===((We=(ya=Se==null?void 0:Se.optionUrl)==null?void 0:ya.menuSelect)==null?void 0:We.join(","))}))==null?void 0:Be.value;ca.push({key:Se==null?void 0:Se.prop,groups:(za=Se==null?void 0:Se.optionUrl)==null?void 0:za.groupSelect,value:Se==null?void 0:Se.value}),Je=Je==null?void 0:Je.map(_e=>{var Q,ya,We;return((Q=_e==null?void 0:_e.key)==null?void 0:Q.join(","))===((We=(ya=Se==null?void 0:Se.optionUrl)==null?void 0:ya.menuSelect)==null?void 0:We.join(","))&&(_e.value=ca),_e})}else Je.push({key:(Sa=Se==null?void 0:Se.optionUrl)==null?void 0:Sa.menuSelect,value:[{key:Se==null?void 0:Se.prop,groups:(Ye=Se==null?void 0:Se.optionUrl)==null?void 0:Ye.groupSelect,value:Se==null?void 0:Se.value}]})}))}),(Je==null?void 0:Je.length)>0&&(Je=Je==null?void 0:Je.map(da=>{var Se;let re="";return(Se=da==null?void 0:da.key)==null||Se.forEach(K=>{var je;if(!(K!=null&&K.includes("[")))re=re===""?re+K:re+"/"+K;else{let Be="",za=(je=K==null?void 0:K.replaceAll("[","").replaceAll("]",""))==null?void 0:je.split(":");Ge==null||Ge.forEach(Sa=>{var Ye;(Sa==null?void 0:Sa.name)===(za==null?void 0:za[0])&&((Ye=Sa==null?void 0:Sa.compData)==null||Ye.forEach(ca=>{var _e;(ca==null?void 0:ca.key)==="formContent"&&((_e=ca==null?void 0:ca.contents)==null||_e.forEach(Q=>{(Q==null?void 0:Q.prop)===(za==null?void 0:za[1])&&(Be=Q==null?void 0:Q.value)}))}))}),re=re+t.value+Be}}),da.key=re,da})),Je==null||Je.forEach(da=>{var je,Be,za;let re=(je=$e[da.key])==null?void 0:je.find(Sa=>{var Ye,ca,_e,Q,ya,We,La;return((ca=(Ye=Sa==null?void 0:Sa.value)==null?void 0:Ye.pageData)==null?void 0:ca.name)===((ya=(Q=(_e=da==null?void 0:da.value)==null?void 0:_e[0])==null?void 0:Q.groups)==null?void 0:ya[0])&&((La=(We=Sa==null?void 0:Sa.value)==null?void 0:We.pageData)==null?void 0:La.name)!==void 0}),Se=re==null?void 0:re.id,K=(Be=re==null?void 0:re.value)==null?void 0:Be.pageData;K.compData=(za=K.compData)==null?void 0:za.map(Sa=>{var Ye;return(Sa==null?void 0:Sa.key)==="formContent"&&(Sa.contents=(Ye=Sa.contents)==null?void 0:Ye.map(ca=>{var Q;let _e=(Q=da.value)==null?void 0:Q.find(ya=>(ya==null?void 0:ya.key)===(ca==null?void 0:ca.prop));return _e&&(ca.value=_e.value),ca})),Sa}),Ie.push({id:Se,value:{pageData:K}})})});let Ce=(Ae=I.cloneDeep(ce))==null?void 0:Ae[0];(Ie==null?void 0:Ie.length)>0&&await yr.batchUpdateInsofDataApi({dataList:Ie})}y.setFreshContent(!0)}x.setImportLoading(!1)}catch{rl.ElMessage.error("方法执行错误,请查看方法!"),x.setImportLoading(!1)}g.value=!0},pe=["createInsofDataApi"],Ke=$a.debounce(async te=>{X(te)},100),Da=async te=>{var ia,ka,Ha;const D=I.cloneDeep(te);let le,ge=new WeakMap;te!=null&&te[0].path&&(le=await(D==null?void 0:D.map(async(ee,Qe)=>{var Ia,P,F,G,ie,ce,pa,aa,Ie,Ce,wa,me,Je,Ze,Fe,ba;const ga=(Ia=ge[ee==null?void 0:ee.path])==null?void 0:Ia.filter(Le=>{var da;return((da=Le==null?void 0:Le.key)==null?void 0:da.type)==="data"});let He="";const Ae=await na.getItemData(C.value,sessionStorage.getItem("systemKey"),"",!1,[],!1,ge);ga==null||ga.forEach(Le=>{var da,re,Se,K,je;((re=(da=Le==null?void 0:Le.value)==null?void 0:da.tableData)==null?void 0:re.算法名称)===((Se=D==null?void 0:D[Qe])==null?void 0:Se.method)&&(He=(je=(K=Le==null?void 0:Le.value)==null?void 0:K.tableData)==null?void 0:je.算法体)});const $e=await na.getItemData(ee==null?void 0:ee.path,sessionStorage.getItem("systemKey"),"",!1,[],!1,ge);let Ge="",Wa=(ie=(G=(F=(P=$e==null?void 0:$e[0])==null?void 0:P.compData)==null?void 0:F.find(Le=>(Le==null?void 0:Le.key)==="header"))==null?void 0:G.contents)==null?void 0:ie.findIndex(Le=>(Le==null?void 0:Le.prop)==="算法体");return(pa=(ce=$e==null?void 0:$e[0])==null?void 0:ce.compData)==null||pa.forEach(Le=>{var da;(Le==null?void 0:Le.key)==="tableContents"&&((da=Le==null?void 0:Le.contents)==null||da.forEach(re=>{re!=null&&re.find(Se=>Se===(ee==null?void 0:ee.method))&&(Ge=re[Wa])}))}),{buttonName:((aa=D==null?void 0:D[Qe])==null?void 0:aa.method)||((wa=(Ce=(Ie=ga==null?void 0:ga[0])==null?void 0:Ie.value)==null?void 0:Ce.tableData)==null?void 0:wa.算法名称),api:(He===""?(Ze=(Je=(me=ga==null?void 0:ga[0])==null?void 0:me.value)==null?void 0:Je.tableData)==null?void 0:Ze.算法体:He)||Ge,content:Ae==null?void 0:Ae.filter(Le=>Le.comp!=="methodButton"),extraContent:(Fe=I.cloneDeep(ee.value))==null?void 0:Fe.slice(1),methodName:(ee==null?void 0:ee.path)??"",extraValues:(ba=D==null?void 0:D[Qe])==null?void 0:ba.data}})));const ue=D==null?void 0:D.map(async ee=>{var $e,Ge,Wa,Ia,P,F;const Qe=($e=resAll.data.result)==null?void 0:$e.filter(G=>{var ie,ce,pa;return((ie=G==null?void 0:G.key)==null?void 0:ie.parentTable)===""&&((ce=G==null?void 0:G.key)==null?void 0:ce.type)==="method"&&((pa=G==null?void 0:G.key)==null?void 0:pa.methodName)===G.method}),Pe=Qe==null?void 0:Qe[0],ga=(Ge=resAll.data.result)==null?void 0:Ge.filter(G=>{var ie,ce;return((ie=G==null?void 0:G.key)==null?void 0:ie.type)==="methodData"&&((ce=G==null?void 0:G.key)==null?void 0:ce.tableId)===(Pe==null?void 0:Pe.id)}),He=await na.getItemData(C.value,sessionStorage.getItem("systemKey"),"",!1,[],!1,ge),Ae=ga==null?void 0:ga[0];return{buttonName:(Wa=Pe==null?void 0:Pe.key)==null?void 0:Wa.methodKey,api:(P=(Ia=Ae==null?void 0:Ae.value)==null?void 0:Ia.tableData)==null?void 0:P[0],content:He==null?void 0:He.filter(G=>G.comp!=="methodButton"),extraContent:(F=I.cloneDeep(ee.value))==null?void 0:F.slice(1),methodName:(ee==null?void 0:ee.method)??""}}),Ne=(ia=te==null?void 0:te[0])!=null&&ia.path&&((ka=te==null?void 0:te[0])==null?void 0:ka.path)!==""?await Promise.all(le):await Promise.all(ue);r.value=Ne==null?void 0:Ne.filter(ee=>ee==null?void 0:ee.extraContent),(Ha=r.value)==null||Ha.forEach(ee=>{var Qe;ee.api===""&&((Qe=ee.content)==null||Qe.forEach(Pe=>{var ga;Pe.comp=="Table"&&y.setExtraContents(na.methodTableToContent(Pe.compData,(ga=ee.extraContent)==null?void 0:ga[0]))}))})};return a.watch(()=>s.itemData,async()=>{_.value=="view"&&!g.value&&await Da(I.cloneDeep(s.itemData)),g.value=!1},{immediate:!0,deep:!0}),(te,D)=>{var le,ge,ue;return a.unref(_)!=="edit"?(a.openBlock(),a.createElementBlock("div",C2,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList((le=r.value)==null?void 0:le.filter(Ne=>(Ne==null?void 0:Ne.buttonName)!=="保存"),Ne=>{var ia;return a.openBlock(),a.createElementBlock("div",null,[Ne.api!==""?(a.openBlock(),a.createBlock(a.unref(Ji._sfc_main),{key:0,disabled:a.unref(A)===a.unref(C)&&!((ia=Ne==null?void 0:Ne.buttonName)!=null&&ia.includes("预览")),class:"calculator-content",modelValue:Ne.buttonName,onClickTrigger:ka=>a.unref(Ke)(Ne),loading:u.value},null,8,["disabled","modelValue","onClickTrigger","loading"])):a.createCommentVNode("",!0)])}),256)),a.createElementVNode("div",null,[a.unref(U)!==""&&((ue=a.unref(C))==null?void 0:ue[((ge=a.unref(C))==null?void 0:ge.length)-1])!==a.unref(t)?(a.openBlock(),a.createBlock(a.unref(Ji._sfc_main),{key:0,class:"calculator-content",onClickTrigger:j,modelValue:"保存"})):a.createCommentVNode("",!0)]),c.value?(a.openBlock(),a.createBlock(fl.ssFilePreview,{key:0,fileDataList:b.value,onDestroy:W},null,8,["fileDataList"])):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0)}}},S2=Ul._export_sfc(E2,[["__scopeId","data-v-063aa9af"]]),D2={};function B2(l,r){return" 567 "}const N2=Ul._export_sfc(D2,[["render",B2]]),T2={class:"module content"},A2={class:"module data"},z2={class:"module layout"},M2={class:"form-content"},O2=a.defineComponent({__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(l,{emit:r}){const n=l,t=r,s=a.reactive({visible:!1,width:"40%",title:"签名配置"}),c=a.ref("create"),b=a.ref([{label:"取消",background:"#c0c4cc"},{label:"确认",background:"#436aaf"}]),h=a.ref([{label:"宽度(%):",prop:"signPadWidth",type:"number",value:"30"},{label:"弹窗名称:",prop:"dialogTitle",type:"input",value:""},{label:"弹窗宽度(%):",prop:"dialogWidth",type:"number",value:"30"},{label:"弹窗显示:",prop:"dialogShow",type:"radio",contents:[{label:"显示",value:!0},{label:"隐藏",value:!1}],value:!1,isFormColHidden:!0},{label:"路径:",prop:"url",type:"input",value:"",isFormColHidden:!0}]),v=a.computed(()=>[{label:"",prop:"index",type:"input",value:"",isFormColHidden:!0},{label:"类型:",prop:"label",type:"select",contents:[{label:"电子签名",value:"电子签名"},{label:"签字版",value:"签字版"},{label:"上传签名",value:"上传签名"}],value:""},{label:"图标",prop:"icon",type:"inputPopover",value:""}]),y=a.ref({}),u=a.ref([]),x=()=>({comp:"Signature",compData:[{key:"signTypeList",contents:u.value},{key:"signConfig",contents:y.value}]}),S=B=>{var A;y.value=I.cloneDeep(B),t("change",(A=x())==null?void 0:A.compData)},M=B=>{var A,R;if((B==null?void 0:B.buttonName)==="确认"){const C=I.cloneDeep(B==null?void 0:B.content);switch(c.value){case"create":u.value.push({...C,index:((A=u.value)==null?void 0:A.length)+1});break}t("change",(R=x())==null?void 0:R.compData),s.visible=!1}else s.visible=!1},_=(B,A)=>{var R,C;switch(B){case"create":(R=v.value)==null||R.forEach(L=>{L.value=""}),c.value="create",s.visible=!0;break;case"update":(C=v.value)==null||C.forEach(L=>{L.value=A[L==null?void 0:L.prop]}),c.value="update",s.visible=!0;break;case"delete":u.value.splice(A,1),c.value="delete";break}},U=()=>{s.visible=!1};return a.watch(()=>n==null?void 0:n.itemContents,B=>{var A,R;B&&(y.value=((A=B==null?void 0:B.find(C=>C.key==="signConfig"))==null?void 0:A.contents)??{},u.value=((R=B==null?void 0:B.find(C=>C.key==="signTypeList"))==null?void 0:R.contents)??[])},{immediate:!0}),(B,A)=>{const R=a.resolveComponent("svg-icon"),C=a.resolveComponent("el-button");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",null,[a.createElementVNode("div",T2,[A[2]||(A[2]=a.createElementVNode("h4",{class:"module-title"},"签名类型",-1)),a.createVNode(C,{class:"module-icon",id:"themeButton",onClick:A[0]||(A[0]=L=>_("create"))},{icon:a.withCtx(()=>[a.createVNode(R,{name:"Plus",class:"icon-size"})]),default:a.withCtx(()=>[A[1]||(A[1]=a.createTextVNode(" 新增 "))]),_:1,__:[1]})]),a.createElementVNode("div",A2,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(u.value,(L,T)=>(a.openBlock(),a.createElementBlock("div",{class:"module-data-item",key:T},[a.createElementVNode("span",null,a.toDisplayString(L==null?void 0:L.label),1),a.createElementVNode("div",null,[a.createVNode(C,{type:"primary",size:"small",onClick:k=>_("update",{...L,index:T+1})},{default:a.withCtx(()=>A[3]||(A[3]=[a.createTextVNode("修改")])),_:2,__:[3]},1032,["onClick"]),a.createVNode(C,{type:"danger",size:"small",onClick:k=>_("delete",T)},{default:a.withCtx(()=>A[4]||(A[4]=[a.createTextVNode("删除")])),_:2,__:[4]},1032,["onClick"])])]))),128))]),a.createElementVNode("div",z2,[a.createVNode(fl.ssForm,{rowContents:h.value,onChange:S},null,8,["rowContents"])])]),a.createVNode(vr.ssDialog,{visible:s.visible,title:s.title,onBeforeDestroy:U,width:s.width},{default:a.withCtx(()=>[a.createElementVNode("div",M2,[(a.openBlock(),a.createBlock(fl.ssForm,{rowContents:v.value,key:v.value,isEnableWrap:!1,isButtonRow:!1,isStartJustify:!1,buttonValue:b.value,onOnButtonClick:M},null,8,["rowContents","buttonValue"]))])]),_:1},8,["visible","title","width"])],64)}}}),I2=Ul._export_sfc(O2,[["__scopeId","data-v-487e0536"]]),L2=a.defineComponent({__name:"index",props:{stepConfig:{type:Object,default:{}},stepList:{type:Array,default:()=>[]}},emits:["clickStep","clickTrigger","changeTrigger"],setup(l,{emit:r}){const n=l,t=r,s=a.ref(1),c=a.computed(()=>{var x,S;return(x=n==null?void 0:n.stepConfig)!=null&&x.allowTrigger?s.value:(S=n==null?void 0:n.stepConfig)==null?void 0:S.active}),b=(x,S)=>{s.value=S,t("clickStep",x,S)},h=x=>fl.getComponent(x),v=()=>{var S;const x=(S=n==null?void 0:n.stepList)==null?void 0:S.find((M,_)=>_+1===c.value);return console.log("findStep",x),x?x==null?void 0:x.children:[]},y=x=>{t("clickTrigger",x)},u=x=>{t("changeTrigger",x)};return(x,S)=>{var U,B,A,R,C;const M=a.resolveComponent("el-step"),_=a.resolveComponent("el-steps");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createVNode(_,{direction:(U=l.stepConfig)==null?void 0:U.direction,active:c.value,"finish-status":"success",simple:(B=l.stepConfig)==null?void 0:B.simple,"align-center":((A=l.stepConfig)==null?void 0:A.alignCenter)??!0},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(l.stepList,(L,T)=>(a.openBlock(),a.createBlock(M,{key:T,class:"step-item",onClick:k=>b(L,T+1)},{title:a.withCtx(()=>[a.renderSlot(x.$slots,"title",{title:L==null?void 0:L.title},void 0,!0)]),description:a.withCtx(()=>[a.renderSlot(x.$slots,"description",{description:L==null?void 0:L.description},void 0,!0)]),_:2},1032,["onClick"]))),128))]),_:3},8,["direction","active","simple","align-center"]),(R=l.stepConfig)!=null&&R.allowTrigger&&((C=l.stepConfig)!=null&&C.active)?(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:0},a.renderList(v(),(L,T)=>(a.openBlock(),a.createElementBlock("div",{key:T,class:"step-cont-wrap"},[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(h(L==null?void 0:L.type)),{modelValue:L.value,"onUpdate:modelValue":k=>L.value=k,onClickTrigger:y,onChangeTrigger:u,content:L==null?void 0:L.content},a.createSlots({_:2},[a.renderList(x.$slots,(k,g)=>({name:g,fn:a.withCtx(j=>[a.renderSlot(x.$slots,g,a.mergeProps({ref_for:!0},j||{}),void 0,!0)])}))]),1064,["modelValue","onUpdate:modelValue","content"]))]))),128)):a.createCommentVNode("",!0)],64)}}}),V2=Ul._export_sfc(L2,[["__scopeId","data-v-d7c99969"]]),$2=a.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]}},emits:["clickStep"],setup(l,{emit:r}){const n=l,t=r,s=a.ref({}),c=a.ref([]),b=(h,v)=>{t("clickStep",h,v)};return a.watch(()=>n==null?void 0:n.itemData,h=>{var v,y;c.value=(v=h==null?void 0:h.find(u=>(u==null?void 0:u.key)==="stepList"))==null?void 0:v.contents,s.value=(y=h==null?void 0:h.find(u=>(u==null?void 0:u.key)==="stepConfig"))==null?void 0:y.contents},{immediate:!0,deep:!0}),(h,v)=>{const y=a.resolveComponent("svg-icon");return a.openBlock(),a.createBlock(V2,{stepConfig:s.value,stepList:c.value,onClickStep:b},{icon:a.withCtx(()=>[a.createVNode(y,{name:"import"})]),title:a.withCtx(({title:u})=>[a.createTextVNode(a.toDisplayString(u),1)]),description:a.withCtx(({description:u})=>[a.createTextVNode(a.toDisplayString(u),1)]),_:1},8,["stepConfig","stepList"])}}}),R2=a.defineComponent({__name:"index",props:{activities:{type:Array,default:()=>[]},timeLineConfig:{type:Object,default:()=>{}}},setup(l){return(r,n)=>{const t=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,b)=>(a.openBlock(),a.createBlock(t,{key:b,timestamp:c.timestamp,placement:l.timeLineConfig.placement,center:l.timeLineConfig.isCenter,"hide-timestamp":!0,type:l.timeLineConfig.type,color:l.timeLineConfig.color,size:l.timeLineConfig.size,icon:l.timeLineConfig.icon,hollow:l.timeLineConfig.isHollow},{default:a.withCtx(()=>[a.renderSlot(r.$slots,"content",{content:c==null?void 0:c.content,timestamp:c==null?void 0:c.timestamp},void 0,!0)]),_:2},1032,["timestamp","placement","center","type","color","size","icon","hollow"]))),128))]),_:3})}}}),P2=Ul._export_sfc(R2,[["__scopeId","data-v-4172a886"]]),F2={class:"line-content"},j2={class:"line-time"},H2=a.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]}},setup(l){const r=l,n=a.ref({}),t=a.ref([]);return a.watch(()=>r==null?void 0:r.itemData,s=>{var c,b;t.value=(c=s==null?void 0:s.find(h=>(h==null?void 0:h.key)==="timeLineList"))==null?void 0:c.contents,n.value=(b=s==null?void 0:s.find(h=>(h==null?void 0:h.key)==="timeLineConfig"))==null?void 0:b.contents},{immediate:!0}),(s,c)=>(a.openBlock(),a.createBlock(P2,{activities:t.value,timeLineConfig:n.value},{content:a.withCtx(({content:b,timestamp:h})=>[a.createElementVNode("span",F2,a.toDisplayString(b),1),a.createElementVNode("span",j2,a.toDisplayString(h),1)]),_:1},8,["activities","timeLineConfig"]))}}),U2=Ul._export_sfc(H2,[["__scopeId","data-v-b4d9deed"]]),q2={class:"tabs-content"},W2=a.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]},tabsData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},index:Number,compNames:{type:String,default:""},cacheNewData:{type:Object},isDevMode:{type:Boolean},allMapContents:{type:Array,default:()=>[]}},emits:["change","contentChange","pageChange","rowClick","routeUrl","clickTrigger","clickMainKey"],setup(l,{emit:r}){const n=l,t=r,s=a.ref();a.watch(()=>n==null?void 0:n.itemData,()=>{s.value=n==null?void 0:n.itemData},{immediate:!0,deep:!0});const c=S=>{t("change",S)},b=(S,M)=>{t("contentChange",S,M)},h=S=>{t("pageChange",S)},v=S=>{t("rowClick",S)},y=(S,M)=>{t("routeUrl",S,M)},u=S=>{t("clickTrigger",S)},x=(S,M)=>{t("clickMainKey",S,M)};return(S,M)=>{var _,U;return a.openBlock(),a.createElementBlock("div",q2,[(_=s.value)!=null&&_.length?(a.openBlock(),a.createBlock(fl.ssTab,{tabsContents:s.value,key:(U=s.value)==null?void 0:U.length},{pane:a.withCtx(({tab:B,index:A})=>[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(a.unref(Rt)(B==null?void 0:B.comp)),{related:B==null?void 0:B.relatedTables,compNames:n==null?void 0:n.compNames,compName:B==null?void 0:B.name,cacheNewData:n==null?void 0:n.cacheNewData,isDevMode:l.isDevMode,itemData:B==null?void 0:B.compData,childItemData:B==null?void 0:B.itemChildData,onChange:c,index:(B==null?void 0:B.id)??A,config:{showIndex:B==null?void 0:B.showIndex,allowMove:B==null?void 0:B.allowMove,viewport:B==null?void 0:B.viewport},onContentChange:b,onPageChange:h,onRowClick:v,onRouteUrl:y,parentTableId:B==null?void 0:B.tableId,allMapContents:l.allMapContents,children:B==null?void 0:B.children,level:1,onClickTrigger:u,onClickMainKey:x},null,40,["related","compNames","compName","cacheNewData","isDevMode","itemData","childItemData","index","config","parentTableId","allMapContents","children"]))]),_:1},8,["tabsContents"])):a.createCommentVNode("",!0)])}}}),K2=Ul._export_sfc(W2,[["__scopeId","data-v-ded4e0d9"]]),Y2={class:"type-select"},G2=["onClick"],J2={class:"list-icon"},X2={__name:"modelSelect",setup(l){const r=rt(I.pinia),{itemData:n}=I.storeToRefs(r),t=s=>{const c=I.cloneDeep(n.value);c.push({comp:s.comp,name:s.name,compData:[]}),r.setItemData(c)};return(s,c)=>{const b=a.resolveComponent("svg-icon");return a.openBlock(),a.createElementBlock("div",Y2,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(qc),(h,v)=>(a.openBlock(),a.createElementBlock("div",{class:"type-list",key:v},[a.createElementVNode("div",{class:"list-content",onClick:y=>t(h)},[a.createElementVNode("div",J2,[a.createVNode(b,{name:h.icon},null,8,["name"])]),a.createElementVNode("div",null,a.toDisplayString(h.name),1)],8,G2)]))),128))])}}},Z2=Ul._export_sfc(X2,[["__scopeId","data-v-91799bf8"]]),Q2={class:"fill-content"},eh={class:"operate-content"},ah={class:"collapse-title-content"},lh={class:"collapse-title-item"},rh={key:1},nh=["onClick"],th={class:"icon-content"},oh={key:0,class:"edit-content"},ih=["onClick"],sh={class:"comp-child"},ch={__name:"modelFill",setup(l){const r=rt(I.pinia),{itemData:n,originalData:t}=I.storeToRefs(r),s=a.ref([]);a.ref([]);const c=a.ref([]),b=a.ref([]),h=M=>{var U;let _=(U=I.cloneDeep(b.value))==null?void 0:U.map((B,A)=>(M===A&&(B.content=!0),B));b.value=_},v=M=>{var U;let _=(U=I.cloneDeep(b.value))==null?void 0:U.map((B,A)=>(M===A&&(B.content=!1),B));b.value=_,s.value=I.cloneDeep(n.value)},y=(M,_)=>{var R;let U=(R=I.cloneDeep(b.value))==null?void 0:R.map((C,L)=>(M===L&&(C.content=!1),C));b.value=U;const B=I.cloneDeep(n.value),A=B==null?void 0:B.filter((C,L)=>(L===M&&(C.name=_),C));r.setOriginalData(A),r.setItemData(A)};a.watch(()=>n.value,()=>{var M,_,U;!n.value||((M=n.value)==null?void 0:M.length)===0?s.value=[]:s.value=(_=I.cloneDeep(n.value))==null?void 0:_.filter(B=>(B==null?void 0:B.comp)!=="methodButton"),c.value=s.value,b.value=(U=I.cloneDeep(c.value))==null?void 0:U.map((B,A)=>({id:A,content:!1}))},{deep:!0,immediate:!0});const u=M=>Et(M),x=(M,_,U)=>{var A,R;if(!M)return;let B=I.cloneDeep(n.value);B=(A=B==null?void 0:B.map((C,L)=>(L===U&&(C.compData=M),C)))==null?void 0:A.filter(C=>(C==null?void 0:C.comp)!=="methodButton"),b.value=(R=I.cloneDeep(B))==null?void 0:R.map((C,L)=>({id:L,content:!1})),r.setOriginalData(B),r.setItemData(B)},S=M=>{I.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{const _=I.cloneDeep(n.value),U=_==null?void 0:_.filter((B,A)=>A!==M);r.setOriginalData(U),r.setItemData(U),rl.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})};return(M,_)=>{const U=a.resolveComponent("svg-icon");return a.openBlock(),a.createElementBlock("div",Q2,[_[1]||(_[1]=a.createElementVNode("div",{class:"fill-operate"},a.toDisplayString("操作栏"),-1)),a.createElementVNode("div",eh,[a.createVNode(Hs.default,{class:"collapse-content",collapseContents:s.value},{title:a.withCtx(({item:B,index:A})=>{var R,C,L,T,k,g,j,W,J,ke;return[a.createElementVNode("div",ah,[a.createElementVNode("div",lh,[(C=(R=b.value)==null?void 0:R.find(ze=>ze.id===A))!=null&&C.content?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",{key:0,class:"collapse-title",style:a.normalizeStyle({marginRight:B.name&&B.name!==""?"8px":"0px"})},a.toDisplayString(B.name),5)),(T=(L=b.value)==null?void 0:L.find(ze=>ze.id===A))!=null&&T.content?(a.openBlock(),a.createElementBlock("div",rh,[a.createVNode(fl.ssInput,{modelValue:B.name,"onUpdate:modelValue":ze=>B.name=ze,onClick:_[0]||(_[0]=a.withModifiers(()=>{},["stop"]))},null,8,["modelValue","onUpdate:modelValue"])])):a.createCommentVNode("",!0),(g=(k=b.value)==null?void 0:k.find(ze=>ze.id===A))!=null&&g.content?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",{key:2,onClick:a.withModifiers(ze=>h(A),["stop"]),class:"icon-content"},[a.createVNode(U,{name:"Edit",style:{width:"16px",height:"16px"}})],8,nh))]),a.createElementVNode("div",th,[(W=(j=b.value)==null?void 0:j.find(ze=>ze.id===A))!=null&&W.content?(a.openBlock(),a.createElementBlock("div",oh,[a.createVNode(U,{name:"Cancel",style:{width:"16px",height:"16px"},class:"icon-content",onClick:a.withModifiers(ze=>v(A),["stop"])},null,8,["onClick"]),a.createVNode(U,{name:"Save",onClick:a.withModifiers(ze=>y(A,B.name),["stop"]),style:{width:"16px",height:"16px",fill:"var(--ssComponent-primary-color)"},class:"icon-content"},null,8,["onClick"])])):a.createCommentVNode("",!0),(ke=(J=b.value)==null?void 0:J.find(ze=>ze.id===A))!=null&&ke.content?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",{key:1,onClick:a.withModifiers(ze=>S(A),["stop"]),class:"icon-content"},[a.createVNode(U,{name:"Delete",style:{width:"16px",height:"16px"}})],8,ih))])])]}),content:a.withCtx(({item:B,index:A})=>{var R,C;return[a.createElementVNode("div",sh,[a.createTextVNode(a.toDisplayString(u(B.comp+"Operate"))+" ",1),(a.openBlock(),a.createBlock(a.resolveDynamicComponent(u(B.comp+"Operate")),{itemContents:B==null?void 0:B.compData,originalItemContents:(C=(R=c.value)==null?void 0:R.find((L,T)=>T===A))==null?void 0:C.compData,onChange:L=>x(L,B,A)},null,40,["itemContents","originalItemContents","onChange"]))])]}),_:1},8,["collapseContents"])])])}}},uh=Ul._export_sfc(ch,[["__scopeId","data-v-a46a44b9"]]),dh={key:0,class:"show-content"},ph={style:{display:"flex"}},fh={__name:"modelShow",setup(l){const r=rt(I.pinia),{itemData:n}=I.storeToRefs(r),t=a.ref([]);a.watch(()=>n.value,()=>{var c;!n.value||((c=n.value)==null?void 0:c.length)===0?t.value=[]:t.value=I.cloneDeep(n.value)},{deep:!0,immediate:!0});const s=c=>Et(c);return(c,b)=>{var h;return((h=t.value)==null?void 0:h.length)>0?(a.openBlock(),a.createElementBlock("div",dh,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.value,(v,y)=>(a.openBlock(),a.createElementBlock("div",{class:"item-content",key:y},[a.createElementVNode("div",ph,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)}}},hh=Ul._export_sfc(fh,[["__scopeId","data-v-3f3e863e"]]),vh={class:"tabs-header"},mh={class:"tabs-list"},yh={class:"tab-name"},gh={class:"tab-actions"},bh=["onClick"],kh=["onClick"],xh=["onClick"],_h={class:"model-operate"},wh={class:"model-select",style:{display:"unset"}},Ch={class:"existing-components"},Eh={class:"component-list"},Sh=["onClick"],Dh={class:"component-info"},Bh={class:"component-type"},Nh={class:"component-name"},Th={class:"model-fill"},Ah={__name:"operate",props:{itemContents:{type:Array,default:()=>[]}},emits:["change"],setup(l,{emit:r}){const n=l,t=r,s=a.ref([]),c=a.ref(!1),b=a.ref(""),h=a.ref({title:""}),v=a.ref(-1),y=a.ref(!1),u=a.ref(-1),x=a.ref(new WeakMap),S=a.ref(null),M=rt(I.pinia),{itemData:_}=I.storeToRefs(M),U=()=>{b.value="新增标签页",h.value.title="",v.value=-1,c.value=!0},B=te=>{b.value="修改标签页",h.value.title=s.value[te].title,v.value=te,c.value=!0},A=te=>{const D=L(te);x.value.delete(D),s.value.splice(te,1),Da()},R=()=>{if(h.value.title.trim()){if(v.value===-1){const te={title:h.value.title,value:h.value.title,label:h.value.title,children:[],id:C()};s.value.push(te)}else s.value[v.value].title=h.value.title,s.value[v.value].value=h.value.title,s.value[v.value].label=h.value.title;c.value=!1,Da()}},C=()=>`tab_${Date.now()}_${Math.random().toString(36).substr(2,9)}`,L=te=>{const D=s.value[te];return D.id||(D.id=C()),D.id},T=te=>{var ge;u.value=te;const D=L(te);S.value=I.cloneDeep(_.value);let le=x.value.get(D);!le&&((ge=s.value[te].children)==null?void 0:ge.length)>0&&(le=W(s.value[te].children)),le?M.setItemData(I.cloneDeep(le)):M.setItemData([]),y.value=!0},k=a.computed(()=>{const te=I.useModelComp(I.pinia),D=I.storeToRefs(te).itemData.value;return console.log("可用组件数据",D),!D||!Array.isArray(D)?[]:D.filter(le=>{var ge;if(le.comp==="Tabs"&&u.value>=0){const ue=L(u.value);if((ge=le.compData)==null?void 0:ge.some(ia=>{var ka;return ia.key==="stepList"&&((ka=ia.contents)==null?void 0:ka.some(Ha=>Ha.id===ue))}))return!1}return!0})}),g=te=>({Table:"表格",Form:"表单",Tabs:"标签页",Chart:"图表",Card:"卡片"})[te]||te,j=te=>{var D;try{const le=I.cloneDeep(te);le.id=Date.now()+Math.random(),le.comp==="Tabs"&&((D=le.compData)==null||D.forEach(ue=>{ue.key==="stepList"&&ue.contents&&ue.contents.forEach(Ne=>{Ne.id=C()})}));const ge=I.cloneDeep(_.value);ge.push(le),M.setItemData(ge)}catch(le){console.error("添加组件失败:",le)}},W=te=>te.map(D=>{var le;switch(D.type){case"form":return{comp:"Form",name:D.value||"表单",compData:J(D.content)};case"table":return{comp:"Table",name:D.value||"表格",compData:ke(D.content)};default:return{comp:"Unknown",name:D.value||"",compData:((le=D.content)==null?void 0:le.originalData)||[]}}}),J=te=>{if(!te)return[];const D=[];return te.rowContents&&D.push({key:"formContent",contents:te.rowContents}),te.buttonValue&&D.push({key:"formButton",contents:te.buttonValue}),typeof te.isEnableWrap<"u"&&D.push({key:"enableWrap",contents:te.isEnableWrap}),D},ke=te=>[],ze=()=>{if(u.value>=0&&u.value<s.value.length){const te=L(u.value);x.value.set(te,I.cloneDeep(_.value)),s.value[u.value].children=xe(_.value),console.log("保存后的数据",xe(_.value))}y.value=!1,u.value=-1,S.value=null,Da()},De=()=>{S.value&&M.setItemData(I.cloneDeep(S.value)),y.value=!1,u.value=-1,S.value=null},ne=()=>{y.value&&De()},xe=te=>{if(!Array.isArray(te))throw new Error("sourceData must be an array");return te.map((D,le)=>{if(!D||typeof D!="object")return D;const{comp:ge,name:ue,compData:Ne}=D;switch(ge){case"Form":return{type:"form",content:X(Ne||[]),value:"表单"};case"Table":return{type:"table",content:pe(Ne||[]),value:"表格"};default:return{type:"xxx",content:Ke(Ne||[]),value:""}}})},X=te=>{const D={formRules:{},rowContents:[],buttonValue:[],rowValues:[],isEnableWrap:!0,isRowFlex:!0,isButtonRow:!0,isEdit:!0,isStartJustify:!0},le={formContent:"rowContents",enableWrap:"isEnableWrap",formButton:"buttonValue"};return te.forEach((ge,ue)=>{if(!ge||typeof ge!="object"){console.warn(`Invalid config at index ${ue}:`,ge);return}const{key:Ne,contents:ia}=ge,ka=le[Ne];if(!ka){console.warn(`Unknown Form config key: ${Ne}`);return}Ne==="enableWrap"?D[ka]=!!ia:D[ka]=Array.isArray(ia)?ia:[]}),D},pe=te=>{const D={columns:[],tableData:[],extraButton:[],rowButton:[],currentPage:0,total:0,pageSize:0,isShowPagination:!0,isShowEdit:!0,isMoveColumn:!0,isShowDelete:!0},le={header:"columns",tableContents:"tableData"};return te.forEach((ge,ue)=>{if(!ge||typeof ge!="object"){console.warn(`Invalid config at index ${ue}:`,ge);return}const{key:Ne,contents:ia}=ge,ka=le[Ne];if(!ka){console.warn(`Unknown Table config key: ${Ne}`);return}D[ka]=Array.isArray(ia)?ia:[]}),D},Ke=te=>(console.log("Default conversion logic - to be implemented"),{originalData:te,processed:!1,componentType:"unknown"}),Da=()=>{const te=[{key:"stepList",contents:s.value}];t("change",te)};return a.watch(()=>n.itemContents,te=>{if(te&&te.length>0){const D=te.find(le=>le.key==="stepList");D&&D.contents&&(s.value=D.contents.map(le=>({title:le.title||"",value:le.value||le.title||"",label:le.label||le.title||"",children:le.children||[],id:le.id||C()})))}},{immediate:!0,deep:!0}),(te,D)=>{const le=a.resolveComponent("svg-icon"),ge=a.resolveComponent("el-input"),ue=a.resolveComponent("el-form-item"),Ne=a.resolveComponent("el-form");return a.openBlock(),a.createElementBlock("div",null,[a.createElementVNode("div",vh,[D[6]||(D[6]=a.createElementVNode("h4",null,"标签页管理",-1)),a.createElementVNode("button",{onClick:U},[a.createVNode(le,{name:"Plus",style:{width:"14px",height:"14px","margin-right":"4px"}}),D[5]||(D[5]=a.createTextVNode(" 新增标签页 "))])]),a.createElementVNode("div",mh,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(s.value,(ia,ka)=>(a.openBlock(),a.createElementBlock("div",{class:"tab-item",key:ka},[a.createElementVNode("span",yh,a.toDisplayString(ia.title),1),a.createElementVNode("div",gh,[a.createElementVNode("button",{onClick:Ha=>B(ka)},"修改标题",8,bh),a.createElementVNode("button",{onClick:Ha=>T(ka)},"布局调整",8,kh),a.createElementVNode("button",{onClick:Ha=>A(ka)},"删除",8,xh)])]))),128))]),a.createVNode(vr.ssDialog,{modelValue:c.value,"onUpdate:modelValue":D[2]||(D[2]=ia=>c.value=ia),title:b.value,onBeforeDestroy:D[3]||(D[3]=ia=>c.value=!1)},{footer:a.withCtx(()=>[a.createElementVNode("button",{onClick:D[1]||(D[1]=ia=>c.value=!1)},"取消"),a.createElementVNode("button",{type:"primary",onClick:R},"确定")]),default:a.withCtx(()=>[a.createVNode(Ne,{model:h.value,"label-width":"80px"},{default:a.withCtx(()=>[a.createVNode(ue,{label:"标签名称",required:""},{default:a.withCtx(()=>[a.createVNode(ge,{modelValue:h.value.title,"onUpdate:modelValue":D[0]||(D[0]=ia=>h.value.title=ia),placeholder:"请输入标签页名称"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue","title"]),a.createVNode(vr.ssDialog,{modelValue:y.value,"onUpdate:modelValue":D[4]||(D[4]=ia=>y.value=ia),title:"布局调整",fullScreen:"",onBeforeDestroy:ne},{footer:a.withCtx(()=>[a.createElementVNode("button",{onClick:De},"取消"),a.createElementVNode("button",{onClick:ze},"确定")]),default:a.withCtx(()=>[a.createElementVNode("div",_h,[a.createElementVNode("div",wh,[a.createVNode(Z2),a.createElementVNode("div",Ch,[D[8]||(D[8]=a.createElementVNode("h5",null,"添加已有组件",-1)),a.createElementVNode("div",Eh,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(k.value,ia=>(a.openBlock(),a.createElementBlock("div",{key:ia.id,class:"component-item",onClick:ka=>j(ia)},[a.createElementVNode("div",Dh,[a.createElementVNode("span",Bh,a.toDisplayString(g(ia.comp)),1),a.createElementVNode("span",Nh,a.toDisplayString(ia.name),1)]),D[7]||(D[7]=a.createElementVNode("button",{class:"add-btn"},"添加",-1))],8,Sh))),128))])])]),(a.openBlock(),a.createElementBlock("div",{class:"model-show",key:te.innerWidth},[a.createVNode(hh)])),a.createElementVNode("div",Th,[a.createVNode(uh)])])]),_:1},8,["modelValue"])])}}},zh=Ul._export_sfc(Ah,[["__scopeId","data-v-9096ed0d"]]);function Mh(){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 Oh(l){return{type:"line",...l}}function Ih(){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 Lh(l){return{type:"bar",barWidth:"60%",...l}}function Vh(){return{title:{text:"",left:"center"},tooltip:{trigger:"item"},series:[]}}function $h(l){return{type:"pie",radius:"50%",emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}},...l}}const On={line:{initBaseoptions:Mh,initSeries:Oh},bar:{initBaseoptions:Ih,initSeries:Lh},pie:{initBaseoptions:Vh,initSeries:$h}},vs=I.useMenuState(I.pinia),Cc=(l,r)=>{var u;const n=[],t=[],{group:s,nameCol:c,valueCol:b}=r||{},h=l==null?void 0:l.find(x=>{const{name:S}=x;return S===s});if(!h)return{names:n,values:t};const v=(u=h==null?void 0:h.compData)==null?void 0:u.find(x=>{const{key:S}=x;return S==="tableContents"});return((v==null?void 0:v.contents)||[]).forEach(x=>{const S=x==null?void 0:x[0];let M=!1;rl.isObject(S)&&(S!=null&&S.id)&&(M=!0);let _=c,U=b;M&&(_=_+1,U=U+1);const B=x==null?void 0:x[_],A=x==null?void 0:x[U];n.push(B),t.push(A)}),{names:n,values:t}},Rh=async l=>{const{menu:r,mainKey:n,detailGroup:t,detailNameCol:s,detailValueCol:c,isSelfDetail:b}=l||{};let h=null;const v=sessionStorage.getItem("systemKey");if(b&&vs.activeMenuPath&&(h=await na.getItemData(`${vs.activeMenuPath}`,v,"")),!b){const y=r==null?void 0:r.join("/");h=await na.getItemData(`${y}^${n}`,v,"")}return Cc(h,{group:t,nameCol:s,valueCol:c})},Ph=async l=>{const{menu:r,group:n,nameCol:t,valueCol:s}=l||{},c=r==null?void 0:r.join("/"),b=sessionStorage.getItem("systemKey"),h=await na.getItemData(c,b,"");return Cc(h,{group:n,nameCol:t,valueCol:s})},wi=async(l,r)=>{const n={names:[],values:[]},{menu:t,group:s,nameCol:c,valueCol:b}=l||{};if(!t.length||!s)return n;const{mainKey:h,group:v,nameCol:y,valueCol:u,isSelfDetail:x}=r||{};return h&&v&&fl.isNumber(y)&&fl.isNumber(u)?await Rh({menu:t,mainKey:h,detailGroup:v,detailNameCol:y,detailValueCol:u,isSelfDetail:x}):fl.isNumber(c)&&fl.isNumber(b)?await Ph({menu:t,group:s,nameCol:c,valueCol:b}):n},Fh=async({chartBaseConfig:l,chartDataConfig:r,chartDetailConfig:n})=>{const{type:t,title:s}=l||{},c=On==null?void 0:On[t];if(!c)return;const{initBaseoptions:b,initSeries:h}=c,v=b();v.title.text=s??"";const{names:y,values:u}=await wi(r,n);if(!y||!u)return v;v.xAxis.data=y;const x=h({data:u});return v.series.push(x),v},jh=async({chartBaseConfig:l,chartDataConfig:r,chartDetailConfig:n})=>{const{type:t,title:s}=l||{},c=On==null?void 0:On[t];if(!c)return;const{initBaseoptions:b,initSeries:h}=c,v=b();v.title.text=s??"";const{names:y,values:u}=await wi(r,n);if(!y||!u)return v;v.xAxis.data=y;const x=h({data:u});return v.series.push(x),v},Hh=async({chartBaseConfig:l,chartDataConfig:r,chartDetailConfig:n})=>{const{type:t,title:s}=l||{},c=On==null?void 0:On[t];if(!c)return;const{initBaseoptions:b,initSeries:h}=c,v=b();v.title.text=s??"";const{names:y,values:u}=await wi(r,n);if(!y||!u)return v;const x=[];for(let M=0;M<y.length;M++){const _=y[M],U=u[M];x.push({name:_,value:U})}const S=h({data:x});return v.series.push(S),v},Uh=async(l=[])=>{var b,h,v;const r=((b=l==null?void 0:l.find(y=>y.key==="chartBaseConfig"))==null?void 0:b.contents)??{},n=((h=l==null?void 0:l.find(y=>y.key==="chartDataConfig"))==null?void 0:h.contents)??{},t=((v=l==null?void 0:l.find(y=>y.key==="chartDetailConfig"))==null?void 0:v.contents)??{},{type:s}=r;let c={};return s==="line"&&(c=await Fh({chartBaseConfig:r,chartDataConfig:n,chartDetailConfig:t})),s==="bar"&&(c=await jh({chartBaseConfig:r,chartDataConfig:n,chartDetailConfig:t})),s==="pie"&&(c=await Hh({chartBaseConfig:r,chartDataConfig:n,chartDetailConfig:t})),c},qh=a.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},userInfo:{type:Object,default:{}},height:{type:String,default:"300px"}},setup(l){const r=l,n=a.ref({});a.onMounted(async()=>{const s=r==null?void 0:r.itemData;n.value=await Uh(s)});const t=a.computed(()=>(r==null?void 0:r.height)||"300px");return(s,c)=>(a.openBlock(),a.createElementBlock("div",{class:"eCharts",style:a.normalizeStyle({height:t.value})},[a.createVNode(gu.ssChart,{optionContents:n.value},null,8,["optionContents"])],4))}}),Wh=Ul._export_sfc(qh,[["__scopeId","data-v-d4c081e8"]]),Kh={class:"chart-module layout"},Yh={class:"chart-module content"},Gh={class:"chart-module content"},Jh={class:"form-content"},Xh={class:"dialog-footer"},Zh={class:"form-content"},Qh={class:"dialog-footer"},e4={class:"form-content"},a4={class:"dialog-footer"},l4=a.defineComponent({__name:"operate",props:{itemContents:{type:Array,default:()=>[]},originalItemContents:{type:Array,default:()=>[]}},emits:["change"],setup(l,{emit:r}){const n=l,t=r,s=a.reactive({visible:!1,width:"840",title:"基础配置"}),c=a.ref([]),b=()=>[{label:"类型",prop:"type",type:"select",contents:[{label:"柱状图",value:"bar"},{label:"饼图",value:"pie"},{label:"折线图",value:"line"}],value:""},{label:"标题",prop:"title",type:"input",value:""}],h=a.ref({}),v=()=>{var He;c.value=b(),(He=c.value)==null||He.forEach(Ae=>{var Ge;const $e=Ae==null?void 0:Ae.prop;Ae.value=(Ge=h==null?void 0:h.value)==null?void 0:Ge[$e]}),s.visible=!0},y=He=>{h.value=He},u=()=>{var He;s.visible=!1,t("change",(He=Pe())==null?void 0:He.compData)},x=a.reactive({visible:!1,width:"840",title:"数据配置"}),S=a.ref([]),M=()=>[{label:"菜单选项",prop:"menu",type:"cascader",contents:[]},{label:"组信息选项",prop:"group",type:"select",contents:[]},{label:"名称列",prop:"nameCol",type:"select",contents:[]},{label:"取值列",prop:"valueCol",type:"select",contents:[]}],_=a.ref({}),U=()=>{const He=S.value,Ae=I.cloneDeep(He);return Ae==null||Ae.forEach($e=>{var Wa;const Ge=$e==null?void 0:$e.prop;$e.value=(Wa=_.value)==null?void 0:Wa[Ge]}),Ae},B=He=>{var $e;_.value=He;const Ae=U();S.value=Ae,t("change",($e=Pe())==null?void 0:$e.compData)},A=async()=>{const He=await na.getMenusContent(),Ae=U();Ae==null||Ae.forEach($e=>{($e==null?void 0:$e.prop)==="menu"&&($e.contents=He)}),S.value=Ae,x.visible=!0,await ia(_.value.menu),await ee(_.value.group)},R=a.reactive({visible:!1,width:"840",title:"详情页配置"}),C=a.ref([]),L=()=>[{label:"详情页主键",prop:"mainKey",type:"select",contents:[]},{label:"使用当前详情页内容",prop:"isSelfDetail",type:"switch"},{label:"组信息选项",prop:"group",type:"select",contents:[]},{label:"名称列",prop:"nameCol",type:"select",contents:[]},{label:"取值列",prop:"valueCol",type:"select",contents:[]}],T=a.ref({}),k=()=>{const He=C.value,Ae=I.cloneDeep(He);return Ae==null||Ae.forEach($e=>{var Wa;const Ge=$e==null?void 0:$e.prop;$e.value=(Wa=T.value)==null?void 0:Wa[Ge]}),Ae},g=He=>{var $e;T.value=He;const Ae=k();C.value=Ae,t("change",($e=Pe())==null?void 0:$e.compData)},j=async()=>{await ne();const He=I.cloneDeep(W.value),Ae=k();Ae==null||Ae.forEach($e=>{var Wa;const Ge=$e==null?void 0:$e.prop;$e.value=(Wa=T==null?void 0:T.value)==null?void 0:Wa[Ge],Ge==="mainKey"&&($e.contents=He)}),C.value=Ae,R.visible=!0},W=a.ref([]),J=a.ref([]),ke=a.ref({}),ze=a.ref({}),De=()=>{const{compData:He}=ge.value||{},Ae=He==null?void 0:He.find(G=>{const{key:ie}=G;return ie==="header"}),$e=(Ae==null?void 0:Ae.contents)||[],Ge=$e==null?void 0:$e.filter((G,ie)=>{const{label:ce}=G;return ce!=="操作"}),Wa=Ge==null?void 0:Ge.findIndex((G,ie)=>{const{isMainKey:ce}=G;return ce});if(Wa<0)return[];const Ia=He==null?void 0:He.find(G=>{const{key:ie}=G;return ie==="tableContents"}),P=(Ia==null?void 0:Ia.contents)||[];return P==null?void 0:P.map(G=>{const ie=G==null?void 0:G[0];let ce=Wa;rl.isObject(ie)&&(ie!=null&&ie.id)&&(ce=ce+1);const pa=G==null?void 0:G[ce];return{label:pa,value:pa}})},ne=async()=>{const He=await De();W.value=He},xe=async He=>{const Ae=sessionStorage.getItem("systemKey");return await na.getItemData(He,Ae,"")},X=async He=>{const Ae=He;J.value=Ae==null?void 0:Ae.map($e=>{const{name:Ge}=$e;return ke.value[Ge]=$e,{label:Ge,value:Ge}})},pe=He=>{const{comp:Ae,compData:$e}=ze.value||{};if(Ae==="Table"){let Ge=k();Ge=Ge.filter(Wa=>{const{prop:Ia}=Wa;return Ia!=="formItems"}),ka(Ge,$e),C.value=Ge}},Ke=async()=>{var $e,Ge;const He=($e=T==null?void 0:T.value)==null?void 0:$e.mainKey,Ae=(Ge=_==null?void 0:_.value)==null?void 0:Ge.menu;if(He){const Ia=`${Ae==null?void 0:Ae.join("/")}^${He}`,P=await xe(Ia);await X(P);const F=k();F==null||F.forEach(G=>{(G==null?void 0:G.prop)==="group"&&(G.contents=J.value)}),C.value=F}};a.watch(()=>{var He;return(He=T==null?void 0:T.value)==null?void 0:He.mainKey},async(He,Ae)=>{He!=Ae&&He&&await Ke()});const Da=async He=>{const Ae=ke.value[He];ze.value=Ae,await pe()};a.watch(()=>{var He;return(He=T==null?void 0:T.value)==null?void 0:He.group},async(He,Ae)=>{He!=Ae&&He&&Da(He)});const te=async()=>{var Ae;await Ke();const He=(Ae=T.value)==null?void 0:Ae.group;await Da(He)},D=a.ref([]),le=a.ref({}),ge=a.ref({}),ue=async He=>{const Ae=He==null?void 0:He.join("/"),$e=sessionStorage.getItem("systemKey");return await na.getItemData(Ae,$e,"")},Ne=async He=>{const Ae=await ue(He);D.value=Ae==null?void 0:Ae.map($e=>{const{name:Ge}=$e;return le.value[Ge]=$e,{label:Ge,value:Ge}})},ia=async(He,Ae)=>{await Ne(He);const $e=U();$e==null||$e.forEach(Ge=>{(Ge==null?void 0:Ge.prop)==="group"&&(Ge.contents=D.value)}),S.value=$e};a.watch(()=>{var He;return(He=_==null?void 0:_.value)==null?void 0:He.menu},async(He,Ae)=>{const $e=He==null?void 0:He.join("/"),Ge=Ae==null?void 0:Ae.join("/");$e!=Ge&&await ia(He)});const ka=(He,Ae)=>{const $e=Ae==null?void 0:Ae.find(P=>{const{key:F}=P;return F==="header"}),Ge=($e==null?void 0:$e.contents)||[],Wa=Ge==null?void 0:Ge.filter((P,F)=>{const{label:G}=P;return G!=="操作"}),Ia=Wa==null?void 0:Wa.map((P,F)=>{const{label:G}=P;return{label:G,value:F}});He==null||He.forEach(P=>{const F=P==null?void 0:P.prop;(F==="nameCol"||F==="valueCol")&&(P.contents=Ia)})},Ha=He=>{const{comp:Ae,compData:$e}=ge.value||{};if(Ae==="Table"){_.value.formItems=[];let Ge=U();Ge=Ge.filter(Wa=>{const{prop:Ia}=Wa;return Ia!=="formItems"}),ka(Ge,$e),S.value=Ge}},ee=async He=>{const Ae=le.value[He];ge.value=Ae,await Ha()};a.watch(()=>{var He;return(He=_==null?void 0:_.value)==null?void 0:He.group},async(He,Ae)=>{He!=Ae&&ee(He)});const Qe=async()=>{var $e,Ge;const He=($e=_.value)==null?void 0:$e.menu;await ia(He);const Ae=(Ge=_.value)==null?void 0:Ge.group;await ee(Ae)},Pe=()=>({comp:"chart",compData:[{key:"chartBaseConfig",contents:h.value},{key:"chartDataConfig",contents:_.value},{key:"chartDetailConfig",contents:T.value}]}),ga=()=>{s.visible=!1,x.visible=!1,R.visible=!1};return a.onMounted(async()=>{var Ae,$e,Ge;S.value=M(),C.value=L();const He=n==null?void 0:n.itemContents;h.value=((Ae=He==null?void 0:He.find(Wa=>Wa.key==="chartBaseConfig"))==null?void 0:Ae.contents)??{},_.value=(($e=He==null?void 0:He.find(Wa=>Wa.key==="chartDataConfig"))==null?void 0:$e.contents)??{},await Qe(),T.value=((Ge=He==null?void 0:He.find(Wa=>Wa.key==="chartDetailConfig"))==null?void 0:Ge.contents)??{},await te()}),(He,Ae)=>{const $e=a.resolveComponent("el-button");return a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",null,[a.createElementVNode("div",Kh,[Ae[4]||(Ae[4]=a.createElementVNode("div",{class:"module-title"},"基础配置",-1)),a.createVNode($e,{id:"themeButton",onClick:Ae[0]||(Ae[0]=Ge=>v())},{default:a.withCtx(()=>Ae[3]||(Ae[3]=[a.createTextVNode(" 修改 ")])),_:1,__:[3]})]),a.createElementVNode("div",Yh,[Ae[6]||(Ae[6]=a.createElementVNode("h4",{class:"module-title"},"数据配置",-1)),a.createVNode($e,{id:"themeButton",onClick:Ae[1]||(Ae[1]=Ge=>A())},{default:a.withCtx(()=>Ae[5]||(Ae[5]=[a.createTextVNode(" 修改 ")])),_:1,__:[5]})]),a.createElementVNode("div",Gh,[Ae[8]||(Ae[8]=a.createElementVNode("h4",{class:"module-title"},"详情数据配置",-1)),a.createVNode($e,{id:"themeButton",onClick:Ae[2]||(Ae[2]=Ge=>j())},{default:a.withCtx(()=>Ae[7]||(Ae[7]=[a.createTextVNode(" 修改 ")])),_:1,__:[7]})])]),a.createVNode(vr.ssDialog,{visible:s.visible,title:s.title,onBeforeDestroy:ga,width:s.width},{default:a.withCtx(()=>[a.createElementVNode("div",Jh,[(a.openBlock(),a.createBlock(fl.ssForm,{rowContents:c.value,key:c.value,isEnableWrap:!0,onChange:y},null,8,["rowContents"]))])]),footer:a.withCtx(()=>[a.createElementVNode("div",Xh,[a.createVNode($e,{class:"cancel-button button",onClick:ga,id:"themeBorderButton"},{default:a.withCtx(()=>Ae[9]||(Ae[9]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[9]}),a.createVNode($e,{class:"ok-button button",onClick:u,id:"themeButton"},{default:a.withCtx(()=>Ae[10]||(Ae[10]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[10]})])]),_:1},8,["visible","title","width"]),a.createVNode(vr.ssDialog,{visible:x.visible,title:x.title,onBeforeDestroy:ga,width:x.width},{default:a.withCtx(()=>[a.createElementVNode("div",Zh,[(a.openBlock(),a.createBlock(fl.ssForm,{rowContents:S.value,key:S.value,isEnableWrap:!0,onChange:B},null,8,["rowContents"]))])]),footer:a.withCtx(()=>[a.createElementVNode("div",Qh,[a.createVNode($e,{class:"cancel-button button",onClick:ga,id:"themeBorderButton"},{default:a.withCtx(()=>Ae[11]||(Ae[11]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[11]}),a.createVNode($e,{class:"ok-button button",onClick:ga,id:"themeButton"},{default:a.withCtx(()=>Ae[12]||(Ae[12]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[12]})])]),_:1},8,["visible","title","width"]),a.createVNode(vr.ssDialog,{visible:R.visible,title:R.title,onBeforeDestroy:ga,width:R.width},{default:a.withCtx(()=>[a.createElementVNode("div",e4,[(a.openBlock(),a.createBlock(fl.ssForm,{rowContents:C.value,key:C.value,isEnableWrap:!0,onChange:g},null,8,["rowContents"]))])]),footer:a.withCtx(()=>[a.createElementVNode("div",a4,[a.createVNode($e,{class:"cancel-button button",onClick:ga,id:"themeBorderButton"},{default:a.withCtx(()=>Ae[13]||(Ae[13]=[a.createTextVNode(a.toDisplayString("取消"))])),_:1,__:[13]}),a.createVNode($e,{class:"ok-button button",onClick:ga,id:"themeButton"},{default:a.withCtx(()=>Ae[14]||(Ae[14]=[a.createTextVNode(a.toDisplayString("确认"))])),_:1,__:[14]})])]),_:1},8,["visible","title","width"])],64)}}}),r4=Ul._export_sfc(l4,[["__scopeId","data-v-fe119645"]]),n4={class:"layout"},t4=a.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},userInfo:{type:Object,default:{}}},emits:["rowClick"],setup(l,{emit:r}){const n=r,t=l;a.onMounted(async()=>{});const s=a.computed(()=>I.cloneDeep(t==null?void 0:t.itemData)||[]),c=a.computed(()=>{var u;const y=(u=s==null?void 0:s.value)==null?void 0:u.find(x=>{const{key:S}=x;return S==="baseConfig"});return y==null?void 0:y.contents}),b=a.computed(()=>{var u;const y=(u=s==null?void 0:s.value)==null?void 0:u.find(x=>{const{key:S}=x;return S==="children"});return y==null?void 0:y.contents}),h=a.computed(()=>{let y=I.cloneDeep(b.value)||[];const u=y.length;let x=0;const S=[];if(y=y.map(M=>{const _=M.span;return _?(M.span=Number(_),x=x+M.span):S.push(M),M}),x<24){const M=Math.floor((24-x)/u);S.forEach(_=>{_.span=M})}return y}),v=y=>{n("rowClick",y)};return(y,u)=>{var M;const x=a.resolveComponent("el-col"),S=a.resolveComponent("el-row");return a.openBlock(),a.createElementBlock("div",n4,[a.createVNode(S,{style:a.normalizeStyle({height:(M=c.value)==null?void 0:M.height})},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(h.value,(_,U)=>(a.openBlock(),a.createBlock(x,{span:_==null?void 0:_.span},{default:a.withCtx(()=>{var B;return[a.unref(Ct)?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(a.unref(Rt)(_.comp)),{key:a.unref(qn),compName:_.name,index:(_==null?void 0:_.id)??U,height:(B=c.value)==null?void 0:B.height,itemData:_==null?void 0:_.compData,childItemData:_==null?void 0:_.itemChildData,onChange:a.unref(Co),onContentChange:a.unref(Eo),onPageChange:a.unref(So),onRowClick:v},null,40,["compName","index","height","itemData","childItemData","onChange","onContentChange","onPageChange"])):a.createCommentVNode("",!0)]}),_:2},1032,["span"]))),256))]),_:1},8,["style"])])}}}),o4=Ul._export_sfc(t4,[["__scopeId","data-v-ab9a36ed"]]),i4={class:"layout-operate"},s4={class:"layout-module"},c4={class:"collapse-title-item"},u4={class:"collapse-title"},d4={class:"icon-content"},p4=["onClick"],f4={class:"comp-child"},h4=a.defineComponent({__name:"operate",props:{itemContents:{type:Object,default:()=>{}},originalItemContents:{type:Array,default:()=>[]},itemChildData:{type:Array,default:()=>[]}},emits:["change"],setup(l,{emit:r}){const n=l,t=r;a.onMounted(()=>{U()});const s=a.ref({}),c=a.ref({}),b=a.ref([]),h=T=>[{label:"高度",prop:"height",type:"input",value:T==null?void 0:T.height}],v=T=>{c.value=T,t("change",L(),!0)},y=a.ref([]),u=a.ref([]),x=T=>[{label:"占比",prop:"span",type:"input",value:T==null?void 0:T.span}],S=a.computed(()=>{const T=n==null?void 0:n.itemContents;return I.cloneDeep(T)}),M=a.computed(()=>{const T=S==null?void 0:S.value,k=T==null?void 0:T.find(g=>{const{key:j}=g;return j==="baseConfig"});return k==null?void 0:k.contents}),_=a.computed(()=>{const T=S==null?void 0:S.value,k=T==null?void 0:T.find(g=>{const{key:j}=g;return j==="children"});return k==null?void 0:k.contents}),U=()=>{var T;s.value=S.value||{},y.value=(_==null?void 0:_.value)||[],b.value=h(),b.value=(T=b.value)==null?void 0:T.map(k=>{var j;const{prop:g}=k;return k.value=(j=M.value)==null?void 0:j[g],k})};a.watch(()=>{var T;return(T=_==null?void 0:_.value)==null?void 0:T.length},()=>{var T;y.value=(_==null?void 0:_.value)||[],u.value=(T=_.value)==null?void 0:T.map(k=>x(k))},{immediate:!0});const B=(T,k)=>{const g=I.cloneDeep(_==null?void 0:_.value);g[k].span=T.span,y.value=g,t("change",L(),!0)},A=T=>Et(T),R=(T,k,g)=>{if(!T)return;const j=I.cloneDeep(_==null?void 0:_.value);j[g]&&(j[g].compData=T,y.value=j,t("change",L(),!0))},C=T=>{I.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{let k=I.cloneDeep(_==null?void 0:_.value);k=k==null?void 0:k.filter((g,j)=>T!==j),y.value=k,t("change",L(),!0),rl.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})},L=()=>({compData:[{key:"baseConfig",contents:c.value},{key:"children",contents:y==null?void 0:y.value}]});return(T,k)=>{const g=a.resolveComponent("svg-icon");return a.openBlock(),a.createElementBlock("div",i4,[a.createElementVNode("div",s4,[k[1]||(k[1]=a.createElementVNode("div",{class:"module-title"},"基础配置",-1)),a.createElementVNode("div",null,[a.createVNode(fl.ssForm,{rowContents:b.value,isEnableWrap:!0,onChange:k[0]||(k[0]=j=>v(j))},null,8,["rowContents"])])]),a.createVNode(Hs.default,{class:"collapse-content",collapseContents:_.value},{title:a.withCtx(({item:j,index:W})=>[a.createElementVNode("div",c4,[a.createElementVNode("div",u4,a.toDisplayString(j.name),1),a.createElementVNode("div",d4,[a.createElementVNode("div",{onClick:a.withModifiers(J=>C(W),["stop"]),class:"icon-content"},[a.createVNode(g,{name:"Delete",style:{width:"16px",height:"16px"}})],8,p4)])])]),content:a.withCtx(({item:j,index:W})=>[a.createElementVNode("div",f4,[a.createElementVNode("div",null,[(a.openBlock(),a.createBlock(fl.ssForm,{rowContents:u.value[W],key:W,isEnableWrap:!0,onChange:J=>B(J,W)},null,8,["rowContents","onChange"]))]),(a.openBlock(),a.createBlock(a.resolveDynamicComponent(A(j.comp+"Operate")),{itemContents:j==null?void 0:j.compData,originalItemContents:j.compData,onChange:J=>R(J,j,W)},null,40,["itemContents","originalItemContents","onChange"]))])]),_:1},8,["collapseContents"])])}}}),v4=Ul._export_sfc(h4,[["__scopeId","data-v-ba05456e"]]),m4=typeof window<"u";var ms;m4&&((ms=window==null?void 0:window.navigator)!=null&&ms.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function rn(l){return l==null}function Ec(){}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)));function g4(){const l=new Map;return{on(r,n){const t=l.get(r);t!=null&&t.add(n)||l.set(r,new Set([n]))},off(r,n){const t=l.get(r);t&&t.delete(n)},clear(r){const n=l.get(r);n&&n.clear()},clearAll(){l.clear()},emit(r,...n){const t=l.get(r);t&&t.forEach(s=>{s(...n)})}}}function ys(l,r=16){if(typeof l!="function")return Ec;const n=(...c)=>{l(...c)};if(r<=0)return Sc(n);let t=0,s;return function(...c){const b=Date.now(),h=b-t;clearTimeout(s),h>=r?(t=b,n(...c)):s=setTimeout(()=>{t=Date.now(),n(...c)},Math.max(0,r-h))}}function b4(l,r=100){if(typeof l!="function")return Ec;const n=(...s)=>{l(...s)};if(r<=0)return Sc(n);let t;return function(...s){clearTimeout(t),t=setTimeout(()=>{n(...s)},r)}}function Sc(l){if(typeof l!="function")return l;let r=!1,n,t;return function(...s){return n=s,r||(r=!0,t=Promise.resolve().then(()=>(r=!1,t=void 0,l(...n)))),t}}const It=new Set,Dc=new WeakMap;function k4(){It.forEach(l=>{l(...Dc.get(l))}),It.clear()}function jr(l,...r){if(typeof l!="function")return l;Dc.set(l,r),!It.has(l)&&(It.add(l),It.size===1&&Promise.resolve().then(k4))}const Bc=Symbol("LAYOUT_KEY"),Nc=Symbol("EMITTER_KEY");function x4(l){let r=0,n;for(let t=0,s=l.length;t<s;t++)n=l[t].y+l[t].h,n>r&&(r=n);return r}function yi(l){const r=Array(l.length);for(let n=0,t=l.length;n<t;n++)r[n]=_4(l[n]);return r}function _4(l){return{...l}}function Tc(l,r){return!(l===r||l.x+l.w<=r.x||l.x>=r.x+r.w||l.y+l.h<=r.y||l.y>=r.y+r.h)}function gt(l,r,n){const t=zc(l),s=Mc(l),c=Array(l.length);for(let b=0,h=s.length;b<h;b++){let v=s[b];v.static||(v=w4(t,v,r,n),t.push(v)),c[l.findIndex(y=>y.i===v.i)]=v,v.moved=!1}return c}function w4(l,r,n,t){if(n)for(;r.y>0&&!Lt(l,r);)r.y--;else if(t){const c=t[r.i].y;for(;r.y>c&&!Lt(l,r);)r.y--}let s;for(;s=Lt(l,r);)r.y=s.y+s.h;return r}function C4(l,r){const n=zc(l);for(let t=0,s=l.length;t<s;t++){const c=l[t];if(c.x+c.w>r.cols&&(c.x=r.cols-c.w),c.x<0&&(c.x=0,c.w=r.cols),!c.static)n.push(c);else for(;Lt(n,c);)c.y++}return l}function gs(l,r){for(let n=0,t=l.length;n<t;n++)if(l[n].i===r)return l[n]}function Lt(l,r){for(let n=0,t=l.length;n<t;n++)if(Tc(l[n],r))return l[n]}function Ac(l,r){return l.filter(n=>Tc(n,r))}function zc(l){return l.filter(r=>r.static)}function gi(l,r,n,t,s=!1,c=!1){if(r.static)return l;const b=r.x,h=r.y,v=t&&r.y>t;typeof n=="number"&&(r.x=n),typeof t=="number"&&(r.y=t),r.moved=!0;let y=Mc(l);v&&(y=y.reverse());const u=Ac(y,r);if(c&&u.length)return r.x=b,r.y=h,r.moved=!1,l;for(let x=0,S=u.length;x<S;x++){const M=u[x];M.moved||r.y>M.y&&r.y-M.y>M.h/4||(M.static?l=bs(l,M,r,s):l=bs(l,r,M,s))}return l}function bs(l,r,n,t){if(t){const s={x:n.x,y:n.y,w:n.w,h:n.h};if(s.y=Math.max(r.y-n.h,0),!Lt(l,s))return gi(l,n,void 0,s.y,!1)}return gi(l,n,void 0,n.y+1,!1)}function E4(l,r,n,t){const s="translate3d("+r+"px,"+l+"px, 0)";return{transform:s,WebkitTransform:s,MozTransform:s,msTransform:s,OTransform:s,width:n+"px",height:t+"px",position:"absolute"}}function S4(l,r,n,t){const s="translate3d("+r*-1+"px,"+l+"px, 0)";return{transform:s,WebkitTransform:s,MozTransform:s,msTransform:s,OTransform:s,width:n+"px",height:t+"px",position:"absolute"}}function D4(l,r,n,t){return{top:l+"px",left:r+"px",width:n+"px",height:t+"px",position:"absolute"}}function B4(l,r,n,t){return{top:l+"px",right:r+"px",width:n+"px",height:t+"px",position:"absolute"}}function Mc(l){return Array.from(l).sort(function(r,n){return r.y===n.y&&r.x===n.x?0:r.y>n.y||r.y===n.y&&r.x>n.x?1:-1})}function N4(l,r){r=r||"Layout";const n=["x","y","w","h"],t=[];if(!Array.isArray(l))throw new Error(r+" must be an array!");for(let s=0,c=l.length;s<c;s++){const b=l[s];for(let h=0;h<n.length;h++)if(typeof b[n[h]]!="number")throw new Error("VueGridLayout: "+r+"["+s+"]."+n[h]+" must be a number!");if(b.i===void 0||b.i===null)throw new Error("VueGridLayout: "+r+"["+s+"].i cannot be null!");if(typeof b.i!="number"&&typeof b.i!="string")throw new Error("VueGridLayout: "+r+"["+s+"].i must be a string or number!");if(t.indexOf(b.i)>=0)throw new Error("VueGridLayout: "+r+"["+s+"].i must be unique!");if(t.push(b.i),b.static!==void 0&&typeof b.static!="boolean")throw new Error("VueGridLayout: "+r+"["+s+"].static must be a boolean!")}}function T4(l,r="vgl"){const n=()=>`${r}-${l}`;return{b:n,be:t=>`${n()}__${t}`,bm:t=>`${n()}--${t}`,bem:(t,s)=>`${n()}__${t}--${s}`}}function ks(l){return A4(l)}function A4(l){var r;const n=((r=l.target)==null?void 0:r.offsetParent)||document.body,t=l.offsetParent===document.body?{left:0,top:0}:n.getBoundingClientRect(),s=l.clientX+n.scrollLeft-t.left,c=l.clientY+n.scrollTop-t.top;return{x:s,y:c}}function xs(l,r,n,t){return z4(l)?{deltaX:n-l,deltaY:t-r,lastX:l,lastY:r,x:n,y:t}:{deltaX:0,deltaY:0,lastX:n,lastY:t,x:n,y:t}}function z4(l){return typeof l=="number"&&!Number.isNaN(l)}function M4(l,r){const n=Ic(l);let t=n[0];for(let s=1,c=n.length;s<c;s++){const b=n[s];r>l[b]&&(t=b)}return t}function Oc(l,r){if(!r[l])throw new Error("ResponsiveGridLayout: `cols` entry for breakpoint "+l+" is missing!");return r[l]}function O4(l,r,n,t,s,c,b){if(r[t])return yi(r[t]);let h=l;const v=Ic(n),y=v.slice(v.indexOf(t));for(let u=0,x=y.length;u<x;u++){const S=y[u];if(r[S]){h=r[S];break}}return h=yi(h||[]),gt(C4(h,{cols:c}),b)}function Ic(l){return Object.keys(l).sort((r,n)=>l[r]-l[n])}let I4="auto";function L4(){return typeof document<"u"}function _s(){return L4()?typeof document.dir<"u"?document.dir:document.getElementsByTagName("html")[0].getAttribute("dir"):I4}var Ot={exports:{}},V4=Ot.exports,ws;function $4(){return ws||(ws=1,function(l,r){(function(n,t){l.exports=t()})(V4,function(){function n(i,o){var p=Object.keys(i);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(i);o&&(m=m.filter(function(w){return Object.getOwnPropertyDescriptor(i,w).enumerable})),p.push.apply(p,m)}return p}function t(i){for(var o=1;o<arguments.length;o++){var p=arguments[o]!=null?arguments[o]:{};o%2?n(Object(p),!0).forEach(function(m){v(i,m,p[m])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(p)):n(Object(p)).forEach(function(m){Object.defineProperty(i,m,Object.getOwnPropertyDescriptor(p,m))})}return i}function s(i){return s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},s(i)}function c(i,o){if(!(i instanceof o))throw new TypeError("Cannot call a class as a function")}function b(i,o){for(var p=0;p<o.length;p++){var m=o[p];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(i,U(m.key),m)}}function h(i,o,p){return o&&b(i.prototype,o),Object.defineProperty(i,"prototype",{writable:!1}),i}function v(i,o,p){return(o=U(o))in i?Object.defineProperty(i,o,{value:p,enumerable:!0,configurable:!0,writable:!0}):i[o]=p,i}function y(i,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(o&&o.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),Object.defineProperty(i,"prototype",{writable:!1}),o&&x(i,o)}function u(i){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},u(i)}function x(i,o){return x=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,m){return p.__proto__=m,p},x(i,o)}function S(i){if(i===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}function M(i){var o=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var p,m=u(i);if(o){var w=u(this).constructor;p=Reflect.construct(m,arguments,w)}else p=m.apply(this,arguments);return function(V,q){if(q&&(typeof q=="object"||typeof q=="function"))return q;if(q!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return S(V)}(this,p)}}function _(){return _=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(i,o,p){var m=function(V,q){for(;!Object.prototype.hasOwnProperty.call(V,q)&&(V=u(V))!==null;);return V}(i,o);if(m){var w=Object.getOwnPropertyDescriptor(m,o);return w.get?w.get.call(arguments.length<3?i:p):w.value}},_.apply(this,arguments)}function U(i){var o=function(p,m){if(typeof p!="object"||p===null)return p;var w=p[Symbol.toPrimitive];if(w!==void 0){var V=w.call(p,m);if(typeof V!="object")return V;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(p)}(i,"string");return typeof o=="symbol"?o:o+""}var B=function(i){return!(!i||!i.Window)&&i instanceof i.Window},A=void 0,R=void 0;function C(i){A=i;var o=i.document.createTextNode("");o.ownerDocument!==i.document&&typeof i.wrap=="function"&&i.wrap(o)===o&&(i=i.wrap(i)),R=i}function L(i){return B(i)?i:(i.ownerDocument||i).defaultView||R.window}typeof window<"u"&&window&&C(window);var T=function(i){return!!i&&s(i)==="object"},k=function(i){return typeof i=="function"},g={window:function(i){return i===R||B(i)},docFrag:function(i){return T(i)&&i.nodeType===11},object:T,func:k,number:function(i){return typeof i=="number"},bool:function(i){return typeof i=="boolean"},string:function(i){return typeof i=="string"},element:function(i){if(!i||s(i)!=="object")return!1;var o=L(i)||R;return/object|function/.test(typeof Element>"u"?"undefined":s(Element))?i instanceof Element||i instanceof o.Element:i.nodeType===1&&typeof i.nodeName=="string"},plainObject:function(i){return T(i)&&!!i.constructor&&/function Object\b/.test(i.constructor.toString())},array:function(i){return T(i)&&i.length!==void 0&&k(i.splice)}};function j(i){var o=i.interaction;if(o.prepared.name==="drag"){var p=o.prepared.axis;p==="x"?(o.coords.cur.page.y=o.coords.start.page.y,o.coords.cur.client.y=o.coords.start.client.y,o.coords.velocity.client.y=0,o.coords.velocity.page.y=0):p==="y"&&(o.coords.cur.page.x=o.coords.start.page.x,o.coords.cur.client.x=o.coords.start.client.x,o.coords.velocity.client.x=0,o.coords.velocity.page.x=0)}}function W(i){var o=i.iEvent,p=i.interaction;if(p.prepared.name==="drag"){var m=p.prepared.axis;if(m==="x"||m==="y"){var w=m==="x"?"y":"x";o.page[w]=p.coords.start.page[w],o.client[w]=p.coords.start.client[w],o.delta[w]=0}}}var J={id:"actions/drag",install:function(i){var o=i.actions,p=i.Interactable,m=i.defaults;p.prototype.draggable=J.draggable,o.map.drag=J,o.methodDict.drag="draggable",m.actions.drag=J.defaults},listeners:{"interactions:before-action-move":j,"interactions:action-resume":j,"interactions:action-move":W,"auto-start:check":function(i){var o=i.interaction,p=i.interactable,m=i.buttons,w=p.options.drag;if(w&&w.enabled&&(!o.pointerIsDown||!/mouse|pointer/.test(o.pointerType)||(m&p.options.drag.mouseButtons)!=0))return i.action={name:"drag",axis:w.lockAxis==="start"?w.startAxis:w.lockAxis},!1}},draggable:function(i){return g.object(i)?(this.options.drag.enabled=i.enabled!==!1,this.setPerAction("drag",i),this.setOnEvents("drag",i),/^(xy|x|y|start)$/.test(i.lockAxis)&&(this.options.drag.lockAxis=i.lockAxis),/^(xy|x|y)$/.test(i.startAxis)&&(this.options.drag.startAxis=i.startAxis),this):g.bool(i)?(this.options.drag.enabled=i,this):this.options.drag},beforeMove:j,move:W,defaults:{startAxis:"xy",lockAxis:"xy"},getCursor:function(){return"move"},filterEventType:function(i){return i.search("drag")===0}},ke=J,ze={init:function(i){var o=i;ze.document=o.document,ze.DocumentFragment=o.DocumentFragment||De,ze.SVGElement=o.SVGElement||De,ze.SVGSVGElement=o.SVGSVGElement||De,ze.SVGElementInstance=o.SVGElementInstance||De,ze.Element=o.Element||De,ze.HTMLElement=o.HTMLElement||ze.Element,ze.Event=o.Event,ze.Touch=o.Touch||De,ze.PointerEvent=o.PointerEvent||o.MSPointerEvent},document:null,DocumentFragment:null,SVGElement:null,SVGSVGElement:null,SVGElementInstance:null,Element:null,HTMLElement:null,Event:null,Touch:null,PointerEvent:null};function De(){}var ne=ze,xe={init:function(i){var o=ne.Element,p=i.navigator||{};xe.supportsTouch="ontouchstart"in i||g.func(i.DocumentTouch)&&ne.document instanceof i.DocumentTouch,xe.supportsPointerEvent=p.pointerEnabled!==!1&&!!ne.PointerEvent,xe.isIOS=/iP(hone|od|ad)/.test(p.platform),xe.isIOS7=/iP(hone|od|ad)/.test(p.platform)&&/OS 7[^\d]/.test(p.appVersion),xe.isIe9=/MSIE 9/.test(p.userAgent),xe.isOperaMobile=p.appName==="Opera"&&xe.supportsTouch&&/Presto/.test(p.userAgent),xe.prefixedMatchesSelector="matches"in o.prototype?"matches":"webkitMatchesSelector"in o.prototype?"webkitMatchesSelector":"mozMatchesSelector"in o.prototype?"mozMatchesSelector":"oMatchesSelector"in o.prototype?"oMatchesSelector":"msMatchesSelector",xe.pEventTypes=xe.supportsPointerEvent?ne.PointerEvent===i.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,xe.wheelEvent=ne.document&&"onmousewheel"in ne.document?"mousewheel":"wheel"},supportsTouch:null,supportsPointerEvent:null,isIOS7:null,isIOS:null,isIe9:null,isOperaMobile:null,prefixedMatchesSelector:null,pEventTypes:null,wheelEvent:null},X=xe;function pe(i,o){if(i.contains)return i.contains(o);for(;o;){if(o===i)return!0;o=o.parentNode}return!1}function Ke(i,o){for(;g.element(i);){if(te(i,o))return i;i=Da(i)}return null}function Da(i){var o=i.parentNode;if(g.docFrag(o)){for(;(o=o.host)&&g.docFrag(o););return o}return o}function te(i,o){return R!==A&&(o=o.replace(/\/deep\//g," ")),i[X.prefixedMatchesSelector](o)}var D=function(i){return i.parentNode||i.host};function le(i,o){for(var p,m=[],w=i;(p=D(w))&&w!==o&&p!==w.ownerDocument;)m.unshift(w),w=p;return m}function ge(i,o,p){for(;g.element(i);){if(te(i,o))return!0;if((i=Da(i))===p)return te(i,o)}return!1}function ue(i){return i.correspondingUseElement||i}function Ne(i){var o=i instanceof ne.SVGElement?i.getBoundingClientRect():i.getClientRects()[0];return o&&{left:o.left,right:o.right,top:o.top,bottom:o.bottom,width:o.width||o.right-o.left,height:o.height||o.bottom-o.top}}function ia(i){var o,p=Ne(i);if(!X.isIOS7&&p){var m={x:(o=(o=L(i))||R).scrollX||o.document.documentElement.scrollLeft,y:o.scrollY||o.document.documentElement.scrollTop};p.left+=m.x,p.right+=m.x,p.top+=m.y,p.bottom+=m.y}return p}function ka(i){for(var o=[];i;)o.push(i),i=Da(i);return o}function Ha(i){return!!g.string(i)&&(ne.document.querySelector(i),!0)}function ee(i,o){for(var p in o)i[p]=o[p];return i}function Qe(i,o,p){return i==="parent"?Da(p):i==="self"?o.getRect(p):Ke(p,i)}function Pe(i,o,p,m){var w=i;return g.string(w)?w=Qe(w,o,p):g.func(w)&&(w=w.apply(void 0,m)),g.element(w)&&(w=ia(w)),w}function ga(i){return i&&{x:"x"in i?i.x:i.left,y:"y"in i?i.y:i.top}}function He(i){return!i||"x"in i&&"y"in i||((i=ee({},i)).x=i.left||0,i.y=i.top||0,i.width=i.width||(i.right||0)-i.x,i.height=i.height||(i.bottom||0)-i.y),i}function Ae(i,o,p){i.left&&(o.left+=p.x),i.right&&(o.right+=p.x),i.top&&(o.top+=p.y),i.bottom&&(o.bottom+=p.y),o.width=o.right-o.left,o.height=o.bottom-o.top}function $e(i,o,p){var m=p&&i.options[p];return ga(Pe(m&&m.origin||i.options.origin,i,o,[i&&o]))||{x:0,y:0}}function Ge(i,o){var p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(fe){return!0},m=arguments.length>3?arguments[3]:void 0;if(m=m||{},g.string(i)&&i.search(" ")!==-1&&(i=Wa(i)),g.array(i))return i.forEach(function(fe){return Ge(fe,o,p,m)}),m;if(g.object(i)&&(o=i,i=""),g.func(o)&&p(i))m[i]=m[i]||[],m[i].push(o);else if(g.array(o))for(var w=0,V=o;w<V.length;w++){var q=V[w];Ge(i,q,p,m)}else if(g.object(o))for(var Y in o)Ge(Wa(Y).map(function(fe){return"".concat(i).concat(fe)}),o[Y],p,m);return m}function Wa(i){return i.trim().split(/ +/)}var Ia=function(i,o){return Math.sqrt(i*i+o*o)},P=["webkit","moz"];function F(i,o){i.__set||(i.__set={});var p=function(w){if(P.some(function(V){return w.indexOf(V)===0}))return 1;typeof i[w]!="function"&&w!=="__set"&&Object.defineProperty(i,w,{get:function(){return w in i.__set?i.__set[w]:i.__set[w]=o[w]},set:function(V){i.__set[w]=V},configurable:!0})};for(var m in o)p(m);return i}function G(i,o){i.page=i.page||{},i.page.x=o.page.x,i.page.y=o.page.y,i.client=i.client||{},i.client.x=o.client.x,i.client.y=o.client.y,i.timeStamp=o.timeStamp}function ie(i){i.page.x=0,i.page.y=0,i.client.x=0,i.client.y=0}function ce(i){return i instanceof ne.Event||i instanceof ne.Touch}function pa(i,o,p){return i=i||"page",(p=p||{}).x=o[i+"X"],p.y=o[i+"Y"],p}function aa(i,o){return o=o||{x:0,y:0},X.isOperaMobile&&ce(i)?(pa("screen",i,o),o.x+=window.scrollX,o.y+=window.scrollY):pa("page",i,o),o}function Ie(i){return g.number(i.pointerId)?i.pointerId:i.identifier}function Ce(i,o,p){var m=o.length>1?me(o):o[0];aa(m,i.page),function(w,V){V=V||{},X.isOperaMobile&&ce(w)?pa("screen",w,V):pa("client",w,V)}(m,i.client),i.timeStamp=p}function wa(i){var o=[];return g.array(i)?(o[0]=i[0],o[1]=i[1]):i.type==="touchend"?i.touches.length===1?(o[0]=i.touches[0],o[1]=i.changedTouches[0]):i.touches.length===0&&(o[0]=i.changedTouches[0],o[1]=i.changedTouches[1]):(o[0]=i.touches[0],o[1]=i.touches[1]),o}function me(i){for(var o={pageX:0,pageY:0,clientX:0,clientY:0,screenX:0,screenY:0},p=0;p<i.length;p++){var m=i[p];for(var w in o)o[w]+=m[w]}for(var V in o)o[V]/=i.length;return o}function Je(i){if(!i.length)return null;var o=wa(i),p=Math.min(o[0].pageX,o[1].pageX),m=Math.min(o[0].pageY,o[1].pageY),w=Math.max(o[0].pageX,o[1].pageX),V=Math.max(o[0].pageY,o[1].pageY);return{x:p,y:m,left:p,top:m,right:w,bottom:V,width:w-p,height:V-m}}function Ze(i,o){var p=o+"X",m=o+"Y",w=wa(i),V=w[0][p]-w[1][p],q=w[0][m]-w[1][m];return Ia(V,q)}function Fe(i,o){var p=o+"X",m=o+"Y",w=wa(i),V=w[1][p]-w[0][p],q=w[1][m]-w[0][m];return 180*Math.atan2(q,V)/Math.PI}function ba(i){return g.string(i.pointerType)?i.pointerType:g.number(i.pointerType)?[void 0,void 0,"touch","pen","mouse"][i.pointerType]:/touch/.test(i.type||"")||i instanceof ne.Touch?"touch":"mouse"}function Le(i){var o=g.func(i.composedPath)?i.composedPath():i.path;return[ue(o?o[0]:i.target),ue(i.currentTarget)]}var da=function(){function i(o){c(this,i),this.immediatePropagationStopped=!1,this.propagationStopped=!1,this._interaction=o}return h(i,[{key:"preventDefault",value:function(){}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}}]),i}();Object.defineProperty(da.prototype,"interaction",{get:function(){return this._interaction._proxy},set:function(){}});var re=function(i,o){for(var p=0;p<o.length;p++){var m=o[p];i.push(m)}return i},Se=function(i){return re([],i)},K=function(i,o){for(var p=0;p<i.length;p++)if(o(i[p],p,i))return p;return-1},je=function(i,o){return i[K(i,o)]},Be=function(i){y(p,i);var o=M(p);function p(m,w,V){var q;c(this,p),(q=o.call(this,w._interaction)).dropzone=void 0,q.dragEvent=void 0,q.relatedTarget=void 0,q.draggable=void 0,q.propagationStopped=!1,q.immediatePropagationStopped=!1;var Y=V==="dragleave"?m.prev:m.cur,fe=Y.element,Oe=Y.dropzone;return q.type=V,q.target=fe,q.currentTarget=fe,q.dropzone=Oe,q.dragEvent=w,q.relatedTarget=w.target,q.draggable=w.interactable,q.timeStamp=w.timeStamp,q}return h(p,[{key:"reject",value:function(){var m=this,w=this._interaction.dropState;if(this.type==="dropactivate"||this.dropzone&&w.cur.dropzone===this.dropzone&&w.cur.element===this.target)if(w.prev.dropzone=this.dropzone,w.prev.element=this.target,w.rejected=!0,w.events.enter=null,this.stopImmediatePropagation(),this.type==="dropactivate"){var V=w.activeDrops,q=K(V,function(fe){var Oe=fe.dropzone,be=fe.element;return Oe===m.dropzone&&be===m.target});w.activeDrops.splice(q,1);var Y=new p(w,this.dragEvent,"dropdeactivate");Y.dropzone=this.dropzone,Y.target=this.target,this.dropzone.fire(Y)}else this.dropzone.fire(new p(w,this.dragEvent,"dragleave"))}},{key:"preventDefault",value:function(){}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}}]),p}(da);function za(i,o){for(var p=0,m=i.slice();p<m.length;p++){var w=m[p],V=w.dropzone,q=w.element;o.dropzone=V,o.target=q,V.fire(o),o.propagationStopped=o.immediatePropagationStopped=!1}}function Sa(i,o){for(var p=function(V,q){for(var Y=[],fe=0,Oe=V.interactables.list;fe<Oe.length;fe++){var be=Oe[fe];if(be.options.drop.enabled){var Xe=be.options.drop.accept;if(!(g.element(Xe)&&Xe!==q||g.string(Xe)&&!te(q,Xe)||g.func(Xe)&&!Xe({dropzone:be,draggableElement:q})))for(var Ta=0,tl=be.getAllElements();Ta<tl.length;Ta++){var ll=tl[Ta];ll!==q&&Y.push({dropzone:be,element:ll,rect:be.getRect(ll)})}}}return Y}(i,o),m=0;m<p.length;m++){var w=p[m];w.rect=w.dropzone.getRect(w.element)}return p}function Ye(i,o,p){for(var m=i.dropState,w=i.interactable,V=i.element,q=[],Y=0,fe=m.activeDrops;Y<fe.length;Y++){var Oe=fe[Y],be=Oe.dropzone,Xe=Oe.element,Ta=Oe.rect,tl=be.dropCheck(o,p,w,V,Xe,Ta);q.push(tl?Xe:null)}var ll=function(sl){for(var wl,cl,Bl,Ml=[],Kl=0;Kl<sl.length;Kl++){var Dl=sl[Kl],Fl=sl[wl];if(Dl&&Kl!==wl)if(Fl){var Ir=D(Dl),mr=D(Fl);if(Ir!==Dl.ownerDocument)if(mr!==Dl.ownerDocument)if(Ir!==mr){Ml=Ml.length?Ml:le(Fl);var Fr=void 0;if(Fl instanceof ne.HTMLElement&&Dl instanceof ne.SVGElement&&!(Dl instanceof ne.SVGSVGElement)){if(Dl===mr)continue;Fr=Dl.ownerSVGElement}else Fr=Dl;for(var en=le(Fr,Fl.ownerDocument),on=0;en[on]&&en[on]===Ml[on];)on++;var ct=[en[on-1],en[on],Ml[on]];if(ct[0])for(var Tn=ct[0].lastChild;Tn;){if(Tn===ct[1]){wl=Kl,Ml=en;break}if(Tn===ct[2])break;Tn=Tn.previousSibling}}else Bl=Fl,(parseInt(L(cl=Dl).getComputedStyle(cl).zIndex,10)||0)>=(parseInt(L(Bl).getComputedStyle(Bl).zIndex,10)||0)&&(wl=Kl);else wl=Kl}else wl=Kl}return wl}(q);return m.activeDrops[ll]||null}function ca(i,o,p){var m=i.dropState,w={enter:null,leave:null,activate:null,deactivate:null,move:null,drop:null};return p.type==="dragstart"&&(w.activate=new Be(m,p,"dropactivate"),w.activate.target=null,w.activate.dropzone=null),p.type==="dragend"&&(w.deactivate=new Be(m,p,"dropdeactivate"),w.deactivate.target=null,w.deactivate.dropzone=null),m.rejected||(m.cur.element!==m.prev.element&&(m.prev.dropzone&&(w.leave=new Be(m,p,"dragleave"),p.dragLeave=w.leave.target=m.prev.element,p.prevDropzone=w.leave.dropzone=m.prev.dropzone),m.cur.dropzone&&(w.enter=new Be(m,p,"dragenter"),p.dragEnter=m.cur.element,p.dropzone=m.cur.dropzone)),p.type==="dragend"&&m.cur.dropzone&&(w.drop=new Be(m,p,"drop"),p.dropzone=m.cur.dropzone,p.relatedTarget=m.cur.element),p.type==="dragmove"&&m.cur.dropzone&&(w.move=new Be(m,p,"dropmove"),p.dropzone=m.cur.dropzone)),w}function _e(i,o){var p=i.dropState,m=p.activeDrops,w=p.cur,V=p.prev;o.leave&&V.dropzone.fire(o.leave),o.enter&&w.dropzone.fire(o.enter),o.move&&w.dropzone.fire(o.move),o.drop&&w.dropzone.fire(o.drop),o.deactivate&&za(m,o.deactivate),p.prev.dropzone=w.dropzone,p.prev.element=w.element}function Q(i,o){var p=i.interaction,m=i.iEvent,w=i.event;if(m.type==="dragmove"||m.type==="dragend"){var V=p.dropState;o.dynamicDrop&&(V.activeDrops=Sa(o,p.element));var q=m,Y=Ye(p,q,w);V.rejected=V.rejected&&!!Y&&Y.dropzone===V.cur.dropzone&&Y.element===V.cur.element,V.cur.dropzone=Y&&Y.dropzone,V.cur.element=Y&&Y.element,V.events=ca(p,0,q)}}var ya={id:"actions/drop",install:function(i){var o=i.actions,p=i.interactStatic,m=i.Interactable,w=i.defaults;i.usePlugin(ke),m.prototype.dropzone=function(V){return function(q,Y){if(g.object(Y)){if(q.options.drop.enabled=Y.enabled!==!1,Y.listeners){var fe=Ge(Y.listeners),Oe=Object.keys(fe).reduce(function(Xe,Ta){return Xe[/^(enter|leave)/.test(Ta)?"drag".concat(Ta):/^(activate|deactivate|move)/.test(Ta)?"drop".concat(Ta):Ta]=fe[Ta],Xe},{}),be=q.options.drop.listeners;be&&q.off(be),q.on(Oe),q.options.drop.listeners=Oe}return g.func(Y.ondrop)&&q.on("drop",Y.ondrop),g.func(Y.ondropactivate)&&q.on("dropactivate",Y.ondropactivate),g.func(Y.ondropdeactivate)&&q.on("dropdeactivate",Y.ondropdeactivate),g.func(Y.ondragenter)&&q.on("dragenter",Y.ondragenter),g.func(Y.ondragleave)&&q.on("dragleave",Y.ondragleave),g.func(Y.ondropmove)&&q.on("dropmove",Y.ondropmove),/^(pointer|center)$/.test(Y.overlap)?q.options.drop.overlap=Y.overlap:g.number(Y.overlap)&&(q.options.drop.overlap=Math.max(Math.min(1,Y.overlap),0)),"accept"in Y&&(q.options.drop.accept=Y.accept),"checker"in Y&&(q.options.drop.checker=Y.checker),q}return g.bool(Y)?(q.options.drop.enabled=Y,q):q.options.drop}(this,V)},m.prototype.dropCheck=function(V,q,Y,fe,Oe,be){return function(Xe,Ta,tl,ll,sl,wl,cl){var Bl=!1;if(!(cl=cl||Xe.getRect(wl)))return!!Xe.options.drop.checker&&Xe.options.drop.checker(Ta,tl,Bl,Xe,wl,ll,sl);var Ml=Xe.options.drop.overlap;if(Ml==="pointer"){var Kl=$e(ll,sl,"drag"),Dl=aa(Ta);Dl.x+=Kl.x,Dl.y+=Kl.y;var Fl=Dl.x>cl.left&&Dl.x<cl.right,Ir=Dl.y>cl.top&&Dl.y<cl.bottom;Bl=Fl&&Ir}var mr=ll.getRect(sl);if(mr&&Ml==="center"){var Fr=mr.left+mr.width/2,en=mr.top+mr.height/2;Bl=Fr>=cl.left&&Fr<=cl.right&&en>=cl.top&&en<=cl.bottom}return mr&&g.number(Ml)&&(Bl=Math.max(0,Math.min(cl.right,mr.right)-Math.max(cl.left,mr.left))*Math.max(0,Math.min(cl.bottom,mr.bottom)-Math.max(cl.top,mr.top))/(mr.width*mr.height)>=Ml),Xe.options.drop.checker&&(Bl=Xe.options.drop.checker(Ta,tl,Bl,Xe,wl,ll,sl)),Bl}(this,V,q,Y,fe,Oe,be)},p.dynamicDrop=function(V){return g.bool(V)?(i.dynamicDrop=V,p):i.dynamicDrop},ee(o.phaselessTypes,{dragenter:!0,dragleave:!0,dropactivate:!0,dropdeactivate:!0,dropmove:!0,drop:!0}),o.methodDict.drop="dropzone",i.dynamicDrop=!1,w.actions.drop=ya.defaults},listeners:{"interactions:before-action-start":function(i){var o=i.interaction;o.prepared.name==="drag"&&(o.dropState={cur:{dropzone:null,element:null},prev:{dropzone:null,element:null},rejected:null,events:null,activeDrops:[]})},"interactions:after-action-start":function(i,o){var p=i.interaction,m=(i.event,i.iEvent);if(p.prepared.name==="drag"){var w=p.dropState;w.activeDrops=[],w.events={},w.activeDrops=Sa(o,p.element),w.events=ca(p,0,m),w.events.activate&&(za(w.activeDrops,w.events.activate),o.fire("actions/drop:start",{interaction:p,dragEvent:m}))}},"interactions:action-move":Q,"interactions:after-action-move":function(i,o){var p=i.interaction,m=i.iEvent;if(p.prepared.name==="drag"){var w=p.dropState;_e(p,w.events),o.fire("actions/drop:move",{interaction:p,dragEvent:m}),w.events={}}},"interactions:action-end":function(i,o){if(i.interaction.prepared.name==="drag"){var p=i.interaction,m=i.iEvent;Q(i,o),_e(p,p.dropState.events),o.fire("actions/drop:end",{interaction:p,dragEvent:m})}},"interactions:stop":function(i){var o=i.interaction;if(o.prepared.name==="drag"){var p=o.dropState;p&&(p.activeDrops=null,p.events=null,p.cur.dropzone=null,p.cur.element=null,p.prev.dropzone=null,p.prev.element=null,p.rejected=!1)}}},getActiveDrops:Sa,getDrop:Ye,getDropEvents:ca,fireDropEvents:_e,filterEventType:function(i){return i.search("drag")===0||i.search("drop")===0},defaults:{enabled:!1,accept:null,overlap:"pointer"}},We=ya;function La(i){var o=i.interaction,p=i.iEvent,m=i.phase;if(o.prepared.name==="gesture"){var w=o.pointers.map(function(Oe){return Oe.pointer}),V=m==="start",q=m==="end",Y=o.interactable.options.deltaSource;if(p.touches=[w[0],w[1]],V)p.distance=Ze(w,Y),p.box=Je(w),p.scale=1,p.ds=0,p.angle=Fe(w,Y),p.da=0,o.gesture.startDistance=p.distance,o.gesture.startAngle=p.angle;else if(q||o.pointers.length<2){var fe=o.prevEvent;p.distance=fe.distance,p.box=fe.box,p.scale=fe.scale,p.ds=0,p.angle=fe.angle,p.da=0}else p.distance=Ze(w,Y),p.box=Je(w),p.scale=p.distance/o.gesture.startDistance,p.angle=Fe(w,Y),p.ds=p.scale-o.gesture.scale,p.da=p.angle-o.gesture.angle;o.gesture.distance=p.distance,o.gesture.angle=p.angle,g.number(p.scale)&&p.scale!==1/0&&!isNaN(p.scale)&&(o.gesture.scale=p.scale)}}var yl={id:"actions/gesture",before:["actions/drag","actions/resize"],install:function(i){var o=i.actions,p=i.Interactable,m=i.defaults;p.prototype.gesturable=function(w){return g.object(w)?(this.options.gesture.enabled=w.enabled!==!1,this.setPerAction("gesture",w),this.setOnEvents("gesture",w),this):g.bool(w)?(this.options.gesture.enabled=w,this):this.options.gesture},o.map.gesture=yl,o.methodDict.gesture="gesturable",m.actions.gesture=yl.defaults},listeners:{"interactions:action-start":La,"interactions:action-move":La,"interactions:action-end":La,"interactions:new":function(i){i.interaction.gesture={angle:0,distance:0,scale:1,startAngle:0,startDistance:0}},"auto-start:check":function(i){if(!(i.interaction.pointers.length<2)){var o=i.interactable.options.gesture;if(o&&o.enabled)return i.action={name:"gesture"},!1}}},defaults:{},getCursor:function(){return""},filterEventType:function(i){return i.search("gesture")===0}},Aa=yl;function el(i,o,p,m,w,V,q){if(!o)return!1;if(o===!0){var Y=g.number(V.width)?V.width:V.right-V.left,fe=g.number(V.height)?V.height:V.bottom-V.top;if(q=Math.min(q,Math.abs((i==="left"||i==="right"?Y:fe)/2)),Y<0&&(i==="left"?i="right":i==="right"&&(i="left")),fe<0&&(i==="top"?i="bottom":i==="bottom"&&(i="top")),i==="left"){var Oe=Y>=0?V.left:V.right;return p.x<Oe+q}if(i==="top"){var be=fe>=0?V.top:V.bottom;return p.y<be+q}if(i==="right")return p.x>(Y>=0?V.right:V.left)-q;if(i==="bottom")return p.y>(fe>=0?V.bottom:V.top)-q}return!!g.element(m)&&(g.element(o)?o===m:ge(m,o,w))}function Ja(i){var o=i.iEvent,p=i.interaction;if(p.prepared.name==="resize"&&p.resizeAxes){var m=o;p.interactable.options.resize.square?(p.resizeAxes==="y"?m.delta.x=m.delta.y:m.delta.y=m.delta.x,m.axes="xy"):(m.axes=p.resizeAxes,p.resizeAxes==="x"?m.delta.y=0:p.resizeAxes==="y"&&(m.delta.x=0))}}var Pa,Te,il={id:"actions/resize",before:["actions/drag"],install:function(i){var o=i.actions,p=i.browser,m=i.Interactable,w=i.defaults;il.cursors=function(V){return V.isIe9?{x:"e-resize",y:"s-resize",xy:"se-resize",top:"n-resize",left:"w-resize",bottom:"s-resize",right:"e-resize",topleft:"se-resize",bottomright:"se-resize",topright:"ne-resize",bottomleft:"ne-resize"}:{x:"ew-resize",y:"ns-resize",xy:"nwse-resize",top:"ns-resize",left:"ew-resize",bottom:"ns-resize",right:"ew-resize",topleft:"nwse-resize",bottomright:"nwse-resize",topright:"nesw-resize",bottomleft:"nesw-resize"}}(p),il.defaultMargin=p.supportsTouch||p.supportsPointerEvent?20:10,m.prototype.resizable=function(V){return function(q,Y,fe){return g.object(Y)?(q.options.resize.enabled=Y.enabled!==!1,q.setPerAction("resize",Y),q.setOnEvents("resize",Y),g.string(Y.axis)&&/^x$|^y$|^xy$/.test(Y.axis)?q.options.resize.axis=Y.axis:Y.axis===null&&(q.options.resize.axis=fe.defaults.actions.resize.axis),g.bool(Y.preserveAspectRatio)?q.options.resize.preserveAspectRatio=Y.preserveAspectRatio:g.bool(Y.square)&&(q.options.resize.square=Y.square),q):g.bool(Y)?(q.options.resize.enabled=Y,q):q.options.resize}(this,V,i)},o.map.resize=il,o.methodDict.resize="resizable",w.actions.resize=il.defaults},listeners:{"interactions:new":function(i){i.interaction.resizeAxes="xy"},"interactions:action-start":function(i){(function(o){var p=o.iEvent,m=o.interaction;if(m.prepared.name==="resize"&&m.prepared.edges){var w=p,V=m.rect;m._rects={start:ee({},V),corrected:ee({},V),previous:ee({},V),delta:{left:0,right:0,width:0,top:0,bottom:0,height:0}},w.edges=m.prepared.edges,w.rect=m._rects.corrected,w.deltaRect=m._rects.delta}})(i),Ja(i)},"interactions:action-move":function(i){(function(o){var p=o.iEvent,m=o.interaction;if(m.prepared.name==="resize"&&m.prepared.edges){var w=p,V=m.interactable.options.resize.invert,q=V==="reposition"||V==="negate",Y=m.rect,fe=m._rects,Oe=fe.start,be=fe.corrected,Xe=fe.delta,Ta=fe.previous;if(ee(Ta,be),q){if(ee(be,Y),V==="reposition"){if(be.top>be.bottom){var tl=be.top;be.top=be.bottom,be.bottom=tl}if(be.left>be.right){var ll=be.left;be.left=be.right,be.right=ll}}}else be.top=Math.min(Y.top,Oe.bottom),be.bottom=Math.max(Y.bottom,Oe.top),be.left=Math.min(Y.left,Oe.right),be.right=Math.max(Y.right,Oe.left);for(var sl in be.width=be.right-be.left,be.height=be.bottom-be.top,be)Xe[sl]=be[sl]-Ta[sl];w.edges=m.prepared.edges,w.rect=be,w.deltaRect=Xe}})(i),Ja(i)},"interactions:action-end":function(i){var o=i.iEvent,p=i.interaction;if(p.prepared.name==="resize"&&p.prepared.edges){var m=o;m.edges=p.prepared.edges,m.rect=p._rects.corrected,m.deltaRect=p._rects.delta}},"auto-start:check":function(i){var o=i.interaction,p=i.interactable,m=i.element,w=i.rect,V=i.buttons;if(w){var q=ee({},o.coords.cur.page),Y=p.options.resize;if(Y&&Y.enabled&&(!o.pointerIsDown||!/mouse|pointer/.test(o.pointerType)||(V&Y.mouseButtons)!=0)){if(g.object(Y.edges)){var fe={left:!1,right:!1,top:!1,bottom:!1};for(var Oe in fe)fe[Oe]=el(Oe,Y.edges[Oe],q,o._latestPointer.eventTarget,m,w,Y.margin||il.defaultMargin);fe.left=fe.left&&!fe.right,fe.top=fe.top&&!fe.bottom,(fe.left||fe.right||fe.top||fe.bottom)&&(i.action={name:"resize",edges:fe})}else{var be=Y.axis!=="y"&&q.x>w.right-il.defaultMargin,Xe=Y.axis!=="x"&&q.y>w.bottom-il.defaultMargin;(be||Xe)&&(i.action={name:"resize",axes:(be?"x":"")+(Xe?"y":"")})}return!i.action&&void 0}}}},defaults:{square:!1,preserveAspectRatio:!1,axis:"xy",margin:NaN,edges:null,invert:"none"},cursors:null,getCursor:function(i){var o=i.edges,p=i.axis,m=i.name,w=il.cursors,V=null;if(p)V=w[m+p];else if(o){for(var q="",Y=0,fe=["top","bottom","left","right"];Y<fe.length;Y++){var Oe=fe[Y];o[Oe]&&(q+=Oe)}V=w[q]}return V},filterEventType:function(i){return i.search("resize")===0},defaultMargin:null},va=il,_a={id:"actions",install:function(i){i.usePlugin(Aa),i.usePlugin(va),i.usePlugin(ke),i.usePlugin(We)}},xa=0,oa={request:function(i){return Pa(i)},cancel:function(i){return Te(i)},init:function(i){if(Pa=i.requestAnimationFrame,Te=i.cancelAnimationFrame,!Pa)for(var o=["ms","moz","webkit","o"],p=0;p<o.length;p++){var m=o[p];Pa=i["".concat(m,"RequestAnimationFrame")],Te=i["".concat(m,"CancelAnimationFrame")]||i["".concat(m,"CancelRequestAnimationFrame")]}Pa=Pa&&Pa.bind(i),Te=Te&&Te.bind(i),Pa||(Pa=function(w){var V=Date.now(),q=Math.max(0,16-(V-xa)),Y=i.setTimeout(function(){w(V+q)},q);return xa=V+q,Y},Te=function(w){return clearTimeout(w)})}},ha={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(i){ha.isScrolling=!0,oa.cancel(ha.i),i.autoScroll=ha,ha.interaction=i,ha.prevTime=ha.now(),ha.i=oa.request(ha.scroll)},stop:function(){ha.isScrolling=!1,ha.interaction&&(ha.interaction.autoScroll=null),oa.cancel(ha.i)},scroll:function(){var i=ha.interaction,o=i.interactable,p=i.element,m=i.prepared.name,w=o.options[m].autoScroll,V=de(w.container,o,p),q=ha.now(),Y=(q-ha.prevTime)/1e3,fe=w.speed*Y;if(fe>=1){var Oe={x:ha.x*fe,y:ha.y*fe};if(Oe.x||Oe.y){var be=Fa(V);g.window(V)?V.scrollBy(Oe.x,Oe.y):V&&(V.scrollLeft+=Oe.x,V.scrollTop+=Oe.y);var Xe=Fa(V),Ta={x:Xe.x-be.x,y:Xe.y-be.y};(Ta.x||Ta.y)&&o.fire({type:"autoscroll",target:p,interactable:o,delta:Ta,interaction:i,container:V})}ha.prevTime=q}ha.isScrolling&&(oa.cancel(ha.i),ha.i=oa.request(ha.scroll))},check:function(i,o){var p;return(p=i.options[o].autoScroll)==null?void 0:p.enabled},onInteractionMove:function(i){var o=i.interaction,p=i.pointer;if(o.interacting()&&ha.check(o.interactable,o.prepared.name))if(o.simulation)ha.x=ha.y=0;else{var m,w,V,q,Y=o.interactable,fe=o.element,Oe=o.prepared.name,be=Y.options[Oe].autoScroll,Xe=de(be.container,Y,fe);if(g.window(Xe))q=p.clientX<ha.margin,m=p.clientY<ha.margin,w=p.clientX>Xe.innerWidth-ha.margin,V=p.clientY>Xe.innerHeight-ha.margin;else{var Ta=Ne(Xe);q=p.clientX<Ta.left+ha.margin,m=p.clientY<Ta.top+ha.margin,w=p.clientX>Ta.right-ha.margin,V=p.clientY>Ta.bottom-ha.margin}ha.x=w?1:q?-1:0,ha.y=V?1:m?-1:0,ha.isScrolling||(ha.margin=be.margin,ha.speed=be.speed,ha.start(o))}}};function de(i,o,p){return(g.string(i)?Qe(i,o,p):i)||L(p)}function Fa(i){return g.window(i)&&(i=window.document.body),{x:i.scrollLeft,y:i.scrollTop}}var ja={id:"auto-scroll",install:function(i){var o=i.defaults,p=i.actions;i.autoScroll=ha,ha.now=function(){return i.now()},p.phaselessTypes.autoscroll=!0,o.perAction.autoScroll=ha.defaults},listeners:{"interactions:new":function(i){i.interaction.autoScroll=null},"interactions:destroy":function(i){i.interaction.autoScroll=null,ha.stop(),ha.interaction&&(ha.interaction=null)},"interactions:stop":ha.stop,"interactions:action-move":function(i){return ha.onInteractionMove(i)}}},Ee=ja;function Na(i,o){var p=!1;return function(){return p||(R.console.warn(o),p=!0),i.apply(this,arguments)}}function Ua(i,o){return i.name=o.name,i.axis=o.axis,i.edges=o.edges,i}function ye(i){return g.bool(i)?(this.options.styleCursor=i,this):i===null?(delete this.options.styleCursor,this):this.options.styleCursor}function hl(i){return g.func(i)?(this.options.actionChecker=i,this):i===null?(delete this.options.actionChecker,this):this.options.actionChecker}var Za={id:"auto-start/interactableMethods",install:function(i){var o=i.Interactable;o.prototype.getAction=function(p,m,w,V){var q=function(Y,fe,Oe,be,Xe){var Ta=Y.getRect(be),tl=fe.buttons||{0:1,1:4,3:8,4:16}[fe.button],ll={action:null,interactable:Y,interaction:Oe,element:be,rect:Ta,buttons:tl};return Xe.fire("auto-start:check",ll),ll.action}(this,m,w,V,i);return this.options.actionChecker?this.options.actionChecker(p,m,q,this,V,w):q},o.prototype.ignoreFrom=Na(function(p){return this._backCompatOption("ignoreFrom",p)},"Interactable.ignoreFrom() has been deprecated. Use Interactble.draggable({ignoreFrom: newValue})."),o.prototype.allowFrom=Na(function(p){return this._backCompatOption("allowFrom",p)},"Interactable.allowFrom() has been deprecated. Use Interactble.draggable({allowFrom: newValue})."),o.prototype.actionChecker=hl,o.prototype.styleCursor=ye}};function xl(i,o,p,m,w){return o.testIgnoreAllow(o.options[i.name],p,m)&&o.options[i.name].enabled&&ul(o,p,i,w)?i:null}function qa(i,o,p,m,w,V,q){for(var Y=0,fe=m.length;Y<fe;Y++){var Oe=m[Y],be=w[Y],Xe=Oe.getAction(o,p,i,be);if(Xe){var Ta=xl(Xe,Oe,be,V,q);if(Ta)return{action:Ta,interactable:Oe,element:be}}}return{action:null,interactable:null,element:null}}function ol(i,o,p,m,w){var V=[],q=[],Y=m;function fe(be){V.push(be),q.push(Y)}for(;g.element(Y);){V=[],q=[],w.interactables.forEachMatch(Y,fe);var Oe=qa(i,o,p,V,q,m,w);if(Oe.action&&!Oe.interactable.options[Oe.action.name].manualStart)return Oe;Y=Da(Y)}return{action:null,interactable:null,element:null}}function al(i,o,p){var m=o.action,w=o.interactable,V=o.element;m=m||{name:null},i.interactable=w,i.element=V,Ua(i.prepared,m),i.rect=w&&m.name?w.getRect(V):null,ql(i,p),p.fire("autoStart:prepared",{interaction:i})}function ul(i,o,p,m){var w=i.options,V=w[p.name].max,q=w[p.name].maxPerElement,Y=m.autoStart.maxInteractions,fe=0,Oe=0,be=0;if(!(V&&q&&Y))return!1;for(var Xe=0,Ta=m.interactions.list;Xe<Ta.length;Xe++){var tl=Ta[Xe],ll=tl.prepared.name;if(tl.interacting()&&(++fe>=Y||tl.interactable===i&&((Oe+=ll===p.name?1:0)>=V||tl.element===o&&(be++,ll===p.name&&be>=q))))return!1}return Y>0}function dl(i,o){return g.number(i)?(o.autoStart.maxInteractions=i,this):o.autoStart.maxInteractions}function Wl(i,o,p){var m=p.autoStart.cursorElement;m&&m!==i&&(m.style.cursor=""),i.ownerDocument.documentElement.style.cursor=o,i.style.cursor=o,p.autoStart.cursorElement=o?i:null}function ql(i,o){var p=i.interactable,m=i.element,w=i.prepared;if(i.pointerType==="mouse"&&p&&p.options.styleCursor){var V="";if(w.name){var q=p.options[w.name].cursorChecker;V=g.func(q)?q(w,p,m,i._interacting):o.actions.map[w.name].getCursor(w)}Wl(i.element,V||"",o)}else o.autoStart.cursorElement&&Wl(o.autoStart.cursorElement,"",o)}var Pl={id:"auto-start/base",before:["actions"],install:function(i){var o=i.interactStatic,p=i.defaults;i.usePlugin(Za),p.base.actionChecker=null,p.base.styleCursor=!0,ee(p.perAction,{manualStart:!1,max:1/0,maxPerElement:1,allowFrom:null,ignoreFrom:null,mouseButtons:1}),o.maxInteractions=function(m){return dl(m,i)},i.autoStart={maxInteractions:1/0,withinInteractionLimit:ul,cursorElement:null}},listeners:{"interactions:down":function(i,o){var p=i.interaction,m=i.pointer,w=i.event,V=i.eventTarget;p.interacting()||al(p,ol(p,m,w,V,o),o)},"interactions:move":function(i,o){(function(p,m){var w=p.interaction,V=p.pointer,q=p.event,Y=p.eventTarget;w.pointerType!=="mouse"||w.pointerIsDown||w.interacting()||al(w,ol(w,V,q,Y,m),m)})(i,o),function(p,m){var w=p.interaction;if(w.pointerIsDown&&!w.interacting()&&w.pointerWasMoved&&w.prepared.name){m.fire("autoStart:before-start",p);var V=w.interactable,q=w.prepared.name;q&&V&&(V.options[q].manualStart||!ul(V,w.element,w.prepared,m)?w.stop():(w.start(w.prepared,V,w.element),ql(w,m)))}}(i,o)},"interactions:stop":function(i,o){var p=i.interaction,m=p.interactable;m&&m.options.styleCursor&&Wl(p.element,"",o)}},maxInteractions:dl,withinInteractionLimit:ul,validateAction:xl},Hl=Pl,gr={id:"auto-start/dragAxis",listeners:{"autoStart:before-start":function(i,o){var p=i.interaction,m=i.eventTarget,w=i.dx,V=i.dy;if(p.prepared.name==="drag"){var q=Math.abs(w),Y=Math.abs(V),fe=p.interactable.options.drag,Oe=fe.startAxis,be=q>Y?"x":q<Y?"y":"xy";if(p.prepared.axis=fe.lockAxis==="start"?be[0]:fe.lockAxis,be!=="xy"&&Oe!=="xy"&&Oe!==be){p.prepared.name=null;for(var Xe=m,Ta=function(ll){if(ll!==p.interactable){var sl=p.interactable.options.drag;if(!sl.manualStart&&ll.testIgnoreAllow(sl,Xe,m)){var wl=ll.getAction(p.downPointer,p.downEvent,p,Xe);if(wl&&wl.name==="drag"&&function(cl,Bl){if(!Bl)return!1;var Ml=Bl.options.drag.startAxis;return cl==="xy"||Ml==="xy"||Ml===cl}(be,ll)&&Hl.validateAction(wl,ll,Xe,m,o))return ll}}};g.element(Xe);){var tl=o.interactables.forEachMatch(Xe,Ta);if(tl){p.prepared.name="drag",p.interactable=tl,p.element=Xe;break}Xe=Da(Xe)}}}}}};function rr(i){var o=i.prepared&&i.prepared.name;if(!o)return null;var p=i.interactable.options;return p[o].hold||p[o].delay}var kr={id:"auto-start/hold",install:function(i){var o=i.defaults;i.usePlugin(Hl),o.perAction.hold=0,o.perAction.delay=0},listeners:{"interactions:new":function(i){i.interaction.autoStartHoldTimer=null},"autoStart:prepared":function(i){var o=i.interaction,p=rr(o);p>0&&(o.autoStartHoldTimer=setTimeout(function(){o.start(o.prepared,o.interactable,o.element)},p))},"interactions:move":function(i){var o=i.interaction,p=i.duplicate;o.autoStartHoldTimer&&o.pointerWasMoved&&!p&&(clearTimeout(o.autoStartHoldTimer),o.autoStartHoldTimer=null)},"autoStart:before-start":function(i){var o=i.interaction;rr(o)>0&&(o.prepared.name=null)}},getHoldDuration:rr},wr=kr,Er={id:"auto-start",install:function(i){i.usePlugin(Hl),i.usePlugin(wr),i.usePlugin(gr)}},un=function(i){return/^(always|never|auto)$/.test(i)?(this.options.preventDefault=i,this):g.bool(i)?(this.options.preventDefault=i?"always":"never",this):this.options.preventDefault};function Jr(i){var o=i.interaction,p=i.event;o.interactable&&o.interactable.checkAndPreventDefault(p)}var dn={id:"core/interactablePreventDefault",install:function(i){var o=i.Interactable;o.prototype.preventDefault=un,o.prototype.checkAndPreventDefault=function(p){return function(m,w,V){var q=m.options.preventDefault;if(q!=="never")if(q!=="always"){if(w.events.supportsPassive&&/^touch(start|move)$/.test(V.type)){var Y=L(V.target).document,fe=w.getDocOptions(Y);if(!fe||!fe.events||fe.events.passive!==!1)return}/^(mouse|pointer|touch)*(down|start)/i.test(V.type)||g.element(V.target)&&te(V.target,"input,select,textarea,[contenteditable=true],[contenteditable=true] *")||V.preventDefault()}else V.preventDefault()}(this,i,p)},i.interactions.docEvents.push({type:"dragstart",listener:function(p){for(var m=0,w=i.interactions.list;m<w.length;m++){var V=w[m];if(V.element&&(V.element===p.target||pe(V.element,p.target)))return void V.interactable.checkAndPreventDefault(p)}}})},listeners:["down","move","up","cancel"].reduce(function(i,o){return i["interactions:".concat(o)]=Jr,i},{})};function Xr(i,o){if(o.phaselessTypes[i])return!0;for(var p in o.map)if(i.indexOf(p)===0&&i.substr(p.length)in o.phases)return!0;return!1}function Ur(i){var o={};for(var p in i){var m=i[p];g.plainObject(m)?o[p]=Ur(m):g.array(m)?o[p]=Se(m):o[p]=m}return o}var pn=function(){function i(o){c(this,i),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=o,this.result=tn(),this.edges={left:!1,right:!1,top:!1,bottom:!1}}return h(i,[{key:"start",value:function(o,p){var m,w,V=o.phase,q=this.interaction,Y=function(Oe){var be=Oe.interactable.options[Oe.prepared.name],Xe=be.modifiers;return Xe&&Xe.length?Xe:["snap","snapSize","snapEdges","restrict","restrictEdges","restrictSize"].map(function(Ta){var tl=be[Ta];return tl&&tl.enabled&&{options:tl,methods:tl._methods}}).filter(function(Ta){return!!Ta})}(q);this.prepareStates(Y),this.startEdges=ee({},q.edges),this.edges=ee({},this.startEdges),this.startOffset=(m=q.rect,w=p,m?{left:w.x-m.left,top:w.y-m.top,right:m.right-w.x,bottom:m.bottom-w.y}:{left:0,top:0,right:0,bottom:0}),this.startDelta={x:0,y:0};var fe=this.fillArg({phase:V,pageCoords:p,preEnd:!1});return this.result=tn(),this.startAll(fe),this.result=this.setAll(fe)}},{key:"fillArg",value:function(o){var p=this.interaction;return o.interaction=p,o.interactable=p.interactable,o.element=p.element,o.rect||(o.rect=p.rect),o.edges||(o.edges=this.startEdges),o.startOffset=this.startOffset,o}},{key:"startAll",value:function(o){for(var p=0,m=this.states;p<m.length;p++){var w=m[p];w.methods.start&&(o.state=w,w.methods.start(o))}}},{key:"setAll",value:function(o){var p=o.phase,m=o.preEnd,w=o.skipModifiers,V=o.rect,q=o.edges;o.coords=ee({},o.pageCoords),o.rect=ee({},V),o.edges=ee({},q);for(var Y=w?this.states.slice(w):this.states,fe=tn(o.coords,o.rect),Oe=0;Oe<Y.length;Oe++){var be,Xe=Y[Oe],Ta=Xe.options,tl=ee({},o.coords),ll=null;(be=Xe.methods)!=null&&be.set&&this.shouldDo(Ta,m,p)&&(o.state=Xe,ll=Xe.methods.set(o),Ae(o.edges,o.rect,{x:o.coords.x-tl.x,y:o.coords.y-tl.y})),fe.eventProps.push(ll)}ee(this.edges,o.edges),fe.delta.x=o.coords.x-o.pageCoords.x,fe.delta.y=o.coords.y-o.pageCoords.y,fe.rectDelta.left=o.rect.left-V.left,fe.rectDelta.right=o.rect.right-V.right,fe.rectDelta.top=o.rect.top-V.top,fe.rectDelta.bottom=o.rect.bottom-V.bottom;var sl=this.result.coords,wl=this.result.rect;if(sl&&wl){var cl=fe.rect.left!==wl.left||fe.rect.right!==wl.right||fe.rect.top!==wl.top||fe.rect.bottom!==wl.bottom;fe.changed=cl||sl.x!==fe.coords.x||sl.y!==fe.coords.y}return fe}},{key:"applyToInteraction",value:function(o){var p=this.interaction,m=o.phase,w=p.coords.cur,V=p.coords.start,q=this.result,Y=this.startDelta,fe=q.delta;m==="start"&&ee(this.startDelta,q.delta);for(var Oe=0,be=[[V,Y],[w,fe]];Oe<be.length;Oe++){var Xe=be[Oe],Ta=Xe[0],tl=Xe[1];Ta.page.x+=tl.x,Ta.page.y+=tl.y,Ta.client.x+=tl.x,Ta.client.y+=tl.y}var ll=this.result.rectDelta,sl=o.rect||p.rect;sl.left+=ll.left,sl.right+=ll.right,sl.top+=ll.top,sl.bottom+=ll.bottom,sl.width=sl.right-sl.left,sl.height=sl.bottom-sl.top}},{key:"setAndApply",value:function(o){var p=this.interaction,m=o.phase,w=o.preEnd,V=o.skipModifiers,q=this.setAll(this.fillArg({preEnd:w,phase:m,pageCoords:o.modifiedCoords||p.coords.cur.page}));if(this.result=q,!q.changed&&(!V||V<this.states.length)&&p.interacting())return!1;if(o.modifiedCoords){var Y=p.coords.cur.page,fe={x:o.modifiedCoords.x-Y.x,y:o.modifiedCoords.y-Y.y};q.coords.x+=fe.x,q.coords.y+=fe.y,q.delta.x+=fe.x,q.delta.y+=fe.y}this.applyToInteraction(o)}},{key:"beforeEnd",value:function(o){var p=o.interaction,m=o.event,w=this.states;if(w&&w.length){for(var V=!1,q=0;q<w.length;q++){var Y=w[q];o.state=Y;var fe=Y.options,Oe=Y.methods,be=Oe.beforeEnd&&Oe.beforeEnd(o);if(be)return this.endResult=be,!1;V=V||!V&&this.shouldDo(fe,!0,o.phase,!0)}V&&p.move({event:m,preEnd:!0})}}},{key:"stop",value:function(o){var p=o.interaction;if(this.states&&this.states.length){var m=ee({states:this.states,interactable:p.interactable,element:p.element,rect:null},o);this.fillArg(m);for(var w=0,V=this.states;w<V.length;w++){var q=V[w];m.state=q,q.methods.stop&&q.methods.stop(m)}this.states=null,this.endResult=null}}},{key:"prepareStates",value:function(o){this.states=[];for(var p=0;p<o.length;p++){var m=o[p],w=m.options,V=m.methods,q=m.name;this.states.push({options:w,methods:V,index:p,name:q})}return this.states}},{key:"restoreInteractionCoords",value:function(o){var p=o.interaction,m=p.coords,w=p.rect,V=p.modification;if(V.result){for(var q=V.startDelta,Y=V.result,fe=Y.delta,Oe=Y.rectDelta,be=0,Xe=[[m.start,q],[m.cur,fe]];be<Xe.length;be++){var Ta=Xe[be],tl=Ta[0],ll=Ta[1];tl.page.x-=ll.x,tl.page.y-=ll.y,tl.client.x-=ll.x,tl.client.y-=ll.y}w.left-=Oe.left,w.right-=Oe.right,w.top-=Oe.top,w.bottom-=Oe.bottom}}},{key:"shouldDo",value:function(o,p,m,w){return!(!o||o.enabled===!1||w&&!o.endOnly||o.endOnly&&!p||m==="start"&&!o.setStart)}},{key:"copyFrom",value:function(o){this.startOffset=o.startOffset,this.startDelta=o.startDelta,this.startEdges=o.startEdges,this.edges=o.edges,this.states=o.states.map(function(p){return Ur(p)}),this.result=tn(ee({},o.result.coords),ee({},o.result.rect))}},{key:"destroy",value:function(){for(var o in this)this[o]=null}}]),i}();function tn(i,o){return{rect:o,coords:i,delta:{x:0,y:0},rectDelta:{left:0,right:0,top:0,bottom:0},eventProps:[],changed:!0}}function Dr(i,o){var p=i.defaults,m={start:i.start,set:i.set,beforeEnd:i.beforeEnd,stop:i.stop},w=function(V){var q=V||{};for(var Y in q.enabled=q.enabled!==!1,p)Y in q||(q[Y]=p[Y]);var fe={options:q,methods:m,name:o,enable:function(){return q.enabled=!0,fe},disable:function(){return q.enabled=!1,fe}};return fe};return o&&typeof o=="string"&&(w._defaults=p,w._methods=m),w}function Zr(i){var o=i.iEvent,p=i.interaction.modification.result;p&&(o.modifiers=p.eventProps)}var Br={id:"modifiers/base",before:["actions"],install:function(i){i.defaults.perAction.modifiers=[]},listeners:{"interactions:new":function(i){var o=i.interaction;o.modification=new pn(o)},"interactions:before-action-start":function(i){var o=i.interaction,p=i.interaction.modification;p.start(i,o.coords.start.page),o.edges=p.edges,p.applyToInteraction(i)},"interactions:before-action-move":function(i){var o=i.interaction,p=o.modification,m=p.setAndApply(i);return o.edges=p.edges,m},"interactions:before-action-end":function(i){var o=i.interaction,p=o.modification,m=p.beforeEnd(i);return o.edges=p.startEdges,m},"interactions:action-start":Zr,"interactions:action-move":Zr,"interactions:action-end":Zr,"interactions:after-action-start":function(i){return i.interaction.modification.restoreInteractionCoords(i)},"interactions:after-action-move":function(i){return i.interaction.modification.restoreInteractionCoords(i)},"interactions:stop":function(i){return i.interaction.modification.stop(i)}}},Il=Br,qr={base:{preventDefault:"auto",deltaSource:"page"},perAction:{enabled:!1,origin:{x:0,y:0}},actions:{}},Nr=function(i){y(p,i);var o=M(p);function p(m,w,V,q,Y,fe,Oe){var be;c(this,p),(be=o.call(this,m)).relatedTarget=null,be.screenX=void 0,be.screenY=void 0,be.button=void 0,be.buttons=void 0,be.ctrlKey=void 0,be.shiftKey=void 0,be.altKey=void 0,be.metaKey=void 0,be.page=void 0,be.client=void 0,be.delta=void 0,be.rect=void 0,be.x0=void 0,be.y0=void 0,be.t0=void 0,be.dt=void 0,be.duration=void 0,be.clientX0=void 0,be.clientY0=void 0,be.velocity=void 0,be.speed=void 0,be.swipe=void 0,be.axes=void 0,be.preEnd=void 0,Y=Y||m.element;var Xe=m.interactable,Ta=(Xe&&Xe.options||qr).deltaSource,tl=$e(Xe,Y,V),ll=q==="start",sl=q==="end",wl=ll?S(be):m.prevEvent,cl=ll?m.coords.start:sl?{page:wl.page,client:wl.client,timeStamp:m.coords.cur.timeStamp}:m.coords.cur;return be.page=ee({},cl.page),be.client=ee({},cl.client),be.rect=ee({},m.rect),be.timeStamp=cl.timeStamp,sl||(be.page.x-=tl.x,be.page.y-=tl.y,be.client.x-=tl.x,be.client.y-=tl.y),be.ctrlKey=w.ctrlKey,be.altKey=w.altKey,be.shiftKey=w.shiftKey,be.metaKey=w.metaKey,be.button=w.button,be.buttons=w.buttons,be.target=Y,be.currentTarget=Y,be.preEnd=fe,be.type=Oe||V+(q||""),be.interactable=Xe,be.t0=ll?m.pointers[m.pointers.length-1].downTime:wl.t0,be.x0=m.coords.start.page.x-tl.x,be.y0=m.coords.start.page.y-tl.y,be.clientX0=m.coords.start.client.x-tl.x,be.clientY0=m.coords.start.client.y-tl.y,be.delta=ll||sl?{x:0,y:0}:{x:be[Ta].x-wl[Ta].x,y:be[Ta].y-wl[Ta].y},be.dt=m.coords.delta.timeStamp,be.duration=be.timeStamp-be.t0,be.velocity=ee({},m.coords.velocity[Ta]),be.speed=Ia(be.velocity.x,be.velocity.y),be.swipe=sl||q==="inertiastart"?be.getSwipe():null,be}return h(p,[{key:"getSwipe",value:function(){var m=this._interaction;if(m.prevEvent.speed<600||this.timeStamp-m.prevEvent.timeStamp>150)return null;var w=180*Math.atan2(m.prevEvent.velocityY,m.prevEvent.velocityX)/Math.PI;w<0&&(w+=360);var V=112.5<=w&&w<247.5,q=202.5<=w&&w<337.5;return{up:q,down:!q&&22.5<=w&&w<157.5,left:V,right:!V&&(292.5<=w||w<67.5),angle:w,speed:m.prevEvent.speed,velocity:{x:m.prevEvent.velocityX,y:m.prevEvent.velocityY}}}},{key:"preventDefault",value:function(){}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}}]),p}(da);Object.defineProperties(Nr.prototype,{pageX:{get:function(){return this.page.x},set:function(i){this.page.x=i}},pageY:{get:function(){return this.page.y},set:function(i){this.page.y=i}},clientX:{get:function(){return this.client.x},set:function(i){this.client.x=i}},clientY:{get:function(){return this.client.y},set:function(i){this.client.y=i}},dx:{get:function(){return this.delta.x},set:function(i){this.delta.x=i}},dy:{get:function(){return this.delta.y},set:function(i){this.delta.y=i}},velocityX:{get:function(){return this.velocity.x},set:function(i){this.velocity.x=i}},velocityY:{get:function(){return this.velocity.y},set:function(i){this.velocity.y=i}}});var vn=h(function i(o,p,m,w,V){c(this,i),this.id=void 0,this.pointer=void 0,this.event=void 0,this.downTime=void 0,this.downTarget=void 0,this.id=o,this.pointer=p,this.event=m,this.downTime=w,this.downTarget=V}),tt=function(i){return i.interactable="",i.element="",i.prepared="",i.pointerIsDown="",i.pointerWasMoved="",i._proxy="",i}({}),Wn=function(i){return i.start="",i.move="",i.end="",i.stop="",i.interacting="",i}({}),In=0,mn=function(){function i(o){var p=this,m=o.pointerType,w=o.scopeFire;c(this,i),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=Na(function(be){this.move(be)},"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=In++,this._scopeFire=w,this.pointerType=m;var V=this;this._proxy={};var q=function(be){Object.defineProperty(p._proxy,be,{get:function(){return V[be]}})};for(var Y in tt)q(Y);var fe=function(be){Object.defineProperty(p._proxy,be,{value:function(){return V[be].apply(V,arguments)}})};for(var Oe in Wn)fe(Oe);this._scopeFire("interactions:new",{interaction:this})}return h(i,[{key:"pointerMoveTolerance",get:function(){return 1}},{key:"pointerDown",value:function(o,p,m){var w=this.updatePointer(o,p,m,!0),V=this.pointers[w];this._scopeFire("interactions:down",{pointer:o,event:p,eventTarget:m,pointerIndex:w,pointerInfo:V,type:"down",interaction:this})}},{key:"start",value:function(o,p,m){return!(this.interacting()||!this.pointerIsDown||this.pointers.length<(o.name==="gesture"?2:1)||!p.options[o.name].enabled)&&(Ua(this.prepared,o),this.interactable=p,this.element=m,this.rect=p.getRect(m),this.edges=this.prepared.edges?ee({},this.prepared.edges):{left:!0,right:!0,top:!0,bottom:!0},this._stopped=!1,this._interacting=this._doPhase({interaction:this,event:this.downEvent,phase:"start"})&&!this._stopped,this._interacting)}},{key:"pointerMove",value:function(o,p,m){this.simulation||this.modification&&this.modification.endResult||this.updatePointer(o,p,m,!1);var w,V,q=this.coords.cur.page.x===this.coords.prev.page.x&&this.coords.cur.page.y===this.coords.prev.page.y&&this.coords.cur.client.x===this.coords.prev.client.x&&this.coords.cur.client.y===this.coords.prev.client.y;this.pointerIsDown&&!this.pointerWasMoved&&(w=this.coords.cur.client.x-this.coords.start.client.x,V=this.coords.cur.client.y-this.coords.start.client.y,this.pointerWasMoved=Ia(w,V)>this.pointerMoveTolerance);var Y,fe,Oe,be=this.getPointerIndex(o),Xe={pointer:o,pointerIndex:be,pointerInfo:this.pointers[be],event:p,type:"move",eventTarget:m,dx:w,dy:V,duplicate:q,interaction:this};q||(Y=this.coords.velocity,fe=this.coords.delta,Oe=Math.max(fe.timeStamp/1e3,.001),Y.page.x=fe.page.x/Oe,Y.page.y=fe.page.y/Oe,Y.client.x=fe.client.x/Oe,Y.client.y=fe.client.y/Oe,Y.timeStamp=Oe),this._scopeFire("interactions:move",Xe),q||this.simulation||(this.interacting()&&(Xe.type=null,this.move(Xe)),this.pointerWasMoved&&G(this.coords.prev,this.coords.cur))}},{key:"move",value:function(o){o&&o.event||ie(this.coords.delta),(o=ee({pointer:this._latestPointer.pointer,event:this._latestPointer.event,eventTarget:this._latestPointer.eventTarget,interaction:this},o||{})).phase="move",this._doPhase(o)}},{key:"pointerUp",value:function(o,p,m,w){var V=this.getPointerIndex(o);V===-1&&(V=this.updatePointer(o,p,m,!1));var q=/cancel$/i.test(p.type)?"cancel":"up";this._scopeFire("interactions:".concat(q),{pointer:o,pointerIndex:V,pointerInfo:this.pointers[V],event:p,eventTarget:m,type:q,curEventTarget:w,interaction:this}),this.simulation||this.end(p),this.removePointer(o,p)}},{key:"documentBlur",value:function(o){this.end(o),this._scopeFire("interactions:blur",{event:o,type:"blur",interaction:this})}},{key:"end",value:function(o){var p;this._ending=!0,o=o||this._latestPointer.event,this.interacting()&&(p=this._doPhase({event:o,interaction:this,phase:"end"})),this._ending=!1,p===!0&&this.stop()}},{key:"currentAction",value:function(){return this._interacting?this.prepared.name:null}},{key:"interacting",value:function(){return this._interacting}},{key:"stop",value:function(){this._scopeFire("interactions:stop",{interaction:this}),this.interactable=this.element=null,this._interacting=!1,this._stopped=!0,this.prepared.name=this.prevEvent=null}},{key:"getPointerIndex",value:function(o){var p=Ie(o);return this.pointerType==="mouse"||this.pointerType==="pen"?this.pointers.length-1:K(this.pointers,function(m){return m.id===p})}},{key:"getPointerInfo",value:function(o){return this.pointers[this.getPointerIndex(o)]}},{key:"updatePointer",value:function(o,p,m,w){var V,q,Y,fe=Ie(o),Oe=this.getPointerIndex(o),be=this.pointers[Oe];return w=w!==!1&&(w||/(down|start)$/i.test(p.type)),be?be.pointer=o:(be=new vn(fe,o,p,null,null),Oe=this.pointers.length,this.pointers.push(be)),Ce(this.coords.cur,this.pointers.map(function(Xe){return Xe.pointer}),this._now()),V=this.coords.delta,q=this.coords.prev,Y=this.coords.cur,V.page.x=Y.page.x-q.page.x,V.page.y=Y.page.y-q.page.y,V.client.x=Y.client.x-q.client.x,V.client.y=Y.client.y-q.client.y,V.timeStamp=Y.timeStamp-q.timeStamp,w&&(this.pointerIsDown=!0,be.downTime=this.coords.cur.timeStamp,be.downTarget=m,F(this.downPointer,o),this.interacting()||(G(this.coords.start,this.coords.cur),G(this.coords.prev,this.coords.cur),this.downEvent=p,this.pointerWasMoved=!1)),this._updateLatestPointer(o,p,m),this._scopeFire("interactions:update-pointer",{pointer:o,event:p,eventTarget:m,down:w,pointerInfo:be,pointerIndex:Oe,interaction:this}),Oe}},{key:"removePointer",value:function(o,p){var m=this.getPointerIndex(o);if(m!==-1){var w=this.pointers[m];this._scopeFire("interactions:remove-pointer",{pointer:o,event:p,eventTarget:null,pointerIndex:m,pointerInfo:w,interaction:this}),this.pointers.splice(m,1),this.pointerIsDown=!1}}},{key:"_updateLatestPointer",value:function(o,p,m){this._latestPointer.pointer=o,this._latestPointer.event=p,this._latestPointer.eventTarget=m}},{key:"destroy",value:function(){this._latestPointer.pointer=null,this._latestPointer.event=null,this._latestPointer.eventTarget=null}},{key:"_createPreparedEvent",value:function(o,p,m,w){return new Nr(this,o,this.prepared.name,p,this.element,m,w)}},{key:"_fireEvent",value:function(o){var p;(p=this.interactable)==null||p.fire(o),(!this.prevEvent||o.timeStamp>=this.prevEvent.timeStamp)&&(this.prevEvent=o)}},{key:"_doPhase",value:function(o){var p=o.event,m=o.phase,w=o.preEnd,V=o.type,q=this.rect;if(q&&m==="move"&&(Ae(this.edges,q,this.coords.delta[this.interactable.options.deltaSource]),q.width=q.right-q.left,q.height=q.bottom-q.top),this._scopeFire("interactions:before-action-".concat(m),o)===!1)return!1;var Y=o.iEvent=this._createPreparedEvent(p,m,w,V);return this._scopeFire("interactions:action-".concat(m),o),m==="start"&&(this.prevEvent=Y),this._fireEvent(Y),this._scopeFire("interactions:after-action-".concat(m),o),!0}},{key:"_now",value:function(){return Date.now()}}]),i}();function Zl(i){xr(i.interaction)}function xr(i){if(!function(p){return!(!p.offset.pending.x&&!p.offset.pending.y)}(i))return!1;var o=i.offset.pending;return jl(i.coords.cur,o),jl(i.coords.delta,o),Ae(i.edges,i.rect,o),o.x=0,o.y=0,!0}function Vl(i){var o=i.x,p=i.y;this.offset.pending.x+=o,this.offset.pending.y+=p,this.offset.total.x+=o,this.offset.total.y+=p}function jl(i,o){var p=i.page,m=i.client,w=o.x,V=o.y;p.x+=w,p.y+=V,m.x+=w,m.y+=V}Wn.offsetBy="";var zl={id:"offset",before:["modifiers","pointer-events","actions","inertia"],install:function(i){i.Interaction.prototype.offsetBy=Vl},listeners:{"interactions:new":function(i){i.interaction.offset={total:{x:0,y:0},pending:{x:0,y:0}}},"interactions:update-pointer":function(i){return function(o){o.pointerIsDown&&(jl(o.coords.cur,o.offset.total),o.offset.pending.x=0,o.offset.pending.y=0)}(i.interaction)},"interactions:before-action-start":Zl,"interactions:before-action-move":Zl,"interactions:before-action-end":function(i){var o=i.interaction;if(xr(o))return o.move({offset:!0}),o.end(),!1},"interactions:stop":function(i){var o=i.interaction;o.offset.total.x=0,o.offset.total.y=0,o.offset.pending.x=0,o.offset.pending.y=0}}},cr=zl,ar=function(){function i(o){c(this,i),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=o}return h(i,[{key:"start",value:function(o){var p=this.interaction,m=Rl(p);if(!m||!m.enabled)return!1;var w=p.coords.velocity.client,V=Ia(w.x,w.y),q=this.modification||(this.modification=new pn(p));if(q.copyFrom(p.modification),this.t0=p._now(),this.allowResume=m.allowResume,this.v0=V,this.currentOffset={x:0,y:0},this.startCoords=p.coords.cur.page,this.modifierArg=q.fillArg({pageCoords:this.startCoords,preEnd:!0,phase:"inertiastart"}),this.t0-p.coords.cur.timeStamp<50&&V>m.minSpeed&&V>m.endSpeed)this.startInertia();else{if(q.result=q.setAll(this.modifierArg),!q.result.changed)return!1;this.startSmoothEnd()}return p.modification.result.rect=null,p.offsetBy(this.targetOffset),p._doPhase({interaction:p,event:o,phase:"inertiastart"}),p.offsetBy({x:-this.targetOffset.x,y:-this.targetOffset.y}),p.modification.result.rect=null,this.active=!0,p.simulation=this,!0}},{key:"startInertia",value:function(){var o=this,p=this.interaction.coords.velocity.client,m=Rl(this.interaction),w=m.resistance,V=-Math.log(m.endSpeed/this.v0)/w;this.targetOffset={x:(p.x-V)/w,y:(p.y-V)/w},this.te=V,this.lambda_v0=w/this.v0,this.one_ve_v0=1-m.endSpeed/this.v0;var q=this.modification,Y=this.modifierArg;Y.pageCoords={x:this.startCoords.x+this.targetOffset.x,y:this.startCoords.y+this.targetOffset.y},q.result=q.setAll(Y),q.result.changed&&(this.isModified=!0,this.modifiedOffset={x:this.targetOffset.x+q.result.delta.x,y:this.targetOffset.y+q.result.delta.y}),this.onNextFrame(function(){return o.inertiaTick()})}},{key:"startSmoothEnd",value:function(){var o=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 o.smoothEndTick()})}},{key:"onNextFrame",value:function(o){var p=this;this.timeout=oa.request(function(){p.active&&o()})}},{key:"inertiaTick",value:function(){var o,p,m,w,V,q,Y,fe=this,Oe=this.interaction,be=Rl(Oe).resistance,Xe=(Oe._now()-this.t0)/1e3;if(Xe<this.te){var Ta,tl=1-(Math.exp(-be*Xe)-this.lambda_v0)/this.one_ve_v0;this.isModified?(o=0,p=0,m=this.targetOffset.x,w=this.targetOffset.y,V=this.modifiedOffset.x,q=this.modifiedOffset.y,Ta={x:Mr(Y=tl,o,m,V),y:Mr(Y,p,w,q)}):Ta={x:this.targetOffset.x*tl,y:this.targetOffset.y*tl};var ll={x:Ta.x-this.currentOffset.x,y:Ta.y-this.currentOffset.y};this.currentOffset.x+=ll.x,this.currentOffset.y+=ll.y,Oe.offsetBy(ll),Oe.move(),this.onNextFrame(function(){return fe.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 o=this,p=this.interaction,m=p._now()-this.t0,w=Rl(p).smoothEndDuration;if(m<w){var V={x:yn(m,0,this.targetOffset.x,w),y:yn(m,0,this.targetOffset.y,w)},q={x:V.x-this.currentOffset.x,y:V.y-this.currentOffset.y};this.currentOffset.x+=q.x,this.currentOffset.y+=q.y,p.offsetBy(q),p.move({skipModifiers:this.modifierCount}),this.onNextFrame(function(){return o.smoothEndTick()})}else p.offsetBy({x:this.targetOffset.x-this.currentOffset.x,y:this.targetOffset.y-this.currentOffset.y}),this.end()}},{key:"resume",value:function(o){var p=o.pointer,m=o.event,w=o.eventTarget,V=this.interaction;V.offsetBy({x:-this.currentOffset.x,y:-this.currentOffset.y}),V.updatePointer(p,m,w,!0),V._doPhase({interaction:V,event:m,phase:"resume"}),G(V.coords.prev,V.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,oa.cancel(this.timeout)}}]),i}();function Rl(i){var o=i.interactable,p=i.prepared;return o&&o.options&&p.name&&o.options[p.name].inertia}var zr={id:"inertia",before:["modifiers","actions"],install:function(i){var o=i.defaults;i.usePlugin(cr),i.usePlugin(Il),i.actions.phases.inertiastart=!0,i.actions.phases.resume=!0,o.perAction.inertia={enabled:!1,resistance:10,minSpeed:100,endSpeed:10,allowResume:!0,smoothEndDuration:300}},listeners:{"interactions:new":function(i){var o=i.interaction;o.inertia=new ar(o)},"interactions:before-action-end":function(i){var o=i.interaction,p=i.event;return(!o._interacting||o.simulation||!o.inertia.start(p))&&null},"interactions:down":function(i){var o=i.interaction,p=i.eventTarget,m=o.inertia;if(m.active)for(var w=p;g.element(w);){if(w===o.element){m.resume(i);break}w=Da(w)}},"interactions:stop":function(i){var o=i.interaction.inertia;o.active&&o.stop()},"interactions:before-action-resume":function(i){var o=i.interaction.modification;o.stop(i),o.start(i,i.interaction.coords.cur.page),o.applyToInteraction(i)},"interactions:before-action-inertiastart":function(i){return i.interaction.modification.setAndApply(i)},"interactions:action-resume":Zr,"interactions:action-inertiastart":Zr,"interactions:after-action-inertiastart":function(i){return i.interaction.modification.restoreInteractionCoords(i)},"interactions:after-action-resume":function(i){return i.interaction.modification.restoreInteractionCoords(i)}}};function Mr(i,o,p,m){var w=1-i;return w*w*o+2*w*i*p+i*i*m}function yn(i,o,p,m){return-p*(i/=m)*(i-2)+o}var Qr=zr;function Kn(i,o){for(var p=0;p<o.length;p++){var m=o[p];if(i.immediatePropagationStopped)break;m(i)}}var Sn=function(){function i(o){c(this,i),this.options=void 0,this.types={},this.propagationStopped=!1,this.immediatePropagationStopped=!1,this.global=void 0,this.options=ee({},o||{})}return h(i,[{key:"fire",value:function(o){var p,m=this.global;(p=this.types[o.type])&&Kn(o,p),!o.propagationStopped&&m&&(p=m[o.type])&&Kn(o,p)}},{key:"on",value:function(o,p){var m=Ge(o,p);for(o in m)this.types[o]=re(this.types[o]||[],m[o])}},{key:"off",value:function(o,p){var m=Ge(o,p);for(o in m){var w=this.types[o];if(w&&w.length)for(var V=0,q=m[o];V<q.length;V++){var Y=q[V],fe=w.indexOf(Y);fe!==-1&&w.splice(fe,1)}}}},{key:"getRect",value:function(o){return null}}]),i}(),Yn=function(){function i(o){c(this,i),this.currentTarget=void 0,this.originalEvent=void 0,this.type=void 0,this.originalEvent=o,F(this,o)}return h(i,[{key:"preventOriginalDefault",value:function(){this.originalEvent.preventDefault()}},{key:"stopPropagation",value:function(){this.originalEvent.stopPropagation()}},{key:"stopImmediatePropagation",value:function(){this.originalEvent.stopImmediatePropagation()}}]),i}();function gn(i){return g.object(i)?{capture:!!i.capture,passive:!!i.passive}:{capture:!!i,passive:!1}}function Dn(i,o){return i===o||(typeof i=="boolean"?!!o.capture===i&&!o.passive:!!i.capture==!!o.capture&&!!i.passive==!!o.passive)}var Ln={id:"events",install:function(i){var o,p=[],m={},w=[],V={add:q,remove:Y,addDelegate:function(be,Xe,Ta,tl,ll){var sl=gn(ll);if(!m[Ta]){m[Ta]=[];for(var wl=0;wl<w.length;wl++){var cl=w[wl];q(cl,Ta,fe),q(cl,Ta,Oe,!0)}}var Bl=m[Ta],Ml=je(Bl,function(Kl){return Kl.selector===be&&Kl.context===Xe});Ml||(Ml={selector:be,context:Xe,listeners:[]},Bl.push(Ml)),Ml.listeners.push({func:tl,options:sl})},removeDelegate:function(be,Xe,Ta,tl,ll){var sl,wl=gn(ll),cl=m[Ta],Bl=!1;if(cl)for(sl=cl.length-1;sl>=0;sl--){var Ml=cl[sl];if(Ml.selector===be&&Ml.context===Xe){for(var Kl=Ml.listeners,Dl=Kl.length-1;Dl>=0;Dl--){var Fl=Kl[Dl];if(Fl.func===tl&&Dn(Fl.options,wl)){Kl.splice(Dl,1),Kl.length||(cl.splice(sl,1),Y(Xe,Ta,fe),Y(Xe,Ta,Oe,!0)),Bl=!0;break}}if(Bl)break}}},delegateListener:fe,delegateUseCapture:Oe,delegatedEvents:m,documents:w,targets:p,supportsOptions:!1,supportsPassive:!1};function q(be,Xe,Ta,tl){if(be.addEventListener){var ll=gn(tl),sl=je(p,function(wl){return wl.eventTarget===be});sl||(sl={eventTarget:be,events:{}},p.push(sl)),sl.events[Xe]||(sl.events[Xe]=[]),je(sl.events[Xe],function(wl){return wl.func===Ta&&Dn(wl.options,ll)})||(be.addEventListener(Xe,Ta,V.supportsOptions?ll:ll.capture),sl.events[Xe].push({func:Ta,options:ll}))}}function Y(be,Xe,Ta,tl){if(be.addEventListener&&be.removeEventListener){var ll=K(p,function(Ir){return Ir.eventTarget===be}),sl=p[ll];if(sl&&sl.events)if(Xe!=="all"){var wl=!1,cl=sl.events[Xe];if(cl){if(Ta==="all"){for(var Bl=cl.length-1;Bl>=0;Bl--){var Ml=cl[Bl];Y(be,Xe,Ml.func,Ml.options)}return}for(var Kl=gn(tl),Dl=0;Dl<cl.length;Dl++){var Fl=cl[Dl];if(Fl.func===Ta&&Dn(Fl.options,Kl)){be.removeEventListener(Xe,Ta,V.supportsOptions?Kl:Kl.capture),cl.splice(Dl,1),cl.length===0&&(delete sl.events[Xe],wl=!0);break}}}wl&&!Object.keys(sl.events).length&&p.splice(ll,1)}else for(Xe in sl.events)sl.events.hasOwnProperty(Xe)&&Y(be,Xe,"all")}}function fe(be,Xe){for(var Ta=gn(Xe),tl=new Yn(be),ll=m[be.type],sl=Le(be)[0],wl=sl;g.element(wl);){for(var cl=0;cl<ll.length;cl++){var Bl=ll[cl],Ml=Bl.selector,Kl=Bl.context;if(te(wl,Ml)&&pe(Kl,sl)&&pe(Kl,wl)){var Dl=Bl.listeners;tl.currentTarget=wl;for(var Fl=0;Fl<Dl.length;Fl++){var Ir=Dl[Fl];Dn(Ir.options,Ta)&&Ir.func(tl)}}}wl=Da(wl)}}function Oe(be){return fe(be,!0)}return(o=i.document)==null||o.createElement("div").addEventListener("test",null,{get capture(){return V.supportsOptions=!0},get passive(){return V.supportsPassive=!0}}),i.events=V,V}},Wr={methodOrder:["simulationResume","mouseOrPen","hasPointer","idle"],search:function(i){for(var o=0,p=Wr.methodOrder;o<p.length;o++){var m=p[o],w=Wr[m](i);if(w)return w}return null},simulationResume:function(i){var o=i.pointerType,p=i.eventType,m=i.eventTarget,w=i.scope;if(!/down|start/i.test(p))return null;for(var V=0,q=w.interactions.list;V<q.length;V++){var Y=q[V],fe=m;if(Y.simulation&&Y.simulation.allowResume&&Y.pointerType===o)for(;fe;){if(fe===Y.element)return Y;fe=Da(fe)}}return null},mouseOrPen:function(i){var o,p=i.pointerId,m=i.pointerType,w=i.eventType,V=i.scope;if(m!=="mouse"&&m!=="pen")return null;for(var q=0,Y=V.interactions.list;q<Y.length;q++){var fe=Y[q];if(fe.pointerType===m){if(fe.simulation&&!Bn(fe,p))continue;if(fe.interacting())return fe;o||(o=fe)}}if(o)return o;for(var Oe=0,be=V.interactions.list;Oe<be.length;Oe++){var Xe=be[Oe];if(!(Xe.pointerType!==m||/down/i.test(w)&&Xe.simulation))return Xe}return null},hasPointer:function(i){for(var o=i.pointerId,p=0,m=i.scope.interactions.list;p<m.length;p++){var w=m[p];if(Bn(w,o))return w}return null},idle:function(i){for(var o=i.pointerType,p=0,m=i.scope.interactions.list;p<m.length;p++){var w=m[p];if(w.pointers.length===1){var V=w.interactable;if(V&&(!V.options.gesture||!V.options.gesture.enabled))continue}else if(w.pointers.length>=2)continue;if(!w.interacting()&&o===w.pointerType)return w}return null}};function Bn(i,o){return i.pointers.some(function(p){return p.id===o})}var bn=Wr,Rr=["pointerDown","pointerMove","pointerUp","updatePointer","removePointer","windowBlur"];function Vn(i,o){return function(p){var m=o.interactions.list,w=ba(p),V=Le(p),q=V[0],Y=V[1],fe=[];if(/^touch/.test(p.type)){o.prevTouchTime=o.now();for(var Oe=0,be=p.changedTouches;Oe<be.length;Oe++){var Xe=be[Oe],Ta={pointer:Xe,pointerId:Ie(Xe),pointerType:w,eventType:p.type,eventTarget:q,curEventTarget:Y,scope:o},tl=fn(Ta);fe.push([Ta.pointer,Ta.eventTarget,Ta.curEventTarget,tl])}}else{var ll=!1;if(!X.supportsPointerEvent&&/mouse/.test(p.type)){for(var sl=0;sl<m.length&&!ll;sl++)ll=m[sl].pointerType!=="mouse"&&m[sl].pointerIsDown;ll=ll||o.now()-o.prevTouchTime<500||p.timeStamp===0}if(!ll){var wl={pointer:p,pointerId:Ie(p),pointerType:w,eventType:p.type,curEventTarget:Y,eventTarget:q,scope:o},cl=fn(wl);fe.push([wl.pointer,wl.eventTarget,wl.curEventTarget,cl])}}for(var Bl=0;Bl<fe.length;Bl++){var Ml=fe[Bl],Kl=Ml[0],Dl=Ml[1],Fl=Ml[2];Ml[3][i](Kl,p,Dl,Fl)}}}function fn(i){var o=i.pointerType,p=i.scope,m={interaction:bn.search(i),searchDetails:i};return p.fire("interactions:find",m),m.interaction||p.interactions.new({pointerType:o})}function St(i,o){var p=i.doc,m=i.scope,w=i.options,V=m.interactions.docEvents,q=m.events,Y=q[o];for(var fe in m.browser.isIOS&&!w.events&&(w.events={passive:!1}),q.delegatedEvents)Y(p,fe,q.delegateListener),Y(p,fe,q.delegateUseCapture,!0);for(var Oe=w&&w.events,be=0;be<V.length;be++){var Xe=V[be];Y(p,Xe.type,Xe.listener,Oe)}}var Ao={id:"core/interactions",install:function(i){for(var o={},p=0;p<Rr.length;p++){var m=Rr[p];o[m]=Vn(m,i)}var w,V=X.pEventTypes;function q(){for(var Y=0,fe=i.interactions.list;Y<fe.length;Y++){var Oe=fe[Y];if(Oe.pointerIsDown&&Oe.pointerType==="touch"&&!Oe._interacting)for(var be=function(){var tl=Ta[Xe];i.documents.some(function(ll){return pe(ll.doc,tl.downTarget)})||Oe.removePointer(tl.pointer,tl.event)},Xe=0,Ta=Oe.pointers;Xe<Ta.length;Xe++)be()}}(w=ne.PointerEvent?[{type:V.down,listener:q},{type:V.down,listener:o.pointerDown},{type:V.move,listener:o.pointerMove},{type:V.up,listener:o.pointerUp},{type:V.cancel,listener:o.pointerUp}]:[{type:"mousedown",listener:o.pointerDown},{type:"mousemove",listener:o.pointerMove},{type:"mouseup",listener:o.pointerUp},{type:"touchstart",listener:q},{type:"touchstart",listener:o.pointerDown},{type:"touchmove",listener:o.pointerMove},{type:"touchend",listener:o.pointerUp},{type:"touchcancel",listener:o.pointerUp}]).push({type:"blur",listener:function(Y){for(var fe=0,Oe=i.interactions.list;fe<Oe.length;fe++)Oe[fe].documentBlur(Y)}}),i.prevTouchTime=0,i.Interaction=function(Y){y(Oe,Y);var fe=M(Oe);function Oe(){return c(this,Oe),fe.apply(this,arguments)}return h(Oe,[{key:"pointerMoveTolerance",get:function(){return i.interactions.pointerMoveTolerance},set:function(be){i.interactions.pointerMoveTolerance=be}},{key:"_now",value:function(){return i.now()}}]),Oe}(mn),i.interactions={list:[],new:function(Y){Y.scopeFire=function(Oe,be){return i.fire(Oe,be)};var fe=new i.Interaction(Y);return i.interactions.list.push(fe),fe},listeners:o,docEvents:w,pointerMoveTolerance:1},i.usePlugin(dn)},listeners:{"scope:add-document":function(i){return St(i,"add")},"scope:remove-document":function(i){return St(i,"remove")},"interactable:unset":function(i,o){for(var p=i.interactable,m=o.interactions.list.length-1;m>=0;m--){var w=o.interactions.list[m];w.interactable===p&&(w.stop(),o.fire("interactions:destroy",{interaction:w}),w.destroy(),o.interactions.list.length>2&&o.interactions.list.splice(m,1))}}},onDocSignal:St,doOnInteractions:Vn,methodNames:Rr},zo=Ao,kn=function(i){return i[i.On=0]="On",i[i.Off=1]="Off",i}(kn||{}),Mo=function(){function i(o,p,m,w){c(this,i),this.target=void 0,this.options=void 0,this._actions=void 0,this.events=new Sn,this._context=void 0,this._win=void 0,this._doc=void 0,this._scopeEvents=void 0,this._actions=p.actions,this.target=o,this._context=p.context||m,this._win=L(Ha(o)?this._context:o),this._doc=this._win.document,this._scopeEvents=w,this.set(p)}return h(i,[{key:"_defaults",get:function(){return{base:{},perAction:{},actions:{}}}},{key:"setOnEvents",value:function(o,p){return g.func(p.onstart)&&this.on("".concat(o,"start"),p.onstart),g.func(p.onmove)&&this.on("".concat(o,"move"),p.onmove),g.func(p.onend)&&this.on("".concat(o,"end"),p.onend),g.func(p.oninertiastart)&&this.on("".concat(o,"inertiastart"),p.oninertiastart),this}},{key:"updatePerActionListeners",value:function(o,p,m){var w,V=this,q=(w=this._actions.map[o])==null?void 0:w.filterEventType,Y=function(fe){return(q==null||q(fe))&&Xr(fe,V._actions)};(g.array(p)||g.object(p))&&this._onOff(kn.Off,o,p,void 0,Y),(g.array(m)||g.object(m))&&this._onOff(kn.On,o,m,void 0,Y)}},{key:"setPerAction",value:function(o,p){var m=this._defaults;for(var w in p){var V=w,q=this.options[o],Y=p[V];V==="listeners"&&this.updatePerActionListeners(o,q.listeners,Y),g.array(Y)?q[V]=Se(Y):g.plainObject(Y)?(q[V]=ee(q[V]||{},Ur(Y)),g.object(m.perAction[V])&&"enabled"in m.perAction[V]&&(q[V].enabled=Y.enabled!==!1)):g.bool(Y)&&g.object(m.perAction[V])?q[V].enabled=Y:q[V]=Y}}},{key:"getRect",value:function(o){return o=o||(g.element(this.target)?this.target:null),g.string(this.target)&&(o=o||this._context.querySelector(this.target)),ia(o)}},{key:"rectChecker",value:function(o){var p=this;return g.func(o)?(this.getRect=function(m){var w=ee({},o.apply(p,m));return"width"in w||(w.width=w.right-w.left,w.height=w.bottom-w.top),w},this):o===null?(delete this.getRect,this):this.getRect}},{key:"_backCompatOption",value:function(o,p){if(Ha(p)||g.object(p)){for(var m in this.options[o]=p,this._actions.map)this.options[m][o]=p;return this}return this.options[o]}},{key:"origin",value:function(o){return this._backCompatOption("origin",o)}},{key:"deltaSource",value:function(o){return o==="page"||o==="client"?(this.options.deltaSource=o,this):this.options.deltaSource}},{key:"getAllElements",value:function(){var o=this.target;return g.string(o)?Array.from(this._context.querySelectorAll(o)):g.func(o)&&o.getAllElements?o.getAllElements():g.element(o)?[o]:[]}},{key:"context",value:function(){return this._context}},{key:"inContext",value:function(o){return this._context===o.ownerDocument||pe(this._context,o)}},{key:"testIgnoreAllow",value:function(o,p,m){return!this.testIgnore(o.ignoreFrom,p,m)&&this.testAllow(o.allowFrom,p,m)}},{key:"testAllow",value:function(o,p,m){return!o||!!g.element(m)&&(g.string(o)?ge(m,o,p):!!g.element(o)&&pe(o,m))}},{key:"testIgnore",value:function(o,p,m){return!(!o||!g.element(m))&&(g.string(o)?ge(m,o,p):!!g.element(o)&&pe(o,m))}},{key:"fire",value:function(o){return this.events.fire(o),this}},{key:"_onOff",value:function(o,p,m,w,V){g.object(p)&&!g.array(p)&&(w=m,m=null);var q=Ge(p,m,V);for(var Y in q){Y==="wheel"&&(Y=X.wheelEvent);for(var fe=0,Oe=q[Y];fe<Oe.length;fe++){var be=Oe[fe];Xr(Y,this._actions)?this.events[o===kn.On?"on":"off"](Y,be):g.string(this.target)?this._scopeEvents[o===kn.On?"addDelegate":"removeDelegate"](this.target,this._context,Y,be,w):this._scopeEvents[o===kn.On?"add":"remove"](this.target,Y,be,w)}}return this}},{key:"on",value:function(o,p,m){return this._onOff(kn.On,o,p,m)}},{key:"off",value:function(o,p,m){return this._onOff(kn.Off,o,p,m)}},{key:"set",value:function(o){var p=this._defaults;for(var m in g.object(o)||(o={}),this.options=Ur(p.base),this._actions.methodDict){var w=m,V=this._actions.methodDict[w];this.options[w]={},this.setPerAction(w,ee(ee({},p.perAction),p.actions[w])),this[V](o[w])}for(var q in o)q!=="getRect"?g.func(this[q])&&this[q](o[q]):this.rectChecker(o.getRect);return this}},{key:"unset",value:function(){if(g.string(this.target))for(var o in this._scopeEvents.delegatedEvents)for(var p=this._scopeEvents.delegatedEvents[o],m=p.length-1;m>=0;m--){var w=p[m],V=w.selector,q=w.context,Y=w.listeners;V===this.target&&q===this._context&&p.splice(m,1);for(var fe=Y.length-1;fe>=0;fe--)this._scopeEvents.removeDelegate(this.target,this._context,o,Y[fe][0],Y[fe][1])}else this._scopeEvents.remove(this.target,"all")}}]),i}(),Oo=function(){function i(o){var p=this;c(this,i),this.list=[],this.selectorMap={},this.scope=void 0,this.scope=o,o.addListeners({"interactable:unset":function(m){var w=m.interactable,V=w.target,q=g.string(V)?p.selectorMap[V]:V[p.scope.id],Y=K(q,function(fe){return fe===w});q.splice(Y,1)}})}return h(i,[{key:"new",value:function(o,p){p=ee(p||{},{actions:this.scope.actions});var m=new this.scope.Interactable(o,p,this.scope.document,this.scope.events);return this.scope.addDocument(m._doc),this.list.push(m),g.string(o)?(this.selectorMap[o]||(this.selectorMap[o]=[]),this.selectorMap[o].push(m)):(m.target[this.scope.id]||Object.defineProperty(o,this.scope.id,{value:[],configurable:!0}),o[this.scope.id].push(m)),this.scope.fire("interactable:new",{target:o,options:p,interactable:m,win:this.scope._win}),m}},{key:"getExisting",value:function(o,p){var m=p&&p.context||this.scope.document,w=g.string(o),V=w?this.selectorMap[o]:o[this.scope.id];if(V)return je(V,function(q){return q._context===m&&(w||q.inContext(o))})}},{key:"forEachMatch",value:function(o,p){for(var m=0,w=this.list;m<w.length;m++){var V=w[m],q=void 0;if((g.string(V.target)?g.element(o)&&te(o,V.target):o===V.target)&&V.inContext(o)&&(q=p(V)),q!==void 0)return q}}}]),i}(),Ft=function(){function i(){var o=this;c(this,i),this.id="__interact_scope_".concat(Math.floor(100*Math.random())),this.isInitialized=!1,this.listenerMaps=[],this.browser=X,this.defaults=Ur(qr),this.Eventable=Sn,this.actions={map:{},phases:{start:!0,move:!0,end:!0},methodDict:{},phaselessTypes:{}},this.interactStatic=function(m){var w=function V(q,Y){var fe=m.interactables.getExisting(q,Y);return fe||((fe=m.interactables.new(q,Y)).events.global=V.globalEvents),fe};return w.getPointerAverage=me,w.getTouchBBox=Je,w.getTouchDistance=Ze,w.getTouchAngle=Fe,w.getElementRect=ia,w.getElementClientRect=Ne,w.matchesSelector=te,w.closest=Ke,w.globalEvents={},w.version="1.10.27",w.scope=m,w.use=function(V,q){return this.scope.usePlugin(V,q),this},w.isSet=function(V,q){return!!this.scope.interactables.get(V,q&&q.context)},w.on=Na(function(V,q,Y){if(g.string(V)&&V.search(" ")!==-1&&(V=V.trim().split(/ +/)),g.array(V)){for(var fe=0,Oe=V;fe<Oe.length;fe++){var be=Oe[fe];this.on(be,q,Y)}return this}if(g.object(V)){for(var Xe in V)this.on(Xe,V[Xe],q);return this}return Xr(V,this.scope.actions)?this.globalEvents[V]?this.globalEvents[V].push(q):this.globalEvents[V]=[q]:this.scope.events.add(this.scope.document,V,q,{options:Y}),this},"The interact.on() method is being deprecated"),w.off=Na(function(V,q,Y){if(g.string(V)&&V.search(" ")!==-1&&(V=V.trim().split(/ +/)),g.array(V)){for(var fe=0,Oe=V;fe<Oe.length;fe++){var be=Oe[fe];this.off(be,q,Y)}return this}if(g.object(V)){for(var Xe in V)this.off(Xe,V[Xe],q);return this}var Ta;return Xr(V,this.scope.actions)?V in this.globalEvents&&(Ta=this.globalEvents[V].indexOf(q))!==-1&&this.globalEvents[V].splice(Ta,1):this.scope.events.remove(this.scope.document,V,q,Y),this},"The interact.off() method is being deprecated"),w.debug=function(){return this.scope},w.supportsTouch=function(){return X.supportsTouch},w.supportsPointerEvent=function(){return X.supportsPointerEvent},w.stop=function(){for(var V=0,q=this.scope.interactions.list;V<q.length;V++)q[V].stop();return this},w.pointerMoveTolerance=function(V){return g.number(V)?(this.scope.interactions.pointerMoveTolerance=V,this):this.scope.interactions.pointerMoveTolerance},w.addDocument=function(V,q){this.scope.addDocument(V,q)},w.removeDocument=function(V){this.scope.removeDocument(V)},w}(this),this.InteractEvent=Nr,this.Interactable=void 0,this.interactables=new Oo(this),this._win=void 0,this.document=void 0,this.window=void 0,this.documents=[],this._plugins={list:[],map:{}},this.onWindowUnload=function(m){return o.removeDocument(m.target)};var p=this;this.Interactable=function(m){y(V,m);var w=M(V);function V(){return c(this,V),w.apply(this,arguments)}return h(V,[{key:"_defaults",get:function(){return p.defaults}},{key:"set",value:function(q){return _(u(V.prototype),"set",this).call(this,q),p.fire("interactable:set",{options:q,interactable:this}),this}},{key:"unset",value:function(){_(u(V.prototype),"unset",this).call(this);var q=p.interactables.list.indexOf(this);q<0||(p.interactables.list.splice(q,1),p.fire("interactable:unset",{interactable:this}))}}]),V}(Mo)}return h(i,[{key:"addListeners",value:function(o,p){this.listenerMaps.push({id:p,map:o})}},{key:"fire",value:function(o,p){for(var m=0,w=this.listenerMaps;m<w.length;m++){var V=w[m].map[o];if(V&&V(p,this,o)===!1)return!1}}},{key:"init",value:function(o){return this.isInitialized?this:function(p,m){return p.isInitialized=!0,g.window(m)&&C(m),ne.init(m),X.init(m),oa.init(m),p.window=m,p.document=m.document,p.usePlugin(zo),p.usePlugin(Ln),p}(this,o)}},{key:"pluginIsInstalled",value:function(o){var p=o.id;return p?!!this._plugins.map[p]:this._plugins.list.indexOf(o)!==-1}},{key:"usePlugin",value:function(o,p){if(!this.isInitialized)return this;if(this.pluginIsInstalled(o))return this;if(o.id&&(this._plugins.map[o.id]=o),this._plugins.list.push(o),o.install&&o.install(this,p),o.listeners&&o.before){for(var m=0,w=this.listenerMaps.length,V=o.before.reduce(function(Y,fe){return Y[fe]=!0,Y[jt(fe)]=!0,Y},{});m<w;m++){var q=this.listenerMaps[m].id;if(q&&(V[q]||V[jt(q)]))break}this.listenerMaps.splice(m,0,{id:o.id,map:o.listeners})}else o.listeners&&this.listenerMaps.push({id:o.id,map:o.listeners});return this}},{key:"addDocument",value:function(o,p){if(this.getDocIndex(o)!==-1)return!1;var m=L(o);p=p?ee({},p):{},this.documents.push({doc:o,options:p}),this.events.documents.push(o),o!==this.document&&this.events.add(m,"unload",this.onWindowUnload),this.fire("scope:add-document",{doc:o,window:m,scope:this,options:p})}},{key:"removeDocument",value:function(o){var p=this.getDocIndex(o),m=L(o),w=this.documents[p].options;this.events.remove(m,"unload",this.onWindowUnload),this.documents.splice(p,1),this.events.documents.splice(p,1),this.fire("scope:remove-document",{doc:o,window:m,scope:this,options:w})}},{key:"getDocIndex",value:function(o){for(var p=0;p<this.documents.length;p++)if(this.documents[p].doc===o)return p;return-1}},{key:"getDocOptions",value:function(o){var p=this.getDocIndex(o);return p===-1?null:this.documents[p].options}},{key:"now",value:function(){return(this.window.Date||Date).now()}}]),i}();function jt(i){return i&&i.replace(/\/.*$/,"")}var Ht=new Ft,Or=Ht.interactStatic,Io=typeof globalThis<"u"?globalThis:window;Ht.init(Io);var Dt=Object.freeze({__proto__:null,edgeTarget:function(){},elements:function(){},grid:function(i){var o=[["x","y"],["left","top"],["right","bottom"],["width","height"]].filter(function(m){var w=m[0],V=m[1];return w in i||V in i}),p=function(m,w){for(var V=i.range,q=i.limits,Y=q===void 0?{left:-1/0,right:1/0,top:-1/0,bottom:1/0}:q,fe=i.offset,Oe=fe===void 0?{x:0,y:0}:fe,be={range:V,grid:i,x:null,y:null},Xe=0;Xe<o.length;Xe++){var Ta=o[Xe],tl=Ta[0],ll=Ta[1],sl=Math.round((m-Oe.x)/i[tl]),wl=Math.round((w-Oe.y)/i[ll]);be[tl]=Math.max(Y.left,Math.min(Y.right,sl*i[tl]+Oe.x)),be[ll]=Math.max(Y.top,Math.min(Y.bottom,wl*i[ll]+Oe.y))}return be};return p.grid=i,p.coordFields=o,p}}),Lo={id:"snappers",install:function(i){var o=i.interactStatic;o.snappers=ee(o.snappers||{},Dt),o.createSnapGrid=o.snappers.grid}},Bt=Lo,Ut={start:function(i){var o=i.state,p=i.rect,m=i.edges,w=i.pageCoords,V=o.options,q=V.ratio,Y=V.enabled,fe=o.options,Oe=fe.equalDelta,be=fe.modifiers;q==="preserve"&&(q=p.width/p.height),o.startCoords=ee({},w),o.startRect=ee({},p),o.ratio=q,o.equalDelta=Oe;var Xe=o.linkedEdges={top:m.top||m.left&&!m.bottom,left:m.left||m.top&&!m.right,bottom:m.bottom||m.right&&!m.top,right:m.right||m.bottom&&!m.left};if(o.xIsPrimaryAxis=!(!m.left&&!m.right),o.equalDelta){var Ta=(Xe.left?1:-1)*(Xe.top?1:-1);o.edgeSign={x:Ta,y:Ta}}else o.edgeSign={x:Xe.left?-1:1,y:Xe.top?-1:1};if(Y!==!1&&ee(m,Xe),be!=null&&be.length){var tl=new pn(i.interaction);tl.copyFrom(i.interaction.modification),tl.prepareStates(be),o.subModification=tl,tl.startAll(t({},i))}},set:function(i){var o=i.state,p=i.rect,m=i.coords,w=o.linkedEdges,V=ee({},m),q=o.equalDelta?qt:Vo;if(ee(i.edges,w),q(o,o.xIsPrimaryAxis,m,p),!o.subModification)return null;var Y=ee({},p);Ae(w,Y,{x:m.x-V.x,y:m.y-V.y});var fe=o.subModification.setAll(t(t({},i),{},{rect:Y,edges:w,pageCoords:m,prevCoords:m,prevRect:Y})),Oe=fe.delta;return fe.changed&&(q(o,Math.abs(Oe.x)>Math.abs(Oe.y),fe.coords,fe.rect),ee(m,fe.coords)),fe.eventProps},defaults:{ratio:"preserve",equalDelta:!1,modifiers:[],enabled:!1}};function qt(i,o,p){var m=i.startCoords,w=i.edgeSign;o?p.y=m.y+(p.x-m.x)*w.y:p.x=m.x+(p.y-m.y)*w.x}function Vo(i,o,p,m){var w=i.startRect,V=i.startCoords,q=i.ratio,Y=i.edgeSign;if(o){var fe=m.width/q;p.y=V.y+(fe-w.height)*Y.y}else{var Oe=m.height*q;p.x=V.x+(Oe-w.width)*Y.x}}var $o=Dr(Ut,"aspectRatio"),Wt=function(){};Wt._defaults={};var xn=Wt;function _n(i,o,p){return g.func(i)?Pe(i,o.interactable,o.element,[p.x,p.y,o]):Pe(i,o.interactable,o.element)}var $n={start:function(i){var o=i.rect,p=i.startOffset,m=i.state,w=i.interaction,V=i.pageCoords,q=m.options,Y=q.elementRect,fe=ee({left:0,top:0,right:0,bottom:0},q.offset||{});if(o&&Y){var Oe=_n(q.restriction,w,V);if(Oe){var be=Oe.right-Oe.left-o.width,Xe=Oe.bottom-Oe.top-o.height;be<0&&(fe.left+=be,fe.right+=be),Xe<0&&(fe.top+=Xe,fe.bottom+=Xe)}fe.left+=p.left-o.width*Y.left,fe.top+=p.top-o.height*Y.top,fe.right+=p.right-o.width*(1-Y.right),fe.bottom+=p.bottom-o.height*(1-Y.bottom)}m.offset=fe},set:function(i){var o=i.coords,p=i.interaction,m=i.state,w=m.options,V=m.offset,q=_n(w.restriction,p,o);if(q){var Y=function(fe){return!fe||"left"in fe&&"top"in fe||((fe=ee({},fe)).left=fe.x||0,fe.top=fe.y||0,fe.right=fe.right||fe.left+fe.width,fe.bottom=fe.bottom||fe.top+fe.height),fe}(q);o.x=Math.max(Math.min(Y.right-V.right,o.x),Y.left+V.left),o.y=Math.max(Math.min(Y.bottom-V.bottom,o.y),Y.top+V.top)}},defaults:{restriction:null,elementRect:null,offset:null,endOnly:!1,enabled:!1}},Ro=Dr($n,"restrict"),Kt={top:1/0,left:1/0,bottom:-1/0,right:-1/0},Yt={top:-1/0,left:-1/0,bottom:1/0,right:1/0};function Gt(i,o){for(var p=0,m=["top","left","bottom","right"];p<m.length;p++){var w=m[p];w in i||(i[w]=o[w])}return i}var Rn={noInner:Kt,noOuter:Yt,start:function(i){var o,p=i.interaction,m=i.startOffset,w=i.state,V=w.options;V&&(o=ga(_n(V.offset,p,p.coords.start.page))),o=o||{x:0,y:0},w.offset={top:o.y+m.top,left:o.x+m.left,bottom:o.y-m.bottom,right:o.x-m.right}},set:function(i){var o=i.coords,p=i.edges,m=i.interaction,w=i.state,V=w.offset,q=w.options;if(p){var Y=ee({},o),fe=_n(q.inner,m,Y)||{},Oe=_n(q.outer,m,Y)||{};Gt(fe,Kt),Gt(Oe,Yt),p.top?o.y=Math.min(Math.max(Oe.top+V.top,Y.y),fe.top+V.top):p.bottom&&(o.y=Math.max(Math.min(Oe.bottom+V.bottom,Y.y),fe.bottom+V.bottom)),p.left?o.x=Math.min(Math.max(Oe.left+V.left,Y.x),fe.left+V.left):p.right&&(o.x=Math.max(Math.min(Oe.right+V.right,Y.x),fe.right+V.right))}},defaults:{inner:null,outer:null,offset:null,endOnly:!1,enabled:!1}},Gn=Dr(Rn,"restrictEdges"),Jt=ee({get elementRect(){return{top:0,left:0,bottom:1,right:1}},set elementRect(i){}},$n.defaults),Xt=Dr({start:$n.start,set:$n.set,defaults:Jt},"restrictRect"),Jn={width:-1/0,height:-1/0},Po={width:1/0,height:1/0},Zt=Dr({start:function(i){return Rn.start(i)},set:function(i){var o=i.interaction,p=i.state,m=i.rect,w=i.edges,V=p.options;if(w){var q=He(_n(V.min,o,i.coords))||Jn,Y=He(_n(V.max,o,i.coords))||Po;p.options={endOnly:V.endOnly,inner:ee({},Rn.noInner),outer:ee({},Rn.noOuter)},w.top?(p.options.inner.top=m.bottom-q.height,p.options.outer.top=m.bottom-Y.height):w.bottom&&(p.options.inner.bottom=m.top+q.height,p.options.outer.bottom=m.top+Y.height),w.left?(p.options.inner.left=m.right-q.width,p.options.outer.left=m.right-Y.width):w.right&&(p.options.inner.right=m.left+q.width,p.options.outer.right=m.left+Y.width),Rn.set(i),p.options=V}},defaults:{min:null,max:null,endOnly:!1,enabled:!1}},"restrictSize"),Nn={start:function(i){var o,p=i.interaction,m=i.interactable,w=i.element,V=i.rect,q=i.state,Y=i.startOffset,fe=q.options,Oe=fe.offsetWithOrigin?function(Ta){var tl=Ta.interaction.element,ll=ga(Pe(Ta.state.options.origin,null,null,[tl])),sl=ll||$e(Ta.interactable,tl,Ta.interaction.prepared.name);return sl}(i):{x:0,y:0};if(fe.offset==="startCoords")o={x:p.coords.start.page.x,y:p.coords.start.page.y};else{var be=Pe(fe.offset,m,w,[p]);(o=ga(be)||{x:0,y:0}).x+=Oe.x,o.y+=Oe.y}var Xe=fe.relativePoints;q.offsets=V&&Xe&&Xe.length?Xe.map(function(Ta,tl){return{index:tl,relativePoint:Ta,x:Y.left-V.width*Ta.x+o.x,y:Y.top-V.height*Ta.y+o.y}}):[{index:0,relativePoint:null,x:o.x,y:o.y}]},set:function(i){var o=i.interaction,p=i.coords,m=i.state,w=m.options,V=m.offsets,q=$e(o.interactable,o.element,o.prepared.name),Y=ee({},p),fe=[];w.offsetWithOrigin||(Y.x-=q.x,Y.y-=q.y);for(var Oe=0,be=V;Oe<be.length;Oe++)for(var Xe=be[Oe],Ta=Y.x-Xe.x,tl=Y.y-Xe.y,ll=0,sl=w.targets.length;ll<sl;ll++){var wl=w.targets[ll],cl=void 0;(cl=g.func(wl)?wl(Ta,tl,o._proxy,Xe,ll):wl)&&fe.push({x:(g.number(cl.x)?cl.x:Ta)+Xe.x,y:(g.number(cl.y)?cl.y:tl)+Xe.y,range:g.number(cl.range)?cl.range:w.range,source:wl,index:ll,offset:Xe})}for(var Bl={target:null,inRange:!1,distance:0,range:0,delta:{x:0,y:0}},Ml=0;Ml<fe.length;Ml++){var Kl=fe[Ml],Dl=Kl.range,Fl=Kl.x-Y.x,Ir=Kl.y-Y.y,mr=Ia(Fl,Ir),Fr=mr<=Dl;Dl===1/0&&Bl.inRange&&Bl.range!==1/0&&(Fr=!1),Bl.target&&!(Fr?Bl.inRange&&Dl!==1/0?mr/Dl<Bl.distance/Bl.range:Dl===1/0&&Bl.range!==1/0||mr<Bl.distance:!Bl.inRange&&mr<Bl.distance)||(Bl.target=Kl,Bl.distance=mr,Bl.range=Dl,Bl.inRange=Fr,Bl.delta.x=Fl,Bl.delta.y=Ir)}return Bl.inRange&&(p.x=Bl.target.x,p.y=Bl.target.y),m.closest=Bl,Bl},defaults:{range:1/0,targets:null,offset:null,offsetWithOrigin:!0,origin:null,relativePoints:null,endOnly:!1,enabled:!1}},Fo=Dr(Nn,"snap"),ot={start:function(i){var o=i.state,p=i.edges,m=o.options;if(!p)return null;i.state={options:{targets:null,relativePoints:[{x:p.left?0:1,y:p.top?0:1}],offset:m.offset||"self",origin:{x:0,y:0},range:m.range}},o.targetFields=o.targetFields||[["width","height"],["x","y"]],Nn.start(i),o.offsets=i.state.offsets,i.state=o},set:function(i){var o=i.interaction,p=i.state,m=i.coords,w=p.options,V=p.offsets,q={x:m.x-V[0].x,y:m.y-V[0].y};p.options=ee({},w),p.options.targets=[];for(var Y=0,fe=w.targets||[];Y<fe.length;Y++){var Oe=fe[Y],be=void 0;if(be=g.func(Oe)?Oe(q.x,q.y,o):Oe){for(var Xe=0,Ta=p.targetFields;Xe<Ta.length;Xe++){var tl=Ta[Xe],ll=tl[0],sl=tl[1];if(ll in be||sl in be){be.x=be[ll],be.y=be[sl];break}}p.options.targets.push(be)}}var wl=Nn.set(i);return p.options=w,wl},defaults:{range:1/0,targets:null,offset:null,endOnly:!1,enabled:!1}},jo=Dr(ot,"snapSize"),Nt={aspectRatio:$o,restrictEdges:Gn,restrict:Ro,restrictRect:Xt,restrictSize:Zt,snapEdges:Dr({start:function(i){var o=i.edges;return o?(i.state.targetFields=i.state.targetFields||[[o.left?"left":"right",o.top?"top":"bottom"]],ot.start(i)):null},set:ot.set,defaults:ee(Ur(ot.defaults),{targets:void 0,range:void 0,offset:{x:0,y:0}})},"snapEdges"),snap:Fo,snapSize:jo,spring:xn,avoid:xn,transform:xn,rubberband:xn},Ho={id:"modifiers",install:function(i){var o=i.interactStatic;for(var p in i.usePlugin(Il),i.usePlugin(Bt),o.modifiers=Nt,Nt){var m=Nt[p],w=m._defaults,V=m._methods;w._methods=V,i.defaults.perAction[p]=w}}},Uo=Ho,Qt=function(i){y(p,i);var o=M(p);function p(m,w,V,q,Y,fe){var Oe;if(c(this,p),F(S(Oe=o.call(this,Y)),V),V!==w&&F(S(Oe),w),Oe.timeStamp=fe,Oe.originalEvent=V,Oe.type=m,Oe.pointerId=Ie(w),Oe.pointerType=ba(w),Oe.target=q,Oe.currentTarget=null,m==="tap"){var be=Y.getPointerIndex(w);Oe.dt=Oe.timeStamp-Y.pointers[be].downTime;var Xe=Oe.timeStamp-Y.tapTime;Oe.double=!!Y.prevTap&&Y.prevTap.type!=="doubletap"&&Y.prevTap.target===Oe.target&&Xe<500}else m==="doubletap"&&(Oe.dt=w.timeStamp-Y.tapTime,Oe.double=!0);return Oe}return h(p,[{key:"_subtractOrigin",value:function(m){var w=m.x,V=m.y;return this.pageX-=w,this.pageY-=V,this.clientX-=w,this.clientY-=V,this}},{key:"_addOrigin",value:function(m){var w=m.x,V=m.y;return this.pageX+=w,this.pageY+=V,this.clientX+=w,this.clientY+=V,this}},{key:"preventDefault",value:function(){this.originalEvent.preventDefault()}}]),p}(da),Pn={id:"pointer-events/base",before:["inertia","modifiers","auto-start","actions"],install:function(i){i.pointerEvents=Pn,i.defaults.actions.pointerEvents=Pn.defaults,ee(i.actions.phaselessTypes,Pn.types)},listeners:{"interactions:new":function(i){var o=i.interaction;o.prevTap=null,o.tapTime=0},"interactions:update-pointer":function(i){var o=i.down,p=i.pointerInfo;!o&&p.hold||(p.hold={duration:1/0,timeout:null})},"interactions:move":function(i,o){var p=i.interaction,m=i.pointer,w=i.event,V=i.eventTarget;i.duplicate||p.pointerIsDown&&!p.pointerWasMoved||(p.pointerIsDown&&Tt(i),wn({interaction:p,pointer:m,event:w,eventTarget:V,type:"move"},o))},"interactions:down":function(i,o){(function(p,m){for(var w=p.interaction,V=p.pointer,q=p.event,Y=p.eventTarget,fe=p.pointerIndex,Oe=w.pointers[fe].hold,be=ka(Y),Xe={interaction:w,pointer:V,event:q,eventTarget:Y,type:"hold",targets:[],path:be,node:null},Ta=0;Ta<be.length;Ta++){var tl=be[Ta];Xe.node=tl,m.fire("pointerEvents:collect-targets",Xe)}if(Xe.targets.length){for(var ll=1/0,sl=0,wl=Xe.targets;sl<wl.length;sl++){var cl=wl[sl].eventable.options.holdDuration;cl<ll&&(ll=cl)}Oe.duration=ll,Oe.timeout=setTimeout(function(){wn({interaction:w,eventTarget:Y,pointer:V,event:q,type:"hold"},m)},ll)}})(i,o),wn(i,o)},"interactions:up":function(i,o){Tt(i),wn(i,o),function(p,m){var w=p.interaction,V=p.pointer,q=p.event,Y=p.eventTarget;w.pointerWasMoved||wn({interaction:w,eventTarget:Y,pointer:V,event:q,type:"tap"},m)}(i,o)},"interactions:cancel":function(i,o){Tt(i),wn(i,o)}},PointerEvent:Qt,fire:wn,collectEventTargets:eo,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 wn(i,o){var p=i.interaction,m=i.pointer,w=i.event,V=i.eventTarget,q=i.type,Y=i.targets,fe=Y===void 0?eo(i,o):Y,Oe=new Qt(q,m,w,V,p,o.now());o.fire("pointerEvents:new",{pointerEvent:Oe});for(var be={interaction:p,pointer:m,event:w,eventTarget:V,targets:fe,type:q,pointerEvent:Oe},Xe=0;Xe<fe.length;Xe++){var Ta=fe[Xe];for(var tl in Ta.props||{})Oe[tl]=Ta.props[tl];var ll=$e(Ta.eventable,Ta.node);if(Oe._subtractOrigin(ll),Oe.eventable=Ta.eventable,Oe.currentTarget=Ta.node,Ta.eventable.fire(Oe),Oe._addOrigin(ll),Oe.immediatePropagationStopped||Oe.propagationStopped&&Xe+1<fe.length&&fe[Xe+1].node!==Oe.currentTarget)break}if(o.fire("pointerEvents:fired",be),q==="tap"){var sl=Oe.double?wn({interaction:p,pointer:m,event:w,eventTarget:V,type:"doubletap"},o):Oe;p.prevTap=sl,p.tapTime=sl.timeStamp}return Oe}function eo(i,o){var p=i.interaction,m=i.pointer,w=i.event,V=i.eventTarget,q=i.type,Y=p.getPointerIndex(m),fe=p.pointers[Y];if(q==="tap"&&(p.pointerWasMoved||!fe||fe.downTarget!==V))return[];for(var Oe=ka(V),be={interaction:p,pointer:m,event:w,eventTarget:V,type:q,path:Oe,targets:[],node:null},Xe=0;Xe<Oe.length;Xe++){var Ta=Oe[Xe];be.node=Ta,o.fire("pointerEvents:collect-targets",be)}return q==="hold"&&(be.targets=be.targets.filter(function(tl){var ll,sl;return tl.eventable.options.holdDuration===((ll=p.pointers[Y])==null||(sl=ll.hold)==null?void 0:sl.duration)})),be.targets}function Tt(i){var o=i.interaction,p=i.pointerIndex,m=o.pointers[p].hold;m&&m.timeout&&(clearTimeout(m.timeout),m.timeout=null)}var qo=Object.freeze({__proto__:null,default:Pn});function it(i){var o=i.interaction;o.holdIntervalHandle&&(clearInterval(o.holdIntervalHandle),o.holdIntervalHandle=null)}var Wo={id:"pointer-events/holdRepeat",install:function(i){i.usePlugin(Pn);var o=i.pointerEvents;o.defaults.holdRepeatInterval=0,o.types.holdrepeat=i.actions.phaselessTypes.holdrepeat=!0},listeners:["move","up","cancel","endall"].reduce(function(i,o){return i["pointerEvents:".concat(o)]=it,i},{"pointerEvents:new":function(i){var o=i.pointerEvent;o.type==="hold"&&(o.count=(o.count||0)+1)},"pointerEvents:fired":function(i,o){var p=i.interaction,m=i.pointerEvent,w=i.eventTarget,V=i.targets;if(m.type==="hold"&&V.length){var q=V[0].eventable.options.holdRepeatInterval;q<=0||(p.holdIntervalHandle=setTimeout(function(){o.pointerEvents.fire({interaction:p,eventTarget:w,type:"hold",pointer:m,event:m},o)},q))}}})},Ko=Wo,Yo={id:"pointer-events/interactableTargets",install:function(i){var o=i.Interactable;o.prototype.pointerEvents=function(m){return ee(this.events.options,m),this};var p=o.prototype._backCompatOption;o.prototype._backCompatOption=function(m,w){var V=p.call(this,m,w);return V===this&&(this.events.options[m]=w),V}},listeners:{"pointerEvents:collect-targets":function(i,o){var p=i.targets,m=i.node,w=i.type,V=i.eventTarget;o.interactables.forEachMatch(m,function(q){var Y=q.events,fe=Y.options;Y.types[w]&&Y.types[w].length&&q.testIgnoreAllow(fe,m,V)&&p.push({node:m,eventable:Y,props:{interactable:q}})})},"interactable:new":function(i){var o=i.interactable;o.events.getRect=function(p){return o.getRect(p)}},"interactable:set":function(i,o){var p=i.interactable,m=i.options;ee(p.events.options,o.pointerEvents.defaults),ee(p.events.options,m.pointerEvents||{})}}},Go=Yo,ao={id:"pointer-events",install:function(i){i.usePlugin(qo),i.usePlugin(Ko),i.usePlugin(Go)}},st=ao,Jo={id:"reflow",install:function(i){var o=i.Interactable;i.actions.phases.reflow=!0,o.prototype.reflow=function(p){return function(m,w,V){for(var q=m.getAllElements(),Y=V.window.Promise,fe=Y?[]:null,Oe=function(){var Xe=q[be],Ta=m.getRect(Xe);if(!Ta)return 1;var tl,ll=je(V.interactions.list,function(cl){return cl.interacting()&&cl.interactable===m&&cl.element===Xe&&cl.prepared.name===w.name});if(ll)ll.move(),fe&&(tl=ll._reflowPromise||new Y(function(cl){ll._reflowResolve=cl}));else{var sl=He(Ta),wl=function(cl){return{coords:cl,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:sl.x,y:sl.y},client:{x:sl.x,y:sl.y},timeStamp:V.now()});tl=function(cl,Bl,Ml,Kl,Dl){var Fl=cl.interactions.new({pointerType:"reflow"}),Ir={interaction:Fl,event:Dl,pointer:Dl,eventTarget:Ml,phase:"reflow"};Fl.interactable=Bl,Fl.element=Ml,Fl.prevEvent=Dl,Fl.updatePointer(Dl,Dl,Ml,!0),ie(Fl.coords.delta),Ua(Fl.prepared,Kl),Fl._doPhase(Ir);var mr=cl.window,Fr=mr.Promise,en=Fr?new Fr(function(on){Fl._reflowResolve=on}):void 0;return Fl._reflowPromise=en,Fl.start(Kl,Bl,Ml),Fl._interacting?(Fl.move(Ir),Fl.end(Dl)):(Fl.stop(),Fl._reflowResolve()),Fl.removePointer(Dl,Dl),en}(V,m,Xe,w,wl)}fe&&fe.push(tl)},be=0;be<q.length&&!Oe();be++);return fe&&Y.all(fe).then(function(){return m})}(this,p,i)}},listeners:{"interactions:stop":function(i,o){var p=i.interaction;p.pointerType==="reflow"&&(p._reflowResolve&&p._reflowResolve(),function(m,w){m.splice(m.indexOf(w),1)}(o.interactions.list,p))}}},Xo=Jo;if(Or.use(dn),Or.use(cr),Or.use(st),Or.use(Qr),Or.use(Uo),Or.use(Er),Or.use(_a),Or.use(Ee),Or.use(Xo),Or.default=Or,s(l)==="object"&&l)try{l.exports=Or}catch{}return Or.default=Or,Or})}(Ot,Ot.exports)),Ot.exports}var R4=$4();const Cs=I.getDefaultExportFromCjs(R4),Bo=a.defineComponent({__name:"grid-item",props:{isDraggable:{type:Boolean,default:void 0},isResizable:{type:Boolean,default:void 0},isBounded:{type:Boolean,default:void 0},static:{type:Boolean,default:!1},minH:{default:1},minW:{default:1},maxH:{default:1/0},maxW:{default:1/0},x:{},y:{},w:{},h:{},i:{},dragIgnoreFrom:{default:"a, button"},dragAllowFrom:{default:void 0},resizeIgnoreFrom:{default:"a, button"},preserveAspectRatio:{type:Boolean,default:!1},dragOption:{default:()=>({})},resizeOption:{default:()=>({})}},emits:["container-resized","resize","resized","move","moved"],setup(l,{expose:r,emit:n}){const t=l,s=n,c=a.inject(Bc),b=a.inject(Nc);if(!c)throw new Error("[grid-layout-plus]: missing layout store, GridItem must under a GridLayout.");const h=a.shallowRef(null),v=a.reactive({cols:1,containerWidth:100,rowHeight:30,margin:[10,10],maxRows:1/0,draggable:void 0,resizable:void 0,bounded:void 0,transformScale:1,useCssTransforms:!0,useStyleCursor:!0,isDragging:!1,dragging:{top:-1,left:-1},isResizing:!1,resizing:{width:-1,height:-1},style:{},rtl:!1});let y=!1,u=!1,x=NaN,S=NaN,M=NaN,_=NaN,U=-1,B=-1,A=-1,R=-1,C=t.x,L=t.y,T=t.w,k=t.h;const g=a.ref(),j=a.reactive({i:a.toRef(t,"i"),state:v,wrapper:g,calcXY:Pe});function W(ce){Ge(ce)}function J(){Wa()}function ke(ce){rn(t.isDraggable)&&(v.draggable=ce)}function ze(ce){rn(t.isResizable)&&(v.resizable=ce)}function De(ce){rn(t.isBounded)&&(v.bounded=ce)}function ne(ce){v.transformScale=ce}function xe(ce){v.rowHeight=ce}function X(ce){v.maxRows=ce}function pe(){v.rtl=_s()==="rtl",Wa()}function Ke(ce){v.cols=Math.floor(ce)}c.increaseItem(j),a.onBeforeMount(()=>{v.rtl=_s()==="rtl"}),a.onMounted(()=>{c.responsive&&c.lastBreakpoint?v.cols=Oc(c.lastBreakpoint,c.cols):v.cols=c.colNum,v.rowHeight=c.rowHeight,v.containerWidth=c.width!==null?c.width:100,v.margin=c.margin!==void 0?c.margin.map(Number):[10,10],v.maxRows=c.maxRows,rn(t.isDraggable)?v.draggable=c.isDraggable:v.draggable=t.isDraggable,rn(t.isResizable)?v.resizable=c.isResizable:v.resizable=t.isResizable,rn(t.isBounded)?v.bounded=c.isBounded:v.bounded=t.isBounded,v.transformScale=c.transformScale,v.useCssTransforms=c.useCssTransforms,v.useStyleCursor=c.useStyleCursor,a.watchEffect(()=>{C=t.x,L=t.y,k=t.h,T=t.w,jr(ia)}),b.on("updateWidth",W),b.on("compact",J),b.on("setDraggable",ke),b.on("setResizable",ze),b.on("setBounded",De),b.on("setTransformScale",ne),b.on("setRowHeight",xe),b.on("setMaxRows",X),b.on("directionchange",pe),b.on("setColNum",Ke)}),a.onBeforeUnmount(()=>{b.off("updateWidth",W),b.off("compact",J),b.off("setDraggable",ke),b.off("setResizable",ze),b.off("setBounded",De),b.off("setTransformScale",ne),b.off("setRowHeight",xe),b.off("setMaxRows",X),b.off("directionchange",pe),b.off("setColNum",Ke),h.value&&(h.value.unset(),h.value=null),c.decreaseItem(j)}),r({state:v,wrapper:g});const Da=typeof navigator<"u"?navigator.userAgent.toLowerCase().includes("android"):!1,te=a.computed(()=>v.resizable&&!t.static),D=a.computed(()=>c.isMirrored?!v.rtl:v.rtl),le=a.computed(()=>(v.draggable||v.resizable)&&!t.static),ge=T4("item"),ue=a.computed(()=>({[ge.b()]:!0,[ge.bm("resizable")]:te.value,[ge.bm("static")]:t.static,[ge.bm("resizing")]:v.isResizing,[ge.bm("dragging")]:v.isDragging,[ge.bm("transform")]:v.useCssTransforms,[ge.bm("rtl")]:D.value,[ge.bm("no-touch")]:Da&&le.value})),Ne=a.computed(()=>[ge.be("resizer"),D.value&&ge.bem("resizer","rtl")].filter(Boolean));a.watch(()=>t.isDraggable,ce=>{v.draggable=ce}),a.watch(()=>t.static,()=>{jr(F),jr(ie)}),a.watch(()=>v.draggable,()=>{jr(F)}),a.watch(()=>t.isResizable,ce=>{v.resizable=ce}),a.watch(()=>t.isBounded,ce=>{v.bounded=ce}),a.watch(()=>v.resizable,()=>{jr(ie)}),a.watch(()=>v.rowHeight,()=>{jr(ia),jr(ka)}),a.watch([()=>v.cols,()=>v.containerWidth],()=>{jr(ie),jr(ia),jr(ka)}),a.watch([()=>t.minH,()=>t.maxH,()=>t.minW,()=>t.maxW],()=>{jr(ie)}),a.watch(D,()=>{jr(ie),jr(ia)}),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(ia),jr(ka))});function ia(){t.x+t.w>v.cols?(C=0,T=t.w>v.cols?v.cols:t.w):(C=t.x,T=t.w);const ce=Qe(C,L,T,k);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 pa;v.useCssTransforms?D.value?pa=S4(ce.top,ce.right,ce.width,ce.height):pa=E4(ce.top,ce.left,ce.width,ce.height):D.value?pa=B4(ce.top,ce.right,ce.width,ce.height):pa=D4(ce.top,ce.left,ce.width,ce.height),v.style=pa}function ka(){const ce={};for(const pa of["width","height"]){const aa=v.style[pa].match(/^(\d+)px$/);if(!aa)return;ce[pa]=aa[1]}s("container-resized",t.i,t.h,t.w,ce.height,ce.width)}function Ha(ce){if(t.static)return;const pa=ce.type;if(pa==="resizestart"&&v.isResizing||pa!=="resizestart"&&!v.isResizing)return;const aa=ks(ce);if(rn(aa))return;const{x:Ie,y:Ce}=aa,wa={width:0,height:0};let me;switch(pa){case"resizestart":{ie(),U=T,B=k,me=Qe(C,L,T,k),wa.width=me.width,wa.height=me.height,v.resizing=wa,v.isResizing=!0;break}case"resizemove":{!ce.edges.right&&!ce.edges.left&&(M=Ie),!ce.edges.top&&!ce.edges.bottom&&(_=Ce);const Je=xs(M,_,Ie,Ce);D.value?wa.width=v.resizing.width-Je.deltaX/v.transformScale:wa.width=v.resizing.width+Je.deltaX/v.transformScale,wa.height=v.resizing.height+Je.deltaY/v.transformScale,v.resizing=wa;break}case"resizeend":{me=Qe(C,L,T,k),wa.width=me.width,wa.height=me.height,v.resizing={width:-1,height:-1},v.isResizing=!1;break}}me=$e(wa.height,wa.width),me.w<t.minW&&(me.w=t.minW),me.w>t.maxW&&(me.w=t.maxW),me.h<t.minH&&(me.h=t.minH),me.h>t.maxH&&(me.h=t.maxH),me.h<1&&(me.h=1),me.w<1&&(me.w=1),M=Ie,_=Ce,(T!==me.w||k!==me.h)&&s("resize",t.i,me.h,me.w,wa.height,wa.width),ce.type==="resizeend"&&(U!==T||B!==k)&&s("resized",t.i,me.h,me.w,wa.height,wa.width),b.emit("resizeEvent",ce.type,t.i,C,L,me.h,me.w)}function ee(ce){if(t.static||v.isResizing)return;const pa=ce.type;if(pa==="dragstart"&&v.isDragging||pa!=="dragstart"&&!v.isDragging)return;const aa=ks(ce);if(rn(aa))return;const{x:Ie,y:Ce}=aa,wa=ce.target;if(!wa.offsetParent)return;const me={top:0,left:0};switch(pa){case"dragstart":{A=C,R=L;const Ze=wa.offsetParent.getBoundingClientRect(),Fe=wa.getBoundingClientRect(),ba=Fe.left/v.transformScale,Le=Ze.left/v.transformScale,da=Fe.right/v.transformScale,re=Ze.right/v.transformScale,Se=Fe.top/v.transformScale,K=Ze.top/v.transformScale;D.value?me.left=(da-re)*-1:me.left=ba-Le,me.top=Se-K,v.dragging=me,v.isDragging=!0;break}case"dragmove":{const Ze=xs(x,S,Ie,Ce);if(D.value?me.left=v.dragging.left-Ze.deltaX/v.transformScale:me.left=v.dragging.left+Ze.deltaX/v.transformScale,me.top=v.dragging.top+Ze.deltaY/v.transformScale,v.bounded){const Fe=wa.offsetParent.clientHeight-He(t.h,v.rowHeight,v.margin[1]);me.top=Ae(me.top,0,Fe);const ba=ga(),Le=v.containerWidth-He(t.w,ba,v.margin[0]);me.left=Ae(me.left,0,Le)}v.dragging=me;break}case"dragend":{const Ze=wa.offsetParent.getBoundingClientRect(),Fe=wa.getBoundingClientRect(),ba=Fe.left/v.transformScale,Le=Ze.left/v.transformScale,da=Fe.right/v.transformScale,re=Ze.right/v.transformScale,Se=Fe.top/v.transformScale,K=Ze.top/v.transformScale;D.value?me.left=(da-re)*-1:me.left=ba-Le,me.top=Se-K,v.dragging={top:-1,left:-1},v.isDragging=!1;break}}let Je;D.value,Je=Pe(me.top,me.left),x=Ie,S=Ce,(C!==Je.x||L!==Je.y)&&s("move",t.i,Je.x,Je.y),ce.type==="dragend"&&(A!==C||R!==L)&&s("moved",t.i,Je.x,Je.y),b.emit("dragEvent",ce.type,t.i,Je.x,Je.y,k,T)}function Qe(ce,pa,aa,Ie){const Ce=ga();let wa;return D.value?wa={right:Math.round(Ce*ce+(ce+1)*v.margin[0]),top:Math.round(v.rowHeight*pa+(pa+1)*v.margin[1]),width:aa===1/0?aa:Math.round(Ce*aa+Math.max(0,aa-1)*v.margin[0]),height:Ie===1/0?Ie:Math.round(v.rowHeight*Ie+Math.max(0,Ie-1)*v.margin[1])}:wa={left:Math.round(Ce*ce+(ce+1)*v.margin[0]),top:Math.round(v.rowHeight*pa+(pa+1)*v.margin[1]),width:aa===1/0?aa:Math.round(Ce*aa+Math.max(0,aa-1)*v.margin[0]),height:Ie===1/0?Ie:Math.round(v.rowHeight*Ie+Math.max(0,Ie-1)*v.margin[1])},wa}function Pe(ce,pa){const aa=ga();let Ie=Math.round((pa-v.margin[0])/(aa+v.margin[0])),Ce=Math.round((ce-v.margin[1])/(v.rowHeight+v.margin[1]));return Ie=Math.max(Math.min(Ie,v.cols-T),0),Ce=Math.max(Math.min(Ce,v.maxRows-k),0),{x:Ie,y:Ce}}function ga(){return(v.containerWidth-v.margin[0]*(v.cols+1))/v.cols}function He(ce,pa,aa){return Number.isFinite(ce)?Math.round(pa*ce+Math.max(0,ce-1)*aa):ce}function Ae(ce,pa,aa){return Math.max(Math.min(ce,aa),pa)}function $e(ce,pa,aa=!1){const Ie=ga();let Ce=Math.round((pa+v.margin[0])/(Ie+v.margin[0])),wa=0;return aa?wa=Math.ceil((ce+v.margin[1])/(v.rowHeight+v.margin[1])):wa=Math.round((ce+v.margin[1])/(v.rowHeight+v.margin[1])),Ce=Math.max(Math.min(Ce,v.cols-C),0),wa=Math.max(Math.min(wa,v.maxRows-L),0),{w:Ce,h:wa}}function Ge(ce,pa){v.containerWidth=ce}function Wa(){ia()}function Ia(){!h.value&&g.value&&(h.value=Cs(g.value),v.useStyleCursor||h.value.styleCursor(!1))}const P=ys(ee);function F(){if(Ia(),!!h.value)if(v.draggable&&!t.static){const ce={ignoreFrom:t.dragIgnoreFrom,allowFrom:t.dragAllowFrom,...t.dragOption};h.value.draggable(ce),y||(y=!0,h.value.on("dragstart dragmove dragend",pa=>{pa.type==="dragmove"?P(pa):ee(pa)}))}else h.value.draggable({enabled:!1})}const G=ys(Ha);function ie(){if(Ia(),!!h.value)if(v.resizable&&!t.static){const ce=Qe(0,0,t.maxW,t.maxH),pa=Qe(0,0,t.minW,t.minH),aa={edges:{left:D.value?`.${Ne.value[0]}`:!1,right:D.value?!1:`.${Ne.value[0]}`,bottom:`.${Ne.value[0]}`,top:!1},ignoreFrom:t.resizeIgnoreFrom,restrictSize:{min:{height:pa.height*v.transformScale,width:pa.width*v.transformScale},max:{height:ce.height*v.transformScale,width:ce.width*v.transformScale}},...t.resizeOption};t.preserveAspectRatio&&(aa.modifiers=[Cs.modifiers.aspectRatio({ratio:"preserve"})]),h.value.resizable(aa),u||(u=!0,h.value.on("resizestart resizemove resizeend",Ie=>{Ie.type==="resizemove"?G(Ie):Ha(Ie)}))}else h.value.resizable({enabled:!1})}return(ce,pa)=>(a.openBlock(),a.createElementBlock("section",{ref_key:"wrapper",ref:g,class:a.normalizeClass(ue.value),style:a.normalizeStyle(v.style)},[a.renderSlot(ce.$slots,"default"),te.value?(a.openBlock(),a.createElementBlock("span",{key:0,class:a.normalizeClass(Ne.value)},null,2)):a.createCommentVNode("",!0)],6))}}),nt=typeof window<"u";var Es;nt&&(Es=window==null?void 0:window.navigator)!=null&&Es.userAgent&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Ss(l){return l!=null}function Ds(){}const P4=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(P4)));const F4=nt&&("ontouchstart"in window||H4()>0),j4=F4?"pointerdown":"click";function H4(){return typeof navigator<"u"&&(navigator.maxTouchPoints||navigator.msMaxTouchPoints)||0}function U4(l,r,n=window.Event){const{type:t,bubbles:s=!1,cancelable:c=!1,...b}=r;if(!Ss(t)||t==="")return!1;let h;return Ss(n)?h=new n(t,{bubbles:s,cancelable:c}):(h=document.createEvent("HTMLEvents"),h.initEvent(t,s,c)),Object.assign(h,b),l.dispatchEvent(h)}const q4="clickoutside",W4=new Set;nt&&document.addEventListener(j4,l=>{const r=l.target,n=l.composedPath&&l.composedPath();W4.forEach(t=>{t!==r&&(n?!n.includes(t):!t.contains(r))&&(!t.__transferElement||t.__transferElement!==r&&!t.__transferElement.contains(r))&&U4(t,{type:q4})})},!0);const K4=[["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 mo;if(nt){for(const l of K4)if(l[1]in document){mo=l;break}}a.computed(()=>!1);const Y4=new Set,G4=new WeakMap;if(nt&&mo){const l=mo[2],r=mo[4];document.addEventListener(r,()=>{if(Y4.forEach(n=>{n.value=!1}),document[l]){const n=G4.get(document[l]);n&&(n.value=!0)}},!1)}const Lc=new Map;Lc.set("x",0);Lc.set("y",0);var at=[],J4=function(){return at.some(function(l){return l.activeTargets.length>0})},X4=function(){return at.some(function(l){return l.skippedTargets.length>0})},Bs="ResizeObserver loop completed with undelivered notifications.",Z4=function(){var l;typeof ErrorEvent=="function"?l=new ErrorEvent("error",{message:Bs}):(l=document.createEvent("Event"),l.initEvent("error",!1,!1),l.message=Bs),window.dispatchEvent(l)},Pt;(function(l){l.BORDER_BOX="border-box",l.CONTENT_BOX="content-box",l.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Pt||(Pt={}));var lt=function(l){return Object.freeze(l)},Q4=function(){function l(r,n){this.inlineSize=r,this.blockSize=n,lt(this)}return l}(),Vc=function(){function l(r,n,t,s){return this.x=r,this.y=n,this.width=t,this.height=s,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,lt(this)}return l.prototype.toJSON=function(){var r=this,n=r.x,t=r.y,s=r.top,c=r.right,b=r.bottom,h=r.left,v=r.width,y=r.height;return{x:n,y:t,top:s,right:c,bottom:b,left:h,width:v,height:y}},l.fromRect=function(r){return new l(r.x,r.y,r.width,r.height)},l}(),Ci=function(l){return l instanceof SVGElement&&"getBBox"in l},$c=function(l){if(Ci(l)){var r=l.getBBox(),n=r.width,t=r.height;return!n&&!t}var s=l,c=s.offsetWidth,b=s.offsetHeight;return!(c||b||l.getClientRects().length)},Ns=function(l){var r;if(l instanceof Element)return!0;var n=(r=l==null?void 0:l.ownerDocument)===null||r===void 0?void 0:r.defaultView;return!!(n&&l instanceof n.Element)},e6=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},Vt=typeof window<"u"?window:{},po=new WeakMap,Ts=/auto|scroll/,a6=/^tb|vertical/,l6=/msie|trident/i.test(Vt.navigator&&Vt.navigator.userAgent),En=function(l){return parseFloat(l||"0")},_t=function(l,r,n){return l===void 0&&(l=0),r===void 0&&(r=0),n===void 0&&(n=!1),new Q4((n?r:l)||0,(n?l:r)||0)},As=lt({devicePixelContentBoxSize:_t(),borderBoxSize:_t(),contentBoxSize:_t(),contentRect:new Vc(0,0,0,0)}),Rc=function(l,r){if(r===void 0&&(r=!1),po.has(l)&&!r)return po.get(l);if($c(l))return po.set(l,As),As;var n=getComputedStyle(l),t=Ci(l)&&l.ownerSVGElement&&l.getBBox(),s=!l6&&n.boxSizing==="border-box",c=a6.test(n.writingMode||""),b=!t&&Ts.test(n.overflowY||""),h=!t&&Ts.test(n.overflowX||""),v=t?0:En(n.paddingTop),y=t?0:En(n.paddingRight),u=t?0:En(n.paddingBottom),x=t?0:En(n.paddingLeft),S=t?0:En(n.borderTopWidth),M=t?0:En(n.borderRightWidth),_=t?0:En(n.borderBottomWidth),U=t?0:En(n.borderLeftWidth),B=x+y,A=v+u,R=U+M,C=S+_,L=h?l.offsetHeight-C-l.clientHeight:0,T=b?l.offsetWidth-R-l.clientWidth:0,k=s?B+R:0,g=s?A+C:0,j=t?t.width:En(n.width)-k-T,W=t?t.height:En(n.height)-g-L,J=j+B+T+R,ke=W+A+L+C,ze=lt({devicePixelContentBoxSize:_t(Math.round(j*devicePixelRatio),Math.round(W*devicePixelRatio),c),borderBoxSize:_t(J,ke,c),contentBoxSize:_t(j,W,c),contentRect:new Vc(x,v,j,W)});return po.set(l,ze),ze},Pc=function(l,r,n){var t=Rc(l,n),s=t.borderBoxSize,c=t.contentBoxSize,b=t.devicePixelContentBoxSize;switch(r){case Pt.DEVICE_PIXEL_CONTENT_BOX:return b;case Pt.BORDER_BOX:return s;default:return c}},r6=function(){function l(r){var n=Rc(r);this.target=r,this.contentRect=n.contentRect,this.borderBoxSize=lt([n.borderBoxSize]),this.contentBoxSize=lt([n.contentBoxSize]),this.devicePixelContentBoxSize=lt([n.devicePixelContentBoxSize])}return l}(),Fc=function(l){if($c(l))return 1/0;for(var r=0,n=l.parentNode;n;)r+=1,n=n.parentNode;return r},n6=function(){var l=1/0,r=[];at.forEach(function(c){if(c.activeTargets.length!==0){var b=[];c.activeTargets.forEach(function(h){var v=new r6(h.target),y=Fc(h.target);b.push(v),h.lastReportedSize=Pc(h.target,h.observedBox),y<l&&(l=y)}),r.push(function(){c.callback.call(c.observer,b,c.observer)}),c.activeTargets.splice(0,c.activeTargets.length)}});for(var n=0,t=r;n<t.length;n++){var s=t[n];s()}return l},zs=function(l){at.forEach(function(r){r.activeTargets.splice(0,r.activeTargets.length),r.skippedTargets.splice(0,r.skippedTargets.length),r.observationTargets.forEach(function(n){n.isActive()&&(Fc(n.target)>l?r.activeTargets.push(n):r.skippedTargets.push(n))})})},t6=function(){var l=0;for(zs(l);J4();)l=n6(),zs(l);return X4()&&Z4(),l>0},ni,jc=[],o6=function(){return jc.splice(0).forEach(function(l){return l()})},i6=function(l){if(!ni){var r=0,n=document.createTextNode(""),t={characterData:!0};new MutationObserver(function(){return o6()}).observe(n,t),ni=function(){n.textContent="".concat(r?r--:r++)}}jc.push(l),ni()},s6=function(l){i6(function(){requestAnimationFrame(l)})},yo=0,c6=function(){return!!yo},u6=250,d6={attributes:!0,characterData:!0,childList:!0,subtree:!0},Ms=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Os=function(l){return l===void 0&&(l=0),Date.now()+l},ti=!1,p6=function(){function l(){var r=this;this.stopped=!0,this.listener=function(){return r.schedule()}}return l.prototype.run=function(r){var n=this;if(r===void 0&&(r=u6),!ti){ti=!0;var t=Os(r);s6(function(){var s=!1;try{s=t6()}finally{if(ti=!1,r=t-Os(),!c6())return;s?n.run(1e3):r>0?n.run(r):n.start()}})}},l.prototype.schedule=function(){this.stop(),this.run()},l.prototype.observe=function(){var r=this,n=function(){return r.observer&&r.observer.observe(document.body,d6)};document.body?n():Vt.addEventListener("DOMContentLoaded",n)},l.prototype.start=function(){var r=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Ms.forEach(function(n){return Vt.addEventListener(n,r.listener,!0)}))},l.prototype.stop=function(){var r=this;this.stopped||(this.observer&&this.observer.disconnect(),Ms.forEach(function(n){return Vt.removeEventListener(n,r.listener,!0)}),this.stopped=!0)},l}(),bi=new p6,Is=function(l){!yo&&l>0&&bi.start(),yo+=l,!yo&&bi.stop()},f6=function(l){return!Ci(l)&&!e6(l)&&getComputedStyle(l).display==="inline"},h6=function(){function l(r,n){this.target=r,this.observedBox=n||Pt.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return l.prototype.isActive=function(){var r=Pc(this.target,this.observedBox,!0);return f6(this.target)&&(this.lastReportedSize=r),this.lastReportedSize.inlineSize!==r.inlineSize||this.lastReportedSize.blockSize!==r.blockSize},l}(),v6=function(){function l(r,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=r,this.callback=n}return l}(),fo=new WeakMap,Ls=function(l,r){for(var n=0;n<l.length;n+=1)if(l[n].target===r)return n;return-1},ho=function(){function l(){}return l.connect=function(r,n){var t=new v6(r,n);fo.set(r,t)},l.observe=function(r,n,t){var s=fo.get(r),c=s.observationTargets.length===0;Ls(s.observationTargets,n)<0&&(c&&at.push(s),s.observationTargets.push(new h6(n,t&&t.box)),Is(1),bi.schedule())},l.unobserve=function(r,n){var t=fo.get(r),s=Ls(t.observationTargets,n),c=t.observationTargets.length===1;s>=0&&(c&&at.splice(at.indexOf(t),1),t.observationTargets.splice(s,1),Is(-1))},l.disconnect=function(r){var n=this,t=fo.get(r);t.observationTargets.slice().forEach(function(s){return n.unobserve(r,s.target)}),t.activeTargets.splice(0,t.activeTargets.length)},l}(),m6=function(){function l(r){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof r!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");ho.connect(this,r)}return l.prototype.observe=function(r,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Ns(r))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");ho.observe(this,r,n)},l.prototype.unobserve=function(r){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Ns(r))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");ho.unobserve(this,r)},l.prototype.disconnect=function(){ho.disconnect(this)},l.toString=function(){return"function ResizeObserver () { [polyfill code] }"},l}();const No=new WeakMap;function y6(l){var r;for(let n=0,t=l.length;n<t;++n){const s=l[n],c=No.get(s.target);if(typeof c=="function"){const{inlineSize:b,blockSize:h}=((r=s.borderBoxSize)==null?void 0:r[0])??{},{offsetWidth:v,offsetHeight:y}=s.target;c(Object.assign(s,{offsetWidth:v,offsetHeight:y,width:b??v,height:h??y}))}}}const Hc=new(nt&&window.ResizeObserver||m6)(y6);function Vs(l,r){No.set(l,r),Hc.observe(l)}function $s(l){No.has(l)&&(Hc.unobserve(l),No.delete(l))}function g6(l={}){let r=Ds;const n=a.watch(()=>a.unref(l.target),s=>{r(),!(!s||typeof l.onResize!="function")&&(Vs(s,l.onResize),r=()=>{$s(s),r=Ds})},{immediate:!0}),t=()=>{n(),r()};return a.getCurrentScope()&&a.onScopeDispose(t),{observeResize:Vs,unobserveResize:$s,unobserve:t}}const b6=a.ref(!1);a.computed(()=>b6.value);const Rs="__theme_style__",oi="__theme_observer__",Ps=a.reactive(new Map),Fs=new Map;a.watch(Ps,()=>{if(!nt)return;Fs.clear();const l=document.head.querySelector(`#${Rs}`);l&&document.head.removeChild(l);const r=document.createElement("style");let n=`.${oi} { width: 1px }`,t=1;for(const[s,[c,b]]of Ps.entries())n+=` html.${c} .${oi}, .${b} .${oi} { width: ${++t}px }`,Fs.set(t,s);r.textContent=n,r.id=Rs,document.head.appendChild(r)});const Uc=a.defineComponent({__name:"grid-layout",props:{autoSize:{type:Boolean,default:!0},colNum:{default:12},rowHeight:{default:150},maxRows:{default:1/0},margin:{default:()=>[10,10]},isDraggable:{type:Boolean,default:!0},isResizable:{type:Boolean,default:!0},isMirrored:{type:Boolean,default:!1},isBounded:{type:Boolean,default:!1},useCssTransforms:{type:Boolean,default:!0},verticalCompact:{type:Boolean,default:!0},restoreOnDrag:{type:Boolean,default:!1},layout:{},responsive:{type:Boolean,default:!1},responsiveLayouts:{default:()=>({})},transformScale:{default:1},breakpoints:{default:()=>({lg:1200,md:996,sm:768,xs:480,xxs:0})},cols:{default:()=>({lg:12,md:10,sm:6,xs:4,xxs:2})},preventCollision:{type:Boolean,default:!1},useStyleCursor:{type:Boolean,default:!0}},emits:["layout-before-mount","layout-mounted","layout-updated","breakpoint-changed","update:layout","layout-ready"],setup(l,{expose:r,emit:n}){const t=l,s=n,c=a.reactive({width:-1,mergedStyle:{},lastLayoutLength:0,isDragging:!1,placeholder:{x:0,y:0,w:0,h:0,i:""},layouts:{},lastBreakpoint:null,originalLayout:null}),b=new Map,h=a.ref(t.layout),v=a.ref(),{observeResize:y,unobserveResize:u}=g6(),x=g4();x.on("resizeEvent",S),x.on("dragEvent",M),a.onBeforeMount(()=>{s("layout-before-mount",h.value)}),a.onMounted(()=>{s("layout-mounted",h.value),a.nextTick(()=>{N4(h.value),c.originalLayout=h.value,a.nextTick(()=>{W(),v.value&&y(v.value,b4(C,16)),gt(h.value,t.verticalCompact),s("layout-updated",h.value),R(),C()})})}),a.onBeforeUnmount(()=>{x.clearAll(),v.value&&u(v.value)});function S(ke,ze,De,ne,xe,X){g(ke,ze,De,ne,xe,X)}function M(ke,ze,De,ne,xe,X){k(ke,ze,De,ne,xe,X)}a.watch(()=>c.width,(ke,ze)=>{a.nextTick(()=>{x.emit("updateWidth",ke),ze===-1&&a.nextTick(()=>{s("layout-ready",h.value)}),R()})}),a.watch(()=>[t.layout,t.layout.length],()=>{h.value=t.layout,A()}),a.watch(()=>t.colNum,ke=>{x.emit("setColNum",ke)}),a.watch(()=>t.rowHeight,ke=>{x.emit("setRowHeight",ke)}),a.watch(()=>t.isDraggable,ke=>{x.emit("setDraggable",ke)}),a.watch(()=>t.isResizable,ke=>{x.emit("setResizable",ke)}),a.watch(()=>t.isBounded,ke=>{x.emit("setBounded",ke)}),a.watch(()=>t.transformScale,ke=>{x.emit("setTransformScale",ke)}),a.watch(()=>t.responsive,ke=>{ke||(s("update:layout",c.originalLayout),x.emit("setColNum",t.colNum)),C()}),a.watch(()=>t.maxRows,ke=>{x.emit("setMaxRows",ke)}),a.watch([()=>t.margin,()=>t.margin[1]],R),a.provide(Bc,a.reactive({...a.toRefs(t),...a.toRefs(c),increaseItem:_,decreaseItem:U})),a.provide(Nc,x),r({state:c,getItem:B,resizeEvent:g,dragEvent:k,layoutUpdate:A});function _(ke){b.set(ke.i,ke)}function U(ke){b.delete(ke.i)}function B(ke){return b.get(ke)}function A(){if(!rn(h.value)&&!rn(c.originalLayout)){if(h.value.length!==c.originalLayout.length){const ke=J(h.value,c.originalLayout);if(ke.length>0)if(h.value.length>c.originalLayout.length)c.originalLayout=c.originalLayout.concat(ke);else{const ze=new Set(ke.map(De=>De.i));c.originalLayout=c.originalLayout.filter(De=>!ze.has(De.i))}c.lastLayoutLength=h.value.length,W()}gt(h.value,t.verticalCompact),x.emit("updateWidth",c.width),R(),s("layout-updated",h.value)}}function R(){c.mergedStyle={height:L()}}function C(){v.value&&(c.width=v.value.offsetWidth),x.emit("resizeEvent")}function L(){if(!t.autoSize)return;const ke=parseFloat(t.margin[1]);return x4(h.value)*(t.rowHeight+ke)+ke+"px"}let T;function k(ke,ze,De,ne,xe,X){let pe=gs(h.value,ze);rn(pe)&&(pe={h:0,w:0,x:0,y:0,i:""}),ke==="dragstart"&&!t.verticalCompact&&(T=h.value.reduce((Ke,{i:Da,x:te,y:D})=>({...Ke,[Da]:{x:te,y:D}}),{})),ke==="dragmove"||ke==="dragstart"?(c.placeholder.i=ze,c.placeholder.x=pe.x,c.placeholder.y=pe.y,c.placeholder.w=X,c.placeholder.h=xe,a.nextTick(()=>{c.isDragging=!0}),x.emit("updateWidth",c.width)):a.nextTick(()=>{c.isDragging=!1}),h.value=gi(h.value,pe,De,ne,!0,t.preventCollision),t.restoreOnDrag?(pe.static=!0,gt(h.value,t.verticalCompact,T),pe.static=!1):gt(h.value,t.verticalCompact),x.emit("compact"),R(),ke==="dragend"&&(T=void 0,s("layout-updated",h.value))}function g(ke,ze,De,ne,xe,X){let pe=gs(h.value,ze);rn(pe)&&(pe={h:0,w:0,x:0,y:0,i:""});let Ke;if(t.preventCollision){const Da=Ac(h.value,{...pe,w:X,h:xe}).filter(te=>te.i!==pe.i);if(Ke=Da.length>0,Ke){let te=1/0,D=1/0;Da.forEach(le=>{le.x>pe.x&&(te=Math.min(te,le.x)),le.y>pe.y&&(D=Math.min(D,le.y))}),Number.isFinite(te)&&(pe.w=te-pe.x),Number.isFinite(D)&&(pe.h=D-pe.y)}}Ke||(pe.w=X,pe.h=xe),ke==="resizestart"||ke==="resizemove"?(c.placeholder.i=ze,c.placeholder.x=De,c.placeholder.y=ne,c.placeholder.w=pe.w,c.placeholder.h=pe.h,a.nextTick(()=>{c.isDragging=!0}),x.emit("updateWidth",c.width)):ke&&a.nextTick(()=>{c.isDragging=!1}),t.responsive&&j(),gt(h.value,t.verticalCompact),x.emit("compact"),R(),ke==="resizeend"&&s("layout-updated",h.value)}function j(){const ke=M4(t.breakpoints,c.width);if(ke===c.lastBreakpoint)return;const ze=Oc(ke,t.cols);!rn(c.lastBreakpoint)&&!c.layouts[c.lastBreakpoint]&&(c.layouts[c.lastBreakpoint]=yi(h.value));const De=O4(c.originalLayout,c.layouts,t.breakpoints,ke,c.lastBreakpoint,ze,t.verticalCompact);c.layouts[ke]=De,c.lastBreakpoint!==ke&&s("breakpoint-changed",ke,De),h.value=De,s("update:layout",De),c.lastBreakpoint=ke,x.emit("setColNum",ze)}function W(){c.layouts=Object.assign({},t.responsiveLayouts)}function J(ke,ze){const De=new Set(ze.map(pe=>pe.i)),ne=new Set(ke.map(pe=>pe.i)),xe=ke.filter(pe=>!De.has(pe.i)),X=ze.filter(pe=>!ne.has(pe.i));return xe.concat(X)}return(ke,ze)=>(a.openBlock(),a.createElementBlock("div",{ref_key:"wrapper",ref:v,class:"vgl-layout",style:a.normalizeStyle(c.mergedStyle)},[ke.$slots.default?a.renderSlot(ke.$slots,"default",{key:0}):(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:1},a.renderList(h.value,De=>(a.openBlock(),a.createBlock(Bo,a.mergeProps({key:De.i,ref_for:!0},De),{default:a.withCtx(()=>[a.renderSlot(ke.$slots,"item",{item:De})]),_:2},1040))),128)),a.withDirectives(a.createVNode(Bo,{class:"vgl-item--placeholder",x:c.placeholder.x,y:c.placeholder.y,w:c.placeholder.w,h:c.placeholder.h,i:c.placeholder.i},null,8,["x","y","w","h","i"]),[[a.vShow,c.isDragging]])],4))}});(function(){try{if(typeof document<"u"){var l=document.createElement("style");l.appendChild(document.createTextNode('.vgl-layout{--vgl-placeholder-bg: red;--vgl-placeholder-opacity: 20%;--vgl-placeholder-z-index: 2;--vgl-item-resizing-z-index: 3;--vgl-item-resizing-opacity: 60%;--vgl-item-dragging-z-index: 3;--vgl-item-dragging-opacity: 100%;--vgl-resizer-size: 10px;--vgl-resizer-border-color: #444;--vgl-resizer-border-width: 2px;position:relative;box-sizing:border-box;transition:height .2s ease}.vgl-item{position:absolute;box-sizing:border-box;transition:.2s ease;transition-property:left,top,right}.vgl-item--placeholder{z-index:var(--vgl-placeholder-z-index, 2);-webkit-user-select:none;-moz-user-select:none;user-select:none;background-color:var(--vgl-placeholder-bg, red);opacity:var(--vgl-placeholder-opacity, 20%);transition-duration:.1s}.vgl-item--no-touch{touch-action:none}.vgl-item--transform{right:auto;left:0;transition-property:transform}.vgl-item--transform.vgl-item--rtl{right:0;left:auto}.vgl-item--resizing{z-index:var(--vgl-item-resizing-z-index, 3);-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--vgl-item-resizing-opacity, 60%)}.vgl-item--dragging{z-index:var(--vgl-item-dragging-z-index, 3);-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--vgl-item-dragging-opacity, 100%);transition:none}.vgl-item__resizer{position:absolute;right:0;bottom:0;box-sizing:border-box;width:var(--vgl-resizer-size);height:var(--vgl-resizer-size);cursor:se-resize}.vgl-item__resizer:before{position:absolute;top:0;right:3px;bottom:3px;left:0;content:"";border:0 solid var(--vgl-resizer-border-color);border-right-width:var(--vgl-resizer-border-width);border-bottom-width:var(--vgl-resizer-border-width)}.vgl-item__resizer--rtl{right:auto;left:0;cursor:sw-resize}.vgl-item__resizer--rtl:before{top:0;right:0;bottom:3px;left:3px;border-right-width:0;border-bottom-width:var(--vgl-resizer-border-width);border-left-width:var(--vgl-resizer-border-width)}')),document.head.appendChild(l)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}})();const k6={key:0,class:"item-view-group"},x6={key:0,class:"item-view-group"},_6=a.defineComponent({__name:"index",props:{children:{type:Object,default:()=>{}},level:{type:Number,default:1}},emits:["rowClick","routeUrl","radioChange"],setup(l,{emit:r}){const n=I.useModelComp(I.pinia),{isEdit:t}=I.storeToRefs(n),s=r,c=l,b=a.ref(""),h=a.computed(()=>c==null?void 0:c.children),v=a.computed(()=>{var B,A,R,C;return((B=c==null?void 0:c.children)==null?void 0:B.length)>0&&((A=c==null?void 0:c.children)!=null&&A.every(L=>L==null?void 0:L.layout))?(C=(R=c==null?void 0:c.children)==null?void 0:R[0])==null?void 0:C.layout:"vertical"}),y=B=>{b.value=B,s("radioChange",B)},u=a.computed(()=>{var B,A;return((A=(B=c==null?void 0:c.children)==null?void 0:B[0])==null?void 0:A.isGridLayout)||!1}),x=a.ref((c==null?void 0:c.level)+1),S=a.computed(()=>{if(!(c!=null&&c.children)||!Array.isArray(c.children)||c.children.length<2)return!1;const B=c.children.some(R=>(R==null?void 0:R.name)==="测量系统配置表"&&(R==null?void 0:R.comp)==="ParentItem"),A=c.children.some(R=>(R==null?void 0:R.name)==="测量系统传递表"&&(R==null?void 0:R.comp)==="ParentItem");return B&&A}),M=a.computed(()=>{var B,A,R,C;if((b==null?void 0:b.value)!=="")return(B=c==null?void 0:c.children)==null?void 0:B.filter(L=>!(L!=null&&L.choiceName)||(L==null?void 0:L.choiceName)===(b==null?void 0:b.value));{let L=(R=(A=c==null?void 0:c.children)==null?void 0:A.find(T=>T==null?void 0:T.choice))==null?void 0:R.choiceName;return(C=c==null?void 0:c.children)==null?void 0:C.filter(T=>!(T!=null&&T.choiceName)||(T==null?void 0:T.choiceName)===L)}});a.watch(()=>c==null?void 0:c.children,()=>{S.value},{deep:!0});const _=B=>{s("rowClick",B)},U=(B,A)=>{s("routeUrl",B,A)};return(B,A)=>u.value?(a.openBlock(),a.createBlock(a.unref(Uc),{key:0,layout:h.value,"onUpdate:layout":A[0]||(A[0]=R=>h.value=R),"is-draggable":a.unref(t)==="edit","is-resizable":a.unref(t)==="edit","col-num":24,margin:[8,16]},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(h.value,(R,C)=>(a.openBlock(),a.createBlock(a.unref(Bo),{key:R.i,x:R.x,y:R.y,"min-h":R.minH,"max-h":R.maxH,"min-w":R.minW,w:R.w,h:R.h,i:R.i},{default:a.withCtx(()=>{var L,T,k,g,j,W,J,ke,ze,De,ne,xe,X,pe;return[a.createElementVNode("div",{style:a.normalizeStyle({gap:"16px",display:"flex",flexDirection:"column",paddingBottom:C===((L=c==null?void 0:c.children)==null?void 0:L.length)-1?"0px":"24px"})},[((k=(T=R==null?void 0:R.component)==null?void 0:T.comp)==null?void 0:k.toUpperCase())!=="TABLE"&&((g=R==null?void 0:R.component)!=null&&g.name)?(a.openBlock(),a.createElementBlock("div",k6,[a.createElementVNode("div",{class:"group-name-wrap",style:a.normalizeStyle({paddingLeft:(parseInt(x.value.toString())-1)*12+"px",fontWeight:600-(x.value-1)*100>=400?600-(x.value-1)*100:400,fontSize:17-x.value>=14?17-x.value+"px":"14px"})},a.toDisplayString((j=R==null?void 0:R.component)==null?void 0:j.name),5)])):a.createCommentVNode("",!0),(a.openBlock(),a.createBlock(a.resolveDynamicComponent(a.unref(Rt)((W=R==null?void 0:R.component)==null?void 0:W.comp)),{pageLayout:v.value,config:{showIndex:(J=a.unref(Xl)[C])==null?void 0:J.showIndex,allowMove:(ke=a.unref(Xl)[C])==null?void 0:ke.allowMove,viewport:(ze=a.unref(Xl)[C])==null?void 0:ze.viewport,status:(De=a.unref(Xl)[C])==null?void 0:De.status},related:R==null?void 0:R.relatedTables,compName:R==null?void 0:R.component.name,compNames:a.unref(cc),itemData:(ne=R==null?void 0:R.component)==null?void 0:ne.compData,childItemData:(xe=R==null?void 0:R.component)==null?void 0:xe.itemChildData,key:a.unref(qn),cacheNewData:a.unref(sc),onChange:a.unref(Co),index:(R==null?void 0:R.id)??C,onContentChange:a.unref(Eo),onPageChange:a.unref(So),parentTableId:(X=R==null?void 0:R.component)==null?void 0:X.tableId,allMapContents:a.unref(vi),children:(pe=R==null?void 0:R.component)==null?void 0:pe.children,level:x.value,onRowClick:_,onRouteUrl:U,onClickTrigger:a.unref(uc),onClickMainKey:a.unref(dc),onRadioChange:y},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(M.value,(R,C)=>{var L,T;return a.openBlock(),a.createElementBlock("div",{style:a.normalizeStyle({gap:"16px",display:(R==null?void 0:R.isShow)===!1?"none":"flex",flexDirection:"column",paddingBottom:parseInt(C)===((L=c==null?void 0:c.children)==null?void 0:L.length)-1?"0px":"24px"})},[((T=R==null?void 0:R.comp)==null?void 0:T.toUpperCase())!=="TABLE"&&R.name?(a.openBlock(),a.createElementBlock("div",x6,[a.createElementVNode("div",{class:"group-name-wrap",style:a.normalizeStyle({paddingLeft:parseInt(x.value.toString())>1?"12px":"0px",fontWeight:600-(x.value-1)*100>=400?600-(x.value-1)*100:400,fontSize:17-x.value>=14?17-x.value+"px":"14px"})},a.toDisplayString(R.name),5)])):a.createCommentVNode("",!0),(a.openBlock(),a.createBlock(a.resolveDynamicComponent(a.unref(Rt)(R.comp)),{compName:R.name,config:{showIndex:R==null?void 0:R.showIndex,allowMove:R==null?void 0:R.allowMove,viewport:R==null?void 0:R.viewport,status:R==null?void 0:R.status},itemData:R==null?void 0:R.compData,related:R==null?void 0:R.relatedTables,childItemData:R==null?void 0:R.itemChildData,key:a.unref(qn),onChange:a.unref(Co),index:(R==null?void 0:R.id)??C,onContentChange:a.unref(Eo),onPageChange:a.unref(So),parentTableId:R==null?void 0:R.tableId,allMapContents:a.unref(vi),children:R==null?void 0:R.children,level:x.value,onRowClick:_,onRouteUrl:U,onRadioChange:y},null,40,["compName","config","itemData","related","childItemData","onChange","index","onContentChange","onPageChange","parentTableId","allMapContents","children","level"]))],4)}),256))}}),w6=Ul._export_sfc(_6,[["__scopeId","data-v-d2d6edaa"]]),C6={class:"radio-group-container"},E6=a.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]}},emits:["radioChange"],setup(l,{emit:r}){const n=l,t=r,s=a.ref(),c=rt(I.pinia),{selectTab:b}=I.storeToRefs(c);a.watch(()=>n==null?void 0:n.itemData,()=>{s.value=b.value},{immediate:!0,deep:!0});const h=v=>{s.value=v,t("radioChange",s.value)};return(v,y)=>(a.openBlock(),a.createElementBlock("div",C6,[a.createVNode(fl.ssRadio,{modelValue:s.value,"onUpdate:modelValue":y[0]||(y[0]=u=>s.value=u),content:n==null?void 0:n.itemData,onChange:h},null,8,["modelValue","content"])]))}}),S6=Ul._export_sfc(E6,[["__scopeId","data-v-177d64c3"]]),qc=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"}]),D6={TABLE:vc,FORM:fs,STATICFORM:mc,TABLEOPERATE:k1,TABLESTYLE:L1,TABLEEXTEND:$1,TABLEINTERACTION:F1,FORMOPERATE:hs,FOLD:y2,CALCULATOR:w2,METHODBUTTON:S2,AVATARUPLOAD:Gi.ssAvatar,SIGNATURE:Gi.ssSignature,FORMTOP:fs,STEP:$2,STEPOPERATE:s2,TIMELINE:U2,TIMELINEOPERATE:h2,FORMTOPOPERATE:hs,SIGNATUREOPERATE:I2,AVATARUPLOADOPERATE:N2,TABS:K2,TABSOPERATE:zh,CHART:Wh,CHARTOPERATE:r4,LAYOUT:o4,LAYOUTOPERATE:v4,PARENTITEM:w6,RADIO:S6};function Et(l){return D6[l==null?void 0:l.toUpperCase()]||null}exports.De=Uc;exports.activeStepInfo=bt;exports.addContents=$t;exports.addVisibleDialog=_i;exports.affixItems=Gf;exports.allMapContents=vi;exports.analyzeFilter=kt;exports.analyzeForm=Bd;exports.analyzeQuoteForm=Dd;exports.analyzeTable=Td;exports.cacheNewData=sc;exports.clickMainKey=dc;exports.clickSavePage=Yf;exports.clickStep=fc;exports.clickTrigger=uc;exports.compId=qn;exports.compNames=cc;exports.compShow=Ct;exports.createRobotContent=ac;exports.existLayouts=r0;exports.fixChangeValue=_o;exports.generateLayouts=z1;exports.getComponent=Et;exports.getComponents=Rt;exports.getPageData=Pr;exports.getSliceContLength=s0;exports.gridRowHeight=D1;exports.isStepLayout=hc;exports.onBack=Wf;exports.onButtonChange=Qf;exports.onChange=Co;exports.onClick=Kf;exports.onContentChange=Eo;exports.onExtendTaskEnd=l0;exports.onOk=e0;exports.onPageBack=t0;exports.onPageChange=So;exports.onSelectFixContent=qf;exports.renderShowItems=oc;exports.robotFile=xf;exports.showItems=Xl;exports.sliceTableLength=ic;exports.slotContent=qc;exports.ssTable=vc;exports.st=Bo;exports.stepItems=c0;exports.tabChange=n0;exports.toolBar=a0;exports.useFormComp=ki;exports.useModelLoader=Wp;exports.verifyButton=o0;