ss-component-new 1.1.342 → 1.1.345
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{array-CIgl-zVp.js → array-DUY4OGWo.js} +2 -2
- package/dist/{array-BbLR4QFJ.cjs → array-Iv_rSUaR.cjs} +1 -1
- package/dist/{cloneDeep-B6dvqPwg.js → cloneDeep-B_uQ8HtY.js} +1 -1
- package/dist/{cloneDeep-CsbXNSYy.cjs → cloneDeep-wK5_Gma5.cjs} +1 -1
- package/dist/{index-BbZ5oZ0i.js → index-72YpOa9g.js} +1 -1
- package/dist/{index-SijcElo_.js → index-AE5edkX5.js} +9 -9
- package/dist/{index-D5utaOGh.js → index-B7Q8hooN.js} +13 -13
- package/dist/{index-BGPQJXB3.js → index-BGPtp13U.js} +8 -8
- package/dist/{index-Y0Cyumla.js → index-BJ-74LTj.js} +5 -5
- package/dist/{index-DABs8Kxo.js → index-BJ7Jseve.js} +3 -3
- package/dist/{index-HNpuyw2U.js → index-BKo_pnVb.js} +4 -4
- package/dist/{index-DszdIT7Q.js → index-BQQW5OY2.js} +1 -1
- package/dist/{index-BRGrtqBY.cjs → index-BZzFiKt-.cjs} +1 -1
- package/dist/{index-rtQK9z6N.cjs → index-BdZUWRDq.cjs} +1 -1
- package/dist/{index-CyUifof7.cjs → index-Bg-UuxJo.cjs} +1 -1
- package/dist/{index-D1SmPFCi.js → index-BpAFVorH.js} +4 -4
- package/dist/{index-BFz8ojUA.cjs → index-Bqr-RJ5s.cjs} +1 -1
- package/dist/{index-BkteT_oe.cjs → index-C0C7u42M.cjs} +1 -1
- package/dist/{index-2Y_8Spti.cjs → index-C3kF_kdp.cjs} +1 -1
- package/dist/{index-DOLlBmj2.cjs → index-C7e2SsiY.cjs} +1 -1
- package/dist/{index-CtXYbr9R.cjs → index-CHeuD382.cjs} +1 -1
- package/dist/{index-IcpToIdy.js → index-CIMlKVas.js} +8 -8
- package/dist/{index-B_NUrr4d.js → index-CMRXFg5B.js} +3 -3
- package/dist/{index-BNhZu2YE.js → index-CNLe9Ih4.js} +4 -4
- package/dist/{index-CpSZLiKk.cjs → index-CNyxvVfu.cjs} +1 -1
- package/dist/{index-CanLcekr.cjs → index-CYgCOvww.cjs} +1 -1
- package/dist/{index-CCBUJLcW.cjs → index-Ces1p9GH.cjs} +1 -1
- package/dist/{index-BzDI1Hk1.cjs → index-CgWKKrBi.cjs} +1 -1
- package/dist/{index-DR0edIox.cjs → index-Crg3nWuW.cjs} +1 -1
- package/dist/{index-DnUb2lBQ.js → index-CuFNSO_5.js} +1 -1
- package/dist/{index-DXg7q_C4.js → index-CudwTJtT.js} +4 -4
- package/dist/{index-BnzdBVAZ.cjs → index-Cv2V2tH-.cjs} +1 -1
- package/dist/{index-1jVBtKXq.cjs → index-Cxolc-JF.cjs} +1 -1
- package/dist/{index-DkyKDNU2.js → index-D2ppLPvd.js} +5 -5
- package/dist/{index-eD5QqJJO.js → index-D50w_hkI.js} +6 -6
- package/dist/{index-DpFIZqXx.cjs → index-D6CIrGz0.cjs} +1 -1
- package/dist/{index-DERavfV0.cjs → index-D6yMZuEE.cjs} +1 -1
- package/dist/{index-DLKC6eHy.cjs → index-DHS-ch4n.cjs} +1 -1
- package/dist/{index-DwWpxE53.js → index-DN8QKPxC.js} +5 -5
- package/dist/{index-DGhwNtIt.cjs → index-DODGSaWO.cjs} +1 -1
- package/dist/{index-CaDX01yd.js → index-DVl21Vdm.js} +7 -7
- package/dist/{index-BcYDkpFv.cjs → index-DYaWJABJ.cjs} +1 -1
- package/dist/{index-C7YAhn2s.js → index-D_bSNEZC.js} +4 -4
- package/dist/{index-DBOIQSzb.js → index-DdSUH5bZ.js} +6 -6
- package/dist/{index-BhsyjobL.js → index-DfvyEYG7.js} +1 -1
- package/dist/{index-BtgTpXO3.cjs → index-IqupeAh3.cjs} +1 -1
- package/dist/{index-Cz6mt4xg.js → index-N2roD2S4.js} +3 -3
- package/dist/{index-CTItPGo-.cjs → index-O0KxEjrE.cjs} +1 -1
- package/dist/{index-Dmd8Gu9w.cjs → index-Q-X5BSK9.cjs} +1 -1
- package/dist/{index-C80LCckV.cjs → index-Yb78DraO.cjs} +1 -1
- package/dist/{index-CFuHMQ0E.js → index-gSMJ4Ztg.js} +3 -3
- package/dist/{index-BpyPhZFL.cjs → index-psMnTDqi.cjs} +1 -1
- package/dist/{index-BMBjPvzr.js → index-qrbBy7H-.js} +3 -3
- package/dist/{index-PfDSH60C.js → index-vZYupXGi.js} +5 -5
- package/dist/{index-Lf5outC1.cjs → index-xRyWoxLE.cjs} +1 -1
- package/dist/{index-D24pmlO4.js → index-za1vzQUk.js} +7 -7
- package/dist/{index.vue_vue_type_script_setup_true_lang-BLVTWxQ6.cjs → index.vue_vue_type_script_setup_true_lang-CNwnqALo.cjs} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-B2Pk0SDZ.js → index.vue_vue_type_script_setup_true_lang-aX4ZDLmw.js} +1 -1
- package/dist/index.vue_vue_type_style_index_0_scoped_62633fa4_lang-D6yeE-t9.cjs +1 -0
- package/dist/{index.vue_vue_type_style_index_0_scoped_62633fa4_lang-DZg4mORk.js → index.vue_vue_type_style_index_0_scoped_62633fa4_lang-D_TXd7Wg.js} +217 -212
- package/dist/{index.vue_vue_type_style_index_0_scoped_d9b749a8_lang-C-VFwt4I.cjs → index.vue_vue_type_style_index_0_scoped_d9b749a8_lang-C4MExs4-.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_d9b749a8_lang-Dc6z5Mju.js → index.vue_vue_type_style_index_0_scoped_d9b749a8_lang-D57jd3fB.js} +8 -8
- package/dist/{login-CGsSxGrp.js → login-sl3wMRcO.js} +2 -2
- package/dist/{login-CJlmnJXf.cjs → login-syD20PGh.cjs} +1 -1
- package/dist/{main-CHMOdLsc.js → main-1-TUJcpa.js} +7 -7
- package/dist/{main-BB-V7rpk.cjs → main-DpmsExQm.cjs} +1 -1
- package/dist/{menu-DWyy1zjD.js → menu-BMXT4_22.js} +1 -1
- package/dist/{menu-sqTDeabF.cjs → menu-BrXts4j-.cjs} +1 -1
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.js +7 -7
- package/dist/ss-component3.cjs +1 -1
- package/dist/ss-component3.js +1 -1
- package/package.json +1 -1
- package/dist/index.vue_vue_type_style_index_0_scoped_62633fa4_lang-fyq9ZrLg.cjs +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ref as Q } from "vue";
|
|
2
|
-
import { c as o } from "./cloneDeep-
|
|
3
|
-
import { ak as z } from "./index-
|
|
2
|
+
import { c as o } from "./cloneDeep-B_uQ8HtY.js";
|
|
3
|
+
import { ak as z } from "./index-BJ-74LTj.js";
|
|
4
4
|
const J = [
|
|
5
5
|
{
|
|
6
6
|
key: "FormName",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const Q=require("vue"),o=require("./cloneDeep-CsbXNSYy.cjs"),z=require("./index-DpFIZqXx.cjs"),E=[{key:"FormName",value:"Form"},{key:"TableName",value:"Table"},{key:"MenuName",value:"Menu"},{key:"GroupName",value:"Group"},{key:"SystemKey",value:"System"}],N=[{key:"FormDirect",value:"formFlex"},{key:"Form",value:"formContent"},{key:"FormButton",value:"formButton"},{key:"FormFlex",value:"formWrap"},{key:"TableColumns",value:"header"},{key:"TableButton",value:"extraButton"},{key:"TableLineButton",value:"rowButton"},{key:"Table",value:"tableContents"},{key:"TableIndex",value:"tableIndex"},{key:"Menus",value:"menuContents"},{key:"GroupContents",value:"groupContents"}],M=Q.ref(0),Pe=l=>{const[t,s]=l.split(/=(.+)/),e=t.replace(/['"]/g,"").trim(),r=s.replace(/^['"]|['"]$/g,"");return{key:e,value:r}},V=l=>{try{return JSON.parse(l),!0}catch{return!1}},Be=l=>l.includes("$")&&l.trim().endsWith("(")?l+")":l,Ge=l=>{let t=l;const s=[];let e="";for(const r of t)r.includes("{")||e.includes("{")||r.includes("[")||e.includes("[")||r.includes("【")||e.includes("【")||r.includes("(")||e.includes("(")||r.includes("(")||e.includes("(")||r.includes("/*")||e.includes("/*")?(e+=r.trim(),o.cloneDeep(e).split("{").length-1===o.cloneDeep(e).split("}").length-1&&o.cloneDeep(e).split("【").length-1===o.cloneDeep(e).split("】").length-1&&o.cloneDeep(e).split("[").length-1===o.cloneDeep(e).split("]").length-1&&o.cloneDeep(e).split("(").length-1===o.cloneDeep(e).split(")").length-1&&o.cloneDeep(e).split("(").length-1===o.cloneDeep(e).split(")").length-1&&o.cloneDeep(e).split("/*").length-1===o.cloneDeep(e).split("*/").length-1&&(s.push(e),e="")):s.push(r.trim());return s==null?void 0:s.filter(r=>r.includes("{"))},We=l=>{var s;let t=[];return(s=Ge(l.slice(1,-1)))==null||s.forEach(e=>{var n,c,a,f;let r=((c=(n=e.slice(1,-1))==null?void 0:n.split(","))==null?void 0:c.length)??1;(f=(a=e.slice(1,-1))==null?void 0:a.split(","))==null||f.forEach(p=>{var A,h,j,b,$,i,y,m,g,T,F,I,P;let u=p==null?void 0:p.split(":"),d=u!=null&&u[0]?(u==null?void 0:u[1].split("$").length)-1===1?((A=u==null?void 0:u[0])==null?void 0:A.replace(/^"(.*)"$/,"$1"))+((h=u==null?void 0:u[1])==null?void 0:h.replace(/^"(.*)"$/,"$1")):Array.isArray((b=(j=u==null?void 0:u[1])==null?void 0:j.replace(/^"(.*)"$/,"$1"))==null?void 0:b.split("("))&&((y=(i=($=u==null?void 0:u[1])==null?void 0:$.replace(/^"(.*)"$/,"$1"))==null?void 0:i.split("("))==null?void 0:y.length)>1?((m=u==null?void 0:u[0])==null?void 0:m.replace(/^"(.*)"$/,"$1"))+((F=(T=(g=u==null?void 0:u[1])==null?void 0:g.replace(/^"(.*)"$/,"$1"))==null?void 0:T.split("("))==null?void 0:F[0])+"()":(I=u==null?void 0:u[0])==null?void 0:I.replace(/^"(.*)"$/,"$1"):"",k=(u==null?void 0:u[1].split("$").length)-1===0?(P=u==null?void 0:u[1])==null?void 0:P.replace(/^"(.*)"$/,"$1"):"";M.value++,t.push({id:M.value,key:d,value:k,width:r,extraContent:u==null?void 0:u[1]})})}),t},De=l=>{var t,s;try{const e=l.replace(/[’]|[‘]|[']/g,'"').replace(/,/g,",").replace(/:/g,":").replace(/:\s*(?=,|}|$)/g,': ""');if(o.cloneDeep(e).split("{").length-1>1){let r=o.cloneDeep(e).replace(/^\{(.*)\}$/,"[$1]");if(V(r)&&!r.includes("$")||(r=r.replace(/"([^"]+)"\$([\w\u4e00-\u9fa5]+\([^)]*\))/g,'"$1$$$2"')),V(r)){const n=JSON.parse(r);let c=[];return n==null||n.forEach(a=>{var f;(f=Object.entries(o.cloneDeep(a)))==null||f.forEach(p=>{M.value++,c.push({id:M.value,key:(p==null?void 0:p[0])??"",value:(p==null?void 0:p[1])===""?"":p==null?void 0:p[1],width:Object.keys(o.cloneDeep(a)).length})})}),c}else return e.trim().startsWith("{{")?We(e.trim()):se(r)}else if(V(e)){const r=JSON.parse(e);return Object.entries(r).map(([n,c])=>(M.value++,{id:M.value,key:n,value:c===""?"":c,width:1}))}else return((t=se(e))==null?void 0:t.length)===0?e:(s=se(e))==null?void 0:s.map(r=>({label:r.label,method:Be(r.method)}))}catch(e){return console.error("转换失败:",e),[]}},se=l=>{l=l.trim().replace(/^\{|\}$/g,"").trim();const t=[];let s=0;for(;s<l.length;){const e=l.slice(s).match(/^\s*"([^"]+)"\s*:\s*/);if(!e)break;const r=e[1];s+=e[0].length;let n="",c=0,a=!1,f="";for(let p=s;p<l.length;p++){const u=l[p];if((u==='"'||u==="'")&&!a?(a=!0,f=u):u===f&&a&&(a=!1,f=""),!a&&((u==="{"||u==="("||u==="[")&&c++,(u==="}"||u===")"||u==="]")&&c--,u===","&&c===0||p===l.length-1)){n=l.slice(s,p+1).trim(),s=p+1;break}}t.push({label:r,method:n})}return t},Le=(l,t)=>{try{if(E!=null&&E.find(s=>(s==null?void 0:s.key)===t))return l.replace(/['"]/g,"").trim();if(o.cloneDeep(l).split("[").length-1>1){const s=o.cloneDeep(l).replace(/[’]|[‘]|[']/g,'"').replaceAll(/,/g,",").replaceAll("(","[").replaceAll(")","]").replaceAll("],]","]]");return JSON.parse(s)}else{const s=o.cloneDeep(l).replace(/[’]|[‘]|[']/g,'"').replace(/,/g,",");if(V(s)){const e=JSON.parse(s);return Array.isArray(e)?e.map(r=>({label:r})):e}else return De(o.cloneDeep(l))}}catch(s){return console.error("解析失败:",s),l}},_e=l=>({[l==null?void 0:l.key]:Le(l==null?void 0:l.value,l==null?void 0:l.key)}),ze=l=>{try{if(o.cloneDeep(l).split("[").length-1>1){const t=o.cloneDeep(l).replace(/[’]|[‘]|[']/g,'"').replaceAll(/,/g,",").replaceAll("(","[").replaceAll(")","]").replaceAll("],]","]]");return JSON.parse(t)}else return JSON.parse(o.cloneDeep(l).replace(/[’]|[‘]|[']/g,'"').replace(/,/g,",")).map(s=>({label:s}))}catch(t){return console.error("解析失败:",t),l}},Ze=l=>{const t=l.match(/\(([^)]+)\)/);return t?t[1]:""},He=l=>{const t=l.match(/^([^(]+)\s*\(/);return t?t[1].trim():l},me=l=>l.replace(/'/g,"").replace(/"/g,"").replace(/{|}/g,"").split(":").map(t=>t.trim()).filter(t=>t).join("/"),qe=l=>{var c,a;let t=[],s=[];const e=(c=o.cloneDeep(l))==null?void 0:c.map(f=>f==null?void 0:f.key),r=[...new Set((a=o.cloneDeep(e))==null?void 0:a.map(f=>Ze(f)))];r==null||r.forEach(f=>{let p=l==null?void 0:l.filter(k=>k.key.includes(f));p==null||p.forEach(k=>{k!=null&&k.key.includes("Menus")&&(t.push({key:"GroupName",value:me(k==null?void 0:k.value)}),s.push(me(k==null?void 0:k.value)))});let u=l==null?void 0:l.filter(k=>k.key.includes(f)&&!(k!=null&&k.key.includes("Menus")));u=u==null?void 0:u.map(k=>(k.key=He(k.key),k));const d={key:"GroupContents",value:u};t.push(d)});const n={key:"Menus",value:s};return t.unshift(n),t},Ce=l=>{var t,s;if(Array.isArray(Object.keys(l))&&((t=Object.keys(l))==null?void 0:t.length)>0){let e=[];return(s=Object.entries(l))==null||s.forEach(([r,n])=>{var a,f;let c=[];if(c.push(r),((a=Object.keys(n))==null?void 0:a.length)>0){let p=[];(f=Ce(n))==null||f.forEach(u=>{p.push(u)}),p==null||p.forEach(u=>{c.push(u)})}e.push(c)}),e}},Me=(l,t)=>{var e;let s=t;return Array.isArray(Object.keys(l))&&((e=Object.entries(l))==null||e.forEach(([r,n])=>{let c=[r];if(typeof n=="object"&&n!==null){let a=Ce(n);a==null||a.forEach(f=>{c.push(f)})}s.push(c)})),s},Qe=l=>{const t={};return l.forEach(e=>{const r=e.split("/");let n=t;r.forEach(c=>{n[c]||(n[c]={}),n=n[c]})}),Me(t,[])},ce=l=>Qe(l),Re=l=>{var t,s,e,r,n,c,a,f;try{const p=ee((s=(t=o.cloneDeep(l))==null?void 0:t.replace("(","("))==null?void 0:s.replace(")",")")),u=(r=(e=o.cloneDeep(p))==null?void 0:e.filter(h=>!h.includes("/*")))==null?void 0:r.map(h=>Pe(h)),d=qe(u),k=[];if(((n=d==null?void 0:d.find(h=>(h==null?void 0:h.key)==="Menus"))==null?void 0:n.value.length)===0)return!1;(c=o.cloneDeep(d))==null||c.forEach(h=>{var j,b,$,i,y;E!=null&&E.find(m=>{var g,T;return((g=m==null?void 0:m.key)==null?void 0:g.toUpperCase())===((T=h==null?void 0:h.key)==null?void 0:T.toUpperCase())})?k.push({comp:((j=E==null?void 0:E.find(m=>{var g,T;return((g=m==null?void 0:m.key)==null?void 0:g.toUpperCase())===((T=h==null?void 0:h.key)==null?void 0:T.toUpperCase())}))==null?void 0:j.value)??"",name:(b=h==null?void 0:h.value)==null?void 0:b.replace(/[’]|[‘]|[']/g,""),compData:[]}):N!=null&&N.find(m=>{var g,T;return((g=m==null?void 0:m.key)==null?void 0:g.toUpperCase())===((T=h==null?void 0:h.key)==null?void 0:T.toUpperCase())})&&((k==null?void 0:k.length)===0&&($=h.key)!=null&&$.includes("Menus")&&k.push({comp:"Menu",name:"",compData:[]}),(i=k==null?void 0:k[(k==null?void 0:k.length)-1])!=null&&i.compData&&k[(k==null?void 0:k.length)-1].compData.push({key:(y=N==null?void 0:N.find(m=>{var g,T;return((g=m==null?void 0:m.key)==null?void 0:g.toUpperCase())===((T=h==null?void 0:h.key)==null?void 0:T.toUpperCase())}))==null?void 0:y.value,contents:h==null?void 0:h.value}))});let A=(a=o.cloneDeep(k))==null?void 0:a.map(h=>{var j;return h!=null&&h.compData&&(h.compData=(j=h==null?void 0:h.compData)==null?void 0:j.map(b=>{var $,i,y,m,g,T,F,I,P,G,W;if((b==null?void 0:b.key)==="formFlex")b.contents=((i=($=b.contents)==null?void 0:$.replace(/[’]|[‘]|[']/g,""))==null?void 0:i.toUpperCase())!=="Vertical".toUpperCase();else if((b==null?void 0:b.key)==="groupContents")b.contents=(y=o.cloneDeep(b.contents))==null?void 0:y.map(L=>_e(o.cloneDeep(L)));else if(Array.isArray(b==null?void 0:b.contents))b.contents=ce(b.contents);else if(((g=(m=b==null?void 0:b.contents)==null?void 0:m.trim())!=null&&g.startsWith("[")||(F=(T=b.contents)==null?void 0:T.trim())!=null&&F.startsWith("【"))&&((P=(I=b.contents)==null?void 0:I.trim())!=null&&P.endsWith("]")||(W=(G=b.contents)==null?void 0:G.trim())!=null&&W.endsWith("】")))b.contents=ze(o.cloneDeep(b.contents));else{if(!b.contents)return;b.contents=De(o.cloneDeep(b.contents))}return b})),h});return A=(f=o.cloneDeep(A))==null?void 0:f.map(h=>{var j;return(h==null?void 0:h.comp)==="Group"&&(h.compData=(j=h.compData)==null?void 0:j.map(b=>{var i;let $=[];return(i=b.contents)==null||i.forEach(y=>{var m,g,T,F,I,P,G,W,L,x,O,C;if(E!=null&&E.find(D=>{var J,U,S;return((J=D==null?void 0:D.key)==null?void 0:J.toUpperCase())===((S=(U=Object.keys(y))==null?void 0:U[0])==null?void 0:S.toUpperCase())}))$.push({comp:(m=E==null?void 0:E.find(D=>{var J,U,S;return((J=D==null?void 0:D.key)==null?void 0:J.toUpperCase())===((S=(U=Object.keys(y))==null?void 0:U[0])==null?void 0:S.toUpperCase())}))==null?void 0:m.value,name:(T=(g=Object.values(y))==null?void 0:g[0])==null?void 0:T.replace(/[’]|[‘]|[']/g,""),compData:[]});else if(N!=null&&N.find(D=>{var J,U,S;return((J=D==null?void 0:D.key)==null?void 0:J.toUpperCase())===((S=(U=Object.keys(y))==null?void 0:U[0])==null?void 0:S.toUpperCase())})){if(($==null?void 0:$.length)===0)return;(F=$==null?void 0:$[($==null?void 0:$.length)-1])!=null&&F.compData&&$[($==null?void 0:$.length)-1].compData.push({key:(I=N==null?void 0:N.find(D=>{var J,U,S;return((J=D==null?void 0:D.key)==null?void 0:J.toUpperCase())===((S=(U=Object.keys(y))==null?void 0:U[0])==null?void 0:S.toUpperCase())}))==null?void 0:I.value,contents:(P=Object.values(y))==null?void 0:P[0]})}else if((W=(G=Object.keys(y))==null?void 0:G[0])!=null&&W.includes("$")){const D=(x=(L=Object.keys(o.cloneDeep(y)))==null?void 0:L[0])==null?void 0:x.split("$");$[($==null?void 0:$.length)-1].compData.push({key:(O=N==null?void 0:N.find(J=>{var U,S;return((U=J==null?void 0:J.key)==null?void 0:U.toUpperCase())===((S=D==null?void 0:D[0])==null?void 0:S.toUpperCase())}))==null?void 0:O.value,contents:(C=Object.values(y))==null?void 0:C[0],selectLabel:D==null?void 0:D[1]})}return y}),b.contents=$,b})),h}),A}catch{return!1}},de=Q.ref(0),Oe=l=>{const t=[];let s=null;for(let e=0;e<l.length;e++){const r=l[e];if(Array.isArray(r))s&&(s.children=Oe(r));else{const n={label:r};t.push(n),s=n}}return t},Te=l=>{let t=0;for(const s of l)t++,s.children&&(t+=Te(s.children));return t},xe=(l,t,s=[])=>{let e=0;for(const r of t){if(e>=l.length)break;const n=[...l[e]];if(s.push(n),e++,r.children&&r.children.length>0){const c=[];xe(l.slice(e),r.children,c),c.length>0&&(n.push(c),e+=Te(r.children))}}return s},Xe=(l,t)=>{let s=[];return l==null||l.forEach(r=>{r.some(n=>Array.isArray(n))?s.push(...r):s.push(r)}),xe(s,t)},ne=l=>{const t={label:l[0].trim()};if(l.length>1){const s=l.slice(1);s.length===1&&Array.isArray(s[0])?t.children=s[0].map(e=>Array.isArray(e)?ne(e):{label:e.trim()}):t.children=s.map(e=>Array.isArray(e)?ne(e):{label:e.trim()})}return t},ke=l=>{let t=l.replace(/:([^{}\[\],\s]+)([,\]}])/g,':"$1"$2');return t=t.replace(/:}(?=,|]|}|$)/g,':""}'),t=t.replace(/:,(?=\s*")/g,':"",'),t=t.replace(/(https?|HTTPS?):"\/\/([^"]+)"/gi,(s,e,r)=>`"${e}://${r}"`),t=t.replace(/(\[|\s|,)((?:https?|HTTPS?):\/\/[^\s,\]]+)(\]|,|$)/gi,'$1"$2"$3'),t},Ye=l=>{var s;return l.some(e=>!Array.isArray(e))?l:(s=o.cloneDeep(l))==null?void 0:s.map(e=>{let r=[];return e.some(n=>Array.isArray(n))?e==null||e.forEach(n=>{Array.isArray(n)&&r.push(ne(n))}):e.some(n=>n.includes("["))?r.push(e):r=e.map(n=>({label:n.trim()})),r})},Je=(l,t,s)=>{let e=l,r=s,n=t;return n.children&&(Array.isArray(r[r.length-1])?r[r.length-1].push(e[0]):r.push(e[0]),e.shift(),n=n.children),Array.isArray(n)&&n.forEach(c=>{if(c.children){const a=Je(e,c,r);r=a[0],e=a[1]}}),[r,e]},Ke=(l,t)=>{let s=l,e=[];return t.length>0?t==null||t.forEach(r=>{let n=s==null?void 0:s[0];s.shift();const c=Je(o.cloneDeep(s),r,n);n=c[0],s=c[1],e.push(n)}):e=s,e},ae=(l,t)=>{const s=Ye(o.cloneDeep(l));return Ke(s,t)},Ve=l=>{const t=[];let s=0;const e=l.length;for(;s<e;){const r=l[s];r.key==="tableColumns"&&s+1<e&&l[s+1].key==="tableContents"?(t.push({comp:"Table",compData:[r,l[s+1]],name:""}),s+=2):(t.push(r),s+=1)}return t},Ne=l=>ae([l],[]),v=l=>{const t=[];return l==null||l.forEach(s=>s==null?void 0:s.forEach(r=>{var n,c;de.value++,t.push({id:de.value,key:(n=Object.keys(r))==null?void 0:n[0],value:(c=Object.values(r))==null?void 0:c[0],width:s.length})})),t},ge=l=>{let t=Ve(l);return t=t==null?void 0:t.map(s=>{var e,r,n,c;if(s.comp==="Table")(e=s.compData)!=null&&e.find(a=>(a==null?void 0:a.key)==="header")||(s.compData=(r=s.compData)==null?void 0:r.map(a=>(a.key==="tableColumns"?a={key:"header",contents:ae(a.value,[])}:a={key:a.key,contents:a.value},a)),s.compData.push({key:"extraButton",contents:[{label:"新增"}]}),s.compData.push({key:"rowButton",contents:[{label:"查看"},{label:"编辑"},{label:"删除"}]}));else if(s.key==="form"){const a=(n=s==null?void 0:s.value)==null?void 0:n.map(f=>(Array.isArray(f)||(f=[f]),f));s={comp:"Form",compData:[{key:"formFlex",contents:""},{key:"formContent",contents:v(a)}],name:""}}else if(s.key==="formTop"){const a=(c=s==null?void 0:s.value)==null?void 0:c.map(f=>(Array.isArray(f)||(f=[f]),f));s={comp:"FormTop",compData:[{key:"formFlex",contents:""},{key:"formContent",contents:v(a)},{key:"enableWrap",contents:!0},{key:"formButton",contents:[{label:"查询"},{label:"重置"}]}],name:""}}return s}),t},we=(l,t)=>{var a,f,p,u,d,k;const s=[],e=Oe((f=(a=l==null?void 0:l.find(A=>A.key==="tableIndex"))==null?void 0:a.value)==null?void 0:f[0]);s.push({key:"tableIndexColumn",contents:t}),s.push({key:"tableIndex",contents:e});let r=[];const n=(p=l==null?void 0:l.find(A=>A.key==="tableColumns"))==null?void 0:p.value;n.length===1&&!(n!=null&&n[0].some(A=>Array.isArray(A)))?r=(u=n==null?void 0:n[0])==null?void 0:u.map(A=>({label:A})):r=ae((d=l==null?void 0:l.find(A=>A.key==="tableColumns"))==null?void 0:d.value,e),s.push({key:"header",contents:r});const c=Xe((k=l==null?void 0:l.find(A=>A.key==="tableContents"))==null?void 0:k.value,e);return s.push({key:"tableContents",contents:c}),s.push({key:"extraButton",contents:[{label:"新增"}]}),s.push({key:"rowButton",contents:[{label:"查看"},{label:"编辑"},{label:"删除"}]}),s},Ee=l=>l.replace(/"([^"]+)"\s*==\s*(\[[^\]]+\])/g,(t,s,e)=>{const r=Ee(e);return`"${s}",${r}`}),Y=l=>{const t=l.replace(/"([^"]+)"\s*==\s*(\[[^\]]+\])/g,'"$1",$2');return Ee(t).replace(/^"(.*)"$/,"$1")},ve=l=>{const t=new Set;return l.filter(s=>{const e=JSON.stringify(s);return t.has(e)?!1:t.add(e)})},be=l=>{var s;let t=[];return(s=o.cloneDeep(l))==null||s.forEach(e=>{var r;(r=e.contents)==null||r.forEach(n=>{t.push(n)})}),t=ve(t),t.push({label:"操作"}),[t]},el=(l,t)=>l.reduce((s,e,r)=>{const n=Math.floor(r/t);return s[n]||(s[n]=[]),s[n].push(e),s},[]),je=l=>l.reduce((t,s)=>s.children&&s.children.length>0?t+je(s.children):t+1,0),ll=(l,t)=>{var e;let s=[];return(e=el(l,je(t==null?void 0:t[0])-1))==null||e.forEach(r=>{let n=[];r.forEach(c=>{var a;Array.isArray(c.contents)?(a=c.contents)==null||a.forEach(f=>{n.push(f)}):n.push(c.contents)}),s.push(n)}),[s]},sl=["方法体","输入","输出"],$e=Q.ref(1),ee=l=>{let t;l.replaceAll(" ",`\r
|
|
1
|
+
"use strict";const Q=require("vue"),o=require("./cloneDeep-wK5_Gma5.cjs"),z=require("./index-D6CIrGz0.cjs"),E=[{key:"FormName",value:"Form"},{key:"TableName",value:"Table"},{key:"MenuName",value:"Menu"},{key:"GroupName",value:"Group"},{key:"SystemKey",value:"System"}],N=[{key:"FormDirect",value:"formFlex"},{key:"Form",value:"formContent"},{key:"FormButton",value:"formButton"},{key:"FormFlex",value:"formWrap"},{key:"TableColumns",value:"header"},{key:"TableButton",value:"extraButton"},{key:"TableLineButton",value:"rowButton"},{key:"Table",value:"tableContents"},{key:"TableIndex",value:"tableIndex"},{key:"Menus",value:"menuContents"},{key:"GroupContents",value:"groupContents"}],M=Q.ref(0),Pe=l=>{const[t,s]=l.split(/=(.+)/),e=t.replace(/['"]/g,"").trim(),r=s.replace(/^['"]|['"]$/g,"");return{key:e,value:r}},V=l=>{try{return JSON.parse(l),!0}catch{return!1}},Be=l=>l.includes("$")&&l.trim().endsWith("(")?l+")":l,Ge=l=>{let t=l;const s=[];let e="";for(const r of t)r.includes("{")||e.includes("{")||r.includes("[")||e.includes("[")||r.includes("【")||e.includes("【")||r.includes("(")||e.includes("(")||r.includes("(")||e.includes("(")||r.includes("/*")||e.includes("/*")?(e+=r.trim(),o.cloneDeep(e).split("{").length-1===o.cloneDeep(e).split("}").length-1&&o.cloneDeep(e).split("【").length-1===o.cloneDeep(e).split("】").length-1&&o.cloneDeep(e).split("[").length-1===o.cloneDeep(e).split("]").length-1&&o.cloneDeep(e).split("(").length-1===o.cloneDeep(e).split(")").length-1&&o.cloneDeep(e).split("(").length-1===o.cloneDeep(e).split(")").length-1&&o.cloneDeep(e).split("/*").length-1===o.cloneDeep(e).split("*/").length-1&&(s.push(e),e="")):s.push(r.trim());return s==null?void 0:s.filter(r=>r.includes("{"))},We=l=>{var s;let t=[];return(s=Ge(l.slice(1,-1)))==null||s.forEach(e=>{var n,c,a,f;let r=((c=(n=e.slice(1,-1))==null?void 0:n.split(","))==null?void 0:c.length)??1;(f=(a=e.slice(1,-1))==null?void 0:a.split(","))==null||f.forEach(p=>{var A,h,j,b,$,i,y,m,g,T,F,I,P;let u=p==null?void 0:p.split(":"),d=u!=null&&u[0]?(u==null?void 0:u[1].split("$").length)-1===1?((A=u==null?void 0:u[0])==null?void 0:A.replace(/^"(.*)"$/,"$1"))+((h=u==null?void 0:u[1])==null?void 0:h.replace(/^"(.*)"$/,"$1")):Array.isArray((b=(j=u==null?void 0:u[1])==null?void 0:j.replace(/^"(.*)"$/,"$1"))==null?void 0:b.split("("))&&((y=(i=($=u==null?void 0:u[1])==null?void 0:$.replace(/^"(.*)"$/,"$1"))==null?void 0:i.split("("))==null?void 0:y.length)>1?((m=u==null?void 0:u[0])==null?void 0:m.replace(/^"(.*)"$/,"$1"))+((F=(T=(g=u==null?void 0:u[1])==null?void 0:g.replace(/^"(.*)"$/,"$1"))==null?void 0:T.split("("))==null?void 0:F[0])+"()":(I=u==null?void 0:u[0])==null?void 0:I.replace(/^"(.*)"$/,"$1"):"",k=(u==null?void 0:u[1].split("$").length)-1===0?(P=u==null?void 0:u[1])==null?void 0:P.replace(/^"(.*)"$/,"$1"):"";M.value++,t.push({id:M.value,key:d,value:k,width:r,extraContent:u==null?void 0:u[1]})})}),t},De=l=>{var t,s;try{const e=l.replace(/[’]|[‘]|[']/g,'"').replace(/,/g,",").replace(/:/g,":").replace(/:\s*(?=,|}|$)/g,': ""');if(o.cloneDeep(e).split("{").length-1>1){let r=o.cloneDeep(e).replace(/^\{(.*)\}$/,"[$1]");if(V(r)&&!r.includes("$")||(r=r.replace(/"([^"]+)"\$([\w\u4e00-\u9fa5]+\([^)]*\))/g,'"$1$$$2"')),V(r)){const n=JSON.parse(r);let c=[];return n==null||n.forEach(a=>{var f;(f=Object.entries(o.cloneDeep(a)))==null||f.forEach(p=>{M.value++,c.push({id:M.value,key:(p==null?void 0:p[0])??"",value:(p==null?void 0:p[1])===""?"":p==null?void 0:p[1],width:Object.keys(o.cloneDeep(a)).length})})}),c}else return e.trim().startsWith("{{")?We(e.trim()):se(r)}else if(V(e)){const r=JSON.parse(e);return Object.entries(r).map(([n,c])=>(M.value++,{id:M.value,key:n,value:c===""?"":c,width:1}))}else return((t=se(e))==null?void 0:t.length)===0?e:(s=se(e))==null?void 0:s.map(r=>({label:r.label,method:Be(r.method)}))}catch(e){return console.error("转换失败:",e),[]}},se=l=>{l=l.trim().replace(/^\{|\}$/g,"").trim();const t=[];let s=0;for(;s<l.length;){const e=l.slice(s).match(/^\s*"([^"]+)"\s*:\s*/);if(!e)break;const r=e[1];s+=e[0].length;let n="",c=0,a=!1,f="";for(let p=s;p<l.length;p++){const u=l[p];if((u==='"'||u==="'")&&!a?(a=!0,f=u):u===f&&a&&(a=!1,f=""),!a&&((u==="{"||u==="("||u==="[")&&c++,(u==="}"||u===")"||u==="]")&&c--,u===","&&c===0||p===l.length-1)){n=l.slice(s,p+1).trim(),s=p+1;break}}t.push({label:r,method:n})}return t},Le=(l,t)=>{try{if(E!=null&&E.find(s=>(s==null?void 0:s.key)===t))return l.replace(/['"]/g,"").trim();if(o.cloneDeep(l).split("[").length-1>1){const s=o.cloneDeep(l).replace(/[’]|[‘]|[']/g,'"').replaceAll(/,/g,",").replaceAll("(","[").replaceAll(")","]").replaceAll("],]","]]");return JSON.parse(s)}else{const s=o.cloneDeep(l).replace(/[’]|[‘]|[']/g,'"').replace(/,/g,",");if(V(s)){const e=JSON.parse(s);return Array.isArray(e)?e.map(r=>({label:r})):e}else return De(o.cloneDeep(l))}}catch(s){return console.error("解析失败:",s),l}},_e=l=>({[l==null?void 0:l.key]:Le(l==null?void 0:l.value,l==null?void 0:l.key)}),ze=l=>{try{if(o.cloneDeep(l).split("[").length-1>1){const t=o.cloneDeep(l).replace(/[’]|[‘]|[']/g,'"').replaceAll(/,/g,",").replaceAll("(","[").replaceAll(")","]").replaceAll("],]","]]");return JSON.parse(t)}else return JSON.parse(o.cloneDeep(l).replace(/[’]|[‘]|[']/g,'"').replace(/,/g,",")).map(s=>({label:s}))}catch(t){return console.error("解析失败:",t),l}},Ze=l=>{const t=l.match(/\(([^)]+)\)/);return t?t[1]:""},He=l=>{const t=l.match(/^([^(]+)\s*\(/);return t?t[1].trim():l},me=l=>l.replace(/'/g,"").replace(/"/g,"").replace(/{|}/g,"").split(":").map(t=>t.trim()).filter(t=>t).join("/"),qe=l=>{var c,a;let t=[],s=[];const e=(c=o.cloneDeep(l))==null?void 0:c.map(f=>f==null?void 0:f.key),r=[...new Set((a=o.cloneDeep(e))==null?void 0:a.map(f=>Ze(f)))];r==null||r.forEach(f=>{let p=l==null?void 0:l.filter(k=>k.key.includes(f));p==null||p.forEach(k=>{k!=null&&k.key.includes("Menus")&&(t.push({key:"GroupName",value:me(k==null?void 0:k.value)}),s.push(me(k==null?void 0:k.value)))});let u=l==null?void 0:l.filter(k=>k.key.includes(f)&&!(k!=null&&k.key.includes("Menus")));u=u==null?void 0:u.map(k=>(k.key=He(k.key),k));const d={key:"GroupContents",value:u};t.push(d)});const n={key:"Menus",value:s};return t.unshift(n),t},Ce=l=>{var t,s;if(Array.isArray(Object.keys(l))&&((t=Object.keys(l))==null?void 0:t.length)>0){let e=[];return(s=Object.entries(l))==null||s.forEach(([r,n])=>{var a,f;let c=[];if(c.push(r),((a=Object.keys(n))==null?void 0:a.length)>0){let p=[];(f=Ce(n))==null||f.forEach(u=>{p.push(u)}),p==null||p.forEach(u=>{c.push(u)})}e.push(c)}),e}},Me=(l,t)=>{var e;let s=t;return Array.isArray(Object.keys(l))&&((e=Object.entries(l))==null||e.forEach(([r,n])=>{let c=[r];if(typeof n=="object"&&n!==null){let a=Ce(n);a==null||a.forEach(f=>{c.push(f)})}s.push(c)})),s},Qe=l=>{const t={};return l.forEach(e=>{const r=e.split("/");let n=t;r.forEach(c=>{n[c]||(n[c]={}),n=n[c]})}),Me(t,[])},ce=l=>Qe(l),Re=l=>{var t,s,e,r,n,c,a,f;try{const p=ee((s=(t=o.cloneDeep(l))==null?void 0:t.replace("(","("))==null?void 0:s.replace(")",")")),u=(r=(e=o.cloneDeep(p))==null?void 0:e.filter(h=>!h.includes("/*")))==null?void 0:r.map(h=>Pe(h)),d=qe(u),k=[];if(((n=d==null?void 0:d.find(h=>(h==null?void 0:h.key)==="Menus"))==null?void 0:n.value.length)===0)return!1;(c=o.cloneDeep(d))==null||c.forEach(h=>{var j,b,$,i,y;E!=null&&E.find(m=>{var g,T;return((g=m==null?void 0:m.key)==null?void 0:g.toUpperCase())===((T=h==null?void 0:h.key)==null?void 0:T.toUpperCase())})?k.push({comp:((j=E==null?void 0:E.find(m=>{var g,T;return((g=m==null?void 0:m.key)==null?void 0:g.toUpperCase())===((T=h==null?void 0:h.key)==null?void 0:T.toUpperCase())}))==null?void 0:j.value)??"",name:(b=h==null?void 0:h.value)==null?void 0:b.replace(/[’]|[‘]|[']/g,""),compData:[]}):N!=null&&N.find(m=>{var g,T;return((g=m==null?void 0:m.key)==null?void 0:g.toUpperCase())===((T=h==null?void 0:h.key)==null?void 0:T.toUpperCase())})&&((k==null?void 0:k.length)===0&&($=h.key)!=null&&$.includes("Menus")&&k.push({comp:"Menu",name:"",compData:[]}),(i=k==null?void 0:k[(k==null?void 0:k.length)-1])!=null&&i.compData&&k[(k==null?void 0:k.length)-1].compData.push({key:(y=N==null?void 0:N.find(m=>{var g,T;return((g=m==null?void 0:m.key)==null?void 0:g.toUpperCase())===((T=h==null?void 0:h.key)==null?void 0:T.toUpperCase())}))==null?void 0:y.value,contents:h==null?void 0:h.value}))});let A=(a=o.cloneDeep(k))==null?void 0:a.map(h=>{var j;return h!=null&&h.compData&&(h.compData=(j=h==null?void 0:h.compData)==null?void 0:j.map(b=>{var $,i,y,m,g,T,F,I,P,G,W;if((b==null?void 0:b.key)==="formFlex")b.contents=((i=($=b.contents)==null?void 0:$.replace(/[’]|[‘]|[']/g,""))==null?void 0:i.toUpperCase())!=="Vertical".toUpperCase();else if((b==null?void 0:b.key)==="groupContents")b.contents=(y=o.cloneDeep(b.contents))==null?void 0:y.map(L=>_e(o.cloneDeep(L)));else if(Array.isArray(b==null?void 0:b.contents))b.contents=ce(b.contents);else if(((g=(m=b==null?void 0:b.contents)==null?void 0:m.trim())!=null&&g.startsWith("[")||(F=(T=b.contents)==null?void 0:T.trim())!=null&&F.startsWith("【"))&&((P=(I=b.contents)==null?void 0:I.trim())!=null&&P.endsWith("]")||(W=(G=b.contents)==null?void 0:G.trim())!=null&&W.endsWith("】")))b.contents=ze(o.cloneDeep(b.contents));else{if(!b.contents)return;b.contents=De(o.cloneDeep(b.contents))}return b})),h});return A=(f=o.cloneDeep(A))==null?void 0:f.map(h=>{var j;return(h==null?void 0:h.comp)==="Group"&&(h.compData=(j=h.compData)==null?void 0:j.map(b=>{var i;let $=[];return(i=b.contents)==null||i.forEach(y=>{var m,g,T,F,I,P,G,W,L,x,O,C;if(E!=null&&E.find(D=>{var J,U,S;return((J=D==null?void 0:D.key)==null?void 0:J.toUpperCase())===((S=(U=Object.keys(y))==null?void 0:U[0])==null?void 0:S.toUpperCase())}))$.push({comp:(m=E==null?void 0:E.find(D=>{var J,U,S;return((J=D==null?void 0:D.key)==null?void 0:J.toUpperCase())===((S=(U=Object.keys(y))==null?void 0:U[0])==null?void 0:S.toUpperCase())}))==null?void 0:m.value,name:(T=(g=Object.values(y))==null?void 0:g[0])==null?void 0:T.replace(/[’]|[‘]|[']/g,""),compData:[]});else if(N!=null&&N.find(D=>{var J,U,S;return((J=D==null?void 0:D.key)==null?void 0:J.toUpperCase())===((S=(U=Object.keys(y))==null?void 0:U[0])==null?void 0:S.toUpperCase())})){if(($==null?void 0:$.length)===0)return;(F=$==null?void 0:$[($==null?void 0:$.length)-1])!=null&&F.compData&&$[($==null?void 0:$.length)-1].compData.push({key:(I=N==null?void 0:N.find(D=>{var J,U,S;return((J=D==null?void 0:D.key)==null?void 0:J.toUpperCase())===((S=(U=Object.keys(y))==null?void 0:U[0])==null?void 0:S.toUpperCase())}))==null?void 0:I.value,contents:(P=Object.values(y))==null?void 0:P[0]})}else if((W=(G=Object.keys(y))==null?void 0:G[0])!=null&&W.includes("$")){const D=(x=(L=Object.keys(o.cloneDeep(y)))==null?void 0:L[0])==null?void 0:x.split("$");$[($==null?void 0:$.length)-1].compData.push({key:(O=N==null?void 0:N.find(J=>{var U,S;return((U=J==null?void 0:J.key)==null?void 0:U.toUpperCase())===((S=D==null?void 0:D[0])==null?void 0:S.toUpperCase())}))==null?void 0:O.value,contents:(C=Object.values(y))==null?void 0:C[0],selectLabel:D==null?void 0:D[1]})}return y}),b.contents=$,b})),h}),A}catch{return!1}},de=Q.ref(0),Oe=l=>{const t=[];let s=null;for(let e=0;e<l.length;e++){const r=l[e];if(Array.isArray(r))s&&(s.children=Oe(r));else{const n={label:r};t.push(n),s=n}}return t},Te=l=>{let t=0;for(const s of l)t++,s.children&&(t+=Te(s.children));return t},xe=(l,t,s=[])=>{let e=0;for(const r of t){if(e>=l.length)break;const n=[...l[e]];if(s.push(n),e++,r.children&&r.children.length>0){const c=[];xe(l.slice(e),r.children,c),c.length>0&&(n.push(c),e+=Te(r.children))}}return s},Xe=(l,t)=>{let s=[];return l==null||l.forEach(r=>{r.some(n=>Array.isArray(n))?s.push(...r):s.push(r)}),xe(s,t)},ne=l=>{const t={label:l[0].trim()};if(l.length>1){const s=l.slice(1);s.length===1&&Array.isArray(s[0])?t.children=s[0].map(e=>Array.isArray(e)?ne(e):{label:e.trim()}):t.children=s.map(e=>Array.isArray(e)?ne(e):{label:e.trim()})}return t},ke=l=>{let t=l.replace(/:([^{}\[\],\s]+)([,\]}])/g,':"$1"$2');return t=t.replace(/:}(?=,|]|}|$)/g,':""}'),t=t.replace(/:,(?=\s*")/g,':"",'),t=t.replace(/(https?|HTTPS?):"\/\/([^"]+)"/gi,(s,e,r)=>`"${e}://${r}"`),t=t.replace(/(\[|\s|,)((?:https?|HTTPS?):\/\/[^\s,\]]+)(\]|,|$)/gi,'$1"$2"$3'),t},Ye=l=>{var s;return l.some(e=>!Array.isArray(e))?l:(s=o.cloneDeep(l))==null?void 0:s.map(e=>{let r=[];return e.some(n=>Array.isArray(n))?e==null||e.forEach(n=>{Array.isArray(n)&&r.push(ne(n))}):e.some(n=>n.includes("["))?r.push(e):r=e.map(n=>({label:n.trim()})),r})},Je=(l,t,s)=>{let e=l,r=s,n=t;return n.children&&(Array.isArray(r[r.length-1])?r[r.length-1].push(e[0]):r.push(e[0]),e.shift(),n=n.children),Array.isArray(n)&&n.forEach(c=>{if(c.children){const a=Je(e,c,r);r=a[0],e=a[1]}}),[r,e]},Ke=(l,t)=>{let s=l,e=[];return t.length>0?t==null||t.forEach(r=>{let n=s==null?void 0:s[0];s.shift();const c=Je(o.cloneDeep(s),r,n);n=c[0],s=c[1],e.push(n)}):e=s,e},ae=(l,t)=>{const s=Ye(o.cloneDeep(l));return Ke(s,t)},Ve=l=>{const t=[];let s=0;const e=l.length;for(;s<e;){const r=l[s];r.key==="tableColumns"&&s+1<e&&l[s+1].key==="tableContents"?(t.push({comp:"Table",compData:[r,l[s+1]],name:""}),s+=2):(t.push(r),s+=1)}return t},Ne=l=>ae([l],[]),v=l=>{const t=[];return l==null||l.forEach(s=>s==null?void 0:s.forEach(r=>{var n,c;de.value++,t.push({id:de.value,key:(n=Object.keys(r))==null?void 0:n[0],value:(c=Object.values(r))==null?void 0:c[0],width:s.length})})),t},ge=l=>{let t=Ve(l);return t=t==null?void 0:t.map(s=>{var e,r,n,c;if(s.comp==="Table")(e=s.compData)!=null&&e.find(a=>(a==null?void 0:a.key)==="header")||(s.compData=(r=s.compData)==null?void 0:r.map(a=>(a.key==="tableColumns"?a={key:"header",contents:ae(a.value,[])}:a={key:a.key,contents:a.value},a)),s.compData.push({key:"extraButton",contents:[{label:"新增"}]}),s.compData.push({key:"rowButton",contents:[{label:"查看"},{label:"编辑"},{label:"删除"}]}));else if(s.key==="form"){const a=(n=s==null?void 0:s.value)==null?void 0:n.map(f=>(Array.isArray(f)||(f=[f]),f));s={comp:"Form",compData:[{key:"formFlex",contents:""},{key:"formContent",contents:v(a)}],name:""}}else if(s.key==="formTop"){const a=(c=s==null?void 0:s.value)==null?void 0:c.map(f=>(Array.isArray(f)||(f=[f]),f));s={comp:"FormTop",compData:[{key:"formFlex",contents:""},{key:"formContent",contents:v(a)},{key:"enableWrap",contents:!0},{key:"formButton",contents:[{label:"查询"},{label:"重置"}]}],name:""}}return s}),t},we=(l,t)=>{var a,f,p,u,d,k;const s=[],e=Oe((f=(a=l==null?void 0:l.find(A=>A.key==="tableIndex"))==null?void 0:a.value)==null?void 0:f[0]);s.push({key:"tableIndexColumn",contents:t}),s.push({key:"tableIndex",contents:e});let r=[];const n=(p=l==null?void 0:l.find(A=>A.key==="tableColumns"))==null?void 0:p.value;n.length===1&&!(n!=null&&n[0].some(A=>Array.isArray(A)))?r=(u=n==null?void 0:n[0])==null?void 0:u.map(A=>({label:A})):r=ae((d=l==null?void 0:l.find(A=>A.key==="tableColumns"))==null?void 0:d.value,e),s.push({key:"header",contents:r});const c=Xe((k=l==null?void 0:l.find(A=>A.key==="tableContents"))==null?void 0:k.value,e);return s.push({key:"tableContents",contents:c}),s.push({key:"extraButton",contents:[{label:"新增"}]}),s.push({key:"rowButton",contents:[{label:"查看"},{label:"编辑"},{label:"删除"}]}),s},Ee=l=>l.replace(/"([^"]+)"\s*==\s*(\[[^\]]+\])/g,(t,s,e)=>{const r=Ee(e);return`"${s}",${r}`}),Y=l=>{const t=l.replace(/"([^"]+)"\s*==\s*(\[[^\]]+\])/g,'"$1",$2');return Ee(t).replace(/^"(.*)"$/,"$1")},ve=l=>{const t=new Set;return l.filter(s=>{const e=JSON.stringify(s);return t.has(e)?!1:t.add(e)})},be=l=>{var s;let t=[];return(s=o.cloneDeep(l))==null||s.forEach(e=>{var r;(r=e.contents)==null||r.forEach(n=>{t.push(n)})}),t=ve(t),t.push({label:"操作"}),[t]},el=(l,t)=>l.reduce((s,e,r)=>{const n=Math.floor(r/t);return s[n]||(s[n]=[]),s[n].push(e),s},[]),je=l=>l.reduce((t,s)=>s.children&&s.children.length>0?t+je(s.children):t+1,0),ll=(l,t)=>{var e;let s=[];return(e=el(l,je(t==null?void 0:t[0])-1))==null||e.forEach(r=>{let n=[];r.forEach(c=>{var a;Array.isArray(c.contents)?(a=c.contents)==null||a.forEach(f=>{n.push(f)}):n.push(c.contents)}),s.push(n)}),[s]},sl=["方法体","输入","输出"],$e=Q.ref(1),ee=l=>{let t;l.replaceAll(" ",`\r
|
|
2
2
|
`).includes(`\r
|
|
3
3
|
`)?t=l.replaceAll(" ",`\r
|
|
4
4
|
`).split(`\r
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a7 as A, a8 as l, f as re, a4 as ye, a9 as de, a5 as h, aa as w, ab as Te, i as I, ac as P, ad as v, a3 as je, ae as T, S as D } from "./index-
|
|
1
|
+
import { a7 as A, a8 as l, f as re, a4 as ye, a9 as de, a5 as h, aa as w, ab as Te, i as I, ac as P, ad as v, a3 as je, ae as T, S as D } from "./index-AE5edkX5.js";
|
|
2
2
|
var O = A(l, "WeakMap"), F = Object.create, $e = /* @__PURE__ */ function() {
|
|
3
3
|
function e() {
|
|
4
4
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const n=require("./index-
|
|
1
|
+
"use strict";const n=require("./index-CYgCOvww.cjs");var A=n.getNative(n.root,"WeakMap"),x=Object.create,ge=function(){function e(){}return function(t){if(!n.isObject(t))return{};if(x)return x(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),h=function(){try{var e=n.getNative(Object,"defineProperty");return e({},"",{}),e}catch{}}();function be(e,t){for(var r=-1,a=e==null?0:e.length;++r<a&&t(e[r],r,e)!==!1;);return e}var pe=9007199254740991,ye=/^(?:0|[1-9]\d*)$/;function Y(e,t){var r=typeof e;return t=t??pe,!!t&&(r=="number"||r!="symbol"&&ye.test(e))&&e>-1&&e%1==0&&e<t}function Te(e,t,r){t=="__proto__"&&h?h(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var le=Object.prototype,je=le.hasOwnProperty;function H(e,t,r){var a=e[t];(!(je.call(e,t)&&n.eq(a,r))||r===void 0&&!(t in e))&&Te(e,t,r)}var de=9007199254740991;function _(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=de}function $e(e){return e!=null&&_(e.length)&&!n.isFunction$1(e)}var Ae=Object.prototype;function Z(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Ae;return e===r}function he(e,t){for(var r=-1,a=Array(e);++r<e;)a[r]=t(r);return a}var ve="[object Arguments]";function C(e){return n.isObjectLike(e)&&n.baseGetTag(e)==ve}var J=Object.prototype,we=J.hasOwnProperty,me=J.propertyIsEnumerable,Q=C(function(){return arguments}())?C:function(e){return n.isObjectLike(e)&&we.call(e,"callee")&&!me.call(e,"callee")};function Oe(){return!1}var ee=typeof exports=="object"&&exports&&!exports.nodeType&&exports,B=ee&&typeof module=="object"&&module&&!module.nodeType&&module,_e=B&&B.exports===ee,L=_e?n.root.Buffer:void 0,Se=L?L.isBuffer:void 0,S=Se||Oe,Pe="[object Arguments]",Ee="[object Array]",Ie="[object Boolean]",Me="[object Date]",xe="[object Error]",Ce="[object Function]",Be="[object Map]",Le="[object Number]",Ue="[object Object]",De="[object RegExp]",Fe="[object Set]",Ge="[object String]",Ne="[object WeakMap]",Ve="[object ArrayBuffer]",Re="[object DataView]",ze="[object Float32Array]",Ke="[object Float64Array]",We="[object Int8Array]",qe="[object Int16Array]",ke="[object Int32Array]",Xe="[object Uint8Array]",Ye="[object Uint8ClampedArray]",He="[object Uint16Array]",Ze="[object Uint32Array]",i={};i[ze]=i[Ke]=i[We]=i[qe]=i[ke]=i[Xe]=i[Ye]=i[He]=i[Ze]=!0;i[Pe]=i[Ee]=i[Ve]=i[Ie]=i[Re]=i[Me]=i[xe]=i[Ce]=i[Be]=i[Le]=i[Ue]=i[De]=i[Fe]=i[Ge]=i[Ne]=!1;function Je(e){return n.isObjectLike(e)&&_(e.length)&&!!i[n.baseGetTag(e)]}function P(e){return function(t){return e(t)}}var te=typeof exports=="object"&&exports&&!exports.nodeType&&exports,j=te&&typeof module=="object"&&module&&!module.nodeType&&module,Qe=j&&j.exports===te,$=Qe&&n.freeGlobal.process,l=function(){try{var e=j&&j.require&&j.require("util").types;return e||$&&$.binding&&$.binding("util")}catch{}}(),U=l&&l.isTypedArray,re=U?P(U):Je,et=Object.prototype,tt=et.hasOwnProperty;function rt(e,t){var r=n.isArray(e),a=!r&&Q(e),f=!r&&!a&&S(e),s=!r&&!a&&!f&&re(e),c=r||a||f||s,T=c?he(e.length,String):[],g=T.length;for(var u in e)tt.call(e,u)&&!(c&&(u=="length"||f&&(u=="offset"||u=="parent")||s&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Y(u,g)))&&T.push(u);return T}function ne(e,t){return function(r){return e(t(r))}}var nt=ne(Object.keys,Object),at=Object.prototype,ot=at.hasOwnProperty;function it(e){if(!Z(e))return nt(e);var t=[];for(var r in Object(e))ot.call(e,r)&&r!="constructor"&&t.push(r);return t}function ct(e){return $e(e)?rt(e):it(e)}function ae(e,t){for(var r=-1,a=t.length,f=e.length;++r<a;)e[f+r]=t[r];return e}var st=ne(Object.getPrototypeOf,Object);function ut(){this.__data__=new n.ListCache,this.size=0}function ft(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function gt(e){return this.__data__.get(e)}function bt(e){return this.__data__.has(e)}var pt=200;function yt(e,t){var r=this.__data__;if(r instanceof n.ListCache){var a=r.__data__;if(!n.Map||a.length<pt-1)return a.push([e,t]),this.size=++r.size,this;r=this.__data__=new n.MapCache(a)}return r.set(e,t),this.size=r.size,this}function y(e){var t=this.__data__=new n.ListCache(e);this.size=t.size}y.prototype.clear=ut;y.prototype.delete=ft;y.prototype.get=gt;y.prototype.has=bt;y.prototype.set=yt;var oe=typeof exports=="object"&&exports&&!exports.nodeType&&exports,D=oe&&typeof module=="object"&&module&&!module.nodeType&&module,Tt=D&&D.exports===oe,F=Tt?n.root.Buffer:void 0;F&&F.allocUnsafe;function lt(e,t){return e.slice()}function jt(e,t){for(var r=-1,a=e==null?0:e.length,f=0,s=[];++r<a;){var c=e[r];t(c,r,e)&&(s[f++]=c)}return s}function dt(){return[]}var $t=Object.prototype,At=$t.propertyIsEnumerable,G=Object.getOwnPropertySymbols,ht=G?function(e){return e==null?[]:(e=Object(e),jt(G(e),function(t){return At.call(e,t)}))}:dt;function vt(e,t,r){var a=t(e);return n.isArray(e)?a:ae(a,r(e))}function ie(e){return vt(e,ct,ht)}var v=n.getNative(n.root,"DataView"),w=n.getNative(n.root,"Promise"),m=n.getNative(n.root,"Set"),N="[object Map]",wt="[object Object]",V="[object Promise]",R="[object Set]",z="[object WeakMap]",K="[object DataView]",mt=n.toSource(v),Ot=n.toSource(n.Map),_t=n.toSource(w),St=n.toSource(m),Pt=n.toSource(A);exports.getTag=n.baseGetTag;(v&&exports.getTag(new v(new ArrayBuffer(1)))!=K||n.Map&&exports.getTag(new n.Map)!=N||w&&exports.getTag(w.resolve())!=V||m&&exports.getTag(new m)!=R||A&&exports.getTag(new A)!=z)&&(exports.getTag=function(e){var t=n.baseGetTag(e),r=t==wt?e.constructor:void 0,a=r?n.toSource(r):"";if(a)switch(a){case mt:return K;case Ot:return N;case _t:return V;case St:return R;case Pt:return z}return t});var Et=Object.prototype,It=Et.hasOwnProperty;function Mt(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&It.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var O=n.root.Uint8Array;function E(e){var t=new e.constructor(e.byteLength);return new O(t).set(new O(e)),t}function xt(e,t){var r=E(e.buffer);return new e.constructor(r,e.byteOffset,e.byteLength)}var Ct=/\w*$/;function Bt(e){var t=new e.constructor(e.source,Ct.exec(e));return t.lastIndex=e.lastIndex,t}var W=n.Symbol?n.Symbol.prototype:void 0,q=W?W.valueOf:void 0;function Lt(e){return q?Object(q.call(e)):{}}function Ut(e,t){var r=E(e.buffer);return new e.constructor(r,e.byteOffset,e.length)}var Dt="[object Boolean]",Ft="[object Date]",Gt="[object Map]",Nt="[object Number]",Vt="[object RegExp]",Rt="[object Set]",zt="[object String]",Kt="[object Symbol]",Wt="[object ArrayBuffer]",qt="[object DataView]",kt="[object Float32Array]",Xt="[object Float64Array]",Yt="[object Int8Array]",Ht="[object Int16Array]",Zt="[object Int32Array]",Jt="[object Uint8Array]",Qt="[object Uint8ClampedArray]",er="[object Uint16Array]",tr="[object Uint32Array]";function rr(e,t,r){var a=e.constructor;switch(t){case Wt:return E(e);case Dt:case Ft:return new a(+e);case qt:return xt(e);case kt:case Xt:case Yt:case Ht:case Zt:case Jt:case Qt:case er:case tr:return Ut(e);case Gt:return new a;case Nt:case zt:return new a(e);case Vt:return Bt(e);case Rt:return new a;case Kt:return Lt(e)}}function nr(e){return typeof e.constructor=="function"&&!Z(e)?ge(st(e)):{}}var ar="[object Map]";function or(e){return n.isObjectLike(e)&&exports.getTag(e)==ar}var k=l&&l.isMap,ir=k?P(k):or,cr="[object Set]";function sr(e){return n.isObjectLike(e)&&exports.getTag(e)==cr}var X=l&&l.isSet,ur=X?P(X):sr,ce="[object Arguments]",fr="[object Array]",gr="[object Boolean]",br="[object Date]",pr="[object Error]",se="[object Function]",yr="[object GeneratorFunction]",Tr="[object Map]",lr="[object Number]",ue="[object Object]",jr="[object RegExp]",dr="[object Set]",$r="[object String]",Ar="[object Symbol]",hr="[object WeakMap]",vr="[object ArrayBuffer]",wr="[object DataView]",mr="[object Float32Array]",Or="[object Float64Array]",_r="[object Int8Array]",Sr="[object Int16Array]",Pr="[object Int32Array]",Er="[object Uint8Array]",Ir="[object Uint8ClampedArray]",Mr="[object Uint16Array]",xr="[object Uint32Array]",o={};o[ce]=o[fr]=o[vr]=o[wr]=o[gr]=o[br]=o[mr]=o[Or]=o[_r]=o[Sr]=o[Pr]=o[Tr]=o[lr]=o[ue]=o[jr]=o[dr]=o[$r]=o[Ar]=o[Er]=o[Ir]=o[Mr]=o[xr]=!0;o[pr]=o[se]=o[hr]=!1;function d(e,t,r,a,f,s){var c;if(c!==void 0)return c;if(!n.isObject(e))return e;var T=n.isArray(e);if(T)c=Mt(e);else{var g=exports.getTag(e),u=g==se||g==yr;if(S(e))return lt(e);if(g==ue||g==ce||u&&!f)c=u?{}:nr(e);else{if(!o[g])return f?e:{};c=rr(e,g)}}s||(s=new y);var I=s.get(e);if(I)return I;s.set(e,c),ur(e)?e.forEach(function(b){c.add(d(b,t,r,b,e,s))}):ir(e)&&e.forEach(function(b,p){c.set(p,d(b,t,r,p,e,s))});var fe=ie,M=T?void 0:fe(e);return be(M||e,function(b,p){M&&(p=b,b=e[p]),H(c,p,d(b,t,r,p,e,s))}),c}var Cr=1,Br=4;function Lr(e){return d(e,Cr|Br)}exports.Stack=y;exports.Uint8Array=O;exports.arrayPush=ae;exports.assignValue=H;exports.cloneDeep=Lr;exports.defineProperty=h;exports.getAllKeys=ie;exports.isArguments=Q;exports.isBuffer=S;exports.isIndex=Y;exports.isLength=_;exports.isTypedArray=re;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as A } from "./menu-
|
|
1
|
+
import { j as A } from "./menu-BMXT4_22.js";
|
|
2
2
|
const w = /"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/, O = /"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/, $ = /^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;
|
|
3
3
|
function E(r, t) {
|
|
4
4
|
if (r === "__proto__" || r === "constructor" && t && typeof t == "object" && "prototype" in t) {
|
|
@@ -6017,12 +6017,12 @@ const I9 = N4(P, "$notify"), D9 = [
|
|
|
6017
6017
|
{
|
|
6018
6018
|
path: "/login",
|
|
6019
6019
|
name: "Login",
|
|
6020
|
-
component: async () => import("./index-
|
|
6020
|
+
component: async () => import("./index-D2ppLPvd.js")
|
|
6021
6021
|
},
|
|
6022
6022
|
{
|
|
6023
6023
|
path: "/",
|
|
6024
6024
|
name: "Model",
|
|
6025
|
-
component: async () => import("./index-
|
|
6025
|
+
component: async () => import("./index-B7Q8hooN.js"),
|
|
6026
6026
|
// component: async ()=>import('@/components/views/model/component/main.vue'),
|
|
6027
6027
|
// component: async ()=>import('@/components/views/canvas/index.vue'),
|
|
6028
6028
|
// component: async ()=>import('@/components/views/test/index.vue'),
|
|
@@ -6030,37 +6030,37 @@ const I9 = N4(P, "$notify"), D9 = [
|
|
|
6030
6030
|
{
|
|
6031
6031
|
path: "平台管理/菜单管理",
|
|
6032
6032
|
name: "Menu",
|
|
6033
|
-
component: async () => import("./index-
|
|
6033
|
+
component: async () => import("./index-DVl21Vdm.js")
|
|
6034
6034
|
},
|
|
6035
6035
|
{
|
|
6036
6036
|
path: "平台管理/主菜单管理",
|
|
6037
6037
|
name: "MainMenu",
|
|
6038
|
-
component: async () => import("./index-
|
|
6038
|
+
component: async () => import("./index-D_bSNEZC.js")
|
|
6039
6039
|
},
|
|
6040
6040
|
{
|
|
6041
6041
|
path: "系统管理/个人中心",
|
|
6042
6042
|
name: "PersonalCenter",
|
|
6043
|
-
component: async () => import("./index-
|
|
6043
|
+
component: async () => import("./index-DN8QKPxC.js")
|
|
6044
6044
|
},
|
|
6045
6045
|
{
|
|
6046
6046
|
path: "系统管理/职位管理",
|
|
6047
6047
|
name: "Post",
|
|
6048
|
-
component: async () => import("./index-
|
|
6048
|
+
component: async () => import("./index-BKo_pnVb.js")
|
|
6049
6049
|
},
|
|
6050
6050
|
{
|
|
6051
6051
|
path: "系统管理/用户管理",
|
|
6052
6052
|
name: "User",
|
|
6053
|
-
component: async () => import("./index-
|
|
6053
|
+
component: async () => import("./index-D50w_hkI.js")
|
|
6054
6054
|
},
|
|
6055
6055
|
{
|
|
6056
6056
|
path: "系统管理/角色管理",
|
|
6057
6057
|
name: "Role",
|
|
6058
|
-
component: async () => import("./index-
|
|
6058
|
+
component: async () => import("./index-vZYupXGi.js")
|
|
6059
6059
|
},
|
|
6060
6060
|
{
|
|
6061
6061
|
path: "系统管理/部门管理",
|
|
6062
6062
|
name: "Dept",
|
|
6063
|
-
component: async () => import("./index-
|
|
6063
|
+
component: async () => import("./index-CudwTJtT.js")
|
|
6064
6064
|
},
|
|
6065
6065
|
{
|
|
6066
6066
|
path: "priority",
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { ref as fe, onMounted as Kn, nextTick as un, onBeforeUnmount as _o, createElementBlock as _e, openBlock as re, createElementVNode as Z, createCommentVNode as nt, normalizeClass as hn, unref as G, withDirectives as Kt, isRef as pn, vModelRadio as fn, toDisplayString as dt, watch as gt, Fragment as kn, renderList as xn, normalizeStyle as ko, resolveComponent as Ue, resolveDirective as Fs, createBlock as tt, withCtx as ge, createVNode as ae, createTextVNode as Dt, renderSlot as on, resolveDynamicComponent as On, defineComponent as xo, computed as vo } from "vue";
|
|
2
|
-
import { m as Wn, a as Zn, b as Xn } from "./index-
|
|
3
|
-
import zn from "./index-
|
|
4
|
-
import { p as bt } from "./index-
|
|
5
|
-
import { C as Co, V as de, M as Xt, T as Wt, Q as vn, S as gs, a as lt, R as To, P as yn, b as Yt, c as js, d as Et, e as Un, W as Ao, f as Eo, A as Mo, g as Ke, X as No, h as Is, D as bn, H as Po, i as Bn, B as Jn, j as Pn, k as ct, l as Ot, m as ft, E as wn, L as Qt, F as rn, G as an, n as Ut, o as Ve, p as Jt, q as ys, r as Zt, s as Vn, t as nn, v as Qn, w as Os, x as tn, y as zt, z as zs, I as es, J as sn, K as Lo, N as So, O as Ro, U as At, Y as bs, Z as ws, _ as Do, $ as Fo, a0 as jo, a1 as _s, a2 as Io, a3 as Oo, a4 as zo, a5 as Us, a6 as Uo, a7 as ks, a8 as Bo, a9 as xs, aa as Vo, ab as Ho, ac as Go, ad as $o, ae as qo, af as Yo, ag as Ko, u as Tn, ah as Wo, ai as ts, aj as Zo, ak as vs, al as Bs } from "./index-
|
|
6
|
-
import { s as yt, u as An, b as Je, g as Xo, E as Ln } from "./menu-
|
|
7
|
-
import { u as Jo } from "./index-
|
|
8
|
-
import { o as Vs, c as Hs, a as Gs, b as Cn, s as it, g as Hn, d as Gn, e as $n, f as qn, _ as Qo, h as ei, i as ti } from "./index.vue_vue_type_style_index_0_scoped_62633fa4_lang-
|
|
2
|
+
import { m as Wn, a as Zn, b as Xn } from "./index-CIMlKVas.js";
|
|
3
|
+
import zn from "./index-DfvyEYG7.js";
|
|
4
|
+
import { p as bt } from "./index-72YpOa9g.js";
|
|
5
|
+
import { C as Co, V as de, M as Xt, T as Wt, Q as vn, S as gs, a as lt, R as To, P as yn, b as Yt, c as js, d as Et, e as Un, W as Ao, f as Eo, A as Mo, g as Ke, X as No, h as Is, D as bn, H as Po, i as Bn, B as Jn, j as Pn, k as ct, l as Ot, m as ft, E as wn, L as Qt, F as rn, G as an, n as Ut, o as Ve, p as Jt, q as ys, r as Zt, s as Vn, t as nn, v as Qn, w as Os, x as tn, y as zt, z as zs, I as es, J as sn, K as Lo, N as So, O as Ro, U as At, Y as bs, Z as ws, _ as Do, $ as Fo, a0 as jo, a1 as _s, a2 as Io, a3 as Oo, a4 as zo, a5 as Us, a6 as Uo, a7 as ks, a8 as Bo, a9 as xs, aa as Vo, ab as Ho, ac as Go, ad as $o, ae as qo, af as Yo, ag as Ko, u as Tn, ah as Wo, ai as ts, aj as Zo, ak as vs, al as Bs } from "./index-BJ-74LTj.js";
|
|
6
|
+
import { s as yt, u as An, b as Je, g as Xo, E as Ln } from "./menu-BMXT4_22.js";
|
|
7
|
+
import { u as Jo } from "./index-za1vzQUk.js";
|
|
8
|
+
import { o as Vs, c as Hs, a as Gs, b as Cn, s as it, g as Hn, d as Gn, e as $n, f as qn, _ as Qo, h as ei, i as ti } from "./index.vue_vue_type_style_index_0_scoped_62633fa4_lang-D_TXd7Wg.js";
|
|
9
9
|
import { _ as Bt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
10
|
-
import { i as ni, e as si, b as Cs, c as Ts, a as oi } from "./array-
|
|
11
|
-
import { u as $s } from "./login-
|
|
10
|
+
import { i as ni, e as si, b as Cs, c as Ts, a as oi } from "./array-DUY4OGWo.js";
|
|
11
|
+
import { u as $s } from "./login-sl3wMRcO.js";
|
|
12
12
|
import { S as Rt } from "./index-BHtNKL1L.js";
|
|
13
|
-
import { E as ii, s as ai } from "./index-
|
|
14
|
-
import { c as Ft } from "./cloneDeep-
|
|
15
|
-
import { d as Yn } from "./index-
|
|
16
|
-
import { _ as Sn } from "./index-
|
|
13
|
+
import { E as ii, s as ai } from "./index-AE5edkX5.js";
|
|
14
|
+
import { c as Ft } from "./cloneDeep-B_uQ8HtY.js";
|
|
15
|
+
import { d as Yn } from "./index-N2roD2S4.js";
|
|
16
|
+
import { _ as Sn } from "./index-BpAFVorH.js";
|
|
17
17
|
const As = { type: "change" }, ns = { type: "start" }, qs = { type: "end" }, mn = new To(), Es = new yn(), ri = Math.cos(70 * Yt.DEG2RAD), Ye = new de(), rt = 2 * Math.PI, Pe = {
|
|
18
18
|
NONE: -1,
|
|
19
19
|
ROTATE: 0,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { onMounted as u, resolveComponent as a, createElementBlock as r, openBlock as f, createVNode as l } from "vue";
|
|
2
|
-
import "./index-
|
|
3
|
-
import "./index-
|
|
4
|
-
import "./array-
|
|
2
|
+
import "./index-za1vzQUk.js";
|
|
3
|
+
import "./index-72YpOa9g.js";
|
|
4
|
+
import "./array-DUY4OGWo.js";
|
|
5
5
|
import { _ as s } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
|
-
import "./index.vue_vue_type_style_index_0_scoped_d9b749a8_lang-
|
|
7
|
-
import "./menu-
|
|
8
|
-
import "./index.vue_vue_type_style_index_0_scoped_62633fa4_lang-
|
|
9
|
-
import "./index-
|
|
10
|
-
import "./login-
|
|
6
|
+
import "./index.vue_vue_type_style_index_0_scoped_d9b749a8_lang-D57jd3fB.js";
|
|
7
|
+
import "./menu-BMXT4_22.js";
|
|
8
|
+
import "./index.vue_vue_type_style_index_0_scoped_62633fa4_lang-D_TXd7Wg.js";
|
|
9
|
+
import "./index-BJ-74LTj.js";
|
|
10
|
+
import "./login-sl3wMRcO.js";
|
|
11
11
|
import "./index-BHtNKL1L.js";
|
|
12
12
|
const v = {
|
|
13
13
|
__name: "index",
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ref as at, watch as Vi, nextTick as oh, resolveComponent as hu, createBlock as zo, openBlock as en, withCtx as hn, createElementVNode as wt, renderSlot as ul, onMounted as ko, createElementBlock as Ln, toDisplayString as fi, createCommentVNode as fu, Fragment as du, renderList as pu, normalizeStyle as mu, createVNode as vn, unref as lh, defineComponent as ch, createSlots as uh } from "vue";
|
|
2
|
-
import { p as mr } from "./index-
|
|
3
|
-
import { f as Gs, i as hl, g as tn, c as gu, d as Ds, u as _u, e as hh, s as Nr } from "./menu-
|
|
4
|
-
import { a3 as fh, S as fl, a4 as dh, i as dl, a5 as pl, a6 as ph } from "./index-
|
|
5
|
-
import { b as Ls, g as Us, k as ml, l as mh, n as gh, s as gl } from "./index-
|
|
2
|
+
import { p as mr } from "./index-72YpOa9g.js";
|
|
3
|
+
import { f as Gs, i as hl, g as tn, c as gu, d as Ds, u as _u, e as hh, s as Nr } from "./menu-BMXT4_22.js";
|
|
4
|
+
import { a3 as fh, S as fl, a4 as dh, i as dl, a5 as pl, a6 as ph } from "./index-AE5edkX5.js";
|
|
5
|
+
import { b as Ls, g as Us, k as ml, l as mh, n as gh, s as gl } from "./index-BpAFVorH.js";
|
|
6
6
|
import { _ as Vo } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
7
|
-
import { U as _l, g as vl, h as xl, j as yl, S as Qs, k as _h, c as Te } from "./cloneDeep-
|
|
7
|
+
import { U as _l, g as vl, h as xl, j as yl, S as Qs, k as _h, c as Te } from "./cloneDeep-B_uQ8HtY.js";
|
|
8
8
|
var vh = "__lodash_hash_undefined__";
|
|
9
9
|
function xh(i) {
|
|
10
10
|
return this.__data__.set(i, vh), this;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ref as n, watch as b } from "vue";
|
|
2
|
-
import { g as y, s as d } from "./menu-
|
|
3
|
-
import { s as g, h as m } from "./index-
|
|
4
|
-
import { u as D } from "./index-
|
|
2
|
+
import { g as y, s as d } from "./menu-BMXT4_22.js";
|
|
3
|
+
import { s as g, h as m } from "./index-DdSUH5bZ.js";
|
|
4
|
+
import { u as D } from "./index-BJ-74LTj.js";
|
|
5
5
|
const f = D(), { itemData: i } = d(f), c = n(0), h = n([
|
|
6
6
|
{
|
|
7
7
|
label: "机构名称",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as t, reactive as o, onMounted as r, createElementBlock as n, openBlock as s, createVNode as a } from "vue";
|
|
2
|
-
import { b as c } from "./index-
|
|
3
|
-
import { aw as m } from "./index-
|
|
4
|
-
import { S as i } from "./index-
|
|
5
|
-
import { g as l } from "./index-
|
|
2
|
+
import { b as c } from "./index-BpAFVorH.js";
|
|
3
|
+
import { aw as m } from "./index-BJ-74LTj.js";
|
|
4
|
+
import { S as i } from "./index-qrbBy7H-.js";
|
|
5
|
+
import { g as l } from "./index-CNLe9Ih4.js";
|
|
6
6
|
import { _ as p } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
7
7
|
const d = { class: "role-wrapper" }, _ = /* @__PURE__ */ t({
|
|
8
8
|
__name: "index",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const w=require("./menu-
|
|
1
|
+
"use strict";const w=require("./menu-BrXts4j-.cjs"),O=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,$=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,E=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function P(r,t){if(r==="__proto__"||r==="constructor"&&t&&typeof t=="object"&&"prototype"in t){h(r);return}return t}function h(r){console.warn(`[destr] Dropping "${r}" key to prevent prototype pollution.`)}function z(r,t={}){if(typeof r!="string")return r;if(r[0]==='"'&&r[r.length-1]==='"'&&r.indexOf("\\")===-1)return r.slice(1,-1);const e=r.trim();if(e.length<=9)switch(e.toLowerCase()){case"true":return!0;case"false":return!1;case"undefined":return;case"null":return null;case"nan":return Number.NaN;case"infinity":return Number.POSITIVE_INFINITY;case"-infinity":return Number.NEGATIVE_INFINITY}if(!E.test(r)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return r}try{if(O.test(r)||$.test(r)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(r,P)}return JSON.parse(r)}catch(n){if(t.strict)throw n;return r}}function F(r,t){if(r==null)return;let e=r;for(let n=0;n<t.length;n++){if(e==null||e[t[n]]==null)return;e=e[t[n]]}return e}function d(r,t,e){if(e.length===0)return t;const n=e[0];return e.length>1&&(t=d(typeof r!="object"||r===null||!Object.prototype.hasOwnProperty.call(r,n)?Number.isInteger(Number(e[1]))?[]:{}:r[n],t,Array.prototype.slice.call(e,1))),Number.isInteger(Number(n))&&Array.isArray(r)?r.slice()[n]:Object.assign({},r,{[n]:t})}function N(r,t){if(r==null||t.length===0)return r;if(t.length===1){if(r==null)return r;if(Number.isInteger(t[0])&&Array.isArray(r))return Array.prototype.slice.call(r,0).splice(t[0],1);const e={};for(const n in r)e[n]=r[n];return delete e[t[0]],e}if(r[t[0]]==null){if(Number.isInteger(t[0])&&Array.isArray(r))return Array.prototype.concat.call([],r);const e={};for(const n in r)e[n]=r[n];return e}return d(r,N(r[t[0]],Array.prototype.slice.call(t,1)),[t[0]])}function I(r,t){return t.map(e=>e.split(".")).map(e=>[e,F(r,e)]).filter(e=>e[1]!==void 0).reduce((e,n)=>d(e,n[1],n[0]),{})}function S(r,t){return t.map(e=>e.split(".")).reduce((e,n)=>N(e,n),r)}function g(r,{storage:t,serializer:e,key:n,debug:s,pick:u,omit:f,beforeHydrate:c,afterHydrate:i},o,l=!0){try{l&&(c==null||c(o));const a=t.getItem(n);if(a){const p=e.deserialize(a),y=u?I(p,u):p,A=f?S(y,f):y;r.$patch(A)}l&&(i==null||i(o))}catch(a){s&&console.error("[pinia-plugin-persistedstate]",a)}}function m(r,{storage:t,serializer:e,key:n,debug:s,pick:u,omit:f}){try{const c=u?I(r,u):r,i=f?S(c,f):c,o=e.serialize(i);t.setItem(n,o)}catch(c){s&&console.error("[pinia-plugin-persistedstate]",c)}}function k(r,t,e){const{pinia:n,store:s,options:{persist:u=e}}=r;if(!u)return;if(!(s.$id in n.state.value)){const i=n._s.get(s.$id.replace("__hot:",""));i&&Promise.resolve().then(()=>i.$persist());return}const c=(Array.isArray(u)?u:u===!0?[{}]:[u]).map(t);s.$hydrate=({runHooks:i=!0}={})=>{c.forEach(o=>{g(s,o,r,i)})},s.$persist=()=>{c.forEach(i=>{m(s.$state,i)})},c.forEach(i=>{g(s,i,r),s.$subscribe((o,l)=>m(l,i),{detached:!0})})}function J(r={}){return function(t){k(t,e=>({key:(r.key?r.key:n=>n)(e.key??t.store.$id),debug:e.debug??r.debug??!1,serializer:e.serializer??r.serializer??{serialize:n=>JSON.stringify(n),deserialize:n=>z(n)},storage:e.storage??r.storage??window.localStorage,beforeHydrate:e.beforeHydrate,afterHydrate:e.afterHydrate,pick:e.pick,omit:e.omit}),r.auto??!1)}}var T=J();const _=w.createPinia();_.use(T);exports.pinia=_;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./index-Ces1p9GH.cjs"),a=require("./index-D6CIrGz0.cjs"),r=require("./index-C0C7u42M.cjs"),o=require("./index-D6yMZuEE.cjs"),s=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),c={class:"role-wrapper"},i=e.defineComponent({__name:"index",setup(d){const t=e.reactive({...r.State});return e.onMounted(async()=>{t.structureId=await o.getActivePageStructureId()}),(l,_)=>(e.openBlock(),e.createElementBlock("div",c,[e.createVNode(n.ssForm,{class:"role-header",rowContents:t.queryFormData,isEnableWrap:!1,isEdit:!0,onChange:t.handleQueryChange},null,8,["rowContents","onChange"]),e.createVNode(a.ssTable,{class:"role-body",itemData:t.pageData,onChange:t.handleItemDataChange},null,8,["itemData","onChange"])]))}}),u=s._export_sfc(i,[["__scopeId","data-v-c1856cfa"]]);exports.default=u;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),ct=require("./index-BnzdBVAZ.cjs"),zt=require("./index-Dmd8Gu9w.cjs"),tt=require("./index-BRGrtqBY.cjs"),i=require("./index-DpFIZqXx.cjs"),pe=require("./menu-sqTDeabF.cjs"),Gn=require("./index-C80LCckV.cjs"),ue=require("./index.vue_vue_type_style_index_0_scoped_62633fa4_lang-fyq9ZrLg.cjs"),_t=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),wt=require("./array-BbLR4QFJ.cjs"),fn=require("./login-CJlmnJXf.cjs"),mt=require("./index-BpPyaNFa.cjs"),mn=require("./index-CanLcekr.cjs"),gt=require("./cloneDeep-CsbXNSYy.cjs"),Gt=require("./index-BpyPhZFL.cjs"),Dt=require("./index-CCBUJLcW.cjs"),sn={type:"change"},Ht={type:"start"},gn={type:"end"},St=new i.Ray,an=new i.Plane,Hn=Math.cos(70*i.MathUtils.DEG2RAD),Ue=new i.Vector3,Ze=2*Math.PI,Te={NONE:-1,ROTATE:0,DOLLY:1,PAN:2,TOUCH_ROTATE:3,TOUCH_PAN:4,TOUCH_DOLLY_PAN:5,TOUCH_DOLLY_ROTATE:6},Ft=1e-6;class qn extends i.Controls{constructor(o,c=null){super(o,c),this.state=Te.NONE,this.target=new i.Vector3,this.cursor=new i.Vector3,this.minDistance=0,this.maxDistance=1/0,this.minZoom=0,this.maxZoom=1/0,this.minTargetRadius=0,this.maxTargetRadius=1/0,this.minPolarAngle=0,this.maxPolarAngle=Math.PI,this.minAzimuthAngle=-1/0,this.maxAzimuthAngle=1/0,this.enableDamping=!1,this.dampingFactor=.05,this.enableZoom=!0,this.zoomSpeed=1,this.enableRotate=!0,this.rotateSpeed=1,this.keyRotateSpeed=1,this.enablePan=!0,this.panSpeed=1,this.screenSpacePanning=!0,this.keyPanSpeed=7,this.zoomToCursor=!1,this.autoRotate=!1,this.autoRotateSpeed=2,this.keys={LEFT:"ArrowLeft",UP:"ArrowUp",RIGHT:"ArrowRight",BOTTOM:"ArrowDown"},this.mouseButtons={LEFT:i.MOUSE.ROTATE,MIDDLE:i.MOUSE.DOLLY,RIGHT:i.MOUSE.PAN},this.touches={ONE:i.TOUCH.ROTATE,TWO:i.TOUCH.DOLLY_PAN},this.target0=this.target.clone(),this.position0=this.object.position.clone(),this.zoom0=this.object.zoom,this._domElementKeyEvents=null,this._lastPosition=new i.Vector3,this._lastQuaternion=new i.Quaternion,this._lastTargetPosition=new i.Vector3,this._quat=new i.Quaternion().setFromUnitVectors(o.up,new i.Vector3(0,1,0)),this._quatInverse=this._quat.clone().invert(),this._spherical=new i.Spherical,this._sphericalDelta=new i.Spherical,this._scale=1,this._panOffset=new i.Vector3,this._rotateStart=new i.Vector2,this._rotateEnd=new i.Vector2,this._rotateDelta=new i.Vector2,this._panStart=new i.Vector2,this._panEnd=new i.Vector2,this._panDelta=new i.Vector2,this._dollyStart=new i.Vector2,this._dollyEnd=new i.Vector2,this._dollyDelta=new i.Vector2,this._dollyDirection=new i.Vector3,this._mouse=new i.Vector2,this._performCursorZoom=!1,this._pointers=[],this._pointerPositions={},this._controlActive=!1,this._onPointerMove=Yn.bind(this),this._onPointerDown=$n.bind(this),this._onPointerUp=Wn.bind(this),this._onContextMenu=to.bind(this),this._onMouseWheel=Jn.bind(this),this._onKeyDown=Xn.bind(this),this._onTouchStart=Qn.bind(this),this._onTouchMove=eo.bind(this),this._onMouseDown=Kn.bind(this),this._onMouseMove=Zn.bind(this),this._interceptControlDown=no.bind(this),this._interceptControlUp=oo.bind(this),this.domElement!==null&&this.connect(this.domElement),this.update()}connect(o){super.connect(o),this.domElement.addEventListener("pointerdown",this._onPointerDown),this.domElement.addEventListener("pointercancel",this._onPointerUp),this.domElement.addEventListener("contextmenu",this._onContextMenu),this.domElement.addEventListener("wheel",this._onMouseWheel,{passive:!1}),this.domElement.getRootNode().addEventListener("keydown",this._interceptControlDown,{passive:!0,capture:!0}),this.domElement.style.touchAction="none"}disconnect(){this.domElement.removeEventListener("pointerdown",this._onPointerDown),this.domElement.removeEventListener("pointermove",this._onPointerMove),this.domElement.removeEventListener("pointerup",this._onPointerUp),this.domElement.removeEventListener("pointercancel",this._onPointerUp),this.domElement.removeEventListener("wheel",this._onMouseWheel),this.domElement.removeEventListener("contextmenu",this._onContextMenu),this.stopListenToKeyEvents(),this.domElement.getRootNode().removeEventListener("keydown",this._interceptControlDown,{capture:!0}),this.domElement.style.touchAction="auto"}dispose(){this.disconnect()}getPolarAngle(){return this._spherical.phi}getAzimuthalAngle(){return this._spherical.theta}getDistance(){return this.object.position.distanceTo(this.target)}listenToKeyEvents(o){o.addEventListener("keydown",this._onKeyDown),this._domElementKeyEvents=o}stopListenToKeyEvents(){this._domElementKeyEvents!==null&&(this._domElementKeyEvents.removeEventListener("keydown",this._onKeyDown),this._domElementKeyEvents=null)}saveState(){this.target0.copy(this.target),this.position0.copy(this.object.position),this.zoom0=this.object.zoom}reset(){this.target.copy(this.target0),this.object.position.copy(this.position0),this.object.zoom=this.zoom0,this.object.updateProjectionMatrix(),this.dispatchEvent(sn),this.update(),this.state=Te.NONE}update(o=null){const c=this.object.position;Ue.copy(c).sub(this.target),Ue.applyQuaternion(this._quat),this._spherical.setFromVector3(Ue),this.autoRotate&&this.state===Te.NONE&&this._rotateLeft(this._getAutoRotationAngle(o)),this.enableDamping?(this._spherical.theta+=this._sphericalDelta.theta*this.dampingFactor,this._spherical.phi+=this._sphericalDelta.phi*this.dampingFactor):(this._spherical.theta+=this._sphericalDelta.theta,this._spherical.phi+=this._sphericalDelta.phi);let u=this.minAzimuthAngle,l=this.maxAzimuthAngle;isFinite(u)&&isFinite(l)&&(u<-Math.PI?u+=Ze:u>Math.PI&&(u-=Ze),l<-Math.PI?l+=Ze:l>Math.PI&&(l-=Ze),u<=l?this._spherical.theta=Math.max(u,Math.min(l,this._spherical.theta)):this._spherical.theta=this._spherical.theta>(u+l)/2?Math.max(u,this._spherical.theta):Math.min(l,this._spherical.theta)),this._spherical.phi=Math.max(this.minPolarAngle,Math.min(this.maxPolarAngle,this._spherical.phi)),this._spherical.makeSafe(),this.enableDamping===!0?this.target.addScaledVector(this._panOffset,this.dampingFactor):this.target.add(this._panOffset),this.target.sub(this.cursor),this.target.clampLength(this.minTargetRadius,this.maxTargetRadius),this.target.add(this.cursor);let d=!1;if(this.zoomToCursor&&this._performCursorZoom||this.object.isOrthographicCamera)this._spherical.radius=this._clampDistance(this._spherical.radius);else{const v=this._spherical.radius;this._spherical.radius=this._clampDistance(this._spherical.radius*this._scale),d=v!=this._spherical.radius}if(Ue.setFromSpherical(this._spherical),Ue.applyQuaternion(this._quatInverse),c.copy(this.target).add(Ue),this.object.lookAt(this.target),this.enableDamping===!0?(this._sphericalDelta.theta*=1-this.dampingFactor,this._sphericalDelta.phi*=1-this.dampingFactor,this._panOffset.multiplyScalar(1-this.dampingFactor)):(this._sphericalDelta.set(0,0,0),this._panOffset.set(0,0,0)),this.zoomToCursor&&this._performCursorZoom){let v=null;if(this.object.isPerspectiveCamera){const p=Ue.length();v=this._clampDistance(p*this._scale);const _=p-v;this.object.position.addScaledVector(this._dollyDirection,_),this.object.updateMatrixWorld(),d=!!_}else if(this.object.isOrthographicCamera){const p=new i.Vector3(this._mouse.x,this._mouse.y,0);p.unproject(this.object);const _=this.object.zoom;this.object.zoom=Math.max(this.minZoom,Math.min(this.maxZoom,this.object.zoom/this._scale)),this.object.updateProjectionMatrix(),d=_!==this.object.zoom;const k=new i.Vector3(this._mouse.x,this._mouse.y,0);k.unproject(this.object),this.object.position.sub(k).add(p),this.object.updateMatrixWorld(),v=Ue.length()}else console.warn("WARNING: OrbitControls.js encountered an unknown camera type - zoom to cursor disabled."),this.zoomToCursor=!1;v!==null&&(this.screenSpacePanning?this.target.set(0,0,-1).transformDirection(this.object.matrix).multiplyScalar(v).add(this.object.position):(St.origin.copy(this.object.position),St.direction.set(0,0,-1).transformDirection(this.object.matrix),Math.abs(this.object.up.dot(St.direction))<Hn?this.object.lookAt(this.target):(an.setFromNormalAndCoplanarPoint(this.object.up,this.target),St.intersectPlane(an,this.target))))}else if(this.object.isOrthographicCamera){const v=this.object.zoom;this.object.zoom=Math.max(this.minZoom,Math.min(this.maxZoom,this.object.zoom/this._scale)),v!==this.object.zoom&&(this.object.updateProjectionMatrix(),d=!0)}return this._scale=1,this._performCursorZoom=!1,d||this._lastPosition.distanceToSquared(this.object.position)>Ft||8*(1-this._lastQuaternion.dot(this.object.quaternion))>Ft||this._lastTargetPosition.distanceToSquared(this.target)>Ft?(this.dispatchEvent(sn),this._lastPosition.copy(this.object.position),this._lastQuaternion.copy(this.object.quaternion),this._lastTargetPosition.copy(this.target),!0):!1}_getAutoRotationAngle(o){return o!==null?Ze/60*this.autoRotateSpeed*o:Ze/60/60*this.autoRotateSpeed}_getZoomScale(o){const c=Math.abs(o*.01);return Math.pow(.95,this.zoomSpeed*c)}_rotateLeft(o){this._sphericalDelta.theta-=o}_rotateUp(o){this._sphericalDelta.phi-=o}_panLeft(o,c){Ue.setFromMatrixColumn(c,0),Ue.multiplyScalar(-o),this._panOffset.add(Ue)}_panUp(o,c){this.screenSpacePanning===!0?Ue.setFromMatrixColumn(c,1):(Ue.setFromMatrixColumn(c,0),Ue.crossVectors(this.object.up,Ue)),Ue.multiplyScalar(o),this._panOffset.add(Ue)}_pan(o,c){const u=this.domElement;if(this.object.isPerspectiveCamera){const l=this.object.position;Ue.copy(l).sub(this.target);let d=Ue.length();d*=Math.tan(this.object.fov/2*Math.PI/180),this._panLeft(2*o*d/u.clientHeight,this.object.matrix),this._panUp(2*c*d/u.clientHeight,this.object.matrix)}else this.object.isOrthographicCamera?(this._panLeft(o*(this.object.right-this.object.left)/this.object.zoom/u.clientWidth,this.object.matrix),this._panUp(c*(this.object.top-this.object.bottom)/this.object.zoom/u.clientHeight,this.object.matrix)):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - pan disabled."),this.enablePan=!1)}_dollyOut(o){this.object.isPerspectiveCamera||this.object.isOrthographicCamera?this._scale/=o:(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),this.enableZoom=!1)}_dollyIn(o){this.object.isPerspectiveCamera||this.object.isOrthographicCamera?this._scale*=o:(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),this.enableZoom=!1)}_updateZoomParameters(o,c){if(!this.zoomToCursor)return;this._performCursorZoom=!0;const u=this.domElement.getBoundingClientRect(),l=o-u.left,d=c-u.top,v=u.width,p=u.height;this._mouse.x=l/v*2-1,this._mouse.y=-(d/p)*2+1,this._dollyDirection.set(this._mouse.x,this._mouse.y,1).unproject(this.object).sub(this.object.position).normalize()}_clampDistance(o){return Math.max(this.minDistance,Math.min(this.maxDistance,o))}_handleMouseDownRotate(o){this._rotateStart.set(o.clientX,o.clientY)}_handleMouseDownDolly(o){this._updateZoomParameters(o.clientX,o.clientX),this._dollyStart.set(o.clientX,o.clientY)}_handleMouseDownPan(o){this._panStart.set(o.clientX,o.clientY)}_handleMouseMoveRotate(o){this._rotateEnd.set(o.clientX,o.clientY),this._rotateDelta.subVectors(this._rotateEnd,this._rotateStart).multiplyScalar(this.rotateSpeed);const c=this.domElement;this._rotateLeft(Ze*this._rotateDelta.x/c.clientHeight),this._rotateUp(Ze*this._rotateDelta.y/c.clientHeight),this._rotateStart.copy(this._rotateEnd),this.update()}_handleMouseMoveDolly(o){this._dollyEnd.set(o.clientX,o.clientY),this._dollyDelta.subVectors(this._dollyEnd,this._dollyStart),this._dollyDelta.y>0?this._dollyOut(this._getZoomScale(this._dollyDelta.y)):this._dollyDelta.y<0&&this._dollyIn(this._getZoomScale(this._dollyDelta.y)),this._dollyStart.copy(this._dollyEnd),this.update()}_handleMouseMovePan(o){this._panEnd.set(o.clientX,o.clientY),this._panDelta.subVectors(this._panEnd,this._panStart).multiplyScalar(this.panSpeed),this._pan(this._panDelta.x,this._panDelta.y),this._panStart.copy(this._panEnd),this.update()}_handleMouseWheel(o){this._updateZoomParameters(o.clientX,o.clientY),o.deltaY<0?this._dollyIn(this._getZoomScale(o.deltaY)):o.deltaY>0&&this._dollyOut(this._getZoomScale(o.deltaY)),this.update()}_handleKeyDown(o){let c=!1;switch(o.code){case this.keys.UP:o.ctrlKey||o.metaKey||o.shiftKey?this.enableRotate&&this._rotateUp(Ze*this.keyRotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(0,this.keyPanSpeed),c=!0;break;case this.keys.BOTTOM:o.ctrlKey||o.metaKey||o.shiftKey?this.enableRotate&&this._rotateUp(-Ze*this.keyRotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(0,-this.keyPanSpeed),c=!0;break;case this.keys.LEFT:o.ctrlKey||o.metaKey||o.shiftKey?this.enableRotate&&this._rotateLeft(Ze*this.keyRotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(this.keyPanSpeed,0),c=!0;break;case this.keys.RIGHT:o.ctrlKey||o.metaKey||o.shiftKey?this.enableRotate&&this._rotateLeft(-Ze*this.keyRotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(-this.keyPanSpeed,0),c=!0;break}c&&(o.preventDefault(),this.update())}_handleTouchStartRotate(o){if(this._pointers.length===1)this._rotateStart.set(o.pageX,o.pageY);else{const c=this._getSecondPointerPosition(o),u=.5*(o.pageX+c.x),l=.5*(o.pageY+c.y);this._rotateStart.set(u,l)}}_handleTouchStartPan(o){if(this._pointers.length===1)this._panStart.set(o.pageX,o.pageY);else{const c=this._getSecondPointerPosition(o),u=.5*(o.pageX+c.x),l=.5*(o.pageY+c.y);this._panStart.set(u,l)}}_handleTouchStartDolly(o){const c=this._getSecondPointerPosition(o),u=o.pageX-c.x,l=o.pageY-c.y,d=Math.sqrt(u*u+l*l);this._dollyStart.set(0,d)}_handleTouchStartDollyPan(o){this.enableZoom&&this._handleTouchStartDolly(o),this.enablePan&&this._handleTouchStartPan(o)}_handleTouchStartDollyRotate(o){this.enableZoom&&this._handleTouchStartDolly(o),this.enableRotate&&this._handleTouchStartRotate(o)}_handleTouchMoveRotate(o){if(this._pointers.length==1)this._rotateEnd.set(o.pageX,o.pageY);else{const u=this._getSecondPointerPosition(o),l=.5*(o.pageX+u.x),d=.5*(o.pageY+u.y);this._rotateEnd.set(l,d)}this._rotateDelta.subVectors(this._rotateEnd,this._rotateStart).multiplyScalar(this.rotateSpeed);const c=this.domElement;this._rotateLeft(Ze*this._rotateDelta.x/c.clientHeight),this._rotateUp(Ze*this._rotateDelta.y/c.clientHeight),this._rotateStart.copy(this._rotateEnd)}_handleTouchMovePan(o){if(this._pointers.length===1)this._panEnd.set(o.pageX,o.pageY);else{const c=this._getSecondPointerPosition(o),u=.5*(o.pageX+c.x),l=.5*(o.pageY+c.y);this._panEnd.set(u,l)}this._panDelta.subVectors(this._panEnd,this._panStart).multiplyScalar(this.panSpeed),this._pan(this._panDelta.x,this._panDelta.y),this._panStart.copy(this._panEnd)}_handleTouchMoveDolly(o){const c=this._getSecondPointerPosition(o),u=o.pageX-c.x,l=o.pageY-c.y,d=Math.sqrt(u*u+l*l);this._dollyEnd.set(0,d),this._dollyDelta.set(0,Math.pow(this._dollyEnd.y/this._dollyStart.y,this.zoomSpeed)),this._dollyOut(this._dollyDelta.y),this._dollyStart.copy(this._dollyEnd);const v=(o.pageX+c.x)*.5,p=(o.pageY+c.y)*.5;this._updateZoomParameters(v,p)}_handleTouchMoveDollyPan(o){this.enableZoom&&this._handleTouchMoveDolly(o),this.enablePan&&this._handleTouchMovePan(o)}_handleTouchMoveDollyRotate(o){this.enableZoom&&this._handleTouchMoveDolly(o),this.enableRotate&&this._handleTouchMoveRotate(o)}_addPointer(o){this._pointers.push(o.pointerId)}_removePointer(o){delete this._pointerPositions[o.pointerId];for(let c=0;c<this._pointers.length;c++)if(this._pointers[c]==o.pointerId){this._pointers.splice(c,1);return}}_isTrackingPointer(o){for(let c=0;c<this._pointers.length;c++)if(this._pointers[c]==o.pointerId)return!0;return!1}_trackPointer(o){let c=this._pointerPositions[o.pointerId];c===void 0&&(c=new i.Vector2,this._pointerPositions[o.pointerId]=c),c.set(o.pageX,o.pageY)}_getSecondPointerPosition(o){const c=o.pointerId===this._pointers[0]?this._pointers[1]:this._pointers[0];return this._pointerPositions[c]}_customWheelEvent(o){const c=o.deltaMode,u={clientX:o.clientX,clientY:o.clientY,deltaY:o.deltaY};switch(c){case 1:u.deltaY*=16;break;case 2:u.deltaY*=100;break}return o.ctrlKey&&!this._controlActive&&(u.deltaY*=10),u}}function $n(V){this.enabled!==!1&&(this._pointers.length===0&&(this.domElement.setPointerCapture(V.pointerId),this.domElement.addEventListener("pointermove",this._onPointerMove),this.domElement.addEventListener("pointerup",this._onPointerUp)),!this._isTrackingPointer(V)&&(this._addPointer(V),V.pointerType==="touch"?this._onTouchStart(V):this._onMouseDown(V)))}function Yn(V){this.enabled!==!1&&(V.pointerType==="touch"?this._onTouchMove(V):this._onMouseMove(V))}function Wn(V){switch(this._removePointer(V),this._pointers.length){case 0:this.domElement.releasePointerCapture(V.pointerId),this.domElement.removeEventListener("pointermove",this._onPointerMove),this.domElement.removeEventListener("pointerup",this._onPointerUp),this.dispatchEvent(gn),this.state=Te.NONE;break;case 1:const o=this._pointers[0],c=this._pointerPositions[o];this._onTouchStart({pointerId:o,pageX:c.x,pageY:c.y});break}}function Kn(V){let o;switch(V.button){case 0:o=this.mouseButtons.LEFT;break;case 1:o=this.mouseButtons.MIDDLE;break;case 2:o=this.mouseButtons.RIGHT;break;default:o=-1}switch(o){case i.MOUSE.DOLLY:if(this.enableZoom===!1)return;this._handleMouseDownDolly(V),this.state=Te.DOLLY;break;case i.MOUSE.ROTATE:if(V.ctrlKey||V.metaKey||V.shiftKey){if(this.enablePan===!1)return;this._handleMouseDownPan(V),this.state=Te.PAN}else{if(this.enableRotate===!1)return;this._handleMouseDownRotate(V),this.state=Te.ROTATE}break;case i.MOUSE.PAN:if(V.ctrlKey||V.metaKey||V.shiftKey){if(this.enableRotate===!1)return;this._handleMouseDownRotate(V),this.state=Te.ROTATE}else{if(this.enablePan===!1)return;this._handleMouseDownPan(V),this.state=Te.PAN}break;default:this.state=Te.NONE}this.state!==Te.NONE&&this.dispatchEvent(Ht)}function Zn(V){switch(this.state){case Te.ROTATE:if(this.enableRotate===!1)return;this._handleMouseMoveRotate(V);break;case Te.DOLLY:if(this.enableZoom===!1)return;this._handleMouseMoveDolly(V);break;case Te.PAN:if(this.enablePan===!1)return;this._handleMouseMovePan(V);break}}function Jn(V){this.enabled===!1||this.enableZoom===!1||this.state!==Te.NONE||(V.preventDefault(),this.dispatchEvent(Ht),this._handleMouseWheel(this._customWheelEvent(V)),this.dispatchEvent(gn))}function Xn(V){this.enabled!==!1&&this._handleKeyDown(V)}function Qn(V){switch(this._trackPointer(V),this._pointers.length){case 1:switch(this.touches.ONE){case i.TOUCH.ROTATE:if(this.enableRotate===!1)return;this._handleTouchStartRotate(V),this.state=Te.TOUCH_ROTATE;break;case i.TOUCH.PAN:if(this.enablePan===!1)return;this._handleTouchStartPan(V),this.state=Te.TOUCH_PAN;break;default:this.state=Te.NONE}break;case 2:switch(this.touches.TWO){case i.TOUCH.DOLLY_PAN:if(this.enableZoom===!1&&this.enablePan===!1)return;this._handleTouchStartDollyPan(V),this.state=Te.TOUCH_DOLLY_PAN;break;case i.TOUCH.DOLLY_ROTATE:if(this.enableZoom===!1&&this.enableRotate===!1)return;this._handleTouchStartDollyRotate(V),this.state=Te.TOUCH_DOLLY_ROTATE;break;default:this.state=Te.NONE}break;default:this.state=Te.NONE}this.state!==Te.NONE&&this.dispatchEvent(Ht)}function eo(V){switch(this._trackPointer(V),this.state){case Te.TOUCH_ROTATE:if(this.enableRotate===!1)return;this._handleTouchMoveRotate(V),this.update();break;case Te.TOUCH_PAN:if(this.enablePan===!1)return;this._handleTouchMovePan(V),this.update();break;case Te.TOUCH_DOLLY_PAN:if(this.enableZoom===!1&&this.enablePan===!1)return;this._handleTouchMoveDollyPan(V),this.update();break;case Te.TOUCH_DOLLY_ROTATE:if(this.enableZoom===!1&&this.enableRotate===!1)return;this._handleTouchMoveDollyRotate(V),this.update();break;default:this.state=Te.NONE}}function to(V){this.enabled!==!1&&V.preventDefault()}function no(V){V.key==="Control"&&(this._controlActive=!0,this.domElement.getRootNode().addEventListener("keyup",this._interceptControlUp,{passive:!0,capture:!0}))}function oo(V){V.key==="Control"&&(this._controlActive=!1,this.domElement.getRootNode().removeEventListener("keyup",this._interceptControlUp,{passive:!0,capture:!0}))}function so(V){let o=null,c=null,u=null,l=null,d=null,v=null;const p=e.ref([]),_=e.ref(new i.Vector3),k=e.ref(new i.Vector3),P=()=>{if(!V.value)return;o=new i.Scene,o.background=new i.Color(15790320);const T=V.value;c=new i.PerspectiveCamera(75,T.clientWidth/T.clientHeight,.1,1e4),u=new i.WebGLRenderer({antialias:!0,alpha:!0}),u.setSize(T.clientWidth,T.clientHeight),u.localClippingEnabled=!0,u.shadowMap.enabled=!0,u.shadowMap.type=i.PCFSoftShadowMap,u.toneMapping=i.ACESFilmicToneMapping,u.toneMappingExposure=1,u.outputColorSpace=i.SRGBColorSpace,T.appendChild(u.domElement),l=new qn(c,u.domElement),l.enableDamping=!0,l.dampingFactor=.05,d=new i.Xe(c,u,{container:T,type:"cube",placement:"bottom-left",offset:{left:350,bottom:22},background:{color:"#D1D1D1"}}),d.attachControls(l),F(),j()},F=()=>{const T=new i.AmbientLight(4210752,.6);o.add(T);const x=new i.DirectionalLight(16777215,2);x.position.set(10,10,8),x.castShadow=!0,x.shadow.mapSize.width=2048,x.shadow.mapSize.height=2048,x.shadow.camera.near=.5,x.shadow.camera.far=50,o.add(x);const y=new i.DirectionalLight(16777215,.8);y.position.set(-8,-8,6),o.add(y);const B=new i.DirectionalLight(16777215,.6);B.position.set(0,-15,2),o.add(B);const N=new i.HemisphereLight(16777215,4473924,.8);o.add(N);const S=new i.PointLight(16777215,1,50);S.position.set(15,15,15),o.add(S);const W=new i.PointLight(16777215,.5,50);W.position.set(-15,-15,15),o.add(W)},j=()=>{v=requestAnimationFrame(j),l&&l.update(),u&&o&&c&&u.render(o,c),d&&d.render()},b=T=>{["map","normalMap","bumpMap","roughnessMap","metalnessMap","emissiveMap","specularMap","envMap","lightMap","aoMap","displacementMap"].forEach(y=>{T[y]&&T[y].dispose&&T[y].dispose()}),T.dispose&&T.dispose()},h=T=>{T.traverse(x=>{x.geometry&&x.geometry.dispose(),x.material&&(Array.isArray(x.material)?x.material.forEach(y=>{b(y)}):b(x.material))})};return{currentModels:p,initialCameraPosition:_,initialTargetPosition:k,initThreeJS:P,handleResize:()=>{if(!V.value||!c||!u||!d)return;const T=V.value,x=T.clientWidth,y=T.clientHeight;c.aspect=x/y,c.updateProjectionMatrix(),u.setSize(x,y),d.update()},fitCameraToAllModels:()=>{if(!c||!l||p.value.length===0)return;const T=new i.Box3;p.value.forEach(O=>{T.expandByObject(O)});const x=T.getSize(new i.Vector3),y=T.getCenter(new i.Vector3),N=Math.max(x.x,x.y,x.z)*.8,S=new i.Vector3(y.x+N,y.y+N,y.z+N),W=y.clone();c.position.copy(S),c.lookAt(W),l.target.copy(W),l.update(),_.value.copy(S),k.value.copy(W)},getThreeJSObjects:()=>({scene:o,camera:c,renderer:u,controls:l,gizmo:d}),clearAllModels:()=>{if(!o)return;p.value.forEach(x=>{o.remove(x),h(x)});const T=[];o.children.forEach(x=>{!x.isLight&&!x.isCamera&&T.push(x)}),T.forEach(x=>{o.remove(x),h(x)}),p.value=[]},cleanup:()=>{v&&cancelAnimationFrame(v),u&&u.dispose(),l&&l.dispose(),d&&d.dispose()}}}function io(V,o){const c=e.ref(!1);let u=null,l=12700,d=new i.Vector3,v=new i.Vector3,p=new i.Vector3,_=0,k=null;const P=m=>m<.5?4*m*m*m:1-Math.pow(-2*m+2,3)/2,F=m=>{const w=new i.Vector3,f=_*1.2,E=new i.Vector3(p.x+f,p.y,p.z),T=new i.Vector3(p.x,p.y+f,p.z),x=new i.Vector3(p.x,p.y-f,p.z);if(m<=.567){const B=m/.567*Math.PI*2;w.x=p.x+Math.cos(B)*f,w.z=p.z+Math.sin(B)*f,w.y=p.y}else if(m<=.724){const y=(m-.567)/.157,B=P(y);w.lerpVectors(E,T,B)}else if(m<=.881){const y=(m-.724)/.157,N=P(y)*Math.PI;w.x=p.x+Math.sin(N)*f,w.y=p.y+Math.cos(N)*f,w.z=p.z}else{const y=(m-.881)/.119,B=P(y);w.lerpVectors(x,d,B)}return w},j=()=>{const{camera:m,controls:w}=V();if(!m||!w)return;u||(u=Date.now());const f=Date.now()-u,E=Math.min(f/l,1);if(E>=1){h();return}const T=F(E);m.position.copy(T),m.lookAt(p),w.target.copy(p),k=requestAnimationFrame(j)},b=()=>{if(o.value.length===0)return;const{camera:m,controls:w}=V();if(!m||!w)return;d.copy(m.position),v.copy(w.target);const f=new i.Box3;o.value.forEach(S=>{f.expandByObject(S)});const E=f.getSize(new i.Vector3);p=f.getCenter(new i.Vector3),_=Math.max(E.x,E.y,E.z)*1.2;const T=new i.Vector3(p.x+_*1.2,p.y,p.z);w.enabled=!1;const x=m.position.clone(),y=1e3,B=Date.now(),N=()=>{const S=Date.now()-B,W=Math.min(S/y,1),O=P(W);m.position.lerpVectors(x,T,O),m.lookAt(p),w.target.copy(p),W<1?requestAnimationFrame(N):(c.value=!0,u=null,j())};N()},h=()=>{c.value=!1,u=null,k&&(cancelAnimationFrame(k),k=null);const{controls:m}=V();m&&(m.enabled=!0,m.target.copy(v))};return{isAnimating:c,toggleAnimation:()=>{if(c.value){c.value=!1,u=null,k&&(cancelAnimationFrame(k),k=null);const{camera:m,controls:w}=V();if(!m||!w)return;w.enabled=!0;const f=m.position.clone(),E=w.target.clone(),T=1500,x=Date.now(),y=()=>{const B=Date.now()-x,N=Math.min(B/T,1),S=P(N);m.position.lerpVectors(f,d,S),w.target.lerpVectors(E,v,S),N<1&&requestAnimationFrame(y)};y()}else b()},startAnimation:b,stopAnimation:h}}function ao(V,o){const c=e.ref(!1),u=e.ref("none");let l=[],d=[],v=new i.Box3,p=new i.Vector3;const _=()=>{l=[new i.Plane(new i.Vector3(1,0,0),0),new i.Plane(new i.Vector3(0,1,0),0),new i.Plane(new i.Vector3(0,0,1),0)]},k=()=>{v.makeEmpty(),o.value.forEach(A=>{v.expandByObject(A)}),p=v.getCenter(new i.Vector3)},P=A=>{const m=v.getSize(new i.Vector3);let w,f,E;A==="x"?(w=new i.PlaneGeometry(m.z*1.2,m.y*1.2),f=new i.Vector3(p.x,p.y,p.z),E=new i.Euler(0,Math.PI/2,0)):A==="y"?(w=new i.PlaneGeometry(m.x*1.2,m.z*1.2),f=new i.Vector3(p.x,p.y,p.z),E=new i.Euler(Math.PI/2,0,0)):A==="z"&&(w=new i.PlaneGeometry(m.x*1.2,m.y*1.2),f=new i.Vector3(p.x,p.y,p.z),E=new i.Euler(0,0,0));const T=new i.MeshPhongMaterial({color:8900331,transparent:!0,opacity:.3,side:i.DoubleSide,depthWrite:!1}),x=new i.Mesh(w,T);return x.position.copy(f),x.rotation.copy(E),x},F=()=>{if(j(),b(),u.value==="none")return;k();let A=null;if(u.value==="x"?(l[0].constant=-p.x,A=l[0]):u.value==="y"?(l[1].constant=-p.y,A=l[1]):u.value==="z"&&(l[2].constant=-p.z,A=l[2]),A){o.value.forEach(w=>{w.traverse(f=>{f.isMesh&&f.material&&(Array.isArray(f.material)?f.material.forEach(E=>{E.clippingPlanes=[A]}):f.material.clippingPlanes=[A])})});const{scene:m}=V();if(m){const w=P(u.value);m.add(w),d.push(w)}}},j=()=>{o.value.forEach(A=>{A.traverse(m=>{m.isMesh&&m.material&&(Array.isArray(m.material)?m.material.forEach(w=>{w.clippingPlanes=[]}):m.material.clippingPlanes=[])})})},b=()=>{const{scene:A}=V();A&&d.forEach(m=>{A.remove(m),m.geometry.dispose(),m.material.dispose()}),d=[]};return{isClipping:c,activeClippingAxis:u,toggleClipping:()=>{c.value=!c.value,c.value?(_(),o.value.length>0&&k()):(u.value="none",j(),b())},updateClippingPlanes:F,clearClippingPlanes:j,clearClippingMeshes:b}}const ro=/^[og]\s*(.+)?/,lo=/^mtllib /,co=/^usemtl /,uo=/^usemap /,rn=/\s+/,ln=new i.Vector3,It=new i.Vector3,cn=new i.Vector3,dn=new i.Vector3,et=new i.Vector3,Pt=new i.Color;function ho(){const V={objects:[],object:{},vertices:[],normals:[],colors:[],uvs:[],materials:{},materialLibraries:[],startObject:function(o,c){if(this.object&&this.object.fromDeclaration===!1){this.object.name=o,this.object.fromDeclaration=c!==!1;return}const u=this.object&&typeof this.object.currentMaterial=="function"?this.object.currentMaterial():void 0;if(this.object&&typeof this.object._finalize=="function"&&this.object._finalize(!0),this.object={name:o||"",fromDeclaration:c!==!1,geometry:{vertices:[],normals:[],colors:[],uvs:[],hasUVIndices:!1},materials:[],smooth:!0,startMaterial:function(l,d){const v=this._finalize(!1);v&&(v.inherited||v.groupCount<=0)&&this.materials.splice(v.index,1);const p={index:this.materials.length,name:l||"",mtllib:Array.isArray(d)&&d.length>0?d[d.length-1]:"",smooth:v!==void 0?v.smooth:this.smooth,groupStart:v!==void 0?v.groupEnd:0,groupEnd:-1,groupCount:-1,inherited:!1,clone:function(_){const k={index:typeof _=="number"?_:this.index,name:this.name,mtllib:this.mtllib,smooth:this.smooth,groupStart:0,groupEnd:-1,groupCount:-1,inherited:!1};return k.clone=this.clone.bind(k),k}};return this.materials.push(p),p},currentMaterial:function(){if(this.materials.length>0)return this.materials[this.materials.length-1]},_finalize:function(l){const d=this.currentMaterial();if(d&&d.groupEnd===-1&&(d.groupEnd=this.geometry.vertices.length/3,d.groupCount=d.groupEnd-d.groupStart,d.inherited=!1),l&&this.materials.length>1)for(let v=this.materials.length-1;v>=0;v--)this.materials[v].groupCount<=0&&this.materials.splice(v,1);return l&&this.materials.length===0&&this.materials.push({name:"",smooth:this.smooth}),d}},u&&u.name&&typeof u.clone=="function"){const l=u.clone(0);l.inherited=!0,this.object.materials.push(l)}this.objects.push(this.object)},finalize:function(){this.object&&typeof this.object._finalize=="function"&&this.object._finalize(!0)},parseVertexIndex:function(o,c){const u=parseInt(o,10);return(u>=0?u-1:u+c/3)*3},parseNormalIndex:function(o,c){const u=parseInt(o,10);return(u>=0?u-1:u+c/3)*3},parseUVIndex:function(o,c){const u=parseInt(o,10);return(u>=0?u-1:u+c/2)*2},addVertex:function(o,c,u){const l=this.vertices,d=this.object.geometry.vertices;d.push(l[o+0],l[o+1],l[o+2]),d.push(l[c+0],l[c+1],l[c+2]),d.push(l[u+0],l[u+1],l[u+2])},addVertexPoint:function(o){const c=this.vertices;this.object.geometry.vertices.push(c[o+0],c[o+1],c[o+2])},addVertexLine:function(o){const c=this.vertices;this.object.geometry.vertices.push(c[o+0],c[o+1],c[o+2])},addNormal:function(o,c,u){const l=this.normals,d=this.object.geometry.normals;d.push(l[o+0],l[o+1],l[o+2]),d.push(l[c+0],l[c+1],l[c+2]),d.push(l[u+0],l[u+1],l[u+2])},addFaceNormal:function(o,c,u){const l=this.vertices,d=this.object.geometry.normals;ln.fromArray(l,o),It.fromArray(l,c),cn.fromArray(l,u),et.subVectors(cn,It),dn.subVectors(ln,It),et.cross(dn),et.normalize(),d.push(et.x,et.y,et.z),d.push(et.x,et.y,et.z),d.push(et.x,et.y,et.z)},addColor:function(o,c,u){const l=this.colors,d=this.object.geometry.colors;l[o]!==void 0&&d.push(l[o+0],l[o+1],l[o+2]),l[c]!==void 0&&d.push(l[c+0],l[c+1],l[c+2]),l[u]!==void 0&&d.push(l[u+0],l[u+1],l[u+2])},addUV:function(o,c,u){const l=this.uvs,d=this.object.geometry.uvs;d.push(l[o+0],l[o+1]),d.push(l[c+0],l[c+1]),d.push(l[u+0],l[u+1])},addDefaultUV:function(){const o=this.object.geometry.uvs;o.push(0,0),o.push(0,0),o.push(0,0)},addUVLine:function(o){const c=this.uvs;this.object.geometry.uvs.push(c[o+0],c[o+1])},addFace:function(o,c,u,l,d,v,p,_,k){const P=this.vertices.length;let F=this.parseVertexIndex(o,P),j=this.parseVertexIndex(c,P),b=this.parseVertexIndex(u,P);if(this.addVertex(F,j,b),this.addColor(F,j,b),p!==void 0&&p!==""){const h=this.normals.length;F=this.parseNormalIndex(p,h),j=this.parseNormalIndex(_,h),b=this.parseNormalIndex(k,h),this.addNormal(F,j,b)}else this.addFaceNormal(F,j,b);if(l!==void 0&&l!==""){const h=this.uvs.length;F=this.parseUVIndex(l,h),j=this.parseUVIndex(d,h),b=this.parseUVIndex(v,h),this.addUV(F,j,b),this.object.geometry.hasUVIndices=!0}else this.addDefaultUV()},addPointGeometry:function(o){this.object.geometry.type="Points";const c=this.vertices.length;for(let u=0,l=o.length;u<l;u++){const d=this.parseVertexIndex(o[u],c);this.addVertexPoint(d),this.addColor(d)}},addLineGeometry:function(o,c){this.object.geometry.type="Line";const u=this.vertices.length,l=this.uvs.length;for(let d=0,v=o.length;d<v;d++)this.addVertexLine(this.parseVertexIndex(o[d],u));for(let d=0,v=c.length;d<v;d++)this.addUVLine(this.parseUVIndex(c[d],l))}};return V.startObject("",!1),V}class jt extends i.Loader{constructor(o){super(o),this.materials=null}load(o,c,u,l){const d=this,v=new i.FileLoader(this.manager);v.setPath(this.path),v.setRequestHeader(this.requestHeader),v.setWithCredentials(this.withCredentials),v.load(o,function(p){try{c(d.parse(p))}catch(_){l?l(_):console.error(_),d.manager.itemError(o)}},u,l)}setMaterials(o){return this.materials=o,this}parse(o){const c=new ho;o.indexOf(`\r
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),ct=require("./index-Cv2V2tH-.cjs"),zt=require("./index-Q-X5BSK9.cjs"),tt=require("./index-BZzFiKt-.cjs"),i=require("./index-D6CIrGz0.cjs"),pe=require("./menu-BrXts4j-.cjs"),Gn=require("./index-Yb78DraO.cjs"),ue=require("./index.vue_vue_type_style_index_0_scoped_62633fa4_lang-D6yeE-t9.cjs"),_t=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),wt=require("./array-Iv_rSUaR.cjs"),fn=require("./login-syD20PGh.cjs"),mt=require("./index-BpPyaNFa.cjs"),mn=require("./index-CYgCOvww.cjs"),gt=require("./cloneDeep-wK5_Gma5.cjs"),Gt=require("./index-psMnTDqi.cjs"),Dt=require("./index-Ces1p9GH.cjs"),sn={type:"change"},Ht={type:"start"},gn={type:"end"},St=new i.Ray,an=new i.Plane,Hn=Math.cos(70*i.MathUtils.DEG2RAD),Ue=new i.Vector3,Ze=2*Math.PI,Te={NONE:-1,ROTATE:0,DOLLY:1,PAN:2,TOUCH_ROTATE:3,TOUCH_PAN:4,TOUCH_DOLLY_PAN:5,TOUCH_DOLLY_ROTATE:6},Ft=1e-6;class qn extends i.Controls{constructor(o,c=null){super(o,c),this.state=Te.NONE,this.target=new i.Vector3,this.cursor=new i.Vector3,this.minDistance=0,this.maxDistance=1/0,this.minZoom=0,this.maxZoom=1/0,this.minTargetRadius=0,this.maxTargetRadius=1/0,this.minPolarAngle=0,this.maxPolarAngle=Math.PI,this.minAzimuthAngle=-1/0,this.maxAzimuthAngle=1/0,this.enableDamping=!1,this.dampingFactor=.05,this.enableZoom=!0,this.zoomSpeed=1,this.enableRotate=!0,this.rotateSpeed=1,this.keyRotateSpeed=1,this.enablePan=!0,this.panSpeed=1,this.screenSpacePanning=!0,this.keyPanSpeed=7,this.zoomToCursor=!1,this.autoRotate=!1,this.autoRotateSpeed=2,this.keys={LEFT:"ArrowLeft",UP:"ArrowUp",RIGHT:"ArrowRight",BOTTOM:"ArrowDown"},this.mouseButtons={LEFT:i.MOUSE.ROTATE,MIDDLE:i.MOUSE.DOLLY,RIGHT:i.MOUSE.PAN},this.touches={ONE:i.TOUCH.ROTATE,TWO:i.TOUCH.DOLLY_PAN},this.target0=this.target.clone(),this.position0=this.object.position.clone(),this.zoom0=this.object.zoom,this._domElementKeyEvents=null,this._lastPosition=new i.Vector3,this._lastQuaternion=new i.Quaternion,this._lastTargetPosition=new i.Vector3,this._quat=new i.Quaternion().setFromUnitVectors(o.up,new i.Vector3(0,1,0)),this._quatInverse=this._quat.clone().invert(),this._spherical=new i.Spherical,this._sphericalDelta=new i.Spherical,this._scale=1,this._panOffset=new i.Vector3,this._rotateStart=new i.Vector2,this._rotateEnd=new i.Vector2,this._rotateDelta=new i.Vector2,this._panStart=new i.Vector2,this._panEnd=new i.Vector2,this._panDelta=new i.Vector2,this._dollyStart=new i.Vector2,this._dollyEnd=new i.Vector2,this._dollyDelta=new i.Vector2,this._dollyDirection=new i.Vector3,this._mouse=new i.Vector2,this._performCursorZoom=!1,this._pointers=[],this._pointerPositions={},this._controlActive=!1,this._onPointerMove=Yn.bind(this),this._onPointerDown=$n.bind(this),this._onPointerUp=Wn.bind(this),this._onContextMenu=to.bind(this),this._onMouseWheel=Jn.bind(this),this._onKeyDown=Xn.bind(this),this._onTouchStart=Qn.bind(this),this._onTouchMove=eo.bind(this),this._onMouseDown=Kn.bind(this),this._onMouseMove=Zn.bind(this),this._interceptControlDown=no.bind(this),this._interceptControlUp=oo.bind(this),this.domElement!==null&&this.connect(this.domElement),this.update()}connect(o){super.connect(o),this.domElement.addEventListener("pointerdown",this._onPointerDown),this.domElement.addEventListener("pointercancel",this._onPointerUp),this.domElement.addEventListener("contextmenu",this._onContextMenu),this.domElement.addEventListener("wheel",this._onMouseWheel,{passive:!1}),this.domElement.getRootNode().addEventListener("keydown",this._interceptControlDown,{passive:!0,capture:!0}),this.domElement.style.touchAction="none"}disconnect(){this.domElement.removeEventListener("pointerdown",this._onPointerDown),this.domElement.removeEventListener("pointermove",this._onPointerMove),this.domElement.removeEventListener("pointerup",this._onPointerUp),this.domElement.removeEventListener("pointercancel",this._onPointerUp),this.domElement.removeEventListener("wheel",this._onMouseWheel),this.domElement.removeEventListener("contextmenu",this._onContextMenu),this.stopListenToKeyEvents(),this.domElement.getRootNode().removeEventListener("keydown",this._interceptControlDown,{capture:!0}),this.domElement.style.touchAction="auto"}dispose(){this.disconnect()}getPolarAngle(){return this._spherical.phi}getAzimuthalAngle(){return this._spherical.theta}getDistance(){return this.object.position.distanceTo(this.target)}listenToKeyEvents(o){o.addEventListener("keydown",this._onKeyDown),this._domElementKeyEvents=o}stopListenToKeyEvents(){this._domElementKeyEvents!==null&&(this._domElementKeyEvents.removeEventListener("keydown",this._onKeyDown),this._domElementKeyEvents=null)}saveState(){this.target0.copy(this.target),this.position0.copy(this.object.position),this.zoom0=this.object.zoom}reset(){this.target.copy(this.target0),this.object.position.copy(this.position0),this.object.zoom=this.zoom0,this.object.updateProjectionMatrix(),this.dispatchEvent(sn),this.update(),this.state=Te.NONE}update(o=null){const c=this.object.position;Ue.copy(c).sub(this.target),Ue.applyQuaternion(this._quat),this._spherical.setFromVector3(Ue),this.autoRotate&&this.state===Te.NONE&&this._rotateLeft(this._getAutoRotationAngle(o)),this.enableDamping?(this._spherical.theta+=this._sphericalDelta.theta*this.dampingFactor,this._spherical.phi+=this._sphericalDelta.phi*this.dampingFactor):(this._spherical.theta+=this._sphericalDelta.theta,this._spherical.phi+=this._sphericalDelta.phi);let u=this.minAzimuthAngle,l=this.maxAzimuthAngle;isFinite(u)&&isFinite(l)&&(u<-Math.PI?u+=Ze:u>Math.PI&&(u-=Ze),l<-Math.PI?l+=Ze:l>Math.PI&&(l-=Ze),u<=l?this._spherical.theta=Math.max(u,Math.min(l,this._spherical.theta)):this._spherical.theta=this._spherical.theta>(u+l)/2?Math.max(u,this._spherical.theta):Math.min(l,this._spherical.theta)),this._spherical.phi=Math.max(this.minPolarAngle,Math.min(this.maxPolarAngle,this._spherical.phi)),this._spherical.makeSafe(),this.enableDamping===!0?this.target.addScaledVector(this._panOffset,this.dampingFactor):this.target.add(this._panOffset),this.target.sub(this.cursor),this.target.clampLength(this.minTargetRadius,this.maxTargetRadius),this.target.add(this.cursor);let d=!1;if(this.zoomToCursor&&this._performCursorZoom||this.object.isOrthographicCamera)this._spherical.radius=this._clampDistance(this._spherical.radius);else{const v=this._spherical.radius;this._spherical.radius=this._clampDistance(this._spherical.radius*this._scale),d=v!=this._spherical.radius}if(Ue.setFromSpherical(this._spherical),Ue.applyQuaternion(this._quatInverse),c.copy(this.target).add(Ue),this.object.lookAt(this.target),this.enableDamping===!0?(this._sphericalDelta.theta*=1-this.dampingFactor,this._sphericalDelta.phi*=1-this.dampingFactor,this._panOffset.multiplyScalar(1-this.dampingFactor)):(this._sphericalDelta.set(0,0,0),this._panOffset.set(0,0,0)),this.zoomToCursor&&this._performCursorZoom){let v=null;if(this.object.isPerspectiveCamera){const p=Ue.length();v=this._clampDistance(p*this._scale);const _=p-v;this.object.position.addScaledVector(this._dollyDirection,_),this.object.updateMatrixWorld(),d=!!_}else if(this.object.isOrthographicCamera){const p=new i.Vector3(this._mouse.x,this._mouse.y,0);p.unproject(this.object);const _=this.object.zoom;this.object.zoom=Math.max(this.minZoom,Math.min(this.maxZoom,this.object.zoom/this._scale)),this.object.updateProjectionMatrix(),d=_!==this.object.zoom;const k=new i.Vector3(this._mouse.x,this._mouse.y,0);k.unproject(this.object),this.object.position.sub(k).add(p),this.object.updateMatrixWorld(),v=Ue.length()}else console.warn("WARNING: OrbitControls.js encountered an unknown camera type - zoom to cursor disabled."),this.zoomToCursor=!1;v!==null&&(this.screenSpacePanning?this.target.set(0,0,-1).transformDirection(this.object.matrix).multiplyScalar(v).add(this.object.position):(St.origin.copy(this.object.position),St.direction.set(0,0,-1).transformDirection(this.object.matrix),Math.abs(this.object.up.dot(St.direction))<Hn?this.object.lookAt(this.target):(an.setFromNormalAndCoplanarPoint(this.object.up,this.target),St.intersectPlane(an,this.target))))}else if(this.object.isOrthographicCamera){const v=this.object.zoom;this.object.zoom=Math.max(this.minZoom,Math.min(this.maxZoom,this.object.zoom/this._scale)),v!==this.object.zoom&&(this.object.updateProjectionMatrix(),d=!0)}return this._scale=1,this._performCursorZoom=!1,d||this._lastPosition.distanceToSquared(this.object.position)>Ft||8*(1-this._lastQuaternion.dot(this.object.quaternion))>Ft||this._lastTargetPosition.distanceToSquared(this.target)>Ft?(this.dispatchEvent(sn),this._lastPosition.copy(this.object.position),this._lastQuaternion.copy(this.object.quaternion),this._lastTargetPosition.copy(this.target),!0):!1}_getAutoRotationAngle(o){return o!==null?Ze/60*this.autoRotateSpeed*o:Ze/60/60*this.autoRotateSpeed}_getZoomScale(o){const c=Math.abs(o*.01);return Math.pow(.95,this.zoomSpeed*c)}_rotateLeft(o){this._sphericalDelta.theta-=o}_rotateUp(o){this._sphericalDelta.phi-=o}_panLeft(o,c){Ue.setFromMatrixColumn(c,0),Ue.multiplyScalar(-o),this._panOffset.add(Ue)}_panUp(o,c){this.screenSpacePanning===!0?Ue.setFromMatrixColumn(c,1):(Ue.setFromMatrixColumn(c,0),Ue.crossVectors(this.object.up,Ue)),Ue.multiplyScalar(o),this._panOffset.add(Ue)}_pan(o,c){const u=this.domElement;if(this.object.isPerspectiveCamera){const l=this.object.position;Ue.copy(l).sub(this.target);let d=Ue.length();d*=Math.tan(this.object.fov/2*Math.PI/180),this._panLeft(2*o*d/u.clientHeight,this.object.matrix),this._panUp(2*c*d/u.clientHeight,this.object.matrix)}else this.object.isOrthographicCamera?(this._panLeft(o*(this.object.right-this.object.left)/this.object.zoom/u.clientWidth,this.object.matrix),this._panUp(c*(this.object.top-this.object.bottom)/this.object.zoom/u.clientHeight,this.object.matrix)):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - pan disabled."),this.enablePan=!1)}_dollyOut(o){this.object.isPerspectiveCamera||this.object.isOrthographicCamera?this._scale/=o:(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),this.enableZoom=!1)}_dollyIn(o){this.object.isPerspectiveCamera||this.object.isOrthographicCamera?this._scale*=o:(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),this.enableZoom=!1)}_updateZoomParameters(o,c){if(!this.zoomToCursor)return;this._performCursorZoom=!0;const u=this.domElement.getBoundingClientRect(),l=o-u.left,d=c-u.top,v=u.width,p=u.height;this._mouse.x=l/v*2-1,this._mouse.y=-(d/p)*2+1,this._dollyDirection.set(this._mouse.x,this._mouse.y,1).unproject(this.object).sub(this.object.position).normalize()}_clampDistance(o){return Math.max(this.minDistance,Math.min(this.maxDistance,o))}_handleMouseDownRotate(o){this._rotateStart.set(o.clientX,o.clientY)}_handleMouseDownDolly(o){this._updateZoomParameters(o.clientX,o.clientX),this._dollyStart.set(o.clientX,o.clientY)}_handleMouseDownPan(o){this._panStart.set(o.clientX,o.clientY)}_handleMouseMoveRotate(o){this._rotateEnd.set(o.clientX,o.clientY),this._rotateDelta.subVectors(this._rotateEnd,this._rotateStart).multiplyScalar(this.rotateSpeed);const c=this.domElement;this._rotateLeft(Ze*this._rotateDelta.x/c.clientHeight),this._rotateUp(Ze*this._rotateDelta.y/c.clientHeight),this._rotateStart.copy(this._rotateEnd),this.update()}_handleMouseMoveDolly(o){this._dollyEnd.set(o.clientX,o.clientY),this._dollyDelta.subVectors(this._dollyEnd,this._dollyStart),this._dollyDelta.y>0?this._dollyOut(this._getZoomScale(this._dollyDelta.y)):this._dollyDelta.y<0&&this._dollyIn(this._getZoomScale(this._dollyDelta.y)),this._dollyStart.copy(this._dollyEnd),this.update()}_handleMouseMovePan(o){this._panEnd.set(o.clientX,o.clientY),this._panDelta.subVectors(this._panEnd,this._panStart).multiplyScalar(this.panSpeed),this._pan(this._panDelta.x,this._panDelta.y),this._panStart.copy(this._panEnd),this.update()}_handleMouseWheel(o){this._updateZoomParameters(o.clientX,o.clientY),o.deltaY<0?this._dollyIn(this._getZoomScale(o.deltaY)):o.deltaY>0&&this._dollyOut(this._getZoomScale(o.deltaY)),this.update()}_handleKeyDown(o){let c=!1;switch(o.code){case this.keys.UP:o.ctrlKey||o.metaKey||o.shiftKey?this.enableRotate&&this._rotateUp(Ze*this.keyRotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(0,this.keyPanSpeed),c=!0;break;case this.keys.BOTTOM:o.ctrlKey||o.metaKey||o.shiftKey?this.enableRotate&&this._rotateUp(-Ze*this.keyRotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(0,-this.keyPanSpeed),c=!0;break;case this.keys.LEFT:o.ctrlKey||o.metaKey||o.shiftKey?this.enableRotate&&this._rotateLeft(Ze*this.keyRotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(this.keyPanSpeed,0),c=!0;break;case this.keys.RIGHT:o.ctrlKey||o.metaKey||o.shiftKey?this.enableRotate&&this._rotateLeft(-Ze*this.keyRotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(-this.keyPanSpeed,0),c=!0;break}c&&(o.preventDefault(),this.update())}_handleTouchStartRotate(o){if(this._pointers.length===1)this._rotateStart.set(o.pageX,o.pageY);else{const c=this._getSecondPointerPosition(o),u=.5*(o.pageX+c.x),l=.5*(o.pageY+c.y);this._rotateStart.set(u,l)}}_handleTouchStartPan(o){if(this._pointers.length===1)this._panStart.set(o.pageX,o.pageY);else{const c=this._getSecondPointerPosition(o),u=.5*(o.pageX+c.x),l=.5*(o.pageY+c.y);this._panStart.set(u,l)}}_handleTouchStartDolly(o){const c=this._getSecondPointerPosition(o),u=o.pageX-c.x,l=o.pageY-c.y,d=Math.sqrt(u*u+l*l);this._dollyStart.set(0,d)}_handleTouchStartDollyPan(o){this.enableZoom&&this._handleTouchStartDolly(o),this.enablePan&&this._handleTouchStartPan(o)}_handleTouchStartDollyRotate(o){this.enableZoom&&this._handleTouchStartDolly(o),this.enableRotate&&this._handleTouchStartRotate(o)}_handleTouchMoveRotate(o){if(this._pointers.length==1)this._rotateEnd.set(o.pageX,o.pageY);else{const u=this._getSecondPointerPosition(o),l=.5*(o.pageX+u.x),d=.5*(o.pageY+u.y);this._rotateEnd.set(l,d)}this._rotateDelta.subVectors(this._rotateEnd,this._rotateStart).multiplyScalar(this.rotateSpeed);const c=this.domElement;this._rotateLeft(Ze*this._rotateDelta.x/c.clientHeight),this._rotateUp(Ze*this._rotateDelta.y/c.clientHeight),this._rotateStart.copy(this._rotateEnd)}_handleTouchMovePan(o){if(this._pointers.length===1)this._panEnd.set(o.pageX,o.pageY);else{const c=this._getSecondPointerPosition(o),u=.5*(o.pageX+c.x),l=.5*(o.pageY+c.y);this._panEnd.set(u,l)}this._panDelta.subVectors(this._panEnd,this._panStart).multiplyScalar(this.panSpeed),this._pan(this._panDelta.x,this._panDelta.y),this._panStart.copy(this._panEnd)}_handleTouchMoveDolly(o){const c=this._getSecondPointerPosition(o),u=o.pageX-c.x,l=o.pageY-c.y,d=Math.sqrt(u*u+l*l);this._dollyEnd.set(0,d),this._dollyDelta.set(0,Math.pow(this._dollyEnd.y/this._dollyStart.y,this.zoomSpeed)),this._dollyOut(this._dollyDelta.y),this._dollyStart.copy(this._dollyEnd);const v=(o.pageX+c.x)*.5,p=(o.pageY+c.y)*.5;this._updateZoomParameters(v,p)}_handleTouchMoveDollyPan(o){this.enableZoom&&this._handleTouchMoveDolly(o),this.enablePan&&this._handleTouchMovePan(o)}_handleTouchMoveDollyRotate(o){this.enableZoom&&this._handleTouchMoveDolly(o),this.enableRotate&&this._handleTouchMoveRotate(o)}_addPointer(o){this._pointers.push(o.pointerId)}_removePointer(o){delete this._pointerPositions[o.pointerId];for(let c=0;c<this._pointers.length;c++)if(this._pointers[c]==o.pointerId){this._pointers.splice(c,1);return}}_isTrackingPointer(o){for(let c=0;c<this._pointers.length;c++)if(this._pointers[c]==o.pointerId)return!0;return!1}_trackPointer(o){let c=this._pointerPositions[o.pointerId];c===void 0&&(c=new i.Vector2,this._pointerPositions[o.pointerId]=c),c.set(o.pageX,o.pageY)}_getSecondPointerPosition(o){const c=o.pointerId===this._pointers[0]?this._pointers[1]:this._pointers[0];return this._pointerPositions[c]}_customWheelEvent(o){const c=o.deltaMode,u={clientX:o.clientX,clientY:o.clientY,deltaY:o.deltaY};switch(c){case 1:u.deltaY*=16;break;case 2:u.deltaY*=100;break}return o.ctrlKey&&!this._controlActive&&(u.deltaY*=10),u}}function $n(V){this.enabled!==!1&&(this._pointers.length===0&&(this.domElement.setPointerCapture(V.pointerId),this.domElement.addEventListener("pointermove",this._onPointerMove),this.domElement.addEventListener("pointerup",this._onPointerUp)),!this._isTrackingPointer(V)&&(this._addPointer(V),V.pointerType==="touch"?this._onTouchStart(V):this._onMouseDown(V)))}function Yn(V){this.enabled!==!1&&(V.pointerType==="touch"?this._onTouchMove(V):this._onMouseMove(V))}function Wn(V){switch(this._removePointer(V),this._pointers.length){case 0:this.domElement.releasePointerCapture(V.pointerId),this.domElement.removeEventListener("pointermove",this._onPointerMove),this.domElement.removeEventListener("pointerup",this._onPointerUp),this.dispatchEvent(gn),this.state=Te.NONE;break;case 1:const o=this._pointers[0],c=this._pointerPositions[o];this._onTouchStart({pointerId:o,pageX:c.x,pageY:c.y});break}}function Kn(V){let o;switch(V.button){case 0:o=this.mouseButtons.LEFT;break;case 1:o=this.mouseButtons.MIDDLE;break;case 2:o=this.mouseButtons.RIGHT;break;default:o=-1}switch(o){case i.MOUSE.DOLLY:if(this.enableZoom===!1)return;this._handleMouseDownDolly(V),this.state=Te.DOLLY;break;case i.MOUSE.ROTATE:if(V.ctrlKey||V.metaKey||V.shiftKey){if(this.enablePan===!1)return;this._handleMouseDownPan(V),this.state=Te.PAN}else{if(this.enableRotate===!1)return;this._handleMouseDownRotate(V),this.state=Te.ROTATE}break;case i.MOUSE.PAN:if(V.ctrlKey||V.metaKey||V.shiftKey){if(this.enableRotate===!1)return;this._handleMouseDownRotate(V),this.state=Te.ROTATE}else{if(this.enablePan===!1)return;this._handleMouseDownPan(V),this.state=Te.PAN}break;default:this.state=Te.NONE}this.state!==Te.NONE&&this.dispatchEvent(Ht)}function Zn(V){switch(this.state){case Te.ROTATE:if(this.enableRotate===!1)return;this._handleMouseMoveRotate(V);break;case Te.DOLLY:if(this.enableZoom===!1)return;this._handleMouseMoveDolly(V);break;case Te.PAN:if(this.enablePan===!1)return;this._handleMouseMovePan(V);break}}function Jn(V){this.enabled===!1||this.enableZoom===!1||this.state!==Te.NONE||(V.preventDefault(),this.dispatchEvent(Ht),this._handleMouseWheel(this._customWheelEvent(V)),this.dispatchEvent(gn))}function Xn(V){this.enabled!==!1&&this._handleKeyDown(V)}function Qn(V){switch(this._trackPointer(V),this._pointers.length){case 1:switch(this.touches.ONE){case i.TOUCH.ROTATE:if(this.enableRotate===!1)return;this._handleTouchStartRotate(V),this.state=Te.TOUCH_ROTATE;break;case i.TOUCH.PAN:if(this.enablePan===!1)return;this._handleTouchStartPan(V),this.state=Te.TOUCH_PAN;break;default:this.state=Te.NONE}break;case 2:switch(this.touches.TWO){case i.TOUCH.DOLLY_PAN:if(this.enableZoom===!1&&this.enablePan===!1)return;this._handleTouchStartDollyPan(V),this.state=Te.TOUCH_DOLLY_PAN;break;case i.TOUCH.DOLLY_ROTATE:if(this.enableZoom===!1&&this.enableRotate===!1)return;this._handleTouchStartDollyRotate(V),this.state=Te.TOUCH_DOLLY_ROTATE;break;default:this.state=Te.NONE}break;default:this.state=Te.NONE}this.state!==Te.NONE&&this.dispatchEvent(Ht)}function eo(V){switch(this._trackPointer(V),this.state){case Te.TOUCH_ROTATE:if(this.enableRotate===!1)return;this._handleTouchMoveRotate(V),this.update();break;case Te.TOUCH_PAN:if(this.enablePan===!1)return;this._handleTouchMovePan(V),this.update();break;case Te.TOUCH_DOLLY_PAN:if(this.enableZoom===!1&&this.enablePan===!1)return;this._handleTouchMoveDollyPan(V),this.update();break;case Te.TOUCH_DOLLY_ROTATE:if(this.enableZoom===!1&&this.enableRotate===!1)return;this._handleTouchMoveDollyRotate(V),this.update();break;default:this.state=Te.NONE}}function to(V){this.enabled!==!1&&V.preventDefault()}function no(V){V.key==="Control"&&(this._controlActive=!0,this.domElement.getRootNode().addEventListener("keyup",this._interceptControlUp,{passive:!0,capture:!0}))}function oo(V){V.key==="Control"&&(this._controlActive=!1,this.domElement.getRootNode().removeEventListener("keyup",this._interceptControlUp,{passive:!0,capture:!0}))}function so(V){let o=null,c=null,u=null,l=null,d=null,v=null;const p=e.ref([]),_=e.ref(new i.Vector3),k=e.ref(new i.Vector3),P=()=>{if(!V.value)return;o=new i.Scene,o.background=new i.Color(15790320);const T=V.value;c=new i.PerspectiveCamera(75,T.clientWidth/T.clientHeight,.1,1e4),u=new i.WebGLRenderer({antialias:!0,alpha:!0}),u.setSize(T.clientWidth,T.clientHeight),u.localClippingEnabled=!0,u.shadowMap.enabled=!0,u.shadowMap.type=i.PCFSoftShadowMap,u.toneMapping=i.ACESFilmicToneMapping,u.toneMappingExposure=1,u.outputColorSpace=i.SRGBColorSpace,T.appendChild(u.domElement),l=new qn(c,u.domElement),l.enableDamping=!0,l.dampingFactor=.05,d=new i.Xe(c,u,{container:T,type:"cube",placement:"bottom-left",offset:{left:350,bottom:22},background:{color:"#D1D1D1"}}),d.attachControls(l),F(),j()},F=()=>{const T=new i.AmbientLight(4210752,.6);o.add(T);const x=new i.DirectionalLight(16777215,2);x.position.set(10,10,8),x.castShadow=!0,x.shadow.mapSize.width=2048,x.shadow.mapSize.height=2048,x.shadow.camera.near=.5,x.shadow.camera.far=50,o.add(x);const y=new i.DirectionalLight(16777215,.8);y.position.set(-8,-8,6),o.add(y);const B=new i.DirectionalLight(16777215,.6);B.position.set(0,-15,2),o.add(B);const N=new i.HemisphereLight(16777215,4473924,.8);o.add(N);const S=new i.PointLight(16777215,1,50);S.position.set(15,15,15),o.add(S);const W=new i.PointLight(16777215,.5,50);W.position.set(-15,-15,15),o.add(W)},j=()=>{v=requestAnimationFrame(j),l&&l.update(),u&&o&&c&&u.render(o,c),d&&d.render()},b=T=>{["map","normalMap","bumpMap","roughnessMap","metalnessMap","emissiveMap","specularMap","envMap","lightMap","aoMap","displacementMap"].forEach(y=>{T[y]&&T[y].dispose&&T[y].dispose()}),T.dispose&&T.dispose()},h=T=>{T.traverse(x=>{x.geometry&&x.geometry.dispose(),x.material&&(Array.isArray(x.material)?x.material.forEach(y=>{b(y)}):b(x.material))})};return{currentModels:p,initialCameraPosition:_,initialTargetPosition:k,initThreeJS:P,handleResize:()=>{if(!V.value||!c||!u||!d)return;const T=V.value,x=T.clientWidth,y=T.clientHeight;c.aspect=x/y,c.updateProjectionMatrix(),u.setSize(x,y),d.update()},fitCameraToAllModels:()=>{if(!c||!l||p.value.length===0)return;const T=new i.Box3;p.value.forEach(O=>{T.expandByObject(O)});const x=T.getSize(new i.Vector3),y=T.getCenter(new i.Vector3),N=Math.max(x.x,x.y,x.z)*.8,S=new i.Vector3(y.x+N,y.y+N,y.z+N),W=y.clone();c.position.copy(S),c.lookAt(W),l.target.copy(W),l.update(),_.value.copy(S),k.value.copy(W)},getThreeJSObjects:()=>({scene:o,camera:c,renderer:u,controls:l,gizmo:d}),clearAllModels:()=>{if(!o)return;p.value.forEach(x=>{o.remove(x),h(x)});const T=[];o.children.forEach(x=>{!x.isLight&&!x.isCamera&&T.push(x)}),T.forEach(x=>{o.remove(x),h(x)}),p.value=[]},cleanup:()=>{v&&cancelAnimationFrame(v),u&&u.dispose(),l&&l.dispose(),d&&d.dispose()}}}function io(V,o){const c=e.ref(!1);let u=null,l=12700,d=new i.Vector3,v=new i.Vector3,p=new i.Vector3,_=0,k=null;const P=m=>m<.5?4*m*m*m:1-Math.pow(-2*m+2,3)/2,F=m=>{const w=new i.Vector3,f=_*1.2,E=new i.Vector3(p.x+f,p.y,p.z),T=new i.Vector3(p.x,p.y+f,p.z),x=new i.Vector3(p.x,p.y-f,p.z);if(m<=.567){const B=m/.567*Math.PI*2;w.x=p.x+Math.cos(B)*f,w.z=p.z+Math.sin(B)*f,w.y=p.y}else if(m<=.724){const y=(m-.567)/.157,B=P(y);w.lerpVectors(E,T,B)}else if(m<=.881){const y=(m-.724)/.157,N=P(y)*Math.PI;w.x=p.x+Math.sin(N)*f,w.y=p.y+Math.cos(N)*f,w.z=p.z}else{const y=(m-.881)/.119,B=P(y);w.lerpVectors(x,d,B)}return w},j=()=>{const{camera:m,controls:w}=V();if(!m||!w)return;u||(u=Date.now());const f=Date.now()-u,E=Math.min(f/l,1);if(E>=1){h();return}const T=F(E);m.position.copy(T),m.lookAt(p),w.target.copy(p),k=requestAnimationFrame(j)},b=()=>{if(o.value.length===0)return;const{camera:m,controls:w}=V();if(!m||!w)return;d.copy(m.position),v.copy(w.target);const f=new i.Box3;o.value.forEach(S=>{f.expandByObject(S)});const E=f.getSize(new i.Vector3);p=f.getCenter(new i.Vector3),_=Math.max(E.x,E.y,E.z)*1.2;const T=new i.Vector3(p.x+_*1.2,p.y,p.z);w.enabled=!1;const x=m.position.clone(),y=1e3,B=Date.now(),N=()=>{const S=Date.now()-B,W=Math.min(S/y,1),O=P(W);m.position.lerpVectors(x,T,O),m.lookAt(p),w.target.copy(p),W<1?requestAnimationFrame(N):(c.value=!0,u=null,j())};N()},h=()=>{c.value=!1,u=null,k&&(cancelAnimationFrame(k),k=null);const{controls:m}=V();m&&(m.enabled=!0,m.target.copy(v))};return{isAnimating:c,toggleAnimation:()=>{if(c.value){c.value=!1,u=null,k&&(cancelAnimationFrame(k),k=null);const{camera:m,controls:w}=V();if(!m||!w)return;w.enabled=!0;const f=m.position.clone(),E=w.target.clone(),T=1500,x=Date.now(),y=()=>{const B=Date.now()-x,N=Math.min(B/T,1),S=P(N);m.position.lerpVectors(f,d,S),w.target.lerpVectors(E,v,S),N<1&&requestAnimationFrame(y)};y()}else b()},startAnimation:b,stopAnimation:h}}function ao(V,o){const c=e.ref(!1),u=e.ref("none");let l=[],d=[],v=new i.Box3,p=new i.Vector3;const _=()=>{l=[new i.Plane(new i.Vector3(1,0,0),0),new i.Plane(new i.Vector3(0,1,0),0),new i.Plane(new i.Vector3(0,0,1),0)]},k=()=>{v.makeEmpty(),o.value.forEach(A=>{v.expandByObject(A)}),p=v.getCenter(new i.Vector3)},P=A=>{const m=v.getSize(new i.Vector3);let w,f,E;A==="x"?(w=new i.PlaneGeometry(m.z*1.2,m.y*1.2),f=new i.Vector3(p.x,p.y,p.z),E=new i.Euler(0,Math.PI/2,0)):A==="y"?(w=new i.PlaneGeometry(m.x*1.2,m.z*1.2),f=new i.Vector3(p.x,p.y,p.z),E=new i.Euler(Math.PI/2,0,0)):A==="z"&&(w=new i.PlaneGeometry(m.x*1.2,m.y*1.2),f=new i.Vector3(p.x,p.y,p.z),E=new i.Euler(0,0,0));const T=new i.MeshPhongMaterial({color:8900331,transparent:!0,opacity:.3,side:i.DoubleSide,depthWrite:!1}),x=new i.Mesh(w,T);return x.position.copy(f),x.rotation.copy(E),x},F=()=>{if(j(),b(),u.value==="none")return;k();let A=null;if(u.value==="x"?(l[0].constant=-p.x,A=l[0]):u.value==="y"?(l[1].constant=-p.y,A=l[1]):u.value==="z"&&(l[2].constant=-p.z,A=l[2]),A){o.value.forEach(w=>{w.traverse(f=>{f.isMesh&&f.material&&(Array.isArray(f.material)?f.material.forEach(E=>{E.clippingPlanes=[A]}):f.material.clippingPlanes=[A])})});const{scene:m}=V();if(m){const w=P(u.value);m.add(w),d.push(w)}}},j=()=>{o.value.forEach(A=>{A.traverse(m=>{m.isMesh&&m.material&&(Array.isArray(m.material)?m.material.forEach(w=>{w.clippingPlanes=[]}):m.material.clippingPlanes=[])})})},b=()=>{const{scene:A}=V();A&&d.forEach(m=>{A.remove(m),m.geometry.dispose(),m.material.dispose()}),d=[]};return{isClipping:c,activeClippingAxis:u,toggleClipping:()=>{c.value=!c.value,c.value?(_(),o.value.length>0&&k()):(u.value="none",j(),b())},updateClippingPlanes:F,clearClippingPlanes:j,clearClippingMeshes:b}}const ro=/^[og]\s*(.+)?/,lo=/^mtllib /,co=/^usemtl /,uo=/^usemap /,rn=/\s+/,ln=new i.Vector3,It=new i.Vector3,cn=new i.Vector3,dn=new i.Vector3,et=new i.Vector3,Pt=new i.Color;function ho(){const V={objects:[],object:{},vertices:[],normals:[],colors:[],uvs:[],materials:{},materialLibraries:[],startObject:function(o,c){if(this.object&&this.object.fromDeclaration===!1){this.object.name=o,this.object.fromDeclaration=c!==!1;return}const u=this.object&&typeof this.object.currentMaterial=="function"?this.object.currentMaterial():void 0;if(this.object&&typeof this.object._finalize=="function"&&this.object._finalize(!0),this.object={name:o||"",fromDeclaration:c!==!1,geometry:{vertices:[],normals:[],colors:[],uvs:[],hasUVIndices:!1},materials:[],smooth:!0,startMaterial:function(l,d){const v=this._finalize(!1);v&&(v.inherited||v.groupCount<=0)&&this.materials.splice(v.index,1);const p={index:this.materials.length,name:l||"",mtllib:Array.isArray(d)&&d.length>0?d[d.length-1]:"",smooth:v!==void 0?v.smooth:this.smooth,groupStart:v!==void 0?v.groupEnd:0,groupEnd:-1,groupCount:-1,inherited:!1,clone:function(_){const k={index:typeof _=="number"?_:this.index,name:this.name,mtllib:this.mtllib,smooth:this.smooth,groupStart:0,groupEnd:-1,groupCount:-1,inherited:!1};return k.clone=this.clone.bind(k),k}};return this.materials.push(p),p},currentMaterial:function(){if(this.materials.length>0)return this.materials[this.materials.length-1]},_finalize:function(l){const d=this.currentMaterial();if(d&&d.groupEnd===-1&&(d.groupEnd=this.geometry.vertices.length/3,d.groupCount=d.groupEnd-d.groupStart,d.inherited=!1),l&&this.materials.length>1)for(let v=this.materials.length-1;v>=0;v--)this.materials[v].groupCount<=0&&this.materials.splice(v,1);return l&&this.materials.length===0&&this.materials.push({name:"",smooth:this.smooth}),d}},u&&u.name&&typeof u.clone=="function"){const l=u.clone(0);l.inherited=!0,this.object.materials.push(l)}this.objects.push(this.object)},finalize:function(){this.object&&typeof this.object._finalize=="function"&&this.object._finalize(!0)},parseVertexIndex:function(o,c){const u=parseInt(o,10);return(u>=0?u-1:u+c/3)*3},parseNormalIndex:function(o,c){const u=parseInt(o,10);return(u>=0?u-1:u+c/3)*3},parseUVIndex:function(o,c){const u=parseInt(o,10);return(u>=0?u-1:u+c/2)*2},addVertex:function(o,c,u){const l=this.vertices,d=this.object.geometry.vertices;d.push(l[o+0],l[o+1],l[o+2]),d.push(l[c+0],l[c+1],l[c+2]),d.push(l[u+0],l[u+1],l[u+2])},addVertexPoint:function(o){const c=this.vertices;this.object.geometry.vertices.push(c[o+0],c[o+1],c[o+2])},addVertexLine:function(o){const c=this.vertices;this.object.geometry.vertices.push(c[o+0],c[o+1],c[o+2])},addNormal:function(o,c,u){const l=this.normals,d=this.object.geometry.normals;d.push(l[o+0],l[o+1],l[o+2]),d.push(l[c+0],l[c+1],l[c+2]),d.push(l[u+0],l[u+1],l[u+2])},addFaceNormal:function(o,c,u){const l=this.vertices,d=this.object.geometry.normals;ln.fromArray(l,o),It.fromArray(l,c),cn.fromArray(l,u),et.subVectors(cn,It),dn.subVectors(ln,It),et.cross(dn),et.normalize(),d.push(et.x,et.y,et.z),d.push(et.x,et.y,et.z),d.push(et.x,et.y,et.z)},addColor:function(o,c,u){const l=this.colors,d=this.object.geometry.colors;l[o]!==void 0&&d.push(l[o+0],l[o+1],l[o+2]),l[c]!==void 0&&d.push(l[c+0],l[c+1],l[c+2]),l[u]!==void 0&&d.push(l[u+0],l[u+1],l[u+2])},addUV:function(o,c,u){const l=this.uvs,d=this.object.geometry.uvs;d.push(l[o+0],l[o+1]),d.push(l[c+0],l[c+1]),d.push(l[u+0],l[u+1])},addDefaultUV:function(){const o=this.object.geometry.uvs;o.push(0,0),o.push(0,0),o.push(0,0)},addUVLine:function(o){const c=this.uvs;this.object.geometry.uvs.push(c[o+0],c[o+1])},addFace:function(o,c,u,l,d,v,p,_,k){const P=this.vertices.length;let F=this.parseVertexIndex(o,P),j=this.parseVertexIndex(c,P),b=this.parseVertexIndex(u,P);if(this.addVertex(F,j,b),this.addColor(F,j,b),p!==void 0&&p!==""){const h=this.normals.length;F=this.parseNormalIndex(p,h),j=this.parseNormalIndex(_,h),b=this.parseNormalIndex(k,h),this.addNormal(F,j,b)}else this.addFaceNormal(F,j,b);if(l!==void 0&&l!==""){const h=this.uvs.length;F=this.parseUVIndex(l,h),j=this.parseUVIndex(d,h),b=this.parseUVIndex(v,h),this.addUV(F,j,b),this.object.geometry.hasUVIndices=!0}else this.addDefaultUV()},addPointGeometry:function(o){this.object.geometry.type="Points";const c=this.vertices.length;for(let u=0,l=o.length;u<l;u++){const d=this.parseVertexIndex(o[u],c);this.addVertexPoint(d),this.addColor(d)}},addLineGeometry:function(o,c){this.object.geometry.type="Line";const u=this.vertices.length,l=this.uvs.length;for(let d=0,v=o.length;d<v;d++)this.addVertexLine(this.parseVertexIndex(o[d],u));for(let d=0,v=c.length;d<v;d++)this.addUVLine(this.parseUVIndex(c[d],l))}};return V.startObject("",!1),V}class jt extends i.Loader{constructor(o){super(o),this.materials=null}load(o,c,u,l){const d=this,v=new i.FileLoader(this.manager);v.setPath(this.path),v.setRequestHeader(this.requestHeader),v.setWithCredentials(this.withCredentials),v.load(o,function(p){try{c(d.parse(p))}catch(_){l?l(_):console.error(_),d.manager.itemError(o)}},u,l)}setMaterials(o){return this.materials=o,this}parse(o){const c=new ho;o.indexOf(`\r
|
|
2
2
|
`)!==-1&&(o=o.replace(/\r\n/g,`
|
|
3
3
|
`)),o.indexOf(`\\
|
|
4
4
|
`)!==-1&&(o=o.replace(/\\\n/g,""));const u=o.split(`
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ref as H, resolveComponent as U, createBlock as N, openBlock as m, defineComponent as Ne, onMounted as We, withCtx as O, createVNode as re, createElementVNode as ce, createElementBlock as I, Fragment as ee, renderList as te, createTextVNode as Be, toDisplayString as we, watch as De, renderSlot as ne, createCommentVNode as J, resolveDynamicComponent as ht, createSlots as Re, mergeProps as pt, normalizeProps as G2, guardReactiveProps as W2, nextTick as Je, normalizeStyle as fe, computed as ft, unref as x2, h as a2, reactive as S2, onBeforeUnmount as Y2, toRefs as q2, withDirectives as i2, vShow as l2, normalizeClass as X2 } from "vue";
|
|
2
2
|
import { S as r2 } from "./index-BHtNKL1L.js";
|
|
3
3
|
import { _ as Me } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
|
-
import { c as _e } from "./cloneDeep-
|
|
5
|
-
import { E as D2, g as Jt, u as K2, s as J2, a as Z2 } from "./menu-
|
|
6
|
-
import { _ as Q2 } from "./index.vue_vue_type_script_setup_true_lang-
|
|
7
|
-
import { c as e0 } from "./index-
|
|
4
|
+
import { c as _e } from "./cloneDeep-B_uQ8HtY.js";
|
|
5
|
+
import { E as D2, g as Jt, u as K2, s as J2, a as Z2 } from "./menu-BMXT4_22.js";
|
|
6
|
+
import { _ as Q2 } from "./index.vue_vue_type_script_setup_true_lang-aX4ZDLmw.js";
|
|
7
|
+
import { c as e0 } from "./index-AE5edkX5.js";
|
|
8
8
|
function t0(o) {
|
|
9
9
|
return o && o.__esModule && Object.prototype.hasOwnProperty.call(o, "default") ? o.default : o;
|
|
10
10
|
}
|