@realsee/five 6.0.0-alpha.86 → 6.0.0-alpha.87

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/umd/five.js CHANGED
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * @license
3
3
  * @realsee/five
4
- * Generated: 2024/4/2
5
- * Version: 6.0.0-alpha.86
4
+ * Generated: 2024/4/17
5
+ * Version: 6.0.0-alpha.87
6
6
  * Terms:
7
7
  * Realsee SDK License Agreement
8
8
  * Update: July 28, 2021
@@ -1411,7 +1411,7 @@ void main() {
1411
1411
  gl_FragColor.a = 1.0 - texture2D(luminanceMap, vUv).r;
1412
1412
  #endif
1413
1413
  }
1414
- `,TileMaterial=function(n){__extends(t,n);function t(){var e=n.call(this,{uniforms:{map:{value:null},luminanceMap:{value:null},flipY:{value:0}},vertexShader:TILE_MATERIAL_VERTEX_SHADER,fragmentShader:TILE_MATERIAL_FRAGMENT_SHADER})||this;return e.depthTest=!1,e.depthWrite=!1,e.blending=THREE__namespace.NoBlending,e.map=e.uniforms.map.value,e.luminanceMap=e.uniforms.luminanceMap.value,e.flipY=e.uniforms.flipY.value,Object.defineProperties(e,{map:{get:function(){return this.uniforms.map.value},set:function(r){this.uniforms.map.value=r}},luminanceMap:{get:function(){return this.uniforms.luminanceMap.value},set:function(r){this.uniforms.luminanceMap.value=r,this.defines.USE_LUMINANCE=r!==null,this.needsUpdate=!0}},flipY:{get:function(){return this.uniforms.flipY.value===1},set:function(r){this.uniforms.flipY.value=r?1:0}}}),e}return t}(THREE__namespace.ShaderMaterial),TileMesh=function(n){__extends(t,n);function t(e,r){var i=n.call(this,geometry$3,new TileMaterial)||this;return e.box.getCenter(i.position),i.quaternion.multiplyQuaternions(new THREE__namespace.Quaternion().setFromAxisAngle(new THREE__namespace.Vector3(0,1,0),-Math.PI),TILE_QUATERNION[e.face]),i.scale.setScalar(e.size),i.node=e,i.name="tiling:tile",i.material.visible=!1,i.activeTime=-1,i.disposed=!1,i.needsRender=!1,i.frustumCulled=!1,r.then(function(o){var s=o[0],u=o[1];i.disposed?(s.dispose(),u==null||u.dispose()):(i.material.map=s,i.material.luminanceMap=u,i.material.flipY=!s.flipY,i.material.needsUpdate=!0,i.material.visible=!0,i.needsRender=!0)}).catch(noop$1),i}return t.prototype.updateTime=function(e){},t.prototype.dispose=function(){var e;this.disposed=!0,this.material.map&&(this.material.map.dispose(),(e=this.material.luminanceMap)===null||e===void 0||e.dispose()),this.material.dispose()},t}(THREE__namespace.Mesh),TilingObject3D=function(n){__extends(t,n);function t(){var e=n.call(this)||this;return e.needsRender=!1,e.name="tiling",e}return t}(THREE__namespace.Group),Tiling=function(){function n(t,e,r){this.disposed=!1,this.textureLoader=new TextureLoader,this.minLevel=e,this.level=0,this.panoId="[0]",this.pedding=0,this.tileTree=createTileCubeTree(this.minLevel),this.tileMeshes=new Map,this.resource=[],this.luminance=null,this.imageOptions=r,this.fetcher=t,this.object=new TilingObject3D,this.object.renderOrder=-3}return n.prototype.setFetcher=function(t){this.fetcher=t},n.prototype.cleanup=function(){var t=this;this.tileMeshes.forEach(function(e){e.dispose(),t.object.remove(e),t.object.needsRender=!0}),this.tileMeshes.clear()},n.prototype.setRotation=function(t){this.disposed||this.object.quaternion.equals(t)||(this.object.quaternion.copy(t),this.object.needsRender=!0)},n.prototype.setPosition=function(t){this.disposed||this.object.position.equals(t)||(this.object.position.copy(t),this.object.needsRender=!0)},n.prototype.setResource=function(t,e){var r,i;if(!this.disposed&&!(this.resource===t&&this.luminance===e)){this.cleanup(),this.resource=t;var o=(i=(r=t.slice().sort(function(s,u){return u.level-s.level})[0])===null||r===void 0?void 0:r.level)!==null&&i!==void 0?i:0;this.tileTree=createTileCubeTree(o),this.luminance=e,this.object.needsRender=!0}},n.prototype.update=function(t,e,r){var i=this;if(!this.disposed){this.level=e;var o=t.planes[5].normal,s=[];e>=this.minLevel&&traverseTileCubeNode(this.tileTree,function(b){if(!(b.level<i.minLevel)){if(b.level>e||!t.intersectsBox(b.box))return!1;s.push(b)}});var u=new THREE__namespace.Vector3;s.sort(function(b,E){return b.level!==E.level?b.level-E.level:b.box.getCenter(u).angleTo(o)-E.box.getCenter(u).angleTo(o)});for(var c=new Set,l=function(b){var E=d.resource.filter(function(Q){return Q.level===b.level})[0];if(!E)return"continue";if(c.add(b),d.tileMeshes.has(b))return d.tileMeshes.get(b).activeTime=r,"continue";var T=E.size,x=d.imageOptions.transform,_=Math.pow(2,b.level)*b.position.y,w=Math.pow(2,b.level)*b.position.x,S="".concat(d.panoId,".").concat(b.face,".").concat(b.level,".").concat(_,".").concat(w),M=__assign(__assign({key:"pano_tile.".concat(S)},pick(d.imageOptions,["format","size","quality","sharpen","mappings"])),{size:T*b.size===TILE_IMAGE_SIZE?void 0:TILE_IMAGE_SIZE,cut:[T*b.position.x,T*b.position.y,T*b.size,T*b.size]}),C=d.textureLoader.loadTexture(E[b.face],{imageURL:{transform:x,options:M},minFilter:THREE__namespace.NearestFilter,magFilter:THREE__namespace.LinearFilter,generateMipmaps:!1,fetcher:d.fetcher}).then(function(Q){return Q.body}),I=null;if(d.luminance){var B=d.luminance[b.face],F=B.match(/\/cube_(\d+)\//),L=F?Number(F[1]):!1;if(L!==!1){var k=__assign(__assign({},M),{size:L*b.size===TILE_IMAGE_SIZE/2?void 0:TILE_IMAGE_SIZE/2,cut:[L*b.position.x,L*b.position.y,L*b.size,L*b.size],key:"pano_tile_luminance.".concat(S)});I=d.textureLoader.loadTexture(B,{imageURL:{transform:d.imageOptions.transform,options:k},magFilter:THREE__namespace.NearestFilter,fetcher:d.fetcher}).then(function(Q){return Q.body}).catch(function(){return null})}}d.pedding++;var O=Promise.all([C,I]).then(function(Q){return i.pedding--,Q},function(Q){return i.pedding--,Promise.reject(Q)}),D=new TileMesh(b,O);D.name="tiling:tile-".concat(S),D.activeTime=r,D.renderOrder=b.level,d.tileMeshes.set(b,D),d.object.needsRender=!0,d.object.add(D)},d=this,f=0,m=s;f<m.length;f++){var p=m[f];l(p)}var g=[];this.tileMeshes.forEach(function(b,E){c.has(E)||g.push(E),b.visible=E.level<=e});for(var v=g.sort(function(b,E){var T,x,_,w;return((x=(T=i.tileMeshes.get(E))===null||T===void 0?void 0:T.activeTime)!==null&&x!==void 0?x:0)-((w=(_=i.tileMeshes.get(b))===null||_===void 0?void 0:_.activeTime)!==null&&w!==void 0?w:0)}).slice(Math.max(0,MAX_TILE_COUNT-c.size)),A=0,h=v;A<h.length;A++){var p=h[A],y=this.tileMeshes.get(p);y&&(y.dispose(),this.object.remove(y),this.object.needsRender=!0),this.tileMeshes.delete(p)}}},n.prototype.dispose=function(){this.cleanup(),this.resource=[],this.disposed=!0},n}(),vertices$1=new Float32Array([-1,1,1,-1,1,-1,-1,-1,1,-1,-1,-1,1,1,-1,1,1,1,1,-1,-1,1,-1,1,1,1,-1,-1,1,-1,1,1,1,-1,1,1,1,-1,1,-1,-1,1,1,-1,-1,-1,-1,-1,1,1,1,-1,1,1,1,-1,1,-1,-1,1,-1,1,-1,1,1,-1,-1,-1,-1,1,-1,-1]),index$1=new Uint8Array([0,2,1,2,3,1,4,6,5,6,7,5,8,10,9,10,11,9,12,14,13,14,15,13,16,18,17,18,19,17,20,22,21,22,23,21]),sharedGeometry$1=new THREE__namespace.BufferGeometry;sharedGeometry$1.setAttribute("position",new THREE__namespace.BufferAttribute(vertices$1,3)),sharedGeometry$1.setIndex(new THREE__namespace.BufferAttribute(index$1,1));var PANO_VIDEO_MATERIAL_VERTEX_SHADER=`
1414
+ `,TileMaterial=function(n){__extends(t,n);function t(){var e=n.call(this,{uniforms:{map:{value:null},luminanceMap:{value:null},flipY:{value:0}},vertexShader:TILE_MATERIAL_VERTEX_SHADER,fragmentShader:TILE_MATERIAL_FRAGMENT_SHADER})||this;return e.depthTest=!1,e.depthWrite=!1,e.blending=THREE__namespace.NoBlending,e.map=e.uniforms.map.value,e.luminanceMap=e.uniforms.luminanceMap.value,e.flipY=e.uniforms.flipY.value,Object.defineProperties(e,{map:{get:function(){return this.uniforms.map.value},set:function(r){this.uniforms.map.value=r}},luminanceMap:{get:function(){return this.uniforms.luminanceMap.value},set:function(r){this.uniforms.luminanceMap.value=r,this.defines.USE_LUMINANCE=r!==null,this.needsUpdate=!0}},flipY:{get:function(){return this.uniforms.flipY.value===1},set:function(r){this.uniforms.flipY.value=r?1:0}}}),e}return t}(THREE__namespace.ShaderMaterial),TileMesh=function(n){__extends(t,n);function t(e,r){var i=n.call(this,geometry$3,new TileMaterial)||this;return e.box.getCenter(i.position),i.quaternion.multiplyQuaternions(new THREE__namespace.Quaternion().setFromAxisAngle(new THREE__namespace.Vector3(0,1,0),-Math.PI),TILE_QUATERNION[e.face]),i.scale.setScalar(e.size),i.node=e,i.name="tiling:tile",i.material.visible=!1,i.activeTime=-1,i.disposed=!1,i.needsRender=!1,i.frustumCulled=!1,r.then(function(o){var s=o[0],u=o[1];i.disposed?(s.dispose(),u==null||u.dispose()):(i.material.map=s,i.material.luminanceMap=u,i.material.flipY=!s.flipY,i.material.needsUpdate=!0,i.material.visible=!0,i.needsRender=!0)}).catch(noop$1),i}return t.prototype.updateTime=function(e){},t.prototype.dispose=function(){var e;this.disposed=!0,this.material.map&&(this.material.map.dispose(),(e=this.material.luminanceMap)===null||e===void 0||e.dispose()),this.material.dispose()},t}(THREE__namespace.Mesh),TilingObject3D=function(n){__extends(t,n);function t(){var e=n.call(this)||this;return e.needsRender=!1,e.name="tiling",e}return t}(THREE__namespace.Group),Tiling=function(){function n(t,e,r){this.disposed=!1,this.textureLoader=new TextureLoader,this.minLevel=e,this.level=0,this.panoId="[0]",this.maxPedding=3,this.pedding=0,this.tileTree=createTileCubeTree(this.minLevel),this.tileMeshes=new Map,this.resource=[],this.luminance=null,this.imageOptions=r,this.fetcher=t,this.object=new TilingObject3D,this.object.renderOrder=-3}return n.prototype.setFetcher=function(t){this.fetcher=t},n.prototype.cleanup=function(){var t=this;this.tileMeshes.forEach(function(e){e.dispose(),t.object.remove(e),t.object.needsRender=!0}),this.tileMeshes.clear()},n.prototype.setRotation=function(t){this.disposed||this.object.quaternion.equals(t)||(this.object.quaternion.copy(t),this.object.needsRender=!0)},n.prototype.setPosition=function(t){this.disposed||this.object.position.equals(t)||(this.object.position.copy(t),this.object.needsRender=!0)},n.prototype.setResource=function(t,e){var r,i;if(!this.disposed&&!(this.resource===t&&this.luminance===e)){this.cleanup(),this.resource=t;var o=(i=(r=t.slice().sort(function(s,u){return u.level-s.level})[0])===null||r===void 0?void 0:r.level)!==null&&i!==void 0?i:0;this.tileTree=createTileCubeTree(o),this.luminance=e,this.object.needsRender=!0}},n.prototype.update=function(t,e,r){var i=this;if(!this.disposed){this.level=e;var o=t.planes[5].normal,s=[];e>=this.minLevel&&traverseTileCubeNode(this.tileTree,function(b){if(!(b.level<i.minLevel)){if(b.level>e||!t.intersectsBox(b.box))return!1;s.push(b)}});var u=new THREE__namespace.Vector3;s.sort(function(b,E){return b.level!==E.level?b.level-E.level:b.box.getCenter(u).angleTo(o)-E.box.getCenter(u).angleTo(o)});for(var c=new Set,l=function(b){var E=d.resource.filter(function(Q){return Q.level===b.level})[0];if(!E)return"continue";if(c.add(b),d.tileMeshes.has(b))return d.tileMeshes.get(b).activeTime=r,"continue";if(d.pedding>=d.maxPedding)return"continue";var T=E.size,x=d.imageOptions.transform,_=Math.pow(2,b.level)*b.position.y,w=Math.pow(2,b.level)*b.position.x,S="".concat(d.panoId,".").concat(b.face,".").concat(b.level,".").concat(_,".").concat(w),M=__assign(__assign({key:"pano_tile.".concat(S)},pick(d.imageOptions,["format","size","quality","sharpen","mappings"])),{size:T*b.size===TILE_IMAGE_SIZE?void 0:TILE_IMAGE_SIZE,cut:[T*b.position.x,T*b.position.y,T*b.size,T*b.size]}),C=d.textureLoader.loadTexture(E[b.face],{imageURL:{transform:x,options:M},minFilter:THREE__namespace.NearestFilter,magFilter:THREE__namespace.LinearFilter,generateMipmaps:!1,fetcher:d.fetcher}).then(function(Q){return Q.body}),I=null;if(d.luminance){var B=d.luminance[b.face],F=B.match(/\/cube_(\d+)\//),L=F?Number(F[1]):!1;if(L!==!1){var k=__assign(__assign({},M),{size:L*b.size===TILE_IMAGE_SIZE/2?void 0:TILE_IMAGE_SIZE/2,cut:[L*b.position.x,L*b.position.y,L*b.size,L*b.size],key:"pano_tile_luminance.".concat(S)});I=d.textureLoader.loadTexture(B,{imageURL:{transform:d.imageOptions.transform,options:k},magFilter:THREE__namespace.NearestFilter,fetcher:d.fetcher}).then(function(Q){return Q.body}).catch(function(){return null})}}d.pedding++;var O=Promise.all([C,I]).then(function(Q){return i.pedding--,Q},function(Q){return i.pedding--,Promise.reject(Q)}),D=new TileMesh(b,O);D.name="tiling:tile-".concat(S),D.activeTime=r,D.renderOrder=b.level,d.tileMeshes.set(b,D),d.object.needsRender=!0,d.object.add(D)},d=this,f=0,m=s;f<m.length;f++){var p=m[f];l(p)}var g=[];this.tileMeshes.forEach(function(b,E){c.has(E)||g.push(E),b.visible=E.level<=e});for(var v=g.sort(function(b,E){var T,x,_,w;return((x=(T=i.tileMeshes.get(E))===null||T===void 0?void 0:T.activeTime)!==null&&x!==void 0?x:0)-((w=(_=i.tileMeshes.get(b))===null||_===void 0?void 0:_.activeTime)!==null&&w!==void 0?w:0)}).slice(Math.max(0,MAX_TILE_COUNT-c.size)),A=0,h=v;A<h.length;A++){var p=h[A],y=this.tileMeshes.get(p);y&&(y.dispose(),this.object.remove(y),this.object.needsRender=!0),this.tileMeshes.delete(p)}}},n.prototype.dispose=function(){this.cleanup(),this.resource=[],this.disposed=!0},n}(),vertices$1=new Float32Array([-1,1,1,-1,1,-1,-1,-1,1,-1,-1,-1,1,1,-1,1,1,1,1,-1,-1,1,-1,1,1,1,-1,-1,1,-1,1,1,1,-1,1,1,1,-1,1,-1,-1,1,1,-1,-1,-1,-1,-1,1,1,1,-1,1,1,1,-1,1,-1,-1,1,-1,1,-1,1,1,-1,-1,-1,-1,1,-1,-1]),index$1=new Uint8Array([0,2,1,2,3,1,4,6,5,6,7,5,8,10,9,10,11,9,12,14,13,14,15,13,16,18,17,18,19,17,20,22,21,22,23,21]),sharedGeometry$1=new THREE__namespace.BufferGeometry;sharedGeometry$1.setAttribute("position",new THREE__namespace.BufferAttribute(vertices$1,3)),sharedGeometry$1.setIndex(new THREE__namespace.BufferAttribute(index$1,1));var PANO_VIDEO_MATERIAL_VERTEX_SHADER=`
1415
1415
  #if defined(USE_PANO_VIDEO)
1416
1416
  varying vec3 worldPosition;
1417
1417
  #endif
@@ -2009,7 +2009,7 @@ void main() {
2009
2009
  #include <premultiplied_alpha_fragment>
2010
2010
 
2011
2011
  }
2012
- `},LineMaterial=function(n){__extends(t,n);function t(e){var r=n.call(this,{uniforms:THREE__namespace.UniformsUtils.clone(lineShader.uniforms),vertexShader:lineShader.vertexShader,fragmentShader:lineShader.fragmentShader,clipping:!0})||this;return r.type="LineMaterial",r.dashed=!1,Object.defineProperties(r,{color:{enumerable:!0,get:function(){return this.uniforms.diffuse.value},set:function(i){this.uniforms.diffuse.value=i}},linewidth:{enumerable:!0,get:function(){return this.uniforms.linewidth.value},set:function(i){this.uniforms.linewidth.value=i}},dashScale:{enumerable:!0,get:function(){return this.uniforms.dashScale.value},set:function(i){this.uniforms.dashScale.value=i}},dashSize:{enumerable:!0,get:function(){return this.uniforms.dashSize.value},set:function(i){this.uniforms.dashSize.value=i}},gapSize:{enumerable:!0,get:function(){return this.uniforms.gapSize.value},set:function(i){this.uniforms.gapSize.value=i}},opacity:{enumerable:!0,get:function(){return this.uniforms.opacity.value},set:function(i){this.uniforms.opacity.value=i}},resolution:{enumerable:!0,get:function(){return this.uniforms.resolution.value},set:function(i){this.uniforms.resolution.value.copy(i)}}}),r.setValues(e),r}return t}(THREE__namespace.ShaderMaterial);Object.assign(LineMaterial.prototype,{isLineMaterial:!0});var LineSegments2=function(n){__extends(t,n);function t(e,r){var i=n.call(this)||this;return i.type="LineSegments2",i.geometry=e!==void 0?e:new LineSegmentsGeometry,i.material=r!==void 0?r:new LineMaterial({color:Math.random()*16777215}),i}return t.prototype.computeLineDistances=function(){for(var e=this.geometry,r=e.attributes.instanceStart,i=e.attributes.instanceEnd,o=new Float32Array(2*r.count),s=new THREE__namespace.Vector3,u=new THREE__namespace.Vector3,c=0,l=0,d=r.count;c<d;c++,l+=2)s.fromBufferAttribute(r,c),u.fromBufferAttribute(i,c),o[l]=l===0?0:o[l-1],o[l+1]=o[l]+s.distanceTo(u);var f=new THREE__namespace.InstancedInterleavedBuffer(o,2,1);return e.setAttribute("instanceDistanceStart",new THREE__namespace.InterleavedBufferAttribute(f,1,0)),e.setAttribute("instanceDistanceEnd",new THREE__namespace.InterleavedBufferAttribute(f,1,1)),this},t.prototype.raycast=function(e,r){e.camera===null&&console.error('LineSegments2: "Raycaster.camera" needs to be set in order to raycast against LineSegments2.');var i=e.ray,o=e.camera,s=o.projectionMatrix,u=this.geometry,c=this.material,l=c.resolution,d=c.linewidth,f=u.attributes.instanceStart,m=u.attributes.instanceEnd,p=new THREE__namespace.Vector4,g=new THREE__namespace.Vector4,v=new THREE__namespace.Vector4,A=new THREE__namespace.Vector3,h=new THREE__namespace.Matrix4,y=new THREE__namespace.Line3,b=new THREE__namespace.Vector3;i.at(1,v),v.w=1,v.applyMatrix4(o.matrixWorldInverse),v.applyMatrix4(s),v.multiplyScalar(1/v.w),v.x*=l.x/2,v.y*=l.y/2,v.z=0,A.copy(v);var E=this.matrixWorld;h.multiplyMatrices(o.matrixWorldInverse,E);for(var T=0,x=f.count;T<x;T++){p.fromBufferAttribute(f,T),g.fromBufferAttribute(m,T),p.w=1,g.w=1,p.applyMatrix4(h),g.applyMatrix4(h),p.applyMatrix4(s),g.applyMatrix4(s),p.multiplyScalar(1/p.w),g.multiplyScalar(1/g.w);var _=p.z<-1&&g.z<-1,w=p.z>1&&g.z>1;if(!(_||w)){p.x*=l.x/2,p.y*=l.y/2,g.x*=l.x/2,g.y*=l.y/2,y.start.copy(p),y.start.z=0,y.end.copy(g),y.end.z=0;var S=y.closestPointToPointParameter(A,!0);y.at(S,b);var M=THREE__namespace.MathUtils.lerp(p.z,g.z,S),C=M>=-1&&M<=1,I=A.distanceTo(b)<d*.5;if(C&&I){y.start.fromBufferAttribute(f,T),y.end.fromBufferAttribute(m,T),y.start.applyMatrix4(E),y.end.applyMatrix4(E);var B=new THREE__namespace.Vector3,F=new THREE__namespace.Vector3;i.distanceSqToSegment(y.start,y.end,F,B),r.push({point:F,pointOnLine:B,distance:i.origin.distanceTo(F),object:this,faceIndex:T})}}}},t}(THREE__namespace.Mesh);Object.assign(LineSegments2.prototype,{isLineSegments2:!0});var Line2=function(n){__extends(t,n);function t(e,r){var i=n.call(this,e,r)||this;return i.type="Line2",i}return t}(LineSegments2);Object.assign(Line2.prototype,{isLine2:!0});var LineGeometry=function(n){__extends(t,n);function t(){var e=n.call(this)||this;return e.type="LineGeometry",e}return t.prototype.setPositions=function(e){for(var r=e.length-3,i=new Float32Array(2*r),o=0;o<r;o+=3)i[2*o]=e[o],i[2*o+1]=e[o+1],i[2*o+2]=e[o+2],i[2*o+3]=e[o+3],i[2*o+4]=e[o+4],i[2*o+5]=e[o+5];return n.prototype.setPositions.call(this,i),this},t.prototype.setColors=function(e){for(var r=e.length-3,i=new Float32Array(2*r),o=0;o<r;o+=3)i[2*o]=e[o],i[2*o+1]=e[o+1],i[2*o+2]=e[o+2],i[2*o+3]=e[o+3],i[2*o+4]=e[o+4],i[2*o+5]=e[o+5];return n.prototype.setColors.call(this,i),this},t.prototype.fromLine=function(e){var r=e.geometry;if(r instanceof THREE__namespace.Geometry){var i=new THREE__namespace.BufferGeometry().fromGeometry(r);this.setPositions(i.attributes.position.array)}else r instanceof THREE__namespace.BufferGeometry&&this.setPositions(r.attributes.position.array);return this},t.prototype.copy=function(){return this},t}(LineSegmentsGeometry);Object.assign(LineGeometry.prototype,{isLineGeometry:!0});var circleImageURL="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAAZiS0dEAAAAA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Nw0CfXKDCipVCoTj8df3QABbW1tLUc6oUgkFPMkVACUNjc337148eKvw8PDbJ2jP1taWkoCyNDVXDSECmNSK4qiKNLq6urW8+fPI/UicHx8rD59+jSVy+WOAKSJhKENwFItLtoxk8mwsixzHR0dHe3t7c5PAU+n09rs7OzJkydPYqVSaQfANoDXALIk31S2smU1TWMPDg7K5XKZ7+3t9TudTut1U7+wsFCcmJiIpdPpbQBxADsAknQWymYCOukBHYCuKApisdhpMpnURFEU79y503TVyKenpzOTk5M7e3t7MQKPV0Zv1gNm+awB0MvlshqLxfLb29uyJElWURSbXC4XXyvqxcXFs6mpqeTc3Nzu3t7e3wQcA7BPZ8Cov1pNlJplmQtAG8MwHV6v95tAINA5MDBwPxAIuLu6upr8fr/VAN3c3JQjkcjZ+vp6fnl5+d2bN29SuVzuNYAEpf01CdRChUL+X1VskHACuA3Ay3Fcu9vt7nA6nZ7m5uYWQRCaNE3jVVW15PP580KhIGUymWw2m00DOAJwSP4WwPtq4LX2Ao6USxNlQyS/RcQcdLGwlNIz6vEMAaZpNzCk2Pll94LK/cDYimxERiBwG10sxjgvEZBE0UpE6vxj+0Ct5bTaXthgEhRmja8QWNkkPGsuIpfdjpkK+cZUWTC0KredVmtD/gdlSl6EG4AMvQAAAABJRU5ErkJggg==",DEFAULT_COLOR=14467195,POINT_SIZE=8,DEFAULT_LINEWIDTH=2,DEFAULT_DASHSCALE=20,sharedCircleTexture=null,FiveLine=function(n){__extends(t,n);function t(e,r){e===void 0&&(e=new THREE__namespace.Vector3),r===void 0&&(r=new THREE__namespace.Vector3);var i=n.call(this)||this;i.type="FiveLine",i.needsRender=!0;var o=new LineGeometry,s=new LineMaterial({color:DEFAULT_COLOR,linewidth:DEFAULT_LINEWIDTH,dashScale:DEFAULT_DASHSCALE,dashed:!1});i.line=new Line2(o,s);var u=new THREE__namespace.BufferGeometry,c=new THREE__namespace.PointsMaterial({color:DEFAULT_COLOR,size:POINT_SIZE,map:sharedCircleTexture||(sharedCircleTexture=new THREE__namespace.TextureLoader().load(circleImageURL)),sizeAttenuation:!1,transparent:!0});return i.points=new THREE__namespace.Points(u,c),i.points.renderOrder=11,i.points.frustumCulled=!1,i.setPoints(e,r),i.add(i.line,i.points),i}return Object.defineProperty(t,"version",{get:function(){return"6.0.0-alpha.86"},enumerable:!1,configurable:!0}),t.prototype.setPoints=function(e,r){var i=[].concat(e.toArray(),r.toArray());this.points.geometry.setAttribute("position",new THREE__namespace.BufferAttribute(new Float32Array(i),3)),this.line.geometry.setPositions(i),this.line.computeLineDistances(),this.needsRender=!0},t.prototype.getPoints=function(){var e=this.points.geometry.attributes.position.array;return[new THREE__namespace.Vector3(e[0],e[1],e[2]),new THREE__namespace.Vector3(e[3],e[4],e[5])]},t.prototype.setMaterial=function(e){var r=this.line.material;for(var i in e)if(e.hasOwnProperty(i)){var o=e[i];i==="dashed"?(r.dashed=o,o?r.defines.USE_DASH="":delete r.defines.USE_DASH,r.needsUpdate=!0):r[i]=e[i]}this.needsRender=!0},t.prototype.setResolution=function(e,r){var i=this.line.material.resolution;(i.x!==e||i.y!==r)&&(i.set(e,r),this.needsRender=!0)},t}(THREE__namespace.Object3D);Object.assign(FiveLine.prototype,{isFiveLine:!0});var Constants={Handedness:Object.freeze({NONE:"none",LEFT:"left",RIGHT:"right"}),ComponentState:Object.freeze({DEFAULT:"default",TOUCHED:"touched",PRESSED:"pressed"}),ComponentProperty:Object.freeze({BUTTON:"button",X_AXIS:"xAxis",Y_AXIS:"yAxis",STATE:"state"}),ComponentType:Object.freeze({TRIGGER:"trigger",SQUEEZE:"squeeze",TOUCHPAD:"touchpad",THUMBSTICK:"thumbstick",BUTTON:"button"}),ButtonTouchThreshold:.05,AxisTouchThreshold:.1,VisualResponseProperty:Object.freeze({TRANSFORM:"transform",VISIBILITY:"visibility"})};function fetchJsonFile(n){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(e){switch(e.label){case 0:return[4,fetch(n)];case 1:if(t=e.sent(),t.ok)return[2,t.json()];throw new Error(t.statusText)}})})}function fetchProfilesList(n){return __awaiter(this,void 0,void 0,function(){var t,e;return __generator(this,function(r){switch(r.label){case 0:if(!n)throw new Error("No basePath supplied");return t="profilesList.json",[4,fetchJsonFile("".concat(n,"/").concat(t))];case 1:return e=r.sent(),[2,e]}})})}function fetchProfile(n,t,e,r){return e===void 0&&(e=null),r===void 0&&(r=!0),__awaiter(this,void 0,void 0,function(){var i,o,s,u,c,l;return __generator(this,function(d){switch(d.label){case 0:if(!n)throw new Error("No xrInputSource supplied");if(!t)throw new Error("No basePath supplied");return[4,fetchProfilesList(t)];case 1:if(i=d.sent(),n.profiles.some(function(f){var m=i[f];return m&&(o={profileId:f,profilePath:"".concat(t,"/").concat(m.path),deprecated:!!m.deprecated}),!!o}),!o){if(!e)throw new Error("No matching profile name found");if(s=i[e],!s)throw new Error('No matching profile name found and default profile "'.concat(e,'" missing.'));o={profileId:e,profilePath:"".concat(t,"/").concat(s.path),deprecated:!!s.deprecated}}return[4,fetchJsonFile(o.profilePath)];case 2:if(u=d.sent(),r){if(l=void 0,l=u.layouts[n.handedness],!l)throw new Error("No matching handedness, ".concat(n.handedness,", in profile ").concat(o.profileId));l.assetPath&&(c=o.profilePath.replace("profile.json",l.assetPath))}return[2,{profile:u,assetPath:c}]}})})}var defaultComponentValues={xAxis:0,yAxis:0,button:0,state:Constants.ComponentState.DEFAULT};function normalizeAxes(n,t){n===void 0&&(n=0),t===void 0&&(t=0);var e=n,r=t,i=Math.sqrt(n*n+t*t);if(i>1){var o=Math.atan2(t,n);e=Math.cos(o),r=Math.sin(o)}var s={normalizedXAxis:e*.5+.5,normalizedYAxis:r*.5+.5};return s}var VisualResponse=function(){function n(t){this.componentProperty=t.componentProperty,this.states=t.states,this.valueNodeName=t.valueNodeName,this.valueNodeProperty=t.valueNodeProperty,this.valueNodeProperty===Constants.VisualResponseProperty.TRANSFORM&&(this.minNodeName=t.minNodeName,this.maxNodeName=t.maxNodeName),this.value=0,this.updateFromComponent(defaultComponentValues)}return n.prototype.updateFromComponent=function(t){var e=t.xAxis,r=t.yAxis,i=t.button,o=t.state,s=normalizeAxes(e,r),u=s.normalizedXAxis,c=s.normalizedYAxis;switch(this.componentProperty){case Constants.ComponentProperty.X_AXIS:this.value=this.states.includes(o)?u:.5;break;case Constants.ComponentProperty.Y_AXIS:this.value=this.states.includes(o)?c:.5;break;case Constants.ComponentProperty.BUTTON:this.value=this.states.includes(o)?i:0;break;case Constants.ComponentProperty.STATE:this.valueNodeProperty===Constants.VisualResponseProperty.VISIBILITY?this.value=this.states.includes(o):this.value=this.states.includes(o)?1:0;break;default:throw new Error("Unexpected visualResponse componentProperty ".concat(this.componentProperty))}},n}(),Component=function(){function n(t,e){var r=this;if(!t||!e||!e.visualResponses||!e.gamepadIndices||Object.keys(e.gamepadIndices).length===0)throw new Error("Invalid arguments supplied");this.id=t,this.type=e.type,this.rootNodeName=e.rootNodeName,this.touchPointNodeName=e.touchPointNodeName,this.visualResponses={},Object.keys(e.visualResponses).forEach(function(i){var o=new VisualResponse(e.visualResponses[i]);r.visualResponses[i]=o}),this.gamepadIndices=Object.assign({},e.gamepadIndices),this.values={state:Constants.ComponentState.DEFAULT,button:this.gamepadIndices.button!==void 0?0:void 0,xAxis:this.gamepadIndices.xAxis!==void 0?0:void 0,yAxis:this.gamepadIndices.yAxis!==void 0?0:void 0}}return Object.defineProperty(n.prototype,"data",{get:function(){var t=__assign({id:this.id},this.values);return t},enumerable:!1,configurable:!0}),n.prototype.updateFromGamepad=function(t){var e=this;if(this.values.state=Constants.ComponentState.DEFAULT,this.gamepadIndices.button!==void 0&&t.buttons.length>this.gamepadIndices.button){var r=t.buttons[this.gamepadIndices.button];this.values.button=r.value,this.values.button=this.values.button<0?0:this.values.button,this.values.button=this.values.button>1?1:this.values.button,r.pressed||this.values.button===1?this.values.state=Constants.ComponentState.PRESSED:(r.touched||this.values.button>Constants.ButtonTouchThreshold)&&(this.values.state=Constants.ComponentState.TOUCHED)}this.gamepadIndices.xAxis!==void 0&&t.axes.length>this.gamepadIndices.xAxis&&(this.values.xAxis=t.axes[this.gamepadIndices.xAxis],this.values.xAxis=this.values.xAxis<-1?-1:this.values.xAxis,this.values.xAxis=this.values.xAxis>1?1:this.values.xAxis,this.values.state===Constants.ComponentState.DEFAULT&&Math.abs(this.values.xAxis)>Constants.AxisTouchThreshold&&(this.values.state=Constants.ComponentState.TOUCHED)),this.gamepadIndices.yAxis!==void 0&&t.axes.length>this.gamepadIndices.yAxis&&(this.values.yAxis=t.axes[this.gamepadIndices.yAxis],this.values.yAxis=this.values.yAxis<-1?-1:this.values.yAxis,this.values.yAxis=this.values.yAxis>1?1:this.values.yAxis,this.values.state===Constants.ComponentState.DEFAULT&&Math.abs(this.values.yAxis)>Constants.AxisTouchThreshold&&(this.values.state=Constants.ComponentState.TOUCHED)),Object.values(this.visualResponses).forEach(function(i){i.updateFromComponent(e.values)})},n}(),MotionController=function(){function n(t,e,r){var i=this;if(!t)throw new Error("No xrInputSource supplied");if(!e)throw new Error("No profile supplied");this.xrInputSource=t,this.assetUrl=r,this.id=e.profileId,this.layoutDescription=e.layouts[t.handedness],this.components={},Object.keys(this.layoutDescription.components).forEach(function(o){var s=i.layoutDescription.components[o];i.components[o]=new Component(o,s)}),this.updateFromGamepad()}return Object.defineProperty(n.prototype,"gripSpace",{get:function(){return this.xrInputSource.gripSpace},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"targetRaySpace",{get:function(){return this.xrInputSource.targetRaySpace},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"data",{get:function(){var t=[];return Object.values(this.components).forEach(function(e){t.push(e.data)}),t},enumerable:!1,configurable:!0}),n.prototype.updateFromGamepad=function(){var t=this;Object.values(this.components).forEach(function(e){e.updateFromGamepad(t.xrInputSource.gamepad)})},n}(),DEFAULT_PROFILES_PATH="https://cdn.jsdelivr.net/npm/@webxr-input-profiles/assets@1.0/dist/profiles",DEFAULT_PROFILE="generic-trigger",XRControllerModel=function(n){__extends(t,n);function t(){var e=n.call(this)||this;return e.motionController=null,e.envMap=null,e}return t.prototype.setEnvironmentMap=function(e){var r=this;return this.envMap==e?this:(this.envMap=e,this.traverse(function(i){i instanceof THREE__namespace.Mesh&&i.isMesh&&(i.material.envMap=r.envMap,i.material.needsUpdate=!0)}),this)},t.prototype.updateMatrixWorld=function(e){n.prototype.updateMatrixWorld.call(this,e),this.motionController&&(this.motionController.updateFromGamepad(),Object.values(this.motionController.components).forEach(function(r){Object.values(r.visualResponses).forEach(function(i){var o=i.valueNode,s=i.minNode,u=i.maxNode,c=i.value,l=i.valueNodeProperty;o&&(l===Constants.VisualResponseProperty.VISIBILITY?o.visible=c:l===Constants.VisualResponseProperty.TRANSFORM&&(o.quaternion.copy(s.quaternion).slerp(u.quaternion,c),o.position.lerpVectors(s.position,u.position,c)))})}))},t}(THREE.Object3D);function findNodes(n,t){Object.values(n.components).forEach(function(e){var r=e.type,i=e.touchPointNodeName,o=e.visualResponses;if(r===Constants.ComponentType.TOUCHPAD)if(e.touchPointNode=t.getObjectByName(i),e.touchPointNode){var s=new THREE.SphereGeometry(.001),u=new THREE.MeshBasicMaterial({color:255}),c=new THREE.Mesh(s,u);e.touchPointNode.add(c)}else console.warn("Could not find touch dot, ".concat(e.touchPointNodeName,", in touchpad component ").concat(e.id));Object.values(o).forEach(function(l){var d=l.valueNodeName,f=l.minNodeName,m=l.maxNodeName,p=l.valueNodeProperty;if(p===Constants.VisualResponseProperty.TRANSFORM){if(l.minNode=t.getObjectByName(f),l.maxNode=t.getObjectByName(m),!l.minNode){console.warn("Could not find ".concat(f," in the model"));return}if(!l.maxNode){console.warn("Could not find ".concat(m," in the model"));return}}l.valueNode=t.getObjectByName(d),l.valueNode||console.warn("Could not find ".concat(d," in the model"))})})}function addAssetSceneToControllerModel(n,t){findNodes(n.motionController,t),n.envMap&&t.traverse(function(e){e instanceof THREE__namespace.Mesh&&e.isMesh&&(e.material.envMap=n.envMap,e.material.needsUpdate=!0)}),n.add(t)}var XRControllerModelFactory=function(){function n(t){t===void 0&&(t=null),this.gltfLoader=t,this.path=DEFAULT_PROFILES_PATH,this._assetCache={}}return n.prototype.createControllerModel=function(t){var e=this,r=new XRControllerModel,i=null;return t.addEventListener("connected",function(o){var s=o.data;s.targetRayMode!=="tracked-pointer"||!s.gamepad||fetchProfile(s,e.path,DEFAULT_PROFILE).then(function(u){var c=u.profile,l=u.assetPath;r.motionController=new MotionController(s,c,l);var d=e._assetCache[r.motionController.assetUrl];if(d)i=d.scene.clone(),addAssetSceneToControllerModel(r,i);else{if(!e.gltfLoader)throw new Error("GLTFLoader not set.");e.gltfLoader.load(r.motionController.assetUrl,function(f){e._assetCache[r.motionController.assetUrl]=f,i=f.scene.clone(),addAssetSceneToControllerModel(r,i)})}}).catch(function(u){console.warn(u)})}),t.addEventListener("disconnected",function(){r.motionController=null,r.remove(i),i=null}),r},n}();function mapPanoResource(n,t){if(!t)return n;var e=n.match(/\d+_[a-z].png/);return n.substring(0,e.index)+t+"/"+n.substring(e.index)}var CONTROLLER_EVNET_DELTA_TIME=300,ROTATE_Y_PI_MATRIX=new THREE__namespace.Matrix4().makeRotationAxis(new THREE__namespace.Vector3(0,1,0),Math.PI),PANO_TEXTURE_SCALE=new THREE__namespace.Vector3(-1,1,1),XRPanoramaController=function(n){__extends(t,n);function t(e){var r=n.call(this,e)||this;r.xrManager=new XRManager(r.renderer,r.renderer.getContext(),{onSessionStart:function(c){r.emit("xr.session.start",createEvent("xr.session.start",{session:c,machineType:r.xrManager.machineType}))},onSessionEnd:function(){r.emit("xr.session.end",createEvent("xr.session.end",{session:null,machineType:r.xrManager.machineType}))}}),r.xrControllerRay={left:new THREE__namespace.Raycaster,right:new THREE__namespace.Raycaster},r.xrControllerRay.left.params.Points={threshold:.1},r.xrControllerRay.right.params.Points={threshold:.1},r.pointerLines={left:new FiveLine,right:new FiveLine},r.pointerLines.left.visible=!1,r.pointerLines.right.visible=!0,r.pointerLines.left.setMaterial({color:new THREE__namespace.Vector3(1,1,1)}),r.pointerLines.left.points.material.depthTest=!1,r.pointerLines.right.setMaterial({color:new THREE__namespace.Vector3(1,1,1)}),r.pointerLines.right.points.material.depthTest=!1,r.scene.add(r.pointerLines.left,r.pointerLines.right),r.panoResources={},r.panoResources[r.locationMotion.keyframes[0].key=r.locationMotion.keyframes[1].key=createUuid()]={panoId:panoStringify(r.currentPano),leftPanoPicture:null,position:r.camera.pose.offset.clone(),effect:"fade",fixCameraTransform:new THREE__namespace.Matrix4},r.parallaxCameraMatrixs=[];var i=AnimationFrameLoop.shared.getContext();if(!i)return console.error("获取session失败,请退出重试"),r;r.on("xr.session.end",function(){r.scene.remove(r.pointerLines.left,r.pointerLines.right)}),r.xrManager.setSession(i),r.controllerWrappers=[new THREE__namespace.Group,new THREE__namespace.Group],r.scene.add(r.controllerWrappers[0],r.controllerWrappers[1]);var o=r.xrManager.getController(0);r.controllerWrappers[0].add(o);var s=r.xrManager.getController(1);r.controllerWrappers[1].add(s);var u=new XRControllerModelFactory;return u.gltfLoader={load:function(c,l){internalFetcher.ajax(c,{responseType:"arraybuffer"}).then(function(d){var f;return parseGltf(d.body,{resourcePath:c.slice(0,c.lastIndexOf("/")+1),search:(f=c.split("?")[1])!==null&&f!==void 0?f:"",fetcher:internalFetcher})}).then(function(d){return l(d)})}},r.on("xr.session.start",function(){var c=r.xrManager.getControllerGrip(0);c.add(u.createControllerModel(c)),r.controllerWrappers[0].add(c);var l=r.xrManager.getControllerGrip(1);l.add(u.createControllerModel(l)),r.controllerWrappers[1].add(l)}),r.xrControllerState={LeftAxesUp:{touchStartTime:0,touchStart:!1},LeftAxesDown:{touchStartTime:0,touchStart:!1},LeftAxesLeft:{touchStartTime:0,touchStart:!1},LeftAxesRight:{touchStartTime:0,touchStart:!1},LeftTrigger:{touchStartTime:0,touchStart:!1},LeftPinch:{touchStartTime:0,touchStart:!1},RightAxesUp:{touchStartTime:0,touchStart:!1},RightAxesDown:{touchStartTime:0,touchStart:!1},RightAxesLeft:{touchStartTime:0,touchStart:!1},RightAxesRight:{touchStartTime:0,touchStart:!1},RightTrigger:{touchStartTime:0,touchStart:!1},RightPinch:{touchStartTime:0,touchStart:!1},Y:{touchStartTime:0,touchStart:!1},X:{touchStartTime:0,touchStart:!1},A:{touchStartTime:0,touchStart:!1},B:{touchStartTime:0,touchStart:!1}},r}return t.parseArgs=function(e){if(e instanceof t)return e;var r=__assign(__assign({},e),{maxLatitude:Math.PI/2,minLatitude:-Math.PI/2});return n.parseArgs.call(this,r)},t.initAnimationEndState=function(e){var r=this.parseArgs(e),i=n.initAnimationEndState.call(this,r);return __assign(__assign({},i),{mode:"XRPanorama"})},t.prototype.moveToPano=function(e,r,i){var o=this,s,u,c,l,d=(s=r.effect)!==null&&s!==void 0?s:"fade";this.userAction=i,this.stopMomentumMovement();var f=this.works.getResolvedObserver(e);if(!f)throw new Error("Invalid PanoIndex");var m=this.imageOptions.size;if(typeof m=="undefined"&&f){var p=f.images.up.match(/\/cube_(\d+)\//);p&&(m=Number(p[1]))}typeof m=="undefined"&&(m=2048);var g=this.imageOptions.transform,v=function(C,I){return mapPanoResource(applyImageURLOptions(C,g,I))},A=__assign({key:"pano.".concat(f.panoId)},pick(this.imageOptions,["format","size","quality"])),h=f.images,y=(c=(u=f.images.tiles)===null||u===void 0?void 0:u.filter(function(C){return C.size>m}))!==null&&c!==void 0?c:null,b="pano:"+jsonHash([h,A,g]);if(this.pendingTextureTask){if(this.pendingTextureTask.hash===b)return;var E=this.pendingTextureTask.panoId;(l=this.panoMeshes[E])===null||l===void 0||l.setProgress(0),this.emit("pano.texture.abort",createEvent("pano.texture.abort",{error:null,progress:0,meta:null,pano:f.pano})),this.pendingTextureTask.onError(new Error("texture aborted"))}var T=this.models.getMaterial()||{},x=T.pano0,_=T.pano1,w;if((x==null?void 0:x.map.name)===b?w=x:(_==null?void 0:_.map.name)===b&&(w=_),w){var S={panoId:f.panoId,effect:d,leftPanoPicture:{map:w.map,luminanceMap:w.luminanceMap,matrix:new THREE__namespace.Matrix4().compose(f.position,f.quaternion,PANO_TEXTURE_SCALE)},position:f.position.clone(),fixCameraTransform:new THREE__namespace.Matrix4};this.doMoveToPano(f.pano,S,r);return}var M="move-to-pano-"+f.panoId;this.pending.add(M),this.pendingTextureTask={panoId:f.panoId,hash:b,onLoad:function(C){if(o.pending.delete(M),o.destroyed)C.body.dispose();else{C.body.name=b;var I={panoId:f.panoId,effect:d,leftPanoPicture:{map:C.body,luminanceMap:null,matrix:new THREE__namespace.Matrix4().compose(f.position,f.quaternion,PANO_TEXTURE_SCALE)},position:f.position.clone(),fixCameraTransform:new THREE__namespace.Matrix4};o.doMoveToPano(f.pano,I,r)}},onError:function(C){o.pending.delete(M);var I=__assign(__assign(__assign({},f.pano),{mode:o.mode}),clonePose(o.camera.pose));o.emit("pano.error",createEvent("pano.error",{error:C,userAction:o.userAction,options:r,prevPano:o.currentPano,progress:0,state:I})),o.emit("pano.cancel",createEvent("pano.cancel",{error:null,userAction:o.userAction,options:r,prevPano:o.currentPano,progress:0,state:I})),r.moveCancelCallback&&r.moveCancelCallback()}},Promise.all([this.tileLevelForFov&&y&&y.length?this.textureLoader.loadTiledCubeTexture(h,y,{tileMaxLevel:this.TILED_CUBE_TEXTURE_LEVEL,imageURL:{transform:v,options:A},format:THREE__namespace.RGBAFormat,minFilter:THREE__namespace.NearestFilter,magFilter:THREE__namespace.LinearFilter,generateMipmaps:!1,viaAjax:!0,fetcher:getFetcher(f.work)},void 0,void 0,function(C){var I,B;o.emit("pano.texture.progress",createEvent("pano.texture.progress",{error:null,progress:C,meta:null,pano:f.pano})),((I=o.pendingTextureTask)===null||I===void 0?void 0:I.hash)===b&&((B=o.panoMeshes[f.panoId])===null||B===void 0||B.setProgress(C))},this.renderer):this.textureLoader.loadCubeTexture(h,{imageURL:{transform:v,options:A},format:THREE__namespace.RGBAFormat,fetcher:getFetcher(f.work)},void 0,void 0,function(C){var I,B;((I=o.pendingTextureTask)===null||I===void 0?void 0:I.hash)===b&&((B=o.panoMeshes[f.panoId])===null||B===void 0||B.setProgress(C)),o.emit("pano.texture.progress",createEvent("pano.texture.progress",{error:null,progress:C,meta:null,pano:f.pano}))},this.renderer)]).then(function(C){var I,B,F=C[0];((I=o.pendingTextureTask)===null||I===void 0?void 0:I.hash)===b?(o.pendingTextureTask.onLoad(F),(B=o.panoMeshes[f.panoId])===null||B===void 0||B.setProgress(0),delete o.pendingTextureTask,o.emit("pano.texture.success",createEvent("pano.texture.success",{error:null,progress:1,meta:F.meta,pano:f.pano}))):F.body.dispose()}).catch(function(C){var I,B;((I=o.pendingTextureTask)===null||I===void 0?void 0:I.hash)===b&&(o.pendingTextureTask.onError(C),(B=o.panoMeshes[f.panoId])===null||B===void 0||B.setProgress(0),delete o.pendingTextureTask,o.emit("pano.texture.error",createEvent("pano.texture.error",{error:C,progress:0,meta:null,pano:f.pano})),o.emit("error",C))}),this.emit("pano.texture.load",createEvent("pano.texture.load",{error:null,progress:0,meta:null,pano:f.pano}))},t.prototype.doMoveToPano=function(e,r,i){var o=this,s,u,c,l,d,f,m,p,g,v;i===void 0&&(i={});var A=now(),h=createUuid();this.panoResources[h]=r;var y=1,b,E,T;if(this.locationMotion.ended){var x=this.locationMotion.getKeyFrameSegment(A);x[0];var _=x[1],w=this.locationMotion.value,S=this.panoResourceFromLocationMotionKeyframe(_).position,M=r.position;b=Math.max(S.distanceTo(M),y),E=[{key:_.key,progress:0,value:__assign(__assign({},w),{count:0})},{key:h,progress:1,value:{distance:0,count:1}}],T=0}else{var C=this.locationMotion.getKeyFrameSegment(A),I=C[0],_=C[1],w=this.locationMotion.value,B=this.panoResourceFromLocationMotionKeyframe(I).position,S=this.panoResourceFromLocationMotionKeyframe(_).position,M=r.position,F=_.value.count-w.count,L=Math.max(B.distanceTo(S),y)*F,k=Math.max(S.distanceTo(M),y);b=L+k,E=[{key:I.key,progress:0,value:__assign({},w)},{key:_.key,progress:L/b,value:_.value},{key:h,progress:1,value:{count:_.value.count+1,distance:0}}];var O=this.locationMotionKeyframesLength(this.locationMotion.keyframes),D=this.locationMotionKeyframesLength(E);T=this.locationMotion.getProgressVelocity(A)*O/D}var Q=r.effect==="instant"?0:this.calculateMovingDuration(i.duration,r.effect==="fly"?b:0),N={longitude:i.longitude,latitude:i.latitude,fov:i.fov},U=__assign(__assign({},e),{mode:this.mode,longitude:(s=N.longitude)!==null&&s!==void 0?s:this.camera.pose.longitude,latitude:(u=N.latitude)!==null&&u!==void 0?u:this.camera.pose.latitude,fov:(c=N.fov)!==null&&c!==void 0?c:this.camera.pose.fov,offset:r.position.clone(),distance:0}),W=this.currentPano;this.emit("pano.moveTo",createEvent("pano.moveTo",{options:i,prevPano:W,progress:0,state:U,userAction:this.userAction,error:null})),i.moveStartCallback&&i.moveStartCallback(U),this.videoTexture&&this.videoTexture.image instanceof HTMLVideoElement&&this.videoTexture.image.getAttribute("src")&&(this.videoTexture.image.pause(),this.videoTexture.image.removeAttribute("uuid"),this.videoTexture.image.removeAttribute("src"),this.videoTexture.image.oncanplay=noop$1,this.videoTexture.needsUpdate=!0),this.panoVideo.setMaterial(null);var q=coordinatesToVector({longitude:this.cameraMotion.value.longitude,latitude:this.cameraMotion.value.latitude}),G=coordinatesToVector({longitude:(l=N.longitude)!==null&&l!==void 0?l:this.cameraMotion.value.longitude,latitude:(d=N.latitude)!==null&&d!==void 0?d:this.cameraMotion.value.latitude}),K=new THREE__namespace.Object3D;K.lookAt(q);var j=new THREE__namespace.Matrix4().makeRotationFromQuaternion(K.quaternion);K.lookAt(G);for(var se=new THREE__namespace.Matrix4().makeRotationFromQuaternion(K.quaternion),Y=new THREE__namespace.Matrix4().getInverse(j).premultiply(se),re=0;re<E.length-1;re++){var ee=E[re].key;if(ee){var oe=this.panoResources[ee];oe&&oe.fixCameraTransform.copy(Y)}}r.effect==="fly"?this.cameraMotion.set(N,Q).catch(noop$1):this.cameraMotion.setKeyframes([{progress:0,value:{longitude:this.cameraMotion.value.longitude,latitude:this.cameraMotion.value.latitude,fov:this.cameraMotion.value.fov}},{progress:0,value:{longitude:(f=N.longitude)!==null&&f!==void 0?f:this.cameraMotion.value.longitude,latitude:(m=N.latitude)!==null&&m!==void 0?m:this.cameraMotion.value.latitude,fov:this.cameraMotion.value.fov}},{progress:1,value:{longitude:(p=N.longitude)!==null&&p!==void 0?p:this.cameraMotion.value.longitude,latitude:(g=N.latitude)!==null&&g!==void 0?g:this.cameraMotion.value.latitude,fov:(v=N.fov)!==null&&v!==void 0?v:this.cameraMotion.value.fov}}],Q).catch(noop$1);var $=this.locationMotion.setKeyframes(E,Q,T);$.then(function(){var ie,ne,ae,Z=__assign(__assign({},e),{mode:o.mode,longitude:o.camera.pose.longitude,latitude:o.camera.pose.latitude,fov:o.camera.pose.fov,offset:o.camera.pose.offset.clone(),distance:0});o.emit("pano.arrived",createEvent("pano.arrived",{options:i,prevPano:W,progress:1,state:Z,userAction:o.userAction,error:null})),i.moveEndCallback&&i.moveEndCallback(Z);var J=o.works.getResolvedObserver(o.currentPano);if(J&&J.video&&o.videoTexture&&o.videoTexture.image instanceof HTMLVideoElement){var z=ROTATE_Y_PI_MATRIX.clone().multiply((ae=(ne=(ie=o.models.getMaterial())===null||ie===void 0?void 0:ie.pano1)===null||ne===void 0?void 0:ne.matrix)!==null&&ae!==void 0?ae:new THREE__namespace.Matrix4).multiply(J.video.matrix),ge={map:o.videoTexture,size:J.video.size,matrix:z,alpha:1},fe=createUuid(),ce=o.videoTexture.image;ce.setAttribute("uuid",fe),canplayVideo().then(function(Ae){Ae&&J.video&&ce.getAttribute("uuid")===fe&&(ce.oncanplay=function(){ce.oncanplay=noop$1,ce.play()},ce.ontimeupdate=function(){ce.currentTime>.5&&(ce.ontimeupdate=noop$1,o.panoVideo.setMaterial(ge))},ce.src=J.video.source)}).catch(function(){ce.removeAttribute("uuid")})}},function(){o.emit("pano.cancel",createEvent("pano.cancel",{options:i,prevPano:W,progress:0,state:U,userAction:o.userAction,error:null})),i.moveCancelCallback&&i.moveCancelCallback()})},t.prototype.checkSelectedPano=function(e){var r=this,i,o,s,u;this.stopMomentumMovement();var c=this.camera.getDirection(new THREE__namespace.Vector3).setY(0),l=null,d=this.works.getResolvedObserver(this.currentPano);if(!d)return null;var f=d.accessibleIds.filter(function(G){var K=panoParse(G);if(panoEqual(K,r.currentPano))return!1;var j=r.works.getResolvedObserver(K);return!j||j.position.distanceTo(r.camera.position)>r.maxAccessibleDistance?!1:j.loadable||j.active}),m=this.models.intersectRaycaster(e)[0];if(m){var p=arrayMin(f,function(G){var K=r.works.getResolvedObserver(G);if(!K)return 1/0;var j=K.standingPosition.clone();return j.distanceTo(m.point)},!0),g=p[0],v=p[1];g&&v<this.panoTapTriggerRadius&&(l=(i=this.works.getResolvedObserver(g))!==null&&i!==void 0?i:null)}if(isNil(l)){var A=this.getForwardObserverOrNot(e);A&&(l=A)}for(var h=0,y=this.locationMotion.keyframes;h<y.length;h++){var b=y[h],E=this.panoResourceFromLocationMotionKeyframe(b);if(!(b.progress<this.locationMotion.progress)&&l&&E.panoId===l.panoId){l=null;break}}if(isNil(l))return this.locationMotion.ended===!0&&this.cameraBounce(),null;if(l&&!l.active){var T=l.panoId;this.panoMeshes[T]&&(this.panoMeshes[T].setDisabled(!1),this.panoMeshes[T].setLoading(!0))}var x={};if(l){for(var _=Math.PI/6,w=Math.PI/12,S=new THREE__namespace.Vector3(0,1,0),M=l.position.clone().setY(0).sub(d.position.clone().setY(0)).normalize(),C=M.clone().applyAxisAngle(S,_),I=M.clone().applyAxisAngle(S,-_),B=[],F=[],L=[],k=0,O=l.accessibleIds;k<O.length;k++){var g=O[k],D=panoParse(g);if(!(panoEqual(D,this.currentPano)||panoEqual(D,l.pano))){var Q=this.works.getResolvedObserver(g);if(Q){var N=Q.position.clone().sub(l.position).setY(0);M.angleTo(N)<_?L.push(N):C.angleTo(N)<_?B.push(N):I.angleTo(N)<_&&F.push(N)}}}var U=L.length>0?L:__spreadArray(__spreadArray([],B,!0),F,!0),W=U.slice().sort(function(G,K){return G.angleTo(M)-K.angleTo(M)})[0];W&&W.angleTo(c)>w&&(x.longitude=Math.atan2(-W.x,-W.z))}this.cameraMotion.value.latitude<-Math.PI/4&&(x.latitude=clamp(0,this.minLatitude,this.maxLatitude)),this.cameraMotion.value.fov<60&&(x.fov=this.defaultFov);var q={workCode:l.pano.workCode,panoIndex:l.pano.panoIndex,mode:this.mode,longitude:(o=x.longitude)!==null&&o!==void 0?o:this.camera.pose.longitude,latitude:(s=x.latitude)!==null&&s!==void 0?s:this.camera.pose.latitude,fov:(u=x.fov)!==null&&u!==void 0?u:this.camera.pose.fov,distance:0,offset:l?l.position.clone():new THREE__namespace.Vector3};return this.emit("pano.select",createEvent("pano.select",{prevPano:this.currentPano,state:q,userAction:!0,options:x,progress:0,error:null})),l&&l.active?(this.emit("pano.request",createEvent("pano.request",{userAction:!0,prevPano:this.currentPano,progress:0,state:q,options:x,error:null})),l.pano):null},t.prototype.destroy=function(){n.prototype.destroy.call(this)},t.prototype.isReady=function(){return!1},t.prototype.updateCamera=function(e,r,i){return Promise.resolve()},t.prototype.updateCameraWithKeyframes=function(e,r,i){return Promise.resolve()},t.prototype.updateTime=function(e,r){for(var i=this,o,s,u,c,l,d,f,m,p=[],g=2;g<arguments.length;g++)p[g-2]=arguments[g];this.userAction=!0;var v={},A={},h=this.panoResourceFromLocationMotionKeyframe(this.locationMotion.keyframes[0]),y=this.panoResourceFromLocationMotionKeyframe(this.locationMotion.keyframes[this.locationMotion.keyframes.length-1]),b=!1;if(this.cameraMotion.ended===!1&&(this.cameraMotion.update(e),A.longitude=this.cameraMotion.value.longitude,A.latitude=this.cameraMotion.value.latitude,A.fov=this.cameraMotion.value.fov),this.modelAlphaMotion.ended===!1&&(this.modelAlphaMotion.update(e),v.modelAlpha=this.modelAlphaMotion.value.modelAlpha),this.perspToOrthoMotion.ended===!1&&(this.perspToOrthoMotion.update(e),this.camera.perspToOrtho.setScalar(clamp(this.perspToOrthoMotion.value.perspToOrtho,0,1))),this.locationMotion.ended===!1){this.locationMotion.update(e);var E=this.locationMotion.getKeyFrameSegment(e),T=E[0],x=E[1],_=this.panoResourceFromLocationMotionKeyframe(T),w=this.panoResourceFromLocationMotionKeyframe(x),S=new THREE__namespace.Vector3().copy(_.position),M=new THREE__namespace.Vector3().copy(w.position),C=this.locationMotion.value.count-x.value.count+1;v.progress=C,w.leftPanoPicture&&(C<1?_.leftPanoPicture&&(v.pano0=_.leftPanoPicture):v.pano0=w.leftPanoPicture,v.pano1=w.leftPanoPicture),w.effect==="montage"?v.transition="BLACK":w.effect==="spread"?v.transition="SPREAD":v.transition="FADE",C<1&&w.effect!=="fly"&&(v.pano0&&_.leftPanoPicture&&(v.pano0={map:v.pano0.map,luminanceMap:v.pano0.luminanceMap,matrix:_.leftPanoPicture.matrix.clone().setPosition(w.position)}),S.copy(M),b=!0),A.distance=this.locationMotion.value.distance,A.offset=new THREE__namespace.Vector3(S.x+(M.x-S.x)*C,S.y+(M.y-S.y)*C,S.z+(M.z-S.z)*C);for(var I=[],B=[],F=0,L=this.locationMotion.keyframes;F<L.length;F++){var k=L[F],O=k.key,D=k.progress;O!==void 0&&(I.push(O),D>this.locationMotion.progress&&B.push(O))}for(var Q=0,N=Object.keys(this.panoResources);Q<N.length;Q++){var U=N[Q];if(!(B.indexOf(U)>=0)){var W=this.panoResources[U];if(W.leftPanoPicture){var q=W.leftPanoPicture.map;if(q){if(q===((o=v.pano0)===null||o===void 0?void 0:o.map)||q===((s=v.pano1)===null||s===void 0?void 0:s.map))continue;q instanceof TileCubeTextureTarget&&q.cubeRenderTarget&&this.colorCubeRenderTargetPool.push(q.cubeRenderTarget),q.dispose(),W.leftPanoPicture=null}}I.indexOf(U)>=0||delete this.panoResources[U]}}this.currentPano=panoParse(w.panoId),this.emit("pano.moving",createEvent("pano.moving",{userAction:this.userAction,prevPano:panoParse(h.panoId),state:__assign(__assign(__assign(__assign({},panoParse(y.panoId)),{mode:this.mode}),clonePose(this.camera.pose)),A),options:{},progress:this.locationMotion.progress,error:null}))}isEmptyObject(v)===!1&&(!((u=v.pano0)===null||u===void 0)&&u.map&&v.pano0.map instanceof TileCubeTextureTarget&&!v.pano0.map.cubeRenderTarget&&(v.pano0.map.cubeRenderTarget=this.colorCubeRenderTargetPool.pop()),!((c=v.pano1)===null||c===void 0)&&c.map&&v.pano1.map instanceof TileCubeTextureTarget&&!v.pano1.map.cubeRenderTarget&&(v.pano1.map.cubeRenderTarget=this.colorCubeRenderTargetPool.pop()),this.models.setMaterial(v)),isEmptyObject(A)===!1&&this.setCamera(A);var G=this.works.getResolvedObserver(this.currentPano),K=p[1];if(!K){console.error("xrFrame丢失,请重试");return}if(!this.xrManager.session){console.error("session丢失,请重试");return}var j=this.xrManager.referenceSpace;if(j){var se=this.xrManager.cameraVR,Y=this.xrManager.cameraL,re=this.xrManager.cameraR,ee=[Y,re],oe=K.getViewerPose(j),$=new THREE__namespace.Vector3(0,0,0);if(oe){var ie;ie=this.xrManager.session.renderState.baseLayer;var ne=oe.views;if(!ie){console.error("no layer found");return}this.renderer.setFramebuffer(ie.framebuffer);var ae=!1;ne.length!==se.cameras.length&&(se.cameras.length=0,ae=!0),this.parallaxCameraMatrixs=[];var Z=new THREE__namespace.Vector3,J=new THREE__namespace.Vector3;new THREE__namespace.Matrix4().fromArray(ne[0].transform.matrix).decompose(Z,new THREE__namespace.Quaternion,new THREE__namespace.Vector3),new THREE__namespace.Matrix4().fromArray(ne[1].transform.matrix).decompose(J,new THREE__namespace.Quaternion,new THREE__namespace.Vector3),J.clone().sub(Z).normalize();var z=new THREE__namespace.Vector3,ge=new THREE__namespace.Quaternion,fe=new THREE__namespace.Vector3;this.camera.matrix.decompose(z,ge,fe);for(var ce=0;ce<ne.length;ce++){var Ae=ne[ce],ye=ie.getViewport(Ae),Ee=ee[ce];Ee.matrix.fromArray(Ae.transform.matrix);var we=new THREE__namespace.Vector3,ue=new THREE__namespace.Quaternion,le=new THREE__namespace.Vector3;Ee.matrix.decompose(we,ue,le),$.copy(z),Ee.position.copy(z),Ee.quaternion.copy(ue),Ee.scale.copy(le),Ee.updateMatrix(),Ee.projectionMatrix.fromArray(Ae.projectionMatrix),Ee.viewport.set(ye.x,ye.y,ye.width,ye.height),ae===!0&&se.cameras.push(Ee)}oe.views[0].transform.position,oe.views[1].transform.position;for(var pe=this.xrManager.session.inputSources,ce=0;ce<this.xrManager.controllers.length;ce++){var Te=this.xrManager.controllers[ce],de=pe[ce];if(de){Te.update(de,K,j);var be=this.xrManager.getController(ce),me=new THREE__namespace.Vector3(0,1.2,0),_e=be.position.clone().add($).sub(me);de.handedness==="left"?this.xrControllerRay.left.set(_e,new THREE__namespace.Vector3(0,0,-1).applyEuler(be.rotation)):de.handedness==="right"&&this.xrControllerRay.right.set(_e,new THREE__namespace.Vector3(0,0,-1).applyEuler(be.rotation)),this.controllerWrappers[ce].position.copy(new THREE__namespace.Vector3(0,0,0).add($).sub(me));var Be=this.models.intersectRaycaster(this.xrControllerRay.right);if(Be.length===0&&(Be=this.xrControllerRay.right.intersectObject(this.boundingMesh,!0).map(function(Le){var Oe;return __assign({floor:(Oe=G==null?void 0:G.floorIndex)!==null&&Oe!==void 0?Oe:0},Le)})),Be.length>=1&&Be[0].face)if(de.handedness==="right"){var Ie=this.xrControllerRay.right.intersectObject(this.xrCustomObjectsScene,!0),Ge=Be[0].face.normal,qe=Ge.clone().multiplyScalar(.05),Re=Be[0].point.clone().add(qe);this.intersectMesh.position.copy(Re);var $e=Re.clone().add(qe);if(this.intersectMesh.lookAt($e),Math.abs(Ge.y)>.99){var ze=this.camera.position.clone().sub(Re);this.intersectMesh.rotation.z=-Math.atan2(ze.z,ze.x)}this.intersectMesh.visible=!0,this.needsRender=!0,Ie.length>0?(this.pointerLines.right.setPoints(_e,Ie[0].point),this.pointerLines.right.points.visible=!0,this.intersectMesh.visible=!1):(this.pointerLines.right.points.visible=!1,this.pointerLines.right.setPoints(_e,Be[0].point));var Ve=Be[0],Ue=createEvent("intersect.update",{raycaster:(l=this.xrControllerRay.right)!==null&&l!==void 0?l:null,intersection:Ve!=null?Ve:null,object:this.intersectMesh});if(this.emit("intersect.update",Ue),Ue.defaultPrevented){this.hideIntersectMesh();return}}else this.pointerLines.left.setPoints(_e,Be[0].point)}}if(this.camera.pose.distance>.1||b)for(var Ke=0,Xe=Object.keys(this.panoMeshes);Ke<Xe.length;Ke++){var He=Xe[Ke],ve=this.panoMeshes[He];ve.setOpacity(0),ve.setCurrent(!1),ve.updateTime&&ve.updateTime(e,r),ve.visible=!1}else if(G){var et=arrayMin(G.visibleIds,function(Pe){var Le=i.works.getResolvedObserver(Pe);return Le?G.standingPosition.distanceTo(Le.standingPosition):1/0},!0),je=et[1];je=clamp(je,2.5,1/0);for(var ht=G.visibleIds.concat(panoStringify(this.currentPano)),tt=this.getForwardObserverOrNot(),pt=this.camera.getDirection(new THREE__namespace.Vector3),ot=0,Ze=Object.keys(this.panoMeshes);ot<Ze.length;ot++){var He=Ze[ot],ve=this.panoMeshes[He],Se=this.works.getResolvedObserver(He);if(ht.indexOf(He)===-1)ve.setCurrent(!1),ve.setOpacity(0);else if(!Se)ve.setCurrent(!1),ve.setOpacity(0);else if(!Se.loadable&&!Se.active)ve.setCurrent(!1),ve.setOpacity(0);else{var Me=ve.position.clone().setY(this.camera.position.y).distanceTo(this.camera.position);ve.setCurrent(!ve.loading&&ve.progress===0&&tt!==null&&tt.panoId===He),ve.setOpacity(Me<.01?0:clamp(je/Me*1.2,.65,.98));var De=this.camera.position.clone().setY(ve.position.y),rt=new THREE__namespace.Vector3().copy(ve.position).sub(De).normalize();if(He===panoStringify(this.currentPano)){var vt=clamp((.5-De.distanceTo(ve.position))/.5,0,1);rt.multiplyScalar(1-vt).add(pt.clone().multiplyScalar(vt))}rt.length()>0&&ve.quaternion.setFromEuler(new THREE__namespace.Euler(0,Math.atan2(rt.x,rt.z),0))}ve.updateTime&&ve.updateTime(e,r)}}var ct=function(){if(i.tileLevelForFov===!1)return 0;var Pe=new THREE__namespace.Vector2(4e3,4e3),Le=y.panoId,Oe=i.works.getResolvedObserver(Le),ke=i.imageOptions.size;if(typeof ke=="undefined"&&Oe){var yt=Oe.images.up.match(/\/cube_(\d+)\//);yt&&(ke=Number(yt[1]))}typeof ke=="undefined"&&(ke=2048);var ut=0;ke>=1024&&(ut=1),ke>=2048&&(ut=2),ke>=4096&&(ut=3),ke>=8192&&(ut=4);var lt=i.tileLevelForFov(Y.fov,Pe);return lt>ut?lt:0}(),mt=function(){var Pe=new THREE__namespace.PerspectiveCamera;Pe.applyMatrix4(se.matrix),Pe.position.set(0,0,0);var Le=i.works.getResolvedObserver(y.panoId),Oe=Le!=null?Le:G;Oe&&Pe.quaternion.premultiply(Oe.quaternion.clone().inverse()),Pe.updateProjectionMatrix(),Pe.updateMatrixWorld(!0);var ke=new THREE__namespace.Frustum().setFromProjectionMatrix(new THREE__namespace.Matrix4().multiplyMatrices(Pe.projectionMatrix,Pe.matrixWorldInverse));return ke}();y.panoId===panoStringify(this.currentPano)&&((d=y.leftPanoPicture)===null||d===void 0?void 0:d.map)instanceof TileCubeTextureTarget&&(y.leftPanoPicture.map.update(mt,ct),y.leftPanoPicture.map.needsRender===!0&&(this.needsRender=!0));{var gt=this.tiling.object.visible;if(ct>this.TILED_CUBE_TEXTURE_LEVEL&&this.initAnimationed){var st=y.panoId,Fe=this.works.getResolvedObserver(st);Fe?isSimilarVector3(this.camera.position,Fe.position)&&this.locationMotion.ended?(this.tiling.object.visible=!0,this.tiling.panoId!==st&&this.tiling.cleanup(),this.tiling.panoId=st,this.tiling.setResource((m=(f=Fe.images)===null||f===void 0?void 0:f.tiles)!==null&&m!==void 0?m:[],this.enableIOSEDR&&Fe.images.luminance?Fe.images.luminance:null),this.tiling.setFetcher(getFetcher(Fe.work)),this.tiling.setRotation(Fe.quaternion),this.tiling.setPosition(Fe.position),this.tiling.update(mt,ct,e)):this.tiling.object.visible=!1:this.tiling.object.visible=!1}else this.tiling.object.visible=!1;gt!==this.tiling.object.visible&&(this.tiling.object.needsRender=!0)}this.panoVideo.object.position.copy(this.camera.position),this.panoVideo.updateTime(e),!(!pe||pe.length<1)&&this.updateControllerHelper(pe,e,r)}}},t.prototype.render=function(){var e=this.xrManager.getCamera(this.camera);this.renderer.render(this.scene,e)},t.prototype.onPanGesture=function(){},t.prototype.onTapGesture=function(){},t.prototype.onPinchGesture=function(){},t.prototype.onMouseMove=function(){},t.prototype.onMouseOut=function(){},t.prototype.panoResourceFromLocationMotionKeyframe=function(e){return this.panoResources[e.key]},t.prototype.updateControllerHelper=function(e,r,i){var o=this.xrControllerRay.left,s=this.xrControllerRay.right;if(!(!e||e.length===0)){for(var u={buttons:{X:!1,Y:!1,LeftTrigger:!1,LeftPinch:!1,A:!1,B:!1,RightTrigger:!1,RightPinch:!1}},c=0;c<e.length;c++){var l=e[c].handedness,d=e[c].gamepad;switch(l){case"left":d.axes&&(this.emitEvent(d.axes[2]===-1,"LeftAxesLeft",r),this.emitEvent(d.axes[2]===1,"LeftAxesRight",r),this.emitEvent(d.axes[3]===-1,"LeftAxesUp",r),this.emitEvent(d.axes[3]===1,"LeftAxesDown",r)),d!=null&&d.buttons&&(d.buttons[4]&&this.emitEvent(d.buttons[4].pressed,"X",r),d.buttons[5]&&this.emitEvent(d.buttons[5].pressed,"Y",r),d.buttons[0]&&this.emitEvent(d.buttons[0].pressed,"LeftTrigger",r),d.buttons[1]&&this.emitEvent(d.buttons[1].pressed,"LeftPinch",r));var f={raycaster:o,axes:{up:d.axes&&d.axes[3]<0?Math.abs(d.axes[3]):0,down:d.axes&&d.axes[3]<0?0:Math.abs(d.axes[3]),left:d.axes&&d.axes[2]<0?Math.abs(d.axes[2]):0,right:d.axes&&d.axes[2]<0?0:Math.abs(d.axes[2])},deltaTime:i};u.buttons.X=d.buttons&&d.buttons[4]?d.buttons[4].pressed:!1,u.buttons.Y=d.buttons&&d.buttons[5]?d==null?void 0:d.buttons[5].pressed:!1,u.buttons.LeftTrigger=d.buttons&&d.buttons[0]?d==null?void 0:d.buttons[0].pressed:!1,u.buttons.LeftPinch=d.buttons&&d.buttons[1]?d==null?void 0:d.buttons[1].pressed:!1,u.left=f;break;case"right":d.axes&&(this.emitEvent(d.axes[2]===-1,"RightAxesLeft",r),this.emitEvent(d.axes[2]===1,"RightAxesRight",r),this.emitEvent(d.axes[3]===-1,"RightAxesUp",r),this.emitEvent(d.axes[3]===1,"RightAxesDown",r)),d.buttons&&(d.buttons[4]&&this.emitEvent(d.buttons[4].pressed,"A",r),d.buttons[5]&&this.emitEvent(d.buttons[5].pressed,"B",r),d.buttons[0]&&this.emitEvent(d.buttons[0].pressed,"RightTrigger",r),d.buttons[1]&&this.emitEvent(d.buttons[1].pressed,"RightPinch",r));var m={raycaster:s,axes:{up:d.axes&&d.axes[3]<0?Math.abs(d.axes[3]):0,down:d.axes&&d.axes[3]<0?0:Math.abs(d.axes[3]),left:d.axes&&d.axes[2]<0?Math.abs(d.axes[2]):0,right:d.axes&&d.axes[2]<0?0:Math.abs(d.axes[2])},deltaTime:i};u.right=m,u.buttons.A=d.buttons&&d.buttons[4]?d==null?void 0:d.buttons[4].pressed:!1,u.buttons.B=d.buttons&&d.buttons[5]?d==null?void 0:d.buttons[5].pressed:!1,u.buttons.RightTrigger=d.buttons&&d.buttons[0]?d==null?void 0:d.buttons[0].pressed:!1,u.buttons.RightPinch=d.buttons&&d.buttons[1]?d==null?void 0:d.buttons[1].pressed:!1;break}}this.emit("xr.controller.update",createEvent("xr.controller.update",u))}},t.prototype.emitEvent=function(e,r,i){var o=this.xrControllerRay.left,s=this.xrControllerRay.right;if(e)if(this.xrControllerState[r].touchStart===!1)this.xrControllerState[r].touchStartTime=i,this.xrControllerState[r].touchStart=!0,this.emit("xr.gesture.buttonDown",createEvent("xr.gesture.buttonDown",{session:this.xrManager.session,machineType:this.xrManager.machineType,buttons:r,isFinal:!1,isFirst:!0,controllers:{raycaster:{leftRay:o,rightRay:s}}}));else{var u=i-this.xrControllerState[r].touchStartTime;u>CONTROLLER_EVNET_DELTA_TIME&&this.emit("xr.gesture.press",createEvent("xr.gesture.tap",{session:this.xrManager.session,machineType:this.xrManager.machineType,buttons:r,isFinal:!0,isFirst:!0,controllers:{raycaster:{leftRay:o,rightRay:s}}}))}else if(this.xrControllerState[r].touchStart===!0){this.emit("xr.gesture.buttonUp",createEvent("xr.gesture.buttonUp",{session:this.xrManager.session,machineType:this.xrManager.machineType,buttons:r,isFinal:!0,isFirst:!1,controllers:{raycaster:{leftRay:o,rightRay:s}}}));var u=i-this.xrControllerState[r].touchStartTime;if(u<=CONTROLLER_EVNET_DELTA_TIME){var c=this.emit("xr.gesture.tap",createEvent("xr.gesture.tap",{session:this.xrManager.session,machineType:this.xrManager.machineType,buttons:r,isFinal:!0,isFirst:!1,controllers:{raycaster:{leftRay:o,rightRay:s}}}));c||r==="RightTrigger"&&this.checkSelectedPano(this.xrControllerRay.right)}this.xrControllerState[r].touchStart=!1,this.xrControllerState[r].touchStartTime=0}},t}(PanoramaController),Controllers={Floorplan:FloorplanController,Topview:TopviewController,Panorama:PanoramaController,VRPanorama:VRPanoramaController,Model:ModelController,Mapview:MapviewController,XRPanorama:XRPanoramaController},PROXY_CONTROLLER_EVENT_NAMES=["gesture.pan","gesture.tap","gesture.press","gesture.pinch","gesture.mousewheel","gesture.mousemove","gesture.momentum","initAnimation.start","initAnimation.end","camera.update","intersect.update","pano.select","pano.moveTo","pano.moving","pano.arrived","pano.cancel","pano.error","pano.texture.load","pano.texture.progress","pano.texture.success","pano.texture.error","pano.texture.abort","xr.session.start","xr.session.end","xr.gesture.tap","xr.gesture.press","xr.gesture.buttonUp","xr.gesture.buttonDown","xr.controller.update"];function initLegacyEvent(n){n.on("initAnimation.start",function(t){n.emit("initAnimationWillStart",t.state.panoIndex,t.state,t.userAction)}),n.on("initAnimation.end",function(t){n.emit("initAnimationEnded",t.state.panoIndex,t.state,t.userAction)}),n.on("gesture.pan",function(t){var e=!1;e=n.emit("wantsGesture","pan",t.pointers,t.isFinal),e&&t.preventDefault(),e=n.emit("wantsPanGesture",t.state,t.isFinal),e&&t.preventDefault(),t.defaultPrevented||(n.emit("gesture","pan",t.pointers,t.isFinal),n.emit("panGesture",t.state,t.isFinal))}),n.on("gesture.tap",function(t){var e=!1;e=n.emit("wantsGesture","tap",t.pointers,t.isFinal),e&&t.preventDefault(),e=n.emit("wantsTapGesture",t.center.raycaster,t.center.coords,t.isFinal),e&&t.preventDefault(),t.defaultPrevented||(n.emit("gesture","tap",t.pointers,t.isFinal),n.emit("tapGesture",t.center.raycaster,t.center.coords,t.isFinal))}),n.on("gesture.press",function(t){var e=!1;e=n.emit("wantsGesture","press",t.pointers,t.isFinal),e&&t.preventDefault(),e=n.emit("wantsPressGesture",t.center.raycaster,t.center.coords,t.center.delta,t.isFinal),e&&t.preventDefault(),t.defaultPrevented||(n.emit("gesture","press",t.pointers,t.isFinal),n.emit("pressGesture",t.center.raycaster,t.center.coords,t.center.delta,t.isFinal))}),n.on("gesture.pinch",function(t){var e=!1;e=n.emit("wantsGesture","pinch",t.pointers,t.isFinal),e&&t.preventDefault(),e=n.emit("wantsPinchGesture",t.scale,t.state.fov,t.isFinal),e&&t.preventDefault(),t.defaultPrevented||(n.emit("gesture","pinch",t.pointers,t.isFinal),n.emit("pinchGesture",t.scale,t.state.fov,t.isFinal))}),n.on("gesture.mousewheel",function(t){var e=!1;e=n.emit("wantsGesture","mouseWheel",t.pointers,t.isFinal),e&&t.preventDefault(),e=n.emit("wantsMouseWheel",t.center.delta,t.state.fov,t.isFinal),e&&t.preventDefault(),t.defaultPrevented||(n.emit("gesture","mouseWheel",t.pointers,t.isFinal),n.emit("mouseWheel",t.center.delta,t.state.fov,t.isFinal))}),n.on("gesture.mousemove",function(t){var e=!1;e=n.emit("wantsGesture","mouseMove",t.pointers,t.isFinal),e&&t.preventDefault(),t.defaultPrevented||(n.emit("gesture","mouseMove",t.pointers,t.isFinal),e=n.emit("wantsChangeCameraFov",t.state.fov),e&&t.preventDefault())}),n.on("gesture.momentum",function(t){var e=!1;e=n.emit("wantsInteriaPan",t.state),e&&t.preventDefault(),t.defaultPrevented||n.emit("interiaPan",t.state,t.isFinal)}),n.on("camera.update",function(t){n.emit("cameraFovUpdate",t.state.fov,t.userAction),n.emit("cameraDirectionUpdate",t.state,t.userAction);var e=coordinatesToVector(t.state);e.setLength(t.state.distance);var r=t.state.offset.clone().sub(e);n.emit("cameraPositionUpdate",r,t.userAction),n.emit("cameraUpdate",t.state,t.userAction)}),n.on("intersect.update",function(t){if(t.intersection){var e=!1;e=n.emit("wantsShowIntersectionOnModel",t.raycaster),e&&t.preventDefault(),t.defaultPrevented||n.emit("intersectionOnModelUpdate",t.intersection,t.object)}else n.emit("intersectionHidden")}),n.on("pano.request",function(t){var e=n.emit("wantsMoveToPano",t.state.panoIndex,t.options,t.userAction);e||(e=n.emit("wantsToMoveToPano",t.state.panoIndex,t.options,t.userAction)),e&&t.preventDefault(),t.defaultPrevented||n.emit("panoWillLoad",t.state.panoIndex)}),n.on("pano.select",function(t){n.emit("panoSelected",t.state.panoIndex)}),n.on("pano.moveTo",function(t){n.emit("panoLoaded",t.state.panoIndex),n.emit("moveToPano",t.state.panoIndex,t.userAction),n.emit("panoWillArrive",t.state.panoIndex,t.state,t.userAction)}),n.on("pano.moving",function(t){n.emit("movingToPano",t.state.panoIndex,t.prevPano.panoIndex,t.progress)}),n.on("pano.arrived",function(t){n.emit("panoArrived",t.state.panoIndex,t.state,t.userAction)}),n.on("pano.cancel",function(t){n.emit("moveToPanoCanceled",t.state.panoIndex)}),n.on("pano.error",function(t){n.emit("panoLoadError",t.error,t.state.panoIndex)}),n.on("pano.texture.load",function(t){n.emit("textureStartLoad",t.pano.panoIndex)}),n.on("pano.texture.success",function(t){n.emit("textureLoaded",t.pano.panoIndex,t.meta)}),n.on("pano.texture.error",function(t){n.emit("textureError",t.error,t.pano.panoIndex)}),n.on("pano.texture.abort",function(t){n.emit("textureAbort",t.pano.panoIndex)}),n.on("pano.texture.progress",function(t){n.emit("textureLoading",t.progress,t.pano.panoIndex)}),n.on("xr.session.start",function(t){n.emit("webXRSessionStart")}),n.on("xr.session.end",function(t){n.emit("webXRSessionEnd")}),n.on("xr.gesture.tap",function(t){n.emit("webXRControllerEvent","tap",t.buttons,{raycaster:t.controllers.raycaster})}),n.on("xr.gesture.press",function(t){n.emit("webXRControllerEvent","press",t.buttons,{raycaster:t.controllers.raycaster})}),n.on("xr.gesture.buttonUp",function(t){n.emit("webXRControllerEvent","buttonUp",t.buttons,{raycaster:t.controllers.raycaster})}),n.on("xr.gesture.buttonDown",function(t){n.emit("webXRControllerEvent","buttonDown",t.buttons,{raycaster:t.controllers.raycaster})}),n.on("xr.controller.update",function(t){n.emit("webXRControllerRayUpdate",{leftRay:t.left?t.left.raycaster:void 0,rightRay:t.right?t.right.raycaster:void 0}),t.left&&n.emit("webXRAxesUpdate","left",{raycaster:{leftRay:t.left?t.left.raycaster:void 0,rightRay:t.right?t.right.raycaster:void 0},axesState:{up:t.left.axes.up,down:t.left.axes.down,left:t.left.axes.left,right:t.left.axes.right},deltaTime:t.left.deltaTime}),t.right&&n.emit("webXRAxesUpdate","right",{raycaster:{leftRay:t.left?t.left.raycaster:void 0,rightRay:t.right?t.right.raycaster:void 0},axesState:{up:t.right.axes.up,down:t.right.axes.down,left:t.right.axes.left,right:t.right.axes.right},deltaTime:t.right.deltaTime})}),n.on("works.request",function(t){n.emit("willLoad",t.input,t.works[0],t.state)}),n.on("works.load",function(t){n.emit("load",t.input,t.works[0],t.state)}),n.on("works.ready",function(t){n.emit("loaded",t.input,t.works[0])}),n.on("state.change",function(t){n.emit("stateChange",t.state,t.userAction)}),n.on("currentState.change",function(t){n.emit("currentStateChange",t.state,t.userAction)}),n.on("state.set",function(t){n.emit("setState",t.state)}),n.on("state.synced",function(t){n.emit("stateSynced",t.state)}),n.on("model.request",function(t){n.emit("modelWillLoad",t.work.model)}),n.on("model.error",function(t){n.emit("modelLoadError",t.error,t.model)}),n.on("model.load",function(t){n.emit("modelLoaded",t.model)}),n.on("model.changeShownFloor",function(t){n.emit("modelShownFloorChange",t.model.shownFloor,t.model.floorLength)}),n.on("render",function(t){n.emit("renderFrame",t.needsRender)}),n.on("mode.change.request",function(t){n.emit("wantsChangeMode",t.mode,t.prevMode)}),n.on("mode.change",function(t){n.emit("modeChange",t.mode,t.prevMode,t.state.panoIndex,t.state,t.userAction)}),n.on("helpers.visible",function(t){n.emit("helpersVisibleChange",t.object.visible)}),n.on("network.resource",function(t){n.emit("network",t.source,t.requestType,t.requestState,t.detail)})}function generateDefaultVideoElement(){if(typeof window!="undefined"){var n=document.createElement("video");n.loop=!0,n.autoplay=!0,n.playsInline=!0,n.muted=!0,n.crossOrigin="";var t=function(){document.removeEventListener("touchstart",t,!1),document.removeEventListener("mousedown",t,!1),n.muted=!1};return document.addEventListener("touchstart",t,!1),document.addEventListener("mousedown",t,!1),n}else return{}}function initLights(n){{var t=new THREE__namespace.DirectionalLight(16777215,.5);t.position.copy(new THREE__namespace.Vector3(1,1,1)),n.add(t)}{var t=new THREE__namespace.DirectionalLight(16777215,.3);n.add(t)}{var t=new THREE__namespace.AmbientLight(16777215,.3);n.add(t)}}function parseKeyValue(n){for(var t,e,r={},i=n.split(/(\;|\,)/),o=0,s=i;o<s.length;o++){var u=s[o],c=u.split("="),l=(t=c[0])===null||t===void 0?void 0:t.trim(),d=(e=c[1])===null||e===void 0?void 0:e.trim();l&&d&&(r[l]=d)}return r}function getViewportScale(){var n;if(typeof document!="undefined")for(var t=document.getElementsByTagName("meta"),e=0;e<t.length;e++){var r=t[e];if(r.getAttribute("name")==="viewport"){var i=parseKeyValue((n=r.getAttribute("content"))!==null&&n!==void 0?n:""),o=Number(i["initial-scale"]);if(!isNaN(o))return o}}return 1}const textureURL="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAV8AAAA/CAQAAADtPwPkAAAR+0lEQVR4AezYg3LEQACH8d1cbdu23Q5qG9G47z/TN/h6tn2b/H+TUTLc7yjcOXV46OUAnUs6EbUp022ZBXc1NhoZYYd7fjDRvdcHAwrlK2QBVJ4sgoqONmY45RUT23sZ6H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8P/k3cXSQ1EQRjHGdzdHTa4u7tzBs7CedhykNwF2/5jq56iU11db6Lv2yTj8hs3JoiU9sZZp5/62J5v1z9NjrDHaSbnbFMf52sHrDUVaidDxNG0o9+uLjfosfdb3jT5d5j757riJgst9NIZQ2Pn+ySZll80vjI6Wz/hQJG4vPG0L/H6poQch/dW3vL3B0u8jl0HvVj5PvHCElEF8DUAFikVYTcvmfBdDzQlvvMXSV5lP5zrXj/fJ54zuWaeeuoqkW8AwCIaqeTZKkmYrpPwR2eqN9X72W7EG57vU67OBeuMV8KXLUzv93UTTj42tvaFS++GVsc5JRyLSLJ8nzO555hFBmiSRCqMr4GwrcmGkib5xSvcwmzFK6e8s7DMa2xH4YZdZumSOwsVzFeBWdr37tpIhOpSwXqONNgZq/2KgvBt54znHN1HzlljTO4oVD5fb+prNIJXQNL1ofDKQisbPLJDv3jNSLq9OkYBEIihKIj3v7S1TRQCX5Kdl1ZQlol7LF+E++fwirfiq2sf4cTXxc6hzxffPuLEeqSWrPGWMF58TWr5viyJAP5/4EV4KePiaSE8eNRgjDy8/tyRW+FZjhS+2tlovNJovtJovNJ0uhK6Wo64SDdxEbM//KesjwAAAABJRU5ErkJggg==";var imageSize=[351,63],imageOffset=[20,20],vertices=new Float32Array([-.5,-.5,0,.5,-.5,0,-.5,.5,0,.5,.5,0]),uvs=new Float32Array([0,0,1,0,0,1,1,1]),index=new Uint8Array([0,1,2,1,3,2]),geometry=new THREE__namespace.BufferGeometry;geometry.setAttribute("position",new THREE__namespace.BufferAttribute(vertices,3)),geometry.setAttribute("uv",new THREE__namespace.BufferAttribute(uvs,2)),geometry.setIndex(new THREE__namespace.BufferAttribute(index,1));var material=new THREE__namespace.MeshBasicMaterial({transparent:!0,depthTest:!1,depthWrite:!1,stencilWrite:!1,fog:!1}),mesh=new THREE__namespace.Mesh(geometry,material);mesh.matrixAutoUpdate=!1;var scene=new THREE__namespace.Scene;scene.add(mesh),scene.matrixAutoUpdate=!1;var camera=new THREE__namespace.OrthographicCamera(-.5,.5,.5,-.5,.1,1);camera.position.set(0,0,.5),camera.lookAt(0,0,0),camera.updateMatrixWorld(!0),camera.matrixAutoUpdate=!1;var prevViewport=new THREE__namespace.Vector4,prevScissor=new THREE__namespace.Vector4;function renderPoweredByRealsee(n){if(material.map){var r=n.getViewport(prevViewport),i=n.getScissor(prevScissor),o=n.getScissorTest(),s=n.autoClear,u=i.x+imageOffset[0]/3,c=i.y+imageOffset[1]/3,l=imageSize[0]/3,d=imageSize[1]/3;n.setViewport(u,c,l,d),n.setScissor(u,c,l,d),n.setScissorTest(!0),n.autoClear=!1,n.render(scene,camera),n.setViewport(r),n.setScissor(i),n.setScissorTest(o),n.autoClear=s}else{var t=new THREE__namespace.Texture,e=new Image;e.onload=function(){t.image=e,t.wrapS=THREE__namespace.ClampToEdgeWrapping,t.wrapT=THREE__namespace.ClampToEdgeWrapping,t.minFilter=THREE__namespace.LinearFilter,t.needsUpdate=!0,t.generateMipmaps=!1,material.needsUpdate=!0,e.onload=noop$1},e.src=textureURL,material.map=t}}var DEFAULT_MODE_CHANGE_DURATION=800,DEFAULT_REQUEST_PROXY=function(n){return n.replace("//vrlab-public.ljcdn.com/","//vr-public.realsee-cdn.cn/").replace("//vrlab-image4.ljcdn.com/","//vr-image-4.realsee-cdn.cn/").replace("//vrlab-image3.ljcdn.com/","//vr-image-3.realsee-cdn.cn/").replace("//vrlab-image2.ljcdn.com/","//vr-image-2.realsee-cdn.cn/").replace("//vrlab-image1.ljcdn.com/","//vr-image-1.realsee-cdn.cn/")},BUILTIN_COORDINATESSYSTEMTRANSFORMERS=[{name:"Z",transformToUpAxisZ:function(){return new THREE__namespace.Matrix4}},{name:"Y",transformToUpAxisZ:function(){return new THREE__namespace.Matrix4().makeRotationAxis(new THREE__namespace.Vector3(1,0,0),+Math.PI/2)}},{name:"-Y",transformToUpAxisZ:function(){return new THREE__namespace.Matrix4().makeRotationAxis(new THREE__namespace.Vector3(1,0,0),-Math.PI/2)}},{name:"WGS84",transformToEarthCentered:function(){return new THREE__namespace.Matrix4}},{name:"GCJ02",transformToEarthCentered:function(){return new THREE__namespace.Matrix4}},{name:"BD09",transformToEarthCentered:function(){return new THREE__namespace.Matrix4}}],sharedVector2=new THREE__namespace.Vector2,sharedFrustum=new THREE__namespace.Frustum,sharedProjScreenMatrix=new THREE__namespace.Matrix4,clockForMixer=new WeakMap,worksMap=new WeakMap,emptyWorks=createWorks([]),Five=function(n){__extends(t,n);function t(e){e===void 0&&(e={});var r,i,o,s,u,c,l,d,f,m,p=n.call(this)||this;p.ident=createUuid(),typeof window!="undefined"&&(__FIVE_DEBUG__.instances[p.ident]=p),p.renderSwitch01=0,p.currentMode="Panorama",p.pano={workCode:"",panoIndex:0},p.needsRender=!1,p.onlyRenderIfNeeds=(r=e.onlyRenderIfNeeds)!==null&&r!==void 0?r:!0,p.imageOptions=__assign({},(i=e.imageOptions)!==null&&i!==void 0?i:{}),p.textureOptions=__assign({},(o=e.textureOptions)!==null&&o!==void 0?o:{}),p.poweredByRealsee=(s=e.poweredByRealsee)!==null&&s!==void 0?s:!0,p.extraElements=[],p.controllerInits={Panorama:Object.assign({},e.panorama),Model:Object.assign({},e.model),Floorplan:Object.assign({},e.floorplan),Topview:Object.assign({},e.topview),Mapview:Object.assign({},e.mapview),VRPanorama:Object.assign({},e.vrPanorama),XRPanorama:Object.assign({},e.xrPanorama)},p.coordinatesSystemTransformers=__spreadArray([],(u=e.coordinatesSystemTransformers)!==null&&u!==void 0?u:[],!0);for(var g=function(B){var F=v.coordinatesSystemTransformers.find(function(L){return L.name===B.name});F||v.coordinatesSystemTransformers.push(__assign({},B))},v=this,A=0,h=BUILTIN_COORDINATESSYSTEMTRANSFORMERS;A<h.length;A++){var y=h[A];g(y)}if(p.fps={testCount:0,testTime:now()},p.info=null,p.modeChangeDuration=(c=e.modeChangeDuration)!==null&&c!==void 0?c:DEFAULT_MODE_CHANGE_DURATION,p.enableWheel=(l=e.enableWheel)!==null&&l!==void 0?l:!0,typeof window!="undefined")if("renderer"in e)e.renderer instanceof InternalWebGLRenderer&&p.throwError(new Error("cannot render a internal renderer")),p.renderer=e.renderer;else try{p.renderer=new InternalWebGLRenderer({preserveDrawingBuffer:e.preserveDrawingBuffer,backgroundColor:e.backgroundColor,backgroundAlpha:e.backgroundAlpha,antialias:e.antialias,webgl2:e==null?void 0:e.webgl2});var b=getViewportScale();p.renderer.setPixelRatio(b===1?window.devicePixelRatio:1),p.renderer.setSize(512,512)}catch(B){B instanceof Error&&p.throwError(B)}p.getPixelsRenderTarget=new THREE__namespace.WebGLRenderTarget(1,1,{encoding:(f=(d=p.renderer)===null||d===void 0?void 0:d.outputEncoding)!==null&&f!==void 0?f:THREE__namespace.sRGBEncoding}),p.scissor=Object.assign({left:0,bottom:0,width:1,height:1},e.scissor),p.camera=new Camera(90),p.scene=new Scene,p.xrCustomObjectsScene=new THREE__namespace.Scene,p.scene.add(p.xrCustomObjectsScene),p.scene.matrixAutoUpdate=!1,p.lastLoadWorkTask=Promise.resolve(),p.requestProxy=(m=e.requestProxy)!==null&&m!==void 0?m:DEFAULT_REQUEST_PROXY,p.networkSubscribe=new NetworkSubscribe,p.networkSubscribe.on("network",function(B,F,L,k){var O;p.emit("network.resource",createEvent("network.resource",{source:B,requestType:F,requestState:L,detail:k})),(O=p.analysis)===null||O===void 0||O.network(p.works,B,F,L,k)}),p.boundingMesh=generateBoundingMesh(new THREE__namespace.Box3(new THREE__namespace.Vector3(-.5,-.5,-.5),new THREE__namespace.Vector3(.5,.5,.5))),p.boundingMesh.name="bounding",p.scene.add(p.boundingMesh),p.models=createModels(),p.models.push(new Model),p.lastModels=createModels(),p.lastWorks=createWorks([]),p.readyCallbacks=[],p.syncingState=!1,p.modelGroup=new THREE__namespace.Group,p.modelGroup.visible=!1,p.modelGroup.name="model",p.modelGroup.matrixAutoUpdate=!1,p.modelGroup.renderOrder=-4,p.scene.add(p.modelGroup),p.helperGroup=new THREE__namespace.Group,p.helperGroup.name="helper",p.helperGroup.matrixAutoUpdate=!1,p.scene.add(p.helperGroup),p.videoTexture=new THREE__namespace.VideoTexture(e.videoInstance||generateDefaultVideoElement()),initLights(p.scene),p.copyEffect=new Effect(p.renderer,p.scene,p.camera,p.models),p.state={mode:p.currentMode,workCode:p.pano.workCode,panoIndex:p.pano.panoIndex,longitude:p.camera.pose.longitude,latitude:p.camera.pose.latitude,fov:p.camera.pose.fov,offset:p.camera.pose.offset.clone(),distance:p.camera.pose.distance},p.stateSynced=!1,p._enableIOSEDR=!1,p.destroyed=!1,p.paused=!0,typeof window!="undefined"&&(e.play!==!1&&p.play(),p.stopAnimationLoop=AnimationFrameLoop.shared.add(function(B,F){for(var L=[],k=2;k<arguments.length;k++)L[k-2]=arguments[k];p.updateTime.apply(p,__spreadArray([B,F],L,!1))},!1,0,10));var E=function(){typeof document!="undefined"&&document.fullscreenElement===null&&p.currentMode==="VRPanorama"&&p.controller.emit("vr.requestExit",createEvent("vr.requestExit",{}))},T=function(){p.needsRender=!0};if(typeof document!="undefined"&&document.addEventListener("fullscreenchange",E,!1),p.renderer&&p.renderer.domElement.addEventListener("webglcontextrestored",T,!1),p.removeEventListeners=function(){typeof document!="undefined"&&document.removeEventListener("fullscreenchange",E,!1),p.renderer&&p.renderer.domElement.removeEventListener("webglcontextrestored",T,!1)},p.plugins={},e.plugins&&e.plugins.length)for(var x=0,_=e.plugins;x<_.length;x++){var w=_[x];if(typeof w=="function")w(p);else if(Array.isArray(w)){var S=w[0],M=w[1],C=w[2];if(typeof S=="function"){var I=S(p,C);typeof M=="string"&&(p.plugins[M]?p.throwError(new Error("plugin name ".concat(M," is exists."))):p.plugins[M]=I)}}}return p.gpuPickingRenderTarget=new THREE__namespace.WebGLRenderTarget(1,1),p.meshReplaceMaterialMap=new Map,p.meshOriginMaterialMap=new Map,initLegacyEvent(p),p}return Object.defineProperty(t,"version",{get:function(){return"6.0.0-alpha.86"},enumerable:!1,configurable:!0}),Object.defineProperty(t,"dracoPath",{get:function(){return draco.decoderPath},set:function(e){draco.setDecoderPath(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t,"ktx2Path",{get:function(){return ktx2.transcoderPath},set:function(e){ktx2.setTranscoderPath(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panoIndex",{get:function(){return this.pano.panoIndex},enumerable:!1,configurable:!0}),t.prototype.getGPUPicking=function(e,r,i,o,s){var u=this;if(o===void 0&&(o=1),s===void 0&&(s=new THREE__namespace.Vector3(0,0,0)),!this.renderer)throw new Error("renderer is not initialized.");this.models.setMaterial({constantColor:s}),this.scene.traverse(function(f){if(!(!(f instanceof THREE__namespace.Mesh)||f instanceof PBMMesh)){var m=Object.keys(i).filter(function(g){return g===f.uuid})[0];if(m)if(u.meshOriginMaterialMap.set(m,f.material),u.meshReplaceMaterialMap.get(m))f.material=u.meshReplaceMaterialMap.get(m);else{var p=new THREE__namespace.ShaderMaterial({uniforms:{color:{value:i[m]}},vertexShader:`
2012
+ `},LineMaterial=function(n){__extends(t,n);function t(e){var r=n.call(this,{uniforms:THREE__namespace.UniformsUtils.clone(lineShader.uniforms),vertexShader:lineShader.vertexShader,fragmentShader:lineShader.fragmentShader,clipping:!0})||this;return r.type="LineMaterial",r.dashed=!1,Object.defineProperties(r,{color:{enumerable:!0,get:function(){return this.uniforms.diffuse.value},set:function(i){this.uniforms.diffuse.value=i}},linewidth:{enumerable:!0,get:function(){return this.uniforms.linewidth.value},set:function(i){this.uniforms.linewidth.value=i}},dashScale:{enumerable:!0,get:function(){return this.uniforms.dashScale.value},set:function(i){this.uniforms.dashScale.value=i}},dashSize:{enumerable:!0,get:function(){return this.uniforms.dashSize.value},set:function(i){this.uniforms.dashSize.value=i}},gapSize:{enumerable:!0,get:function(){return this.uniforms.gapSize.value},set:function(i){this.uniforms.gapSize.value=i}},opacity:{enumerable:!0,get:function(){return this.uniforms.opacity.value},set:function(i){this.uniforms.opacity.value=i}},resolution:{enumerable:!0,get:function(){return this.uniforms.resolution.value},set:function(i){this.uniforms.resolution.value.copy(i)}}}),r.setValues(e),r}return t}(THREE__namespace.ShaderMaterial);Object.assign(LineMaterial.prototype,{isLineMaterial:!0});var LineSegments2=function(n){__extends(t,n);function t(e,r){var i=n.call(this)||this;return i.type="LineSegments2",i.geometry=e!==void 0?e:new LineSegmentsGeometry,i.material=r!==void 0?r:new LineMaterial({color:Math.random()*16777215}),i}return t.prototype.computeLineDistances=function(){for(var e=this.geometry,r=e.attributes.instanceStart,i=e.attributes.instanceEnd,o=new Float32Array(2*r.count),s=new THREE__namespace.Vector3,u=new THREE__namespace.Vector3,c=0,l=0,d=r.count;c<d;c++,l+=2)s.fromBufferAttribute(r,c),u.fromBufferAttribute(i,c),o[l]=l===0?0:o[l-1],o[l+1]=o[l]+s.distanceTo(u);var f=new THREE__namespace.InstancedInterleavedBuffer(o,2,1);return e.setAttribute("instanceDistanceStart",new THREE__namespace.InterleavedBufferAttribute(f,1,0)),e.setAttribute("instanceDistanceEnd",new THREE__namespace.InterleavedBufferAttribute(f,1,1)),this},t.prototype.raycast=function(e,r){e.camera===null&&console.error('LineSegments2: "Raycaster.camera" needs to be set in order to raycast against LineSegments2.');var i=e.ray,o=e.camera,s=o.projectionMatrix,u=this.geometry,c=this.material,l=c.resolution,d=c.linewidth,f=u.attributes.instanceStart,m=u.attributes.instanceEnd,p=new THREE__namespace.Vector4,g=new THREE__namespace.Vector4,v=new THREE__namespace.Vector4,A=new THREE__namespace.Vector3,h=new THREE__namespace.Matrix4,y=new THREE__namespace.Line3,b=new THREE__namespace.Vector3;i.at(1,v),v.w=1,v.applyMatrix4(o.matrixWorldInverse),v.applyMatrix4(s),v.multiplyScalar(1/v.w),v.x*=l.x/2,v.y*=l.y/2,v.z=0,A.copy(v);var E=this.matrixWorld;h.multiplyMatrices(o.matrixWorldInverse,E);for(var T=0,x=f.count;T<x;T++){p.fromBufferAttribute(f,T),g.fromBufferAttribute(m,T),p.w=1,g.w=1,p.applyMatrix4(h),g.applyMatrix4(h),p.applyMatrix4(s),g.applyMatrix4(s),p.multiplyScalar(1/p.w),g.multiplyScalar(1/g.w);var _=p.z<-1&&g.z<-1,w=p.z>1&&g.z>1;if(!(_||w)){p.x*=l.x/2,p.y*=l.y/2,g.x*=l.x/2,g.y*=l.y/2,y.start.copy(p),y.start.z=0,y.end.copy(g),y.end.z=0;var S=y.closestPointToPointParameter(A,!0);y.at(S,b);var M=THREE__namespace.MathUtils.lerp(p.z,g.z,S),C=M>=-1&&M<=1,I=A.distanceTo(b)<d*.5;if(C&&I){y.start.fromBufferAttribute(f,T),y.end.fromBufferAttribute(m,T),y.start.applyMatrix4(E),y.end.applyMatrix4(E);var B=new THREE__namespace.Vector3,F=new THREE__namespace.Vector3;i.distanceSqToSegment(y.start,y.end,F,B),r.push({point:F,pointOnLine:B,distance:i.origin.distanceTo(F),object:this,faceIndex:T})}}}},t}(THREE__namespace.Mesh);Object.assign(LineSegments2.prototype,{isLineSegments2:!0});var Line2=function(n){__extends(t,n);function t(e,r){var i=n.call(this,e,r)||this;return i.type="Line2",i}return t}(LineSegments2);Object.assign(Line2.prototype,{isLine2:!0});var LineGeometry=function(n){__extends(t,n);function t(){var e=n.call(this)||this;return e.type="LineGeometry",e}return t.prototype.setPositions=function(e){for(var r=e.length-3,i=new Float32Array(2*r),o=0;o<r;o+=3)i[2*o]=e[o],i[2*o+1]=e[o+1],i[2*o+2]=e[o+2],i[2*o+3]=e[o+3],i[2*o+4]=e[o+4],i[2*o+5]=e[o+5];return n.prototype.setPositions.call(this,i),this},t.prototype.setColors=function(e){for(var r=e.length-3,i=new Float32Array(2*r),o=0;o<r;o+=3)i[2*o]=e[o],i[2*o+1]=e[o+1],i[2*o+2]=e[o+2],i[2*o+3]=e[o+3],i[2*o+4]=e[o+4],i[2*o+5]=e[o+5];return n.prototype.setColors.call(this,i),this},t.prototype.fromLine=function(e){var r=e.geometry;if(r instanceof THREE__namespace.Geometry){var i=new THREE__namespace.BufferGeometry().fromGeometry(r);this.setPositions(i.attributes.position.array)}else r instanceof THREE__namespace.BufferGeometry&&this.setPositions(r.attributes.position.array);return this},t.prototype.copy=function(){return this},t}(LineSegmentsGeometry);Object.assign(LineGeometry.prototype,{isLineGeometry:!0});var circleImageURL="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAAZiS0dEAAAAAAAA+UO7fwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sHDgwCEMBJZu0AAAAdaVRYdENvbW1lbnQAAAAAAENyZWF0ZWQgd2l0aCBHSU1QZC5lBwAABM5JREFUWMO1V0tPG2cUPZ4Hxh6DazIOrjFNqJs0FIMqWFgWQkatsmvVbtggKlSVRVf5AWz4AWz4AUSKEChll19QJYSXkECuhFxsHjEhxCYm+DWGMZ5HF72DJq4bAzFXurI0M/I5997v3u9cC65vTJVn2lX/xHINQOYSBLTLEuIuCWw4Z3IGAEvf6ASmVHjNzHCXBG4A0AjACsAOwEbO0nsFQBnAGYASAIl+ZRMR7SolMEdsByD09fV5R0ZGgg8ePPjW5/N1iqLYpuu6RZblciKR2I9Go69evnwZnZ+fjwI4IS8AKBIRzeQfJWCANwKwh0KhtrGxsYehUOin1tbW+zzP23ietzY2NnIAoGmaLsuyUiqVyvl8XtrY2NiamZn589mzZxsAUgCOAeQAnFI2tI+VxIjaAeDzoaGh7xYWFuZOTk6OZVk+12uYqqq6JEnn0Wg0OT4+/geAXwGEAdwDIFJQXC1wO4DWR48e/RCPxxclSSroVzRFUbSDg4P848ePFwH8DuAhkWih83TRQWxFOXgAwvDwcOfo6OhvXV1d39tsNtuVBwTDWBwOh1UUxVsMw1hXVlbSdCgNV43uYSvrHg6H24aHh38eHBz85TrgF9FYLHA4HLzH43FvbW2d7u/vG+dANp8FpqIlbd3d3V8Fg8EfBUFw4BONZVmL3+9vHhkZCQL4AoAHgJPK8G+yzC0XDofdoVAo5PP5vkadTBAEtr+/39ff3x8gAp/RPOEqx2qjx+NpvXv3bk9DQ0NDvQgwDIOWlhZrMBj8kgi0UJdxRgYMArzL5XJ7vd57qLPZ7Xamp6fnNgBXtQxcjFuHw+Hyer3t9SYgCAITCAScAJoBNNEY/08GOFVVrfVMv7kMNDntFD1vjIAPrlRN0xjckOm6biFQ3jwNPwDMZrOnqVTqfb3Bi8Wivru7W/VCYkwPlKOjo0IikXh7EwQikYgE4Nw0CfXKDCipVCoTj8df3QABbW1tLUc6oUgkFPMkVACUNjc337148eKvw8PDbJ2jP1taWkoCyNDVXDSECmNSK4qiKNLq6urW8+fPI/UicHx8rD59+jSVy+WOAKSJhKENwFItLtoxk8mwsixzHR0dHe3t7c5PAU+n09rs7OzJkydPYqVSaQfANoDXALIk31S2smU1TWMPDg7K5XKZ7+3t9TudTut1U7+wsFCcmJiIpdPpbQBxADsAknQWymYCOukBHYCuKApisdhpMpnURFEU79y503TVyKenpzOTk5M7e3t7MQKPV0Zv1gNm+awB0MvlshqLxfLb29uyJElWURSbXC4XXyvqxcXFs6mpqeTc3Nzu3t7e3wQcA7BPZ8Cov1pNlJplmQtAG8MwHV6v95tAINA5MDBwPxAIuLu6upr8fr/VAN3c3JQjkcjZ+vp6fnl5+d2bN29SuVzuNYAEpf01CdRChUL+X1VskHACuA3Ay3Fcu9vt7nA6nZ7m5uYWQRCaNE3jVVW15PP580KhIGUymWw2m00DOAJwSP4WwPtq4LX2Ao6USxNlQyS/RcQcdLGwlNIz6vEMAaZpNzCk2Pll94LK/cDYimxERiBwG10sxjgvEZBE0UpE6vxj+0Ct5bTaXthgEhRmja8QWNkkPGsuIpfdjpkK+cZUWTC0KredVmtD/gdlSl6EG4AMvQAAAABJRU5ErkJggg==",DEFAULT_COLOR=14467195,POINT_SIZE=8,DEFAULT_LINEWIDTH=2,DEFAULT_DASHSCALE=20,sharedCircleTexture=null,FiveLine=function(n){__extends(t,n);function t(e,r){e===void 0&&(e=new THREE__namespace.Vector3),r===void 0&&(r=new THREE__namespace.Vector3);var i=n.call(this)||this;i.type="FiveLine",i.needsRender=!0;var o=new LineGeometry,s=new LineMaterial({color:DEFAULT_COLOR,linewidth:DEFAULT_LINEWIDTH,dashScale:DEFAULT_DASHSCALE,dashed:!1});i.line=new Line2(o,s);var u=new THREE__namespace.BufferGeometry,c=new THREE__namespace.PointsMaterial({color:DEFAULT_COLOR,size:POINT_SIZE,map:sharedCircleTexture||(sharedCircleTexture=new THREE__namespace.TextureLoader().load(circleImageURL)),sizeAttenuation:!1,transparent:!0});return i.points=new THREE__namespace.Points(u,c),i.points.renderOrder=11,i.points.frustumCulled=!1,i.setPoints(e,r),i.add(i.line,i.points),i}return Object.defineProperty(t,"version",{get:function(){return"6.0.0-alpha.87"},enumerable:!1,configurable:!0}),t.prototype.setPoints=function(e,r){var i=[].concat(e.toArray(),r.toArray());this.points.geometry.setAttribute("position",new THREE__namespace.BufferAttribute(new Float32Array(i),3)),this.line.geometry.setPositions(i),this.line.computeLineDistances(),this.needsRender=!0},t.prototype.getPoints=function(){var e=this.points.geometry.attributes.position.array;return[new THREE__namespace.Vector3(e[0],e[1],e[2]),new THREE__namespace.Vector3(e[3],e[4],e[5])]},t.prototype.setMaterial=function(e){var r=this.line.material;for(var i in e)if(e.hasOwnProperty(i)){var o=e[i];i==="dashed"?(r.dashed=o,o?r.defines.USE_DASH="":delete r.defines.USE_DASH,r.needsUpdate=!0):r[i]=e[i]}this.needsRender=!0},t.prototype.setResolution=function(e,r){var i=this.line.material.resolution;(i.x!==e||i.y!==r)&&(i.set(e,r),this.needsRender=!0)},t}(THREE__namespace.Object3D);Object.assign(FiveLine.prototype,{isFiveLine:!0});var Constants={Handedness:Object.freeze({NONE:"none",LEFT:"left",RIGHT:"right"}),ComponentState:Object.freeze({DEFAULT:"default",TOUCHED:"touched",PRESSED:"pressed"}),ComponentProperty:Object.freeze({BUTTON:"button",X_AXIS:"xAxis",Y_AXIS:"yAxis",STATE:"state"}),ComponentType:Object.freeze({TRIGGER:"trigger",SQUEEZE:"squeeze",TOUCHPAD:"touchpad",THUMBSTICK:"thumbstick",BUTTON:"button"}),ButtonTouchThreshold:.05,AxisTouchThreshold:.1,VisualResponseProperty:Object.freeze({TRANSFORM:"transform",VISIBILITY:"visibility"})};function fetchJsonFile(n){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(e){switch(e.label){case 0:return[4,fetch(n)];case 1:if(t=e.sent(),t.ok)return[2,t.json()];throw new Error(t.statusText)}})})}function fetchProfilesList(n){return __awaiter(this,void 0,void 0,function(){var t,e;return __generator(this,function(r){switch(r.label){case 0:if(!n)throw new Error("No basePath supplied");return t="profilesList.json",[4,fetchJsonFile("".concat(n,"/").concat(t))];case 1:return e=r.sent(),[2,e]}})})}function fetchProfile(n,t,e,r){return e===void 0&&(e=null),r===void 0&&(r=!0),__awaiter(this,void 0,void 0,function(){var i,o,s,u,c,l;return __generator(this,function(d){switch(d.label){case 0:if(!n)throw new Error("No xrInputSource supplied");if(!t)throw new Error("No basePath supplied");return[4,fetchProfilesList(t)];case 1:if(i=d.sent(),n.profiles.some(function(f){var m=i[f];return m&&(o={profileId:f,profilePath:"".concat(t,"/").concat(m.path),deprecated:!!m.deprecated}),!!o}),!o){if(!e)throw new Error("No matching profile name found");if(s=i[e],!s)throw new Error('No matching profile name found and default profile "'.concat(e,'" missing.'));o={profileId:e,profilePath:"".concat(t,"/").concat(s.path),deprecated:!!s.deprecated}}return[4,fetchJsonFile(o.profilePath)];case 2:if(u=d.sent(),r){if(l=void 0,l=u.layouts[n.handedness],!l)throw new Error("No matching handedness, ".concat(n.handedness,", in profile ").concat(o.profileId));l.assetPath&&(c=o.profilePath.replace("profile.json",l.assetPath))}return[2,{profile:u,assetPath:c}]}})})}var defaultComponentValues={xAxis:0,yAxis:0,button:0,state:Constants.ComponentState.DEFAULT};function normalizeAxes(n,t){n===void 0&&(n=0),t===void 0&&(t=0);var e=n,r=t,i=Math.sqrt(n*n+t*t);if(i>1){var o=Math.atan2(t,n);e=Math.cos(o),r=Math.sin(o)}var s={normalizedXAxis:e*.5+.5,normalizedYAxis:r*.5+.5};return s}var VisualResponse=function(){function n(t){this.componentProperty=t.componentProperty,this.states=t.states,this.valueNodeName=t.valueNodeName,this.valueNodeProperty=t.valueNodeProperty,this.valueNodeProperty===Constants.VisualResponseProperty.TRANSFORM&&(this.minNodeName=t.minNodeName,this.maxNodeName=t.maxNodeName),this.value=0,this.updateFromComponent(defaultComponentValues)}return n.prototype.updateFromComponent=function(t){var e=t.xAxis,r=t.yAxis,i=t.button,o=t.state,s=normalizeAxes(e,r),u=s.normalizedXAxis,c=s.normalizedYAxis;switch(this.componentProperty){case Constants.ComponentProperty.X_AXIS:this.value=this.states.includes(o)?u:.5;break;case Constants.ComponentProperty.Y_AXIS:this.value=this.states.includes(o)?c:.5;break;case Constants.ComponentProperty.BUTTON:this.value=this.states.includes(o)?i:0;break;case Constants.ComponentProperty.STATE:this.valueNodeProperty===Constants.VisualResponseProperty.VISIBILITY?this.value=this.states.includes(o):this.value=this.states.includes(o)?1:0;break;default:throw new Error("Unexpected visualResponse componentProperty ".concat(this.componentProperty))}},n}(),Component=function(){function n(t,e){var r=this;if(!t||!e||!e.visualResponses||!e.gamepadIndices||Object.keys(e.gamepadIndices).length===0)throw new Error("Invalid arguments supplied");this.id=t,this.type=e.type,this.rootNodeName=e.rootNodeName,this.touchPointNodeName=e.touchPointNodeName,this.visualResponses={},Object.keys(e.visualResponses).forEach(function(i){var o=new VisualResponse(e.visualResponses[i]);r.visualResponses[i]=o}),this.gamepadIndices=Object.assign({},e.gamepadIndices),this.values={state:Constants.ComponentState.DEFAULT,button:this.gamepadIndices.button!==void 0?0:void 0,xAxis:this.gamepadIndices.xAxis!==void 0?0:void 0,yAxis:this.gamepadIndices.yAxis!==void 0?0:void 0}}return Object.defineProperty(n.prototype,"data",{get:function(){var t=__assign({id:this.id},this.values);return t},enumerable:!1,configurable:!0}),n.prototype.updateFromGamepad=function(t){var e=this;if(this.values.state=Constants.ComponentState.DEFAULT,this.gamepadIndices.button!==void 0&&t.buttons.length>this.gamepadIndices.button){var r=t.buttons[this.gamepadIndices.button];this.values.button=r.value,this.values.button=this.values.button<0?0:this.values.button,this.values.button=this.values.button>1?1:this.values.button,r.pressed||this.values.button===1?this.values.state=Constants.ComponentState.PRESSED:(r.touched||this.values.button>Constants.ButtonTouchThreshold)&&(this.values.state=Constants.ComponentState.TOUCHED)}this.gamepadIndices.xAxis!==void 0&&t.axes.length>this.gamepadIndices.xAxis&&(this.values.xAxis=t.axes[this.gamepadIndices.xAxis],this.values.xAxis=this.values.xAxis<-1?-1:this.values.xAxis,this.values.xAxis=this.values.xAxis>1?1:this.values.xAxis,this.values.state===Constants.ComponentState.DEFAULT&&Math.abs(this.values.xAxis)>Constants.AxisTouchThreshold&&(this.values.state=Constants.ComponentState.TOUCHED)),this.gamepadIndices.yAxis!==void 0&&t.axes.length>this.gamepadIndices.yAxis&&(this.values.yAxis=t.axes[this.gamepadIndices.yAxis],this.values.yAxis=this.values.yAxis<-1?-1:this.values.yAxis,this.values.yAxis=this.values.yAxis>1?1:this.values.yAxis,this.values.state===Constants.ComponentState.DEFAULT&&Math.abs(this.values.yAxis)>Constants.AxisTouchThreshold&&(this.values.state=Constants.ComponentState.TOUCHED)),Object.values(this.visualResponses).forEach(function(i){i.updateFromComponent(e.values)})},n}(),MotionController=function(){function n(t,e,r){var i=this;if(!t)throw new Error("No xrInputSource supplied");if(!e)throw new Error("No profile supplied");this.xrInputSource=t,this.assetUrl=r,this.id=e.profileId,this.layoutDescription=e.layouts[t.handedness],this.components={},Object.keys(this.layoutDescription.components).forEach(function(o){var s=i.layoutDescription.components[o];i.components[o]=new Component(o,s)}),this.updateFromGamepad()}return Object.defineProperty(n.prototype,"gripSpace",{get:function(){return this.xrInputSource.gripSpace},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"targetRaySpace",{get:function(){return this.xrInputSource.targetRaySpace},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"data",{get:function(){var t=[];return Object.values(this.components).forEach(function(e){t.push(e.data)}),t},enumerable:!1,configurable:!0}),n.prototype.updateFromGamepad=function(){var t=this;Object.values(this.components).forEach(function(e){e.updateFromGamepad(t.xrInputSource.gamepad)})},n}(),DEFAULT_PROFILES_PATH="https://cdn.jsdelivr.net/npm/@webxr-input-profiles/assets@1.0/dist/profiles",DEFAULT_PROFILE="generic-trigger",XRControllerModel=function(n){__extends(t,n);function t(){var e=n.call(this)||this;return e.motionController=null,e.envMap=null,e}return t.prototype.setEnvironmentMap=function(e){var r=this;return this.envMap==e?this:(this.envMap=e,this.traverse(function(i){i instanceof THREE__namespace.Mesh&&i.isMesh&&(i.material.envMap=r.envMap,i.material.needsUpdate=!0)}),this)},t.prototype.updateMatrixWorld=function(e){n.prototype.updateMatrixWorld.call(this,e),this.motionController&&(this.motionController.updateFromGamepad(),Object.values(this.motionController.components).forEach(function(r){Object.values(r.visualResponses).forEach(function(i){var o=i.valueNode,s=i.minNode,u=i.maxNode,c=i.value,l=i.valueNodeProperty;o&&(l===Constants.VisualResponseProperty.VISIBILITY?o.visible=c:l===Constants.VisualResponseProperty.TRANSFORM&&(o.quaternion.copy(s.quaternion).slerp(u.quaternion,c),o.position.lerpVectors(s.position,u.position,c)))})}))},t}(THREE.Object3D);function findNodes(n,t){Object.values(n.components).forEach(function(e){var r=e.type,i=e.touchPointNodeName,o=e.visualResponses;if(r===Constants.ComponentType.TOUCHPAD)if(e.touchPointNode=t.getObjectByName(i),e.touchPointNode){var s=new THREE.SphereGeometry(.001),u=new THREE.MeshBasicMaterial({color:255}),c=new THREE.Mesh(s,u);e.touchPointNode.add(c)}else console.warn("Could not find touch dot, ".concat(e.touchPointNodeName,", in touchpad component ").concat(e.id));Object.values(o).forEach(function(l){var d=l.valueNodeName,f=l.minNodeName,m=l.maxNodeName,p=l.valueNodeProperty;if(p===Constants.VisualResponseProperty.TRANSFORM){if(l.minNode=t.getObjectByName(f),l.maxNode=t.getObjectByName(m),!l.minNode){console.warn("Could not find ".concat(f," in the model"));return}if(!l.maxNode){console.warn("Could not find ".concat(m," in the model"));return}}l.valueNode=t.getObjectByName(d),l.valueNode||console.warn("Could not find ".concat(d," in the model"))})})}function addAssetSceneToControllerModel(n,t){findNodes(n.motionController,t),n.envMap&&t.traverse(function(e){e instanceof THREE__namespace.Mesh&&e.isMesh&&(e.material.envMap=n.envMap,e.material.needsUpdate=!0)}),n.add(t)}var XRControllerModelFactory=function(){function n(t){t===void 0&&(t=null),this.gltfLoader=t,this.path=DEFAULT_PROFILES_PATH,this._assetCache={}}return n.prototype.createControllerModel=function(t){var e=this,r=new XRControllerModel,i=null;return t.addEventListener("connected",function(o){var s=o.data;s.targetRayMode!=="tracked-pointer"||!s.gamepad||fetchProfile(s,e.path,DEFAULT_PROFILE).then(function(u){var c=u.profile,l=u.assetPath;r.motionController=new MotionController(s,c,l);var d=e._assetCache[r.motionController.assetUrl];if(d)i=d.scene.clone(),addAssetSceneToControllerModel(r,i);else{if(!e.gltfLoader)throw new Error("GLTFLoader not set.");e.gltfLoader.load(r.motionController.assetUrl,function(f){e._assetCache[r.motionController.assetUrl]=f,i=f.scene.clone(),addAssetSceneToControllerModel(r,i)})}}).catch(function(u){console.warn(u)})}),t.addEventListener("disconnected",function(){r.motionController=null,r.remove(i),i=null}),r},n}();function mapPanoResource(n,t){if(!t)return n;var e=n.match(/\d+_[a-z].png/);return n.substring(0,e.index)+t+"/"+n.substring(e.index)}var CONTROLLER_EVNET_DELTA_TIME=300,ROTATE_Y_PI_MATRIX=new THREE__namespace.Matrix4().makeRotationAxis(new THREE__namespace.Vector3(0,1,0),Math.PI),PANO_TEXTURE_SCALE=new THREE__namespace.Vector3(-1,1,1),XRPanoramaController=function(n){__extends(t,n);function t(e){var r=n.call(this,e)||this;r.xrManager=new XRManager(r.renderer,r.renderer.getContext(),{onSessionStart:function(c){r.emit("xr.session.start",createEvent("xr.session.start",{session:c,machineType:r.xrManager.machineType}))},onSessionEnd:function(){r.emit("xr.session.end",createEvent("xr.session.end",{session:null,machineType:r.xrManager.machineType}))}}),r.xrControllerRay={left:new THREE__namespace.Raycaster,right:new THREE__namespace.Raycaster},r.xrControllerRay.left.params.Points={threshold:.1},r.xrControllerRay.right.params.Points={threshold:.1},r.pointerLines={left:new FiveLine,right:new FiveLine},r.pointerLines.left.visible=!1,r.pointerLines.right.visible=!0,r.pointerLines.left.setMaterial({color:new THREE__namespace.Vector3(1,1,1)}),r.pointerLines.left.points.material.depthTest=!1,r.pointerLines.right.setMaterial({color:new THREE__namespace.Vector3(1,1,1)}),r.pointerLines.right.points.material.depthTest=!1,r.scene.add(r.pointerLines.left,r.pointerLines.right),r.panoResources={},r.panoResources[r.locationMotion.keyframes[0].key=r.locationMotion.keyframes[1].key=createUuid()]={panoId:panoStringify(r.currentPano),leftPanoPicture:null,position:r.camera.pose.offset.clone(),effect:"fade",fixCameraTransform:new THREE__namespace.Matrix4},r.parallaxCameraMatrixs=[];var i=AnimationFrameLoop.shared.getContext();if(!i)return console.error("获取session失败,请退出重试"),r;r.on("xr.session.end",function(){r.scene.remove(r.pointerLines.left,r.pointerLines.right)}),r.xrManager.setSession(i),r.controllerWrappers=[new THREE__namespace.Group,new THREE__namespace.Group],r.scene.add(r.controllerWrappers[0],r.controllerWrappers[1]);var o=r.xrManager.getController(0);r.controllerWrappers[0].add(o);var s=r.xrManager.getController(1);r.controllerWrappers[1].add(s);var u=new XRControllerModelFactory;return u.gltfLoader={load:function(c,l){internalFetcher.ajax(c,{responseType:"arraybuffer"}).then(function(d){var f;return parseGltf(d.body,{resourcePath:c.slice(0,c.lastIndexOf("/")+1),search:(f=c.split("?")[1])!==null&&f!==void 0?f:"",fetcher:internalFetcher})}).then(function(d){return l(d)})}},r.on("xr.session.start",function(){var c=r.xrManager.getControllerGrip(0);c.add(u.createControllerModel(c)),r.controllerWrappers[0].add(c);var l=r.xrManager.getControllerGrip(1);l.add(u.createControllerModel(l)),r.controllerWrappers[1].add(l)}),r.xrControllerState={LeftAxesUp:{touchStartTime:0,touchStart:!1},LeftAxesDown:{touchStartTime:0,touchStart:!1},LeftAxesLeft:{touchStartTime:0,touchStart:!1},LeftAxesRight:{touchStartTime:0,touchStart:!1},LeftTrigger:{touchStartTime:0,touchStart:!1},LeftPinch:{touchStartTime:0,touchStart:!1},RightAxesUp:{touchStartTime:0,touchStart:!1},RightAxesDown:{touchStartTime:0,touchStart:!1},RightAxesLeft:{touchStartTime:0,touchStart:!1},RightAxesRight:{touchStartTime:0,touchStart:!1},RightTrigger:{touchStartTime:0,touchStart:!1},RightPinch:{touchStartTime:0,touchStart:!1},Y:{touchStartTime:0,touchStart:!1},X:{touchStartTime:0,touchStart:!1},A:{touchStartTime:0,touchStart:!1},B:{touchStartTime:0,touchStart:!1}},r}return t.parseArgs=function(e){if(e instanceof t)return e;var r=__assign(__assign({},e),{maxLatitude:Math.PI/2,minLatitude:-Math.PI/2});return n.parseArgs.call(this,r)},t.initAnimationEndState=function(e){var r=this.parseArgs(e),i=n.initAnimationEndState.call(this,r);return __assign(__assign({},i),{mode:"XRPanorama"})},t.prototype.moveToPano=function(e,r,i){var o=this,s,u,c,l,d=(s=r.effect)!==null&&s!==void 0?s:"fade";this.userAction=i,this.stopMomentumMovement();var f=this.works.getResolvedObserver(e);if(!f)throw new Error("Invalid PanoIndex");var m=this.imageOptions.size;if(typeof m=="undefined"&&f){var p=f.images.up.match(/\/cube_(\d+)\//);p&&(m=Number(p[1]))}typeof m=="undefined"&&(m=2048);var g=this.imageOptions.transform,v=function(C,I){return mapPanoResource(applyImageURLOptions(C,g,I))},A=__assign({key:"pano.".concat(f.panoId)},pick(this.imageOptions,["format","size","quality"])),h=f.images,y=(c=(u=f.images.tiles)===null||u===void 0?void 0:u.filter(function(C){return C.size>m}))!==null&&c!==void 0?c:null,b="pano:"+jsonHash([h,A,g]);if(this.pendingTextureTask){if(this.pendingTextureTask.hash===b)return;var E=this.pendingTextureTask.panoId;(l=this.panoMeshes[E])===null||l===void 0||l.setProgress(0),this.emit("pano.texture.abort",createEvent("pano.texture.abort",{error:null,progress:0,meta:null,pano:f.pano})),this.pendingTextureTask.onError(new Error("texture aborted"))}var T=this.models.getMaterial()||{},x=T.pano0,_=T.pano1,w;if((x==null?void 0:x.map.name)===b?w=x:(_==null?void 0:_.map.name)===b&&(w=_),w){var S={panoId:f.panoId,effect:d,leftPanoPicture:{map:w.map,luminanceMap:w.luminanceMap,matrix:new THREE__namespace.Matrix4().compose(f.position,f.quaternion,PANO_TEXTURE_SCALE)},position:f.position.clone(),fixCameraTransform:new THREE__namespace.Matrix4};this.doMoveToPano(f.pano,S,r);return}var M="move-to-pano-"+f.panoId;this.pending.add(M),this.pendingTextureTask={panoId:f.panoId,hash:b,onLoad:function(C){if(o.pending.delete(M),o.destroyed)C.body.dispose();else{C.body.name=b;var I={panoId:f.panoId,effect:d,leftPanoPicture:{map:C.body,luminanceMap:null,matrix:new THREE__namespace.Matrix4().compose(f.position,f.quaternion,PANO_TEXTURE_SCALE)},position:f.position.clone(),fixCameraTransform:new THREE__namespace.Matrix4};o.doMoveToPano(f.pano,I,r)}},onError:function(C){o.pending.delete(M);var I=__assign(__assign(__assign({},f.pano),{mode:o.mode}),clonePose(o.camera.pose));o.emit("pano.error",createEvent("pano.error",{error:C,userAction:o.userAction,options:r,prevPano:o.currentPano,progress:0,state:I})),o.emit("pano.cancel",createEvent("pano.cancel",{error:null,userAction:o.userAction,options:r,prevPano:o.currentPano,progress:0,state:I})),r.moveCancelCallback&&r.moveCancelCallback()}},Promise.all([this.tileLevelForFov&&y&&y.length?this.textureLoader.loadTiledCubeTexture(h,y,{tileMaxLevel:this.TILED_CUBE_TEXTURE_LEVEL,imageURL:{transform:v,options:A},format:THREE__namespace.RGBAFormat,minFilter:THREE__namespace.NearestFilter,magFilter:THREE__namespace.LinearFilter,generateMipmaps:!1,viaAjax:!0,fetcher:getFetcher(f.work)},void 0,void 0,function(C){var I,B;o.emit("pano.texture.progress",createEvent("pano.texture.progress",{error:null,progress:C,meta:null,pano:f.pano})),((I=o.pendingTextureTask)===null||I===void 0?void 0:I.hash)===b&&((B=o.panoMeshes[f.panoId])===null||B===void 0||B.setProgress(C))},this.renderer):this.textureLoader.loadCubeTexture(h,{imageURL:{transform:v,options:A},format:THREE__namespace.RGBAFormat,fetcher:getFetcher(f.work)},void 0,void 0,function(C){var I,B;((I=o.pendingTextureTask)===null||I===void 0?void 0:I.hash)===b&&((B=o.panoMeshes[f.panoId])===null||B===void 0||B.setProgress(C)),o.emit("pano.texture.progress",createEvent("pano.texture.progress",{error:null,progress:C,meta:null,pano:f.pano}))},this.renderer)]).then(function(C){var I,B,F=C[0];((I=o.pendingTextureTask)===null||I===void 0?void 0:I.hash)===b?(o.pendingTextureTask.onLoad(F),(B=o.panoMeshes[f.panoId])===null||B===void 0||B.setProgress(0),delete o.pendingTextureTask,o.emit("pano.texture.success",createEvent("pano.texture.success",{error:null,progress:1,meta:F.meta,pano:f.pano}))):F.body.dispose()}).catch(function(C){var I,B;((I=o.pendingTextureTask)===null||I===void 0?void 0:I.hash)===b&&(o.pendingTextureTask.onError(C),(B=o.panoMeshes[f.panoId])===null||B===void 0||B.setProgress(0),delete o.pendingTextureTask,o.emit("pano.texture.error",createEvent("pano.texture.error",{error:C,progress:0,meta:null,pano:f.pano})),o.emit("error",C))}),this.emit("pano.texture.load",createEvent("pano.texture.load",{error:null,progress:0,meta:null,pano:f.pano}))},t.prototype.doMoveToPano=function(e,r,i){var o=this,s,u,c,l,d,f,m,p,g,v;i===void 0&&(i={});var A=now(),h=createUuid();this.panoResources[h]=r;var y=1,b,E,T;if(this.locationMotion.ended){var x=this.locationMotion.getKeyFrameSegment(A);x[0];var _=x[1],w=this.locationMotion.value,S=this.panoResourceFromLocationMotionKeyframe(_).position,M=r.position;b=Math.max(S.distanceTo(M),y),E=[{key:_.key,progress:0,value:__assign(__assign({},w),{count:0})},{key:h,progress:1,value:{distance:0,count:1}}],T=0}else{var C=this.locationMotion.getKeyFrameSegment(A),I=C[0],_=C[1],w=this.locationMotion.value,B=this.panoResourceFromLocationMotionKeyframe(I).position,S=this.panoResourceFromLocationMotionKeyframe(_).position,M=r.position,F=_.value.count-w.count,L=Math.max(B.distanceTo(S),y)*F,k=Math.max(S.distanceTo(M),y);b=L+k,E=[{key:I.key,progress:0,value:__assign({},w)},{key:_.key,progress:L/b,value:_.value},{key:h,progress:1,value:{count:_.value.count+1,distance:0}}];var O=this.locationMotionKeyframesLength(this.locationMotion.keyframes),D=this.locationMotionKeyframesLength(E);T=this.locationMotion.getProgressVelocity(A)*O/D}var Q=r.effect==="instant"?0:this.calculateMovingDuration(i.duration,r.effect==="fly"?b:0),N={longitude:i.longitude,latitude:i.latitude,fov:i.fov},U=__assign(__assign({},e),{mode:this.mode,longitude:(s=N.longitude)!==null&&s!==void 0?s:this.camera.pose.longitude,latitude:(u=N.latitude)!==null&&u!==void 0?u:this.camera.pose.latitude,fov:(c=N.fov)!==null&&c!==void 0?c:this.camera.pose.fov,offset:r.position.clone(),distance:0}),W=this.currentPano;this.emit("pano.moveTo",createEvent("pano.moveTo",{options:i,prevPano:W,progress:0,state:U,userAction:this.userAction,error:null})),i.moveStartCallback&&i.moveStartCallback(U),this.videoTexture&&this.videoTexture.image instanceof HTMLVideoElement&&this.videoTexture.image.getAttribute("src")&&(this.videoTexture.image.pause(),this.videoTexture.image.removeAttribute("uuid"),this.videoTexture.image.removeAttribute("src"),this.videoTexture.image.oncanplay=noop$1,this.videoTexture.needsUpdate=!0),this.panoVideo.setMaterial(null);var q=coordinatesToVector({longitude:this.cameraMotion.value.longitude,latitude:this.cameraMotion.value.latitude}),G=coordinatesToVector({longitude:(l=N.longitude)!==null&&l!==void 0?l:this.cameraMotion.value.longitude,latitude:(d=N.latitude)!==null&&d!==void 0?d:this.cameraMotion.value.latitude}),K=new THREE__namespace.Object3D;K.lookAt(q);var j=new THREE__namespace.Matrix4().makeRotationFromQuaternion(K.quaternion);K.lookAt(G);for(var se=new THREE__namespace.Matrix4().makeRotationFromQuaternion(K.quaternion),Y=new THREE__namespace.Matrix4().getInverse(j).premultiply(se),re=0;re<E.length-1;re++){var ee=E[re].key;if(ee){var oe=this.panoResources[ee];oe&&oe.fixCameraTransform.copy(Y)}}r.effect==="fly"?this.cameraMotion.set(N,Q).catch(noop$1):this.cameraMotion.setKeyframes([{progress:0,value:{longitude:this.cameraMotion.value.longitude,latitude:this.cameraMotion.value.latitude,fov:this.cameraMotion.value.fov}},{progress:0,value:{longitude:(f=N.longitude)!==null&&f!==void 0?f:this.cameraMotion.value.longitude,latitude:(m=N.latitude)!==null&&m!==void 0?m:this.cameraMotion.value.latitude,fov:this.cameraMotion.value.fov}},{progress:1,value:{longitude:(p=N.longitude)!==null&&p!==void 0?p:this.cameraMotion.value.longitude,latitude:(g=N.latitude)!==null&&g!==void 0?g:this.cameraMotion.value.latitude,fov:(v=N.fov)!==null&&v!==void 0?v:this.cameraMotion.value.fov}}],Q).catch(noop$1);var $=this.locationMotion.setKeyframes(E,Q,T);$.then(function(){var ie,ne,ae,Z=__assign(__assign({},e),{mode:o.mode,longitude:o.camera.pose.longitude,latitude:o.camera.pose.latitude,fov:o.camera.pose.fov,offset:o.camera.pose.offset.clone(),distance:0});o.emit("pano.arrived",createEvent("pano.arrived",{options:i,prevPano:W,progress:1,state:Z,userAction:o.userAction,error:null})),i.moveEndCallback&&i.moveEndCallback(Z);var J=o.works.getResolvedObserver(o.currentPano);if(J&&J.video&&o.videoTexture&&o.videoTexture.image instanceof HTMLVideoElement){var z=ROTATE_Y_PI_MATRIX.clone().multiply((ae=(ne=(ie=o.models.getMaterial())===null||ie===void 0?void 0:ie.pano1)===null||ne===void 0?void 0:ne.matrix)!==null&&ae!==void 0?ae:new THREE__namespace.Matrix4).multiply(J.video.matrix),ge={map:o.videoTexture,size:J.video.size,matrix:z,alpha:1},fe=createUuid(),ce=o.videoTexture.image;ce.setAttribute("uuid",fe),canplayVideo().then(function(Ae){Ae&&J.video&&ce.getAttribute("uuid")===fe&&(ce.oncanplay=function(){ce.oncanplay=noop$1,ce.play()},ce.ontimeupdate=function(){ce.currentTime>.5&&(ce.ontimeupdate=noop$1,o.panoVideo.setMaterial(ge))},ce.src=J.video.source)}).catch(function(){ce.removeAttribute("uuid")})}},function(){o.emit("pano.cancel",createEvent("pano.cancel",{options:i,prevPano:W,progress:0,state:U,userAction:o.userAction,error:null})),i.moveCancelCallback&&i.moveCancelCallback()})},t.prototype.checkSelectedPano=function(e){var r=this,i,o,s,u;this.stopMomentumMovement();var c=this.camera.getDirection(new THREE__namespace.Vector3).setY(0),l=null,d=this.works.getResolvedObserver(this.currentPano);if(!d)return null;var f=d.accessibleIds.filter(function(G){var K=panoParse(G);if(panoEqual(K,r.currentPano))return!1;var j=r.works.getResolvedObserver(K);return!j||j.position.distanceTo(r.camera.position)>r.maxAccessibleDistance?!1:j.loadable||j.active}),m=this.models.intersectRaycaster(e)[0];if(m){var p=arrayMin(f,function(G){var K=r.works.getResolvedObserver(G);if(!K)return 1/0;var j=K.standingPosition.clone();return j.distanceTo(m.point)},!0),g=p[0],v=p[1];g&&v<this.panoTapTriggerRadius&&(l=(i=this.works.getResolvedObserver(g))!==null&&i!==void 0?i:null)}if(isNil(l)){var A=this.getForwardObserverOrNot(e);A&&(l=A)}for(var h=0,y=this.locationMotion.keyframes;h<y.length;h++){var b=y[h],E=this.panoResourceFromLocationMotionKeyframe(b);if(!(b.progress<this.locationMotion.progress)&&l&&E.panoId===l.panoId){l=null;break}}if(isNil(l))return this.locationMotion.ended===!0&&this.cameraBounce(),null;if(l&&!l.active){var T=l.panoId;this.panoMeshes[T]&&(this.panoMeshes[T].setDisabled(!1),this.panoMeshes[T].setLoading(!0))}var x={};if(l){for(var _=Math.PI/6,w=Math.PI/12,S=new THREE__namespace.Vector3(0,1,0),M=l.position.clone().setY(0).sub(d.position.clone().setY(0)).normalize(),C=M.clone().applyAxisAngle(S,_),I=M.clone().applyAxisAngle(S,-_),B=[],F=[],L=[],k=0,O=l.accessibleIds;k<O.length;k++){var g=O[k],D=panoParse(g);if(!(panoEqual(D,this.currentPano)||panoEqual(D,l.pano))){var Q=this.works.getResolvedObserver(g);if(Q){var N=Q.position.clone().sub(l.position).setY(0);M.angleTo(N)<_?L.push(N):C.angleTo(N)<_?B.push(N):I.angleTo(N)<_&&F.push(N)}}}var U=L.length>0?L:__spreadArray(__spreadArray([],B,!0),F,!0),W=U.slice().sort(function(G,K){return G.angleTo(M)-K.angleTo(M)})[0];W&&W.angleTo(c)>w&&(x.longitude=Math.atan2(-W.x,-W.z))}this.cameraMotion.value.latitude<-Math.PI/4&&(x.latitude=clamp(0,this.minLatitude,this.maxLatitude)),this.cameraMotion.value.fov<60&&(x.fov=this.defaultFov);var q={workCode:l.pano.workCode,panoIndex:l.pano.panoIndex,mode:this.mode,longitude:(o=x.longitude)!==null&&o!==void 0?o:this.camera.pose.longitude,latitude:(s=x.latitude)!==null&&s!==void 0?s:this.camera.pose.latitude,fov:(u=x.fov)!==null&&u!==void 0?u:this.camera.pose.fov,distance:0,offset:l?l.position.clone():new THREE__namespace.Vector3};return this.emit("pano.select",createEvent("pano.select",{prevPano:this.currentPano,state:q,userAction:!0,options:x,progress:0,error:null})),l&&l.active?(this.emit("pano.request",createEvent("pano.request",{userAction:!0,prevPano:this.currentPano,progress:0,state:q,options:x,error:null})),l.pano):null},t.prototype.destroy=function(){n.prototype.destroy.call(this)},t.prototype.isReady=function(){return!1},t.prototype.updateCamera=function(e,r,i){return Promise.resolve()},t.prototype.updateCameraWithKeyframes=function(e,r,i){return Promise.resolve()},t.prototype.updateTime=function(e,r){for(var i=this,o,s,u,c,l,d,f,m,p=[],g=2;g<arguments.length;g++)p[g-2]=arguments[g];this.userAction=!0;var v={},A={},h=this.panoResourceFromLocationMotionKeyframe(this.locationMotion.keyframes[0]),y=this.panoResourceFromLocationMotionKeyframe(this.locationMotion.keyframes[this.locationMotion.keyframes.length-1]),b=!1;if(this.cameraMotion.ended===!1&&(this.cameraMotion.update(e),A.longitude=this.cameraMotion.value.longitude,A.latitude=this.cameraMotion.value.latitude,A.fov=this.cameraMotion.value.fov),this.modelAlphaMotion.ended===!1&&(this.modelAlphaMotion.update(e),v.modelAlpha=this.modelAlphaMotion.value.modelAlpha),this.perspToOrthoMotion.ended===!1&&(this.perspToOrthoMotion.update(e),this.camera.perspToOrtho.setScalar(clamp(this.perspToOrthoMotion.value.perspToOrtho,0,1))),this.locationMotion.ended===!1){this.locationMotion.update(e);var E=this.locationMotion.getKeyFrameSegment(e),T=E[0],x=E[1],_=this.panoResourceFromLocationMotionKeyframe(T),w=this.panoResourceFromLocationMotionKeyframe(x),S=new THREE__namespace.Vector3().copy(_.position),M=new THREE__namespace.Vector3().copy(w.position),C=this.locationMotion.value.count-x.value.count+1;v.progress=C,w.leftPanoPicture&&(C<1?_.leftPanoPicture&&(v.pano0=_.leftPanoPicture):v.pano0=w.leftPanoPicture,v.pano1=w.leftPanoPicture),w.effect==="montage"?v.transition="BLACK":w.effect==="spread"?v.transition="SPREAD":v.transition="FADE",C<1&&w.effect!=="fly"&&(v.pano0&&_.leftPanoPicture&&(v.pano0={map:v.pano0.map,luminanceMap:v.pano0.luminanceMap,matrix:_.leftPanoPicture.matrix.clone().setPosition(w.position)}),S.copy(M),b=!0),A.distance=this.locationMotion.value.distance,A.offset=new THREE__namespace.Vector3(S.x+(M.x-S.x)*C,S.y+(M.y-S.y)*C,S.z+(M.z-S.z)*C);for(var I=[],B=[],F=0,L=this.locationMotion.keyframes;F<L.length;F++){var k=L[F],O=k.key,D=k.progress;O!==void 0&&(I.push(O),D>this.locationMotion.progress&&B.push(O))}for(var Q=0,N=Object.keys(this.panoResources);Q<N.length;Q++){var U=N[Q];if(!(B.indexOf(U)>=0)){var W=this.panoResources[U];if(W.leftPanoPicture){var q=W.leftPanoPicture.map;if(q){if(q===((o=v.pano0)===null||o===void 0?void 0:o.map)||q===((s=v.pano1)===null||s===void 0?void 0:s.map))continue;q instanceof TileCubeTextureTarget&&q.cubeRenderTarget&&this.colorCubeRenderTargetPool.push(q.cubeRenderTarget),q.dispose(),W.leftPanoPicture=null}}I.indexOf(U)>=0||delete this.panoResources[U]}}this.currentPano=panoParse(w.panoId),this.emit("pano.moving",createEvent("pano.moving",{userAction:this.userAction,prevPano:panoParse(h.panoId),state:__assign(__assign(__assign(__assign({},panoParse(y.panoId)),{mode:this.mode}),clonePose(this.camera.pose)),A),options:{},progress:this.locationMotion.progress,error:null}))}isEmptyObject(v)===!1&&(!((u=v.pano0)===null||u===void 0)&&u.map&&v.pano0.map instanceof TileCubeTextureTarget&&!v.pano0.map.cubeRenderTarget&&(v.pano0.map.cubeRenderTarget=this.colorCubeRenderTargetPool.pop()),!((c=v.pano1)===null||c===void 0)&&c.map&&v.pano1.map instanceof TileCubeTextureTarget&&!v.pano1.map.cubeRenderTarget&&(v.pano1.map.cubeRenderTarget=this.colorCubeRenderTargetPool.pop()),this.models.setMaterial(v)),isEmptyObject(A)===!1&&this.setCamera(A);var G=this.works.getResolvedObserver(this.currentPano),K=p[1];if(!K){console.error("xrFrame丢失,请重试");return}if(!this.xrManager.session){console.error("session丢失,请重试");return}var j=this.xrManager.referenceSpace;if(j){var se=this.xrManager.cameraVR,Y=this.xrManager.cameraL,re=this.xrManager.cameraR,ee=[Y,re],oe=K.getViewerPose(j),$=new THREE__namespace.Vector3(0,0,0);if(oe){var ie;ie=this.xrManager.session.renderState.baseLayer;var ne=oe.views;if(!ie){console.error("no layer found");return}this.renderer.setFramebuffer(ie.framebuffer);var ae=!1;ne.length!==se.cameras.length&&(se.cameras.length=0,ae=!0),this.parallaxCameraMatrixs=[];var Z=new THREE__namespace.Vector3,J=new THREE__namespace.Vector3;new THREE__namespace.Matrix4().fromArray(ne[0].transform.matrix).decompose(Z,new THREE__namespace.Quaternion,new THREE__namespace.Vector3),new THREE__namespace.Matrix4().fromArray(ne[1].transform.matrix).decompose(J,new THREE__namespace.Quaternion,new THREE__namespace.Vector3),J.clone().sub(Z).normalize();var z=new THREE__namespace.Vector3,ge=new THREE__namespace.Quaternion,fe=new THREE__namespace.Vector3;this.camera.matrix.decompose(z,ge,fe);for(var ce=0;ce<ne.length;ce++){var Ae=ne[ce],ye=ie.getViewport(Ae),Ee=ee[ce];Ee.matrix.fromArray(Ae.transform.matrix);var we=new THREE__namespace.Vector3,ue=new THREE__namespace.Quaternion,le=new THREE__namespace.Vector3;Ee.matrix.decompose(we,ue,le),$.copy(z),Ee.position.copy(z),Ee.quaternion.copy(ue),Ee.scale.copy(le),Ee.updateMatrix(),Ee.projectionMatrix.fromArray(Ae.projectionMatrix),Ee.viewport.set(ye.x,ye.y,ye.width,ye.height),ae===!0&&se.cameras.push(Ee)}oe.views[0].transform.position,oe.views[1].transform.position;for(var pe=this.xrManager.session.inputSources,ce=0;ce<this.xrManager.controllers.length;ce++){var Te=this.xrManager.controllers[ce],de=pe[ce];if(de){Te.update(de,K,j);var be=this.xrManager.getController(ce),me=new THREE__namespace.Vector3(0,1.2,0),_e=be.position.clone().add($).sub(me);de.handedness==="left"?this.xrControllerRay.left.set(_e,new THREE__namespace.Vector3(0,0,-1).applyEuler(be.rotation)):de.handedness==="right"&&this.xrControllerRay.right.set(_e,new THREE__namespace.Vector3(0,0,-1).applyEuler(be.rotation)),this.controllerWrappers[ce].position.copy(new THREE__namespace.Vector3(0,0,0).add($).sub(me));var Be=this.models.intersectRaycaster(this.xrControllerRay.right);if(Be.length===0&&(Be=this.xrControllerRay.right.intersectObject(this.boundingMesh,!0).map(function(Le){var Oe;return __assign({floor:(Oe=G==null?void 0:G.floorIndex)!==null&&Oe!==void 0?Oe:0},Le)})),Be.length>=1&&Be[0].face)if(de.handedness==="right"){var Ie=this.xrControllerRay.right.intersectObject(this.xrCustomObjectsScene,!0),Ge=Be[0].face.normal,qe=Ge.clone().multiplyScalar(.05),Re=Be[0].point.clone().add(qe);this.intersectMesh.position.copy(Re);var $e=Re.clone().add(qe);if(this.intersectMesh.lookAt($e),Math.abs(Ge.y)>.99){var ze=this.camera.position.clone().sub(Re);this.intersectMesh.rotation.z=-Math.atan2(ze.z,ze.x)}this.intersectMesh.visible=!0,this.needsRender=!0,Ie.length>0?(this.pointerLines.right.setPoints(_e,Ie[0].point),this.pointerLines.right.points.visible=!0,this.intersectMesh.visible=!1):(this.pointerLines.right.points.visible=!1,this.pointerLines.right.setPoints(_e,Be[0].point));var Ve=Be[0],Ue=createEvent("intersect.update",{raycaster:(l=this.xrControllerRay.right)!==null&&l!==void 0?l:null,intersection:Ve!=null?Ve:null,object:this.intersectMesh});if(this.emit("intersect.update",Ue),Ue.defaultPrevented){this.hideIntersectMesh();return}}else this.pointerLines.left.setPoints(_e,Be[0].point)}}if(this.camera.pose.distance>.1||b)for(var Ke=0,Xe=Object.keys(this.panoMeshes);Ke<Xe.length;Ke++){var He=Xe[Ke],ve=this.panoMeshes[He];ve.setOpacity(0),ve.setCurrent(!1),ve.updateTime&&ve.updateTime(e,r),ve.visible=!1}else if(G){var et=arrayMin(G.visibleIds,function(Pe){var Le=i.works.getResolvedObserver(Pe);return Le?G.standingPosition.distanceTo(Le.standingPosition):1/0},!0),je=et[1];je=clamp(je,2.5,1/0);for(var ht=G.visibleIds.concat(panoStringify(this.currentPano)),tt=this.getForwardObserverOrNot(),pt=this.camera.getDirection(new THREE__namespace.Vector3),ot=0,Ze=Object.keys(this.panoMeshes);ot<Ze.length;ot++){var He=Ze[ot],ve=this.panoMeshes[He],Se=this.works.getResolvedObserver(He);if(ht.indexOf(He)===-1)ve.setCurrent(!1),ve.setOpacity(0);else if(!Se)ve.setCurrent(!1),ve.setOpacity(0);else if(!Se.loadable&&!Se.active)ve.setCurrent(!1),ve.setOpacity(0);else{var Me=ve.position.clone().setY(this.camera.position.y).distanceTo(this.camera.position);ve.setCurrent(!ve.loading&&ve.progress===0&&tt!==null&&tt.panoId===He),ve.setOpacity(Me<.01?0:clamp(je/Me*1.2,.65,.98));var De=this.camera.position.clone().setY(ve.position.y),rt=new THREE__namespace.Vector3().copy(ve.position).sub(De).normalize();if(He===panoStringify(this.currentPano)){var vt=clamp((.5-De.distanceTo(ve.position))/.5,0,1);rt.multiplyScalar(1-vt).add(pt.clone().multiplyScalar(vt))}rt.length()>0&&ve.quaternion.setFromEuler(new THREE__namespace.Euler(0,Math.atan2(rt.x,rt.z),0))}ve.updateTime&&ve.updateTime(e,r)}}var ct=function(){if(i.tileLevelForFov===!1)return 0;var Pe=new THREE__namespace.Vector2(4e3,4e3),Le=y.panoId,Oe=i.works.getResolvedObserver(Le),ke=i.imageOptions.size;if(typeof ke=="undefined"&&Oe){var yt=Oe.images.up.match(/\/cube_(\d+)\//);yt&&(ke=Number(yt[1]))}typeof ke=="undefined"&&(ke=2048);var ut=0;ke>=1024&&(ut=1),ke>=2048&&(ut=2),ke>=4096&&(ut=3),ke>=8192&&(ut=4);var lt=i.tileLevelForFov(Y.fov,Pe);return lt>ut?lt:0}(),mt=function(){var Pe=new THREE__namespace.PerspectiveCamera;Pe.applyMatrix4(se.matrix),Pe.position.set(0,0,0);var Le=i.works.getResolvedObserver(y.panoId),Oe=Le!=null?Le:G;Oe&&Pe.quaternion.premultiply(Oe.quaternion.clone().inverse()),Pe.updateProjectionMatrix(),Pe.updateMatrixWorld(!0);var ke=new THREE__namespace.Frustum().setFromProjectionMatrix(new THREE__namespace.Matrix4().multiplyMatrices(Pe.projectionMatrix,Pe.matrixWorldInverse));return ke}();y.panoId===panoStringify(this.currentPano)&&((d=y.leftPanoPicture)===null||d===void 0?void 0:d.map)instanceof TileCubeTextureTarget&&(y.leftPanoPicture.map.update(mt,ct),y.leftPanoPicture.map.needsRender===!0&&(this.needsRender=!0));{var gt=this.tiling.object.visible;if(ct>this.TILED_CUBE_TEXTURE_LEVEL&&this.initAnimationed){var st=y.panoId,Fe=this.works.getResolvedObserver(st);Fe?isSimilarVector3(this.camera.position,Fe.position)&&this.locationMotion.ended?(this.tiling.object.visible=!0,this.tiling.panoId!==st&&this.tiling.cleanup(),this.tiling.panoId=st,this.tiling.setResource((m=(f=Fe.images)===null||f===void 0?void 0:f.tiles)!==null&&m!==void 0?m:[],this.enableIOSEDR&&Fe.images.luminance?Fe.images.luminance:null),this.tiling.setFetcher(getFetcher(Fe.work)),this.tiling.setRotation(Fe.quaternion),this.tiling.setPosition(Fe.position),this.tiling.update(mt,ct,e)):this.tiling.object.visible=!1:this.tiling.object.visible=!1}else this.tiling.object.visible=!1;gt!==this.tiling.object.visible&&(this.tiling.object.needsRender=!0)}this.panoVideo.object.position.copy(this.camera.position),this.panoVideo.updateTime(e),!(!pe||pe.length<1)&&this.updateControllerHelper(pe,e,r)}}},t.prototype.render=function(){var e=this.xrManager.getCamera(this.camera);this.renderer.render(this.scene,e)},t.prototype.onPanGesture=function(){},t.prototype.onTapGesture=function(){},t.prototype.onPinchGesture=function(){},t.prototype.onMouseMove=function(){},t.prototype.onMouseOut=function(){},t.prototype.panoResourceFromLocationMotionKeyframe=function(e){return this.panoResources[e.key]},t.prototype.updateControllerHelper=function(e,r,i){var o=this.xrControllerRay.left,s=this.xrControllerRay.right;if(!(!e||e.length===0)){for(var u={buttons:{X:!1,Y:!1,LeftTrigger:!1,LeftPinch:!1,A:!1,B:!1,RightTrigger:!1,RightPinch:!1}},c=0;c<e.length;c++){var l=e[c].handedness,d=e[c].gamepad;switch(l){case"left":d.axes&&(this.emitEvent(d.axes[2]===-1,"LeftAxesLeft",r),this.emitEvent(d.axes[2]===1,"LeftAxesRight",r),this.emitEvent(d.axes[3]===-1,"LeftAxesUp",r),this.emitEvent(d.axes[3]===1,"LeftAxesDown",r)),d!=null&&d.buttons&&(d.buttons[4]&&this.emitEvent(d.buttons[4].pressed,"X",r),d.buttons[5]&&this.emitEvent(d.buttons[5].pressed,"Y",r),d.buttons[0]&&this.emitEvent(d.buttons[0].pressed,"LeftTrigger",r),d.buttons[1]&&this.emitEvent(d.buttons[1].pressed,"LeftPinch",r));var f={raycaster:o,axes:{up:d.axes&&d.axes[3]<0?Math.abs(d.axes[3]):0,down:d.axes&&d.axes[3]<0?0:Math.abs(d.axes[3]),left:d.axes&&d.axes[2]<0?Math.abs(d.axes[2]):0,right:d.axes&&d.axes[2]<0?0:Math.abs(d.axes[2])},deltaTime:i};u.buttons.X=d.buttons&&d.buttons[4]?d.buttons[4].pressed:!1,u.buttons.Y=d.buttons&&d.buttons[5]?d==null?void 0:d.buttons[5].pressed:!1,u.buttons.LeftTrigger=d.buttons&&d.buttons[0]?d==null?void 0:d.buttons[0].pressed:!1,u.buttons.LeftPinch=d.buttons&&d.buttons[1]?d==null?void 0:d.buttons[1].pressed:!1,u.left=f;break;case"right":d.axes&&(this.emitEvent(d.axes[2]===-1,"RightAxesLeft",r),this.emitEvent(d.axes[2]===1,"RightAxesRight",r),this.emitEvent(d.axes[3]===-1,"RightAxesUp",r),this.emitEvent(d.axes[3]===1,"RightAxesDown",r)),d.buttons&&(d.buttons[4]&&this.emitEvent(d.buttons[4].pressed,"A",r),d.buttons[5]&&this.emitEvent(d.buttons[5].pressed,"B",r),d.buttons[0]&&this.emitEvent(d.buttons[0].pressed,"RightTrigger",r),d.buttons[1]&&this.emitEvent(d.buttons[1].pressed,"RightPinch",r));var m={raycaster:s,axes:{up:d.axes&&d.axes[3]<0?Math.abs(d.axes[3]):0,down:d.axes&&d.axes[3]<0?0:Math.abs(d.axes[3]),left:d.axes&&d.axes[2]<0?Math.abs(d.axes[2]):0,right:d.axes&&d.axes[2]<0?0:Math.abs(d.axes[2])},deltaTime:i};u.right=m,u.buttons.A=d.buttons&&d.buttons[4]?d==null?void 0:d.buttons[4].pressed:!1,u.buttons.B=d.buttons&&d.buttons[5]?d==null?void 0:d.buttons[5].pressed:!1,u.buttons.RightTrigger=d.buttons&&d.buttons[0]?d==null?void 0:d.buttons[0].pressed:!1,u.buttons.RightPinch=d.buttons&&d.buttons[1]?d==null?void 0:d.buttons[1].pressed:!1;break}}this.emit("xr.controller.update",createEvent("xr.controller.update",u))}},t.prototype.emitEvent=function(e,r,i){var o=this.xrControllerRay.left,s=this.xrControllerRay.right;if(e)if(this.xrControllerState[r].touchStart===!1)this.xrControllerState[r].touchStartTime=i,this.xrControllerState[r].touchStart=!0,this.emit("xr.gesture.buttonDown",createEvent("xr.gesture.buttonDown",{session:this.xrManager.session,machineType:this.xrManager.machineType,buttons:r,isFinal:!1,isFirst:!0,controllers:{raycaster:{leftRay:o,rightRay:s}}}));else{var u=i-this.xrControllerState[r].touchStartTime;u>CONTROLLER_EVNET_DELTA_TIME&&this.emit("xr.gesture.press",createEvent("xr.gesture.tap",{session:this.xrManager.session,machineType:this.xrManager.machineType,buttons:r,isFinal:!0,isFirst:!0,controllers:{raycaster:{leftRay:o,rightRay:s}}}))}else if(this.xrControllerState[r].touchStart===!0){this.emit("xr.gesture.buttonUp",createEvent("xr.gesture.buttonUp",{session:this.xrManager.session,machineType:this.xrManager.machineType,buttons:r,isFinal:!0,isFirst:!1,controllers:{raycaster:{leftRay:o,rightRay:s}}}));var u=i-this.xrControllerState[r].touchStartTime;if(u<=CONTROLLER_EVNET_DELTA_TIME){var c=this.emit("xr.gesture.tap",createEvent("xr.gesture.tap",{session:this.xrManager.session,machineType:this.xrManager.machineType,buttons:r,isFinal:!0,isFirst:!1,controllers:{raycaster:{leftRay:o,rightRay:s}}}));c||r==="RightTrigger"&&this.checkSelectedPano(this.xrControllerRay.right)}this.xrControllerState[r].touchStart=!1,this.xrControllerState[r].touchStartTime=0}},t}(PanoramaController),Controllers={Floorplan:FloorplanController,Topview:TopviewController,Panorama:PanoramaController,VRPanorama:VRPanoramaController,Model:ModelController,Mapview:MapviewController,XRPanorama:XRPanoramaController},PROXY_CONTROLLER_EVENT_NAMES=["gesture.pan","gesture.tap","gesture.press","gesture.pinch","gesture.mousewheel","gesture.mousemove","gesture.momentum","initAnimation.start","initAnimation.end","camera.update","intersect.update","pano.select","pano.moveTo","pano.moving","pano.arrived","pano.cancel","pano.error","pano.texture.load","pano.texture.progress","pano.texture.success","pano.texture.error","pano.texture.abort","xr.session.start","xr.session.end","xr.gesture.tap","xr.gesture.press","xr.gesture.buttonUp","xr.gesture.buttonDown","xr.controller.update"];function initLegacyEvent(n){n.on("initAnimation.start",function(t){n.emit("initAnimationWillStart",t.state.panoIndex,t.state,t.userAction)}),n.on("initAnimation.end",function(t){n.emit("initAnimationEnded",t.state.panoIndex,t.state,t.userAction)}),n.on("gesture.pan",function(t){var e=!1;e=n.emit("wantsGesture","pan",t.pointers,t.isFinal),e&&t.preventDefault(),e=n.emit("wantsPanGesture",t.state,t.isFinal),e&&t.preventDefault(),t.defaultPrevented||(n.emit("gesture","pan",t.pointers,t.isFinal),n.emit("panGesture",t.state,t.isFinal))}),n.on("gesture.tap",function(t){var e=!1;e=n.emit("wantsGesture","tap",t.pointers,t.isFinal),e&&t.preventDefault(),e=n.emit("wantsTapGesture",t.center.raycaster,t.center.coords,t.isFinal),e&&t.preventDefault(),t.defaultPrevented||(n.emit("gesture","tap",t.pointers,t.isFinal),n.emit("tapGesture",t.center.raycaster,t.center.coords,t.isFinal))}),n.on("gesture.press",function(t){var e=!1;e=n.emit("wantsGesture","press",t.pointers,t.isFinal),e&&t.preventDefault(),e=n.emit("wantsPressGesture",t.center.raycaster,t.center.coords,t.center.delta,t.isFinal),e&&t.preventDefault(),t.defaultPrevented||(n.emit("gesture","press",t.pointers,t.isFinal),n.emit("pressGesture",t.center.raycaster,t.center.coords,t.center.delta,t.isFinal))}),n.on("gesture.pinch",function(t){var e=!1;e=n.emit("wantsGesture","pinch",t.pointers,t.isFinal),e&&t.preventDefault(),e=n.emit("wantsPinchGesture",t.scale,t.state.fov,t.isFinal),e&&t.preventDefault(),t.defaultPrevented||(n.emit("gesture","pinch",t.pointers,t.isFinal),n.emit("pinchGesture",t.scale,t.state.fov,t.isFinal))}),n.on("gesture.mousewheel",function(t){var e=!1;e=n.emit("wantsGesture","mouseWheel",t.pointers,t.isFinal),e&&t.preventDefault(),e=n.emit("wantsMouseWheel",t.center.delta,t.state.fov,t.isFinal),e&&t.preventDefault(),t.defaultPrevented||(n.emit("gesture","mouseWheel",t.pointers,t.isFinal),n.emit("mouseWheel",t.center.delta,t.state.fov,t.isFinal))}),n.on("gesture.mousemove",function(t){var e=!1;e=n.emit("wantsGesture","mouseMove",t.pointers,t.isFinal),e&&t.preventDefault(),t.defaultPrevented||(n.emit("gesture","mouseMove",t.pointers,t.isFinal),e=n.emit("wantsChangeCameraFov",t.state.fov),e&&t.preventDefault())}),n.on("gesture.momentum",function(t){var e=!1;e=n.emit("wantsInteriaPan",t.state),e&&t.preventDefault(),t.defaultPrevented||n.emit("interiaPan",t.state,t.isFinal)}),n.on("camera.update",function(t){n.emit("cameraFovUpdate",t.state.fov,t.userAction),n.emit("cameraDirectionUpdate",t.state,t.userAction);var e=coordinatesToVector(t.state);e.setLength(t.state.distance);var r=t.state.offset.clone().sub(e);n.emit("cameraPositionUpdate",r,t.userAction),n.emit("cameraUpdate",t.state,t.userAction)}),n.on("intersect.update",function(t){if(t.intersection){var e=!1;e=n.emit("wantsShowIntersectionOnModel",t.raycaster),e&&t.preventDefault(),t.defaultPrevented||n.emit("intersectionOnModelUpdate",t.intersection,t.object)}else n.emit("intersectionHidden")}),n.on("pano.request",function(t){var e=n.emit("wantsMoveToPano",t.state.panoIndex,t.options,t.userAction);e||(e=n.emit("wantsToMoveToPano",t.state.panoIndex,t.options,t.userAction)),e&&t.preventDefault(),t.defaultPrevented||n.emit("panoWillLoad",t.state.panoIndex)}),n.on("pano.select",function(t){n.emit("panoSelected",t.state.panoIndex)}),n.on("pano.moveTo",function(t){n.emit("panoLoaded",t.state.panoIndex),n.emit("moveToPano",t.state.panoIndex,t.userAction),n.emit("panoWillArrive",t.state.panoIndex,t.state,t.userAction)}),n.on("pano.moving",function(t){n.emit("movingToPano",t.state.panoIndex,t.prevPano.panoIndex,t.progress)}),n.on("pano.arrived",function(t){n.emit("panoArrived",t.state.panoIndex,t.state,t.userAction)}),n.on("pano.cancel",function(t){n.emit("moveToPanoCanceled",t.state.panoIndex)}),n.on("pano.error",function(t){n.emit("panoLoadError",t.error,t.state.panoIndex)}),n.on("pano.texture.load",function(t){n.emit("textureStartLoad",t.pano.panoIndex)}),n.on("pano.texture.success",function(t){n.emit("textureLoaded",t.pano.panoIndex,t.meta)}),n.on("pano.texture.error",function(t){n.emit("textureError",t.error,t.pano.panoIndex)}),n.on("pano.texture.abort",function(t){n.emit("textureAbort",t.pano.panoIndex)}),n.on("pano.texture.progress",function(t){n.emit("textureLoading",t.progress,t.pano.panoIndex)}),n.on("xr.session.start",function(t){n.emit("webXRSessionStart")}),n.on("xr.session.end",function(t){n.emit("webXRSessionEnd")}),n.on("xr.gesture.tap",function(t){n.emit("webXRControllerEvent","tap",t.buttons,{raycaster:t.controllers.raycaster})}),n.on("xr.gesture.press",function(t){n.emit("webXRControllerEvent","press",t.buttons,{raycaster:t.controllers.raycaster})}),n.on("xr.gesture.buttonUp",function(t){n.emit("webXRControllerEvent","buttonUp",t.buttons,{raycaster:t.controllers.raycaster})}),n.on("xr.gesture.buttonDown",function(t){n.emit("webXRControllerEvent","buttonDown",t.buttons,{raycaster:t.controllers.raycaster})}),n.on("xr.controller.update",function(t){n.emit("webXRControllerRayUpdate",{leftRay:t.left?t.left.raycaster:void 0,rightRay:t.right?t.right.raycaster:void 0}),t.left&&n.emit("webXRAxesUpdate","left",{raycaster:{leftRay:t.left?t.left.raycaster:void 0,rightRay:t.right?t.right.raycaster:void 0},axesState:{up:t.left.axes.up,down:t.left.axes.down,left:t.left.axes.left,right:t.left.axes.right},deltaTime:t.left.deltaTime}),t.right&&n.emit("webXRAxesUpdate","right",{raycaster:{leftRay:t.left?t.left.raycaster:void 0,rightRay:t.right?t.right.raycaster:void 0},axesState:{up:t.right.axes.up,down:t.right.axes.down,left:t.right.axes.left,right:t.right.axes.right},deltaTime:t.right.deltaTime})}),n.on("works.request",function(t){n.emit("willLoad",t.input,t.works[0],t.state)}),n.on("works.load",function(t){n.emit("load",t.input,t.works[0],t.state)}),n.on("works.ready",function(t){n.emit("loaded",t.input,t.works[0])}),n.on("state.change",function(t){n.emit("stateChange",t.state,t.userAction)}),n.on("currentState.change",function(t){n.emit("currentStateChange",t.state,t.userAction)}),n.on("state.set",function(t){n.emit("setState",t.state)}),n.on("state.synced",function(t){n.emit("stateSynced",t.state)}),n.on("model.request",function(t){n.emit("modelWillLoad",t.work.model)}),n.on("model.error",function(t){n.emit("modelLoadError",t.error,t.model)}),n.on("model.load",function(t){n.emit("modelLoaded",t.model)}),n.on("model.changeShownFloor",function(t){n.emit("modelShownFloorChange",t.model.shownFloor,t.model.floorLength)}),n.on("render",function(t){n.emit("renderFrame",t.needsRender)}),n.on("mode.change.request",function(t){n.emit("wantsChangeMode",t.mode,t.prevMode)}),n.on("mode.change",function(t){n.emit("modeChange",t.mode,t.prevMode,t.state.panoIndex,t.state,t.userAction)}),n.on("helpers.visible",function(t){n.emit("helpersVisibleChange",t.object.visible)}),n.on("network.resource",function(t){n.emit("network",t.source,t.requestType,t.requestState,t.detail)})}function generateDefaultVideoElement(){if(typeof window!="undefined"){var n=document.createElement("video");n.loop=!0,n.autoplay=!0,n.playsInline=!0,n.muted=!0,n.crossOrigin="";var t=function(){document.removeEventListener("touchstart",t,!1),document.removeEventListener("mousedown",t,!1),n.muted=!1};return document.addEventListener("touchstart",t,!1),document.addEventListener("mousedown",t,!1),n}else return{}}function initLights(n){{var t=new THREE__namespace.DirectionalLight(16777215,.5);t.position.copy(new THREE__namespace.Vector3(1,1,1)),n.add(t)}{var t=new THREE__namespace.DirectionalLight(16777215,.3);n.add(t)}{var t=new THREE__namespace.AmbientLight(16777215,.3);n.add(t)}}function parseKeyValue(n){for(var t,e,r={},i=n.split(/(\;|\,)/),o=0,s=i;o<s.length;o++){var u=s[o],c=u.split("="),l=(t=c[0])===null||t===void 0?void 0:t.trim(),d=(e=c[1])===null||e===void 0?void 0:e.trim();l&&d&&(r[l]=d)}return r}function getViewportScale(){var n;if(typeof document!="undefined")for(var t=document.getElementsByTagName("meta"),e=0;e<t.length;e++){var r=t[e];if(r.getAttribute("name")==="viewport"){var i=parseKeyValue((n=r.getAttribute("content"))!==null&&n!==void 0?n:""),o=Number(i["initial-scale"]);if(!isNaN(o))return o}}return 1}const textureURL="data:image/png;base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7cTvEtokEx0aPscyddoFJKpSZqV7G1GTxcpmEthpnw5058c6GfwqpwzGOtGjXSJI3FLYhc+O+jSr9aGhPWQlRshS8AticLX7wnsgbXxt6gsWCpRBa0vRGQM8oB9dhmP3QAwFX4c079dJNq6Qi5xbuyTmpPSJ1Ur4UtF7GoTtmUL3zxaWqMU8P/k3cXSQ1EQRjHGdzdHTa4u7tzBs7CedhykNwF2/5jq56iU11db6Lv2yTj8hs3JoiU9sZZp5/62J5v1z9NjrDHaSbnbFMf52sHrDUVaidDxNG0o9+uLjfosfdb3jT5d5j757riJgst9NIZQ2Pn+ySZll80vjI6Wz/hQJG4vPG0L/H6poQch/dW3vL3B0u8jl0HvVj5PvHCElEF8DUAFikVYTcvmfBdDzQlvvMXSV5lP5zrXj/fJ54zuWaeeuoqkW8AwCIaqeTZKkmYrpPwR2eqN9X72W7EG57vU67OBeuMV8KXLUzv93UTTj42tvaFS++GVsc5JRyLSLJ8nzO555hFBmiSRCqMr4GwrcmGkib5xSvcwmzFK6e8s7DMa2xH4YZdZumSOwsVzFeBWdr37tpIhOpSwXqONNgZq/2KgvBt54znHN1HzlljTO4oVD5fb+prNIJXQNL1ofDKQisbPLJDv3jNSLq9OkYBEIihKIj3v7S1TRQCX5Kdl1ZQlol7LF+E++fwirfiq2sf4cTXxc6hzxffPuLEeqSWrPGWMF58TWr5viyJAP5/4EV4KePiaSE8eNRgjDy8/tyRW+FZjhS+2tlovNJovtJovNJ0uhK6Wo64SDdxEbM//KesjwAAAABJRU5ErkJggg==";var imageSize=[351,63],imageOffset=[20,20],vertices=new Float32Array([-.5,-.5,0,.5,-.5,0,-.5,.5,0,.5,.5,0]),uvs=new Float32Array([0,0,1,0,0,1,1,1]),index=new Uint8Array([0,1,2,1,3,2]),geometry=new THREE__namespace.BufferGeometry;geometry.setAttribute("position",new THREE__namespace.BufferAttribute(vertices,3)),geometry.setAttribute("uv",new THREE__namespace.BufferAttribute(uvs,2)),geometry.setIndex(new THREE__namespace.BufferAttribute(index,1));var material=new THREE__namespace.MeshBasicMaterial({transparent:!0,depthTest:!1,depthWrite:!1,stencilWrite:!1,fog:!1}),mesh=new THREE__namespace.Mesh(geometry,material);mesh.matrixAutoUpdate=!1;var scene=new THREE__namespace.Scene;scene.add(mesh),scene.matrixAutoUpdate=!1;var camera=new THREE__namespace.OrthographicCamera(-.5,.5,.5,-.5,.1,1);camera.position.set(0,0,.5),camera.lookAt(0,0,0),camera.updateMatrixWorld(!0),camera.matrixAutoUpdate=!1;var prevViewport=new THREE__namespace.Vector4,prevScissor=new THREE__namespace.Vector4;function renderPoweredByRealsee(n){if(material.map){var r=n.getViewport(prevViewport),i=n.getScissor(prevScissor),o=n.getScissorTest(),s=n.autoClear,u=i.x+imageOffset[0]/3,c=i.y+imageOffset[1]/3,l=imageSize[0]/3,d=imageSize[1]/3;n.setViewport(u,c,l,d),n.setScissor(u,c,l,d),n.setScissorTest(!0),n.autoClear=!1,n.render(scene,camera),n.setViewport(r),n.setScissor(i),n.setScissorTest(o),n.autoClear=s}else{var t=new THREE__namespace.Texture,e=new Image;e.onload=function(){t.image=e,t.wrapS=THREE__namespace.ClampToEdgeWrapping,t.wrapT=THREE__namespace.ClampToEdgeWrapping,t.minFilter=THREE__namespace.LinearFilter,t.needsUpdate=!0,t.generateMipmaps=!1,material.needsUpdate=!0,e.onload=noop$1},e.src=textureURL,material.map=t}}var DEFAULT_MODE_CHANGE_DURATION=800,DEFAULT_REQUEST_PROXY=function(n){return n.replace("//vrlab-public.ljcdn.com/","//vr-public.realsee-cdn.cn/").replace("//vrlab-image4.ljcdn.com/","//vr-image-4.realsee-cdn.cn/").replace("//vrlab-image3.ljcdn.com/","//vr-image-3.realsee-cdn.cn/").replace("//vrlab-image2.ljcdn.com/","//vr-image-2.realsee-cdn.cn/").replace("//vrlab-image1.ljcdn.com/","//vr-image-1.realsee-cdn.cn/")},BUILTIN_COORDINATESSYSTEMTRANSFORMERS=[{name:"Z",transformToUpAxisZ:function(){return new THREE__namespace.Matrix4}},{name:"Y",transformToUpAxisZ:function(){return new THREE__namespace.Matrix4().makeRotationAxis(new THREE__namespace.Vector3(1,0,0),+Math.PI/2)}},{name:"-Y",transformToUpAxisZ:function(){return new THREE__namespace.Matrix4().makeRotationAxis(new THREE__namespace.Vector3(1,0,0),-Math.PI/2)}},{name:"WGS84",transformToEarthCentered:function(){return new THREE__namespace.Matrix4}},{name:"GCJ02",transformToEarthCentered:function(){return new THREE__namespace.Matrix4}},{name:"BD09",transformToEarthCentered:function(){return new THREE__namespace.Matrix4}}],sharedVector2=new THREE__namespace.Vector2,sharedFrustum=new THREE__namespace.Frustum,sharedProjScreenMatrix=new THREE__namespace.Matrix4,clockForMixer=new WeakMap,worksMap=new WeakMap,emptyWorks=createWorks([]),Five=function(n){__extends(t,n);function t(e){e===void 0&&(e={});var r,i,o,s,u,c,l,d,f,m,p=n.call(this)||this;p.ident=createUuid(),typeof window!="undefined"&&(__FIVE_DEBUG__.instances[p.ident]=p),p.renderSwitch01=0,p.currentMode="Panorama",p.pano={workCode:"",panoIndex:0},p.needsRender=!1,p.onlyRenderIfNeeds=(r=e.onlyRenderIfNeeds)!==null&&r!==void 0?r:!0,p.imageOptions=__assign({},(i=e.imageOptions)!==null&&i!==void 0?i:{}),p.textureOptions=__assign({},(o=e.textureOptions)!==null&&o!==void 0?o:{}),p.poweredByRealsee=(s=e.poweredByRealsee)!==null&&s!==void 0?s:!0,p.extraElements=[],p.controllerInits={Panorama:Object.assign({},e.panorama),Model:Object.assign({},e.model),Floorplan:Object.assign({},e.floorplan),Topview:Object.assign({},e.topview),Mapview:Object.assign({},e.mapview),VRPanorama:Object.assign({},e.vrPanorama),XRPanorama:Object.assign({},e.xrPanorama)},p.coordinatesSystemTransformers=__spreadArray([],(u=e.coordinatesSystemTransformers)!==null&&u!==void 0?u:[],!0);for(var g=function(B){var F=v.coordinatesSystemTransformers.find(function(L){return L.name===B.name});F||v.coordinatesSystemTransformers.push(__assign({},B))},v=this,A=0,h=BUILTIN_COORDINATESSYSTEMTRANSFORMERS;A<h.length;A++){var y=h[A];g(y)}if(p.fps={testCount:0,testTime:now()},p.info=null,p.modeChangeDuration=(c=e.modeChangeDuration)!==null&&c!==void 0?c:DEFAULT_MODE_CHANGE_DURATION,p.enableWheel=(l=e.enableWheel)!==null&&l!==void 0?l:!0,typeof window!="undefined")if("renderer"in e)e.renderer instanceof InternalWebGLRenderer&&p.throwError(new Error("cannot render a internal renderer")),p.renderer=e.renderer;else try{p.renderer=new InternalWebGLRenderer({preserveDrawingBuffer:e.preserveDrawingBuffer,backgroundColor:e.backgroundColor,backgroundAlpha:e.backgroundAlpha,antialias:e.antialias,webgl2:e==null?void 0:e.webgl2});var b=getViewportScale();p.renderer.setPixelRatio(b===1?window.devicePixelRatio:1),p.renderer.setSize(512,512)}catch(B){B instanceof Error&&p.throwError(B)}p.getPixelsRenderTarget=new THREE__namespace.WebGLRenderTarget(1,1,{encoding:(f=(d=p.renderer)===null||d===void 0?void 0:d.outputEncoding)!==null&&f!==void 0?f:THREE__namespace.sRGBEncoding}),p.scissor=Object.assign({left:0,bottom:0,width:1,height:1},e.scissor),p.camera=new Camera(90),p.scene=new Scene,p.xrCustomObjectsScene=new THREE__namespace.Scene,p.scene.add(p.xrCustomObjectsScene),p.scene.matrixAutoUpdate=!1,p.lastLoadWorkTask=Promise.resolve(),p.requestProxy=(m=e.requestProxy)!==null&&m!==void 0?m:DEFAULT_REQUEST_PROXY,p.networkSubscribe=new NetworkSubscribe,p.networkSubscribe.on("network",function(B,F,L,k){var O;p.emit("network.resource",createEvent("network.resource",{source:B,requestType:F,requestState:L,detail:k})),(O=p.analysis)===null||O===void 0||O.network(p.works,B,F,L,k)}),p.boundingMesh=generateBoundingMesh(new THREE__namespace.Box3(new THREE__namespace.Vector3(-.5,-.5,-.5),new THREE__namespace.Vector3(.5,.5,.5))),p.boundingMesh.name="bounding",p.scene.add(p.boundingMesh),p.models=createModels(),p.models.push(new Model),p.lastModels=createModels(),p.lastWorks=createWorks([]),p.readyCallbacks=[],p.syncingState=!1,p.modelGroup=new THREE__namespace.Group,p.modelGroup.visible=!1,p.modelGroup.name="model",p.modelGroup.matrixAutoUpdate=!1,p.modelGroup.renderOrder=-4,p.scene.add(p.modelGroup),p.helperGroup=new THREE__namespace.Group,p.helperGroup.name="helper",p.helperGroup.matrixAutoUpdate=!1,p.scene.add(p.helperGroup),p.videoTexture=new THREE__namespace.VideoTexture(e.videoInstance||generateDefaultVideoElement()),initLights(p.scene),p.copyEffect=new Effect(p.renderer,p.scene,p.camera,p.models),p.state={mode:p.currentMode,workCode:p.pano.workCode,panoIndex:p.pano.panoIndex,longitude:p.camera.pose.longitude,latitude:p.camera.pose.latitude,fov:p.camera.pose.fov,offset:p.camera.pose.offset.clone(),distance:p.camera.pose.distance},p.stateSynced=!1,p._enableIOSEDR=!1,p.destroyed=!1,p.paused=!0,typeof window!="undefined"&&(e.play!==!1&&p.play(),p.stopAnimationLoop=AnimationFrameLoop.shared.add(function(B,F){for(var L=[],k=2;k<arguments.length;k++)L[k-2]=arguments[k];p.updateTime.apply(p,__spreadArray([B,F],L,!1))},!1,0,10));var E=function(){typeof document!="undefined"&&document.fullscreenElement===null&&p.currentMode==="VRPanorama"&&p.controller.emit("vr.requestExit",createEvent("vr.requestExit",{}))},T=function(){p.needsRender=!0};if(typeof document!="undefined"&&document.addEventListener("fullscreenchange",E,!1),p.renderer&&p.renderer.domElement.addEventListener("webglcontextrestored",T,!1),p.removeEventListeners=function(){typeof document!="undefined"&&document.removeEventListener("fullscreenchange",E,!1),p.renderer&&p.renderer.domElement.removeEventListener("webglcontextrestored",T,!1)},p.plugins={},e.plugins&&e.plugins.length)for(var x=0,_=e.plugins;x<_.length;x++){var w=_[x];if(typeof w=="function")w(p);else if(Array.isArray(w)){var S=w[0],M=w[1],C=w[2];if(typeof S=="function"){var I=S(p,C);typeof M=="string"&&(p.plugins[M]?p.throwError(new Error("plugin name ".concat(M," is exists."))):p.plugins[M]=I)}}}return p.gpuPickingRenderTarget=new THREE__namespace.WebGLRenderTarget(1,1),p.meshReplaceMaterialMap=new Map,p.meshOriginMaterialMap=new Map,initLegacyEvent(p),p}return Object.defineProperty(t,"version",{get:function(){return"6.0.0-alpha.87"},enumerable:!1,configurable:!0}),Object.defineProperty(t,"dracoPath",{get:function(){return draco.decoderPath},set:function(e){draco.setDecoderPath(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t,"ktx2Path",{get:function(){return ktx2.transcoderPath},set:function(e){ktx2.setTranscoderPath(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panoIndex",{get:function(){return this.pano.panoIndex},enumerable:!1,configurable:!0}),t.prototype.getGPUPicking=function(e,r,i,o,s){var u=this;if(o===void 0&&(o=1),s===void 0&&(s=new THREE__namespace.Vector3(0,0,0)),!this.renderer)throw new Error("renderer is not initialized.");this.models.setMaterial({constantColor:s}),this.scene.traverse(function(f){if(!(!(f instanceof THREE__namespace.Mesh)||f instanceof PBMMesh)){var m=Object.keys(i).filter(function(g){return g===f.uuid})[0];if(m)if(u.meshOriginMaterialMap.set(m,f.material),u.meshReplaceMaterialMap.get(m))f.material=u.meshReplaceMaterialMap.get(m);else{var p=new THREE__namespace.ShaderMaterial({uniforms:{color:{value:i[m]}},vertexShader:`
2013
2013
  void main() {
2014
2014
  vec4 mvPosition = modelViewMatrix * vec4( position, 1.0 );
2015
2015
  gl_Position = projectionMatrix * mvPosition;
package/vfx/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * @license
3
3
  * @realsee/five
4
- * Generated: 2024/4/2
5
- * Version: 6.0.0-alpha.86
4
+ * Generated: 2024/4/17
5
+ * Version: 6.0.0-alpha.87
6
6
  * Terms:
7
7
  * Realsee SDK License Agreement
8
8
  * Update: July 28, 2021
package/vfx/index.mjs CHANGED
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * @license
3
3
  * @realsee/five
4
- * Generated: 2024/4/2
5
- * Version: 6.0.0-alpha.86
4
+ * Generated: 2024/4/17
5
+ * Version: 6.0.0-alpha.87
6
6
  * Terms:
7
7
  * Realsee SDK License Agreement
8
8
  * Update: July 28, 2021
package/vue/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * @license
3
3
  * @realsee/five
4
- * Generated: 2024/4/2
5
- * Version: 6.0.0-alpha.86
4
+ * Generated: 2024/4/17
5
+ * Version: 6.0.0-alpha.87
6
6
  * Terms:
7
7
  * Realsee SDK License Agreement
8
8
  * Update: July 28, 2021
package/vue/index.mjs CHANGED
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * @license
3
3
  * @realsee/five
4
- * Generated: 2024/4/2
5
- * Version: 6.0.0-alpha.86
4
+ * Generated: 2024/4/17
5
+ * Version: 6.0.0-alpha.87
6
6
  * Terms:
7
7
  * Realsee SDK License Agreement
8
8
  * Update: July 28, 2021