ss-component-new 1.1.396 → 1.1.397

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. package/dist/{array-C16RsBGi.js → array-BMm2xbyh.js} +2 -2
  2. package/dist/{array-CrflPQfH.cjs → array-DrchcVuo.cjs} +1 -1
  3. package/dist/{index-Ci_TlUaz.cjs → index-0xeOQNqr.cjs} +1 -1
  4. package/dist/{index-sX5lTda9.cjs → index-5rgfBNRZ.cjs} +1 -1
  5. package/dist/{index-LAneWWe0.cjs → index-7UFQD8dI.cjs} +1 -1
  6. package/dist/{index-BrwiY9L3.js → index-ASm-tiLF.js} +4 -4
  7. package/dist/{index-BPhF9zmt.cjs → index-B4MrDBQI.cjs} +1 -1
  8. package/dist/{index-sbQSWrBI.cjs → index-BJjUEAip.cjs} +1 -1
  9. package/dist/{index-DD1B6uNy.cjs → index-BLq1jCgy.cjs} +1 -1
  10. package/dist/{index-BqgHyhdi.js → index-BPnzUJyM.js} +1 -1
  11. package/dist/{index-DdMKahpe.cjs → index-BR_5J-Rp.cjs} +1 -1
  12. package/dist/{index-DeDlxE6V.js → index-BU_03B7p.js} +29 -26
  13. package/dist/{index-DPMhC2WO.js → index-BVQIDysd.js} +3 -3
  14. package/dist/{index-DlBjdPGf.cjs → index-BY1X4-T5.cjs} +1 -1
  15. package/dist/{index-CVkIx7Qb.js → index-Bhci20la.js} +4 -4
  16. package/dist/{index-CmwiMKaN.cjs → index-BqArjijs.cjs} +1 -1
  17. package/dist/{index-iWbccyfH.cjs → index-BusYSZDz.cjs} +1 -1
  18. package/dist/{index-DvuQRvTq.js → index-Bxi55yPn.js} +5 -5
  19. package/dist/{index-NyFbsRls.js → index-Byf9n_kH.js} +7 -7
  20. package/dist/{index-B87MOYL0.cjs → index-BzWrFscu.cjs} +1 -1
  21. package/dist/{index-HXgo29eU.js → index-CI1TvyGc.js} +4 -4
  22. package/dist/{index-5QKtXqtt.cjs → index-CKfWuKQ-.cjs} +1 -1
  23. package/dist/{index-BPG0DRXa.js → index-CM1PfZ-y.js} +5 -5
  24. package/dist/index-CWxAe8Hn.js +1564 -0
  25. package/dist/{index-D6aaas52.cjs → index-CcUmQ8j2.cjs} +1 -1
  26. package/dist/{index-BLFmQUvu.cjs → index-CeZMiwjT.cjs} +1 -1
  27. package/dist/{index-0rS7KbmB.cjs → index-CkuA9YtT.cjs} +1 -1
  28. package/dist/{index-CAiiyLHX.js → index-CusCByer.js} +2 -2
  29. package/dist/{index-BCBaGcSw.cjs → index-CvKVVUbj.cjs} +1 -1
  30. package/dist/{index-B5SKuqtT.js → index-CydzKd1p.js} +1 -1
  31. package/dist/{index-B_gX595b.cjs → index-CyxJ_jHM.cjs} +1 -1
  32. package/dist/{index-DL2KazPi.js → index-D3-VeVtm.js} +6 -6
  33. package/dist/{index-msEHZkYa.js → index-D7gBl7Bx.js} +5 -5
  34. package/dist/{index-cld16RcD.js → index-DE3aicnZ.js} +7 -7
  35. package/dist/{index-Dyj2IJ-k.js → index-DLBak3Lt.js} +4 -4
  36. package/dist/{index-C9Qome4l.js → index-DP9-VsqS.js} +5 -5
  37. package/dist/{index-CA6wLV-m.js → index-DQ3sNMML.js} +6 -6
  38. package/dist/{index-CF2GXE5j.js → index-DUcpVC5C.js} +4 -4
  39. package/dist/{index-CASSs849.js → index-DYvfFqEa.js} +3 -3
  40. package/dist/{index-Bft1aZ0a.cjs → index-DcuoGUjl.cjs} +1 -1
  41. package/dist/index-Dgk3r8_M.cjs +1 -0
  42. package/dist/{index-P4OXUc2W.cjs → index-Dn-0fR75.cjs} +1 -1
  43. package/dist/{index-P80WmN2w.cjs → index-Ds8QFoQ-.cjs} +1 -1
  44. package/dist/{index-F1ttuKSv.js → index-DuC_dofe.js} +4 -4
  45. package/dist/{index-BI8ECnch.js → index-DxkIkZjg.js} +1 -1
  46. package/dist/{index-C822Fm25.js → index-HT7hXa5c.js} +7 -7
  47. package/dist/{index-Vgnu3AJT.cjs → index-QK5rLXVe.cjs} +1 -1
  48. package/dist/{index-CIQlsfDn.cjs → index-Wb412Wki.cjs} +1 -1
  49. package/dist/{index-DPiUDaPy.js → index-XV4q28ju.js} +3 -3
  50. package/dist/index-Y7giQ1a4.cjs +1 -0
  51. package/dist/{index-BiLGjwKz.js → index-ecJYDIw4.js} +9 -9
  52. package/dist/{index-Bkw45mmW.cjs → index-gyJJ1_Vo.cjs} +1 -1
  53. package/dist/{index-BS9fOObP.js → index-rIMXQ6PY.js} +1 -1
  54. package/dist/{index-Z_MwT_T3.cjs → index-vorF-H1l.cjs} +1 -1
  55. package/dist/{index.vue_vue_type_script_setup_true_lang-DSlW9AIf.cjs → index.vue_vue_type_script_setup_true_lang-D67sZOgP.cjs} +1 -1
  56. package/dist/{index.vue_vue_type_script_setup_true_lang-BbuiPO6s.js → index.vue_vue_type_script_setup_true_lang-T1imEghJ.js} +3 -3
  57. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CMVrqCWx.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Csbqxggh.cjs} +1 -1
  58. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-UFSwAOJz.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-D2ENkR1G.js} +2 -2
  59. package/dist/{index.vue_vue_type_style_index_0_scoped_306ecd73_lang-DOjbMvFW.cjs → index.vue_vue_type_style_index_0_scoped_306ecd73_lang-CG-9MeCv.cjs} +1 -1
  60. package/dist/{index.vue_vue_type_style_index_0_scoped_306ecd73_lang-4Af2QVFc.js → index.vue_vue_type_style_index_0_scoped_306ecd73_lang-Dk0_HFXf.js} +8 -8
  61. package/dist/{index.vue_vue_type_style_index_0_scoped_45defba9_lang-DGl8Ds4Q.js → index.vue_vue_type_style_index_0_scoped_7ee96c6e_lang-CafwctIq.js} +1336 -1342
  62. package/dist/{index.vue_vue_type_style_index_0_scoped_45defba9_lang-BoiEK80r.cjs → index.vue_vue_type_style_index_0_scoped_7ee96c6e_lang-CpPem8Cc.cjs} +3 -3
  63. package/dist/{login-Dk-07p0w.cjs → login-CII9CG-J.cjs} +1 -1
  64. package/dist/{login-DXi57ZMh.js → login-DdNgIg3X.js} +1 -1
  65. package/dist/{main-Bi8-ggGu.cjs → main-B1ZWk63R.cjs} +1 -1
  66. package/dist/{main-BbFbvu6k.js → main-BOfMXV-3.js} +6 -6
  67. package/dist/{menu-CIgIfqSs.cjs → menu-DlNtyfT6.cjs} +1 -1
  68. package/dist/{menu-ozOGGi5Z.js → menu-Dl_Xtx7n.js} +1 -1
  69. package/dist/ss-component.cjs +1 -1
  70. package/dist/ss-component.css +1 -1
  71. package/dist/ss-component.js +10 -10
  72. package/dist/ss-component3.cjs +1 -1
  73. package/dist/ss-component3.js +1 -1
  74. package/dist/{threeModel-Dl-CREqP.cjs → threeModel-Bf7f4982.cjs} +1 -1
  75. package/dist/{threeModel-Dt4tQ3jF.js → threeModel-Cc5t11yb.js} +3 -3
  76. package/dist/{threeModel.vue_vue_type_style_index_0_scoped_3d52b35a_lang-D7fZi66-.cjs → threeModel.vue_vue_type_style_index_0_scoped_55d9773d_lang-DMIfmZ8j.cjs} +1 -1
  77. package/dist/{threeModel.vue_vue_type_style_index_0_scoped_3d52b35a_lang-Bea0CNjG.js → threeModel.vue_vue_type_style_index_0_scoped_55d9773d_lang-OVa4vxrk.js} +2 -2
  78. package/package.json +1 -1
  79. package/dist/index-DOIRqr3P.js +0 -1553
  80. package/dist/index-kP4PZFnP.cjs +0 -1
  81. package/dist/index-soDn3tCX.cjs +0 -1
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),n=require("./threeModel.vue_vue_type_style_index_0_scoped_3d52b35a_lang-D7fZi66-.cjs"),j=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),at={class:"tree-container"},st=t.defineComponent({__name:"index",props:{treeData:Array,expand:{type:Boolean,default:!1}},emits:["nodeClick"],setup(l,{emit:e}){const o=e,s=l,c={children:"children",label:"label"},p=G=>{o("nodeClick",G)};return(G,i)=>{const m=t.resolveComponent("el-tree");return t.openBlock(),t.createElementBlock("div",at,[t.createVNode(m,{data:s==null?void 0:s.treeData,props:c,"default-expand-all":l.expand,onNodeClick:p},null,8,["data","default-expand-all"])])}}}),rt=j._export_sfc(st,[["__scopeId","data-v-b4bd4658"]]),lt={key:0,class:"jointPanel-container"},ct={class:"panel-content"},dt=t.defineComponent({__name:"robotMenu",props:{model:Object},setup(l){const e=l,o=t.ref(!0),s=t.ref([]),c=(i,m=0)=>{const g=[];return Array.isArray(i)&&(i==null?void 0:i.length)>0&&i.forEach(J=>{if(!(J!=null&&J.isMesh)&&((J==null?void 0:J.type)==="URDFJoint"||(J==null?void 0:J.type)==="URDFLink")){const C={name:J==null?void 0:J.name,label:J==null?void 0:J.name,show:!0,level:m+1,isPenultimate:!1,type:J==null?void 0:J.type,id:J==null?void 0:J.id,limit:(J==null?void 0:J.limit)??"",children:c(J==null?void 0:J.children,m+1),path:J==null?void 0:J.name};g.push(C)}}),g},p=i=>i?[{name:i==null?void 0:i.name,label:i==null?void 0:i.name,show:!0,level:1,isPenultimate:!1,type:i==null?void 0:i.type,id:i==null?void 0:i.id,limit:(i==null?void 0:i.limit)??"",children:c(i==null?void 0:i.children,1),path:i==null?void 0:i.name}]:[],G=t.computed(()=>e!=null&&e.model?p(e.model):[]);return t.watch(G,i=>{s.value=JSON.parse(JSON.stringify(i))},{immediate:!0}),(i,m)=>{const g=t.resolveComponent("el-scrollbar"),J=t.resolveComponent("el-collapse-transition");return l.model?(t.openBlock(),t.createElementBlock("div",lt,[t.createElementVNode("div",{class:"panel-header",onClick:m[0]||(m[0]=C=>o.value=!o.value)},m[1]||(m[1]=[t.createElementVNode("h3",null,"URDF树",-1)])),t.createVNode(J,null,{default:t.withCtx(()=>[t.withDirectives(t.createVNode(g,{"max-height":"600px"},{default:t.withCtx(()=>[t.createElementVNode("div",ct,[t.createVNode(rt,{treeData:s.value,expand:!0},null,8,["treeData"])])]),_:1},512),[[t.vShow,o.value]])]),_:1})])):t.createCommentVNode("",!0)}}}),ht=j._export_sfc(dt,[["__scopeId","data-v-bc2f3f82"]]),$={type:"change"},U={type:"start"},q={type:"end"},z=new n.Ray,W=new n.Plane,_t=Math.cos(70*n.MathUtils.DEG2RAD),R=new n.Vector3,A=2*Math.PI,b={NONE:-1,ROTATE:0,DOLLY:1,PAN:2,TOUCH_ROTATE:3,TOUCH_PAN:4,TOUCH_DOLLY_PAN:5,TOUCH_DOLLY_ROTATE:6},I=1e-6;class Pt extends n.Controls{constructor(e,o=null){super(e,o),this.state=b.NONE,this.target=new n.Vector3,this.cursor=new n.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:n.MOUSE.ROTATE,MIDDLE:n.MOUSE.DOLLY,RIGHT:n.MOUSE.PAN},this.touches={ONE:n.TOUCH.ROTATE,TWO:n.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 n.Vector3,this._lastQuaternion=new n.Quaternion,this._lastTargetPosition=new n.Vector3,this._quat=new n.Quaternion().setFromUnitVectors(e.up,new n.Vector3(0,1,0)),this._quatInverse=this._quat.clone().invert(),this._spherical=new n.Spherical,this._sphericalDelta=new n.Spherical,this._scale=1,this._panOffset=new n.Vector3,this._rotateStart=new n.Vector2,this._rotateEnd=new n.Vector2,this._rotateDelta=new n.Vector2,this._panStart=new n.Vector2,this._panEnd=new n.Vector2,this._panDelta=new n.Vector2,this._dollyStart=new n.Vector2,this._dollyEnd=new n.Vector2,this._dollyDelta=new n.Vector2,this._dollyDirection=new n.Vector3,this._mouse=new n.Vector2,this._performCursorZoom=!1,this._pointers=[],this._pointerPositions={},this._controlActive=!1,this._onPointerMove=ut.bind(this),this._onPointerDown=Jt.bind(this),this._onPointerUp=pt.bind(this),this._onContextMenu=Et.bind(this),this._onMouseWheel=ft.bind(this),this._onKeyDown=gt.bind(this),this._onTouchStart=yt.bind(this),this._onTouchMove=bt.bind(this),this._onMouseDown=mt.bind(this),this._onMouseMove=Gt.bind(this),this._interceptControlDown=Mt.bind(this),this._interceptControlUp=vt.bind(this),this.domElement!==null&&this.connect(this.domElement),this.update()}connect(e){super.connect(e),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(e){e.addEventListener("keydown",this._onKeyDown),this._domElementKeyEvents=e}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($),this.update(),this.state=b.NONE}update(e=null){const o=this.object.position;R.copy(o).sub(this.target),R.applyQuaternion(this._quat),this._spherical.setFromVector3(R),this.autoRotate&&this.state===b.NONE&&this._rotateLeft(this._getAutoRotationAngle(e)),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 s=this.minAzimuthAngle,c=this.maxAzimuthAngle;isFinite(s)&&isFinite(c)&&(s<-Math.PI?s+=A:s>Math.PI&&(s-=A),c<-Math.PI?c+=A:c>Math.PI&&(c-=A),s<=c?this._spherical.theta=Math.max(s,Math.min(c,this._spherical.theta)):this._spherical.theta=this._spherical.theta>(s+c)/2?Math.max(s,this._spherical.theta):Math.min(c,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 p=!1;if(this.zoomToCursor&&this._performCursorZoom||this.object.isOrthographicCamera)this._spherical.radius=this._clampDistance(this._spherical.radius);else{const G=this._spherical.radius;this._spherical.radius=this._clampDistance(this._spherical.radius*this._scale),p=G!=this._spherical.radius}if(R.setFromSpherical(this._spherical),R.applyQuaternion(this._quatInverse),o.copy(this.target).add(R),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 G=null;if(this.object.isPerspectiveCamera){const i=R.length();G=this._clampDistance(i*this._scale);const m=i-G;this.object.position.addScaledVector(this._dollyDirection,m),this.object.updateMatrixWorld(),p=!!m}else if(this.object.isOrthographicCamera){const i=new n.Vector3(this._mouse.x,this._mouse.y,0);i.unproject(this.object);const m=this.object.zoom;this.object.zoom=Math.max(this.minZoom,Math.min(this.maxZoom,this.object.zoom/this._scale)),this.object.updateProjectionMatrix(),p=m!==this.object.zoom;const g=new n.Vector3(this._mouse.x,this._mouse.y,0);g.unproject(this.object),this.object.position.sub(g).add(i),this.object.updateMatrixWorld(),G=R.length()}else console.warn("WARNING: OrbitControls.js encountered an unknown camera type - zoom to cursor disabled."),this.zoomToCursor=!1;G!==null&&(this.screenSpacePanning?this.target.set(0,0,-1).transformDirection(this.object.matrix).multiplyScalar(G).add(this.object.position):(z.origin.copy(this.object.position),z.direction.set(0,0,-1).transformDirection(this.object.matrix),Math.abs(this.object.up.dot(z.direction))<_t?this.object.lookAt(this.target):(W.setFromNormalAndCoplanarPoint(this.object.up,this.target),z.intersectPlane(W,this.target))))}else if(this.object.isOrthographicCamera){const G=this.object.zoom;this.object.zoom=Math.max(this.minZoom,Math.min(this.maxZoom,this.object.zoom/this._scale)),G!==this.object.zoom&&(this.object.updateProjectionMatrix(),p=!0)}return this._scale=1,this._performCursorZoom=!1,p||this._lastPosition.distanceToSquared(this.object.position)>I||8*(1-this._lastQuaternion.dot(this.object.quaternion))>I||this._lastTargetPosition.distanceToSquared(this.target)>I?(this.dispatchEvent($),this._lastPosition.copy(this.object.position),this._lastQuaternion.copy(this.object.quaternion),this._lastTargetPosition.copy(this.target),!0):!1}_getAutoRotationAngle(e){return e!==null?A/60*this.autoRotateSpeed*e:A/60/60*this.autoRotateSpeed}_getZoomScale(e){const o=Math.abs(e*.01);return Math.pow(.95,this.zoomSpeed*o)}_rotateLeft(e){this._sphericalDelta.theta-=e}_rotateUp(e){this._sphericalDelta.phi-=e}_panLeft(e,o){R.setFromMatrixColumn(o,0),R.multiplyScalar(-e),this._panOffset.add(R)}_panUp(e,o){this.screenSpacePanning===!0?R.setFromMatrixColumn(o,1):(R.setFromMatrixColumn(o,0),R.crossVectors(this.object.up,R)),R.multiplyScalar(e),this._panOffset.add(R)}_pan(e,o){const s=this.domElement;if(this.object.isPerspectiveCamera){const c=this.object.position;R.copy(c).sub(this.target);let p=R.length();p*=Math.tan(this.object.fov/2*Math.PI/180),this._panLeft(2*e*p/s.clientHeight,this.object.matrix),this._panUp(2*o*p/s.clientHeight,this.object.matrix)}else this.object.isOrthographicCamera?(this._panLeft(e*(this.object.right-this.object.left)/this.object.zoom/s.clientWidth,this.object.matrix),this._panUp(o*(this.object.top-this.object.bottom)/this.object.zoom/s.clientHeight,this.object.matrix)):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - pan disabled."),this.enablePan=!1)}_dollyOut(e){this.object.isPerspectiveCamera||this.object.isOrthographicCamera?this._scale/=e:(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),this.enableZoom=!1)}_dollyIn(e){this.object.isPerspectiveCamera||this.object.isOrthographicCamera?this._scale*=e:(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),this.enableZoom=!1)}_updateZoomParameters(e,o){if(!this.zoomToCursor)return;this._performCursorZoom=!0;const s=this.domElement.getBoundingClientRect(),c=e-s.left,p=o-s.top,G=s.width,i=s.height;this._mouse.x=c/G*2-1,this._mouse.y=-(p/i)*2+1,this._dollyDirection.set(this._mouse.x,this._mouse.y,1).unproject(this.object).sub(this.object.position).normalize()}_clampDistance(e){return Math.max(this.minDistance,Math.min(this.maxDistance,e))}_handleMouseDownRotate(e){this._rotateStart.set(e.clientX,e.clientY)}_handleMouseDownDolly(e){this._updateZoomParameters(e.clientX,e.clientX),this._dollyStart.set(e.clientX,e.clientY)}_handleMouseDownPan(e){this._panStart.set(e.clientX,e.clientY)}_handleMouseMoveRotate(e){this._rotateEnd.set(e.clientX,e.clientY),this._rotateDelta.subVectors(this._rotateEnd,this._rotateStart).multiplyScalar(this.rotateSpeed);const o=this.domElement;this._rotateLeft(A*this._rotateDelta.x/o.clientHeight),this._rotateUp(A*this._rotateDelta.y/o.clientHeight),this._rotateStart.copy(this._rotateEnd),this.update()}_handleMouseMoveDolly(e){this._dollyEnd.set(e.clientX,e.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(e){this._panEnd.set(e.clientX,e.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(e){this._updateZoomParameters(e.clientX,e.clientY),e.deltaY<0?this._dollyIn(this._getZoomScale(e.deltaY)):e.deltaY>0&&this._dollyOut(this._getZoomScale(e.deltaY)),this.update()}_handleKeyDown(e){let o=!1;switch(e.code){case this.keys.UP:e.ctrlKey||e.metaKey||e.shiftKey?this.enableRotate&&this._rotateUp(A*this.keyRotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(0,this.keyPanSpeed),o=!0;break;case this.keys.BOTTOM:e.ctrlKey||e.metaKey||e.shiftKey?this.enableRotate&&this._rotateUp(-A*this.keyRotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(0,-this.keyPanSpeed),o=!0;break;case this.keys.LEFT:e.ctrlKey||e.metaKey||e.shiftKey?this.enableRotate&&this._rotateLeft(A*this.keyRotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(this.keyPanSpeed,0),o=!0;break;case this.keys.RIGHT:e.ctrlKey||e.metaKey||e.shiftKey?this.enableRotate&&this._rotateLeft(-A*this.keyRotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(-this.keyPanSpeed,0),o=!0;break}o&&(e.preventDefault(),this.update())}_handleTouchStartRotate(e){if(this._pointers.length===1)this._rotateStart.set(e.pageX,e.pageY);else{const o=this._getSecondPointerPosition(e),s=.5*(e.pageX+o.x),c=.5*(e.pageY+o.y);this._rotateStart.set(s,c)}}_handleTouchStartPan(e){if(this._pointers.length===1)this._panStart.set(e.pageX,e.pageY);else{const o=this._getSecondPointerPosition(e),s=.5*(e.pageX+o.x),c=.5*(e.pageY+o.y);this._panStart.set(s,c)}}_handleTouchStartDolly(e){const o=this._getSecondPointerPosition(e),s=e.pageX-o.x,c=e.pageY-o.y,p=Math.sqrt(s*s+c*c);this._dollyStart.set(0,p)}_handleTouchStartDollyPan(e){this.enableZoom&&this._handleTouchStartDolly(e),this.enablePan&&this._handleTouchStartPan(e)}_handleTouchStartDollyRotate(e){this.enableZoom&&this._handleTouchStartDolly(e),this.enableRotate&&this._handleTouchStartRotate(e)}_handleTouchMoveRotate(e){if(this._pointers.length==1)this._rotateEnd.set(e.pageX,e.pageY);else{const s=this._getSecondPointerPosition(e),c=.5*(e.pageX+s.x),p=.5*(e.pageY+s.y);this._rotateEnd.set(c,p)}this._rotateDelta.subVectors(this._rotateEnd,this._rotateStart).multiplyScalar(this.rotateSpeed);const o=this.domElement;this._rotateLeft(A*this._rotateDelta.x/o.clientHeight),this._rotateUp(A*this._rotateDelta.y/o.clientHeight),this._rotateStart.copy(this._rotateEnd)}_handleTouchMovePan(e){if(this._pointers.length===1)this._panEnd.set(e.pageX,e.pageY);else{const o=this._getSecondPointerPosition(e),s=.5*(e.pageX+o.x),c=.5*(e.pageY+o.y);this._panEnd.set(s,c)}this._panDelta.subVectors(this._panEnd,this._panStart).multiplyScalar(this.panSpeed),this._pan(this._panDelta.x,this._panDelta.y),this._panStart.copy(this._panEnd)}_handleTouchMoveDolly(e){const o=this._getSecondPointerPosition(e),s=e.pageX-o.x,c=e.pageY-o.y,p=Math.sqrt(s*s+c*c);this._dollyEnd.set(0,p),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 G=(e.pageX+o.x)*.5,i=(e.pageY+o.y)*.5;this._updateZoomParameters(G,i)}_handleTouchMoveDollyPan(e){this.enableZoom&&this._handleTouchMoveDolly(e),this.enablePan&&this._handleTouchMovePan(e)}_handleTouchMoveDollyRotate(e){this.enableZoom&&this._handleTouchMoveDolly(e),this.enableRotate&&this._handleTouchMoveRotate(e)}_addPointer(e){this._pointers.push(e.pointerId)}_removePointer(e){delete this._pointerPositions[e.pointerId];for(let o=0;o<this._pointers.length;o++)if(this._pointers[o]==e.pointerId){this._pointers.splice(o,1);return}}_isTrackingPointer(e){for(let o=0;o<this._pointers.length;o++)if(this._pointers[o]==e.pointerId)return!0;return!1}_trackPointer(e){let o=this._pointerPositions[e.pointerId];o===void 0&&(o=new n.Vector2,this._pointerPositions[e.pointerId]=o),o.set(e.pageX,e.pageY)}_getSecondPointerPosition(e){const o=e.pointerId===this._pointers[0]?this._pointers[1]:this._pointers[0];return this._pointerPositions[o]}_customWheelEvent(e){const o=e.deltaMode,s={clientX:e.clientX,clientY:e.clientY,deltaY:e.deltaY};switch(o){case 1:s.deltaY*=16;break;case 2:s.deltaY*=100;break}return e.ctrlKey&&!this._controlActive&&(s.deltaY*=10),s}}function Jt(l){this.enabled!==!1&&(this._pointers.length===0&&(this.domElement.setPointerCapture(l.pointerId),this.domElement.addEventListener("pointermove",this._onPointerMove),this.domElement.addEventListener("pointerup",this._onPointerUp)),!this._isTrackingPointer(l)&&(this._addPointer(l),l.pointerType==="touch"?this._onTouchStart(l):this._onMouseDown(l)))}function ut(l){this.enabled!==!1&&(l.pointerType==="touch"?this._onTouchMove(l):this._onMouseMove(l))}function pt(l){switch(this._removePointer(l),this._pointers.length){case 0:this.domElement.releasePointerCapture(l.pointerId),this.domElement.removeEventListener("pointermove",this._onPointerMove),this.domElement.removeEventListener("pointerup",this._onPointerUp),this.dispatchEvent(q),this.state=b.NONE;break;case 1:const e=this._pointers[0],o=this._pointerPositions[e];this._onTouchStart({pointerId:e,pageX:o.x,pageY:o.y});break}}function mt(l){let e;switch(l.button){case 0:e=this.mouseButtons.LEFT;break;case 1:e=this.mouseButtons.MIDDLE;break;case 2:e=this.mouseButtons.RIGHT;break;default:e=-1}switch(e){case n.MOUSE.DOLLY:if(this.enableZoom===!1)return;this._handleMouseDownDolly(l),this.state=b.DOLLY;break;case n.MOUSE.ROTATE:if(l.ctrlKey||l.metaKey||l.shiftKey){if(this.enablePan===!1)return;this._handleMouseDownPan(l),this.state=b.PAN}else{if(this.enableRotate===!1)return;this._handleMouseDownRotate(l),this.state=b.ROTATE}break;case n.MOUSE.PAN:if(l.ctrlKey||l.metaKey||l.shiftKey){if(this.enableRotate===!1)return;this._handleMouseDownRotate(l),this.state=b.ROTATE}else{if(this.enablePan===!1)return;this._handleMouseDownPan(l),this.state=b.PAN}break;default:this.state=b.NONE}this.state!==b.NONE&&this.dispatchEvent(U)}function Gt(l){switch(this.state){case b.ROTATE:if(this.enableRotate===!1)return;this._handleMouseMoveRotate(l);break;case b.DOLLY:if(this.enableZoom===!1)return;this._handleMouseMoveDolly(l);break;case b.PAN:if(this.enablePan===!1)return;this._handleMouseMovePan(l);break}}function ft(l){this.enabled===!1||this.enableZoom===!1||this.state!==b.NONE||(l.preventDefault(),this.dispatchEvent(U),this._handleMouseWheel(this._customWheelEvent(l)),this.dispatchEvent(q))}function gt(l){this.enabled!==!1&&this._handleKeyDown(l)}function yt(l){switch(this._trackPointer(l),this._pointers.length){case 1:switch(this.touches.ONE){case n.TOUCH.ROTATE:if(this.enableRotate===!1)return;this._handleTouchStartRotate(l),this.state=b.TOUCH_ROTATE;break;case n.TOUCH.PAN:if(this.enablePan===!1)return;this._handleTouchStartPan(l),this.state=b.TOUCH_PAN;break;default:this.state=b.NONE}break;case 2:switch(this.touches.TWO){case n.TOUCH.DOLLY_PAN:if(this.enableZoom===!1&&this.enablePan===!1)return;this._handleTouchStartDollyPan(l),this.state=b.TOUCH_DOLLY_PAN;break;case n.TOUCH.DOLLY_ROTATE:if(this.enableZoom===!1&&this.enableRotate===!1)return;this._handleTouchStartDollyRotate(l),this.state=b.TOUCH_DOLLY_ROTATE;break;default:this.state=b.NONE}break;default:this.state=b.NONE}this.state!==b.NONE&&this.dispatchEvent(U)}function bt(l){switch(this._trackPointer(l),this.state){case b.TOUCH_ROTATE:if(this.enableRotate===!1)return;this._handleTouchMoveRotate(l),this.update();break;case b.TOUCH_PAN:if(this.enablePan===!1)return;this._handleTouchMovePan(l),this.update();break;case b.TOUCH_DOLLY_PAN:if(this.enableZoom===!1&&this.enablePan===!1)return;this._handleTouchMoveDollyPan(l),this.update();break;case b.TOUCH_DOLLY_ROTATE:if(this.enableZoom===!1&&this.enableRotate===!1)return;this._handleTouchMoveDollyRotate(l),this.update();break;default:this.state=b.NONE}}function Et(l){this.enabled!==!1&&l.preventDefault()}function Mt(l){l.key==="Control"&&(this._controlActive=!0,this.domElement.getRootNode().addEventListener("keyup",this._interceptControlUp,{passive:!0,capture:!0}))}function vt(l){l.key==="Control"&&(this._controlActive=!1,this.domElement.getRootNode().removeEventListener("keyup",this._interceptControlUp,{passive:!0,capture:!0}))}function wt(l){let e=null,o=null,s=null,c=null,p=null,G=null,i=null,m=null;const g=t.ref([]),J=t.ref(new n.Vector3),C=t.ref(new n.Vector3),N=()=>{if(!l.value)return;e=new n.Scene,e.background=new n.Color(15790320);const r=l.value;o=new n.PerspectiveCamera(75,r.clientWidth/r.clientHeight,.1,1e4),o.position.set(8,-8,6),o.up.set(0,0,1),o.lookAt(0,0,0),s=new n.WebGLRenderer({antialias:!0,alpha:!0}),s.setSize(r.clientWidth,r.clientHeight),s.localClippingEnabled=!0,s.shadowMap.enabled=!0,s.shadowMap.type=n.PCFSoftShadowMap,s.toneMapping=n.ACESFilmicToneMapping,s.toneMappingExposure=1,s.outputColorSpace=n.SRGBColorSpace,r.appendChild(s.domElement),c=new Pt(o,s.domElement),c.enableDamping=!0,c.dampingFactor=.05,p=new n.Xe(o,s,{container:r,type:"cube",placement:"bottom-left",offset:{left:260,bottom:22},background:{color:"#D1D1D1",opacity:1},front:{label:"Top"},bottom:{label:"Front"},left:{label:"Left"},right:{label:"Right"},top:{label:"Back"},back:{label:"Bottom"}}),p.attachControls(c),v(),h()},O=(r,a)=>{i&&(e.remove(i),i.dispose()),m&&(e.remove(m),m.geometry.dispose(),m.material.dispose());const d=Math.min(Math.max(Math.floor(r/20),30),40);i=new n.GridHelper(r,d,13421772,14540253),i.rotateX(Math.PI/2),i.position.copy(a),e.add(i);const B=new n.PlaneGeometry(r,r),w=new n.ShadowMaterial({opacity:.3,color:0});m=new n.Mesh(B,w),m.position.copy(a),m.position.z-=.01,m.receiveShadow=!0,e.add(m)},D=()=>{if(g.value.length===0)return;const r=new n.Box3;g.value.forEach(T=>{r.expandByObject(T)});const a=r.getSize(new n.Vector3),d=r.getCenter(new n.Vector3),B=Math.max(a.x,a.y,a.z),w=Math.max(B*8,50),k=new n.Vector3(d.x,d.y,r.min.z);O(w,k)},v=()=>{const r=new n.AmbientLight(4210752,.6);e.add(r);const a=new n.DirectionalLight(16777215,2);a.position.set(10,10,8),a.castShadow=!0,a.shadow.mapSize.width=4096,a.shadow.mapSize.height=4096,a.shadow.camera.near=.5,a.shadow.camera.far=50,a.shadow.camera.left=-50,a.shadow.camera.right=50,a.shadow.camera.top=50,a.shadow.camera.bottom=-50,e.add(a);const d=new n.DirectionalLight(16777215,.8);d.position.set(-8,-8,6),e.add(d);const B=new n.DirectionalLight(16777215,.6);B.position.set(0,-15,2),e.add(B);const w=new n.HemisphereLight(16777215,4473924,.8);e.add(w);const k=new n.PointLight(16777215,1,50);k.position.set(15,15,15),e.add(k);const T=new n.PointLight(16777215,.5,50);T.position.set(-15,-15,15),e.add(T)},h=()=>{G=requestAnimationFrame(h),c&&c.update(),s&&e&&o&&s.render(e,o),p&&p.render()},f=r=>{["map","normalMap","bumpMap","roughnessMap","metalnessMap","emissiveMap","specularMap","envMap","lightMap","aoMap","displacementMap"].forEach(d=>{r[d]&&r[d].dispose&&r[d].dispose()}),r.dispose&&r.dispose()},y=r=>{r==null||r.traverse(a=>{a.geometry&&a.geometry.dispose(),a.material&&(Array.isArray(a.material)?a.material.forEach(d=>{f(d)}):f(a.material))})};return{currentModels:g,initialCameraPosition:J,initialTargetPosition:C,initThreeJS:N,handleResize:()=>{if(!l.value||!o||!s||!p)return;const r=l.value,a=r.clientWidth,d=r.clientHeight;o.aspect=a/d,o.updateProjectionMatrix(),s.setSize(a,d),p.update()},fitCameraToAllModels:()=>{if(!o||!c||g.value.length===0)return;const r=new n.Box3;g.value.forEach(T=>{r.expandByObject(T)});const a=r.getSize(new n.Vector3),d=r.getCenter(new n.Vector3),w=Math.max(a.x,a.y,a.z)*.8,k=new n.Vector3(d.x+w,d.y-w,d.z+w);o.position.copy(k),o.lookAt(d),c.target.copy(d),c.update(),J.value.copy(k),C.value.copy(d),D()},getThreeJSObjects:()=>({scene:e,camera:o,renderer:s,controls:c,gizmo:p}),clearAllModels:()=>{if(!e)return;g.value.forEach(a=>{e.remove(a),y(a)});const r=[];e.children.forEach(a=>{!a.isLight&&!a.isCamera&&a.type!=="GridHelper"&&a!==m&&r.push(a)}),r.forEach(a=>{e.remove(a),y(a)}),g.value=[],D()},cleanup:()=>{G&&cancelAnimationFrame(G),i&&i.dispose(),m&&(m.geometry.dispose(),m.material.dispose()),s&&s.dispose(),c&&c.dispose(),p&&p.dispose()},updateGridForModels:D}}function Bt(l,e){const o=t.ref(!1);let s=null,c=12700,p=new n.Vector3,G=new n.Vector3,i=new n.Vector3,m=0,g=null;const J=h=>h<.5?4*h*h*h:1-Math.pow(-2*h+2,3)/2,C=h=>{const f=new n.Vector3,y=m*1.2,E=new n.Vector3(i.x+y,i.y,i.z),V=new n.Vector3(i.x,i.y+y,i.z),x=new n.Vector3(i.x,i.y-y,i.z);if(h<=.567){const P=h/.567*Math.PI*2;f.x=i.x+Math.cos(P)*y,f.z=i.z+Math.sin(P)*y,f.y=i.y}else if(h<=.724){const _=(h-.567)/.157,P=J(_);f.lerpVectors(E,V,P)}else if(h<=.881){const _=(h-.724)/.157,r=J(_)*Math.PI;f.x=i.x+Math.sin(r)*y,f.y=i.y+Math.cos(r)*y,f.z=i.z}else{const _=(h-.881)/.119,P=J(_);f.lerpVectors(x,p,P)}return f},N=()=>{const{camera:h,controls:f}=l();if(!h||!f)return;s||(s=Date.now());const y=Date.now()-s,E=Math.min(y/c,1);if(E>=1){D();return}const V=C(E);h.position.copy(V),h.lookAt(i),f.target.copy(i),g=requestAnimationFrame(N)},O=()=>{if(e.value.length===0)return;const{camera:h,controls:f}=l();if(!h||!f)return;p.copy(h.position),G.copy(f.target);const y=new n.Box3;e.value.forEach(a=>{y.expandByObject(a)});const E=y.getSize(new n.Vector3);i=y.getCenter(new n.Vector3),m=Math.max(E.x,E.y,E.z)*1.2;const V=new n.Vector3(i.x+m*1.2,i.y,i.z);f.enabled=!1;const x=h.position.clone(),_=1e3,P=Date.now(),r=()=>{const a=Date.now()-P,d=Math.min(a/_,1),B=J(d);h.position.lerpVectors(x,V,B),h.lookAt(i),f.target.copy(i),d<1?requestAnimationFrame(r):(o.value=!0,s=null,N())};r()},D=()=>{o.value=!1,s=null,g&&(cancelAnimationFrame(g),g=null);const{controls:h}=l();h&&(h.enabled=!0,h.target.copy(G))};return{isAnimating:o,toggleAnimation:()=>{if(o.value){o.value=!1,s=null,g&&(cancelAnimationFrame(g),g=null);const{camera:h,controls:f}=l();if(!h||!f)return;f.enabled=!0;const y=h.position.clone(),E=f.target.clone(),V=1500,x=Date.now(),_=()=>{const P=Date.now()-x,r=Math.min(P/V,1),a=J(r);h.position.lerpVectors(y,p,a),f.target.lerpVectors(E,G,a),r<1&&requestAnimationFrame(_)};_()}else O()},startAnimation:O,stopAnimation:D}}function Rt(l,e){const o=t.ref(!1),s=t.ref("none");let c=[],p=[],G=new n.Box3,i=new n.Vector3;const m=()=>{c=[new n.Plane(new n.Vector3(1,0,0),0),new n.Plane(new n.Vector3(0,1,0),0),new n.Plane(new n.Vector3(0,0,1),0)]},g=()=>{G.makeEmpty(),e.value.forEach(v=>{G.expandByObject(v)}),i=G.getCenter(new n.Vector3)},J=v=>{const h=G.getSize(new n.Vector3);let f,y,E;v==="x"?(f=new n.PlaneGeometry(h.z*1.2,h.y*1.2),y=new n.Vector3(i.x,i.y,i.z),E=new n.Euler(0,Math.PI/2,0)):v==="y"?(f=new n.PlaneGeometry(h.x*1.2,h.z*1.2),y=new n.Vector3(i.x,i.y,i.z),E=new n.Euler(Math.PI/2,0,0)):v==="z"&&(f=new n.PlaneGeometry(h.x*1.2,h.y*1.2),y=new n.Vector3(i.x,i.y,i.z),E=new n.Euler(0,0,0));const V=new n.MeshPhongMaterial({color:8900331,transparent:!0,opacity:.3,side:n.DoubleSide,depthWrite:!1}),x=new n.Mesh(f,V);return x.position.copy(y),x.rotation.copy(E),x},C=()=>{if(N(),O(),s.value==="none")return;g();let v=null;if(s.value==="x"?(c[0].constant=-i.x,v=c[0]):s.value==="y"?(c[1].constant=-i.y,v=c[1]):s.value==="z"&&(c[2].constant=-i.z,v=c[2]),v){e.value.forEach(f=>{f.traverse(y=>{y.isMesh&&y.material&&(Array.isArray(y.material)?y.material.forEach(E=>{E.clippingPlanes=[v]}):y.material.clippingPlanes=[v])})});const{scene:h}=l();if(h){const f=J(s.value);h.add(f),p.push(f)}}},N=()=>{e.value.forEach(v=>{v.traverse(h=>{h.isMesh&&h.material&&(Array.isArray(h.material)?h.material.forEach(f=>{f.clippingPlanes=[]}):h.material.clippingPlanes=[])})})},O=()=>{const{scene:v}=l();v&&p.forEach(h=>{v.remove(h),h.geometry.dispose(),h.material.dispose()}),p=[]};return{isClipping:o,activeClippingAxis:s,toggleClipping:()=>{o.value=!o.value,o.value?(m(),e.value.length>0&&g()):(s.value="none",N(),O())},updateClippingPlanes:C,clearClippingPlanes:N,clearClippingMeshes:O}}const xt=[{"J1_Joint(GP1)":-.003172089,"J2_Joint(GP1)":-.096027484,"J3_Joint(GP1)":-1.118475479,"J4_Joint(GP1)":1.57418324,"J5_Joint(GP1)":1.572865909,"J6_Joint(GP1)":-.549141112,"BendRotatePart_Joint(GP2)":0,"BendMainPart_Joint(GP2)":-.05,"BendGuidePart_Joint(GP2)":-.015,"HolderRoate_Joint(GP3)":0},{"J1_Joint(GP1)":-.003172089,"J2_Joint(GP1)":-.096027484,"J3_Joint(GP1)":-1.118475479,"J4_Joint(GP1)":1.57418324,"J5_Joint(GP1)":1.572865909,"J6_Joint(GP1)":-.549141112,"BendRotatePart_Joint(GP2)":0,"BendMainPart_Joint(GP2)":0,"BendGuidePart_Joint(GP2)":0,"HolderRoate_Joint(GP3)":0},{"J1_Joint(GP1)":-.051468453,"J2_Joint(GP1)":-.094548525,"J3_Joint(GP1)":-1.117172585,"J4_Joint(GP1)":1.615414534,"J5_Joint(GP1)":1.598024878,"J6_Joint(GP1)":-.548360986,"BendRotatePart_Joint(GP2)":.860623343,"BendMainPart_Joint(GP2)":0,"BendGuidePart_Joint(GP2)":0,"HolderRoate_Joint(GP3)":0},{"J1_Joint(GP1)":-.051468453,"J2_Joint(GP1)":-.094548525,"J3_Joint(GP1)":-1.117172585,"J4_Joint(GP1)":1.615414534,"J5_Joint(GP1)":1.598024878,"J6_Joint(GP1)":-.548360986,"BendRotatePart_Joint(GP2)":.860623343,"BendMainPart_Joint(GP2)":-.05,"BendGuidePart_Joint(GP2)":-.015,"HolderRoate_Joint(GP3)":0},{"J1_Joint(GP1)":-.054269136,"J2_Joint(GP1)":-.09438254,"J3_Joint(GP1)":-1.117026191,"J4_Joint(GP1)":1.617807288,"J5_Joint(GP1)":1.59948194,"J6_Joint(GP1)":-.548274538,"BendRotatePart_Joint(GP2)":.860623343,"BendMainPart_Joint(GP2)":-.05,"BendGuidePart_Joint(GP2)":-.015,"HolderRoate_Joint(GP3)":0},{"J1_Joint(GP1)":-.054269136,"J2_Joint(GP1)":-.09438254,"J3_Joint(GP1)":-1.117026191,"J4_Joint(GP1)":1.617807288,"J5_Joint(GP1)":1.59948194,"J6_Joint(GP1)":-.548274538,"BendRotatePart_Joint(GP2)":0,"BendMainPart_Joint(GP2)":-.05,"BendGuidePart_Joint(GP2)":-.015,"HolderRoate_Joint(GP3)":0},{"J1_Joint(GP1)":-.07106296,"J2_Joint(GP1)":-.093202686,"J3_Joint(GP1)":-1.115984624,"J4_Joint(GP1)":1.632161558,"J5_Joint(GP1)":1.608211995,"J6_Joint(GP1)":-.547662192,"BendRotatePart_Joint(GP2)":0,"BendMainPart_Joint(GP2)":-.05,"BendGuidePart_Joint(GP2)":-.015,"HolderRoate_Joint(GP3)":-1.582839141},{"J1_Joint(GP1)":-.07106296,"J2_Joint(GP1)":-.093202686,"J3_Joint(GP1)":-1.115984624,"J4_Joint(GP1)":1.632161558,"J5_Joint(GP1)":1.608211995,"J6_Joint(GP1)":-.547662192,"BendRotatePart_Joint(GP2)":0,"BendMainPart_Joint(GP2)":0,"BendGuidePart_Joint(GP2)":0,"HolderRoate_Joint(GP3)":-1.582839141},{"J1_Joint(GP1)":-.15885978,"J2_Joint(GP1)":-.081876359,"J3_Joint(GP1)":-1.105898511,"J4_Joint(GP1)":1.707488829,"J5_Joint(GP1)":1.653550174,"J6_Joint(GP1)":-.541902553,"BendRotatePart_Joint(GP2)":1.584934783,"BendMainPart_Joint(GP2)":0,"BendGuidePart_Joint(GP2)":0,"HolderRoate_Joint(GP3)":-1.582839141},{"J1_Joint(GP1)":-.15885978,"J2_Joint(GP1)":-.081876359,"J3_Joint(GP1)":-1.105898511,"J4_Joint(GP1)":1.707488829,"J5_Joint(GP1)":1.653550174,"J6_Joint(GP1)":-.541902553,"BendRotatePart_Joint(GP2)":1.584934783,"BendMainPart_Joint(GP2)":-.05,"BendGuidePart_Joint(GP2)":-.015,"HolderRoate_Joint(GP3)":-1.582839141},{"J1_Joint(GP1)":-.161596827,"J2_Joint(GP1)":-.081383753,"J3_Joint(GP1)":-1.105456248,"J4_Joint(GP1)":1.709847399,"J5_Joint(GP1)":1.654952777,"J6_Joint(GP1)":-.541656255,"BendRotatePart_Joint(GP2)":1.584934783,"BendMainPart_Joint(GP2)":-.05,"BendGuidePart_Joint(GP2)":-.015,"HolderRoate_Joint(GP3)":-1.582839141},{"J1_Joint(GP1)":-.161596827,"J2_Joint(GP1)":-.081383753,"J3_Joint(GP1)":-1.105456248,"J4_Joint(GP1)":1.709847399,"J5_Joint(GP1)":1.654952777,"J6_Joint(GP1)":-.541656255,"BendRotatePart_Joint(GP2)":0,"BendMainPart_Joint(GP2)":-.05,"BendGuidePart_Joint(GP2)":-.015,"HolderRoate_Joint(GP3)":-1.582839141},{"J1_Joint(GP1)":-.206647418,"J2_Joint(GP1)":-.072058188,"J3_Joint(GP1)":-1.097027028,"J4_Joint(GP1)":1.748782637,"J5_Joint(GP1)":1.677920661,"J6_Joint(GP1)":-.53705618,"BendRotatePart_Joint(GP2)":0,"BendMainPart_Joint(GP2)":-.05,"BendGuidePart_Joint(GP2)":-.015,"HolderRoate_Joint(GP3)":-2.788687058},{"J1_Joint(GP1)":-.206647418,"J2_Joint(GP1)":-.072058188,"J3_Joint(GP1)":-1.097027028,"J4_Joint(GP1)":1.748782637,"J5_Joint(GP1)":1.677920661,"J6_Joint(GP1)":-.53705618,"BendRotatePart_Joint(GP2)":0,"BendMainPart_Joint(GP2)":0,"BendGuidePart_Joint(GP2)":0,"HolderRoate_Joint(GP3)":-2.788687058},{"J1_Joint(GP1)":-.222883715,"J2_Joint(GP1)":-.068132789,"J3_Joint(GP1)":-1.093446644,"J4_Joint(GP1)":1.762872336,"J5_Joint(GP1)":1.686139573,"J6_Joint(GP1)":-.535155089,"BendRotatePart_Joint(GP2)":.302813533,"BendMainPart_Joint(GP2)":0,"BendGuidePart_Joint(GP2)":0,"HolderRoate_Joint(GP3)":-2.788687058},{"J1_Joint(GP1)":-.222883715,"J2_Joint(GP1)":-.068132789,"J3_Joint(GP1)":-1.093446644,"J4_Joint(GP1)":1.762872336,"J5_Joint(GP1)":1.686139573,"J6_Joint(GP1)":-.535155089,"BendRotatePart_Joint(GP2)":.302813533,"BendMainPart_Joint(GP2)":-.05,"BendGuidePart_Joint(GP2)":-.015,"HolderRoate_Joint(GP3)":-2.788687058},{"J1_Joint(GP1)":-.225553405,"J2_Joint(GP1)":-.067458613,"J3_Joint(GP1)":-1.092829796,"J4_Joint(GP1)":1.765192186,"J5_Joint(GP1)":1.687487837,"J6_Joint(GP1)":-.534830668,"BendRotatePart_Joint(GP2)":.302813533,"BendMainPart_Joint(GP2)":-.05,"BendGuidePart_Joint(GP2)":-.015,"HolderRoate_Joint(GP3)":-2.788687058},{"J1_Joint(GP1)":-.225553405,"J2_Joint(GP1)":-.067458613,"J3_Joint(GP1)":-1.092829796,"J4_Joint(GP1)":1.765192186,"J5_Joint(GP1)":1.687487837,"J6_Joint(GP1)":-.534830668,"BendRotatePart_Joint(GP2)":0,"BendMainPart_Joint(GP2)":-.05,"BendGuidePart_Joint(GP2)":-.015,"HolderRoate_Joint(GP3)":-2.788687058},{"J1_Joint(GP1)":-.253794227,"J2_Joint(GP1)":-.059828421,"J3_Joint(GP1)":-1.085808974,"J4_Joint(GP1)":1.789788497,"J5_Joint(GP1)":1.701694229,"J6_Joint(GP1)":-.531201442,"BendRotatePart_Joint(GP2)":0,"BendMainPart_Joint(GP2)":-.05,"BendGuidePart_Joint(GP2)":-.015,"HolderRoate_Joint(GP3)":.352905596},{"J1_Joint(GP1)":-.253794227,"J2_Joint(GP1)":-.059828421,"J3_Joint(GP1)":-1.085808974,"J4_Joint(GP1)":1.789788497,"J5_Joint(GP1)":1.701694229,"J6_Joint(GP1)":-.531201442,"BendRotatePart_Joint(GP2)":0,"BendMainPart_Joint(GP2)":0,"BendGuidePart_Joint(GP2)":0,"HolderRoate_Joint(GP3)":.352905596},{"J1_Joint(GP1)":-.269664357,"J2_Joint(GP1)":-.055139299,"J3_Joint(GP1)":-1.081458321,"J4_Joint(GP1)":1.803657153,"J5_Joint(GP1)":1.709631958,"J6_Joint(GP1)":-.52900977,"BendRotatePart_Joint(GP2)":.302815131,"BendMainPart_Joint(GP2)":0,"BendGuidePart_Joint(GP2)":0,"HolderRoate_Joint(GP3)":.352905596},{"J1_Joint(GP1)":-.269664357,"J2_Joint(GP1)":-.055139299,"J3_Joint(GP1)":-1.081458321,"J4_Joint(GP1)":1.803657153,"J5_Joint(GP1)":1.709631958,"J6_Joint(GP1)":-.52900977,"BendRotatePart_Joint(GP2)":.302815131,"BendMainPart_Joint(GP2)":-.05,"BendGuidePart_Joint(GP2)":-.015,"HolderRoate_Joint(GP3)":.352905596},{"J1_Joint(GP1)":-.272271675,"J2_Joint(GP1)":-.05434119,"J3_Joint(GP1)":-1.080715087,"J4_Joint(GP1)":1.805938943,"J5_Joint(GP1)":1.710932883,"J6_Joint(GP1)":-.528639664,"BendRotatePart_Joint(GP2)":.302815131,"BendMainPart_Joint(GP2)":-.05,"BendGuidePart_Joint(GP2)":-.015,"HolderRoate_Joint(GP3)":.352905596},{"J1_Joint(GP1)":-.272271675,"J2_Joint(GP1)":-.05434119,"J3_Joint(GP1)":-1.080715087,"J4_Joint(GP1)":1.805938943,"J5_Joint(GP1)":1.710932883,"J6_Joint(GP1)":-.528639664,"BendRotatePart_Joint(GP2)":0,"BendMainPart_Joint(GP2)":-.05,"BendGuidePart_Joint(GP2)":-.015,"HolderRoate_Joint(GP3)":.352905596},{"J1_Joint(GP1)":-.666340342,"J2_Joint(GP1)":.165158009,"J3_Joint(GP1)":-.846100311,"J4_Joint(GP1)":2.1593725,"J5_Joint(GP1)":1.90543118,"J6_Joint(GP1)":-.458042565,"BendRotatePart_Joint(GP2)":0,"BendMainPart_Joint(GP2)":-.05,"BendGuidePart_Joint(GP2)":-.015,"HolderRoate_Joint(GP3)":.352905596},{"J1_Joint(GP1)":-.666340342,"J2_Joint(GP1)":.165158009,"J3_Joint(GP1)":-.846100311,"J4_Joint(GP1)":2.1593725,"J5_Joint(GP1)":1.90543118,"J6_Joint(GP1)":-.458042565,"BendRotatePart_Joint(GP2)":0,"BendMainPart_Joint(GP2)":0,"BendGuidePart_Joint(GP2)":0,"HolderRoate_Joint(GP3)":.352905596},{"J1_Joint(GP1)":-.676764437,"J2_Joint(GP1)":.174126178,"J3_Joint(GP1)":-.835263449,"J4_Joint(GP1)":2.168745148,"J5_Joint(GP1)":1.911070297,"J6_Joint(GP1)":-.456401397,"BendRotatePart_Joint(GP2)":.302813234,"BendMainPart_Joint(GP2)":0,"BendGuidePart_Joint(GP2)":0,"HolderRoate_Joint(GP3)":.352905596},{"J1_Joint(GP1)":-.676764437,"J2_Joint(GP1)":.174126178,"J3_Joint(GP1)":-.835263449,"J4_Joint(GP1)":2.168745148,"J5_Joint(GP1)":1.911070297,"J6_Joint(GP1)":-.456401397,"BendRotatePart_Joint(GP2)":.302813234,"BendMainPart_Joint(GP2)":-.05,"BendGuidePart_Joint(GP2)":-.015,"HolderRoate_Joint(GP3)":.352905596},{"J1_Joint(GP1)":-.678469051,"J2_Joint(GP1)":.175612656,"J3_Joint(GP1)":-.833458171,"J4_Joint(GP1)":2.170275986,"J5_Joint(GP1)":1.911999806,"J6_Joint(GP1)":-.456138025,"BendRotatePart_Joint(GP2)":.302813234,"BendMainPart_Joint(GP2)":-.05,"BendGuidePart_Joint(GP2)":-.015,"HolderRoate_Joint(GP3)":.352905596},{"J1_Joint(GP1)":-.678469051,"J2_Joint(GP1)":.175612656,"J3_Joint(GP1)":-.833458171,"J4_Joint(GP1)":2.170275986,"J5_Joint(GP1)":1.911999806,"J6_Joint(GP1)":-.456138025,"BendRotatePart_Joint(GP2)":0,"BendMainPart_Joint(GP2)":-.05,"BendGuidePart_Joint(GP2)":-.015,"HolderRoate_Joint(GP3)":.352905596},{"J1_Joint(GP1)":-.696352039,"J2_Joint(GP1)":.191555012,"J3_Joint(GP1)":-.813935936,"J4_Joint(GP1)":2.186300561,"J5_Joint(GP1)":1.921886405,"J6_Joint(GP1)":-.453466278,"BendRotatePart_Joint(GP2)":0,"BendMainPart_Joint(GP2)":-.05,"BendGuidePart_Joint(GP2)":-.015,"HolderRoate_Joint(GP3)":3.49449825},{"J1_Joint(GP1)":-.696352039,"J2_Joint(GP1)":.191555012,"J3_Joint(GP1)":-.813935936,"J4_Joint(GP1)":2.186300561,"J5_Joint(GP1)":1.921886405,"J6_Joint(GP1)":-.453466278,"BendRotatePart_Joint(GP2)":0,"BendMainPart_Joint(GP2)":0,"BendGuidePart_Joint(GP2)":0,"HolderRoate_Joint(GP3)":3.49449825},{"J1_Joint(GP1)":-.706279886,"J2_Joint(GP1)":.200687848,"J3_Joint(GP1)":-.80262089,"J4_Joint(GP1)":2.195165367,"J5_Joint(GP1)":1.927490122,"J6_Joint(GP1)":-.452060238,"BendRotatePart_Joint(GP2)":.302814632,"BendMainPart_Joint(GP2)":0,"BendGuidePart_Joint(GP2)":0,"HolderRoate_Joint(GP3)":3.49449825},{"J1_Joint(GP1)":-.706279886,"J2_Joint(GP1)":.200687848,"J3_Joint(GP1)":-.80262089,"J4_Joint(GP1)":2.195165367,"J5_Joint(GP1)":1.927490122,"J6_Joint(GP1)":-.452060238,"BendRotatePart_Joint(GP2)":.302814632,"BendMainPart_Joint(GP2)":-.05,"BendGuidePart_Joint(GP2)":-.015,"HolderRoate_Joint(GP3)":3.49449825},{"J1_Joint(GP1)":-.707903161,"J2_Joint(GP1)":.202200891,"J3_Joint(GP1)":-.800737154,"J4_Joint(GP1)":2.196612452,"J5_Joint(GP1)":1.928414793,"J6_Joint(GP1)":-.45183595,"BendRotatePart_Joint(GP2)":.302814632,"BendMainPart_Joint(GP2)":-.05,"BendGuidePart_Joint(GP2)":-.015,"HolderRoate_Joint(GP3)":3.49449825},{"J1_Joint(GP1)":-.707903161,"J2_Joint(GP1)":.202200891,"J3_Joint(GP1)":-.800737154,"J4_Joint(GP1)":2.196612452,"J5_Joint(GP1)":1.928414793,"J6_Joint(GP1)":-.45183595,"BendRotatePart_Joint(GP2)":0,"BendMainPart_Joint(GP2)":-.05,"BendGuidePart_Joint(GP2)":-.015,"HolderRoate_Joint(GP3)":3.49449825},{"J1_Joint(GP1)":-.734200754,"J2_Joint(GP1)":.227518671,"J3_Joint(GP1)":-.768834774,"J4_Joint(GP1)":2.219949057,"J5_Joint(GP1)":1.943757592,"J6_Joint(GP1)":-.448441828,"BendRotatePart_Joint(GP2)":0,"BendMainPart_Joint(GP2)":-.05,"BendGuidePart_Joint(GP2)":-.015,"HolderRoate_Joint(GP3)":4.700346166},{"J1_Joint(GP1)":-.734200754,"J2_Joint(GP1)":.227518671,"J3_Joint(GP1)":-.768834774,"J4_Joint(GP1)":2.219949057,"J5_Joint(GP1)":1.943757592,"J6_Joint(GP1)":-.448441828,"BendRotatePart_Joint(GP2)":0,"BendMainPart_Joint(GP2)":0,"BendGuidePart_Joint(GP2)":0,"HolderRoate_Joint(GP3)":4.700346166},{"J1_Joint(GP1)":-.781149218,"J2_Joint(GP1)":.276839725,"J3_Joint(GP1)":-.704674666,"J4_Joint(GP1)":2.260965081,"J5_Joint(GP1)":1.973194737,"J6_Joint(GP1)":-.443707106,"BendRotatePart_Joint(GP2)":1.584933185,"BendMainPart_Joint(GP2)":0,"BendGuidePart_Joint(GP2)":0,"HolderRoate_Joint(GP3)":4.700346166},{"J1_Joint(GP1)":-.781149218,"J2_Joint(GP1)":.276839725,"J3_Joint(GP1)":-.704674666,"J4_Joint(GP1)":2.260965081,"J5_Joint(GP1)":1.973194737,"J6_Joint(GP1)":-.443707106,"BendRotatePart_Joint(GP2)":1.584933185,"BendMainPart_Joint(GP2)":-.05,"BendGuidePart_Joint(GP2)":-.015,"HolderRoate_Joint(GP3)":4.700346166},{"J1_Joint(GP1)":-.782563443,"J2_Joint(GP1)":.278415273,"J3_Joint(GP1)":-.702582574,"J4_Joint(GP1)":2.262184408,"J5_Joint(GP1)":1.974129872,"J6_Joint(GP1)":-.443595316,"BendRotatePart_Joint(GP2)":1.584933185,"BendMainPart_Joint(GP2)":-.05,"BendGuidePart_Joint(GP2)":-.015,"HolderRoate_Joint(GP3)":4.700346166},{"J1_Joint(GP1)":-.782563443,"J2_Joint(GP1)":.278415273,"J3_Joint(GP1)":-.702582574,"J4_Joint(GP1)":2.262184408,"J5_Joint(GP1)":1.974129872,"J6_Joint(GP1)":-.443595316,"BendRotatePart_Joint(GP2)":0,"BendMainPart_Joint(GP2)":-.05,"BendGuidePart_Joint(GP2)":-.015,"HolderRoate_Joint(GP3)":4.700346166},{"J1_Joint(GP1)":-.790970382,"J2_Joint(GP1)":.287898042,"J3_Joint(GP1)":-.689936686,"J4_Joint(GP1)":2.269409635,"J5_Joint(GP1)":1.979755278,"J6_Joint(GP1)":-.442972648,"BendRotatePart_Joint(GP2)":0,"BendMainPart_Joint(GP2)":-.05,"BendGuidePart_Joint(GP2)":-.015,"HolderRoate_Joint(GP3)":6.283185307},{"J1_Joint(GP1)":-.790970382,"J2_Joint(GP1)":.287898042,"J3_Joint(GP1)":-.689936686,"J4_Joint(GP1)":2.269409635,"J5_Joint(GP1)":1.979755278,"J6_Joint(GP1)":-.442972648,"BendRotatePart_Joint(GP2)":0,"BendMainPart_Joint(GP2)":0,"BendGuidePart_Joint(GP2)":0,"HolderRoate_Joint(GP3)":6.283185307},{"J1_Joint(GP1)":-.81430373,"J2_Joint(GP1)":.315316096,"J3_Joint(GP1)":-.652859101,"J4_Joint(GP1)":2.28923367,"J5_Joint(GP1)":1.996012131,"J6_Joint(GP1)":-.441647984,"BendRotatePart_Joint(GP2)":.860625939,"BendMainPart_Joint(GP2)":0,"BendGuidePart_Joint(GP2)":0,"HolderRoate_Joint(GP3)":6.283185307},{"J1_Joint(GP1)":-.81430373,"J2_Joint(GP1)":.315316096,"J3_Joint(GP1)":-.652859101,"J4_Joint(GP1)":2.28923367,"J5_Joint(GP1)":1.996012131,"J6_Joint(GP1)":-.441647984,"BendRotatePart_Joint(GP2)":.860625939,"BendMainPart_Joint(GP2)":-.05,"BendGuidePart_Joint(GP2)":-.015,"HolderRoate_Joint(GP3)":6.283185307},{"J1_Joint(GP1)":-.815624991,"J2_Joint(GP1)":.31691936,"J3_Joint(GP1)":-.650667784,"J4_Joint(GP1)":2.290345082,"J5_Joint(GP1)":1.9969632,"J6_Joint(GP1)":-.441592027,"BendRotatePart_Joint(GP2)":.860625939,"BendMainPart_Joint(GP2)":-.05,"BendGuidePart_Joint(GP2)":-.015,"HolderRoate_Joint(GP3)":6.283185307},{"J1_Joint(GP1)":-.815624991,"J2_Joint(GP1)":.31691936,"J3_Joint(GP1)":-.650667784,"J4_Joint(GP1)":2.290345082,"J5_Joint(GP1)":1.9969632,"J6_Joint(GP1)":-.441592027,"BendRotatePart_Joint(GP2)":0,"BendMainPart_Joint(GP2)":-.05,"BendGuidePart_Joint(GP2)":-.015,"HolderRoate_Joint(GP3)":6.283185307},{"J1_Joint(GP1)":-.856703221,"J2_Joint(GP1)":.369769111,"J3_Joint(GP1)":-.577053756,"J4_Joint(GP1)":2.324173006,"J5_Joint(GP1)":2.028430263,"J6_Joint(GP1)":-.441031864,"BendRotatePart_Joint(GP2)":0,"BendMainPart_Joint(GP2)":-.05,"BendGuidePart_Joint(GP2)":-.015,"HolderRoate_Joint(GP3)":6.283185307},{"J1_Joint(GP1)":-.856703221,"J2_Joint(GP1)":.369769111,"J3_Joint(GP1)":-.577053756,"J4_Joint(GP1)":2.324173006,"J5_Joint(GP1)":2.028430263,"J6_Joint(GP1)":-.441031864,"BendRotatePart_Joint(GP2)":0,"BendMainPart_Joint(GP2)":0,"BendGuidePart_Joint(GP2)":0,"HolderRoate_Joint(GP3)":6.283185307},{"J1_Joint(GP1)":-.856703221,"J2_Joint(GP1)":.369769111,"J3_Joint(GP1)":-.577053756,"J4_Joint(GP1)":2.324173006,"J5_Joint(GP1)":2.028430263,"J6_Joint(GP1)":-.441031864,"BendRotatePart_Joint(GP2)":0,"BendMainPart_Joint(GP2)":-.05,"BendGuidePart_Joint(GP2)":-.015,"HolderRoate_Joint(GP3)":6.283185307},{"J1_Joint(GP1)":-.85790624,"J2_Joint(GP1)":.371411093,"J3_Joint(GP1)":-.574724957,"J4_Joint(GP1)":2.325139523,"J5_Joint(GP1)":2.029413042,"J6_Joint(GP1)":-.441053498,"BendRotatePart_Joint(GP2)":0,"BendMainPart_Joint(GP2)":-.05,"BendGuidePart_Joint(GP2)":-.015,"HolderRoate_Joint(GP3)":6.283185307}],Dt={key:0,class:"jointPanel-container"},Vt={class:"panel-actions"},kt=["disabled"],Ct={class:"panel-content"},Tt={key:0,class:"joints-list"},St={class:"joint-info-row"},At={class:"joint-left"},Nt={class:"joint-name"},Ot={class:"joint-range"},Lt={class:"joint-type"},Ht={key:0,class:"joint-control-row"},zt={class:"slider-container"},jt=["min","max","value","onInput","disabled"],It={class:"value-display"},Ut={class:"joint-value"},Ft={class:"unit"},Yt={key:1,class:"empty-state"},Zt=1e3,Kt={__name:"jointPanel",props:{model:Object},setup(l,{expose:e}){const o=l,s=t.ref(!0),c=t.ref([]),p=t.ref(null),G=t.ref(!1),i=t.ref(null),m=xt;m.length>0&&Object.keys(m[0]);const g=(_,P=!1)=>_==="revolute"?P?Math.PI:-Math.PI:_==="prismatic"?P?1:-1:0,J=_=>{if(!_||!_.joints)return console.warn("URDF模型没有关节信息"),[];const P=[];return Object.keys(_.joints).forEach(r=>{const a=_.joints[r];if(a._jointType==="fixed")return;const d=a.limit?{lower:a.limit.lower??g(a._jointType,!1),upper:a.limit.upper??g(a._jointType,!0)}:{lower:g(a._jointType,!1),upper:g(a._jointType,!0)};P.push({name:r,type:a._jointType||"unknown",limit:d,currentValue:a.angle||0,urdfJoint:a})}),P.sort((r,a)=>r.name.localeCompare(a.name))},C=(_,P)=>{const r=c.value.find(d=>d.name===_);if(!r)return;const a=parseFloat(P);if(r.limit){const d=Math.max(r.limit.lower,Math.min(r.limit.upper,a));r.currentValue=d}else r.currentValue=a;o.model&&o.model.setJointValue?o.model.setJointValue(_,r.currentValue):r.urdfJoint&&r.urdfJoint.setJointValue(r.currentValue)},N=_=>{_&&Object.keys(_).forEach(P=>{const r=_[P],a=c.value.find(d=>d.name===P);a&&(a.currentValue=r,o.model&&o.model.setJointValue?o.model.setJointValue(P,r):a.urdfJoint&&a.urdfJoint.setJointValue(r))})},O=(_,P,r)=>_+(P-_)*r,D=(_,P,r)=>{if(!_||!P)return _||P;const a={};return Object.keys(_).forEach(d=>{const B=_[d],w=P[d];a[d]=O(B,w||B,r)}),a},v=()=>{G.value?f():h()},h=()=>{if(m.length===0){console.warn("没有动画数据");return}G.value=!0;const _=m.length,P=60,r=Zt/P;let a=0,d=0;const B=()=>{if(!G.value)return;const w=a/P,k=m[d],T=m[d+1];if(T){const H=D(k,T,w);N(H)}else N(k);if(a++,a>=P&&(a=0,d++,d>=_-1)){f();return}i.value=setTimeout(B,r)};B()},f=()=>{G.value=!1,i.value&&(clearTimeout(i.value),i.value=null)},y=()=>{c.value.forEach(_=>{(_.type==="revolute"||_.type==="prismatic")&&C(_.name,0)})};t.watch(()=>o.model,_=>{_?c.value=J(_):c.value=[]},{immediate:!0});const E=()=>{!o.model||G.value||c.value.forEach(_=>{_.urdfJoint&&_.urdfJoint.angle!==void 0&&(_.currentValue=_.urdfJoint.angle)})},V=()=>{const _=()=>{E(),p.value=requestAnimationFrame(_)};_()},x=()=>{p.value&&(cancelAnimationFrame(p.value),p.value=null)};return t.onMounted(()=>{V()}),t.onUnmounted(()=>{x(),f()}),e({startAnimation:h}),(_,P)=>{const r=t.resolveComponent("el-scrollbar"),a=t.resolveComponent("el-collapse-transition");return l.model?(t.openBlock(),t.createElementBlock("div",Dt,[t.createElementVNode("div",{class:"panel-header",onClick:P[0]||(P[0]=d=>s.value=!s.value)},P[1]||(P[1]=[t.createElementVNode("h3",null,"关节控制面板",-1)])),t.createVNode(a,null,{default:t.withCtx(()=>[t.withDirectives(t.createVNode(r,{"max-height":"650px"},{default:t.withCtx(()=>[t.createElementVNode("div",Vt,[t.createElementVNode("button",{onClick:v,class:"animate-btn"},t.toDisplayString(G.value?"停止动画":"开始动画"),1),t.createElementVNode("button",{onClick:y,disabled:G.value},"重置所有关节",8,kt)]),t.createElementVNode("div",Ct,[c.value.length>0?(t.openBlock(),t.createElementBlock("div",Tt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.value,d=>{var B,w,k,T;return t.openBlock(),t.createElementBlock("div",{key:d.name,class:"joint-item"},[t.createElementVNode("div",St,[t.createElementVNode("div",At,[t.createElementVNode("span",Nt,t.toDisplayString(d.name),1),t.createElementVNode("span",Ot," ["+t.toDisplayString(((B=d.limit)==null?void 0:B.lower.toFixed(2))??(d.type==="revolute"?"-3.14":"-1.00"))+", "+t.toDisplayString(((w=d.limit)==null?void 0:w.upper.toFixed(2))??(d.type==="revolute"?"3.14":"1.00"))+"] ",1)]),t.createElementVNode("span",Lt,t.toDisplayString(d.type),1)]),d.type==="revolute"||d.type==="prismatic"?(t.openBlock(),t.createElementBlock("div",Ht,[t.createElementVNode("div",zt,[t.createElementVNode("input",{type:"range",min:((k=d.limit)==null?void 0:k.lower)??(d.type==="revolute"?-Math.PI:-1),max:((T=d.limit)==null?void 0:T.upper)??(d.type==="revolute"?Math.PI:1),step:.01,value:d.currentValue,onInput:H=>C(d.name,H.target.value),class:"joint-slider",disabled:G.value},null,40,jt)]),t.createElementVNode("div",It,[t.createElementVNode("span",Ut,t.toDisplayString(d.currentValue.toFixed(3)),1),t.createElementVNode("span",Ft,t.toDisplayString(d.type==="revolute"?"rad":"m"),1)])])):t.createCommentVNode("",!0)])}),128))])):(t.openBlock(),t.createElementBlock("div",Yt,P[2]||(P[2]=[t.createElementVNode("p",null,"未检测到可控制的关节",-1)])))])]),_:1},512),[[t.vShow,s.value]])]),_:1})])):t.createCommentVNode("",!0)}}},Xt=j._export_sfc(Kt,[["__scopeId","data-v-69f8c556"]]),$t={class:"obj-viewer-container"},Wt={class:"floating-controls"},qt=["disabled"],Qt=["disabled","title"],te={key:0,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},ee={key:1,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},oe=["disabled"],ne=["title"],ie={key:0,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},ae={key:1,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},se={key:2,class:"clipping-panel"},re={class:"panel-content"},le={class:"radio-group"},ce={class:"radio-label"},de={class:"radio-label"},he={class:"radio-label"},_e={class:"radio-label"},Pe={key:3,class:"loading-overlay"},Je={__name:"threeModel",setup(l,{expose:e}){let o=null;const s=t.ref(null),c=t.ref(!1),p=t.ref(""),G=t.ref(!1),i=t.ref(!1),m=t.ref(!1),g=t.ref(null),{currentModels:J,initialCameraPosition:C,initialTargetPosition:N,initThreeJS:O,handleResize:D,fitCameraToAllModels:v,getThreeJSObjects:h,clearAllModels:f,cleanup:y}=wt(s),{isAnimating:E,toggleAnimation:V,stopAnimation:x}=Bt(h,J),{isClipping:_,activeClippingAxis:P,toggleClipping:r,updateClippingPlanes:a}=Rt(h,J),{addModelsFromUrls:d,loadModelByDefaultPath:B,urdfModel:w}=n.useModelLoader(h,J,c,p,f),k=()=>{if(m.value||J.value.length===0)return;m.value=!0,E.value&&x();const{camera:S,controls:u}=h();if(!S||!u)return;u.enabled=!0;const M=L=>L<.5?4*L*L*L:1-Math.pow(-2*L+2,3)/2,et=S.position.clone(),ot=u.target.clone(),nt=1500,it=Date.now(),Z=()=>{const L=Date.now()-it,K=Math.min(L/nt,1),X=M(K);S.position.lerpVectors(et,C.value,X),u.target.lerpVectors(ot,N.value,X),K<1?requestAnimationFrame(Z):m.value=!1};Z()},T=()=>{G.value=!0,w&&(g.value.startAnimation(),G.value=!1)};t.watch(()=>w,()=>{g.value.startAnimation(),G.value=!1},{deep:!0});const H=()=>{document.fullscreenElement?document.exitFullscreen().then(()=>{i.value=!1,t.nextTick(()=>{D()})}).catch(S=>{console.error("无法退出全屏:",S)}):s.value.requestFullscreen().then(()=>{i.value=!0,t.nextTick(()=>{D()})}).catch(S=>{console.error("无法进入全屏:",S)})},F=()=>{i.value=!!document.fullscreenElement,i.value||t.nextTick(()=>{D()})},Y=async(S,u)=>{try{E.value&&x(),_.value&&r();const M=await u(S);return v(),M}catch(M){throw console.error("加载模型失败:",M),M}},Q=async S=>Y(S,d),tt=async S=>Y(S,B);return t.onMounted(async()=>{await t.nextTick(),O(),o=h().scene,window.addEventListener("resize",D),document.addEventListener("fullscreenchange",F)}),t.onBeforeUnmount(()=>{window.removeEventListener("resize",D),document.removeEventListener("fullscreenchange",F),E.value&&x(),y()}),e({addModelsFromUrls:Q,loadModelByDefaultPath:tt,startRunningAnimation:T}),(S,u)=>(t.openBlock(),t.createElementBlock("div",$t,[t.unref(w)?(t.openBlock(),t.createBlock(ht,{key:0,model:t.unref(w)},null,8,["model"])):t.createCommentVNode("",!0),t.unref(w)?(t.openBlock(),t.createBlock(Xt,{key:1,model:t.unref(w),scene:t.unref(o),ref_key:"jointRef",ref:g},null,8,["model","scene"])):t.createCommentVNode("",!0),t.createElementVNode("div",{ref_key:"threejsContainer",ref:s,class:"threejs-container"},null,512),t.createElementVNode("div",Wt,[t.createElementVNode("button",{onClick:k,class:t.normalizeClass(["control-btn","reset-btn"]),disabled:c.value||t.unref(J).length===0||m.value,title:"重置"},u[10]||(u[10]=[t.createElementVNode("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[t.createElementVNode("path",{d:"M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"}),t.createElementVNode("polyline",{points:"9,22 9,12 15,12 15,22"})],-1)]),8,qt),t.createElementVNode("button",{onClick:u[0]||(u[0]=(...M)=>t.unref(V)&&t.unref(V)(...M)),class:t.normalizeClass(["control-btn","animation-btn",{active:t.unref(E)}]),disabled:c.value||t.unref(J).length===0,title:t.unref(E)?"停止动画":"动画视图"},[t.unref(E)?(t.openBlock(),t.createElementBlock("svg",ee,u[12]||(u[12]=[t.createElementVNode("circle",{cx:"12",cy:"12",r:"10"},null,-1),t.createElementVNode("rect",{x:"9.5",y:"8",width:"2",height:"8",fill:"currentColor"},null,-1),t.createElementVNode("rect",{x:"12.5",y:"8",width:"2",height:"8",fill:"currentColor"},null,-1)]))):(t.openBlock(),t.createElementBlock("svg",te,u[11]||(u[11]=[t.createElementVNode("circle",{cx:"12",cy:"12",r:"10"},null,-1),t.createElementVNode("polygon",{points:"10,8 16,12 10,16",fill:"currentColor"},null,-1)])))],10,Qt),t.createElementVNode("button",{onClick:u[1]||(u[1]=(...M)=>t.unref(r)&&t.unref(r)(...M)),class:t.normalizeClass(["control-btn","clipping-btn",{active:t.unref(_)}]),disabled:c.value||t.unref(J).length===0,title:"剖面视图"},u[13]||(u[13]=[t.createElementVNode("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[t.createElementVNode("rect",{x:"3",y:"3",width:"18",height:"18"}),t.createElementVNode("line",{x1:"-14",y1:"12",x2:"30",y2:"12","stroke-dasharray":"4,2"})],-1)]),10,oe),t.createElementVNode("button",{onClick:H,class:t.normalizeClass(["control-btn","fullscreen-btn"]),title:i.value?"退出全屏":"全屏"},[i.value?(t.openBlock(),t.createElementBlock("svg",ae,u[15]||(u[15]=[t.createElementVNode("path",{d:"M8 3v3a2 2 0 0 1-2 2H3m18 0h-3a2 2 0 0 1-2-2V3m0 18v-3a2 2 0 0 1 2-2h3M3 16h3a2 2 0 0 1 2 2v3"},null,-1)]))):(t.openBlock(),t.createElementBlock("svg",ie,u[14]||(u[14]=[t.createElementVNode("path",{d:"M8 3H5a2 2 0 0 0-2 2v3m18 0V5a2 2 0 0 0-2-2h-3m0 18h3a2 2 0 0 0 2-2v-3M3 16v3a2 2 0 0 0 2 2h3"},null,-1)])))],8,ne)]),t.unref(_)?(t.openBlock(),t.createElementBlock("div",se,[t.createElementVNode("div",re,[t.createElementVNode("div",le,[t.createElementVNode("label",ce,[t.withDirectives(t.createElementVNode("input",{type:"radio",name:"clipping-axis",value:"none","onUpdate:modelValue":u[2]||(u[2]=M=>t.isRef(P)?P.value=M:null),onChange:u[3]||(u[3]=(...M)=>t.unref(a)&&t.unref(a)(...M))},null,544),[[t.vModelRadio,t.unref(P)]]),u[16]||(u[16]=t.createElementVNode("span",{class:"radio-text"},"无切割",-1))]),t.createElementVNode("label",de,[t.withDirectives(t.createElementVNode("input",{type:"radio",name:"clipping-axis",value:"x","onUpdate:modelValue":u[4]||(u[4]=M=>t.isRef(P)?P.value=M:null),onChange:u[5]||(u[5]=(...M)=>t.unref(a)&&t.unref(a)(...M))},null,544),[[t.vModelRadio,t.unref(P)]]),u[17]||(u[17]=t.createElementVNode("span",{class:"radio-text"},"X轴切割",-1))]),t.createElementVNode("label",he,[t.withDirectives(t.createElementVNode("input",{type:"radio",name:"clipping-axis",value:"y","onUpdate:modelValue":u[6]||(u[6]=M=>t.isRef(P)?P.value=M:null),onChange:u[7]||(u[7]=(...M)=>t.unref(a)&&t.unref(a)(...M))},null,544),[[t.vModelRadio,t.unref(P)]]),u[18]||(u[18]=t.createElementVNode("span",{class:"radio-text"},"Y轴切割",-1))]),t.createElementVNode("label",_e,[t.withDirectives(t.createElementVNode("input",{type:"radio",name:"clipping-axis",value:"z","onUpdate:modelValue":u[8]||(u[8]=M=>t.isRef(P)?P.value=M:null),onChange:u[9]||(u[9]=(...M)=>t.unref(a)&&t.unref(a)(...M))},null,544),[[t.vModelRadio,t.unref(P)]]),u[19]||(u[19]=t.createElementVNode("span",{class:"radio-text"},"Z轴切割",-1))])])])])):t.createCommentVNode("",!0),c.value?(t.openBlock(),t.createElementBlock("div",Pe,[u[20]||(u[20]=t.createElementVNode("div",{class:"loading-spinner"},null,-1)),t.createElementVNode("p",null,t.toDisplayString(p.value),1)])):t.createCommentVNode("",!0)]))}},ue=j._export_sfc(Je,[["__scopeId","data-v-3d52b35a"]]);exports.default=ue;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),n=require("./threeModel.vue_vue_type_style_index_0_scoped_55d9773d_lang-DMIfmZ8j.cjs"),j=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),at={class:"tree-container"},st=t.defineComponent({__name:"index",props:{treeData:Array,expand:{type:Boolean,default:!1}},emits:["nodeClick"],setup(l,{emit:e}){const o=e,s=l,c={children:"children",label:"label"},p=G=>{o("nodeClick",G)};return(G,i)=>{const m=t.resolveComponent("el-tree");return t.openBlock(),t.createElementBlock("div",at,[t.createVNode(m,{data:s==null?void 0:s.treeData,props:c,"default-expand-all":l.expand,onNodeClick:p},null,8,["data","default-expand-all"])])}}}),rt=j._export_sfc(st,[["__scopeId","data-v-b4bd4658"]]),lt={key:0,class:"jointPanel-container"},ct={class:"panel-content"},dt=t.defineComponent({__name:"robotMenu",props:{model:Object},setup(l){const e=l,o=t.ref(!0),s=t.ref([]),c=(i,m=0)=>{const g=[];return Array.isArray(i)&&(i==null?void 0:i.length)>0&&i.forEach(J=>{if(!(J!=null&&J.isMesh)&&((J==null?void 0:J.type)==="URDFJoint"||(J==null?void 0:J.type)==="URDFLink")){const C={name:J==null?void 0:J.name,label:J==null?void 0:J.name,show:!0,level:m+1,isPenultimate:!1,type:J==null?void 0:J.type,id:J==null?void 0:J.id,limit:(J==null?void 0:J.limit)??"",children:c(J==null?void 0:J.children,m+1),path:J==null?void 0:J.name};g.push(C)}}),g},p=i=>i?[{name:i==null?void 0:i.name,label:i==null?void 0:i.name,show:!0,level:1,isPenultimate:!1,type:i==null?void 0:i.type,id:i==null?void 0:i.id,limit:(i==null?void 0:i.limit)??"",children:c(i==null?void 0:i.children,1),path:i==null?void 0:i.name}]:[],G=t.computed(()=>e!=null&&e.model?p(e.model):[]);return t.watch(G,i=>{s.value=JSON.parse(JSON.stringify(i))},{immediate:!0}),(i,m)=>{const g=t.resolveComponent("el-scrollbar"),J=t.resolveComponent("el-collapse-transition");return l.model?(t.openBlock(),t.createElementBlock("div",lt,[t.createElementVNode("div",{class:"panel-header",onClick:m[0]||(m[0]=C=>o.value=!o.value)},m[1]||(m[1]=[t.createElementVNode("h3",null,"URDF树",-1)])),t.createVNode(J,null,{default:t.withCtx(()=>[t.withDirectives(t.createVNode(g,{"max-height":"600px"},{default:t.withCtx(()=>[t.createElementVNode("div",ct,[t.createVNode(rt,{treeData:s.value,expand:!0},null,8,["treeData"])])]),_:1},512),[[t.vShow,o.value]])]),_:1})])):t.createCommentVNode("",!0)}}}),ht=j._export_sfc(dt,[["__scopeId","data-v-bc2f3f82"]]),$={type:"change"},U={type:"start"},q={type:"end"},z=new n.Ray,W=new n.Plane,_t=Math.cos(70*n.MathUtils.DEG2RAD),R=new n.Vector3,A=2*Math.PI,b={NONE:-1,ROTATE:0,DOLLY:1,PAN:2,TOUCH_ROTATE:3,TOUCH_PAN:4,TOUCH_DOLLY_PAN:5,TOUCH_DOLLY_ROTATE:6},I=1e-6;class Pt extends n.Controls{constructor(e,o=null){super(e,o),this.state=b.NONE,this.target=new n.Vector3,this.cursor=new n.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:n.MOUSE.ROTATE,MIDDLE:n.MOUSE.DOLLY,RIGHT:n.MOUSE.PAN},this.touches={ONE:n.TOUCH.ROTATE,TWO:n.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 n.Vector3,this._lastQuaternion=new n.Quaternion,this._lastTargetPosition=new n.Vector3,this._quat=new n.Quaternion().setFromUnitVectors(e.up,new n.Vector3(0,1,0)),this._quatInverse=this._quat.clone().invert(),this._spherical=new n.Spherical,this._sphericalDelta=new n.Spherical,this._scale=1,this._panOffset=new n.Vector3,this._rotateStart=new n.Vector2,this._rotateEnd=new n.Vector2,this._rotateDelta=new n.Vector2,this._panStart=new n.Vector2,this._panEnd=new n.Vector2,this._panDelta=new n.Vector2,this._dollyStart=new n.Vector2,this._dollyEnd=new n.Vector2,this._dollyDelta=new n.Vector2,this._dollyDirection=new n.Vector3,this._mouse=new n.Vector2,this._performCursorZoom=!1,this._pointers=[],this._pointerPositions={},this._controlActive=!1,this._onPointerMove=ut.bind(this),this._onPointerDown=Jt.bind(this),this._onPointerUp=pt.bind(this),this._onContextMenu=Et.bind(this),this._onMouseWheel=ft.bind(this),this._onKeyDown=gt.bind(this),this._onTouchStart=yt.bind(this),this._onTouchMove=bt.bind(this),this._onMouseDown=mt.bind(this),this._onMouseMove=Gt.bind(this),this._interceptControlDown=Mt.bind(this),this._interceptControlUp=vt.bind(this),this.domElement!==null&&this.connect(this.domElement),this.update()}connect(e){super.connect(e),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(e){e.addEventListener("keydown",this._onKeyDown),this._domElementKeyEvents=e}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($),this.update(),this.state=b.NONE}update(e=null){const o=this.object.position;R.copy(o).sub(this.target),R.applyQuaternion(this._quat),this._spherical.setFromVector3(R),this.autoRotate&&this.state===b.NONE&&this._rotateLeft(this._getAutoRotationAngle(e)),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 s=this.minAzimuthAngle,c=this.maxAzimuthAngle;isFinite(s)&&isFinite(c)&&(s<-Math.PI?s+=A:s>Math.PI&&(s-=A),c<-Math.PI?c+=A:c>Math.PI&&(c-=A),s<=c?this._spherical.theta=Math.max(s,Math.min(c,this._spherical.theta)):this._spherical.theta=this._spherical.theta>(s+c)/2?Math.max(s,this._spherical.theta):Math.min(c,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 p=!1;if(this.zoomToCursor&&this._performCursorZoom||this.object.isOrthographicCamera)this._spherical.radius=this._clampDistance(this._spherical.radius);else{const G=this._spherical.radius;this._spherical.radius=this._clampDistance(this._spherical.radius*this._scale),p=G!=this._spherical.radius}if(R.setFromSpherical(this._spherical),R.applyQuaternion(this._quatInverse),o.copy(this.target).add(R),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 G=null;if(this.object.isPerspectiveCamera){const i=R.length();G=this._clampDistance(i*this._scale);const m=i-G;this.object.position.addScaledVector(this._dollyDirection,m),this.object.updateMatrixWorld(),p=!!m}else if(this.object.isOrthographicCamera){const i=new n.Vector3(this._mouse.x,this._mouse.y,0);i.unproject(this.object);const m=this.object.zoom;this.object.zoom=Math.max(this.minZoom,Math.min(this.maxZoom,this.object.zoom/this._scale)),this.object.updateProjectionMatrix(),p=m!==this.object.zoom;const g=new n.Vector3(this._mouse.x,this._mouse.y,0);g.unproject(this.object),this.object.position.sub(g).add(i),this.object.updateMatrixWorld(),G=R.length()}else console.warn("WARNING: OrbitControls.js encountered an unknown camera type - zoom to cursor disabled."),this.zoomToCursor=!1;G!==null&&(this.screenSpacePanning?this.target.set(0,0,-1).transformDirection(this.object.matrix).multiplyScalar(G).add(this.object.position):(z.origin.copy(this.object.position),z.direction.set(0,0,-1).transformDirection(this.object.matrix),Math.abs(this.object.up.dot(z.direction))<_t?this.object.lookAt(this.target):(W.setFromNormalAndCoplanarPoint(this.object.up,this.target),z.intersectPlane(W,this.target))))}else if(this.object.isOrthographicCamera){const G=this.object.zoom;this.object.zoom=Math.max(this.minZoom,Math.min(this.maxZoom,this.object.zoom/this._scale)),G!==this.object.zoom&&(this.object.updateProjectionMatrix(),p=!0)}return this._scale=1,this._performCursorZoom=!1,p||this._lastPosition.distanceToSquared(this.object.position)>I||8*(1-this._lastQuaternion.dot(this.object.quaternion))>I||this._lastTargetPosition.distanceToSquared(this.target)>I?(this.dispatchEvent($),this._lastPosition.copy(this.object.position),this._lastQuaternion.copy(this.object.quaternion),this._lastTargetPosition.copy(this.target),!0):!1}_getAutoRotationAngle(e){return e!==null?A/60*this.autoRotateSpeed*e:A/60/60*this.autoRotateSpeed}_getZoomScale(e){const o=Math.abs(e*.01);return Math.pow(.95,this.zoomSpeed*o)}_rotateLeft(e){this._sphericalDelta.theta-=e}_rotateUp(e){this._sphericalDelta.phi-=e}_panLeft(e,o){R.setFromMatrixColumn(o,0),R.multiplyScalar(-e),this._panOffset.add(R)}_panUp(e,o){this.screenSpacePanning===!0?R.setFromMatrixColumn(o,1):(R.setFromMatrixColumn(o,0),R.crossVectors(this.object.up,R)),R.multiplyScalar(e),this._panOffset.add(R)}_pan(e,o){const s=this.domElement;if(this.object.isPerspectiveCamera){const c=this.object.position;R.copy(c).sub(this.target);let p=R.length();p*=Math.tan(this.object.fov/2*Math.PI/180),this._panLeft(2*e*p/s.clientHeight,this.object.matrix),this._panUp(2*o*p/s.clientHeight,this.object.matrix)}else this.object.isOrthographicCamera?(this._panLeft(e*(this.object.right-this.object.left)/this.object.zoom/s.clientWidth,this.object.matrix),this._panUp(o*(this.object.top-this.object.bottom)/this.object.zoom/s.clientHeight,this.object.matrix)):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - pan disabled."),this.enablePan=!1)}_dollyOut(e){this.object.isPerspectiveCamera||this.object.isOrthographicCamera?this._scale/=e:(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),this.enableZoom=!1)}_dollyIn(e){this.object.isPerspectiveCamera||this.object.isOrthographicCamera?this._scale*=e:(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),this.enableZoom=!1)}_updateZoomParameters(e,o){if(!this.zoomToCursor)return;this._performCursorZoom=!0;const s=this.domElement.getBoundingClientRect(),c=e-s.left,p=o-s.top,G=s.width,i=s.height;this._mouse.x=c/G*2-1,this._mouse.y=-(p/i)*2+1,this._dollyDirection.set(this._mouse.x,this._mouse.y,1).unproject(this.object).sub(this.object.position).normalize()}_clampDistance(e){return Math.max(this.minDistance,Math.min(this.maxDistance,e))}_handleMouseDownRotate(e){this._rotateStart.set(e.clientX,e.clientY)}_handleMouseDownDolly(e){this._updateZoomParameters(e.clientX,e.clientX),this._dollyStart.set(e.clientX,e.clientY)}_handleMouseDownPan(e){this._panStart.set(e.clientX,e.clientY)}_handleMouseMoveRotate(e){this._rotateEnd.set(e.clientX,e.clientY),this._rotateDelta.subVectors(this._rotateEnd,this._rotateStart).multiplyScalar(this.rotateSpeed);const o=this.domElement;this._rotateLeft(A*this._rotateDelta.x/o.clientHeight),this._rotateUp(A*this._rotateDelta.y/o.clientHeight),this._rotateStart.copy(this._rotateEnd),this.update()}_handleMouseMoveDolly(e){this._dollyEnd.set(e.clientX,e.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(e){this._panEnd.set(e.clientX,e.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(e){this._updateZoomParameters(e.clientX,e.clientY),e.deltaY<0?this._dollyIn(this._getZoomScale(e.deltaY)):e.deltaY>0&&this._dollyOut(this._getZoomScale(e.deltaY)),this.update()}_handleKeyDown(e){let o=!1;switch(e.code){case this.keys.UP:e.ctrlKey||e.metaKey||e.shiftKey?this.enableRotate&&this._rotateUp(A*this.keyRotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(0,this.keyPanSpeed),o=!0;break;case this.keys.BOTTOM:e.ctrlKey||e.metaKey||e.shiftKey?this.enableRotate&&this._rotateUp(-A*this.keyRotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(0,-this.keyPanSpeed),o=!0;break;case this.keys.LEFT:e.ctrlKey||e.metaKey||e.shiftKey?this.enableRotate&&this._rotateLeft(A*this.keyRotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(this.keyPanSpeed,0),o=!0;break;case this.keys.RIGHT:e.ctrlKey||e.metaKey||e.shiftKey?this.enableRotate&&this._rotateLeft(-A*this.keyRotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(-this.keyPanSpeed,0),o=!0;break}o&&(e.preventDefault(),this.update())}_handleTouchStartRotate(e){if(this._pointers.length===1)this._rotateStart.set(e.pageX,e.pageY);else{const o=this._getSecondPointerPosition(e),s=.5*(e.pageX+o.x),c=.5*(e.pageY+o.y);this._rotateStart.set(s,c)}}_handleTouchStartPan(e){if(this._pointers.length===1)this._panStart.set(e.pageX,e.pageY);else{const o=this._getSecondPointerPosition(e),s=.5*(e.pageX+o.x),c=.5*(e.pageY+o.y);this._panStart.set(s,c)}}_handleTouchStartDolly(e){const o=this._getSecondPointerPosition(e),s=e.pageX-o.x,c=e.pageY-o.y,p=Math.sqrt(s*s+c*c);this._dollyStart.set(0,p)}_handleTouchStartDollyPan(e){this.enableZoom&&this._handleTouchStartDolly(e),this.enablePan&&this._handleTouchStartPan(e)}_handleTouchStartDollyRotate(e){this.enableZoom&&this._handleTouchStartDolly(e),this.enableRotate&&this._handleTouchStartRotate(e)}_handleTouchMoveRotate(e){if(this._pointers.length==1)this._rotateEnd.set(e.pageX,e.pageY);else{const s=this._getSecondPointerPosition(e),c=.5*(e.pageX+s.x),p=.5*(e.pageY+s.y);this._rotateEnd.set(c,p)}this._rotateDelta.subVectors(this._rotateEnd,this._rotateStart).multiplyScalar(this.rotateSpeed);const o=this.domElement;this._rotateLeft(A*this._rotateDelta.x/o.clientHeight),this._rotateUp(A*this._rotateDelta.y/o.clientHeight),this._rotateStart.copy(this._rotateEnd)}_handleTouchMovePan(e){if(this._pointers.length===1)this._panEnd.set(e.pageX,e.pageY);else{const o=this._getSecondPointerPosition(e),s=.5*(e.pageX+o.x),c=.5*(e.pageY+o.y);this._panEnd.set(s,c)}this._panDelta.subVectors(this._panEnd,this._panStart).multiplyScalar(this.panSpeed),this._pan(this._panDelta.x,this._panDelta.y),this._panStart.copy(this._panEnd)}_handleTouchMoveDolly(e){const o=this._getSecondPointerPosition(e),s=e.pageX-o.x,c=e.pageY-o.y,p=Math.sqrt(s*s+c*c);this._dollyEnd.set(0,p),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 G=(e.pageX+o.x)*.5,i=(e.pageY+o.y)*.5;this._updateZoomParameters(G,i)}_handleTouchMoveDollyPan(e){this.enableZoom&&this._handleTouchMoveDolly(e),this.enablePan&&this._handleTouchMovePan(e)}_handleTouchMoveDollyRotate(e){this.enableZoom&&this._handleTouchMoveDolly(e),this.enableRotate&&this._handleTouchMoveRotate(e)}_addPointer(e){this._pointers.push(e.pointerId)}_removePointer(e){delete this._pointerPositions[e.pointerId];for(let o=0;o<this._pointers.length;o++)if(this._pointers[o]==e.pointerId){this._pointers.splice(o,1);return}}_isTrackingPointer(e){for(let o=0;o<this._pointers.length;o++)if(this._pointers[o]==e.pointerId)return!0;return!1}_trackPointer(e){let o=this._pointerPositions[e.pointerId];o===void 0&&(o=new n.Vector2,this._pointerPositions[e.pointerId]=o),o.set(e.pageX,e.pageY)}_getSecondPointerPosition(e){const o=e.pointerId===this._pointers[0]?this._pointers[1]:this._pointers[0];return this._pointerPositions[o]}_customWheelEvent(e){const o=e.deltaMode,s={clientX:e.clientX,clientY:e.clientY,deltaY:e.deltaY};switch(o){case 1:s.deltaY*=16;break;case 2:s.deltaY*=100;break}return e.ctrlKey&&!this._controlActive&&(s.deltaY*=10),s}}function Jt(l){this.enabled!==!1&&(this._pointers.length===0&&(this.domElement.setPointerCapture(l.pointerId),this.domElement.addEventListener("pointermove",this._onPointerMove),this.domElement.addEventListener("pointerup",this._onPointerUp)),!this._isTrackingPointer(l)&&(this._addPointer(l),l.pointerType==="touch"?this._onTouchStart(l):this._onMouseDown(l)))}function ut(l){this.enabled!==!1&&(l.pointerType==="touch"?this._onTouchMove(l):this._onMouseMove(l))}function pt(l){switch(this._removePointer(l),this._pointers.length){case 0:this.domElement.releasePointerCapture(l.pointerId),this.domElement.removeEventListener("pointermove",this._onPointerMove),this.domElement.removeEventListener("pointerup",this._onPointerUp),this.dispatchEvent(q),this.state=b.NONE;break;case 1:const e=this._pointers[0],o=this._pointerPositions[e];this._onTouchStart({pointerId:e,pageX:o.x,pageY:o.y});break}}function mt(l){let e;switch(l.button){case 0:e=this.mouseButtons.LEFT;break;case 1:e=this.mouseButtons.MIDDLE;break;case 2:e=this.mouseButtons.RIGHT;break;default:e=-1}switch(e){case n.MOUSE.DOLLY:if(this.enableZoom===!1)return;this._handleMouseDownDolly(l),this.state=b.DOLLY;break;case n.MOUSE.ROTATE:if(l.ctrlKey||l.metaKey||l.shiftKey){if(this.enablePan===!1)return;this._handleMouseDownPan(l),this.state=b.PAN}else{if(this.enableRotate===!1)return;this._handleMouseDownRotate(l),this.state=b.ROTATE}break;case n.MOUSE.PAN:if(l.ctrlKey||l.metaKey||l.shiftKey){if(this.enableRotate===!1)return;this._handleMouseDownRotate(l),this.state=b.ROTATE}else{if(this.enablePan===!1)return;this._handleMouseDownPan(l),this.state=b.PAN}break;default:this.state=b.NONE}this.state!==b.NONE&&this.dispatchEvent(U)}function Gt(l){switch(this.state){case b.ROTATE:if(this.enableRotate===!1)return;this._handleMouseMoveRotate(l);break;case b.DOLLY:if(this.enableZoom===!1)return;this._handleMouseMoveDolly(l);break;case b.PAN:if(this.enablePan===!1)return;this._handleMouseMovePan(l);break}}function ft(l){this.enabled===!1||this.enableZoom===!1||this.state!==b.NONE||(l.preventDefault(),this.dispatchEvent(U),this._handleMouseWheel(this._customWheelEvent(l)),this.dispatchEvent(q))}function gt(l){this.enabled!==!1&&this._handleKeyDown(l)}function yt(l){switch(this._trackPointer(l),this._pointers.length){case 1:switch(this.touches.ONE){case n.TOUCH.ROTATE:if(this.enableRotate===!1)return;this._handleTouchStartRotate(l),this.state=b.TOUCH_ROTATE;break;case n.TOUCH.PAN:if(this.enablePan===!1)return;this._handleTouchStartPan(l),this.state=b.TOUCH_PAN;break;default:this.state=b.NONE}break;case 2:switch(this.touches.TWO){case n.TOUCH.DOLLY_PAN:if(this.enableZoom===!1&&this.enablePan===!1)return;this._handleTouchStartDollyPan(l),this.state=b.TOUCH_DOLLY_PAN;break;case n.TOUCH.DOLLY_ROTATE:if(this.enableZoom===!1&&this.enableRotate===!1)return;this._handleTouchStartDollyRotate(l),this.state=b.TOUCH_DOLLY_ROTATE;break;default:this.state=b.NONE}break;default:this.state=b.NONE}this.state!==b.NONE&&this.dispatchEvent(U)}function bt(l){switch(this._trackPointer(l),this.state){case b.TOUCH_ROTATE:if(this.enableRotate===!1)return;this._handleTouchMoveRotate(l),this.update();break;case b.TOUCH_PAN:if(this.enablePan===!1)return;this._handleTouchMovePan(l),this.update();break;case b.TOUCH_DOLLY_PAN:if(this.enableZoom===!1&&this.enablePan===!1)return;this._handleTouchMoveDollyPan(l),this.update();break;case b.TOUCH_DOLLY_ROTATE:if(this.enableZoom===!1&&this.enableRotate===!1)return;this._handleTouchMoveDollyRotate(l),this.update();break;default:this.state=b.NONE}}function Et(l){this.enabled!==!1&&l.preventDefault()}function Mt(l){l.key==="Control"&&(this._controlActive=!0,this.domElement.getRootNode().addEventListener("keyup",this._interceptControlUp,{passive:!0,capture:!0}))}function vt(l){l.key==="Control"&&(this._controlActive=!1,this.domElement.getRootNode().removeEventListener("keyup",this._interceptControlUp,{passive:!0,capture:!0}))}function wt(l){let e=null,o=null,s=null,c=null,p=null,G=null,i=null,m=null;const g=t.ref([]),J=t.ref(new n.Vector3),C=t.ref(new n.Vector3),N=()=>{if(!l.value)return;e=new n.Scene,e.background=new n.Color(15790320);const r=l.value;o=new n.PerspectiveCamera(75,r.clientWidth/r.clientHeight,.1,1e4),o.position.set(8,-8,6),o.up.set(0,0,1),o.lookAt(0,0,0),s=new n.WebGLRenderer({antialias:!0,alpha:!0}),s.setSize(r.clientWidth,r.clientHeight),s.localClippingEnabled=!0,s.shadowMap.enabled=!0,s.shadowMap.type=n.PCFSoftShadowMap,s.toneMapping=n.ACESFilmicToneMapping,s.toneMappingExposure=1,s.outputColorSpace=n.SRGBColorSpace,r.appendChild(s.domElement),c=new Pt(o,s.domElement),c.enableDamping=!0,c.dampingFactor=.05,p=new n.Xe(o,s,{container:r,type:"cube",placement:"bottom-left",offset:{left:260,bottom:22},background:{color:"#D1D1D1",opacity:1},front:{label:"Top"},bottom:{label:"Front"},left:{label:"Left"},right:{label:"Right"},top:{label:"Back"},back:{label:"Bottom"}}),p.attachControls(c),v(),h()},O=(r,a)=>{i&&(e.remove(i),i.dispose()),m&&(e.remove(m),m.geometry.dispose(),m.material.dispose());const d=Math.min(Math.max(Math.floor(r/20),30),40);i=new n.GridHelper(r,d,13421772,14540253),i.rotateX(Math.PI/2),i.position.copy(a),e.add(i);const B=new n.PlaneGeometry(r,r),w=new n.ShadowMaterial({opacity:.3,color:0});m=new n.Mesh(B,w),m.position.copy(a),m.position.z-=.01,m.receiveShadow=!0,e.add(m)},D=()=>{if(g.value.length===0)return;const r=new n.Box3;g.value.forEach(T=>{r.expandByObject(T)});const a=r.getSize(new n.Vector3),d=r.getCenter(new n.Vector3),B=Math.max(a.x,a.y,a.z),w=Math.max(B*8,50),k=new n.Vector3(d.x,d.y,r.min.z);O(w,k)},v=()=>{const r=new n.AmbientLight(4210752,.6);e.add(r);const a=new n.DirectionalLight(16777215,2);a.position.set(10,10,8),a.castShadow=!0,a.shadow.mapSize.width=4096,a.shadow.mapSize.height=4096,a.shadow.camera.near=.5,a.shadow.camera.far=50,a.shadow.camera.left=-50,a.shadow.camera.right=50,a.shadow.camera.top=50,a.shadow.camera.bottom=-50,e.add(a);const d=new n.DirectionalLight(16777215,.8);d.position.set(-8,-8,6),e.add(d);const B=new n.DirectionalLight(16777215,.6);B.position.set(0,-15,2),e.add(B);const w=new n.HemisphereLight(16777215,4473924,.8);e.add(w);const k=new n.PointLight(16777215,1,50);k.position.set(15,15,15),e.add(k);const T=new n.PointLight(16777215,.5,50);T.position.set(-15,-15,15),e.add(T)},h=()=>{G=requestAnimationFrame(h),c&&c.update(),s&&e&&o&&s.render(e,o),p&&p.render()},f=r=>{["map","normalMap","bumpMap","roughnessMap","metalnessMap","emissiveMap","specularMap","envMap","lightMap","aoMap","displacementMap"].forEach(d=>{r[d]&&r[d].dispose&&r[d].dispose()}),r.dispose&&r.dispose()},y=r=>{r==null||r.traverse(a=>{a.geometry&&a.geometry.dispose(),a.material&&(Array.isArray(a.material)?a.material.forEach(d=>{f(d)}):f(a.material))})};return{currentModels:g,initialCameraPosition:J,initialTargetPosition:C,initThreeJS:N,handleResize:()=>{if(!l.value||!o||!s||!p)return;const r=l.value,a=r.clientWidth,d=r.clientHeight;o.aspect=a/d,o.updateProjectionMatrix(),s.setSize(a,d),p.update()},fitCameraToAllModels:()=>{if(!o||!c||g.value.length===0)return;const r=new n.Box3;g.value.forEach(T=>{r.expandByObject(T)});const a=r.getSize(new n.Vector3),d=r.getCenter(new n.Vector3),w=Math.max(a.x,a.y,a.z)*.8,k=new n.Vector3(d.x+w,d.y-w,d.z+w);o.position.copy(k),o.lookAt(d),c.target.copy(d),c.update(),J.value.copy(k),C.value.copy(d),D()},getThreeJSObjects:()=>({scene:e,camera:o,renderer:s,controls:c,gizmo:p}),clearAllModels:()=>{if(!e)return;g.value.forEach(a=>{e.remove(a),y(a)});const r=[];e.children.forEach(a=>{!a.isLight&&!a.isCamera&&a.type!=="GridHelper"&&a!==m&&r.push(a)}),r.forEach(a=>{e.remove(a),y(a)}),g.value=[],D()},cleanup:()=>{G&&cancelAnimationFrame(G),i&&i.dispose(),m&&(m.geometry.dispose(),m.material.dispose()),s&&s.dispose(),c&&c.dispose(),p&&p.dispose()},updateGridForModels:D}}function Bt(l,e){const o=t.ref(!1);let s=null,c=12700,p=new n.Vector3,G=new n.Vector3,i=new n.Vector3,m=0,g=null;const J=h=>h<.5?4*h*h*h:1-Math.pow(-2*h+2,3)/2,C=h=>{const f=new n.Vector3,y=m*1.2,E=new n.Vector3(i.x+y,i.y,i.z),V=new n.Vector3(i.x,i.y+y,i.z),x=new n.Vector3(i.x,i.y-y,i.z);if(h<=.567){const P=h/.567*Math.PI*2;f.x=i.x+Math.cos(P)*y,f.z=i.z+Math.sin(P)*y,f.y=i.y}else if(h<=.724){const _=(h-.567)/.157,P=J(_);f.lerpVectors(E,V,P)}else if(h<=.881){const _=(h-.724)/.157,r=J(_)*Math.PI;f.x=i.x+Math.sin(r)*y,f.y=i.y+Math.cos(r)*y,f.z=i.z}else{const _=(h-.881)/.119,P=J(_);f.lerpVectors(x,p,P)}return f},N=()=>{const{camera:h,controls:f}=l();if(!h||!f)return;s||(s=Date.now());const y=Date.now()-s,E=Math.min(y/c,1);if(E>=1){D();return}const V=C(E);h.position.copy(V),h.lookAt(i),f.target.copy(i),g=requestAnimationFrame(N)},O=()=>{if(e.value.length===0)return;const{camera:h,controls:f}=l();if(!h||!f)return;p.copy(h.position),G.copy(f.target);const y=new n.Box3;e.value.forEach(a=>{y.expandByObject(a)});const E=y.getSize(new n.Vector3);i=y.getCenter(new n.Vector3),m=Math.max(E.x,E.y,E.z)*1.2;const V=new n.Vector3(i.x+m*1.2,i.y,i.z);f.enabled=!1;const x=h.position.clone(),_=1e3,P=Date.now(),r=()=>{const a=Date.now()-P,d=Math.min(a/_,1),B=J(d);h.position.lerpVectors(x,V,B),h.lookAt(i),f.target.copy(i),d<1?requestAnimationFrame(r):(o.value=!0,s=null,N())};r()},D=()=>{o.value=!1,s=null,g&&(cancelAnimationFrame(g),g=null);const{controls:h}=l();h&&(h.enabled=!0,h.target.copy(G))};return{isAnimating:o,toggleAnimation:()=>{if(o.value){o.value=!1,s=null,g&&(cancelAnimationFrame(g),g=null);const{camera:h,controls:f}=l();if(!h||!f)return;f.enabled=!0;const y=h.position.clone(),E=f.target.clone(),V=1500,x=Date.now(),_=()=>{const P=Date.now()-x,r=Math.min(P/V,1),a=J(r);h.position.lerpVectors(y,p,a),f.target.lerpVectors(E,G,a),r<1&&requestAnimationFrame(_)};_()}else O()},startAnimation:O,stopAnimation:D}}function Rt(l,e){const o=t.ref(!1),s=t.ref("none");let c=[],p=[],G=new n.Box3,i=new n.Vector3;const m=()=>{c=[new n.Plane(new n.Vector3(1,0,0),0),new n.Plane(new n.Vector3(0,1,0),0),new n.Plane(new n.Vector3(0,0,1),0)]},g=()=>{G.makeEmpty(),e.value.forEach(v=>{G.expandByObject(v)}),i=G.getCenter(new n.Vector3)},J=v=>{const h=G.getSize(new n.Vector3);let f,y,E;v==="x"?(f=new n.PlaneGeometry(h.z*1.2,h.y*1.2),y=new n.Vector3(i.x,i.y,i.z),E=new n.Euler(0,Math.PI/2,0)):v==="y"?(f=new n.PlaneGeometry(h.x*1.2,h.z*1.2),y=new n.Vector3(i.x,i.y,i.z),E=new n.Euler(Math.PI/2,0,0)):v==="z"&&(f=new n.PlaneGeometry(h.x*1.2,h.y*1.2),y=new n.Vector3(i.x,i.y,i.z),E=new n.Euler(0,0,0));const V=new n.MeshPhongMaterial({color:8900331,transparent:!0,opacity:.3,side:n.DoubleSide,depthWrite:!1}),x=new n.Mesh(f,V);return x.position.copy(y),x.rotation.copy(E),x},C=()=>{if(N(),O(),s.value==="none")return;g();let v=null;if(s.value==="x"?(c[0].constant=-i.x,v=c[0]):s.value==="y"?(c[1].constant=-i.y,v=c[1]):s.value==="z"&&(c[2].constant=-i.z,v=c[2]),v){e.value.forEach(f=>{f.traverse(y=>{y.isMesh&&y.material&&(Array.isArray(y.material)?y.material.forEach(E=>{E.clippingPlanes=[v]}):y.material.clippingPlanes=[v])})});const{scene:h}=l();if(h){const f=J(s.value);h.add(f),p.push(f)}}},N=()=>{e.value.forEach(v=>{v.traverse(h=>{h.isMesh&&h.material&&(Array.isArray(h.material)?h.material.forEach(f=>{f.clippingPlanes=[]}):h.material.clippingPlanes=[])})})},O=()=>{const{scene:v}=l();v&&p.forEach(h=>{v.remove(h),h.geometry.dispose(),h.material.dispose()}),p=[]};return{isClipping:o,activeClippingAxis:s,toggleClipping:()=>{o.value=!o.value,o.value?(m(),e.value.length>0&&g()):(s.value="none",N(),O())},updateClippingPlanes:C,clearClippingPlanes:N,clearClippingMeshes:O}}const xt=[{"J1_Joint(GP1)":-.003172089,"J2_Joint(GP1)":-.096027484,"J3_Joint(GP1)":-1.118475479,"J4_Joint(GP1)":1.57418324,"J5_Joint(GP1)":1.572865909,"J6_Joint(GP1)":-.549141112,"BendRotatePart_Joint(GP2)":0,"BendMainPart_Joint(GP2)":-.05,"BendGuidePart_Joint(GP2)":-.015,"HolderRoate_Joint(GP3)":0},{"J1_Joint(GP1)":-.003172089,"J2_Joint(GP1)":-.096027484,"J3_Joint(GP1)":-1.118475479,"J4_Joint(GP1)":1.57418324,"J5_Joint(GP1)":1.572865909,"J6_Joint(GP1)":-.549141112,"BendRotatePart_Joint(GP2)":0,"BendMainPart_Joint(GP2)":0,"BendGuidePart_Joint(GP2)":0,"HolderRoate_Joint(GP3)":0},{"J1_Joint(GP1)":-.051468453,"J2_Joint(GP1)":-.094548525,"J3_Joint(GP1)":-1.117172585,"J4_Joint(GP1)":1.615414534,"J5_Joint(GP1)":1.598024878,"J6_Joint(GP1)":-.548360986,"BendRotatePart_Joint(GP2)":.860623343,"BendMainPart_Joint(GP2)":0,"BendGuidePart_Joint(GP2)":0,"HolderRoate_Joint(GP3)":0},{"J1_Joint(GP1)":-.051468453,"J2_Joint(GP1)":-.094548525,"J3_Joint(GP1)":-1.117172585,"J4_Joint(GP1)":1.615414534,"J5_Joint(GP1)":1.598024878,"J6_Joint(GP1)":-.548360986,"BendRotatePart_Joint(GP2)":.860623343,"BendMainPart_Joint(GP2)":-.05,"BendGuidePart_Joint(GP2)":-.015,"HolderRoate_Joint(GP3)":0},{"J1_Joint(GP1)":-.054269136,"J2_Joint(GP1)":-.09438254,"J3_Joint(GP1)":-1.117026191,"J4_Joint(GP1)":1.617807288,"J5_Joint(GP1)":1.59948194,"J6_Joint(GP1)":-.548274538,"BendRotatePart_Joint(GP2)":.860623343,"BendMainPart_Joint(GP2)":-.05,"BendGuidePart_Joint(GP2)":-.015,"HolderRoate_Joint(GP3)":0},{"J1_Joint(GP1)":-.054269136,"J2_Joint(GP1)":-.09438254,"J3_Joint(GP1)":-1.117026191,"J4_Joint(GP1)":1.617807288,"J5_Joint(GP1)":1.59948194,"J6_Joint(GP1)":-.548274538,"BendRotatePart_Joint(GP2)":0,"BendMainPart_Joint(GP2)":-.05,"BendGuidePart_Joint(GP2)":-.015,"HolderRoate_Joint(GP3)":0},{"J1_Joint(GP1)":-.07106296,"J2_Joint(GP1)":-.093202686,"J3_Joint(GP1)":-1.115984624,"J4_Joint(GP1)":1.632161558,"J5_Joint(GP1)":1.608211995,"J6_Joint(GP1)":-.547662192,"BendRotatePart_Joint(GP2)":0,"BendMainPart_Joint(GP2)":-.05,"BendGuidePart_Joint(GP2)":-.015,"HolderRoate_Joint(GP3)":-1.582839141},{"J1_Joint(GP1)":-.07106296,"J2_Joint(GP1)":-.093202686,"J3_Joint(GP1)":-1.115984624,"J4_Joint(GP1)":1.632161558,"J5_Joint(GP1)":1.608211995,"J6_Joint(GP1)":-.547662192,"BendRotatePart_Joint(GP2)":0,"BendMainPart_Joint(GP2)":0,"BendGuidePart_Joint(GP2)":0,"HolderRoate_Joint(GP3)":-1.582839141},{"J1_Joint(GP1)":-.15885978,"J2_Joint(GP1)":-.081876359,"J3_Joint(GP1)":-1.105898511,"J4_Joint(GP1)":1.707488829,"J5_Joint(GP1)":1.653550174,"J6_Joint(GP1)":-.541902553,"BendRotatePart_Joint(GP2)":1.584934783,"BendMainPart_Joint(GP2)":0,"BendGuidePart_Joint(GP2)":0,"HolderRoate_Joint(GP3)":-1.582839141},{"J1_Joint(GP1)":-.15885978,"J2_Joint(GP1)":-.081876359,"J3_Joint(GP1)":-1.105898511,"J4_Joint(GP1)":1.707488829,"J5_Joint(GP1)":1.653550174,"J6_Joint(GP1)":-.541902553,"BendRotatePart_Joint(GP2)":1.584934783,"BendMainPart_Joint(GP2)":-.05,"BendGuidePart_Joint(GP2)":-.015,"HolderRoate_Joint(GP3)":-1.582839141},{"J1_Joint(GP1)":-.161596827,"J2_Joint(GP1)":-.081383753,"J3_Joint(GP1)":-1.105456248,"J4_Joint(GP1)":1.709847399,"J5_Joint(GP1)":1.654952777,"J6_Joint(GP1)":-.541656255,"BendRotatePart_Joint(GP2)":1.584934783,"BendMainPart_Joint(GP2)":-.05,"BendGuidePart_Joint(GP2)":-.015,"HolderRoate_Joint(GP3)":-1.582839141},{"J1_Joint(GP1)":-.161596827,"J2_Joint(GP1)":-.081383753,"J3_Joint(GP1)":-1.105456248,"J4_Joint(GP1)":1.709847399,"J5_Joint(GP1)":1.654952777,"J6_Joint(GP1)":-.541656255,"BendRotatePart_Joint(GP2)":0,"BendMainPart_Joint(GP2)":-.05,"BendGuidePart_Joint(GP2)":-.015,"HolderRoate_Joint(GP3)":-1.582839141},{"J1_Joint(GP1)":-.206647418,"J2_Joint(GP1)":-.072058188,"J3_Joint(GP1)":-1.097027028,"J4_Joint(GP1)":1.748782637,"J5_Joint(GP1)":1.677920661,"J6_Joint(GP1)":-.53705618,"BendRotatePart_Joint(GP2)":0,"BendMainPart_Joint(GP2)":-.05,"BendGuidePart_Joint(GP2)":-.015,"HolderRoate_Joint(GP3)":-2.788687058},{"J1_Joint(GP1)":-.206647418,"J2_Joint(GP1)":-.072058188,"J3_Joint(GP1)":-1.097027028,"J4_Joint(GP1)":1.748782637,"J5_Joint(GP1)":1.677920661,"J6_Joint(GP1)":-.53705618,"BendRotatePart_Joint(GP2)":0,"BendMainPart_Joint(GP2)":0,"BendGuidePart_Joint(GP2)":0,"HolderRoate_Joint(GP3)":-2.788687058},{"J1_Joint(GP1)":-.222883715,"J2_Joint(GP1)":-.068132789,"J3_Joint(GP1)":-1.093446644,"J4_Joint(GP1)":1.762872336,"J5_Joint(GP1)":1.686139573,"J6_Joint(GP1)":-.535155089,"BendRotatePart_Joint(GP2)":.302813533,"BendMainPart_Joint(GP2)":0,"BendGuidePart_Joint(GP2)":0,"HolderRoate_Joint(GP3)":-2.788687058},{"J1_Joint(GP1)":-.222883715,"J2_Joint(GP1)":-.068132789,"J3_Joint(GP1)":-1.093446644,"J4_Joint(GP1)":1.762872336,"J5_Joint(GP1)":1.686139573,"J6_Joint(GP1)":-.535155089,"BendRotatePart_Joint(GP2)":.302813533,"BendMainPart_Joint(GP2)":-.05,"BendGuidePart_Joint(GP2)":-.015,"HolderRoate_Joint(GP3)":-2.788687058},{"J1_Joint(GP1)":-.225553405,"J2_Joint(GP1)":-.067458613,"J3_Joint(GP1)":-1.092829796,"J4_Joint(GP1)":1.765192186,"J5_Joint(GP1)":1.687487837,"J6_Joint(GP1)":-.534830668,"BendRotatePart_Joint(GP2)":.302813533,"BendMainPart_Joint(GP2)":-.05,"BendGuidePart_Joint(GP2)":-.015,"HolderRoate_Joint(GP3)":-2.788687058},{"J1_Joint(GP1)":-.225553405,"J2_Joint(GP1)":-.067458613,"J3_Joint(GP1)":-1.092829796,"J4_Joint(GP1)":1.765192186,"J5_Joint(GP1)":1.687487837,"J6_Joint(GP1)":-.534830668,"BendRotatePart_Joint(GP2)":0,"BendMainPart_Joint(GP2)":-.05,"BendGuidePart_Joint(GP2)":-.015,"HolderRoate_Joint(GP3)":-2.788687058},{"J1_Joint(GP1)":-.253794227,"J2_Joint(GP1)":-.059828421,"J3_Joint(GP1)":-1.085808974,"J4_Joint(GP1)":1.789788497,"J5_Joint(GP1)":1.701694229,"J6_Joint(GP1)":-.531201442,"BendRotatePart_Joint(GP2)":0,"BendMainPart_Joint(GP2)":-.05,"BendGuidePart_Joint(GP2)":-.015,"HolderRoate_Joint(GP3)":.352905596},{"J1_Joint(GP1)":-.253794227,"J2_Joint(GP1)":-.059828421,"J3_Joint(GP1)":-1.085808974,"J4_Joint(GP1)":1.789788497,"J5_Joint(GP1)":1.701694229,"J6_Joint(GP1)":-.531201442,"BendRotatePart_Joint(GP2)":0,"BendMainPart_Joint(GP2)":0,"BendGuidePart_Joint(GP2)":0,"HolderRoate_Joint(GP3)":.352905596},{"J1_Joint(GP1)":-.269664357,"J2_Joint(GP1)":-.055139299,"J3_Joint(GP1)":-1.081458321,"J4_Joint(GP1)":1.803657153,"J5_Joint(GP1)":1.709631958,"J6_Joint(GP1)":-.52900977,"BendRotatePart_Joint(GP2)":.302815131,"BendMainPart_Joint(GP2)":0,"BendGuidePart_Joint(GP2)":0,"HolderRoate_Joint(GP3)":.352905596},{"J1_Joint(GP1)":-.269664357,"J2_Joint(GP1)":-.055139299,"J3_Joint(GP1)":-1.081458321,"J4_Joint(GP1)":1.803657153,"J5_Joint(GP1)":1.709631958,"J6_Joint(GP1)":-.52900977,"BendRotatePart_Joint(GP2)":.302815131,"BendMainPart_Joint(GP2)":-.05,"BendGuidePart_Joint(GP2)":-.015,"HolderRoate_Joint(GP3)":.352905596},{"J1_Joint(GP1)":-.272271675,"J2_Joint(GP1)":-.05434119,"J3_Joint(GP1)":-1.080715087,"J4_Joint(GP1)":1.805938943,"J5_Joint(GP1)":1.710932883,"J6_Joint(GP1)":-.528639664,"BendRotatePart_Joint(GP2)":.302815131,"BendMainPart_Joint(GP2)":-.05,"BendGuidePart_Joint(GP2)":-.015,"HolderRoate_Joint(GP3)":.352905596},{"J1_Joint(GP1)":-.272271675,"J2_Joint(GP1)":-.05434119,"J3_Joint(GP1)":-1.080715087,"J4_Joint(GP1)":1.805938943,"J5_Joint(GP1)":1.710932883,"J6_Joint(GP1)":-.528639664,"BendRotatePart_Joint(GP2)":0,"BendMainPart_Joint(GP2)":-.05,"BendGuidePart_Joint(GP2)":-.015,"HolderRoate_Joint(GP3)":.352905596},{"J1_Joint(GP1)":-.666340342,"J2_Joint(GP1)":.165158009,"J3_Joint(GP1)":-.846100311,"J4_Joint(GP1)":2.1593725,"J5_Joint(GP1)":1.90543118,"J6_Joint(GP1)":-.458042565,"BendRotatePart_Joint(GP2)":0,"BendMainPart_Joint(GP2)":-.05,"BendGuidePart_Joint(GP2)":-.015,"HolderRoate_Joint(GP3)":.352905596},{"J1_Joint(GP1)":-.666340342,"J2_Joint(GP1)":.165158009,"J3_Joint(GP1)":-.846100311,"J4_Joint(GP1)":2.1593725,"J5_Joint(GP1)":1.90543118,"J6_Joint(GP1)":-.458042565,"BendRotatePart_Joint(GP2)":0,"BendMainPart_Joint(GP2)":0,"BendGuidePart_Joint(GP2)":0,"HolderRoate_Joint(GP3)":.352905596},{"J1_Joint(GP1)":-.676764437,"J2_Joint(GP1)":.174126178,"J3_Joint(GP1)":-.835263449,"J4_Joint(GP1)":2.168745148,"J5_Joint(GP1)":1.911070297,"J6_Joint(GP1)":-.456401397,"BendRotatePart_Joint(GP2)":.302813234,"BendMainPart_Joint(GP2)":0,"BendGuidePart_Joint(GP2)":0,"HolderRoate_Joint(GP3)":.352905596},{"J1_Joint(GP1)":-.676764437,"J2_Joint(GP1)":.174126178,"J3_Joint(GP1)":-.835263449,"J4_Joint(GP1)":2.168745148,"J5_Joint(GP1)":1.911070297,"J6_Joint(GP1)":-.456401397,"BendRotatePart_Joint(GP2)":.302813234,"BendMainPart_Joint(GP2)":-.05,"BendGuidePart_Joint(GP2)":-.015,"HolderRoate_Joint(GP3)":.352905596},{"J1_Joint(GP1)":-.678469051,"J2_Joint(GP1)":.175612656,"J3_Joint(GP1)":-.833458171,"J4_Joint(GP1)":2.170275986,"J5_Joint(GP1)":1.911999806,"J6_Joint(GP1)":-.456138025,"BendRotatePart_Joint(GP2)":.302813234,"BendMainPart_Joint(GP2)":-.05,"BendGuidePart_Joint(GP2)":-.015,"HolderRoate_Joint(GP3)":.352905596},{"J1_Joint(GP1)":-.678469051,"J2_Joint(GP1)":.175612656,"J3_Joint(GP1)":-.833458171,"J4_Joint(GP1)":2.170275986,"J5_Joint(GP1)":1.911999806,"J6_Joint(GP1)":-.456138025,"BendRotatePart_Joint(GP2)":0,"BendMainPart_Joint(GP2)":-.05,"BendGuidePart_Joint(GP2)":-.015,"HolderRoate_Joint(GP3)":.352905596},{"J1_Joint(GP1)":-.696352039,"J2_Joint(GP1)":.191555012,"J3_Joint(GP1)":-.813935936,"J4_Joint(GP1)":2.186300561,"J5_Joint(GP1)":1.921886405,"J6_Joint(GP1)":-.453466278,"BendRotatePart_Joint(GP2)":0,"BendMainPart_Joint(GP2)":-.05,"BendGuidePart_Joint(GP2)":-.015,"HolderRoate_Joint(GP3)":3.49449825},{"J1_Joint(GP1)":-.696352039,"J2_Joint(GP1)":.191555012,"J3_Joint(GP1)":-.813935936,"J4_Joint(GP1)":2.186300561,"J5_Joint(GP1)":1.921886405,"J6_Joint(GP1)":-.453466278,"BendRotatePart_Joint(GP2)":0,"BendMainPart_Joint(GP2)":0,"BendGuidePart_Joint(GP2)":0,"HolderRoate_Joint(GP3)":3.49449825},{"J1_Joint(GP1)":-.706279886,"J2_Joint(GP1)":.200687848,"J3_Joint(GP1)":-.80262089,"J4_Joint(GP1)":2.195165367,"J5_Joint(GP1)":1.927490122,"J6_Joint(GP1)":-.452060238,"BendRotatePart_Joint(GP2)":.302814632,"BendMainPart_Joint(GP2)":0,"BendGuidePart_Joint(GP2)":0,"HolderRoate_Joint(GP3)":3.49449825},{"J1_Joint(GP1)":-.706279886,"J2_Joint(GP1)":.200687848,"J3_Joint(GP1)":-.80262089,"J4_Joint(GP1)":2.195165367,"J5_Joint(GP1)":1.927490122,"J6_Joint(GP1)":-.452060238,"BendRotatePart_Joint(GP2)":.302814632,"BendMainPart_Joint(GP2)":-.05,"BendGuidePart_Joint(GP2)":-.015,"HolderRoate_Joint(GP3)":3.49449825},{"J1_Joint(GP1)":-.707903161,"J2_Joint(GP1)":.202200891,"J3_Joint(GP1)":-.800737154,"J4_Joint(GP1)":2.196612452,"J5_Joint(GP1)":1.928414793,"J6_Joint(GP1)":-.45183595,"BendRotatePart_Joint(GP2)":.302814632,"BendMainPart_Joint(GP2)":-.05,"BendGuidePart_Joint(GP2)":-.015,"HolderRoate_Joint(GP3)":3.49449825},{"J1_Joint(GP1)":-.707903161,"J2_Joint(GP1)":.202200891,"J3_Joint(GP1)":-.800737154,"J4_Joint(GP1)":2.196612452,"J5_Joint(GP1)":1.928414793,"J6_Joint(GP1)":-.45183595,"BendRotatePart_Joint(GP2)":0,"BendMainPart_Joint(GP2)":-.05,"BendGuidePart_Joint(GP2)":-.015,"HolderRoate_Joint(GP3)":3.49449825},{"J1_Joint(GP1)":-.734200754,"J2_Joint(GP1)":.227518671,"J3_Joint(GP1)":-.768834774,"J4_Joint(GP1)":2.219949057,"J5_Joint(GP1)":1.943757592,"J6_Joint(GP1)":-.448441828,"BendRotatePart_Joint(GP2)":0,"BendMainPart_Joint(GP2)":-.05,"BendGuidePart_Joint(GP2)":-.015,"HolderRoate_Joint(GP3)":4.700346166},{"J1_Joint(GP1)":-.734200754,"J2_Joint(GP1)":.227518671,"J3_Joint(GP1)":-.768834774,"J4_Joint(GP1)":2.219949057,"J5_Joint(GP1)":1.943757592,"J6_Joint(GP1)":-.448441828,"BendRotatePart_Joint(GP2)":0,"BendMainPart_Joint(GP2)":0,"BendGuidePart_Joint(GP2)":0,"HolderRoate_Joint(GP3)":4.700346166},{"J1_Joint(GP1)":-.781149218,"J2_Joint(GP1)":.276839725,"J3_Joint(GP1)":-.704674666,"J4_Joint(GP1)":2.260965081,"J5_Joint(GP1)":1.973194737,"J6_Joint(GP1)":-.443707106,"BendRotatePart_Joint(GP2)":1.584933185,"BendMainPart_Joint(GP2)":0,"BendGuidePart_Joint(GP2)":0,"HolderRoate_Joint(GP3)":4.700346166},{"J1_Joint(GP1)":-.781149218,"J2_Joint(GP1)":.276839725,"J3_Joint(GP1)":-.704674666,"J4_Joint(GP1)":2.260965081,"J5_Joint(GP1)":1.973194737,"J6_Joint(GP1)":-.443707106,"BendRotatePart_Joint(GP2)":1.584933185,"BendMainPart_Joint(GP2)":-.05,"BendGuidePart_Joint(GP2)":-.015,"HolderRoate_Joint(GP3)":4.700346166},{"J1_Joint(GP1)":-.782563443,"J2_Joint(GP1)":.278415273,"J3_Joint(GP1)":-.702582574,"J4_Joint(GP1)":2.262184408,"J5_Joint(GP1)":1.974129872,"J6_Joint(GP1)":-.443595316,"BendRotatePart_Joint(GP2)":1.584933185,"BendMainPart_Joint(GP2)":-.05,"BendGuidePart_Joint(GP2)":-.015,"HolderRoate_Joint(GP3)":4.700346166},{"J1_Joint(GP1)":-.782563443,"J2_Joint(GP1)":.278415273,"J3_Joint(GP1)":-.702582574,"J4_Joint(GP1)":2.262184408,"J5_Joint(GP1)":1.974129872,"J6_Joint(GP1)":-.443595316,"BendRotatePart_Joint(GP2)":0,"BendMainPart_Joint(GP2)":-.05,"BendGuidePart_Joint(GP2)":-.015,"HolderRoate_Joint(GP3)":4.700346166},{"J1_Joint(GP1)":-.790970382,"J2_Joint(GP1)":.287898042,"J3_Joint(GP1)":-.689936686,"J4_Joint(GP1)":2.269409635,"J5_Joint(GP1)":1.979755278,"J6_Joint(GP1)":-.442972648,"BendRotatePart_Joint(GP2)":0,"BendMainPart_Joint(GP2)":-.05,"BendGuidePart_Joint(GP2)":-.015,"HolderRoate_Joint(GP3)":6.283185307},{"J1_Joint(GP1)":-.790970382,"J2_Joint(GP1)":.287898042,"J3_Joint(GP1)":-.689936686,"J4_Joint(GP1)":2.269409635,"J5_Joint(GP1)":1.979755278,"J6_Joint(GP1)":-.442972648,"BendRotatePart_Joint(GP2)":0,"BendMainPart_Joint(GP2)":0,"BendGuidePart_Joint(GP2)":0,"HolderRoate_Joint(GP3)":6.283185307},{"J1_Joint(GP1)":-.81430373,"J2_Joint(GP1)":.315316096,"J3_Joint(GP1)":-.652859101,"J4_Joint(GP1)":2.28923367,"J5_Joint(GP1)":1.996012131,"J6_Joint(GP1)":-.441647984,"BendRotatePart_Joint(GP2)":.860625939,"BendMainPart_Joint(GP2)":0,"BendGuidePart_Joint(GP2)":0,"HolderRoate_Joint(GP3)":6.283185307},{"J1_Joint(GP1)":-.81430373,"J2_Joint(GP1)":.315316096,"J3_Joint(GP1)":-.652859101,"J4_Joint(GP1)":2.28923367,"J5_Joint(GP1)":1.996012131,"J6_Joint(GP1)":-.441647984,"BendRotatePart_Joint(GP2)":.860625939,"BendMainPart_Joint(GP2)":-.05,"BendGuidePart_Joint(GP2)":-.015,"HolderRoate_Joint(GP3)":6.283185307},{"J1_Joint(GP1)":-.815624991,"J2_Joint(GP1)":.31691936,"J3_Joint(GP1)":-.650667784,"J4_Joint(GP1)":2.290345082,"J5_Joint(GP1)":1.9969632,"J6_Joint(GP1)":-.441592027,"BendRotatePart_Joint(GP2)":.860625939,"BendMainPart_Joint(GP2)":-.05,"BendGuidePart_Joint(GP2)":-.015,"HolderRoate_Joint(GP3)":6.283185307},{"J1_Joint(GP1)":-.815624991,"J2_Joint(GP1)":.31691936,"J3_Joint(GP1)":-.650667784,"J4_Joint(GP1)":2.290345082,"J5_Joint(GP1)":1.9969632,"J6_Joint(GP1)":-.441592027,"BendRotatePart_Joint(GP2)":0,"BendMainPart_Joint(GP2)":-.05,"BendGuidePart_Joint(GP2)":-.015,"HolderRoate_Joint(GP3)":6.283185307},{"J1_Joint(GP1)":-.856703221,"J2_Joint(GP1)":.369769111,"J3_Joint(GP1)":-.577053756,"J4_Joint(GP1)":2.324173006,"J5_Joint(GP1)":2.028430263,"J6_Joint(GP1)":-.441031864,"BendRotatePart_Joint(GP2)":0,"BendMainPart_Joint(GP2)":-.05,"BendGuidePart_Joint(GP2)":-.015,"HolderRoate_Joint(GP3)":6.283185307},{"J1_Joint(GP1)":-.856703221,"J2_Joint(GP1)":.369769111,"J3_Joint(GP1)":-.577053756,"J4_Joint(GP1)":2.324173006,"J5_Joint(GP1)":2.028430263,"J6_Joint(GP1)":-.441031864,"BendRotatePart_Joint(GP2)":0,"BendMainPart_Joint(GP2)":0,"BendGuidePart_Joint(GP2)":0,"HolderRoate_Joint(GP3)":6.283185307},{"J1_Joint(GP1)":-.856703221,"J2_Joint(GP1)":.369769111,"J3_Joint(GP1)":-.577053756,"J4_Joint(GP1)":2.324173006,"J5_Joint(GP1)":2.028430263,"J6_Joint(GP1)":-.441031864,"BendRotatePart_Joint(GP2)":0,"BendMainPart_Joint(GP2)":-.05,"BendGuidePart_Joint(GP2)":-.015,"HolderRoate_Joint(GP3)":6.283185307},{"J1_Joint(GP1)":-.85790624,"J2_Joint(GP1)":.371411093,"J3_Joint(GP1)":-.574724957,"J4_Joint(GP1)":2.325139523,"J5_Joint(GP1)":2.029413042,"J6_Joint(GP1)":-.441053498,"BendRotatePart_Joint(GP2)":0,"BendMainPart_Joint(GP2)":-.05,"BendGuidePart_Joint(GP2)":-.015,"HolderRoate_Joint(GP3)":6.283185307}],Dt={key:0,class:"jointPanel-container"},Vt={class:"panel-actions"},kt=["disabled"],Ct={class:"panel-content"},Tt={key:0,class:"joints-list"},St={class:"joint-info-row"},At={class:"joint-left"},Nt={class:"joint-name"},Ot={class:"joint-range"},Lt={class:"joint-type"},Ht={key:0,class:"joint-control-row"},zt={class:"slider-container"},jt=["min","max","value","onInput","disabled"],It={class:"value-display"},Ut={class:"joint-value"},Ft={class:"unit"},Yt={key:1,class:"empty-state"},Zt=1e3,Kt={__name:"jointPanel",props:{model:Object},setup(l,{expose:e}){const o=l,s=t.ref(!0),c=t.ref([]),p=t.ref(null),G=t.ref(!1),i=t.ref(null),m=xt;m.length>0&&Object.keys(m[0]);const g=(_,P=!1)=>_==="revolute"?P?Math.PI:-Math.PI:_==="prismatic"?P?1:-1:0,J=_=>{if(!_||!_.joints)return console.warn("URDF模型没有关节信息"),[];const P=[];return Object.keys(_.joints).forEach(r=>{const a=_.joints[r];if(a._jointType==="fixed")return;const d=a.limit?{lower:a.limit.lower??g(a._jointType,!1),upper:a.limit.upper??g(a._jointType,!0)}:{lower:g(a._jointType,!1),upper:g(a._jointType,!0)};P.push({name:r,type:a._jointType||"unknown",limit:d,currentValue:a.angle||0,urdfJoint:a})}),P.sort((r,a)=>r.name.localeCompare(a.name))},C=(_,P)=>{const r=c.value.find(d=>d.name===_);if(!r)return;const a=parseFloat(P);if(r.limit){const d=Math.max(r.limit.lower,Math.min(r.limit.upper,a));r.currentValue=d}else r.currentValue=a;o.model&&o.model.setJointValue?o.model.setJointValue(_,r.currentValue):r.urdfJoint&&r.urdfJoint.setJointValue(r.currentValue)},N=_=>{_&&Object.keys(_).forEach(P=>{const r=_[P],a=c.value.find(d=>d.name===P);a&&(a.currentValue=r,o.model&&o.model.setJointValue?o.model.setJointValue(P,r):a.urdfJoint&&a.urdfJoint.setJointValue(r))})},O=(_,P,r)=>_+(P-_)*r,D=(_,P,r)=>{if(!_||!P)return _||P;const a={};return Object.keys(_).forEach(d=>{const B=_[d],w=P[d];a[d]=O(B,w||B,r)}),a},v=()=>{G.value?f():h()},h=()=>{if(m.length===0){console.warn("没有动画数据");return}G.value=!0;const _=m.length,P=60,r=Zt/P;let a=0,d=0;const B=()=>{if(!G.value)return;const w=a/P,k=m[d],T=m[d+1];if(T){const H=D(k,T,w);N(H)}else N(k);if(a++,a>=P&&(a=0,d++,d>=_-1)){f();return}i.value=setTimeout(B,r)};B()},f=()=>{G.value=!1,i.value&&(clearTimeout(i.value),i.value=null)},y=()=>{c.value.forEach(_=>{(_.type==="revolute"||_.type==="prismatic")&&C(_.name,0)})};t.watch(()=>o.model,_=>{_?c.value=J(_):c.value=[]},{immediate:!0});const E=()=>{!o.model||G.value||c.value.forEach(_=>{_.urdfJoint&&_.urdfJoint.angle!==void 0&&(_.currentValue=_.urdfJoint.angle)})},V=()=>{const _=()=>{E(),p.value=requestAnimationFrame(_)};_()},x=()=>{p.value&&(cancelAnimationFrame(p.value),p.value=null)};return t.onMounted(()=>{V()}),t.onUnmounted(()=>{x(),f()}),e({startAnimation:h}),(_,P)=>{const r=t.resolveComponent("el-scrollbar"),a=t.resolveComponent("el-collapse-transition");return l.model?(t.openBlock(),t.createElementBlock("div",Dt,[t.createElementVNode("div",{class:"panel-header",onClick:P[0]||(P[0]=d=>s.value=!s.value)},P[1]||(P[1]=[t.createElementVNode("h3",null,"关节控制面板",-1)])),t.createVNode(a,null,{default:t.withCtx(()=>[t.withDirectives(t.createVNode(r,{"max-height":"650px"},{default:t.withCtx(()=>[t.createElementVNode("div",Vt,[t.createElementVNode("button",{onClick:v,class:"animate-btn"},t.toDisplayString(G.value?"停止动画":"开始动画"),1),t.createElementVNode("button",{onClick:y,disabled:G.value},"重置所有关节",8,kt)]),t.createElementVNode("div",Ct,[c.value.length>0?(t.openBlock(),t.createElementBlock("div",Tt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.value,d=>{var B,w,k,T;return t.openBlock(),t.createElementBlock("div",{key:d.name,class:"joint-item"},[t.createElementVNode("div",St,[t.createElementVNode("div",At,[t.createElementVNode("span",Nt,t.toDisplayString(d.name),1),t.createElementVNode("span",Ot," ["+t.toDisplayString(((B=d.limit)==null?void 0:B.lower.toFixed(2))??(d.type==="revolute"?"-3.14":"-1.00"))+", "+t.toDisplayString(((w=d.limit)==null?void 0:w.upper.toFixed(2))??(d.type==="revolute"?"3.14":"1.00"))+"] ",1)]),t.createElementVNode("span",Lt,t.toDisplayString(d.type),1)]),d.type==="revolute"||d.type==="prismatic"?(t.openBlock(),t.createElementBlock("div",Ht,[t.createElementVNode("div",zt,[t.createElementVNode("input",{type:"range",min:((k=d.limit)==null?void 0:k.lower)??(d.type==="revolute"?-Math.PI:-1),max:((T=d.limit)==null?void 0:T.upper)??(d.type==="revolute"?Math.PI:1),step:.01,value:d.currentValue,onInput:H=>C(d.name,H.target.value),class:"joint-slider",disabled:G.value},null,40,jt)]),t.createElementVNode("div",It,[t.createElementVNode("span",Ut,t.toDisplayString(d.currentValue.toFixed(3)),1),t.createElementVNode("span",Ft,t.toDisplayString(d.type==="revolute"?"rad":"m"),1)])])):t.createCommentVNode("",!0)])}),128))])):(t.openBlock(),t.createElementBlock("div",Yt,P[2]||(P[2]=[t.createElementVNode("p",null,"未检测到可控制的关节",-1)])))])]),_:1},512),[[t.vShow,s.value]])]),_:1})])):t.createCommentVNode("",!0)}}},Xt=j._export_sfc(Kt,[["__scopeId","data-v-69f8c556"]]),$t={class:"obj-viewer-container"},Wt={class:"floating-controls"},qt=["disabled"],Qt=["disabled","title"],te={key:0,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},ee={key:1,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},oe=["disabled"],ne=["title"],ie={key:0,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},ae={key:1,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},se={key:2,class:"clipping-panel"},re={class:"panel-content"},le={class:"radio-group"},ce={class:"radio-label"},de={class:"radio-label"},he={class:"radio-label"},_e={class:"radio-label"},Pe={key:3,class:"loading-overlay"},Je={__name:"threeModel",setup(l,{expose:e}){let o=null;const s=t.ref(null),c=t.ref(!1),p=t.ref(""),G=t.ref(!1),i=t.ref(!1),m=t.ref(!1),g=t.ref(null),{currentModels:J,initialCameraPosition:C,initialTargetPosition:N,initThreeJS:O,handleResize:D,fitCameraToAllModels:v,getThreeJSObjects:h,clearAllModels:f,cleanup:y}=wt(s),{isAnimating:E,toggleAnimation:V,stopAnimation:x}=Bt(h,J),{isClipping:_,activeClippingAxis:P,toggleClipping:r,updateClippingPlanes:a}=Rt(h,J),{addModelsFromUrls:d,loadModelByDefaultPath:B,urdfModel:w}=n.useModelLoader(h,J,c,p,f),k=()=>{if(m.value||J.value.length===0)return;m.value=!0,E.value&&x();const{camera:S,controls:u}=h();if(!S||!u)return;u.enabled=!0;const M=L=>L<.5?4*L*L*L:1-Math.pow(-2*L+2,3)/2,et=S.position.clone(),ot=u.target.clone(),nt=1500,it=Date.now(),Z=()=>{const L=Date.now()-it,K=Math.min(L/nt,1),X=M(K);S.position.lerpVectors(et,C.value,X),u.target.lerpVectors(ot,N.value,X),K<1?requestAnimationFrame(Z):m.value=!1};Z()},T=()=>{G.value=!0,w&&(g.value.startAnimation(),G.value=!1)};t.watch(()=>w,()=>{g.value.startAnimation(),G.value=!1},{deep:!0});const H=()=>{document.fullscreenElement?document.exitFullscreen().then(()=>{i.value=!1,t.nextTick(()=>{D()})}).catch(S=>{console.error("无法退出全屏:",S)}):s.value.requestFullscreen().then(()=>{i.value=!0,t.nextTick(()=>{D()})}).catch(S=>{console.error("无法进入全屏:",S)})},F=()=>{i.value=!!document.fullscreenElement,i.value||t.nextTick(()=>{D()})},Y=async(S,u)=>{try{E.value&&x(),_.value&&r();const M=await u(S);return v(),M}catch(M){throw console.error("加载模型失败:",M),M}},Q=async S=>Y(S,d),tt=async S=>(console.log(232,111),Y(S,B));return t.onMounted(async()=>{await t.nextTick(),O(),o=h().scene,window.addEventListener("resize",D),document.addEventListener("fullscreenchange",F)}),t.onBeforeUnmount(()=>{window.removeEventListener("resize",D),document.removeEventListener("fullscreenchange",F),E.value&&x(),y()}),e({addModelsFromUrls:Q,loadModelByDefaultPath:tt,startRunningAnimation:T}),(S,u)=>(t.openBlock(),t.createElementBlock("div",$t,[t.unref(w)?(t.openBlock(),t.createBlock(ht,{key:0,model:t.unref(w)},null,8,["model"])):t.createCommentVNode("",!0),t.unref(w)?(t.openBlock(),t.createBlock(Xt,{key:1,model:t.unref(w),scene:t.unref(o),ref_key:"jointRef",ref:g},null,8,["model","scene"])):t.createCommentVNode("",!0),t.createElementVNode("div",{ref_key:"threejsContainer",ref:s,class:"threejs-container"},null,512),t.createElementVNode("div",Wt,[t.createElementVNode("button",{onClick:k,class:t.normalizeClass(["control-btn","reset-btn"]),disabled:c.value||t.unref(J).length===0||m.value,title:"重置"},u[10]||(u[10]=[t.createElementVNode("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[t.createElementVNode("path",{d:"M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"}),t.createElementVNode("polyline",{points:"9,22 9,12 15,12 15,22"})],-1)]),8,qt),t.createElementVNode("button",{onClick:u[0]||(u[0]=(...M)=>t.unref(V)&&t.unref(V)(...M)),class:t.normalizeClass(["control-btn","animation-btn",{active:t.unref(E)}]),disabled:c.value||t.unref(J).length===0,title:t.unref(E)?"停止动画":"动画视图"},[t.unref(E)?(t.openBlock(),t.createElementBlock("svg",ee,u[12]||(u[12]=[t.createElementVNode("circle",{cx:"12",cy:"12",r:"10"},null,-1),t.createElementVNode("rect",{x:"9.5",y:"8",width:"2",height:"8",fill:"currentColor"},null,-1),t.createElementVNode("rect",{x:"12.5",y:"8",width:"2",height:"8",fill:"currentColor"},null,-1)]))):(t.openBlock(),t.createElementBlock("svg",te,u[11]||(u[11]=[t.createElementVNode("circle",{cx:"12",cy:"12",r:"10"},null,-1),t.createElementVNode("polygon",{points:"10,8 16,12 10,16",fill:"currentColor"},null,-1)])))],10,Qt),t.createElementVNode("button",{onClick:u[1]||(u[1]=(...M)=>t.unref(r)&&t.unref(r)(...M)),class:t.normalizeClass(["control-btn","clipping-btn",{active:t.unref(_)}]),disabled:c.value||t.unref(J).length===0,title:"剖面视图"},u[13]||(u[13]=[t.createElementVNode("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[t.createElementVNode("rect",{x:"3",y:"3",width:"18",height:"18"}),t.createElementVNode("line",{x1:"-14",y1:"12",x2:"30",y2:"12","stroke-dasharray":"4,2"})],-1)]),10,oe),t.createElementVNode("button",{onClick:H,class:t.normalizeClass(["control-btn","fullscreen-btn"]),title:i.value?"退出全屏":"全屏"},[i.value?(t.openBlock(),t.createElementBlock("svg",ae,u[15]||(u[15]=[t.createElementVNode("path",{d:"M8 3v3a2 2 0 0 1-2 2H3m18 0h-3a2 2 0 0 1-2-2V3m0 18v-3a2 2 0 0 1 2-2h3M3 16h3a2 2 0 0 1 2 2v3"},null,-1)]))):(t.openBlock(),t.createElementBlock("svg",ie,u[14]||(u[14]=[t.createElementVNode("path",{d:"M8 3H5a2 2 0 0 0-2 2v3m18 0V5a2 2 0 0 0-2-2h-3m0 18h3a2 2 0 0 0 2-2v-3M3 16v3a2 2 0 0 0 2 2h3"},null,-1)])))],8,ne)]),t.unref(_)?(t.openBlock(),t.createElementBlock("div",se,[t.createElementVNode("div",re,[t.createElementVNode("div",le,[t.createElementVNode("label",ce,[t.withDirectives(t.createElementVNode("input",{type:"radio",name:"clipping-axis",value:"none","onUpdate:modelValue":u[2]||(u[2]=M=>t.isRef(P)?P.value=M:null),onChange:u[3]||(u[3]=(...M)=>t.unref(a)&&t.unref(a)(...M))},null,544),[[t.vModelRadio,t.unref(P)]]),u[16]||(u[16]=t.createElementVNode("span",{class:"radio-text"},"无切割",-1))]),t.createElementVNode("label",de,[t.withDirectives(t.createElementVNode("input",{type:"radio",name:"clipping-axis",value:"x","onUpdate:modelValue":u[4]||(u[4]=M=>t.isRef(P)?P.value=M:null),onChange:u[5]||(u[5]=(...M)=>t.unref(a)&&t.unref(a)(...M))},null,544),[[t.vModelRadio,t.unref(P)]]),u[17]||(u[17]=t.createElementVNode("span",{class:"radio-text"},"X轴切割",-1))]),t.createElementVNode("label",he,[t.withDirectives(t.createElementVNode("input",{type:"radio",name:"clipping-axis",value:"y","onUpdate:modelValue":u[6]||(u[6]=M=>t.isRef(P)?P.value=M:null),onChange:u[7]||(u[7]=(...M)=>t.unref(a)&&t.unref(a)(...M))},null,544),[[t.vModelRadio,t.unref(P)]]),u[18]||(u[18]=t.createElementVNode("span",{class:"radio-text"},"Y轴切割",-1))]),t.createElementVNode("label",_e,[t.withDirectives(t.createElementVNode("input",{type:"radio",name:"clipping-axis",value:"z","onUpdate:modelValue":u[8]||(u[8]=M=>t.isRef(P)?P.value=M:null),onChange:u[9]||(u[9]=(...M)=>t.unref(a)&&t.unref(a)(...M))},null,544),[[t.vModelRadio,t.unref(P)]]),u[19]||(u[19]=t.createElementVNode("span",{class:"radio-text"},"Z轴切割",-1))])])])])):t.createCommentVNode("",!0),c.value?(t.openBlock(),t.createElementBlock("div",Pe,[u[20]||(u[20]=t.createElementVNode("div",{class:"loading-spinner"},null,-1)),t.createElementVNode("p",null,t.toDisplayString(p.value),1)])):t.createCommentVNode("",!0)]))}},ue=j._export_sfc(Je,[["__scopeId","data-v-55d9773d"]]);exports.default=ue;
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as wt, resolveComponent as q, createElementBlock as O, openBlock as T, createVNode as X, ref as x, computed as Ot, watch as ct, createCommentVNode as Y, createElementVNode as _, withCtx as st, withDirectives as Z, vShow as Rt, onMounted as Bt, onUnmounted as Lt, toDisplayString as U, Fragment as Ht, renderList as zt, nextTick as Q, onBeforeUnmount as jt, createBlock as ft, unref as b, normalizeClass as tt, isRef as et, vModelRadio as ot } from "vue";
2
- import { C as It, V as f, M as $, T as K, Q as gt, S as yt, a as N, R as Ft, P as nt, b as Nt, B as rt, c as Ut, d as Vt, e as Yt, W as Zt, f as Kt, A as Xt, g as $t, X as Wt, G as qt, h as at, i as Qt, j as Et, k as te, D as ht, H as ee, l as bt, m as oe, n as ie, E as dt, o as ne } from "./threeModel.vue_vue_type_style_index_0_scoped_3d52b35a_lang-Bea0CNjG.js";
2
+ import { C as It, V as f, M as $, T as K, Q as gt, S as yt, a as N, R as Ft, P as nt, b as Nt, B as rt, c as Ut, d as Vt, e as Yt, W as Zt, f as Kt, A as Xt, g as $t, X as Wt, G as qt, h as at, i as Qt, j as Et, k as te, D as ht, H as ee, l as bt, m as oe, n as ie, E as dt, o as ne } from "./threeModel.vue_vue_type_style_index_0_scoped_55d9773d_lang-OVa4vxrk.js";
3
3
  import { _ as lt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
4
  const ae = { class: "tree-container" }, se = /* @__PURE__ */ wt({
5
5
  __name: "index",
@@ -1775,7 +1775,7 @@ const xe = [
1775
1775
  } catch (w) {
1776
1776
  throw console.error("加载模型失败:", w), w;
1777
1777
  }
1778
- }, Dt = async (z) => ut(z, l), Tt = async (z) => ut(z, E);
1778
+ }, Dt = async (z) => ut(z, l), Tt = async (z) => (console.log(232, 111), ut(z, E));
1779
1779
  return Bt(async () => {
1780
1780
  await Q(), F(), e = h().scene, window.addEventListener("resize", S), document.addEventListener("fullscreenchange", Jt);
1781
1781
  }), jt(() => {
@@ -1955,7 +1955,7 @@ const xe = [
1955
1955
  ])) : Y("", !0)
1956
1956
  ]));
1957
1957
  }
1958
- }, fo = /* @__PURE__ */ lt(uo, [["__scopeId", "data-v-3d52b35a"]]);
1958
+ }, fo = /* @__PURE__ */ lt(uo, [["__scopeId", "data-v-55d9773d"]]);
1959
1959
  export {
1960
1960
  fo as default
1961
1961
  };
@@ -1,4 +1,4 @@
1
- "use strict";const vh=require("./index-5QKtXqtt.cjs"),rr=require("./menu-CIgIfqSs.cjs"),xh=require("vue"),Tu=rr.defineStore("modelComp",{state:()=>({itemData:[],originalData:[],extraContents:[],nodeDev:"",isEdit:"view",isRefreshCurStructure:!1,isSubmitCurStructure:!1,curStructureCompIds:[],systemPath:"",freshContent:!1,routeToChildPath:""}),actions:{setItemData(r){this.itemData=r},setFreshContent(r){this.freshContent=r},setRouteToChildPath(r){this.routeToChildPath=r},setSubmitCurStructure(r){this.isSubmitCurStructure=r},setCurStructureCompIds(r){this.curStructureCompIds=r},setRefreshCurStructure(r){this.isRefreshCurStructure=r},setOriginalData(r){this.originalData=r},setExtraContents(r){this.extraContents=r},setNodeDev(r){this.nodeDev=r},setIsEdit(r){this.isEdit=r},setSystemPath(r){this.systemPath=r}}});/**
1
+ "use strict";const vh=require("./index-CKfWuKQ-.cjs"),rr=require("./menu-DlNtyfT6.cjs"),xh=require("vue"),Tu=rr.defineStore("modelComp",{state:()=>({itemData:[],originalData:[],extraContents:[],nodeDev:"",isEdit:"view",isRefreshCurStructure:!1,isSubmitCurStructure:!1,curStructureCompIds:[],systemPath:"",freshContent:!1,routeToChildPath:""}),actions:{setItemData(r){this.itemData=r},setFreshContent(r){this.freshContent=r},setRouteToChildPath(r){this.routeToChildPath=r},setSubmitCurStructure(r){this.isSubmitCurStructure=r},setCurStructureCompIds(r){this.curStructureCompIds=r},setRefreshCurStructure(r){this.isRefreshCurStructure=r},setOriginalData(r){this.originalData=r},setExtraContents(r){this.extraContents=r},setNodeDev(r){this.nodeDev=r},setIsEdit(r){this.isEdit=r},setSystemPath(r){this.systemPath=r}}});/**
2
2
  * @license
3
3
  * Copyright 2010-2025 Three.js Authors
4
4
  * SPDX-License-Identifier: MIT
@@ -1,5 +1,5 @@
1
- import { d as hh } from "./index-BI8ECnch.js";
2
- import { f as dh, b as _a, s as fh, p as ph } from "./menu-ozOGGi5Z.js";
1
+ import { d as hh } from "./index-DxkIkZjg.js";
2
+ import { f as dh, b as _a, s as fh, p as ph } from "./menu-Dl_Xtx7n.js";
3
3
  import { ref as mh } from "vue";
4
4
  const gh = dh("modelComp", {
5
5
  state: () => ({
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ss-component-new",
3
3
  "private": false,
4
- "version": "1.1.396",
4
+ "version": "1.1.397",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist",