ss-component-new 1.2.28 → 1.2.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (105) hide show
  1. package/dist/{MTLLoader-Cqv49Ps8.cjs → MTLLoader-Btl6jtTT.cjs} +1 -1
  2. package/dist/{MTLLoader-BreJsr54.js → MTLLoader-DaS4oK2-.js} +1 -1
  3. package/dist/{OrbitControls-C956u7BP.cjs → OrbitControls-CcAsTKCV.cjs} +1 -1
  4. package/dist/{OrbitControls-BCu-cP7k.js → OrbitControls-DgQjdt42.js} +1 -1
  5. package/dist/{animationData-C3-BiUgV.cjs → animationData-CLz_pFa4.cjs} +1 -1
  6. package/dist/{animationData-CMjNjOqc.js → animationData-DU7c8LKS.js} +3 -3
  7. package/dist/{array-BGIM4b6g.js → array-DflozZ1A.js} +1 -1
  8. package/dist/{array-0u9Sf3UC.cjs → array-XlxGBHUo.cjs} +1 -1
  9. package/dist/config.js +1 -0
  10. package/dist/{dataUtil-D9l7-XhR.js → dataUtil-DHVz_Gv0.js} +1 -1
  11. package/dist/{dataUtil-BFjWNDM1.cjs → dataUtil-DTrXZ9vY.cjs} +1 -1
  12. package/dist/{fileUtil-D7XVXEhb.js → fileUtil-CpaC-lNY.js} +1 -1
  13. package/dist/{fileUtil-BFtJHTM0.cjs → fileUtil-DxupWpPS.cjs} +1 -1
  14. package/dist/{iconfont-BDfcbq2v.cjs → iconfont-CE4P8Jsp.cjs} +1 -1
  15. package/dist/{iconfont-B9Cj3DQM.js → iconfont-Du0xZzV7.js} +2 -2
  16. package/dist/index-6n-ju54O.cjs +1 -0
  17. package/dist/{index-D5Dtcn-_.js → index-B-50SHak.js} +3 -3
  18. package/dist/{index-Boazv8yC.js → index-B-ldbKny.js} +1 -1
  19. package/dist/{index-gXbhagnF.js → index-B-tlh5kE.js} +2 -2
  20. package/dist/{index-Cd9j5j41.cjs → index-B3DrN_P-.cjs} +1 -1
  21. package/dist/{index-DMyPjpxO.cjs → index-B5FSXqHm.cjs} +1 -1
  22. package/dist/{index-Rr9ZBYig.js → index-BAxaq2y7.js} +1 -1
  23. package/dist/{index-DHOcRi3S.js → index-BDOGaTwD.js} +5 -5
  24. package/dist/{index-mpoVA-DC.cjs → index-BOP__94H.cjs} +1 -1
  25. package/dist/{index-C5UpEVah.js → index-BRRZuuEl.js} +2 -2
  26. package/dist/{index-3QB55tXZ.js → index-BY0odixw.js} +2 -2
  27. package/dist/{index-Cwh5m4lg.cjs → index-BcQ40Tes.cjs} +1 -1
  28. package/dist/{index-zZ9bfGNx.js → index-BekLYZRQ.js} +1 -1
  29. package/dist/{index-C_cWjavY.cjs → index-BfHU9Svo.cjs} +1 -1
  30. package/dist/{index-DE-uHAMH.cjs → index-Bqi3sJC7.cjs} +1 -1
  31. package/dist/{index-wQJN1jpI.js → index-BwdapKZb.js} +686 -686
  32. package/dist/{index-DqR3IwgZ.js → index-BzBkXwTh.js} +11 -11
  33. package/dist/{index-DsCD1neC.js → index-C1mFijwB.js} +1 -1
  34. package/dist/{index-B9TlIok8.cjs → index-C7HVXP10.cjs} +1 -1
  35. package/dist/{index-BWxbWhC9.cjs → index-C7HhZZ5E.cjs} +1 -1
  36. package/dist/{index-uIVtG4RY.cjs → index-CFCa1xzq.cjs} +1 -1
  37. package/dist/{index-B33wtiif.cjs → index-CJHddCMi.cjs} +1 -1
  38. package/dist/{index-BccOOMaP.cjs → index-CLxjU9d5.cjs} +1 -1
  39. package/dist/{index-CKY0sj_X.js → index-CQT5dUkY.js} +2 -2
  40. package/dist/{index-CC9RkSBT.cjs → index-CU1BmVAB.cjs} +1 -1
  41. package/dist/{index-DiTYB-a4.js → index-CY01t_AB.js} +3 -3
  42. package/dist/{index-CP7b7BrB.cjs → index-Cb4pfE6J.cjs} +1 -1
  43. package/dist/index-Cg506ve2.cjs +1 -0
  44. package/dist/{index-Sa2hQZ0h.js → index-Cjg3XFfr.js} +2 -2
  45. package/dist/{index-zLkhy4JK.cjs → index-CkGrtePb.cjs} +1 -1
  46. package/dist/{index-BqRVuEsE.js → index-CpbXQJ69.js} +5 -5
  47. package/dist/{index-Dx2X9pR1.js → index-CqOtFvZa.js} +2 -2
  48. package/dist/{index-C-8LROmP.js → index-Crxd7-b7.js} +2 -2
  49. package/dist/{index-CMwwUi6o.js → index-Cu8QKH00.js} +5 -5
  50. package/dist/{index-C1lZkQG-.js → index-D0_uI-0k.js} +8 -8
  51. package/dist/{index-DVqfroe6.cjs → index-D58EyLez.cjs} +1 -1
  52. package/dist/{index-D0XPyuy4.cjs → index-D6iyHpio.cjs} +1 -1
  53. package/dist/{index-DR7aNxVH.js → index-D9JzfDXH.js} +2 -2
  54. package/dist/{index-D3TgRd-7.cjs → index-DEGcvzNY.cjs} +1 -1
  55. package/dist/{index-TKouySTA.cjs → index-DG3THGbR.cjs} +1 -1
  56. package/dist/{index-OTxJnh9Z.js → index-DKeA3do3.js} +7 -7
  57. package/dist/{index-GGokR_Lx.cjs → index-DcqJF5CQ.cjs} +1 -1
  58. package/dist/{index-C5fTUrKx.js → index-DhP_8QY1.js} +37 -37
  59. package/dist/{index-znR89ub7.cjs → index-DmZZFY-Z.cjs} +1 -1
  60. package/dist/{index-CBFF2bsB.cjs → index-Dr8RTHlQ.cjs} +1 -1
  61. package/dist/{index-BaE0DPgC.js → index-Dw2Y4uH_.js} +1 -1
  62. package/dist/{index-gPnrvvE9.js → index-DztWBQml.js} +5 -5
  63. package/dist/{index-C9_Cxm8G.cjs → index-FTDiaeLm.cjs} +1 -1
  64. package/dist/{index-LcnC2GQ4.cjs → index-GnTS2V_K.cjs} +1 -1
  65. package/dist/{index-B8bpiPXB.js → index-LWBnZlM7.js} +1 -1
  66. package/dist/{index-CK5VdzmO.cjs → index-N4TPHpp3.cjs} +1 -1
  67. package/dist/{index-BZwQB2HO.js → index-j_GTy39J.js} +1 -1
  68. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-TDoJ17os.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CXCyffCH.cjs} +1 -1
  69. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CuWDdCiy.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CknYXUAG.js} +1 -1
  70. package/dist/{index.vue_vue_type_style_index_0_scoped_92477073_lang-BQiH2RRX.js → index.vue_vue_type_style_index_0_scoped_92477073_lang-BjSHFmlk.js} +5 -5
  71. package/dist/{index.vue_vue_type_style_index_0_scoped_92477073_lang-Dqpyi0E8.cjs → index.vue_vue_type_style_index_0_scoped_92477073_lang-DP9-elEo.cjs} +1 -1
  72. package/dist/{index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-PE_6dfIO.js → index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-BW70gvjA.js} +9 -9
  73. package/dist/{index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-D21h7jT_.cjs → index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-DsBgefdP.cjs} +1 -1
  74. package/dist/{index.vue_vue_type_style_index_1_lang-9ANlnWKt.js → index.vue_vue_type_style_index_1_lang-7YyaG-ux.js} +4 -4
  75. package/dist/{index.vue_vue_type_style_index_1_lang-DwvuVXW6.js → index.vue_vue_type_style_index_1_lang-7jdZW6T6.js} +1609 -1604
  76. package/dist/index.vue_vue_type_style_index_1_lang-CEg9OCRk.cjs +32 -0
  77. package/dist/{index.vue_vue_type_style_index_1_lang-D4RvHwPS.cjs → index.vue_vue_type_style_index_1_lang-DR2WbpbS.cjs} +1 -1
  78. package/dist/{main-Mx9r7ydp.cjs → main-BihXvzMI.cjs} +1 -1
  79. package/dist/{main-DpLQlLK2.js → main-DNSqqdPD.js} +4 -4
  80. package/dist/ss-component.cjs +1 -1
  81. package/dist/ss-component.css +1 -1
  82. package/dist/ss-component.js +10 -10
  83. package/dist/ss-component2.cjs +1 -1
  84. package/dist/ss-component2.js +11 -11
  85. package/dist/{threeModel-CZ-qFwwk.js → threeModel-BqOQ47Za.js} +4 -4
  86. package/dist/{threeModel-DTwQnnAO.cjs → threeModel-CtBBRBOK.cjs} +1 -1
  87. package/dist/{threePreview-CUGoEzKf.cjs → threePreview-BHE13BvL.cjs} +1 -1
  88. package/dist/{threePreview-DutKTPWH.js → threePreview-Bd_hs3b5.js} +3 -3
  89. package/dist/{threeSceneView-CzgWYHBw.js → threeSceneView-CcIM0Moj.js} +10 -10
  90. package/dist/{threeSceneView-f1V-z4jr.cjs → threeSceneView-CpUZIDu0.cjs} +1 -1
  91. package/dist/{threeSceneViewForCPMPIP-2sXIw3I1.js → threeSceneViewForCPMPIP-CSLxU6SD.js} +9 -9
  92. package/dist/{threeSceneViewForCPMPIP-CojHDVHC.cjs → threeSceneViewForCPMPIP-CdwlvwVM.cjs} +1 -1
  93. package/dist/{threeTrackPathView-DA4_8jas.js → threeTrackPathView-BWG_40eX.js} +4 -4
  94. package/dist/{threeTrackPathView-BGHiOyJo.cjs → threeTrackPathView-CFubNJOL.cjs} +1 -1
  95. package/dist/{threeViewerHost-D3WDKrIQ.cjs → threeViewerHost-BuBE7hoc.cjs} +1 -1
  96. package/dist/{threeViewerHost-BNObp9oA.js → threeViewerHost-vCZc8klC.js} +3 -3
  97. package/dist/{urdfTree-CWStzmk2.cjs → urdfTree-BiiSGsZg.cjs} +1 -1
  98. package/dist/{urdfTree-CnkPddyT.js → urdfTree-C57hYJRP.js} +1 -1
  99. package/dist/{workpieceTreePanel-DXyb_Wnw.cjs → workpieceTreePanel-CWhD21xq.cjs} +1 -1
  100. package/dist/{workpieceTreePanel-BvhFt3Xw.js → workpieceTreePanel-D8qBDVhq.js} +5 -5
  101. package/package.json +1 -1
  102. package/public/config.js +1 -0
  103. package/dist/index-BgHY8wmn.cjs +0 -1
  104. package/dist/index-DnFxL5wb.cjs +0 -1
  105. package/dist/index.vue_vue_type_style_index_1_lang-CrmWclPR.cjs +0 -32
@@ -1,4 +1,4 @@
1
- "use strict";const o=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-TDoJ17os.cjs");class H extends o.Loader{constructor(t){super(t)}load(t,s,i,e){const r=this,u=new o.FileLoader(this.manager);u.setPath(this.path),u.setResponseType("arraybuffer"),u.setRequestHeader(this.requestHeader),u.setWithCredentials(this.withCredentials),u.load(t,function(h){try{s(r.parse(h))}catch(c){e?e(c):console.error(c),r.manager.itemError(t)}},i,e)}parse(t){function s(n){const a=new DataView(n),l=32/8*3+32/8*3*3+16/8,f=a.getUint32(80,!0);if(80+32/8+f*l===a.byteLength)return!0;const g=[115,111,108,105,100];for(let p=0;p<5;p++)if(i(g,a,p))return!1;return!0}function i(n,a,l){for(let f=0,m=n.length;f<m;f++)if(n[f]!==a.getUint8(l+f))return!1;return!0}function e(n){const a=new DataView(n),l=a.getUint32(80,!0);let f,m,g,p=!1,b,x,w,j,F;for(let v=0;v<70;v++)a.getUint32(v,!1)==1129270351&&a.getUint8(v+4)==82&&a.getUint8(v+5)==61&&(p=!0,b=new Float32Array(l*3*3),x=a.getUint8(v+6)/255,w=a.getUint8(v+7)/255,j=a.getUint8(v+8)/255,F=a.getUint8(v+9)/255);const M=84,d=12*4+2,y=new o.BufferGeometry,A=new Float32Array(l*3*3),V=new Float32Array(l*3*3),S=new o.Color;for(let v=0;v<l;v++){const k=M+v*d,O=a.getFloat32(k,!0),U=a.getFloat32(k+4,!0),P=a.getFloat32(k+8,!0);if(p){const L=a.getUint16(k+48,!0);(L&32768)===0?(f=(L&31)/31,m=(L>>5&31)/31,g=(L>>10&31)/31):(f=x,m=w,g=j)}for(let L=1;L<=3;L++){const R=k+L*12,_=v*3*3+(L-1)*3;A[_]=a.getFloat32(R,!0),A[_+1]=a.getFloat32(R+4,!0),A[_+2]=a.getFloat32(R+8,!0),V[_]=O,V[_+1]=U,V[_+2]=P,p&&(S.setRGB(f,m,g,o.SRGBColorSpace),b[_]=S.r,b[_+1]=S.g,b[_+2]=S.b)}}return y.setAttribute("position",new o.BufferAttribute(A,3)),y.setAttribute("normal",new o.BufferAttribute(V,3)),p&&(y.setAttribute("color",new o.BufferAttribute(b,3)),y.hasColors=!0,y.alpha=F),y}function r(n){const a=new o.BufferGeometry,l=/solid([\s\S]*?)endsolid/g,f=/facet([\s\S]*?)endfacet/g,m=/solid\s(.+)/;let g=0;const p=/[\s]+([+-]?(?:\d*)(?:\.\d*)?(?:[eE][+-]?\d+)?)/.source,b=new RegExp("vertex"+p+p+p,"g"),x=new RegExp("normal"+p+p+p,"g"),w=[],j=[],F=[],M=new o.Vector3;let d,y=0,A=0,V=0;for(;(d=l.exec(n))!==null;){A=V;const S=d[0],v=(d=m.exec(S))!==null?d[1]:"";for(F.push(v);(d=f.exec(S))!==null;){let U=0,P=0;const L=d[0];for(;(d=x.exec(L))!==null;)M.x=parseFloat(d[1]),M.y=parseFloat(d[2]),M.z=parseFloat(d[3]),P++;for(;(d=b.exec(L))!==null;)w.push(parseFloat(d[1]),parseFloat(d[2]),parseFloat(d[3])),j.push(M.x,M.y,M.z),U++,V++;P!==1&&console.error("THREE.STLLoader: Something isn't right with the normal of face number "+g),U!==3&&console.error("THREE.STLLoader: Something isn't right with the vertices of face number "+g),g++}const k=A,O=V-A;a.userData.groupNames=F,a.addGroup(k,O,y),y++}return a.setAttribute("position",new o.Float32BufferAttribute(w,3)),a.setAttribute("normal",new o.Float32BufferAttribute(j,3)),a}function u(n){return typeof n!="string"?new TextDecoder().decode(n):n}function h(n){if(typeof n=="string"){const a=new Uint8Array(n.length);for(let l=0;l<n.length;l++)a[l]=n.charCodeAt(l)&255;return a.buffer||a}else return n}const c=h(t);return s(c)?e(c):r(u(t))}}const N=/^[og]\s*(.+)?/,W=/^mtllib /,q=/^usemtl /,J=/^usemap /,G=/\s+/,T=new o.Vector3,z=new o.Vector3,D=new o.Vector3,E=new o.Vector3,C=new o.Vector3,I=new o.Color;function Z(){const B={objects:[],object:{},vertices:[],normals:[],colors:[],uvs:[],materials:{},materialLibraries:[],startObject:function(t,s){if(this.object&&this.object.fromDeclaration===!1){this.object.name=t,this.object.fromDeclaration=s!==!1;return}const i=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:t||"",fromDeclaration:s!==!1,geometry:{vertices:[],normals:[],colors:[],uvs:[],hasUVIndices:!1},materials:[],smooth:!0,startMaterial:function(e,r){const u=this._finalize(!1);u&&(u.inherited||u.groupCount<=0)&&this.materials.splice(u.index,1);const h={index:this.materials.length,name:e||"",mtllib:Array.isArray(r)&&r.length>0?r[r.length-1]:"",smooth:u!==void 0?u.smooth:this.smooth,groupStart:u!==void 0?u.groupEnd:0,groupEnd:-1,groupCount:-1,inherited:!1,clone:function(c){const n={index:typeof c=="number"?c:this.index,name:this.name,mtllib:this.mtllib,smooth:this.smooth,groupStart:0,groupEnd:-1,groupCount:-1,inherited:!1};return n.clone=this.clone.bind(n),n}};return this.materials.push(h),h},currentMaterial:function(){if(this.materials.length>0)return this.materials[this.materials.length-1]},_finalize:function(e){const r=this.currentMaterial();if(r&&r.groupEnd===-1&&(r.groupEnd=this.geometry.vertices.length/3,r.groupCount=r.groupEnd-r.groupStart,r.inherited=!1),e&&this.materials.length>1)for(let u=this.materials.length-1;u>=0;u--)this.materials[u].groupCount<=0&&this.materials.splice(u,1);return e&&this.materials.length===0&&this.materials.push({name:"",smooth:this.smooth}),r}},i&&i.name&&typeof i.clone=="function"){const e=i.clone(0);e.inherited=!0,this.object.materials.push(e)}this.objects.push(this.object)},finalize:function(){this.object&&typeof this.object._finalize=="function"&&this.object._finalize(!0)},parseVertexIndex:function(t,s){const i=parseInt(t,10);return(i>=0?i-1:i+s/3)*3},parseNormalIndex:function(t,s){const i=parseInt(t,10);return(i>=0?i-1:i+s/3)*3},parseUVIndex:function(t,s){const i=parseInt(t,10);return(i>=0?i-1:i+s/2)*2},addVertex:function(t,s,i){const e=this.vertices,r=this.object.geometry.vertices;r.push(e[t+0],e[t+1],e[t+2]),r.push(e[s+0],e[s+1],e[s+2]),r.push(e[i+0],e[i+1],e[i+2])},addVertexPoint:function(t){const s=this.vertices;this.object.geometry.vertices.push(s[t+0],s[t+1],s[t+2])},addVertexLine:function(t){const s=this.vertices;this.object.geometry.vertices.push(s[t+0],s[t+1],s[t+2])},addNormal:function(t,s,i){const e=this.normals,r=this.object.geometry.normals;r.push(e[t+0],e[t+1],e[t+2]),r.push(e[s+0],e[s+1],e[s+2]),r.push(e[i+0],e[i+1],e[i+2])},addFaceNormal:function(t,s,i){const e=this.vertices,r=this.object.geometry.normals;T.fromArray(e,t),z.fromArray(e,s),D.fromArray(e,i),C.subVectors(D,z),E.subVectors(T,z),C.cross(E),C.normalize(),r.push(C.x,C.y,C.z),r.push(C.x,C.y,C.z),r.push(C.x,C.y,C.z)},addColor:function(t,s,i){const e=this.colors,r=this.object.geometry.colors;e[t]!==void 0&&r.push(e[t+0],e[t+1],e[t+2]),e[s]!==void 0&&r.push(e[s+0],e[s+1],e[s+2]),e[i]!==void 0&&r.push(e[i+0],e[i+1],e[i+2])},addUV:function(t,s,i){const e=this.uvs,r=this.object.geometry.uvs;r.push(e[t+0],e[t+1]),r.push(e[s+0],e[s+1]),r.push(e[i+0],e[i+1])},addDefaultUV:function(){const t=this.object.geometry.uvs;t.push(0,0),t.push(0,0),t.push(0,0)},addUVLine:function(t){const s=this.uvs;this.object.geometry.uvs.push(s[t+0],s[t+1])},addFace:function(t,s,i,e,r,u,h,c,n){const a=this.vertices.length;let l=this.parseVertexIndex(t,a),f=this.parseVertexIndex(s,a),m=this.parseVertexIndex(i,a);if(this.addVertex(l,f,m),this.addColor(l,f,m),h!==void 0&&h!==""){const g=this.normals.length;l=this.parseNormalIndex(h,g),f=this.parseNormalIndex(c,g),m=this.parseNormalIndex(n,g),this.addNormal(l,f,m)}else this.addFaceNormal(l,f,m);if(e!==void 0&&e!==""){const g=this.uvs.length;l=this.parseUVIndex(e,g),f=this.parseUVIndex(r,g),m=this.parseUVIndex(u,g),this.addUV(l,f,m),this.object.geometry.hasUVIndices=!0}else this.addDefaultUV()},addPointGeometry:function(t){this.object.geometry.type="Points";const s=this.vertices.length;for(let i=0,e=t.length;i<e;i++){const r=this.parseVertexIndex(t[i],s);this.addVertexPoint(r),this.addColor(r)}},addLineGeometry:function(t,s){this.object.geometry.type="Line";const i=this.vertices.length,e=this.uvs.length;for(let r=0,u=t.length;r<u;r++)this.addVertexLine(this.parseVertexIndex(t[r],i));for(let r=0,u=s.length;r<u;r++)this.addUVLine(this.parseUVIndex(s[r],e))}};return B.startObject("",!1),B}class X extends o.Loader{constructor(t){super(t),this.materials=null}load(t,s,i,e){const r=this,u=new o.FileLoader(this.manager);u.setPath(this.path),u.setRequestHeader(this.requestHeader),u.setWithCredentials(this.withCredentials),u.load(t,function(h){try{s(r.parse(h))}catch(c){e?e(c):console.error(c),r.manager.itemError(t)}},i,e)}setMaterials(t){return this.materials=t,this}parse(t){const s=new Z;t.indexOf(`\r
1
+ "use strict";const o=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CXCyffCH.cjs");class H extends o.Loader{constructor(t){super(t)}load(t,s,i,e){const r=this,u=new o.FileLoader(this.manager);u.setPath(this.path),u.setResponseType("arraybuffer"),u.setRequestHeader(this.requestHeader),u.setWithCredentials(this.withCredentials),u.load(t,function(h){try{s(r.parse(h))}catch(c){e?e(c):console.error(c),r.manager.itemError(t)}},i,e)}parse(t){function s(n){const a=new DataView(n),l=32/8*3+32/8*3*3+16/8,f=a.getUint32(80,!0);if(80+32/8+f*l===a.byteLength)return!0;const g=[115,111,108,105,100];for(let p=0;p<5;p++)if(i(g,a,p))return!1;return!0}function i(n,a,l){for(let f=0,m=n.length;f<m;f++)if(n[f]!==a.getUint8(l+f))return!1;return!0}function e(n){const a=new DataView(n),l=a.getUint32(80,!0);let f,m,g,p=!1,b,x,w,j,F;for(let v=0;v<70;v++)a.getUint32(v,!1)==1129270351&&a.getUint8(v+4)==82&&a.getUint8(v+5)==61&&(p=!0,b=new Float32Array(l*3*3),x=a.getUint8(v+6)/255,w=a.getUint8(v+7)/255,j=a.getUint8(v+8)/255,F=a.getUint8(v+9)/255);const M=84,d=12*4+2,y=new o.BufferGeometry,A=new Float32Array(l*3*3),V=new Float32Array(l*3*3),S=new o.Color;for(let v=0;v<l;v++){const k=M+v*d,O=a.getFloat32(k,!0),U=a.getFloat32(k+4,!0),P=a.getFloat32(k+8,!0);if(p){const L=a.getUint16(k+48,!0);(L&32768)===0?(f=(L&31)/31,m=(L>>5&31)/31,g=(L>>10&31)/31):(f=x,m=w,g=j)}for(let L=1;L<=3;L++){const R=k+L*12,_=v*3*3+(L-1)*3;A[_]=a.getFloat32(R,!0),A[_+1]=a.getFloat32(R+4,!0),A[_+2]=a.getFloat32(R+8,!0),V[_]=O,V[_+1]=U,V[_+2]=P,p&&(S.setRGB(f,m,g,o.SRGBColorSpace),b[_]=S.r,b[_+1]=S.g,b[_+2]=S.b)}}return y.setAttribute("position",new o.BufferAttribute(A,3)),y.setAttribute("normal",new o.BufferAttribute(V,3)),p&&(y.setAttribute("color",new o.BufferAttribute(b,3)),y.hasColors=!0,y.alpha=F),y}function r(n){const a=new o.BufferGeometry,l=/solid([\s\S]*?)endsolid/g,f=/facet([\s\S]*?)endfacet/g,m=/solid\s(.+)/;let g=0;const p=/[\s]+([+-]?(?:\d*)(?:\.\d*)?(?:[eE][+-]?\d+)?)/.source,b=new RegExp("vertex"+p+p+p,"g"),x=new RegExp("normal"+p+p+p,"g"),w=[],j=[],F=[],M=new o.Vector3;let d,y=0,A=0,V=0;for(;(d=l.exec(n))!==null;){A=V;const S=d[0],v=(d=m.exec(S))!==null?d[1]:"";for(F.push(v);(d=f.exec(S))!==null;){let U=0,P=0;const L=d[0];for(;(d=x.exec(L))!==null;)M.x=parseFloat(d[1]),M.y=parseFloat(d[2]),M.z=parseFloat(d[3]),P++;for(;(d=b.exec(L))!==null;)w.push(parseFloat(d[1]),parseFloat(d[2]),parseFloat(d[3])),j.push(M.x,M.y,M.z),U++,V++;P!==1&&console.error("THREE.STLLoader: Something isn't right with the normal of face number "+g),U!==3&&console.error("THREE.STLLoader: Something isn't right with the vertices of face number "+g),g++}const k=A,O=V-A;a.userData.groupNames=F,a.addGroup(k,O,y),y++}return a.setAttribute("position",new o.Float32BufferAttribute(w,3)),a.setAttribute("normal",new o.Float32BufferAttribute(j,3)),a}function u(n){return typeof n!="string"?new TextDecoder().decode(n):n}function h(n){if(typeof n=="string"){const a=new Uint8Array(n.length);for(let l=0;l<n.length;l++)a[l]=n.charCodeAt(l)&255;return a.buffer||a}else return n}const c=h(t);return s(c)?e(c):r(u(t))}}const N=/^[og]\s*(.+)?/,W=/^mtllib /,q=/^usemtl /,J=/^usemap /,G=/\s+/,T=new o.Vector3,z=new o.Vector3,D=new o.Vector3,E=new o.Vector3,C=new o.Vector3,I=new o.Color;function Z(){const B={objects:[],object:{},vertices:[],normals:[],colors:[],uvs:[],materials:{},materialLibraries:[],startObject:function(t,s){if(this.object&&this.object.fromDeclaration===!1){this.object.name=t,this.object.fromDeclaration=s!==!1;return}const i=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:t||"",fromDeclaration:s!==!1,geometry:{vertices:[],normals:[],colors:[],uvs:[],hasUVIndices:!1},materials:[],smooth:!0,startMaterial:function(e,r){const u=this._finalize(!1);u&&(u.inherited||u.groupCount<=0)&&this.materials.splice(u.index,1);const h={index:this.materials.length,name:e||"",mtllib:Array.isArray(r)&&r.length>0?r[r.length-1]:"",smooth:u!==void 0?u.smooth:this.smooth,groupStart:u!==void 0?u.groupEnd:0,groupEnd:-1,groupCount:-1,inherited:!1,clone:function(c){const n={index:typeof c=="number"?c:this.index,name:this.name,mtllib:this.mtllib,smooth:this.smooth,groupStart:0,groupEnd:-1,groupCount:-1,inherited:!1};return n.clone=this.clone.bind(n),n}};return this.materials.push(h),h},currentMaterial:function(){if(this.materials.length>0)return this.materials[this.materials.length-1]},_finalize:function(e){const r=this.currentMaterial();if(r&&r.groupEnd===-1&&(r.groupEnd=this.geometry.vertices.length/3,r.groupCount=r.groupEnd-r.groupStart,r.inherited=!1),e&&this.materials.length>1)for(let u=this.materials.length-1;u>=0;u--)this.materials[u].groupCount<=0&&this.materials.splice(u,1);return e&&this.materials.length===0&&this.materials.push({name:"",smooth:this.smooth}),r}},i&&i.name&&typeof i.clone=="function"){const e=i.clone(0);e.inherited=!0,this.object.materials.push(e)}this.objects.push(this.object)},finalize:function(){this.object&&typeof this.object._finalize=="function"&&this.object._finalize(!0)},parseVertexIndex:function(t,s){const i=parseInt(t,10);return(i>=0?i-1:i+s/3)*3},parseNormalIndex:function(t,s){const i=parseInt(t,10);return(i>=0?i-1:i+s/3)*3},parseUVIndex:function(t,s){const i=parseInt(t,10);return(i>=0?i-1:i+s/2)*2},addVertex:function(t,s,i){const e=this.vertices,r=this.object.geometry.vertices;r.push(e[t+0],e[t+1],e[t+2]),r.push(e[s+0],e[s+1],e[s+2]),r.push(e[i+0],e[i+1],e[i+2])},addVertexPoint:function(t){const s=this.vertices;this.object.geometry.vertices.push(s[t+0],s[t+1],s[t+2])},addVertexLine:function(t){const s=this.vertices;this.object.geometry.vertices.push(s[t+0],s[t+1],s[t+2])},addNormal:function(t,s,i){const e=this.normals,r=this.object.geometry.normals;r.push(e[t+0],e[t+1],e[t+2]),r.push(e[s+0],e[s+1],e[s+2]),r.push(e[i+0],e[i+1],e[i+2])},addFaceNormal:function(t,s,i){const e=this.vertices,r=this.object.geometry.normals;T.fromArray(e,t),z.fromArray(e,s),D.fromArray(e,i),C.subVectors(D,z),E.subVectors(T,z),C.cross(E),C.normalize(),r.push(C.x,C.y,C.z),r.push(C.x,C.y,C.z),r.push(C.x,C.y,C.z)},addColor:function(t,s,i){const e=this.colors,r=this.object.geometry.colors;e[t]!==void 0&&r.push(e[t+0],e[t+1],e[t+2]),e[s]!==void 0&&r.push(e[s+0],e[s+1],e[s+2]),e[i]!==void 0&&r.push(e[i+0],e[i+1],e[i+2])},addUV:function(t,s,i){const e=this.uvs,r=this.object.geometry.uvs;r.push(e[t+0],e[t+1]),r.push(e[s+0],e[s+1]),r.push(e[i+0],e[i+1])},addDefaultUV:function(){const t=this.object.geometry.uvs;t.push(0,0),t.push(0,0),t.push(0,0)},addUVLine:function(t){const s=this.uvs;this.object.geometry.uvs.push(s[t+0],s[t+1])},addFace:function(t,s,i,e,r,u,h,c,n){const a=this.vertices.length;let l=this.parseVertexIndex(t,a),f=this.parseVertexIndex(s,a),m=this.parseVertexIndex(i,a);if(this.addVertex(l,f,m),this.addColor(l,f,m),h!==void 0&&h!==""){const g=this.normals.length;l=this.parseNormalIndex(h,g),f=this.parseNormalIndex(c,g),m=this.parseNormalIndex(n,g),this.addNormal(l,f,m)}else this.addFaceNormal(l,f,m);if(e!==void 0&&e!==""){const g=this.uvs.length;l=this.parseUVIndex(e,g),f=this.parseUVIndex(r,g),m=this.parseUVIndex(u,g),this.addUV(l,f,m),this.object.geometry.hasUVIndices=!0}else this.addDefaultUV()},addPointGeometry:function(t){this.object.geometry.type="Points";const s=this.vertices.length;for(let i=0,e=t.length;i<e;i++){const r=this.parseVertexIndex(t[i],s);this.addVertexPoint(r),this.addColor(r)}},addLineGeometry:function(t,s){this.object.geometry.type="Line";const i=this.vertices.length,e=this.uvs.length;for(let r=0,u=t.length;r<u;r++)this.addVertexLine(this.parseVertexIndex(t[r],i));for(let r=0,u=s.length;r<u;r++)this.addUVLine(this.parseUVIndex(s[r],e))}};return B.startObject("",!1),B}class X extends o.Loader{constructor(t){super(t),this.materials=null}load(t,s,i,e){const r=this,u=new o.FileLoader(this.manager);u.setPath(this.path),u.setRequestHeader(this.requestHeader),u.setWithCredentials(this.withCredentials),u.load(t,function(h){try{s(r.parse(h))}catch(c){e?e(c):console.error(c),r.manager.itemError(t)}},i,e)}setMaterials(t){return this.materials=t,this}parse(t){const s=new Z;t.indexOf(`\r
2
2
  `)!==-1&&(t=t.replace(/\r\n/g,`
3
3
  `)),t.indexOf(`\\
4
4
  `)!==-1&&(t=t.replace(/\\\n/g,""));const i=t.split(`
@@ -1,4 +1,4 @@
1
- import { O as Y, R as Z, w as D, C as P, f as S, a5 as H, V as O, aF as _, u as ie, ai as N, ah as Q, ag as R, o as ne, am as X, ao as W, k as K, Q as oe, aB as ae, ad as le, aA as q, Y as $, b1 as ce, a3 as he } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CuWDdCiy.js";
1
+ import { O as Y, R as Z, w as D, C as P, f as S, a5 as H, V as O, aF as _, u as ie, ai as N, ah as Q, ag as R, o as ne, am as X, ao as W, k as K, Q as oe, aB as ae, ad as le, aA as q, Y as $, b1 as ce, a3 as he } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CknYXUAG.js";
2
2
  class xe extends Y {
3
3
  /**
4
4
  * Constructs a new STL loader.
@@ -1 +1 @@
1
- "use strict";const s=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-TDoJ17os.cjs"),y={type:"change"},m={type:"start"},g={type:"end"},_=new s.Ray,b=new s.Plane,E=Math.cos(70*s.MathUtils.DEG2RAD),h=new s.Vector3,l=2*Math.PI,a={NONE:-1,ROTATE:0,DOLLY:1,PAN:2,TOUCH_ROTATE:3,TOUCH_PAN:4,TOUCH_DOLLY_PAN:5,TOUCH_DOLLY_ROTATE:6},u=1e-6;class P extends s.Controls{constructor(t,e=null){super(t,e),this.state=a.NONE,this.target=new s.Vector3,this.cursor=new s.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:s.MOUSE.ROTATE,MIDDLE:s.MOUSE.DOLLY,RIGHT:s.MOUSE.PAN},this.touches={ONE:s.TOUCH.ROTATE,TWO:s.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 s.Vector3,this._lastQuaternion=new s.Quaternion,this._lastTargetPosition=new s.Vector3,this._quat=new s.Quaternion().setFromUnitVectors(t.up,new s.Vector3(0,1,0)),this._quatInverse=this._quat.clone().invert(),this._spherical=new s.Spherical,this._sphericalDelta=new s.Spherical,this._scale=1,this._panOffset=new s.Vector3,this._rotateStart=new s.Vector2,this._rotateEnd=new s.Vector2,this._rotateDelta=new s.Vector2,this._panStart=new s.Vector2,this._panEnd=new s.Vector2,this._panDelta=new s.Vector2,this._dollyStart=new s.Vector2,this._dollyEnd=new s.Vector2,this._dollyDelta=new s.Vector2,this._dollyDirection=new s.Vector3,this._mouse=new s.Vector2,this._performCursorZoom=!1,this._pointers=[],this._pointerPositions={},this._controlActive=!1,this._onPointerMove=D.bind(this),this._onPointerDown=T.bind(this),this._onPointerUp=M.bind(this),this._onContextMenu=L.bind(this),this._onMouseWheel=w.bind(this),this._onKeyDown=R.bind(this),this._onTouchStart=j.bind(this),this._onTouchMove=A.bind(this),this._onMouseDown=S.bind(this),this._onMouseMove=O.bind(this),this._interceptControlDown=C.bind(this),this._interceptControlUp=x.bind(this),this.domElement!==null&&this.connect(this.domElement),this.update()}connect(t){super.connect(t),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(t){t.addEventListener("keydown",this._onKeyDown),this._domElementKeyEvents=t}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(y),this.update(),this.state=a.NONE}update(t=null){const e=this.object.position;h.copy(e).sub(this.target),h.applyQuaternion(this._quat),this._spherical.setFromVector3(h),this.autoRotate&&this.state===a.NONE&&this._rotateLeft(this._getAutoRotationAngle(t)),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 o=this.minAzimuthAngle,n=this.maxAzimuthAngle;isFinite(o)&&isFinite(n)&&(o<-Math.PI?o+=l:o>Math.PI&&(o-=l),n<-Math.PI?n+=l:n>Math.PI&&(n-=l),o<=n?this._spherical.theta=Math.max(o,Math.min(n,this._spherical.theta)):this._spherical.theta=this._spherical.theta>(o+n)/2?Math.max(o,this._spherical.theta):Math.min(n,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 r=!1;if(this.zoomToCursor&&this._performCursorZoom||this.object.isOrthographicCamera)this._spherical.radius=this._clampDistance(this._spherical.radius);else{const c=this._spherical.radius;this._spherical.radius=this._clampDistance(this._spherical.radius*this._scale),r=c!=this._spherical.radius}if(h.setFromSpherical(this._spherical),h.applyQuaternion(this._quatInverse),e.copy(this.target).add(h),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 c=null;if(this.object.isPerspectiveCamera){const p=h.length();c=this._clampDistance(p*this._scale);const d=p-c;this.object.position.addScaledVector(this._dollyDirection,d),this.object.updateMatrixWorld(),r=!!d}else if(this.object.isOrthographicCamera){const p=new s.Vector3(this._mouse.x,this._mouse.y,0);p.unproject(this.object);const d=this.object.zoom;this.object.zoom=Math.max(this.minZoom,Math.min(this.maxZoom,this.object.zoom/this._scale)),this.object.updateProjectionMatrix(),r=d!==this.object.zoom;const f=new s.Vector3(this._mouse.x,this._mouse.y,0);f.unproject(this.object),this.object.position.sub(f).add(p),this.object.updateMatrixWorld(),c=h.length()}else console.warn("WARNING: OrbitControls.js encountered an unknown camera type - zoom to cursor disabled."),this.zoomToCursor=!1;c!==null&&(this.screenSpacePanning?this.target.set(0,0,-1).transformDirection(this.object.matrix).multiplyScalar(c).add(this.object.position):(_.origin.copy(this.object.position),_.direction.set(0,0,-1).transformDirection(this.object.matrix),Math.abs(this.object.up.dot(_.direction))<E?this.object.lookAt(this.target):(b.setFromNormalAndCoplanarPoint(this.object.up,this.target),_.intersectPlane(b,this.target))))}else if(this.object.isOrthographicCamera){const c=this.object.zoom;this.object.zoom=Math.max(this.minZoom,Math.min(this.maxZoom,this.object.zoom/this._scale)),c!==this.object.zoom&&(this.object.updateProjectionMatrix(),r=!0)}return this._scale=1,this._performCursorZoom=!1,r||this._lastPosition.distanceToSquared(this.object.position)>u||8*(1-this._lastQuaternion.dot(this.object.quaternion))>u||this._lastTargetPosition.distanceToSquared(this.target)>u?(this.dispatchEvent(y),this._lastPosition.copy(this.object.position),this._lastQuaternion.copy(this.object.quaternion),this._lastTargetPosition.copy(this.target),!0):!1}_getAutoRotationAngle(t){return t!==null?l/60*this.autoRotateSpeed*t:l/60/60*this.autoRotateSpeed}_getZoomScale(t){const e=Math.abs(t*.01);return Math.pow(.95,this.zoomSpeed*e)}_rotateLeft(t){this._sphericalDelta.theta-=t}_rotateUp(t){this._sphericalDelta.phi-=t}_panLeft(t,e){h.setFromMatrixColumn(e,0),h.multiplyScalar(-t),this._panOffset.add(h)}_panUp(t,e){this.screenSpacePanning===!0?h.setFromMatrixColumn(e,1):(h.setFromMatrixColumn(e,0),h.crossVectors(this.object.up,h)),h.multiplyScalar(t),this._panOffset.add(h)}_pan(t,e){const o=this.domElement;if(this.object.isPerspectiveCamera){const n=this.object.position;h.copy(n).sub(this.target);let r=h.length();r*=Math.tan(this.object.fov/2*Math.PI/180),this._panLeft(2*t*r/o.clientHeight,this.object.matrix),this._panUp(2*e*r/o.clientHeight,this.object.matrix)}else this.object.isOrthographicCamera?(this._panLeft(t*(this.object.right-this.object.left)/this.object.zoom/o.clientWidth,this.object.matrix),this._panUp(e*(this.object.top-this.object.bottom)/this.object.zoom/o.clientHeight,this.object.matrix)):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - pan disabled."),this.enablePan=!1)}_dollyOut(t){this.object.isPerspectiveCamera||this.object.isOrthographicCamera?this._scale/=t:(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),this.enableZoom=!1)}_dollyIn(t){this.object.isPerspectiveCamera||this.object.isOrthographicCamera?this._scale*=t:(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),this.enableZoom=!1)}_updateZoomParameters(t,e){if(!this.zoomToCursor)return;this._performCursorZoom=!0;const o=this.domElement.getBoundingClientRect(),n=t-o.left,r=e-o.top,c=o.width,p=o.height;this._mouse.x=n/c*2-1,this._mouse.y=-(r/p)*2+1,this._dollyDirection.set(this._mouse.x,this._mouse.y,1).unproject(this.object).sub(this.object.position).normalize()}_clampDistance(t){return Math.max(this.minDistance,Math.min(this.maxDistance,t))}_handleMouseDownRotate(t){this._rotateStart.set(t.clientX,t.clientY)}_handleMouseDownDolly(t){this._updateZoomParameters(t.clientX,t.clientX),this._dollyStart.set(t.clientX,t.clientY)}_handleMouseDownPan(t){this._panStart.set(t.clientX,t.clientY)}_handleMouseMoveRotate(t){this._rotateEnd.set(t.clientX,t.clientY),this._rotateDelta.subVectors(this._rotateEnd,this._rotateStart).multiplyScalar(this.rotateSpeed);const e=this.domElement;this._rotateLeft(l*this._rotateDelta.x/e.clientHeight),this._rotateUp(l*this._rotateDelta.y/e.clientHeight),this._rotateStart.copy(this._rotateEnd),this.update()}_handleMouseMoveDolly(t){this._dollyEnd.set(t.clientX,t.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(t){this._panEnd.set(t.clientX,t.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(t){this._updateZoomParameters(t.clientX,t.clientY),t.deltaY<0?this._dollyIn(this._getZoomScale(t.deltaY)):t.deltaY>0&&this._dollyOut(this._getZoomScale(t.deltaY)),this.update()}_handleKeyDown(t){let e=!1;switch(t.code){case this.keys.UP:t.ctrlKey||t.metaKey||t.shiftKey?this.enableRotate&&this._rotateUp(l*this.keyRotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(0,this.keyPanSpeed),e=!0;break;case this.keys.BOTTOM:t.ctrlKey||t.metaKey||t.shiftKey?this.enableRotate&&this._rotateUp(-l*this.keyRotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(0,-this.keyPanSpeed),e=!0;break;case this.keys.LEFT:t.ctrlKey||t.metaKey||t.shiftKey?this.enableRotate&&this._rotateLeft(l*this.keyRotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(this.keyPanSpeed,0),e=!0;break;case this.keys.RIGHT:t.ctrlKey||t.metaKey||t.shiftKey?this.enableRotate&&this._rotateLeft(-l*this.keyRotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(-this.keyPanSpeed,0),e=!0;break}e&&(t.preventDefault(),this.update())}_handleTouchStartRotate(t){if(this._pointers.length===1)this._rotateStart.set(t.pageX,t.pageY);else{const e=this._getSecondPointerPosition(t),o=.5*(t.pageX+e.x),n=.5*(t.pageY+e.y);this._rotateStart.set(o,n)}}_handleTouchStartPan(t){if(this._pointers.length===1)this._panStart.set(t.pageX,t.pageY);else{const e=this._getSecondPointerPosition(t),o=.5*(t.pageX+e.x),n=.5*(t.pageY+e.y);this._panStart.set(o,n)}}_handleTouchStartDolly(t){const e=this._getSecondPointerPosition(t),o=t.pageX-e.x,n=t.pageY-e.y,r=Math.sqrt(o*o+n*n);this._dollyStart.set(0,r)}_handleTouchStartDollyPan(t){this.enableZoom&&this._handleTouchStartDolly(t),this.enablePan&&this._handleTouchStartPan(t)}_handleTouchStartDollyRotate(t){this.enableZoom&&this._handleTouchStartDolly(t),this.enableRotate&&this._handleTouchStartRotate(t)}_handleTouchMoveRotate(t){if(this._pointers.length==1)this._rotateEnd.set(t.pageX,t.pageY);else{const o=this._getSecondPointerPosition(t),n=.5*(t.pageX+o.x),r=.5*(t.pageY+o.y);this._rotateEnd.set(n,r)}this._rotateDelta.subVectors(this._rotateEnd,this._rotateStart).multiplyScalar(this.rotateSpeed);const e=this.domElement;this._rotateLeft(l*this._rotateDelta.x/e.clientHeight),this._rotateUp(l*this._rotateDelta.y/e.clientHeight),this._rotateStart.copy(this._rotateEnd)}_handleTouchMovePan(t){if(this._pointers.length===1)this._panEnd.set(t.pageX,t.pageY);else{const e=this._getSecondPointerPosition(t),o=.5*(t.pageX+e.x),n=.5*(t.pageY+e.y);this._panEnd.set(o,n)}this._panDelta.subVectors(this._panEnd,this._panStart).multiplyScalar(this.panSpeed),this._pan(this._panDelta.x,this._panDelta.y),this._panStart.copy(this._panEnd)}_handleTouchMoveDolly(t){const e=this._getSecondPointerPosition(t),o=t.pageX-e.x,n=t.pageY-e.y,r=Math.sqrt(o*o+n*n);this._dollyEnd.set(0,r),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 c=(t.pageX+e.x)*.5,p=(t.pageY+e.y)*.5;this._updateZoomParameters(c,p)}_handleTouchMoveDollyPan(t){this.enableZoom&&this._handleTouchMoveDolly(t),this.enablePan&&this._handleTouchMovePan(t)}_handleTouchMoveDollyRotate(t){this.enableZoom&&this._handleTouchMoveDolly(t),this.enableRotate&&this._handleTouchMoveRotate(t)}_addPointer(t){this._pointers.push(t.pointerId)}_removePointer(t){delete this._pointerPositions[t.pointerId];for(let e=0;e<this._pointers.length;e++)if(this._pointers[e]==t.pointerId){this._pointers.splice(e,1);return}}_isTrackingPointer(t){for(let e=0;e<this._pointers.length;e++)if(this._pointers[e]==t.pointerId)return!0;return!1}_trackPointer(t){let e=this._pointerPositions[t.pointerId];e===void 0&&(e=new s.Vector2,this._pointerPositions[t.pointerId]=e),e.set(t.pageX,t.pageY)}_getSecondPointerPosition(t){const e=t.pointerId===this._pointers[0]?this._pointers[1]:this._pointers[0];return this._pointerPositions[e]}_customWheelEvent(t){const e=t.deltaMode,o={clientX:t.clientX,clientY:t.clientY,deltaY:t.deltaY};switch(e){case 1:o.deltaY*=16;break;case 2:o.deltaY*=100;break}return t.ctrlKey&&!this._controlActive&&(o.deltaY*=10),o}}function T(i){this.enabled!==!1&&(this._pointers.length===0&&(this.domElement.setPointerCapture(i.pointerId),this.domElement.addEventListener("pointermove",this._onPointerMove),this.domElement.addEventListener("pointerup",this._onPointerUp)),!this._isTrackingPointer(i)&&(this._addPointer(i),i.pointerType==="touch"?this._onTouchStart(i):this._onMouseDown(i)))}function D(i){this.enabled!==!1&&(i.pointerType==="touch"?this._onTouchMove(i):this._onMouseMove(i))}function M(i){switch(this._removePointer(i),this._pointers.length){case 0:this.domElement.releasePointerCapture(i.pointerId),this.domElement.removeEventListener("pointermove",this._onPointerMove),this.domElement.removeEventListener("pointerup",this._onPointerUp),this.dispatchEvent(g),this.state=a.NONE;break;case 1:const t=this._pointers[0],e=this._pointerPositions[t];this._onTouchStart({pointerId:t,pageX:e.x,pageY:e.y});break}}function S(i){let t;switch(i.button){case 0:t=this.mouseButtons.LEFT;break;case 1:t=this.mouseButtons.MIDDLE;break;case 2:t=this.mouseButtons.RIGHT;break;default:t=-1}switch(t){case s.MOUSE.DOLLY:if(this.enableZoom===!1)return;this._handleMouseDownDolly(i),this.state=a.DOLLY;break;case s.MOUSE.ROTATE:if(i.ctrlKey||i.metaKey||i.shiftKey){if(this.enablePan===!1)return;this._handleMouseDownPan(i),this.state=a.PAN}else{if(this.enableRotate===!1)return;this._handleMouseDownRotate(i),this.state=a.ROTATE}break;case s.MOUSE.PAN:if(i.ctrlKey||i.metaKey||i.shiftKey){if(this.enableRotate===!1)return;this._handleMouseDownRotate(i),this.state=a.ROTATE}else{if(this.enablePan===!1)return;this._handleMouseDownPan(i),this.state=a.PAN}break;default:this.state=a.NONE}this.state!==a.NONE&&this.dispatchEvent(m)}function O(i){switch(this.state){case a.ROTATE:if(this.enableRotate===!1)return;this._handleMouseMoveRotate(i);break;case a.DOLLY:if(this.enableZoom===!1)return;this._handleMouseMoveDolly(i);break;case a.PAN:if(this.enablePan===!1)return;this._handleMouseMovePan(i);break}}function w(i){this.enabled===!1||this.enableZoom===!1||this.state!==a.NONE||(i.preventDefault(),this.dispatchEvent(m),this._handleMouseWheel(this._customWheelEvent(i)),this.dispatchEvent(g))}function R(i){this.enabled!==!1&&this._handleKeyDown(i)}function j(i){switch(this._trackPointer(i),this._pointers.length){case 1:switch(this.touches.ONE){case s.TOUCH.ROTATE:if(this.enableRotate===!1)return;this._handleTouchStartRotate(i),this.state=a.TOUCH_ROTATE;break;case s.TOUCH.PAN:if(this.enablePan===!1)return;this._handleTouchStartPan(i),this.state=a.TOUCH_PAN;break;default:this.state=a.NONE}break;case 2:switch(this.touches.TWO){case s.TOUCH.DOLLY_PAN:if(this.enableZoom===!1&&this.enablePan===!1)return;this._handleTouchStartDollyPan(i),this.state=a.TOUCH_DOLLY_PAN;break;case s.TOUCH.DOLLY_ROTATE:if(this.enableZoom===!1&&this.enableRotate===!1)return;this._handleTouchStartDollyRotate(i),this.state=a.TOUCH_DOLLY_ROTATE;break;default:this.state=a.NONE}break;default:this.state=a.NONE}this.state!==a.NONE&&this.dispatchEvent(m)}function A(i){switch(this._trackPointer(i),this.state){case a.TOUCH_ROTATE:if(this.enableRotate===!1)return;this._handleTouchMoveRotate(i),this.update();break;case a.TOUCH_PAN:if(this.enablePan===!1)return;this._handleTouchMovePan(i),this.update();break;case a.TOUCH_DOLLY_PAN:if(this.enableZoom===!1&&this.enablePan===!1)return;this._handleTouchMoveDollyPan(i),this.update();break;case a.TOUCH_DOLLY_ROTATE:if(this.enableZoom===!1&&this.enableRotate===!1)return;this._handleTouchMoveDollyRotate(i),this.update();break;default:this.state=a.NONE}}function L(i){this.enabled!==!1&&i.preventDefault()}function C(i){i.key==="Control"&&(this._controlActive=!0,this.domElement.getRootNode().addEventListener("keyup",this._interceptControlUp,{passive:!0,capture:!0}))}function x(i){i.key==="Control"&&(this._controlActive=!1,this.domElement.getRootNode().removeEventListener("keyup",this._interceptControlUp,{passive:!0,capture:!0}))}exports.OrbitControls=P;
1
+ "use strict";const s=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CXCyffCH.cjs"),y={type:"change"},m={type:"start"},g={type:"end"},_=new s.Ray,b=new s.Plane,E=Math.cos(70*s.MathUtils.DEG2RAD),h=new s.Vector3,l=2*Math.PI,a={NONE:-1,ROTATE:0,DOLLY:1,PAN:2,TOUCH_ROTATE:3,TOUCH_PAN:4,TOUCH_DOLLY_PAN:5,TOUCH_DOLLY_ROTATE:6},u=1e-6;class P extends s.Controls{constructor(t,e=null){super(t,e),this.state=a.NONE,this.target=new s.Vector3,this.cursor=new s.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:s.MOUSE.ROTATE,MIDDLE:s.MOUSE.DOLLY,RIGHT:s.MOUSE.PAN},this.touches={ONE:s.TOUCH.ROTATE,TWO:s.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 s.Vector3,this._lastQuaternion=new s.Quaternion,this._lastTargetPosition=new s.Vector3,this._quat=new s.Quaternion().setFromUnitVectors(t.up,new s.Vector3(0,1,0)),this._quatInverse=this._quat.clone().invert(),this._spherical=new s.Spherical,this._sphericalDelta=new s.Spherical,this._scale=1,this._panOffset=new s.Vector3,this._rotateStart=new s.Vector2,this._rotateEnd=new s.Vector2,this._rotateDelta=new s.Vector2,this._panStart=new s.Vector2,this._panEnd=new s.Vector2,this._panDelta=new s.Vector2,this._dollyStart=new s.Vector2,this._dollyEnd=new s.Vector2,this._dollyDelta=new s.Vector2,this._dollyDirection=new s.Vector3,this._mouse=new s.Vector2,this._performCursorZoom=!1,this._pointers=[],this._pointerPositions={},this._controlActive=!1,this._onPointerMove=D.bind(this),this._onPointerDown=T.bind(this),this._onPointerUp=M.bind(this),this._onContextMenu=L.bind(this),this._onMouseWheel=w.bind(this),this._onKeyDown=R.bind(this),this._onTouchStart=j.bind(this),this._onTouchMove=A.bind(this),this._onMouseDown=S.bind(this),this._onMouseMove=O.bind(this),this._interceptControlDown=C.bind(this),this._interceptControlUp=x.bind(this),this.domElement!==null&&this.connect(this.domElement),this.update()}connect(t){super.connect(t),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(t){t.addEventListener("keydown",this._onKeyDown),this._domElementKeyEvents=t}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(y),this.update(),this.state=a.NONE}update(t=null){const e=this.object.position;h.copy(e).sub(this.target),h.applyQuaternion(this._quat),this._spherical.setFromVector3(h),this.autoRotate&&this.state===a.NONE&&this._rotateLeft(this._getAutoRotationAngle(t)),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 o=this.minAzimuthAngle,n=this.maxAzimuthAngle;isFinite(o)&&isFinite(n)&&(o<-Math.PI?o+=l:o>Math.PI&&(o-=l),n<-Math.PI?n+=l:n>Math.PI&&(n-=l),o<=n?this._spherical.theta=Math.max(o,Math.min(n,this._spherical.theta)):this._spherical.theta=this._spherical.theta>(o+n)/2?Math.max(o,this._spherical.theta):Math.min(n,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 r=!1;if(this.zoomToCursor&&this._performCursorZoom||this.object.isOrthographicCamera)this._spherical.radius=this._clampDistance(this._spherical.radius);else{const c=this._spherical.radius;this._spherical.radius=this._clampDistance(this._spherical.radius*this._scale),r=c!=this._spherical.radius}if(h.setFromSpherical(this._spherical),h.applyQuaternion(this._quatInverse),e.copy(this.target).add(h),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 c=null;if(this.object.isPerspectiveCamera){const p=h.length();c=this._clampDistance(p*this._scale);const d=p-c;this.object.position.addScaledVector(this._dollyDirection,d),this.object.updateMatrixWorld(),r=!!d}else if(this.object.isOrthographicCamera){const p=new s.Vector3(this._mouse.x,this._mouse.y,0);p.unproject(this.object);const d=this.object.zoom;this.object.zoom=Math.max(this.minZoom,Math.min(this.maxZoom,this.object.zoom/this._scale)),this.object.updateProjectionMatrix(),r=d!==this.object.zoom;const f=new s.Vector3(this._mouse.x,this._mouse.y,0);f.unproject(this.object),this.object.position.sub(f).add(p),this.object.updateMatrixWorld(),c=h.length()}else console.warn("WARNING: OrbitControls.js encountered an unknown camera type - zoom to cursor disabled."),this.zoomToCursor=!1;c!==null&&(this.screenSpacePanning?this.target.set(0,0,-1).transformDirection(this.object.matrix).multiplyScalar(c).add(this.object.position):(_.origin.copy(this.object.position),_.direction.set(0,0,-1).transformDirection(this.object.matrix),Math.abs(this.object.up.dot(_.direction))<E?this.object.lookAt(this.target):(b.setFromNormalAndCoplanarPoint(this.object.up,this.target),_.intersectPlane(b,this.target))))}else if(this.object.isOrthographicCamera){const c=this.object.zoom;this.object.zoom=Math.max(this.minZoom,Math.min(this.maxZoom,this.object.zoom/this._scale)),c!==this.object.zoom&&(this.object.updateProjectionMatrix(),r=!0)}return this._scale=1,this._performCursorZoom=!1,r||this._lastPosition.distanceToSquared(this.object.position)>u||8*(1-this._lastQuaternion.dot(this.object.quaternion))>u||this._lastTargetPosition.distanceToSquared(this.target)>u?(this.dispatchEvent(y),this._lastPosition.copy(this.object.position),this._lastQuaternion.copy(this.object.quaternion),this._lastTargetPosition.copy(this.target),!0):!1}_getAutoRotationAngle(t){return t!==null?l/60*this.autoRotateSpeed*t:l/60/60*this.autoRotateSpeed}_getZoomScale(t){const e=Math.abs(t*.01);return Math.pow(.95,this.zoomSpeed*e)}_rotateLeft(t){this._sphericalDelta.theta-=t}_rotateUp(t){this._sphericalDelta.phi-=t}_panLeft(t,e){h.setFromMatrixColumn(e,0),h.multiplyScalar(-t),this._panOffset.add(h)}_panUp(t,e){this.screenSpacePanning===!0?h.setFromMatrixColumn(e,1):(h.setFromMatrixColumn(e,0),h.crossVectors(this.object.up,h)),h.multiplyScalar(t),this._panOffset.add(h)}_pan(t,e){const o=this.domElement;if(this.object.isPerspectiveCamera){const n=this.object.position;h.copy(n).sub(this.target);let r=h.length();r*=Math.tan(this.object.fov/2*Math.PI/180),this._panLeft(2*t*r/o.clientHeight,this.object.matrix),this._panUp(2*e*r/o.clientHeight,this.object.matrix)}else this.object.isOrthographicCamera?(this._panLeft(t*(this.object.right-this.object.left)/this.object.zoom/o.clientWidth,this.object.matrix),this._panUp(e*(this.object.top-this.object.bottom)/this.object.zoom/o.clientHeight,this.object.matrix)):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - pan disabled."),this.enablePan=!1)}_dollyOut(t){this.object.isPerspectiveCamera||this.object.isOrthographicCamera?this._scale/=t:(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),this.enableZoom=!1)}_dollyIn(t){this.object.isPerspectiveCamera||this.object.isOrthographicCamera?this._scale*=t:(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),this.enableZoom=!1)}_updateZoomParameters(t,e){if(!this.zoomToCursor)return;this._performCursorZoom=!0;const o=this.domElement.getBoundingClientRect(),n=t-o.left,r=e-o.top,c=o.width,p=o.height;this._mouse.x=n/c*2-1,this._mouse.y=-(r/p)*2+1,this._dollyDirection.set(this._mouse.x,this._mouse.y,1).unproject(this.object).sub(this.object.position).normalize()}_clampDistance(t){return Math.max(this.minDistance,Math.min(this.maxDistance,t))}_handleMouseDownRotate(t){this._rotateStart.set(t.clientX,t.clientY)}_handleMouseDownDolly(t){this._updateZoomParameters(t.clientX,t.clientX),this._dollyStart.set(t.clientX,t.clientY)}_handleMouseDownPan(t){this._panStart.set(t.clientX,t.clientY)}_handleMouseMoveRotate(t){this._rotateEnd.set(t.clientX,t.clientY),this._rotateDelta.subVectors(this._rotateEnd,this._rotateStart).multiplyScalar(this.rotateSpeed);const e=this.domElement;this._rotateLeft(l*this._rotateDelta.x/e.clientHeight),this._rotateUp(l*this._rotateDelta.y/e.clientHeight),this._rotateStart.copy(this._rotateEnd),this.update()}_handleMouseMoveDolly(t){this._dollyEnd.set(t.clientX,t.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(t){this._panEnd.set(t.clientX,t.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(t){this._updateZoomParameters(t.clientX,t.clientY),t.deltaY<0?this._dollyIn(this._getZoomScale(t.deltaY)):t.deltaY>0&&this._dollyOut(this._getZoomScale(t.deltaY)),this.update()}_handleKeyDown(t){let e=!1;switch(t.code){case this.keys.UP:t.ctrlKey||t.metaKey||t.shiftKey?this.enableRotate&&this._rotateUp(l*this.keyRotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(0,this.keyPanSpeed),e=!0;break;case this.keys.BOTTOM:t.ctrlKey||t.metaKey||t.shiftKey?this.enableRotate&&this._rotateUp(-l*this.keyRotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(0,-this.keyPanSpeed),e=!0;break;case this.keys.LEFT:t.ctrlKey||t.metaKey||t.shiftKey?this.enableRotate&&this._rotateLeft(l*this.keyRotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(this.keyPanSpeed,0),e=!0;break;case this.keys.RIGHT:t.ctrlKey||t.metaKey||t.shiftKey?this.enableRotate&&this._rotateLeft(-l*this.keyRotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(-this.keyPanSpeed,0),e=!0;break}e&&(t.preventDefault(),this.update())}_handleTouchStartRotate(t){if(this._pointers.length===1)this._rotateStart.set(t.pageX,t.pageY);else{const e=this._getSecondPointerPosition(t),o=.5*(t.pageX+e.x),n=.5*(t.pageY+e.y);this._rotateStart.set(o,n)}}_handleTouchStartPan(t){if(this._pointers.length===1)this._panStart.set(t.pageX,t.pageY);else{const e=this._getSecondPointerPosition(t),o=.5*(t.pageX+e.x),n=.5*(t.pageY+e.y);this._panStart.set(o,n)}}_handleTouchStartDolly(t){const e=this._getSecondPointerPosition(t),o=t.pageX-e.x,n=t.pageY-e.y,r=Math.sqrt(o*o+n*n);this._dollyStart.set(0,r)}_handleTouchStartDollyPan(t){this.enableZoom&&this._handleTouchStartDolly(t),this.enablePan&&this._handleTouchStartPan(t)}_handleTouchStartDollyRotate(t){this.enableZoom&&this._handleTouchStartDolly(t),this.enableRotate&&this._handleTouchStartRotate(t)}_handleTouchMoveRotate(t){if(this._pointers.length==1)this._rotateEnd.set(t.pageX,t.pageY);else{const o=this._getSecondPointerPosition(t),n=.5*(t.pageX+o.x),r=.5*(t.pageY+o.y);this._rotateEnd.set(n,r)}this._rotateDelta.subVectors(this._rotateEnd,this._rotateStart).multiplyScalar(this.rotateSpeed);const e=this.domElement;this._rotateLeft(l*this._rotateDelta.x/e.clientHeight),this._rotateUp(l*this._rotateDelta.y/e.clientHeight),this._rotateStart.copy(this._rotateEnd)}_handleTouchMovePan(t){if(this._pointers.length===1)this._panEnd.set(t.pageX,t.pageY);else{const e=this._getSecondPointerPosition(t),o=.5*(t.pageX+e.x),n=.5*(t.pageY+e.y);this._panEnd.set(o,n)}this._panDelta.subVectors(this._panEnd,this._panStart).multiplyScalar(this.panSpeed),this._pan(this._panDelta.x,this._panDelta.y),this._panStart.copy(this._panEnd)}_handleTouchMoveDolly(t){const e=this._getSecondPointerPosition(t),o=t.pageX-e.x,n=t.pageY-e.y,r=Math.sqrt(o*o+n*n);this._dollyEnd.set(0,r),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 c=(t.pageX+e.x)*.5,p=(t.pageY+e.y)*.5;this._updateZoomParameters(c,p)}_handleTouchMoveDollyPan(t){this.enableZoom&&this._handleTouchMoveDolly(t),this.enablePan&&this._handleTouchMovePan(t)}_handleTouchMoveDollyRotate(t){this.enableZoom&&this._handleTouchMoveDolly(t),this.enableRotate&&this._handleTouchMoveRotate(t)}_addPointer(t){this._pointers.push(t.pointerId)}_removePointer(t){delete this._pointerPositions[t.pointerId];for(let e=0;e<this._pointers.length;e++)if(this._pointers[e]==t.pointerId){this._pointers.splice(e,1);return}}_isTrackingPointer(t){for(let e=0;e<this._pointers.length;e++)if(this._pointers[e]==t.pointerId)return!0;return!1}_trackPointer(t){let e=this._pointerPositions[t.pointerId];e===void 0&&(e=new s.Vector2,this._pointerPositions[t.pointerId]=e),e.set(t.pageX,t.pageY)}_getSecondPointerPosition(t){const e=t.pointerId===this._pointers[0]?this._pointers[1]:this._pointers[0];return this._pointerPositions[e]}_customWheelEvent(t){const e=t.deltaMode,o={clientX:t.clientX,clientY:t.clientY,deltaY:t.deltaY};switch(e){case 1:o.deltaY*=16;break;case 2:o.deltaY*=100;break}return t.ctrlKey&&!this._controlActive&&(o.deltaY*=10),o}}function T(i){this.enabled!==!1&&(this._pointers.length===0&&(this.domElement.setPointerCapture(i.pointerId),this.domElement.addEventListener("pointermove",this._onPointerMove),this.domElement.addEventListener("pointerup",this._onPointerUp)),!this._isTrackingPointer(i)&&(this._addPointer(i),i.pointerType==="touch"?this._onTouchStart(i):this._onMouseDown(i)))}function D(i){this.enabled!==!1&&(i.pointerType==="touch"?this._onTouchMove(i):this._onMouseMove(i))}function M(i){switch(this._removePointer(i),this._pointers.length){case 0:this.domElement.releasePointerCapture(i.pointerId),this.domElement.removeEventListener("pointermove",this._onPointerMove),this.domElement.removeEventListener("pointerup",this._onPointerUp),this.dispatchEvent(g),this.state=a.NONE;break;case 1:const t=this._pointers[0],e=this._pointerPositions[t];this._onTouchStart({pointerId:t,pageX:e.x,pageY:e.y});break}}function S(i){let t;switch(i.button){case 0:t=this.mouseButtons.LEFT;break;case 1:t=this.mouseButtons.MIDDLE;break;case 2:t=this.mouseButtons.RIGHT;break;default:t=-1}switch(t){case s.MOUSE.DOLLY:if(this.enableZoom===!1)return;this._handleMouseDownDolly(i),this.state=a.DOLLY;break;case s.MOUSE.ROTATE:if(i.ctrlKey||i.metaKey||i.shiftKey){if(this.enablePan===!1)return;this._handleMouseDownPan(i),this.state=a.PAN}else{if(this.enableRotate===!1)return;this._handleMouseDownRotate(i),this.state=a.ROTATE}break;case s.MOUSE.PAN:if(i.ctrlKey||i.metaKey||i.shiftKey){if(this.enableRotate===!1)return;this._handleMouseDownRotate(i),this.state=a.ROTATE}else{if(this.enablePan===!1)return;this._handleMouseDownPan(i),this.state=a.PAN}break;default:this.state=a.NONE}this.state!==a.NONE&&this.dispatchEvent(m)}function O(i){switch(this.state){case a.ROTATE:if(this.enableRotate===!1)return;this._handleMouseMoveRotate(i);break;case a.DOLLY:if(this.enableZoom===!1)return;this._handleMouseMoveDolly(i);break;case a.PAN:if(this.enablePan===!1)return;this._handleMouseMovePan(i);break}}function w(i){this.enabled===!1||this.enableZoom===!1||this.state!==a.NONE||(i.preventDefault(),this.dispatchEvent(m),this._handleMouseWheel(this._customWheelEvent(i)),this.dispatchEvent(g))}function R(i){this.enabled!==!1&&this._handleKeyDown(i)}function j(i){switch(this._trackPointer(i),this._pointers.length){case 1:switch(this.touches.ONE){case s.TOUCH.ROTATE:if(this.enableRotate===!1)return;this._handleTouchStartRotate(i),this.state=a.TOUCH_ROTATE;break;case s.TOUCH.PAN:if(this.enablePan===!1)return;this._handleTouchStartPan(i),this.state=a.TOUCH_PAN;break;default:this.state=a.NONE}break;case 2:switch(this.touches.TWO){case s.TOUCH.DOLLY_PAN:if(this.enableZoom===!1&&this.enablePan===!1)return;this._handleTouchStartDollyPan(i),this.state=a.TOUCH_DOLLY_PAN;break;case s.TOUCH.DOLLY_ROTATE:if(this.enableZoom===!1&&this.enableRotate===!1)return;this._handleTouchStartDollyRotate(i),this.state=a.TOUCH_DOLLY_ROTATE;break;default:this.state=a.NONE}break;default:this.state=a.NONE}this.state!==a.NONE&&this.dispatchEvent(m)}function A(i){switch(this._trackPointer(i),this.state){case a.TOUCH_ROTATE:if(this.enableRotate===!1)return;this._handleTouchMoveRotate(i),this.update();break;case a.TOUCH_PAN:if(this.enablePan===!1)return;this._handleTouchMovePan(i),this.update();break;case a.TOUCH_DOLLY_PAN:if(this.enableZoom===!1&&this.enablePan===!1)return;this._handleTouchMoveDollyPan(i),this.update();break;case a.TOUCH_DOLLY_ROTATE:if(this.enableZoom===!1&&this.enableRotate===!1)return;this._handleTouchMoveDollyRotate(i),this.update();break;default:this.state=a.NONE}}function L(i){this.enabled!==!1&&i.preventDefault()}function C(i){i.key==="Control"&&(this._controlActive=!0,this.domElement.getRootNode().addEventListener("keyup",this._interceptControlUp,{passive:!0,capture:!0}))}function x(i){i.key==="Control"&&(this._controlActive=!1,this.domElement.getRootNode().removeEventListener("keyup",this._interceptControlUp,{passive:!0,capture:!0}))}exports.OrbitControls=P;
@@ -1,4 +1,4 @@
1
- import { be as S, V as p, M as u, bf as _, a0 as E, bg as P, Y as c, bh as w, q as O, s as R } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CuWDdCiy.js";
1
+ import { be as S, V as p, M as u, bf as _, a0 as E, bg as P, Y as c, bh as w, q as O, s as R } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CknYXUAG.js";
2
2
  const D = { type: "change" }, b = { type: "start" }, M = { type: "end" }, f = new w(), T = new O(), j = Math.cos(70 * R.DEG2RAD), n = new p(), r = 2 * Math.PI, o = {
3
3
  NONE: -1,
4
4
  ROTATE: 0,
@@ -1 +1 @@
1
- "use strict";const k=require("./index.vue_vue_type_style_index_1_lang-CrmWclPR.cjs"),q=require("./fileUtil-BFtJHTM0.cjs"),a=require("./dataUtil-BFjWNDM1.cjs"),E=require("./index-Dv1G67_Q.cjs"),O=async()=>{let n={};const c=["弯管仿真加工分析","模具筛选安装"],y=await a.getMenuData(c),L=a.getTargetGroup("输入(加工件)",y),i=a.getFormData(L),u=i.管长||0,m=i.外径||0;console.log("管长",u,"外径",m,i);const P=u,C=m/2,T=["弯管仿真加工分析","加工位姿生成"],G=await a.getMenuData(T),R=a.getTargetGroup("输入",G),g=a.getFormData(R),D=g.夹持长度||0;console.log("夹持长度",D,g);const _=Number(D),r={},A=["弯管仿真加工分析","仿真动画生成"],s=await a.getMenuData(A);s==null||s.forEach(t=>{var h,b,f,d,M,F;if((t==null?void 0:t.comp)==="Table"){let w=[],p=(f=(b=(h=t==null?void 0:t.compData)==null?void 0:h.find(e=>(e==null?void 0:e.key)==="header"))==null?void 0:b.contents)==null?void 0:f.map(e=>e==null?void 0:e.label),l=(F=(M=(d=t==null?void 0:t.compData)==null?void 0:d.find(e=>(e==null?void 0:e.key)==="tableContents"))==null?void 0:M.contents)==null?void 0:F.map(e=>(e=e==null?void 0:e.filter(o=>!(o!=null&&o.id)),e));l==null||l.forEach(e=>{w.push(k.getValueToObjectValue(e,p==null?void 0:p.filter(o=>o!=="操作")))}),r[t.name]=w,r[t.name+"Content"]=t}});const x=E.cloneDeep(r)||[];return n={initialPipeLength:P,pipeRadius:C,clampLength:_,animationData:x},n},V=async()=>{let n={};const c=["双弯管仿真加工分析","模具筛选安装"],y=await a.getMenuData(c),L=a.getTargetGroup("输入(加工件)",y),i=a.getFormData(L),u=i.管长||0,m=i.外径||0;console.log("管长",u,"外径",m,i);const P=u,C=m/2,T=["双弯管仿真加工分析","加工工艺生成"],G=await a.getMenuData(T),R=a.getTargetGroup("输入",G),g=a.getFormData(R),D=g.夹持位置||0;console.log("夹持长度",D,g);const _=Number(D),r={},A=["双弯管仿真加工分析","仿真动画生成"],s=await a.getMenuData(A);s==null||s.forEach(t=>{var h,b,f,d,M,F;if((t==null?void 0:t.comp)==="Table"){let w=[],p=(f=(b=(h=t==null?void 0:t.compData)==null?void 0:h.find(e=>(e==null?void 0:e.key)==="header"))==null?void 0:b.contents)==null?void 0:f.map(e=>e==null?void 0:e.label),l=(F=(M=(d=t==null?void 0:t.compData)==null?void 0:d.find(e=>(e==null?void 0:e.key)==="tableContents"))==null?void 0:M.contents)==null?void 0:F.map(e=>(e=e==null?void 0:e.filter(o=>!(o!=null&&o.id)),e));l==null||l.forEach(e=>{w.push(k.getValueToObjectValue(e,p==null?void 0:p.filter(o=>o!=="操作")))}),r[t.name]=w,r[t.name+"Content"]=t}});const x=E.cloneDeep(r)||[];return n={initialPipeLength:P,pipeRadius:C,clampLength:_,animationData:x},n},B=async n=>await q.downloadFile(n),X=async n=>await q.readCsv(n),Y=async n=>{const c=await B(n);return await X(c)};exports.fetchDoubleRobotAnimationData=V;exports.fetchSingleRobotAnimationData=O;exports.initXYZBCList=Y;
1
+ "use strict";const k=require("./index.vue_vue_type_style_index_1_lang-CEg9OCRk.cjs"),q=require("./fileUtil-DxupWpPS.cjs"),a=require("./dataUtil-DTrXZ9vY.cjs"),E=require("./index-Dv1G67_Q.cjs"),O=async()=>{let n={};const c=["弯管仿真加工分析","模具筛选安装"],y=await a.getMenuData(c),L=a.getTargetGroup("输入(加工件)",y),i=a.getFormData(L),u=i.管长||0,m=i.外径||0;console.log("管长",u,"外径",m,i);const P=u,C=m/2,T=["弯管仿真加工分析","加工位姿生成"],G=await a.getMenuData(T),R=a.getTargetGroup("输入",G),g=a.getFormData(R),D=g.夹持长度||0;console.log("夹持长度",D,g);const _=Number(D),r={},A=["弯管仿真加工分析","仿真动画生成"],s=await a.getMenuData(A);s==null||s.forEach(t=>{var h,b,f,d,M,F;if((t==null?void 0:t.comp)==="Table"){let w=[],p=(f=(b=(h=t==null?void 0:t.compData)==null?void 0:h.find(e=>(e==null?void 0:e.key)==="header"))==null?void 0:b.contents)==null?void 0:f.map(e=>e==null?void 0:e.label),l=(F=(M=(d=t==null?void 0:t.compData)==null?void 0:d.find(e=>(e==null?void 0:e.key)==="tableContents"))==null?void 0:M.contents)==null?void 0:F.map(e=>(e=e==null?void 0:e.filter(o=>!(o!=null&&o.id)),e));l==null||l.forEach(e=>{w.push(k.getValueToObjectValue(e,p==null?void 0:p.filter(o=>o!=="操作")))}),r[t.name]=w,r[t.name+"Content"]=t}});const x=E.cloneDeep(r)||[];return n={initialPipeLength:P,pipeRadius:C,clampLength:_,animationData:x},n},V=async()=>{let n={};const c=["双弯管仿真加工分析","模具筛选安装"],y=await a.getMenuData(c),L=a.getTargetGroup("输入(加工件)",y),i=a.getFormData(L),u=i.管长||0,m=i.外径||0;console.log("管长",u,"外径",m,i);const P=u,C=m/2,T=["双弯管仿真加工分析","加工工艺生成"],G=await a.getMenuData(T),R=a.getTargetGroup("输入",G),g=a.getFormData(R),D=g.夹持位置||0;console.log("夹持长度",D,g);const _=Number(D),r={},A=["双弯管仿真加工分析","仿真动画生成"],s=await a.getMenuData(A);s==null||s.forEach(t=>{var h,b,f,d,M,F;if((t==null?void 0:t.comp)==="Table"){let w=[],p=(f=(b=(h=t==null?void 0:t.compData)==null?void 0:h.find(e=>(e==null?void 0:e.key)==="header"))==null?void 0:b.contents)==null?void 0:f.map(e=>e==null?void 0:e.label),l=(F=(M=(d=t==null?void 0:t.compData)==null?void 0:d.find(e=>(e==null?void 0:e.key)==="tableContents"))==null?void 0:M.contents)==null?void 0:F.map(e=>(e=e==null?void 0:e.filter(o=>!(o!=null&&o.id)),e));l==null||l.forEach(e=>{w.push(k.getValueToObjectValue(e,p==null?void 0:p.filter(o=>o!=="操作")))}),r[t.name]=w,r[t.name+"Content"]=t}});const x=E.cloneDeep(r)||[];return n={initialPipeLength:P,pipeRadius:C,clampLength:_,animationData:x},n},B=async n=>await q.downloadFile(n),X=async n=>await q.readCsv(n),Y=async n=>{const c=await B(n);return await X(c)};exports.fetchDoubleRobotAnimationData=V;exports.fetchSingleRobotAnimationData=O;exports.initXYZBCList=Y;
@@ -1,6 +1,6 @@
1
- import { k as x } from "./index.vue_vue_type_style_index_1_lang-DwvuVXW6.js";
2
- import { d as V, a as X } from "./fileUtil-D7XVXEhb.js";
3
- import { g as r, a as L, e as y } from "./dataUtil-D9l7-XhR.js";
1
+ import { k as x } from "./index.vue_vue_type_style_index_1_lang-7jdZW6T6.js";
2
+ import { d as V, a as X } from "./fileUtil-CpaC-lNY.js";
3
+ import { g as r, a as L, e as y } from "./dataUtil-DHVz_Gv0.js";
4
4
  import { c as O } from "./index-HduGypr9.js";
5
5
  const z = async () => {
6
6
  let n = {};
@@ -1,5 +1,5 @@
1
1
  import { watch as _e, unref as Ve, getCurrentScope as Ie, onScopeDispose as Xe, computed as je, ref as C, reactive as Ze } from "vue";
2
- import { ap as P, aq as M } from "./index.vue_vue_type_style_index_1_lang-DwvuVXW6.js";
2
+ import { ap as P, aq as M } from "./index.vue_vue_type_style_index_1_lang-7jdZW6T6.js";
3
3
  import { c as s } from "./index-HduGypr9.js";
4
4
  const Ge = typeof window < "u";
5
5
  var ue;
@@ -1,4 +1,4 @@
1
- "use strict";const w=require("vue"),j=require("./index.vue_vue_type_style_index_1_lang-CrmWclPR.cjs"),l=require("./index-Dv1G67_Q.cjs"),Ve=typeof window<"u";var fe;Ve&&((fe=window==null?void 0:window.navigator)!=null&&fe.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Je(e){return e==null}function Se(){}const Ie=Object.freeze({aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"});Object.freeze(new Set(Object.keys(Ie)));function Xe(){const e=new Map;return{on(t,n){const r=e.get(t);r!=null&&r.add(n)||e.set(t,new Set([n]))},off(t,n){const r=e.get(t);r&&r.delete(n)},clear(t){const n=e.get(t);n&&n.clear()},clearAll(){e.clear()},emit(t,...n){const r=e.get(t);r&&r.forEach(o=>{o(...n)})}}}function Ze(e,t=16){if(typeof e!="function")return Se;const n=(...i)=>{e(...i)};if(t<=0)return Ae(n);let r=0,o;return function(...i){const a=Date.now(),s=a-r;clearTimeout(o),s>=t?(r=a,n(...i)):o=setTimeout(()=>{r=Date.now(),n(...i)},Math.max(0,t-s))}}function Ge(e,t=100){if(typeof e!="function")return Se;const n=(...o)=>{e(...o)};if(t<=0)return Ae(n);let r;return function(...o){clearTimeout(r),r=setTimeout(()=>{n(...o)},t)}}function Ae(e){if(typeof e!="function")return e;let t=!1,n,r;return function(...o){return n=o,t||(t=!0,r=Promise.resolve().then(()=>(t=!1,r=void 0,e(...n)))),r}}const P=new Set,_e=new WeakMap;function He(){P.forEach(e=>{e(..._e.get(e))}),P.clear()}function Ye(e,...t){if(typeof e!="function")return e;_e.set(e,t),!P.has(e)&&(P.add(e),P.size===1&&Promise.resolve().then(He))}const q=typeof window<"u";var ue;q&&(ue=window==null?void 0:window.navigator)!=null&&ue.userAgent&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function de(e){return e!=null}function pe(){}const Ke=Object.freeze({aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"});Object.freeze(new Set(Object.keys(Ke)));const Qe=q&&("ontouchstart"in window||tt()>0),et=Qe?"pointerdown":"click";function tt(){return typeof navigator<"u"&&(navigator.maxTouchPoints||navigator.msMaxTouchPoints)||0}function rt(e,t,n=window.Event){const{type:r,bubbles:o=!1,cancelable:i=!1,...a}=t;if(!de(r)||r==="")return!1;let s;return de(n)?s=new n(r,{bubbles:o,cancelable:i}):(s=document.createEvent("HTMLEvents"),s.initEvent(r,o,i)),Object.assign(s,a),e.dispatchEvent(s)}const nt="clickoutside",ot=new Set;q&&document.addEventListener(et,e=>{const t=e.target,n=e.composedPath&&e.composedPath();ot.forEach(r=>{r!==t&&(n?!n.includes(r):!r.contains(t))&&(!r.__transferElement||r.__transferElement!==t&&!r.__transferElement.contains(t))&&rt(r,{type:nt})})},!0);const it=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]];let G;if(q){for(const e of it)if(e[1]in document){G=e;break}}w.computed(()=>!1);const at=new Set,lt=new WeakMap;if(q&&G){const e=G[2],t=G[4];document.addEventListener(t,()=>{if(at.forEach(n=>{n.value=!1}),document[e]){const n=lt.get(document[e]);n&&(n.value=!0)}},!1)}const je=new Map;je.set("x",0);je.set("y",0);var R=[],st=function(){return R.some(function(e){return e.activeTargets.length>0})},ct=function(){return R.some(function(e){return e.skippedTargets.length>0})},he="ResizeObserver loop completed with undelivered notifications.",ft=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:he}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=he),window.dispatchEvent(e)},L;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(L||(L={}));var M=function(e){return Object.freeze(e)},ut=function(){function e(t,n){this.inlineSize=t,this.blockSize=n,M(this)}return e}(),Be=function(){function e(t,n,r,o){return this.x=t,this.y=n,this.width=r,this.height=o,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,M(this)}return e.prototype.toJSON=function(){var t=this,n=t.x,r=t.y,o=t.top,i=t.right,a=t.bottom,s=t.left,g=t.width,f=t.height;return{x:n,y:r,top:o,right:i,bottom:a,left:s,width:g,height:f}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),oe=function(e){return e instanceof SVGElement&&"getBBox"in e},Ce=function(e){if(oe(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var o=e,i=o.offsetWidth,a=o.offsetHeight;return!(i||a||e.getClientRects().length)},ge=function(e){var t;if(e instanceof Element)return!0;var n=(t=e==null?void 0:e.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},dt=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},U=typeof window<"u"?window:{},J=new WeakMap,be=/auto|scroll/,pt=/^tb|vertical/,ht=/msie|trident/i.test(U.navigator&&U.navigator.userAgent),_=function(e){return parseFloat(e||"0")},$=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new ut((n?t:e)||0,(n?e:t)||0)},me=M({devicePixelContentBoxSize:$(),borderBoxSize:$(),contentBoxSize:$(),contentRect:new Be(0,0,0,0)}),Re=function(e,t){if(t===void 0&&(t=!1),J.has(e)&&!t)return J.get(e);if(Ce(e))return J.set(e,me),me;var n=getComputedStyle(e),r=oe(e)&&e.ownerSVGElement&&e.getBBox(),o=!ht&&n.boxSizing==="border-box",i=pt.test(n.writingMode||""),a=!r&&be.test(n.overflowY||""),s=!r&&be.test(n.overflowX||""),g=r?0:_(n.paddingTop),f=r?0:_(n.paddingRight),B=r?0:_(n.paddingBottom),c=r?0:_(n.paddingLeft),k=r?0:_(n.borderTopWidth),u=r?0:_(n.borderRightWidth),d=r?0:_(n.borderBottomWidth),S=r?0:_(n.borderLeftWidth),b=c+f,O=g+B,E=S+u,D=k+d,T=s?e.offsetHeight-D-e.clientHeight:0,p=a?e.offsetWidth-E-e.clientWidth:0,m=o?b+E:0,v=o?O+D:0,A=r?r.width:_(n.width)-m-p,C=r?r.height:_(n.height)-v-T,W=A+b+p+E,V=C+O+T+D,F=M({devicePixelContentBoxSize:$(Math.round(A*devicePixelRatio),Math.round(C*devicePixelRatio),i),borderBoxSize:$(W,V,i),contentBoxSize:$(A,C,i),contentRect:new Be(c,g,A,C)});return J.set(e,F),F},Me=function(e,t,n){var r=Re(e,n),o=r.borderBoxSize,i=r.contentBoxSize,a=r.devicePixelContentBoxSize;switch(t){case L.DEVICE_PIXEL_CONTENT_BOX:return a;case L.BORDER_BOX:return o;default:return i}},gt=function(){function e(t){var n=Re(t);this.target=t,this.contentRect=n.contentRect,this.borderBoxSize=M([n.borderBoxSize]),this.contentBoxSize=M([n.contentBoxSize]),this.devicePixelContentBoxSize=M([n.devicePixelContentBoxSize])}return e}(),qe=function(e){if(Ce(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},bt=function(){var e=1/0,t=[];R.forEach(function(i){if(i.activeTargets.length!==0){var a=[];i.activeTargets.forEach(function(s){var g=new gt(s.target),f=qe(s.target);a.push(g),s.lastReportedSize=Me(s.target,s.observedBox),f<e&&(e=f)}),t.push(function(){i.callback.call(i.observer,a,i.observer)}),i.activeTargets.splice(0,i.activeTargets.length)}});for(var n=0,r=t;n<r.length;n++){var o=r[n];o()}return e},ve=function(e){R.forEach(function(t){t.activeTargets.splice(0,t.activeTargets.length),t.skippedTargets.splice(0,t.skippedTargets.length),t.observationTargets.forEach(function(n){n.isActive()&&(qe(n.target)>e?t.activeTargets.push(n):t.skippedTargets.push(n))})})},mt=function(){var e=0;for(ve(e);st();)e=bt(),ve(e);return ct()&&ft(),e>0},Q,$e=[],vt=function(){return $e.splice(0).forEach(function(e){return e()})},yt=function(e){if(!Q){var t=0,n=document.createTextNode(""),r={characterData:!0};new MutationObserver(function(){return vt()}).observe(n,r),Q=function(){n.textContent="".concat(t?t--:t++)}}$e.push(e),Q()},wt=function(e){yt(function(){requestAnimationFrame(e)})},H=0,kt=function(){return!!H},zt=250,xt={attributes:!0,characterData:!0,childList:!0,subtree:!0},ye=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],we=function(e){return e===void 0&&(e=0),Date.now()+e},ee=!1,Et=function(){function e(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return e.prototype.run=function(t){var n=this;if(t===void 0&&(t=zt),!ee){ee=!0;var r=we(t);wt(function(){var o=!1;try{o=mt()}finally{if(ee=!1,t=r-we(),!kt())return;o?n.run(1e3):t>0?n.run(t):n.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,n=function(){return t.observer&&t.observer.observe(document.body,xt)};document.body?n():U.addEventListener("DOMContentLoaded",n)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),ye.forEach(function(n){return U.addEventListener(n,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),ye.forEach(function(n){return U.removeEventListener(n,t.listener,!0)}),this.stopped=!0)},e}(),ne=new Et,ke=function(e){!H&&e>0&&ne.start(),H+=e,!H&&ne.stop()},Dt=function(e){return!oe(e)&&!dt(e)&&getComputedStyle(e).display==="inline"},Ot=function(){function e(t,n){this.target=t,this.observedBox=n||L.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=Me(this.target,this.observedBox,!0);return Dt(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),Tt=function(){function e(t,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=n}return e}(),I=new WeakMap,ze=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},X=function(){function e(){}return e.connect=function(t,n){var r=new Tt(t,n);I.set(t,r)},e.observe=function(t,n,r){var o=I.get(t),i=o.observationTargets.length===0;ze(o.observationTargets,n)<0&&(i&&R.push(o),o.observationTargets.push(new Ot(n,r&&r.box)),ke(1),ne.schedule())},e.unobserve=function(t,n){var r=I.get(t),o=ze(r.observationTargets,n),i=r.observationTargets.length===1;o>=0&&(i&&R.splice(R.indexOf(r),1),r.observationTargets.splice(o,1),ke(-1))},e.disconnect=function(t){var n=this,r=I.get(t);r.observationTargets.slice().forEach(function(o){return n.unobserve(t,o.target)}),r.activeTargets.splice(0,r.activeTargets.length)},e}(),St=function(){function e(t){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof t!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");X.connect(this,t)}return e.prototype.observe=function(t,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!ge(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");X.observe(this,t,n)},e.prototype.unobserve=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!ge(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");X.unobserve(this,t)},e.prototype.disconnect=function(){X.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();const K=new WeakMap;function At(e){var t;for(let n=0,r=e.length;n<r;++n){const o=e[n],i=K.get(o.target);if(typeof i=="function"){const{inlineSize:a,blockSize:s}=((t=o.borderBoxSize)==null?void 0:t[0])??{},{offsetWidth:g,offsetHeight:f}=o.target;i(Object.assign(o,{offsetWidth:g,offsetHeight:f,width:a??g,height:s??f}))}}}const Fe=new(q&&window.ResizeObserver||St)(At);function xe(e,t){K.set(e,t),Fe.observe(e)}function Ee(e){K.has(e)&&(Fe.unobserve(e),K.delete(e))}function _t(e={}){let t=pe;const n=w.watch(()=>w.unref(e.target),o=>{t(),!(!o||typeof e.onResize!="function")&&(xe(o,e.onResize),t=()=>{Ee(o),t=pe})},{immediate:!0}),r=()=>{n(),t()};return w.getCurrentScope()&&w.onScopeDispose(r),{observeResize:xe,unobserveResize:Ee,unobserve:r}}const jt=w.ref(!1);w.computed(()=>jt.value);const De="__theme_style__",te="__theme_observer__",Oe=w.reactive(new Map),Te=new Map;w.watch(Oe,()=>{if(!q)return;Te.clear();const e=document.head.querySelector(`#${De}`);e&&document.head.removeChild(e);const t=document.createElement("style");let n=`.${te} { width: 1px }`,r=1;for(const[o,[i,a]]of Oe.entries())n+=` html.${i} .${te}, .${a} .${te} { width: ${++r}px }`,Te.set(r,o);t.textContent=n,t.id=De,document.head.appendChild(t)});(function(){try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('.vgl-layout{--vgl-placeholder-bg: red;--vgl-placeholder-opacity: 20%;--vgl-placeholder-z-index: 2;--vgl-item-resizing-z-index: 3;--vgl-item-resizing-opacity: 60%;--vgl-item-dragging-z-index: 3;--vgl-item-dragging-opacity: 100%;--vgl-resizer-size: 10px;--vgl-resizer-border-color: #444;--vgl-resizer-border-width: 2px;position:relative;box-sizing:border-box;transition:height .2s ease}.vgl-item{position:absolute;box-sizing:border-box;transition:.2s ease;transition-property:left,top,right}.vgl-item--placeholder{z-index:var(--vgl-placeholder-z-index, 2);-webkit-user-select:none;-moz-user-select:none;user-select:none;background-color:var(--vgl-placeholder-bg, red);opacity:var(--vgl-placeholder-opacity, 20%);transition-duration:.1s}.vgl-item--no-touch{touch-action:none}.vgl-item--transform{right:auto;left:0;transition-property:transform}.vgl-item--transform.vgl-item--rtl{right:0;left:auto}.vgl-item--resizing{z-index:var(--vgl-item-resizing-z-index, 3);-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--vgl-item-resizing-opacity, 60%)}.vgl-item--dragging{z-index:var(--vgl-item-dragging-z-index, 3);-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--vgl-item-dragging-opacity, 100%);transition:none}.vgl-item__resizer{position:absolute;right:0;bottom:0;box-sizing:border-box;width:var(--vgl-resizer-size);height:var(--vgl-resizer-size);cursor:se-resize}.vgl-item__resizer:before{position:absolute;top:0;right:3px;bottom:3px;left:0;content:"";border:0 solid var(--vgl-resizer-border-color);border-right-width:var(--vgl-resizer-border-width);border-bottom-width:var(--vgl-resizer-border-width)}.vgl-item__resizer--rtl{right:auto;left:0;cursor:sw-resize}.vgl-item__resizer--rtl:before{top:0;right:0;bottom:3px;left:3px;border-right-width:0;border-bottom-width:var(--vgl-resizer-border-width);border-left-width:var(--vgl-resizer-border-width)}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();w.ref(0);const Ne=e=>{var t,n;if(Array.isArray(Object.keys(e))&&((t=Object.keys(e))==null?void 0:t.length)>0){let r=[];return(n=Object.entries(e))==null||n.forEach(([o,i])=>{var s,g;let a=[];if(a.push(o),((s=Object.keys(i))==null?void 0:s.length)>0){let f=[];(g=Ne(i))==null||g.forEach(B=>{f.push(B)}),f==null||f.forEach(B=>{a.push(B)})}r.push(a)}),r}},Bt=(e,t)=>{var r;let n=t;return Array.isArray(Object.keys(e))&&((r=Object.entries(e))==null||r.forEach(([o,i])=>{let a=[o];if(typeof i=="object"&&i!==null){let s=Ne(i);s==null||s.forEach(g=>{a.push(g)})}n.push(a)})),n},Ct=e=>{const t={};return e.forEach(r=>{const o=r.split("/");let i=t;o.forEach(a=>{i[a]||(i[a]={}),i=i[a]})}),Bt(t,[])},Rt=e=>Ct(e);w.ref(0);w.ref(1);const Pe=e=>{let t;e.replaceAll(" ",`\r
1
+ "use strict";const w=require("vue"),j=require("./index.vue_vue_type_style_index_1_lang-CEg9OCRk.cjs"),l=require("./index-Dv1G67_Q.cjs"),Ve=typeof window<"u";var fe;Ve&&((fe=window==null?void 0:window.navigator)!=null&&fe.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Je(e){return e==null}function Se(){}const Ie=Object.freeze({aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"});Object.freeze(new Set(Object.keys(Ie)));function Xe(){const e=new Map;return{on(t,n){const r=e.get(t);r!=null&&r.add(n)||e.set(t,new Set([n]))},off(t,n){const r=e.get(t);r&&r.delete(n)},clear(t){const n=e.get(t);n&&n.clear()},clearAll(){e.clear()},emit(t,...n){const r=e.get(t);r&&r.forEach(o=>{o(...n)})}}}function Ze(e,t=16){if(typeof e!="function")return Se;const n=(...i)=>{e(...i)};if(t<=0)return Ae(n);let r=0,o;return function(...i){const a=Date.now(),s=a-r;clearTimeout(o),s>=t?(r=a,n(...i)):o=setTimeout(()=>{r=Date.now(),n(...i)},Math.max(0,t-s))}}function Ge(e,t=100){if(typeof e!="function")return Se;const n=(...o)=>{e(...o)};if(t<=0)return Ae(n);let r;return function(...o){clearTimeout(r),r=setTimeout(()=>{n(...o)},t)}}function Ae(e){if(typeof e!="function")return e;let t=!1,n,r;return function(...o){return n=o,t||(t=!0,r=Promise.resolve().then(()=>(t=!1,r=void 0,e(...n)))),r}}const P=new Set,_e=new WeakMap;function He(){P.forEach(e=>{e(..._e.get(e))}),P.clear()}function Ye(e,...t){if(typeof e!="function")return e;_e.set(e,t),!P.has(e)&&(P.add(e),P.size===1&&Promise.resolve().then(He))}const q=typeof window<"u";var ue;q&&(ue=window==null?void 0:window.navigator)!=null&&ue.userAgent&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function de(e){return e!=null}function pe(){}const Ke=Object.freeze({aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"});Object.freeze(new Set(Object.keys(Ke)));const Qe=q&&("ontouchstart"in window||tt()>0),et=Qe?"pointerdown":"click";function tt(){return typeof navigator<"u"&&(navigator.maxTouchPoints||navigator.msMaxTouchPoints)||0}function rt(e,t,n=window.Event){const{type:r,bubbles:o=!1,cancelable:i=!1,...a}=t;if(!de(r)||r==="")return!1;let s;return de(n)?s=new n(r,{bubbles:o,cancelable:i}):(s=document.createEvent("HTMLEvents"),s.initEvent(r,o,i)),Object.assign(s,a),e.dispatchEvent(s)}const nt="clickoutside",ot=new Set;q&&document.addEventListener(et,e=>{const t=e.target,n=e.composedPath&&e.composedPath();ot.forEach(r=>{r!==t&&(n?!n.includes(r):!r.contains(t))&&(!r.__transferElement||r.__transferElement!==t&&!r.__transferElement.contains(t))&&rt(r,{type:nt})})},!0);const it=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]];let G;if(q){for(const e of it)if(e[1]in document){G=e;break}}w.computed(()=>!1);const at=new Set,lt=new WeakMap;if(q&&G){const e=G[2],t=G[4];document.addEventListener(t,()=>{if(at.forEach(n=>{n.value=!1}),document[e]){const n=lt.get(document[e]);n&&(n.value=!0)}},!1)}const je=new Map;je.set("x",0);je.set("y",0);var R=[],st=function(){return R.some(function(e){return e.activeTargets.length>0})},ct=function(){return R.some(function(e){return e.skippedTargets.length>0})},he="ResizeObserver loop completed with undelivered notifications.",ft=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:he}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=he),window.dispatchEvent(e)},L;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(L||(L={}));var M=function(e){return Object.freeze(e)},ut=function(){function e(t,n){this.inlineSize=t,this.blockSize=n,M(this)}return e}(),Be=function(){function e(t,n,r,o){return this.x=t,this.y=n,this.width=r,this.height=o,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,M(this)}return e.prototype.toJSON=function(){var t=this,n=t.x,r=t.y,o=t.top,i=t.right,a=t.bottom,s=t.left,g=t.width,f=t.height;return{x:n,y:r,top:o,right:i,bottom:a,left:s,width:g,height:f}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),oe=function(e){return e instanceof SVGElement&&"getBBox"in e},Ce=function(e){if(oe(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var o=e,i=o.offsetWidth,a=o.offsetHeight;return!(i||a||e.getClientRects().length)},ge=function(e){var t;if(e instanceof Element)return!0;var n=(t=e==null?void 0:e.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},dt=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},U=typeof window<"u"?window:{},J=new WeakMap,be=/auto|scroll/,pt=/^tb|vertical/,ht=/msie|trident/i.test(U.navigator&&U.navigator.userAgent),_=function(e){return parseFloat(e||"0")},$=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new ut((n?t:e)||0,(n?e:t)||0)},me=M({devicePixelContentBoxSize:$(),borderBoxSize:$(),contentBoxSize:$(),contentRect:new Be(0,0,0,0)}),Re=function(e,t){if(t===void 0&&(t=!1),J.has(e)&&!t)return J.get(e);if(Ce(e))return J.set(e,me),me;var n=getComputedStyle(e),r=oe(e)&&e.ownerSVGElement&&e.getBBox(),o=!ht&&n.boxSizing==="border-box",i=pt.test(n.writingMode||""),a=!r&&be.test(n.overflowY||""),s=!r&&be.test(n.overflowX||""),g=r?0:_(n.paddingTop),f=r?0:_(n.paddingRight),B=r?0:_(n.paddingBottom),c=r?0:_(n.paddingLeft),k=r?0:_(n.borderTopWidth),u=r?0:_(n.borderRightWidth),d=r?0:_(n.borderBottomWidth),S=r?0:_(n.borderLeftWidth),b=c+f,O=g+B,E=S+u,D=k+d,T=s?e.offsetHeight-D-e.clientHeight:0,p=a?e.offsetWidth-E-e.clientWidth:0,m=o?b+E:0,v=o?O+D:0,A=r?r.width:_(n.width)-m-p,C=r?r.height:_(n.height)-v-T,W=A+b+p+E,V=C+O+T+D,F=M({devicePixelContentBoxSize:$(Math.round(A*devicePixelRatio),Math.round(C*devicePixelRatio),i),borderBoxSize:$(W,V,i),contentBoxSize:$(A,C,i),contentRect:new Be(c,g,A,C)});return J.set(e,F),F},Me=function(e,t,n){var r=Re(e,n),o=r.borderBoxSize,i=r.contentBoxSize,a=r.devicePixelContentBoxSize;switch(t){case L.DEVICE_PIXEL_CONTENT_BOX:return a;case L.BORDER_BOX:return o;default:return i}},gt=function(){function e(t){var n=Re(t);this.target=t,this.contentRect=n.contentRect,this.borderBoxSize=M([n.borderBoxSize]),this.contentBoxSize=M([n.contentBoxSize]),this.devicePixelContentBoxSize=M([n.devicePixelContentBoxSize])}return e}(),qe=function(e){if(Ce(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},bt=function(){var e=1/0,t=[];R.forEach(function(i){if(i.activeTargets.length!==0){var a=[];i.activeTargets.forEach(function(s){var g=new gt(s.target),f=qe(s.target);a.push(g),s.lastReportedSize=Me(s.target,s.observedBox),f<e&&(e=f)}),t.push(function(){i.callback.call(i.observer,a,i.observer)}),i.activeTargets.splice(0,i.activeTargets.length)}});for(var n=0,r=t;n<r.length;n++){var o=r[n];o()}return e},ve=function(e){R.forEach(function(t){t.activeTargets.splice(0,t.activeTargets.length),t.skippedTargets.splice(0,t.skippedTargets.length),t.observationTargets.forEach(function(n){n.isActive()&&(qe(n.target)>e?t.activeTargets.push(n):t.skippedTargets.push(n))})})},mt=function(){var e=0;for(ve(e);st();)e=bt(),ve(e);return ct()&&ft(),e>0},Q,$e=[],vt=function(){return $e.splice(0).forEach(function(e){return e()})},yt=function(e){if(!Q){var t=0,n=document.createTextNode(""),r={characterData:!0};new MutationObserver(function(){return vt()}).observe(n,r),Q=function(){n.textContent="".concat(t?t--:t++)}}$e.push(e),Q()},wt=function(e){yt(function(){requestAnimationFrame(e)})},H=0,kt=function(){return!!H},zt=250,xt={attributes:!0,characterData:!0,childList:!0,subtree:!0},ye=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],we=function(e){return e===void 0&&(e=0),Date.now()+e},ee=!1,Et=function(){function e(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return e.prototype.run=function(t){var n=this;if(t===void 0&&(t=zt),!ee){ee=!0;var r=we(t);wt(function(){var o=!1;try{o=mt()}finally{if(ee=!1,t=r-we(),!kt())return;o?n.run(1e3):t>0?n.run(t):n.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,n=function(){return t.observer&&t.observer.observe(document.body,xt)};document.body?n():U.addEventListener("DOMContentLoaded",n)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),ye.forEach(function(n){return U.addEventListener(n,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),ye.forEach(function(n){return U.removeEventListener(n,t.listener,!0)}),this.stopped=!0)},e}(),ne=new Et,ke=function(e){!H&&e>0&&ne.start(),H+=e,!H&&ne.stop()},Dt=function(e){return!oe(e)&&!dt(e)&&getComputedStyle(e).display==="inline"},Ot=function(){function e(t,n){this.target=t,this.observedBox=n||L.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=Me(this.target,this.observedBox,!0);return Dt(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),Tt=function(){function e(t,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=n}return e}(),I=new WeakMap,ze=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},X=function(){function e(){}return e.connect=function(t,n){var r=new Tt(t,n);I.set(t,r)},e.observe=function(t,n,r){var o=I.get(t),i=o.observationTargets.length===0;ze(o.observationTargets,n)<0&&(i&&R.push(o),o.observationTargets.push(new Ot(n,r&&r.box)),ke(1),ne.schedule())},e.unobserve=function(t,n){var r=I.get(t),o=ze(r.observationTargets,n),i=r.observationTargets.length===1;o>=0&&(i&&R.splice(R.indexOf(r),1),r.observationTargets.splice(o,1),ke(-1))},e.disconnect=function(t){var n=this,r=I.get(t);r.observationTargets.slice().forEach(function(o){return n.unobserve(t,o.target)}),r.activeTargets.splice(0,r.activeTargets.length)},e}(),St=function(){function e(t){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof t!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");X.connect(this,t)}return e.prototype.observe=function(t,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!ge(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");X.observe(this,t,n)},e.prototype.unobserve=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!ge(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");X.unobserve(this,t)},e.prototype.disconnect=function(){X.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();const K=new WeakMap;function At(e){var t;for(let n=0,r=e.length;n<r;++n){const o=e[n],i=K.get(o.target);if(typeof i=="function"){const{inlineSize:a,blockSize:s}=((t=o.borderBoxSize)==null?void 0:t[0])??{},{offsetWidth:g,offsetHeight:f}=o.target;i(Object.assign(o,{offsetWidth:g,offsetHeight:f,width:a??g,height:s??f}))}}}const Fe=new(q&&window.ResizeObserver||St)(At);function xe(e,t){K.set(e,t),Fe.observe(e)}function Ee(e){K.has(e)&&(Fe.unobserve(e),K.delete(e))}function _t(e={}){let t=pe;const n=w.watch(()=>w.unref(e.target),o=>{t(),!(!o||typeof e.onResize!="function")&&(xe(o,e.onResize),t=()=>{Ee(o),t=pe})},{immediate:!0}),r=()=>{n(),t()};return w.getCurrentScope()&&w.onScopeDispose(r),{observeResize:xe,unobserveResize:Ee,unobserve:r}}const jt=w.ref(!1);w.computed(()=>jt.value);const De="__theme_style__",te="__theme_observer__",Oe=w.reactive(new Map),Te=new Map;w.watch(Oe,()=>{if(!q)return;Te.clear();const e=document.head.querySelector(`#${De}`);e&&document.head.removeChild(e);const t=document.createElement("style");let n=`.${te} { width: 1px }`,r=1;for(const[o,[i,a]]of Oe.entries())n+=` html.${i} .${te}, .${a} .${te} { width: ${++r}px }`,Te.set(r,o);t.textContent=n,t.id=De,document.head.appendChild(t)});(function(){try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('.vgl-layout{--vgl-placeholder-bg: red;--vgl-placeholder-opacity: 20%;--vgl-placeholder-z-index: 2;--vgl-item-resizing-z-index: 3;--vgl-item-resizing-opacity: 60%;--vgl-item-dragging-z-index: 3;--vgl-item-dragging-opacity: 100%;--vgl-resizer-size: 10px;--vgl-resizer-border-color: #444;--vgl-resizer-border-width: 2px;position:relative;box-sizing:border-box;transition:height .2s ease}.vgl-item{position:absolute;box-sizing:border-box;transition:.2s ease;transition-property:left,top,right}.vgl-item--placeholder{z-index:var(--vgl-placeholder-z-index, 2);-webkit-user-select:none;-moz-user-select:none;user-select:none;background-color:var(--vgl-placeholder-bg, red);opacity:var(--vgl-placeholder-opacity, 20%);transition-duration:.1s}.vgl-item--no-touch{touch-action:none}.vgl-item--transform{right:auto;left:0;transition-property:transform}.vgl-item--transform.vgl-item--rtl{right:0;left:auto}.vgl-item--resizing{z-index:var(--vgl-item-resizing-z-index, 3);-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--vgl-item-resizing-opacity, 60%)}.vgl-item--dragging{z-index:var(--vgl-item-dragging-z-index, 3);-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--vgl-item-dragging-opacity, 100%);transition:none}.vgl-item__resizer{position:absolute;right:0;bottom:0;box-sizing:border-box;width:var(--vgl-resizer-size);height:var(--vgl-resizer-size);cursor:se-resize}.vgl-item__resizer:before{position:absolute;top:0;right:3px;bottom:3px;left:0;content:"";border:0 solid var(--vgl-resizer-border-color);border-right-width:var(--vgl-resizer-border-width);border-bottom-width:var(--vgl-resizer-border-width)}.vgl-item__resizer--rtl{right:auto;left:0;cursor:sw-resize}.vgl-item__resizer--rtl:before{top:0;right:0;bottom:3px;left:3px;border-right-width:0;border-bottom-width:var(--vgl-resizer-border-width);border-left-width:var(--vgl-resizer-border-width)}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();w.ref(0);const Ne=e=>{var t,n;if(Array.isArray(Object.keys(e))&&((t=Object.keys(e))==null?void 0:t.length)>0){let r=[];return(n=Object.entries(e))==null||n.forEach(([o,i])=>{var s,g;let a=[];if(a.push(o),((s=Object.keys(i))==null?void 0:s.length)>0){let f=[];(g=Ne(i))==null||g.forEach(B=>{f.push(B)}),f==null||f.forEach(B=>{a.push(B)})}r.push(a)}),r}},Bt=(e,t)=>{var r;let n=t;return Array.isArray(Object.keys(e))&&((r=Object.entries(e))==null||r.forEach(([o,i])=>{let a=[o];if(typeof i=="object"&&i!==null){let s=Ne(i);s==null||s.forEach(g=>{a.push(g)})}n.push(a)})),n},Ct=e=>{const t={};return e.forEach(r=>{const o=r.split("/");let i=t;o.forEach(a=>{i[a]||(i[a]={}),i=i[a]})}),Bt(t,[])},Rt=e=>Ct(e);w.ref(0);w.ref(1);const Pe=e=>{let t;e.replaceAll(" ",`\r
2
2
  `).replaceAll(`
3
3
  `,`\r
4
4
  `).includes(`\r
package/dist/config.js CHANGED
@@ -5,6 +5,7 @@ window.__env__ = {
5
5
  "VITE_PUBLIC_PATH": "",
6
6
  "VITE_SM_PUBLIC_KEY": "0484C7466D950E120E5ECE5DD85D0C90EAA85081A3A2BD7C57AE6DC822EFCCBD66620C67B0103FC8DD280E36C3B282977B722AAEC3C56518EDCEBAFB72C5A05312",
7
7
  "VITE_API_URL": "http://222.92.178.198:62001",
8
+ "VITE_FACE_RECOGNITION_API_URL": "http://139.196.154.85:20015",
8
9
  "VITE_DEFAULT_USER": "",
9
10
  "VITE_DEFAULT_USER_PASSWORD": ""
10
11
  }
@@ -1,4 +1,4 @@
1
- import { j as g, i as K } from "./index.vue_vue_type_style_index_1_lang-DwvuVXW6.js";
1
+ import { j as g, i as K } from "./index.vue_vue_type_style_index_1_lang-7jdZW6T6.js";
2
2
  import { p } from "./index-HduGypr9.js";
3
3
  const h = K(p), { originalPath: x } = h, D = async (e) => {
4
4
  const n = e.join("/"), s = sessionStorage.getItem("systemKey");
@@ -1 +1 @@
1
- "use strict";const d=require("./index.vue_vue_type_style_index_1_lang-CrmWclPR.cjs"),K=require("./index-Dv1G67_Q.cjs"),D=d.useOriginalState(K.pinia),{originalPath:x}=D,h=async n=>{const e=n.join("/"),a=sessionStorage.getItem("systemKey");return await d.getItemData(e,a,"")},p=(n,e)=>e==null?void 0:e.find(s=>{const{name:i}=s;return i===n}),_=n=>{var r,g;const e=n==null?void 0:n.compData,a=(r=e==null?void 0:e.find(t=>(t==null?void 0:t.key)==="header"))==null?void 0:r.contents,s=a==null?void 0:a.findIndex((t,c)=>{const{isMainKey:u}=t;return u}),i=(g=e==null?void 0:e.find(t=>(t==null?void 0:t.key)==="tableContents"))==null?void 0:g.contents,o=i==null?void 0:i.map(t=>(t=t==null?void 0:t.filter(c=>!(c!=null&&c.id)),t));return o==null?void 0:o.map(t=>t==null?void 0:t[s])},G=async(n,e)=>{const a=n.join("/"),s=sessionStorage.getItem("systemKey");return await d.getItemData(`${a}${x}${e}`,s,"")},k=n=>{var i;const e=n==null?void 0:n.compData,a=(i=e==null?void 0:e.find(o=>{const{key:y}=o;return y==="formContent"}))==null?void 0:i.contents,s={};return a==null||a.forEach(o=>{const{prop:y,value:r}=o;s[y]=r}),s},M=n=>{var r,g;const e=n==null?void 0:n.compData,a=(r=e==null?void 0:e.find(t=>(t==null?void 0:t.key)==="header"))==null?void 0:r.contents,s=[];a==null||a.forEach((t,c)=>{const{label:u}=t;u!="操作"&&s.push(u)});const i=(g=e==null?void 0:e.find(t=>(t==null?void 0:t.key)==="tableContents"))==null?void 0:g.contents;return(i==null?void 0:i.map(t=>(t=t==null?void 0:t.filter(c=>!(c!=null&&c.id)),t))).map(t=>{const c={};return t==null||t.forEach((u,m)=>{const l=s==null?void 0:s[m];l&&(c[l]=u)}),c})};exports.getDetailData=G;exports.getFormData=k;exports.getMainKeysFromGroup=_;exports.getMenuData=h;exports.getTableData=M;exports.getTargetGroup=p;
1
+ "use strict";const d=require("./index.vue_vue_type_style_index_1_lang-CEg9OCRk.cjs"),K=require("./index-Dv1G67_Q.cjs"),D=d.useOriginalState(K.pinia),{originalPath:x}=D,h=async n=>{const e=n.join("/"),a=sessionStorage.getItem("systemKey");return await d.getItemData(e,a,"")},p=(n,e)=>e==null?void 0:e.find(s=>{const{name:i}=s;return i===n}),_=n=>{var r,g;const e=n==null?void 0:n.compData,a=(r=e==null?void 0:e.find(t=>(t==null?void 0:t.key)==="header"))==null?void 0:r.contents,s=a==null?void 0:a.findIndex((t,c)=>{const{isMainKey:u}=t;return u}),i=(g=e==null?void 0:e.find(t=>(t==null?void 0:t.key)==="tableContents"))==null?void 0:g.contents,o=i==null?void 0:i.map(t=>(t=t==null?void 0:t.filter(c=>!(c!=null&&c.id)),t));return o==null?void 0:o.map(t=>t==null?void 0:t[s])},G=async(n,e)=>{const a=n.join("/"),s=sessionStorage.getItem("systemKey");return await d.getItemData(`${a}${x}${e}`,s,"")},k=n=>{var i;const e=n==null?void 0:n.compData,a=(i=e==null?void 0:e.find(o=>{const{key:y}=o;return y==="formContent"}))==null?void 0:i.contents,s={};return a==null||a.forEach(o=>{const{prop:y,value:r}=o;s[y]=r}),s},M=n=>{var r,g;const e=n==null?void 0:n.compData,a=(r=e==null?void 0:e.find(t=>(t==null?void 0:t.key)==="header"))==null?void 0:r.contents,s=[];a==null||a.forEach((t,c)=>{const{label:u}=t;u!="操作"&&s.push(u)});const i=(g=e==null?void 0:e.find(t=>(t==null?void 0:t.key)==="tableContents"))==null?void 0:g.contents;return(i==null?void 0:i.map(t=>(t=t==null?void 0:t.filter(c=>!(c!=null&&c.id)),t))).map(t=>{const c={};return t==null||t.forEach((u,m)=>{const l=s==null?void 0:s[m];l&&(c[l]=u)}),c})};exports.getDetailData=G;exports.getFormData=k;exports.getMainKeysFromGroup=_;exports.getMenuData=h;exports.getTableData=M;exports.getTargetGroup=p;
@@ -1,5 +1,5 @@
1
1
  import { r as f, u } from "./xlsx-ByPOQ6N_.js";
2
- import { d as m } from "./threeViewerHost-BNObp9oA.js";
2
+ import { d as m } from "./threeViewerHost-vCZc8klC.js";
3
3
  function d(t) {
4
4
  try {
5
5
  const r = new URL(t).pathname, n = r.substring(r.lastIndexOf("/") + 1);
@@ -1 +1 @@
1
- "use strict";const l=require("./xlsx-BPHygxEf.cjs"),d=require("./threeViewerHost-D3WDKrIQ.cjs");function u(t){try{const r=new URL(t).pathname,n=r.substring(r.lastIndexOf("/")+1);return decodeURIComponent(n)}catch(r){return console.error("无法解析URL以提取文件名:",t,r),"未知文件名"}}function h(t){if(!t)return;const r=t.match(/filename\*\s*=\s*([^;]+)/i);if(r){let e=r[1].trim();e=e.replace(/^"(.*)"$/,"$1");const s=e.split("''");if(s.length===2){const c=s[0].toUpperCase(),o=s[1];try{if(c==="UTF-8")return decodeURIComponent(o)}catch{}return o}try{return decodeURIComponent(e)}catch{return e}}const n=t.match(/filename\s*=\s*("?)([^";]+)\1/i);if(n)return n[2].trim()}async function m(t){let r,n;if(/^https?:\/\//.test(t))try{const e=await fetch(t,{method:"GET",cache:"no-store"});if(!e.ok)throw new Error(`下载文件失败: ${e.statusText} (URL: ${t})`);r=await e.blob(),n=u(t)}catch(e){throw console.error("使用 fetch 下载文件时出错:",e),e}else try{const e=await d.downloadAvatarApi({url:t});if(e.status!==200)throw new Error(`下载失败: ${e.status}`);const s=e.headers["content-disposition"];n=h(s)||"无文件名",r=e.data}catch(e){throw console.error("通过 API 下载文件时出错:",e),e}return new File([r],n,{type:r.type})}function w(t){return new Promise((r,n)=>{const e=new FileReader;e.onload=s=>{var c;try{const o=(c=s.target)==null?void 0:c.result,i=l.readSync(o,{type:"array"}),a=i.Sheets[i.SheetNames[0]],f=l.utils.sheet_to_json(a);r(f)}catch(o){n(o)}},e.readAsArrayBuffer(t)})}const p=t=>new Promise(async(r,n)=>{const c=await(await fetch(t)).blob(),o=new FileReader;o.onload=function(i){var a;r((a=i.target)==null?void 0:a.result)},o.onerror=i=>{const{error:a}=o;n(a==null?void 0:a.message)},o.readAsText(c)}),F=t=>{if(t==null||!isFinite(t))return"";const r=t/(1024*1024);if(r>=1)return`${r.toFixed(1)} MB`;const n=t/1024;return n>=1?`${n.toFixed(1)} KB`:`${t} B`};exports.downloadFile=m;exports.formatBytes=F;exports.getFilenameFromUrl=u;exports.readCsv=w;exports.readFileText=p;
1
+ "use strict";const l=require("./xlsx-BPHygxEf.cjs"),d=require("./threeViewerHost-BuBE7hoc.cjs");function u(t){try{const r=new URL(t).pathname,n=r.substring(r.lastIndexOf("/")+1);return decodeURIComponent(n)}catch(r){return console.error("无法解析URL以提取文件名:",t,r),"未知文件名"}}function h(t){if(!t)return;const r=t.match(/filename\*\s*=\s*([^;]+)/i);if(r){let e=r[1].trim();e=e.replace(/^"(.*)"$/,"$1");const s=e.split("''");if(s.length===2){const c=s[0].toUpperCase(),o=s[1];try{if(c==="UTF-8")return decodeURIComponent(o)}catch{}return o}try{return decodeURIComponent(e)}catch{return e}}const n=t.match(/filename\s*=\s*("?)([^";]+)\1/i);if(n)return n[2].trim()}async function m(t){let r,n;if(/^https?:\/\//.test(t))try{const e=await fetch(t,{method:"GET",cache:"no-store"});if(!e.ok)throw new Error(`下载文件失败: ${e.statusText} (URL: ${t})`);r=await e.blob(),n=u(t)}catch(e){throw console.error("使用 fetch 下载文件时出错:",e),e}else try{const e=await d.downloadAvatarApi({url:t});if(e.status!==200)throw new Error(`下载失败: ${e.status}`);const s=e.headers["content-disposition"];n=h(s)||"无文件名",r=e.data}catch(e){throw console.error("通过 API 下载文件时出错:",e),e}return new File([r],n,{type:r.type})}function w(t){return new Promise((r,n)=>{const e=new FileReader;e.onload=s=>{var c;try{const o=(c=s.target)==null?void 0:c.result,i=l.readSync(o,{type:"array"}),a=i.Sheets[i.SheetNames[0]],f=l.utils.sheet_to_json(a);r(f)}catch(o){n(o)}},e.readAsArrayBuffer(t)})}const p=t=>new Promise(async(r,n)=>{const c=await(await fetch(t)).blob(),o=new FileReader;o.onload=function(i){var a;r((a=i.target)==null?void 0:a.result)},o.onerror=i=>{const{error:a}=o;n(a==null?void 0:a.message)},o.readAsText(c)}),F=t=>{if(t==null||!isFinite(t))return"";const r=t/(1024*1024);if(r>=1)return`${r.toFixed(1)} MB`;const n=t/1024;return n>=1?`${n.toFixed(1)} KB`:`${t} B`};exports.downloadFile=m;exports.formatBytes=F;exports.getFilenameFromUrl=u;exports.readCsv=w;exports.readFileText=p;