<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">(window.webpackJsonp=window.webpackJsonp||[]).push([[31],{100:function(H,F,t){t.r(F);var A,z,E=t(4),V=t(3),W=(A=function(t,e){return(A=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&amp;&amp;(t[o]=e[o])}))(t,e)},function(t,e){if("function"!=typeof e&amp;&amp;null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}A(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),U=function(t,a,s,c){return new(s=s||Promise)(function(o,e){function n(t){try{i(c.next(t))}catch(t){e(t)}}function r(t){try{i(c.throw(t))}catch(t){e(t)}}function i(t){var e;t.done?o(t.value):((e=t.value)instanceof s?e:new s(function(t){t(e)})).then(n,r)}i((c=c.apply(t,a||[])).next())})},N=function(n,r){var i,a,s,c={label:0,sent:function(){if(1&amp;s[0])throw s[1];return s[1]},trys:[],ops:[]},l={next:t(0),throw:t(1),return:t(2)};return"function"==typeof Symbol&amp;&amp;(l[Symbol.iterator]=function(){return this}),l;function t(o){return function(t){var e=[o,t];if(i)throw new TypeError("Generator is already executing.");for(;c=l&amp;&amp;e[l=0]?0:c;)try{if(i=1,a&amp;&amp;(s=2&amp;e[0]?a.return:e[0]?a.throw||((s=a.return)&amp;&amp;s.call(a),0):a.next)&amp;&amp;!(s=s.call(a,e[1])).done)return s;switch(a=0,(e=s?[2&amp;e[0],s.value]:e)[0]){case 0:case 1:s=e;break;case 4:return c.label++,{value:e[1],done:!1};case 5:c.label++,a=e[1],e=[0];continue;case 7:e=c.ops.pop(),c.trys.pop();continue;default:if(!(s=0&lt;(s=c.trys).length&amp;&amp;s[s.length-1])&amp;&amp;(6===e[0]||2===e[0])){c=0;continue}if(3===e[0]&amp;&amp;(!s||e[1]&gt;s[0]&amp;&amp;e[1]&lt;s[3]))c.label=e[1];else if(6===e[0]&amp;&amp;c.label&lt;s[1])c.label=s[1],s=e;else{if(!(s&amp;&amp;c.label&lt;s[2])){s[2]&amp;&amp;c.ops.pop(),c.trys.pop();continue}c.label=s[2],c.ops.push(e)}}e=r.call(n,c)}catch(t){e=[6,t],a=0}finally{i=s=0}if(5&amp;e[0])throw e[1];return{value:e[0]?e[1]:void 0,done:!0}}}},G=function(t,e){var o="function"==typeof Symbol&amp;&amp;t[Symbol.iterator];if(!o)return t;var n,r,i=o.call(t),a=[];try{for(;(void 0===e||0&lt;e--)&amp;&amp;!(n=i.next()).done;)a.push(n.value)}catch(t){r={error:t}}finally{try{n&amp;&amp;!n.done&amp;&amp;(o=i.return)&amp;&amp;o.call(i)}finally{if(r)throw r.error}}return a},X=function(t,e,o){if(o||2===arguments.length)for(var n,r=0,i=e.length;r&lt;i;r++)!n&amp;&amp;r in e||((n=n||Array.prototype.slice.call(e,0,r))[r]=e[r]);return t.concat(n||Array.prototype.slice.call(e))},B=0;function o(t){var e=z.call(this)||this;return e.meshs=[],e.materials=[],e.enable=!1,e.creating=!1,e.created=!1,e.type=t,e.objId="".concat(e.type,"-").concat(B++),(o.ObjectStorage[e.objId]=e).children=[],e}z=V.a,W(o,z),o.prototype.addChildren=function(){for(var t,e=this,o=[],n=0;n&lt;arguments.length;n++)o[n]=arguments[n];o.forEach(function(t){t.parent=e}),(t=this.children).push.apply(t,X([],G(o),!1))},o.prototype.removeChildren=function(){for(var t,e=[],o=0;o&lt;arguments.length;o++)e[o]=arguments[o];e.forEach(function(t){t.hide(),t.parent=null});var n=this.children.splice(0).filter(function(t){return-1===e.indexOf(t)});(t=this.children).push.apply(t,X([],G(n),!1))},o.prototype.show=function(r){return void 0===r&amp;&amp;(r=!1),U(this,void 0,void 0,function(){var e,o,n;return N(this,function(t){switch(t.label){case 0:return[4,(e=this).ensureCreated()];case 1:return(t.sent(),e.meshs.length&amp;&amp;e.Scene&amp;&amp;(n=e.Scene).add.apply(n,X([],G(e.meshs),!1)),r)?(o=[],e.children.forEach(function(t){o.push(t.show())}),[4,Promise.all(o)]):[3,3];case 2:t.sent(),t.label=3;case 3:return[2]}})})},o.prototype.hide=function(){return U(this,void 0,void 0,function(){var e,o;return N(this,function(t){return(e=this).meshs.length&amp;&amp;e.Scene&amp;&amp;(o=e.Scene).remove.apply(o,X([],G(e.meshs),!1)),this.children.forEach(function(t){t.hide()}),[2]})})},o.prototype.dispose=function(){var t,e=this,o=(e.creating=!1,e.created=!1,e.meshs.length&amp;&amp;(t=e.Scene).remove.apply(t,X([],G(e.meshs),!1)),e.forMaterial(function(t){t.dispose()}),function(t){t.isMesh?t.geometry.dispose():t.children.length&amp;&amp;t.children.forEach(o)});e.meshs.splice(0).forEach(o),e.materials.splice(0)},o.prototype.getMeshs=function(){return U(this,void 0,void 0,function(){return N(this,function(t){switch(t.label){case 0:return[4,this.ensureCreated()];case 1:return t.sent(),[2,this.meshs]}})})},o.prototype.forMesh=function(e){return U(this,void 0,void 0,function(){return N(this,function(t){return this.meshs.forEach(function(t){e(t)}),[2]})})},o.prototype.forMaterial=function(e){return U(this,void 0,void 0,function(){return N(this,function(t){return this.materials.forEach(function(t){e(t)}),[2]})})},Object.defineProperty(o.prototype,"Scene",{get:function(){return this.scene||(this._parent?this._parent.Scene:void 0)},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"DomElement",{get:function(){return this.domElement||(this._parent?this._parent.DomElement:void 0)},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"House",{get:function(){return"house"===this.type&amp;&amp;this instanceof Ft?this:this._parent?this._parent.House:void 0},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"parent",{get:function(){return this._parent},set:function(t){this._parent=t},enumerable:!1,configurable:!0}),o.prototype.ensureCreated=function(){return U(this,void 0,void 0,function(){var e,o;return N(this,function(t){return e=this,o=new Promise(function(t){e.on("ensure_created",function(){t(!0)})}),!1===e.creating?(e.creating=!0,[2,e.loaingMeshs()]):[2,e.created?Promise.resolve(!0):o]})})},o.prototype.createElement=function(){var t=document.createElement("div");return t.classList.add("con"),t},o.prototype.projectVector=function(t){var e=this.House,o=e.DomElement,n=o.clientWidth/2,o=o.clientHeight/2,r=new E.ic;return r.copy(t),r.project(e.camera),new E.ic((r.x+1)*n,(1-r.y)*o,r.z)},o.prototype.checkView=function(t){var e=this.House.camera,t=t.clone().project(e);return 1&lt;Math.abs(t.x)||1&lt;Math.abs(t.y)||1&lt;Math.abs(t.z)},o.prototype.loaingMeshs=function(){return U(this,void 0,void 0,function(){var e,o,n;return N(this,function(t){switch(t.label){case 0:return[4,(e=this).createMeshs()];case 1:return(o=t.sent())&amp;&amp;o.length&amp;&amp;(o.forEach(function(t){"Group"===t.type?t.children.forEach(function(t){t.userData.obj=e,t.userData.enable=e.enable}):(t.userData.obj=e,t.userData.enable=e.enable)}),(n=e.meshs).push.apply(n,X([],G(o),!1))),e.created=!0,e.emit("ensure_created"),[2,Promise.resolve(!0)]}})})},o.ObjectStorage={};var Y,q,W=o,T=t(10),Q=t(31),Z=t.n(Q),e=(Y=function(t,e){return(Y=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&amp;&amp;(t[o]=e[o])}))(t,e)},function(t,e){if("function"!=typeof e&amp;&amp;null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}Y(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),l=-1,K=0,J=3,tt=4,et=6,ot="change",nt="change3d",rt="start",it="end",at="rotateend",st="switch_scene",ct=1.333333;function lt(t,e,o){switch(t){case"VFOV":return o;case"HFOV":return e;case"DFOV":return Math.sqrt(e*e+o*o);case"MFOV":return Math.max(e,o*ct);default:throw new Error("\u4e0d\u652f\u6301\u7684FOVTYPE:"+t)}}function n(t,e,o,n,r,i,a){var s=q.call(this)||this,c=(s.target=new E.ic,s.rotateInfo={},s.rotateTimer=0,s._currentRotateTime=0,s.raycaster=new E.Mb,s.hoverObjectDic={},s.minDistance=1,s.maxDistance=3500,s),a=(c.suspend=!1,c.container=a,c.scene=e,c.object=t,c.options=n,c.domElement=r,c._win=void 0!==i?i:window,c.enabled=!0,c.minVlootAt=T.a.atvToPhi(n.vlookatmin),c.maxVlookAt=T.a.atvToPhi(n.vlookatmax),Math.abs(n.vlookatmax-n.vlookatmin)),e=(c.maxFov=Math.min(n.fovmax,a),c.minFov=n.fovmin,c.minFov&gt;c.maxFov&amp;&amp;(c.minFov=c.maxFov),c.enableZoom=!0,c.zoomSpeed=1,c.enableRotate=!0,c.rotateSpeed=-.5,c._autoRotate=!1,c.autoRotateSpeed=1,c.enableKeys=!0,c.keys={LEFT:37,UP:38,RIGHT:39,BOTTOM:40},c.mouseButtons={ORBIT:E.Z.LEFT,ZOOM:E.Z.MIDDLE,PAN:E.Z.RIGHT},c.state=l,c.scale=1,c.spherical=(new E.Xb).setFromVector3(o),c.sphericalDelta=new E.Xb,c.spherical3d=new E.Xb,c.fovChanged=!1,c.rotateStart=new E.hc,c.rotateEnd=new E.hc,c.rotateDelta=new E.hc,c.dollyStart=new E.hc,c.dollyEnd=new E.hc,c.dollyDelta=new E.hc,$(c.container).on("mouseout",function(){c.suspend=!0}),$(c.container).on("mouseover ",function(){c.suspend=!1}),c.onMouseDown=function(t){c.setAutoRotate(!1);var e=c.getInterscets(t)[0],e=e&amp;&amp;e.object.userData.obj;if(e)e.emit("mousedown"),c.state=et;else{if(!1===c.enabled)return;if(t.preventDefault(),t.button===c.mouseButtons.ORBIT){if(!1===c.enableRotate)return;c.roateStart(t.clientX,t.clientY),c.rotateStart.set(t.clientX,t.clientY),c.state=K}}c.state!==l&amp;&amp;c.emit(rt)},c.onMouseMove=function(t){var e,o;c.suspend||(c.state!==K&amp;&amp;(o=c.getInterscets(t)[0],e="",(o=o&amp;&amp;o.object.userData.obj)&amp;&amp;(o.emit("mouseMove"),e=o.objId),Object.keys(c.hoverObjectDic).forEach(function(t){t!==e&amp;&amp;(c.hoverObjectDic[t].emit("unhover"),delete c.hoverObjectDic[t])}),o)&amp;&amp;!c.hoverObjectDic[e]&amp;&amp;(o.emit("hover"),c.hoverObjectDic[e]=o),!1!==c.enabled&amp;&amp;(t.preventDefault(),c.state===K)&amp;&amp;!1!==c.enableRotate&amp;&amp;(c.rotateEnd.set(t.clientX,t.clientY),c.rotateDelta.subVectors(c.rotateEnd,c.rotateStart),t=(o=c.domElement).clientWidth,o=o.clientHeight,c.rotateLeft(2*Math.PI*c.rotateDelta.x/t*c.rotateSpeed),c.rotateUp(2*Math.PI*c.rotateDelta.y/o*c.rotateSpeed),c.rotateStart.copy(c.rotateEnd),c.needpavement=!0,c.update()))},c.onMouseUp=function(t){c.state===et&amp;&amp;(t=(t=c.getInterscets(t)[0])&amp;&amp;t.object.userData.obj)&amp;&amp;t.emit("mouseup").emit("click"),!1!==c.enabled&amp;&amp;(c.state===K&amp;&amp;c.roateStop().then(function(){c.emit(at)}),c.emit(it),c.state=l,c.setAutoRotate(!0))},c.onMouseWheel=function(t){!1===c.enabled||!1===c.enableZoom||c.state!==l&amp;&amp;c.state!==K||(t.preventDefault(),t.stopPropagation(),t.deltaY&lt;0?c.dollyOut(c.getZoomScale()):0&lt;t.deltaY&amp;&amp;c.dollyIn(c.getZoomScale()),c.update(),c.emit(rt),c.emit(it))},c.onKeyDown=function(t){if(!1!==c.enabled&amp;&amp;!1!==c.enableKeys&amp;&amp;!1!==c.enableRotate)switch(t.keyCode){case c.keys.UP:c.rotateUp(-.1),c.update();break;case c.keys.BOTTOM:c.rotateUp(.1),c.update();break;case c.keys.LEFT:c.rotateLeft(.1),c.update();break;case c.keys.RIGHT:c.rotateLeft(-.1),c.update()}},c.onTouchStart=function(t){c.setAutoRotate(!1);var e=c.getInterscets(t)[0];if(e&amp;&amp;e.object.userData.obj)c.state=et;else if(!1!==c.enabled){var o=t.touches;switch(o.length){case 1:if(!1===c.enableRotate)return;c.roateStart(o[0].pageX,o[0].pageY),c.rotateStart.set(o[0].pageX,o[0].pageY),c.state=J;break;case 2:if(!1===c.enableZoom)return;var n=o[0].pageX-o[1].pageX,r=o[0].pageY-o[1].pageY,n=Math.sqrt(n*n+r*r);c.dollyStart.set(0,n),c.state=tt;break;default:c.state=l}c.state!==l&amp;&amp;c.emit(rt)}},c.onTouchMove=function(t){if(c.setAutoRotate(!1),!1!==c.enabled){if(t.target)if(t.target.classList.contains("detail"))return;t.preventDefault(),t.stopPropagation();var e,o,n=t.touches;switch(n.length){case 1:!1!==c.enableRotate&amp;&amp;c.state===J&amp;&amp;(c.rotateEnd.set(n[0].pageX,n[0].pageY),c.rotateDelta.subVectors(c.rotateEnd,c.rotateStart),o=(e=c.domElement).clientWidth,e=e.clientHeight,c.rotateLeft(2*Math.PI*c.rotateDelta.x/o*c.rotateSpeed),c.rotateUp(2*Math.PI*c.rotateDelta.y/e*c.rotateSpeed),c.rotateStart.copy(c.rotateEnd),c.needpavement=!0,c.update());break;case 2:!1!==c.enableZoom&amp;&amp;c.state===tt&amp;&amp;(o=n[0].pageX-n[1].pageX,e=n[0].pageY-n[1].pageY,o=Math.sqrt(o*o+e*e),c.dollyEnd.set(0,o),c.dollyDelta.subVectors(c.dollyEnd,c.dollyStart),0&lt;c.dollyDelta.y?c.dollyOut(c.getZoomScale()):c.dollyDelta.y&lt;0&amp;&amp;c.dollyIn(c.getZoomScale()),c.dollyStart.copy(c.dollyEnd),c.update());break;default:c.state=l}}},c.onTouchEnd=function(t){c.state===et&amp;&amp;(t=(t=c.getInterscets(t)[0])&amp;&amp;t.object.userData.obj)&amp;&amp;t.emit("click"),!1!==c.enabled&amp;&amp;(c.state===J&amp;&amp;c.roateStop().then(function(){c.emit(at)}),c.emit(it),c.state=l,c.setAutoRotate(!0))},c.onContextMenu=function(t){t.preventDefault()},!!c.supportsPassive&amp;&amp;{passive:!1}),t=c.domElement,r=c._win,i="addEventListener";return t[i]("contextmenu",c.onContextMenu,!1),t[i]("mousedown",c.onMouseDown,e),t[i]("wheel",c.onMouseWheel,e),t[i]("touchstart",c.onTouchStart,e),r[i]("touchend",c.onTouchEnd,e),r[i]("touchmove",c.onTouchMove,e),r[i]("mousemove",c.onMouseMove,e),r[i]("mouseup",c.onMouseUp,!1),r[i]("keydown",c.onKeyDown,!1),c.update(!0),c.autoRotateanimate(),s}q=V.a,e(n,q),n.prototype.updateMinFov=function(t){var e,o,n=this.options,r=n.maxpixelzoom,i=n.fovmax,a=n.fovtype,n=n.fovmin;isNaN(r)||0===r||(o=(e=this.domElement).clientWidth,e=e.clientHeight,t=360/Math.PI*Math.atan(Math.tan(2*Math.atan(1/(2/Math.PI*(t*Math.PI*.5)*r/(.5*o))))/(o/e)),(isNaN(t)||t&lt;1e-4)&amp;&amp;(t=i),r=t=90&lt;t?90:t,i="VFOV",a=a,o=o,e=e,r=Math.tan(r/360*Math.PI),i=lt(i,o,e),a=lt(a,o,e),t=r=360*Math.atan(r*a/i)/Math.PI,this.minFov&gt;(t=t&lt;n?n:t)&amp;&amp;(this.minFov=t),(o=this.object).minFov=this.minFov,o.maxFov=this.maxFov,o.defaultFov=this.options.fov)},n.prototype.setEnabled=function(t){this.enabled=t},n.prototype.setAutorate=function(t){this.setAutoRotate(!1),this._autoRotate=t},n.prototype.setAutoRotateInfo=function(t){t.open&amp;&amp;(this.autoRotateSpeed=60/t.speed*t.rotation*1),this.rotateInfo=t,this.setAutoRotate(t.open)},n.prototype.setLookAt=function(t,e,o){void 0===t&amp;&amp;(t=NaN),void 0===e&amp;&amp;(e=NaN),void 0===o&amp;&amp;(o=NaN);var n=this,r=(n.setAutoRotate(!1),n.sphericalDelta),i=n.spherical;isNaN(t)||(r.theta+=t-i.theta),isNaN(e)||(r.phi=i.phi-e),isNaN(o)||(n.scale=o/n.object.fov),this.update(!0),n.setAutoRotate(!0)},n.prototype.setCamreaPosition=function(t){this.object.position.copy(t),2===this.stores.renderMode.get()&amp;&amp;(t=(new E.Xb).setFromVector3(t),this.emit(nt,t.theta,t.phi))},n.prototype.update=function(t){2===this.stores.renderMode.get()?this.update3d():this.updateChange(t)},n.prototype.dollyIn=function(t){this.scale/=t},n.prototype.dollyOut=function(t){this.scale*=t},Object.defineProperty(n.prototype,"autoRotate",{get:function(){return this._autoRotate},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"currentRotateTime",{set:function(t){this._currentRotateTime=t},enumerable:!1,configurable:!0}),n.prototype.getAutoRotationAngle=function(){var t=/rotatespeed=([\d.]+)/.exec(location.href),t=Number(t&amp;&amp;t[1]);return 0&lt;t&amp;&amp;(this.autoRotateSpeed=t),2*Math.PI/60/60*this.autoRotateSpeed},n.prototype.getZoomScale=function(){return Math.pow(.95,this.zoomSpeed)},n.prototype.rotateLeft=function(t){this.sphericalDelta.theta-=t},n.prototype.rotateUp=function(t){this.sphericalDelta.phi-=t},n.prototype.getPolarAngle=function(){return this.spherical.phi},n.prototype.getAzimuthalAngle=function(){return this.spherical.theta},n.prototype.rotate3d=function(){this.emit(at)},n.prototype.dispose=function(){var t=this;t.domElement.removeEventListener("contextmenu",t.onContextMenu,!1),t.domElement.removeEventListener("mousedown",t.onMouseDown,!1),t.domElement.removeEventListener("wheel",t.onMouseWheel,!1),t.domElement.removeEventListener("touchstart",t.onTouchStart,!1),t._win.removeEventListener("touchend",t.onTouchEnd,!1),t._win.removeEventListener("touchmove",t.onTouchMove,!1),t._win.removeEventListener("mousemove",t.onMouseMove,!1),t._win.removeEventListener("mouseup",t.onMouseUp,!1),t._win.removeEventListener("keydown",t.onKeyDown,!1)},n.prototype.autoRotateanimate=function(){var t,e,o,n=this;n._autoRotate&amp;&amp;n.state===l&amp;&amp;(t=n.getAutoRotationAngle(),n.rotateLeft(t),n.rotateInfo.correct&amp;&amp;(e=n.spherical.phi-Math.PI/2,o=Math.abs(t),Math.abs(e)&gt;o)&amp;&amp;n.rotateUp((0&lt;e?-1:1)*o),n.update(),n.rotateInfo.next)&amp;&amp;(n._currentRotateTime+=t,Math.abs(n._currentRotateTime)&gt;2*Math.PI-.04)&amp;&amp;(n._currentRotateTime=0,n.emit(st)),requestAnimationFrame(n.autoRotateanimate.bind(n))},n.prototype.updateChange=function(t){var e=this,o=e.object,n=(e.fovChanged=1!==e.scale,o.fov*e.scale),r=e.stores.renderMode.get(),i=(e.fovChanged&amp;&amp;(n=Math.max(e.minFov,Math.min(e.maxFov,n)),console.log("camera.fov",o.fov,n,e.minFov,e.maxFov),o.fov=n,o.updateProjectionMatrix(),e.scale=1),e.sphericalDelta),a=i.theta,i=i.phi,s=(e.sphericalDelta.set(1,0,0),!1);return!t&amp;&amp;0===a&amp;&amp;0===i||(s=!0,e.spherical.theta+=a,a=e.spherical.phi-i,i=E.bb.degToRad(n/2),e.spherical.phi=0===r?Math.max(e.minVlootAt+i,Math.min(e.maxVlookAt-i,a)):a,e.spherical.makeSafe(),n=(new E.ic).addVectors(o.position,(new E.ic).setFromSpherical(e.spherical)),o.lookAt(n)),!(!(t||e.fovChanged||s)||(e.emit(ot),e.fovChanged=!1))},n.prototype.roateStart=function(t,e){this.roateStartTime=Date.now(),this.rotateBegin=new E.hc(t,e)},n.prototype.setAutoRotate=function(t){var e=this;clearTimeout(e.rotateTimer),t?e.rotateInfo.open&amp;&amp;0&lt;e.rotateInfo.resume&amp;&amp;(e.rotateTimer=window.setTimeout(function(){e._autoRotate=!0,e._currentRotateTime=0},1e3*e.rotateInfo.resume)):(e._autoRotate=!1,e._currentRotateTime=0)},n.prototype.roateStop=function(){var n=this;if(!n.needpavement)return Promise.resolve(4);n.needpavement=!1;var t,e,r,i,a,s,o=n.rotateBegin.distanceTo(n.rotateEnd)/(Date.now()-n.roateStartTime),c=(new E.hc).subVectors(n.rotateEnd,n.rotateBegin),o=Math.log10(1.5*o);return o&lt;0?Promise.resolve(5):(e=(t=n.domElement).clientWidth,e=2*Math.PI*c.x/e*n.rotateSpeed*o,c=2*Math.PI*c.y/t.clientHeight*n.rotateSpeed*o,a={left:i=r=0,up:0},s={left:e,up:c},new Promise(function(t){var o=new Q.Tween(a).to(s,1e3).easing(Q.Easing.Quartic.Out).onUpdate(function(){var t,e;n.state===l?(t=Number(a.left.toFixed(8)),e=Number(a.up.toFixed(8)),r===t&amp;&amp;i===e||(n.rotateLeft(t-r),r=t,n.rotateUp(e-i),i=e,n.update())):o.stop()}).onComplete(function(){t(1)});o.start()}))},n.prototype.getInterscets=function(t){var e=this,t=t.changedTouches?(n=t.changedTouches[0].pageX,t.changedTouches[0].pageY):(n=t.clientX,t.clientY),o=e.domElement,n=n/o.clientWidth*2-1;return e.raycaster.setFromCamera(new E.hc(n,t=-t/o.clientHeight*2+1),e.object),e.raycaster.intersectObject(e.scene,!0).filter(function(t){return t.object.userData.enable})},n.prototype.update3d=function(){var t=this,e=t.object.position,o=e.clone().sub(t.target),n=Math.atan2(o.x,o.z),r=Math.atan2(Math.sqrt(o.x*o.x+o.z*o.z),o.y),i=t.sphericalDelta,a=i.theta,i=i.phi,s=(t.sphericalDelta.set(1,0,0),window.innerHeight/2),s=(t.rotateStart.y&lt;s?n+=a:n-=a,r-=i,r=Math.max(1e-6,Math.min(Math.PI-1e-6,r)),o.length()*t.scale),s=Math.max(t.minDistance,Math.min(t.maxDistance,s));r&gt;Math.PI/2&amp;&amp;(r=Math.PI/2),o.x=s*Math.sin(r)*Math.sin(n),o.y=s*Math.cos(r),o.z=s*Math.sin(r)*Math.cos(n),e.copy(t.target).add(o),t.object.lookAt(t.target),t.spherical3d.theta=n,t.spherical3d.phi=r,t.scale=1,t.emit(nt,n,r)};var ut=n;function ht(t){this.isPlaying=!1,this.animationFrame=0,this.progress=0,this.startTime=0,this.isPlaying=!1,this.animationFrame=0,this.progress=0,this.options=t,this.duration=t.duration||0,this.startTime=0}ht.prototype.innerLoop=function(){var t,e,o=this;this.isPlaying&amp;&amp;(t=(new Date).getTime(),1&lt;=(e=(e=0)&lt;this.duration?(t-this.startTime)/this.duration:e)?(this.progress=e=1,this.update(this.params,e),this.stop()):(this.progress=e,this.update(this.params,e),this.animationFrame=requestAnimationFrame(function(){o.innerLoop()})))},ht.prototype.start=function(){return this.isPlaying=!0,this.startTime=(new Date).getTime(),this.innerLoop(),this},ht.prototype.stop=function(){this.isPlaying&amp;&amp;(this.isPlaying=!1,this.animationFrame&amp;&amp;(cancelAnimationFrame(this.animationFrame),this.animationFrame=0),this.onFinished(this.params,this.progress))},pt=function(t,e){return(pt=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&amp;&amp;(t[o]=e[o])}))(t,e)};var pt,ft,dt=function(){return(dt=Object.assign||function(t){for(var e,o=1,n=arguments.length;o&lt;n;o++)for(var r in e=arguments[o])Object.prototype.hasOwnProperty.call(e,r)&amp;&amp;(t[r]=e[r]);return t}).apply(this,arguments)},mt=vt,e=ft=ht;if("function"!=typeof e&amp;&amp;null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function yt(){this.constructor=mt}function vt(t){t=ft.call(this,dt({duration:1e3,positionPower:3,rotationPower:1,fovPower:1,leaveOrignThreshold:10,closeTargetThreshold:75},t))||this;return t.closeToTargetFlag=!1,t.leaveOrigin=!1,t}pt(mt,e),mt.prototype=null===e?Object.create(e):(yt.prototype=e.prototype,new yt),vt.prototype.play=function(){for(var t=[],e=0;e&lt;arguments.length;e++)t[e]=arguments[e];var o=t[0],o={camera:o,startPosition:t[1],startRotation:t[2],endPosition:t[3],endRotation:t[4],startFov:o.fov,endFov:t[5],onUpdate:t[6],onLeaveOrigin:t[7],onCloseToTarget:t[8],onFinished:t[9],target:t[10],newTarget:t[11]};return this.params=dt(dt({},this.params),o),ft.prototype.start.call(this)},vt.prototype.update=function(t,e){var o=this,n=t.camera,r=o.options,i=n.position.clone(),a=t.target.clone(),s=Math.pow(e,r.positionPower),a=((i=i.lerp(t.endPosition,s)).y=E.bb.lerp(i.y,t.endPosition.y,2*s),a.lerp(t.newTarget,Math.pow(e,r.fovPower))),s=E.bb.lerp(t.startFov,t.endFov,Math.pow(e,r.fovPower));n.position.copy(i),n.lookAt(a),n.fov!==s&amp;&amp;(n.fov=s,n.updateProjectionMatrix()),t.onUpdate&amp;&amp;t.onUpdate(e),!o.closeToTargetFlag&amp;&amp;t.onCloseToTarget&amp;&amp;i.distanceTo(t.endPosition)&lt;r.closeTargetThreshold&amp;&amp;(o.closeToTargetFlag=!0,t.onCloseToTarget()),!o.leaveOrigin&amp;&amp;t.onLeaveOrigin&amp;&amp;i.distanceTo(t.startPosition)&gt;r.leaveOrignThreshold&amp;&amp;(o.leaveOrigin=!0,t.onLeaveOrigin())},vt.prototype.onFinished=function(t){t.onFinished&amp;&amp;t.onFinished()};var gt,wt,bt=vt,u=t(1),e=(gt=function(t,e){return(gt=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&amp;&amp;(t[o]=e[o])}))(t,e)},function(t,e){if("function"!=typeof e&amp;&amp;null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}gt(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),p=function(t,a,s,c){return new(s=s||Promise)(function(o,e){function n(t){try{i(c.next(t))}catch(t){e(t)}}function r(t){try{i(c.throw(t))}catch(t){e(t)}}function i(t){var e;t.done?o(t.value):((e=t.value)instanceof s?e:new s(function(t){t(e)})).then(n,r)}i((c=c.apply(t,a||[])).next())})},_=function(n,r){var i,a,s,c={label:0,sent:function(){if(1&amp;s[0])throw s[1];return s[1]},trys:[],ops:[]},l={next:t(0),throw:t(1),return:t(2)};return"function"==typeof Symbol&amp;&amp;(l[Symbol.iterator]=function(){return this}),l;function t(o){return function(t){var e=[o,t];if(i)throw new TypeError("Generator is already executing.");for(;c=l&amp;&amp;e[l=0]?0:c;)try{if(i=1,a&amp;&amp;(s=2&amp;e[0]?a.return:e[0]?a.throw||((s=a.return)&amp;&amp;s.call(a),0):a.next)&amp;&amp;!(s=s.call(a,e[1])).done)return s;switch(a=0,(e=s?[2&amp;e[0],s.value]:e)[0]){case 0:case 1:s=e;break;case 4:return c.label++,{value:e[1],done:!1};case 5:c.label++,a=e[1],e=[0];continue;case 7:e=c.ops.pop(),c.trys.pop();continue;default:if(!(s=0&lt;(s=c.trys).length&amp;&amp;s[s.length-1])&amp;&amp;(6===e[0]||2===e[0])){c=0;continue}if(3===e[0]&amp;&amp;(!s||e[1]&gt;s[0]&amp;&amp;e[1]&lt;s[3]))c.label=e[1];else if(6===e[0]&amp;&amp;c.label&lt;s[1])c.label=s[1],s=e;else{if(!(s&amp;&amp;c.label&lt;s[2])){s[2]&amp;&amp;c.ops.pop(),c.trys.pop();continue}c.label=s[2],c.ops.push(e)}}e=r.call(n,c)}catch(t){e=[6,t],a=0}finally{i=s=0}if(5&amp;e[0])throw e[1];return{value:e[0]?e[1]:void 0,done:!0}}}},xt=u.a.app,St=u.a.terminal,Et=u.a.winSize,Tt=u.a.wallHeight;function _t(t){var e=wt.call(this)||this;return e.duration=800,e.opacityRange=[.5,1],e.direction=new E.ic,e.house=t,requestAnimationFrame(function t(e){requestAnimationFrame(t),Z.a.update(e)}),e}wt=V.a,e(_t,wt),_t.prototype.simple=function(o){return p(this,void 0,void 0,function(){var e;return _(this,function(t){switch(t.label){case 0:return(e=this.house).setIsRoomLoading(!0),[4,o.renderRoomOnly()];case 1:return t.sent(),e.curRoom=o,e.controls.setCamreaPosition(o.position),e.update(),e.setIsRoomLoading(!1),[2]}})})},_t.prototype.walk=function(c,l){return p(this,void 0,void 0,function(){var n,e,o,r,i,a,s=this;return _(this,function(t){switch(t.label){case 0:return(n=this).house.setIsRoomLoading(!0),e=c.position.distanceTo(l.position),o=2*e/100,c.buildSphereMesh(),[4,l.renderRoomOnly()];case 1:return t.sent(),c.forMaterial(function(t){t.depthTest=!1}),c.forMesh(function(t){t.scale.set(o,o,o),t.renderOrder=99}),l.forMesh(function(t){t.scale.set(o,o,o),t.renderOrder=98}),l.forMaterial(function(t){t.depthTest=!1}),c.hideChildren(),c.removeMesh(),n.house.update(),r={process:0,posx:c.position.x,posy:c.position.y,posz:c.position.z},i={process:1,posx:l.position.x,posy:l.position.y,posz:l.position.z},a=n.opacityRange[1]-n.opacityRange[0],[2,new Promise(function(e){var o=new Z.a.Tween(r).to(i,n.duration).easing(Z.a.Easing.Quadratic.InOut).onUpdate(function(t){var e,o=t.process;o&gt;n.opacityRange[0]&amp;&amp;o&lt;=n.opacityRange[1]&amp;&amp;(e=1-(o-n.opacityRange[0])/a,c.forMaterial(function(t){t.opacity=e&lt;.1?0:e})),n.house.controls.setCamreaPosition(new E.ic(t.posx,t.posy,t.posz)),n.house.update()}).onComplete(function(){return p(s,void 0,void 0,function(){return _(this,function(t){switch(t.label){case 0:return[4,c.hide()];case 1:return t.sent(),n.house.curRoom=l,c.forMaterial(function(t){t.depthTest=!0,t.opacity=1}),c.forMesh(function(t){t.scale.set(1,1,1)}),l.forMesh(function(t){t.scale.set(1,1,1)}),l.forMaterial(function(t){t.depthTest=!0}),c.removeSphereMesh(),n.house.update(),n.house.setIsRoomLoading(!1),o.stopChainedTweens(),e(1),[2]}})})}).start()})]}})})},_t.prototype.blend=function(a,s){return p(this,void 0,void 0,function(){var o,n,r,i=this;return _(this,function(t){switch(t.label){case 0:return(o=this).house.setIsRoomLoading(!0),[4,s.renderRoomOnly()];case 1:return t.sent(),a.forMaterial(function(t){t.depthTest=!1}),a.forMesh(function(t){t.renderOrder=99}),s.forMesh(function(t){t.renderOrder=98}),s.forMaterial(function(t){t.depthTest=!1}),a.hideChildren(),o.house.update(),n={process:0},r={process:1},[2,new Promise(function(e){new Z.a.Tween(n).to(r,o.duration).easing(Z.a.Easing.Quadratic.Out).onUpdate(function(){var e=n.process;a.forMaterial(function(t){t.opacity=1-e}),s.forMaterial(function(t){t.opacity=e}),o.house.update()}).onComplete(function(){return p(i,void 0,void 0,function(){return _(this,function(t){switch(t.label){case 0:return[4,a.hide()];case 1:return t.sent(),o.house.curRoom=s,a.forMaterial(function(t){t.depthTest=!0,t.opacity=1}),s.forMaterial(function(t){t.depthTest=!0}),o.house.update(),o.house.setIsRoomLoading(!1),e(1),[2]}})})}).start()})]}})})},_t.prototype.setDirection=function(){var t=this.house,e=t.camera,t=t.vrdesign.center;t&amp;&amp;(t=t.clone().sub(e.position).setY(0),this.direction.copy(t.normalize()))},_t.prototype.threeFloorplan=function(l,u){return void 0===l&amp;&amp;(l=180),void 0===u&amp;&amp;(u=-90),p(this,void 0,void 0,function(){var o,n,r,e,i,a,s,c=this;return _(this,function(t){return i=(o=this).house,n=i.camera,(r=i.vrdesign.center)?(i=T.a.vector3ToAthv(n.position.clone().sub(r)),e=i.ath,i=i.atv,a={fov:n.fov,ath:e,atv:i},s={fov:90,ath:l,atv:u},[2,new Promise(function(e){new Z.a.Tween(a).to(s,o.duration).easing(Z.a.Easing.Quadratic.Out).onUpdate(function(t){n.fov=t.fov;t=T.a.athvToVector3(t.ath,t.atv,o.radius).add(r);o.house.controls.setCamreaPosition(t),n.lookAt(r)}).onComplete(function(){return p(c,void 0,void 0,function(){return _(this,function(t){return e(!0),[2]})})}).start()})]):[2,Promise.resolve(!1)]})})},_t.prototype.panoToThree=function(w,b,x,S){return void 0===x&amp;&amp;(x=225),void 0===S&amp;&amp;(S=-70),p(this,void 0,void 0,function(){var o,e,n,r,i,a,s,c,l,u,h,p,f,d,m,y,v,g;return _(this,function(t){return e=(o=this).house.camera,(n=b.center)?(o.stores.gtlfMode.set(1),e.getWorldDirection(o.direction),o.direction.normalize(),r=Et.screenWidth,i=Et.screenHeight,a=o.house.container.clientHeight,s=b.size,l=s.x,s=s.z,c=100,u=xt.pixelsPerCm,l=l*u+80,u=s*u+80,c=St.isPc?l/u&lt;(h=.7*r)/(p=.76*i)?p:h*u/l:l/u&lt;r/i?.76*i:.76*r*u/l,p=s*a/((c=u&lt;c?u:c)-c/u*80)/Math.tan(E.bb.degToRad(45))/2+Tt,o.radius=p,f=T.a.athvToVector3(x,S,p).add(n),d=new bt({positionPower:8}),m=e.position.clone(),y=e.rotation.clone(),v=o.direction.clone().multiplyScalar(1e3).add(m),g=o.opacityRange[1]-o.opacityRange[0],[2,new Promise(function(t){d.play(e,m,y,f,y,90,function(t){var e;t&gt;o.opacityRange[0]&amp;&amp;t&lt;=o.opacityRange[1]&amp;&amp;(e=1-(10*t-o.opacityRange[0])/g,w.forMaterial(function(t){t.opacity=e&lt;.1?0:e}))},function(){w.hide()},null,function(){w.forMaterial(function(t){t.depthTest=!0,t.opacity=1}),w.forMesh(function(t){t.scale.set(1,1,1)}),w.removeSphereMesh(),o.house.update(),o.house.setIsRoomLoading(!1),setTimeout(function(){o.house.rotate3d()},1e3),t(!0)},v,n)})]):[2,Promise.resolve(!1)]})})},_t.prototype.threeToPano=function(h,e){return p(this,void 0,void 0,function(){var o,n,r,i,a,s,c,l,u;return _(this,function(t){return n=(o=this).house.camera,(r=e.center)?(i=h.position.clone(),a=new bt({positionPower:8}),s=n.position.clone(),c=n.rotation,l=o.direction.clone().multiplyScalar(1e3).add(i),u=!90,[2,new Promise(function(e){a.play(n,s,c,i,c,90,null,null,function(){u||(h.show(),u=!0)},function(){o.stores.gtlfMode.set(2),n.lookAt(l);var t=(new E.Xb).setFromVector3(l.clone().sub(i));o.house.controls.setLookAt(t.theta),e(!0)},r,l)})]):[2,Promise.resolve(!1)]})})},_t.prototype.threeToThree=function(v,g,w,b){return void 0===w&amp;&amp;(w=225),void 0===b&amp;&amp;(b=-70),p(this,void 0,void 0,function(){var e,o,n,r,i,a,s,c,l,u,h,p,f,d,m,y;return _(this,function(t){return o=(e=this).house.camera,(n=g.center)?(e.stores.gtlfMode.set(1),o.getWorldDirection(e.direction),e.direction.normalize(),r=Et.screenWidth,i=Et.screenHeight,a=e.house.container.clientHeight,s=g.size,l=s.x,s=s.z,c=100,u=xt.pixelsPerCm,l=l*u+80,u=s*u+80,c=St.isPc?l/u&lt;(h=.7*r)/(p=.76*i)?p:h*u/l:l/u&lt;r/i?.76*i:.76*r*u/l,p=s*a/((c=u&lt;c?u:c)-c/u*80)/Math.tan(E.bb.degToRad(45))/2+Tt,e.radius=p,f=T.a.athvToVector3(w,b,p).add(n),d=new bt({positionPower:8}),m=o.position.clone(),y=o.rotation,[2,new Promise(function(t){d.play(o,m,y,f,y,90,function(){},function(){},null,function(){e.house.update(),e.house.setIsRoomLoading(!1),setTimeout(function(){e.house.rotate3d()},1e3),t(!0)},v,n)})]):[2,Promise.resolve(!1)]})})};var Pt,Mt,Rt=_t,Ot=t(0),e=(Pt=function(t,e){return(Pt=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&amp;&amp;(t[o]=e[o])}))(t,e)},function(t,e){if("function"!=typeof e&amp;&amp;null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}Pt(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),kt=function(t,a,s,c){return new(s=s||Promise)(function(o,e){function n(t){try{i(c.next(t))}catch(t){e(t)}}function r(t){try{i(c.throw(t))}catch(t){e(t)}}function i(t){var e;t.done?o(t.value):((e=t.value)instanceof s?e:new s(function(t){t(e)})).then(n,r)}i((c=c.apply(t,a||[])).next())})},Ct=function(n,r){var i,a,s,c={label:0,sent:function(){if(1&amp;s[0])throw s[1];return s[1]},trys:[],ops:[]},l={next:t(0),throw:t(1),return:t(2)};return"function"==typeof Symbol&amp;&amp;(l[Symbol.iterator]=function(){return this}),l;function t(o){return function(t){var e=[o,t];if(i)throw new TypeError("Generator is already executing.");for(;c=l&amp;&amp;e[l=0]?0:c;)try{if(i=1,a&amp;&amp;(s=2&amp;e[0]?a.return:e[0]?a.throw||((s=a.return)&amp;&amp;s.call(a),0):a.next)&amp;&amp;!(s=s.call(a,e[1])).done)return s;switch(a=0,(e=s?[2&amp;e[0],s.value]:e)[0]){case 0:case 1:s=e;break;case 4:return c.label++,{value:e[1],done:!1};case 5:c.label++,a=e[1],e=[0];continue;case 7:e=c.ops.pop(),c.trys.pop();continue;default:if(!(s=0&lt;(s=c.trys).length&amp;&amp;s[s.length-1])&amp;&amp;(6===e[0]||2===e[0])){c=0;continue}if(3===e[0]&amp;&amp;(!s||e[1]&gt;s[0]&amp;&amp;e[1]&lt;s[3]))c.label=e[1];else if(6===e[0]&amp;&amp;c.label&lt;s[1])c.label=s[1],s=e;else{if(!(s&amp;&amp;c.label&lt;s[2])){s[2]&amp;&amp;c.ops.pop(),c.trys.pop();continue}c.label=s[2],c.ops.push(e)}}e=r.call(n,c)}catch(t){e=[6,t],a=0}finally{i=s=0}if(5&amp;e[0])throw e[1];return{value:e[0]?e[1]:void 0,done:!0}}}},jt=function(t,e){var o="function"==typeof Symbol&amp;&amp;t[Symbol.iterator];if(!o)return t;var n,r,i=o.call(t),a=[];try{for(;(void 0===e||0&lt;e--)&amp;&amp;!(n=i.next()).done;)a.push(n.value)}catch(t){r={error:t}}finally{try{n&amp;&amp;!n.done&amp;&amp;(o=i.return)&amp;&amp;o.call(i)}finally{if(r)throw r.error}}return a},Lt=function(t,e,o){if(o||2===arguments.length)for(var n,r=0,i=e.length;r&lt;i;r++)!n&amp;&amp;r in e||((n=n||Array.prototype.slice.call(e,0,r))[r]=e[r]);return t.concat(n||Array.prototype.slice.call(e))},Dt=u.a.app,It=new E.m,Ht=0;function r(t,e){var o=Mt.call(this,"house")||this,n=(o.roomDic={},o);return n.container=t,n.roomLoader=new Rt(n),n.viewOptions=e,o}e(r,Mt=W),r.prototype.loadData=function(t,e){var o,n=this;n.children.splice(0),n.rooms&amp;&amp;(n.rooms.splice(0).forEach(function(t){t!==n.curRoom&amp;&amp;t.dispose()}),o=n.curRoom)&amp;&amp;setTimeout(function(){o.dispose()},5e3),n.roomDic={},n.rooms=t,n.rooms.forEach(function(t){n.roomDic[t.id]=t}),n.vrdesign&amp;&amp;n.vrdesign.destroy(),n.vrdesign=e,(t=n.children).push.apply(t,Lt(Lt([],jt(n.rooms),!1),[e],!1)),n.children.forEach(function(t){t.parent=n})},r.prototype.init=function(){var t=this,e=t.container,o=e.clientWidth,e=e.clientHeight;t.webglRenderer=t.createWebglRenderer(o,e),t.camera=t.createCamera(t.viewOptions.fov||100,o,e),t.scene=t.createScene(),t.controls=t.createControls(t.camera,t.scene),t.vrHotspots=t.createElement(),this.container.appendChild(t.vrHotspots),t.bindUserEvent(),t.animateRender(),t.addResizeListener(),t.on("needupdate",t.render,t)},r.prototype.update=function(){this.controls.update(!1)},r.prototype.rotate3d=function(){this.controls.rotate3d()},r.prototype.destory=function(){},r.prototype.setIsRoomLoading=function(t){this.isRoomLoading=t,this.controls.setEnabled(!t)},r.prototype.loadRoom=function(s){return kt(this,void 0,void 0,function(){var e,o,n,r,i,a;return Ct(this,function(t){switch(t.label){case 0:return(e=this).curRoom&amp;&amp;e.curRoom.id===s?[2,!1]:(o=e.roomDic[s],n=function(t,e){t=t.pos,e=e.pos;return t&amp;&amp;e&amp;&amp;(t.x!==e.x||t.y!==e.y)},o?(r=(i=e.stores).renderMode,i=i.tileHeightState,a=e.curRoom,0===r.get()?[3,2]:(e.setIsRoomLoading(!0),[4,o.renderRoomOnly(!1)])):[3,9]);case 1:return t.sent(),e.curRoom=o,e.setIsRoomLoading(!1),Ot.b.threeZoomOut.fire(),[3,8];case 2:return a?[3,4]:[4,e.roomLoader.simple(o)];case 3:return t.sent(),[3,8];case 4:return n(a,o)?[4,e.roomLoader.walk(a,o)]:[3,6];case 5:return t.sent(),[3,8];case 6:return[4,e.roomLoader.blend(a,o)];case 7:t.sent(),t.label=8;case 8:return i.set(o.tileResHeight.get()),[2,!0];case 9:return[2,!1]}})})},r.prototype.showRoomLabel=function(t){return this.vrdesign.showRoomLabel(t=void 0===t?!0:t)},r.prototype.threeFloorplan=function(){return kt(this,void 0,void 0,function(){var e;return Ct(this,function(t){switch(t.label){case 0:return[4,(e=this).showRoomLabel(!1)];case 1:return t.sent(),e.stores.renderMode.set(1),[2,e.roomLoader.threeFloorplan(180,-90)]}})})},r.prototype.floorplanThree=function(o,n){return void 0===o&amp;&amp;(o=225),void 0===n&amp;&amp;(n=-70),kt(this,void 0,void 0,function(){var e;return Ct(this,function(t){return[2,(e=this).roomLoader.threeFloorplan(o,n).then(function(t){t&amp;&amp;(e.stores.renderMode.set(2),e.showRoomLabel())})]})})},r.prototype.panoThree=function(){return kt(this,void 0,void 0,function(){var e;return Ct(this,function(t){switch(t.label){case 0:return(e=this).vrdesign.center?[4,e.vrdesign.loadModel()]:[3,2];case 1:return t.sent(),e.controls.target=e.vrdesign.center,e.stores.renderMode.set(2),[2,e.roomLoader.panoToThree(e.curRoom,e.vrdesign).then(function(){return e.showRoomLabel(),Promise.resolve(!0)})];case 2:return[2,Promise.resolve(!1)]}})})},r.prototype.threeToThree=function(o,n){return void 0===o&amp;&amp;(o=225),void 0===n&amp;&amp;(n=-70),kt(this,void 0,void 0,function(){var e;return Ct(this,function(t){switch(t.label){case 0:return(e=this).vrdesign.center?(Ot.b.setDirection.fire(),[4,e.vrdesign.loadModel()]):[3,2];case 1:return t.sent(),[2,e.roomLoader.threeToThree(e.controls.target,e.vrdesign,o,n).then(function(){return e.showRoomLabel(),Promise.resolve(!0)})];case 2:return[2,Promise.resolve(!1)]}})})},r.prototype.panoFloorplan=function(){return kt(this,void 0,void 0,function(){var e;return Ct(this,function(t){switch(t.label){case 0:return(e=this).vrdesign.center?[4,e.vrdesign.loadModel()]:[3,3];case 1:return t.sent(),e.controls.target=e.vrdesign.center,e.stores.renderMode.set(2),[4,e.roomLoader.panoToThree(e.curRoom,e.vrdesign,180,-70)];case 2:return t.sent(),[2,e.roomLoader.threeFloorplan(180,-90)];case 3:return e.stores.renderMode.set(1),[2,Promise.resolve(!0)]}})})},r.prototype.threePano=function(){return kt(this,void 0,void 0,function(){var e,o;return Ct(this,function(t){switch(t.label){case 0:return 0===(o=(e=this).stores.renderMode).get()?[3,2]:[4,e.showRoomLabel(!1)];case 1:return t.sent(),o.set(0),[2,e.roomLoader.threeToPano(e.curRoom,e.vrdesign)];case 2:return[2,Promise.resolve(!0)]}})})},r.prototype.render=function(){var t=this.webglRenderer;t.clear(),t.render(this.scene,this.camera),t.clearDepth(),Ht=0},r.prototype.createMeshs=function(){throw new Error("Method not implemented.")},r.prototype.animateRender=function(){function e(){requestAnimationFrame(e);var t=It.getDelta();.04&lt;(Ht+=t)&amp;&amp;o.render()}var o=this;e()},r.prototype.addResizeListener=function(){var o=this;window.addEventListener("resize",function(){var t=o.container,e=t.clientWidth,t=t.clientHeight;o.webglRenderer.setSize(e,t),o.camera.aspect=e/t,o.camera.updateProjectionMatrix(),o.curRoom&amp;&amp;o.updateMinFov(o.curRoom.tileResHeight.get())},!1)},r.prototype.createCamera=function(t,e,o){t=new E.rb(t,e/o,.1,1e6);return t.position.set(0,0,0),t},r.prototype.bindUserEvent=function(){var e=this,t=e.stores,o=t.tileHeightState,n=t.renderMode;Ot.b.thvrRoomLoaded.add(function(t){e.emit("roomLoaded",t),e.controls.currentRotateTime=0}),o.onChange(function(t){e.updateMinFov(t)}),Ot.b.setDirection.add(function(){2===n.get()&amp;&amp;e.roomLoader.setDirection()})},r.prototype.createWebglRenderer=function(t,e){var o=new E.mc({precision:"highp",antialias:!0,alpha:!0,logarithmicDepthBuffer:!0}),t=(o.setPixelRatio(window.devicePixelRatio),o.autoClear=!1,o.outputColorSpace=E.V,o.setPixelRatio(window.devicePixelRatio),o.setSize(t,e),this.domElement=o.domElement,this.createElement());return t.appendChild(this.domElement),this.container.appendChild(t),o.setPixelRatio(window.devicePixelRatio),o.capabilities&amp;&amp;(Dt.maxAnisotropy=o.capabilities.getMaxAnisotropy()),Dt.anisotropy=2&lt;=Dt.maxAnisotropy?2:1,o},r.prototype.createControls=function(t,e){var n=this,r=new ut(t,e,new E.ic(0,0,1),n.viewOptions,n.domElement,window,n.container);return r.on(ot,function(){var t,e,o;n.isRoomLoading||(e=(t=r.spherical).theta,o=r.object.fov,n.emit("viewchange",e,t.phi,o,r.autoRotate)),n.render()}),r.on(nt,function(t,e){var o;n.isRoomLoading||(o=r.object.fov,n.emit("viewchange3d",t,e,o,r.autoRotate))}),r.on(at,function(){var t,e,o;n.isRoomLoading||2!==n.stores.renderMode.get()||(e=(t=r.spherical3d).theta,o=r.object.fov,n.emit("rotate3d",e,t.phi,o,r.autoRotate))}),r.on(st,function(){n.emit("switchNextScene")}),r},r.prototype.createScene=function(){return new E.Qb},r.prototype.updateMinFov=function(t){this.controls.updateMinFov(t)};var Ft=r,At=t(9);function zt(t,e){void 0===e&amp;&amp;(e=!0),this.width=1,this.height=1,this.renderer=t,this.material=new E.Lb({uniforms:{},vertexShader:"attribute vec3 position;\nattribute vec2 uv;\nuniform mat4 projectionMatrix;\nuniform mat4 modelViewMatrix;\nvarying vec2 vUv;\nvoid main()  {\n\tvUv = vec2( 1.- uv.x, uv.y );\n\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n}",fragmentShader:"precision mediump float;\nuniform samplerCube map;\nvarying vec2 vUv;\n#define M_PI 3.1415926535897932384626433832795\nvoid main()  {\n\tvec2 uv = vUv;\n\tfloat longitude = uv.x * 2. * M_PI - M_PI + M_PI / 2.;\n\tfloat latitude = uv.y * M_PI;\n\tvec3 dir = vec3(\n\t\t- sin( longitude ) * sin( latitude ),\n\t\tcos( latitude ),\n\t\t- cos( longitude ) * sin( latitude )\n\t);\n\tnormalize( dir );\n\tgl_FragColor = textureCube( map, dir );\n}",side:E.x,transparent:!0}),this.scene=new E.Qb,this.mesh=new E.db(new E.sb(1,1),this.material),this.scene.add(this.mesh),this.camera=new E.pb(-.5,.5,.5,-.5,-1024,1024),this.cubeCamera=null,this.setSize(1024,512);t=this.renderer.getContext();this.cubeMapSize=t.getParameter(t.MAX_CUBE_MAP_TEXTURE_SIZE),e&amp;&amp;this.getCubeCamera(2048)}zt.prototype.update=function(t,e,o){void 0===o&amp;&amp;(o=0);var n=this.cubeCamera,r=this.renderer,i=r.autoClear;return r.autoClear=!0,n.position.copy(t),n.rotation.y=o,n.update(r,e),r.autoClear=i,this.convert()},zt.prototype.setSize=function(t,e){var o=this,n=o.camera;o.mesh.scale.set(o.width=t,o.height=e,1),n.left=o.width/-2,n.right=o.width/2,n.top=o.height/2,n.bottom=o.height/-2,n.updateProjectionMatrix(),o.output=new E.lc(t,e,{minFilter:E.S,magFilter:E.S,wrapS:E.l,wrapT:E.l,format:E.zb,type:E.gc})},zt.prototype.getCubeCamera=function(t){var t=Math.min(this.cubeMapSize,t),e={format:E.zb,magFilter:E.S,minFilter:E.S},t=new E.kc(t,e);return this.cubeCamera=new E.s(.1,2048,t),this.cubeCamera},zt.prototype.convert=function(){var t=this,e=t.cubeCamera,o=t.renderer,n=t.width,r=t.height,e=(t.material.uniforms.map={value:e.renderTarget.texture},o.setRenderTarget(t.output),o.render(t.scene,t.camera),new Uint8Array(4*n*r));return o.readRenderTargetPixels(t.output,0,0,n,r,e),o.setRenderTarget(null),new ImageData(new Uint8ClampedArray(e),n,r)};var Vt,Wt,Ut=zt,e=(Vt=function(t,e){return(Vt=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&amp;&amp;(t[o]=e[o])}))(t,e)},function(t,e){if("function"!=typeof e&amp;&amp;null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}Vt(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),i=function(t,a,s,c){return new(s=s||Promise)(function(o,e){function n(t){try{i(c.next(t))}catch(t){e(t)}}function r(t){try{i(c.throw(t))}catch(t){e(t)}}function i(t){var e;t.done?o(t.value):((e=t.value)instanceof s?e:new s(function(t){t(e)})).then(n,r)}i((c=c.apply(t,a||[])).next())})},f=function(n,r){var i,a,s,c={label:0,sent:function(){if(1&amp;s[0])throw s[1];return s[1]},trys:[],ops:[]},l={next:t(0),throw:t(1),return:t(2)};return"function"==typeof Symbol&amp;&amp;(l[Symbol.iterator]=function(){return this}),l;function t(o){return function(t){var e=[o,t];if(i)throw new TypeError("Generator is already executing.");for(;c=l&amp;&amp;e[l=0]?0:c;)try{if(i=1,a&amp;&amp;(s=2&amp;e[0]?a.return:e[0]?a.throw||((s=a.return)&amp;&amp;s.call(a),0):a.next)&amp;&amp;!(s=s.call(a,e[1])).done)return s;switch(a=0,(e=s?[2&amp;e[0],s.value]:e)[0]){case 0:case 1:s=e;break;case 4:return c.label++,{value:e[1],done:!1};case 5:c.label++,a=e[1],e=[0];continue;case 7:e=c.ops.pop(),c.trys.pop();continue;default:if(!(s=0&lt;(s=c.trys).length&amp;&amp;s[s.length-1])&amp;&amp;(6===e[0]||2===e[0])){c=0;continue}if(3===e[0]&amp;&amp;(!s||e[1]&gt;s[0]&amp;&amp;e[1]&lt;s[3]))c.label=e[1];else if(6===e[0]&amp;&amp;c.label&lt;s[1])c.label=s[1],s=e;else{if(!(s&amp;&amp;c.label&lt;s[2])){s[2]&amp;&amp;c.ops.pop(),c.trys.pop();continue}c.label=s[2],c.ops.push(e)}}e=r.call(n,c)}catch(t){e=[6,t],a=0}finally{i=s=0}if(5&amp;e[0])throw e[1];return{value:e[0]?e[1]:void 0,done:!0}}}},Nt=function(t,e){var o="function"==typeof Symbol&amp;&amp;t[Symbol.iterator];if(!o)return t;var n,r,i=o.call(t),a=[];try{for(;(void 0===e||0&lt;e--)&amp;&amp;!(n=i.next()).done;)a.push(n.value)}catch(t){r={error:t}}finally{try{n&amp;&amp;!n.done&amp;&amp;(o=i.return)&amp;&amp;o.call(i)}finally{if(r)throw r.error}}return a},Gt=function(t,e,o){if(o||2===arguments.length)for(var n,r=0,i=e.length;r&lt;i;r++)!n&amp;&amp;r in e||((n=n||Array.prototype.slice.call(e,0,r))[r]=e[r]);return t.concat(n||Array.prototype.slice.call(e))},Xt=u.a.terminal,Bt=u.a.offsetAngle,Yt=[64,128,512,1024,2048,4096,8192],qt=8,Qt=[],Zt="cj"===Xt.from||"qf"===Xt.from?["l","r","u","d","f","b"]:"zq"===Xt.from?["2","4","0","5","1","3"]:["r","l","u","d","f","b"],$t=["right","left","top","bottom","front","back"],Kt=/^(.*img360wcs\.fang\.com)\/(.*)\.(jpg|png)/i,Jt={theta:0,phi:0,fov:0},te={obj:null},ee=Promise.resolve(1);function a(t,e,o,n,r,i){void 0===r&amp;&amp;(r=114);var a=Wt.call(this,"room")||this,s=(a.alignDeg=0,a.tileResHeight=new At.a(0),a.lastTileWidth=0,a.rendered=!1,a.currentTileLevel=0,a.textures=[],a.workPromise=Promise.resolve({}),a.texturePromise=Promise.resolve(1),a.maxSizeImg=!1,a.maxImgSize=Number.MAX_VALUE,a.lastTileMax=!1,a.loadTextureTimer=0,a._isHidden=!1,a._isShow=!1,a.firstLoad=!1,a.loadImageError=0,a.id=t,a.url=e,a.preview=o,a.pos=n,a.position=new E.ic(n.x,r,n.y),a.multiTile="string"==typeof e&amp;&amp;Kt.test(e),a.alignDeg=i,a);return a.children.forEach(function(t){t.parent=s}),a}e(a,Wt=W),a.preRender=function(t,e){qt=t.length+1,t.forEach(function(t){t.rendered||t.id===e.curRoom.id||(ee=ee.then(function(){return t.rendered||t.id===e.curRoom.id?Promise.resolve(1):(t.preview="",t.renderRoomOnly(!1))}))})},a.prototype.renderRoomOnly=function(n){var r;return void 0===n&amp;&amp;(n=!0),i(this,void 0,void 0,function(){var e,o;return f(this,function(t){switch(t.label){case 0:return(e=this).rendered=!0,[4,e.ensureCreated()];case 1:return t.sent(),[4,e.loadMesh()];case 2:return t.sent(),o=e.House,n&amp;&amp;o&amp;&amp;(Ot.b.thvrRoomLoaded.fire(e),null!=(r=e.Scene)&amp;&amp;r.add(e.mesh),o.off("viewchange",e.viewChange,e),o.on("viewchange",e.viewChange,e)),e._isShow=n,e._isHidden=!n,e.firstLoad=!0,[2,Promise.resolve(1)]}})})},a.prototype.loadMesh=function(){return i(this,void 0,void 0,function(){var e,o;return f(this,function(t){switch(t.label){case 0:return 0!==(e=this).currentTileLevel?[3,2]:((o=!!e.preview)||e.currentTileLevel++,[4,e.loadTexture(o).then(function(){return e.loadTexture()})]);case 1:t.sent(),o&amp;&amp;setTimeout(function(){e.loadTexture(),setTimeout(function(){e.loadTexture()},200)},100),t.label=2;case 2:return[2,Promise.resolve(1)]}})})},a.prototype.loadTexture=function(n){return void 0===n&amp;&amp;(n=!1),i(this,void 0,void 0,function(){var e,o=this;return f(this,function(t){return(e=this).currentTileLevel&lt;Yt.length?[2,e.todo(function(){return i(o,void 0,void 0,function(){return f(this,function(t){return[2,e.resetMeshMaterial(n)]})})})]:[2,e.texturePromise]})})},a.prototype.hideGuides=function(){this.Guides.forEach(function(t){t.hide()})},a.prototype.hideChildren=function(){this.children.forEach(function(t){t.hide()})},a.prototype.showGuides=function(){return i(this,void 0,void 0,function(){var e;return f(this,function(t){switch(t.label){case 0:return e=[],this.Guides.forEach(function(t){e.push(t.show())}),[4,Promise.all(e)];case 1:return t.sent(),[2]}})})},Object.defineProperty(a.prototype,"Guides",{get:function(){return this.children.filter(function(t){return"guide"===t.type||"vrhotspot"===t.type})},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"Lines",{get:function(){return this.children.filter(function(t){return"line"===t.type})},enumerable:!1,configurable:!0}),a.prototype.show=function(){return i(this,void 0,void 0,function(){var e;return f(this,function(t){switch(t.label){case 0:return(e=this)._isShow?[3,2]:[4,e.renderRoomOnly(!0)];case 1:return t.sent(),[3,4];case 2:return e._isHidden=!1,[4,Wt.prototype.show.call(this,!0)];case 3:t.sent(),t.label=4;case 4:return[2]}})})},a.prototype.hide=function(){var o;return i(this,void 0,void 0,function(){var e;return f(this,function(t){switch(t.label){case 0:return(e=this)._isHidden=!0,[4,Wt.prototype.hide.call(this)];case 1:return t.sent(),e.Lines.forEach(function(t){return t.destory()}),e.removeChildren.apply(e,Gt([],Nt(e.Lines),!1)),null!=(o=e.House)&amp;&amp;o.off("viewchange",e.viewChange,e),[2]}})})},a.prototype.dispose=function(){var t,e=this;e.currentTileLevel=0,e.maxSizeImg=!1,e.maxImgSize=Number.MAX_VALUE,e.lastTileMax=!1,e.firstLoad=!1,e.mesh=null,e.sphereMesh=null,e.tileResHeight.set(0),e.lastTileWidth=0,Wt.prototype.dispose.call(this),e.textures.splice(0).forEach(function(t){t.dispose()}),null!=(t=e.House)&amp;&amp;t.off("viewchange",e.viewChange,e)},a.prototype.buildSphereMesh=function(){var t,e,o=this;o.sphereMesh||((e=new E.Wb(86.6,50,50)).scale(-1,1,1),t=o.loadEquirectangularImage(),(e=new E.db(e,t)).position.copy(o.position),o.materials.push(t),o.meshs.push(e),o.sphereMesh=e),o.House.scene.add(o.sphereMesh)},a.prototype.removeSphereMesh=function(){this.sphereMesh&amp;&amp;this.House.scene.remove(this.sphereMesh)},a.prototype.removeMesh=function(){this.mesh&amp;&amp;this.House.scene.remove(this.mesh)},Object.defineProperty(a.prototype,"isHidden",{get:function(){return this._isHidden},enumerable:!1,configurable:!0}),a.prototype.createMeshs=function(){return i(this,void 0,void 0,function(){var e;return f(this,function(t){switch(t.label){case 0:return[4,this.buildMesh()];case 1:return e=t.sent(),Qt.push(this),qt&lt;Qt.length&amp;&amp;Qt.splice(0,1)[0].dispose(),[2,[e]]}})})},a.prototype.createMaterials=function(){return Zt.map(function(){return new E.eb({transparent:!0,side:E.x,color:0})})},a.prototype.buildMesh=function(){return i(this,void 0,void 0,function(){var e,o,n;return f(this,function(t){return o=(e=this).createMaterials(),(n=e.materials).push.apply(n,Gt([],Nt(o),!1)),n=new E.f(100,100,100),o=new E.db(n,o),n.scale(1,1,-1),o.rotateY(E.bb.degToRad(e.alignDeg+Bt)),o.position.copy(e.position),[2,e.mesh=o]})})},a.prototype.resetMeshMaterial=function(r){return void 0===r&amp;&amp;(r=!1),i(this,void 0,void 0,function(){var e,o,n;return f(this,function(t){switch(t.label){case 0:return(o=(e=this).tileResHeight,n=e.stores.tileHeightState,r)?[4,e.loadPreviewImage()]:[3,2];case 1:return t.sent(),[3,4];case 2:return[4,e.directLoad()];case 3:t.sent(),t.label=4;case 4:return e.lastTileWidth=o.get(),n.set(o.get()),[2,Promise.resolve(1)]}})})},a.prototype.loadPreviewImage=function(){return i(this,void 0,void 0,function(){var r,o,n,i=this;return f(this,function(t){return o=Yt[(r=this).currentTileLevel++],n=function(t){var e=(null==(t=void 0===t?null:t)?void 0:t.width)||1024,e=E.bb.floorPowerOfTwo(Math.min(o,e));return r.tileResHeight.set(e),r.makePreviewCanvas(t,e).map(function(t,e){var t=new E.j(t),t=(r.textures.push(t),t.minFilter=E.S,t.magFilter=E.S,new E.eb({transparent:!0,map:t})),o=(t.fog=!1,null==(o=r.mesh)?void 0:o.material),n=o[e];return r.materials[e]=o[e]=t,n.map&amp;&amp;n.map.dispose(),n.dispose(),t})},[2,new Promise(function(e){(new E.F).load(r.preview,function(t){e(n(t))},function(t){console.log("loadPreviewImage ProgressEvent",t.loaded,t.total)},function(t){console.log("loadPreviewImage ErrorEvent",t),i.loadImageError++,e(n())})})]})})},a.prototype.directLoad=function(){return i(this,void 0,void 0,function(){var s,c,l,u,e;return f(this,function(t){return!(s=this).mesh||(c=Yt[s.currentTileLevel],!0===s.maxSizeImg)||4&lt;s.loadImageError||(s.currentTileLevel++,!s.multiTile&amp;&amp;2&lt;s.currentTileLevel)?[2,Promise.resolve(s.materials)]:(l=s.lastTileWidth,u=s.lastTileMax,e=Zt.map(function(i,a){return new Promise(function(e){var t="string"==typeof s.url?s.url.replace("%s",i):s.url[$t[a]],o=!1,n=s.mesh.material;if(s.multiTile){if(!c)return e(n[a]);var r=Kt.exec(t),t="".concat(r[1],"/viewimage/").concat(r[2],"/").concat(c,"x").concat(c,"c.").concat(r[3]),o=!0}if(s._isHidden||4&lt;s.loadImageError)return e(n[a]);s.currentTileLevel&lt;3?s.imgHandle(t,o,a,c,l,u).then(function(t){e(t)}):s.do(s.imgHandle.bind(s),t,o,a,c,l,u).then(function(t){e(t)})})}),[2,Promise.all(e)])})})},a.prototype.imgHandle=function(o,c,l,u,h,e){var n;return i(this,void 0,void 0,function(){var a,s;return f(this,function(t){return s=(null==(n=(a=this).mesh)?void 0:n.material)||[],!0===e||!0===a.maxSizeImg&amp;&amp;a.maxImgSize&lt;u?[2,Promise.resolve(s[l])]:[2,new Promise(function(r){var e=!1,i=setTimeout(function(){a.multiTile&amp;&amp;(e=!0,r(s[l]))},1e3);(new E.F).load(o,function(t){clearTimeout(i);var e,o,n=null==(n=null==(n=s[l])?void 0:n.map)?void 0:n.image;n&amp;&amp;n.width&gt;=t.width?r(s[l]):(!1===a.maxSizeImg&amp;&amp;(c&amp;&amp;u&gt;t.width||void 0===u)&amp;&amp;(a.maxSizeImg=!0,a.maxImgSize=u||t.width),h===t.width?(a.lastTileMax=!0,r(s[l])):(n=E.bb.floorPowerOfTwo(c?Math.min(u,t.width):t.width),a.tileResHeight.set(n),o=new((n=t.width===n)?E.bc:E.j)(t),a.textures.push(o),o.minFilter=E.S,o.magFilter=E.S,n||(e=null,Object.defineProperty(o,"image",{get:function(){return e=e||a.makeCanvas(t)}})),o.needsUpdate=!0,(n=new E.eb({transparent:!0,map:o})).fog=!1,a.mesh&amp;&amp;(o=s[l],a.materials[l]=s[l]=n,o.map&amp;&amp;o.map.dispose(),o.dispose()),r(n)))},function(t){e||console.log(t.total)},function(t){a.loadImageError++,e||console.log(t)})})]})})},a.prototype.makeCanvas=function(t){var e=this.tileResHeight.get(),o=e,n=document.createElementNS("http://www.w3.org/1999/xhtml","canvas");return n.width=e,n.height=o,n.getContext("2d").drawImage(t,0,0,t.width,t.height,0,0,e,o),n},a.prototype.makePreviewCanvas=function(n,r){return[2,0,4,5,1,3].map(function(t){var e=document.createElementNS("http://www.w3.org/1999/xhtml","canvas"),o=(e.height=r,e.width=r,e.getContext("2d"));return n?o.drawImage(n,0,t*r,n.width,r,0,0,r,r):(o.fillStyle=["#eff","#fef","#ffe","#eef","#efe","#fee"][t],o.fillRect(0,0,r,r)),e})},a.prototype.viewChange=function(t,e,o,n){var r=this;if(r.mesh){var i=r.currentTileLevel;if(!(n&amp;&amp;4&lt;i)&amp;&amp;r.multiTile&amp;&amp;!(4&lt;i&amp;&amp;79&lt;o||5&lt;i&amp;&amp;59&lt;o||6&lt;i&amp;&amp;39&lt;o||7&lt;i&amp;&amp;29&lt;o)){n=500;if(r.firstLoad){if(r.firstLoad=!1,!Xt.isPc)return r.resetTimer();n=1e3}Object.assign(Jt,{theta:t,phi:e,fov:o}),0===r.loadTextureTimer&amp;&amp;(r.loadTextureTimer=window.setTimeout(function(){return r.loadTexture(),r.resetTimer()},n))}}},a.prototype.resetTimer=function(){var t=this;return t.loadTextureTimer=-1,window.setTimeout(function(){t.loadTextureTimer=0},1e3)},a.prototype.do=function(n){for(var r=[],t=1;t&lt;arguments.length;t++)r[t-1]=arguments[t];return i(this,void 0,void 0,function(){var e,o=this;return f(this,function(t){return e=this.workPromise.then(function(){return i(o,void 0,void 0,function(){return f(this,function(t){return[2,n.apply(void 0,Gt([],Nt(r),!1))]})})}),[2,this.workPromise=e]})})},a.prototype.todo=function(n){return i(this,void 0,void 0,function(){var e,o=this;return f(this,function(t){return e=this.texturePromise.then(function(){return i(o,void 0,void 0,function(){return f(this,function(t){return[2,n()]})})}),[2,this.texturePromise=e]})})},a.prototype.loadEquirectangularImage=function(){var t=this.cubemapToEquirectangular(),t=/Apple/i.test(navigator.vendor)?new E.bc(this.makeSphereCanvas(t)):new E.u(t.data,t.width,t.height),t=(this.textures.push(t),t.format=E.zb,t.minFilter=E.S,t.magFilter=E.S,t.flipY=!0,t.needsUpdate=!0,new E.eb({transparent:!0,map:t}));return t.fog=!1,t},a.prototype.cubemapToEquirectangular=function(){return te.obj||(te.obj=new Ut(this.House.webglRenderer)),te.obj.update(this.position,this.Scene,0)},a.prototype.makeSphereCanvas=function(t){var e=document.createElementNS("http://www.w3.org/1999/xhtml","canvas");return e.height=t.height,e.width=t.width,e.getContext("2d").putImageData(t,0,0),e};var oe=a,e=u.a.imgdomain+"pano/",ne=e+"krpano-lib/",e=e+"images/tools/",s={url:"",frameWidth:60,frameHeight:50,fps:40,scale:1},re={skin_zx_u:Object.assign({},s),skin_zx_d:Object.assign({},s),skin_zx_r:Object.assign({},s),skin_zx_l:Object.assign({},s),skin_hotspotstyle:{url:ne+"default.png",frameWidth:60,frameHeight:50,fps:40,scale:1},skin_hotspotstyle_2:{url:e+"spot2.png",frameWidth:128,frameHeight:128,fps:19,scale:.5},skin_hotspotstyle_3:{url:e+"spot3.png",frameWidth:128,frameHeight:128,fps:19,scale:.5},skin_hotspotstyle_4:{url:e+"spot4.png",frameWidth:128,frameHeight:128,fps:19,scale:.5},skin_hotspotstyle_5:{url:e+"spot0.png",frameWidth:128,frameHeight:128,fps:19,scale:.5},skin_hotspotstyle_6:{url:e+"spot5.png",frameWidth:128,frameHeight:128,fps:19,scale:.5},skin_hotspotstyle_7:{url:e+"spot6.png",frameWidth:128,frameHeight:128,fps:19,scale:.5},skin_hotspotstyle_8:{url:e+"spot7.png",frameWidth:128,frameHeight:128,fps:19,scale:.5},skin_hotspotstyle_9:{url:ne+"down.png",frameWidth:60,frameHeight:80,fps:25,scale:1},skin_hotspotstyle_10:{url:ne+"up.png",frameWidth:60,frameHeight:80,fps:25,scale:1},skin_hotspotstyle_11:{url:ne+"spotd2_gif.png",frameWidth:128,frameHeight:128,fps:24,scale:.5},skin_hotspotstyle_12:{url:ne+"spotd3_gif.png",frameWidth:210,frameHeight:252,fps:30,scale:.3},skin_hotspotstyle_13:{url:e+"spot1.png",frameWidth:128,frameHeight:128,fps:19,scale:.5}};ie=function(t,e){return(ie=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&amp;&amp;(t[o]=e[o])}))(t,e)};var ie,ae,se=function(t,a,s,c){return new(s=s||Promise)(function(o,e){function n(t){try{i(c.next(t))}catch(t){e(t)}}function r(t){try{i(c.throw(t))}catch(t){e(t)}}function i(t){var e;t.done?o(t.value):((e=t.value)instanceof s?e:new s(function(t){t(e)})).then(n,r)}i((c=c.apply(t,a||[])).next())})},ce=function(n,r){var i,a,s,c={label:0,sent:function(){if(1&amp;s[0])throw s[1];return s[1]},trys:[],ops:[]},l={next:t(0),throw:t(1),return:t(2)};return"function"==typeof Symbol&amp;&amp;(l[Symbol.iterator]=function(){return this}),l;function t(o){return function(t){var e=[o,t];if(i)throw new TypeError("Generator is already executing.");for(;c=l&amp;&amp;e[l=0]?0:c;)try{if(i=1,a&amp;&amp;(s=2&amp;e[0]?a.return:e[0]?a.throw||((s=a.return)&amp;&amp;s.call(a),0):a.next)&amp;&amp;!(s=s.call(a,e[1])).done)return s;switch(a=0,(e=s?[2&amp;e[0],s.value]:e)[0]){case 0:case 1:s=e;break;case 4:return c.label++,{value:e[1],done:!1};case 5:c.label++,a=e[1],e=[0];continue;case 7:e=c.ops.pop(),c.trys.pop();continue;default:if(!(s=0&lt;(s=c.trys).length&amp;&amp;s[s.length-1])&amp;&amp;(6===e[0]||2===e[0])){c=0;continue}if(3===e[0]&amp;&amp;(!s||e[1]&gt;s[0]&amp;&amp;e[1]&lt;s[3]))c.label=e[1];else if(6===e[0]&amp;&amp;c.label&lt;s[1])c.label=s[1],s=e;else{if(!(s&amp;&amp;c.label&lt;s[2])){s[2]&amp;&amp;c.ops.pop(),c.trys.pop();continue}c.label=s[2],c.ops.push(e)}}e=r.call(n,c)}catch(t){e=[6,t],a=0}finally{i=s=0}if(5&amp;e[0])throw e[1];return{value:e[0]?e[1]:void 0,done:!0}}}};function c(t,e,o,n,r,i,a,s,c,l){var t=ae.call(this,t)||this,u=(t.tag={},t.enableClick=!0,t.dragable=!1,t.inDraging=!1,t.frame=0,t.isSylteChanging=!1,t.isChange=!1,t),e=(u.name=e,u.belongRoom=o,u.targetRoom=n,u.label=r,u._position=a||u.cacl(),re[u.style=i]||re.skin_zx_u);return u.preLoadStyleIconTexture(e),u.styleObj=e,u.perFpsTime=1e3/e.fps,u.enable=!0,u.link=s,u.id=c,u.act=l,t}var le=c,s=ae=W;if("function"!=typeof s&amp;&amp;null!==s)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");function ue(){this.constructor=le}ie(le,s),le.prototype=null===s?Object.create(s):(ue.prototype=s.prototype,new ue),Object.defineProperty(c.prototype,"position",{get:function(){return this._position},set:function(e){this._position=e,this.forMesh(function(t){return t.position.copy(e)})},enumerable:!1,configurable:!0}),c.prototype.setDragable=function(t){this.dragable=t,this.enableClick=!t},c.prototype.createMeshs=function(){return se(this,void 0,void 0,function(){return ce(this,function(t){return this._position?[2,Promise.resolve([1])]:[2,Promise.resolve([0])]})})},c.prototype.loadStyle=function(o){return se(this,void 0,void 0,function(){var e;return ce(this,function(t){return(e=this).isChange=!0,e.isSylteChanging=!0,e.style=o,e.styleObj=re[o]||re.skin_zx_u,e.preLoadStyleIconTexture(e.styleObj),e.perFpsTime=1e3/e.styleObj.fps,e.frame=0,[2]})})},c.prototype.selected=function(){return se(this,void 0,void 0,function(){return ce(this,function(t){return[2]})})},c.prototype.unSelect=function(){},c.prototype.show=function(t){return ae.prototype.show.call(this,t=void 0===t?!0:t),Promise.resolve()},c.prototype.hide=function(){return ae.prototype.hide.call(this)},c.prototype.updateScale=function(){var t;this.isSylteChanging||this.group&amp;&amp;this.House&amp;&amp;this.House.camera&amp;&amp;(t=this.House.camera.fov/80*.25,this.group.scale.set(t,t,t))},c.prototype.setLabel=function(t){this.label=t},c.prototype.setAct=function(t){this.act=t},c.prototype.cacl=function(){var t,e;return this.belongRoom.pos&amp;&amp;this.targetRoom.pos?(t=this.belongRoom.pos,e=this.targetRoom.pos,t=new E.ic(t.x,-112,t.y),e=new E.ic(e.x,0,e.y),t=t.sub(e),e=(new E.Xb).setFromVector3(t),(new E.ic).setFromSpherical(new E.Xb(49,e.phi,e.theta))):new E.ic},c.prototype.preLoadStyleIconTexture=function(n){!n.imagePromise&amp;&amp;n.url?n.imagePromise=new Promise(function(o){(new E.F).load(n.url,function(t){var e=t.height/n.frameHeight;n.frameCount=e,o(t)})}):n.frameCount=1};var he,ne=c,e=(he=function(t,e){return(he=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&amp;&amp;(t[o]=e[o])}))(t,e)},function(t,e){if("function"!=typeof e&amp;&amp;null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}he(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),pe=function(t,a,s,c){return new(s=s||Promise)(function(o,e){function n(t){try{i(c.next(t))}catch(t){e(t)}}function r(t){try{i(c.throw(t))}catch(t){e(t)}}function i(t){var e;t.done?o(t.value):((e=t.value)instanceof s?e:new s(function(t){t(e)})).then(n,r)}i((c=c.apply(t,a||[])).next())})},fe=function(n,r){var i,a,s,c={label:0,sent:function(){if(1&amp;s[0])throw s[1];return s[1]},trys:[],ops:[]},l={next:t(0),throw:t(1),return:t(2)};return"function"==typeof Symbol&amp;&amp;(l[Symbol.iterator]=function(){return this}),l;function t(o){return function(t){var e=[o,t];if(i)throw new TypeError("Generator is already executing.");for(;c=l&amp;&amp;e[l=0]?0:c;)try{if(i=1,a&amp;&amp;(s=2&amp;e[0]?a.return:e[0]?a.throw||((s=a.return)&amp;&amp;s.call(a),0):a.next)&amp;&amp;!(s=s.call(a,e[1])).done)return s;switch(a=0,(e=s?[2&amp;e[0],s.value]:e)[0]){case 0:case 1:s=e;break;case 4:return c.label++,{value:e[1],done:!1};case 5:c.label++,a=e[1],e=[0];continue;case 7:e=c.ops.pop(),c.trys.pop();continue;default:if(!(s=0&lt;(s=c.trys).length&amp;&amp;s[s.length-1])&amp;&amp;(6===e[0]||2===e[0])){c=0;continue}if(3===e[0]&amp;&amp;(!s||e[1]&gt;s[0]&amp;&amp;e[1]&lt;s[3]))c.label=e[1];else if(6===e[0]&amp;&amp;c.label&lt;s[1])c.label=s[1],s=e;else{if(!(s&amp;&amp;c.label&lt;s[2])){s[2]&amp;&amp;c.ops.pop(),c.trys.pop();continue}c.label=s[2],c.ops.push(e)}}e=r.call(n,c)}catch(t){e=[6,t],a=0}finally{i=s=0}if(5&amp;e[0])throw e[1];return{value:e[0]?e[1]:void 0,done:!0}}}},de={},me=new Promise(function(e){/edit=radar/.test(location.search)&amp;&amp;(new E.cc).load("//js.soufunimg.com/common_m/pc_public/kfpano/images/cur_bg.png",function(t){t.minFilter=E.S,t.magFilter=E.S;t=new E.ac({map:t}),t=new E.Zb(t);t.position.set(0,0,0),e(t)})});void(s=0)===s&amp;&amp;(s=0),g=document.createElement("canvas"),h=256,ye=190,g.setAttribute("width","512"),g.setAttribute("height","512"),M=new E.j(g),g=(d=g.getContext("2d")).createRadialGradient(h,h,150,h,h,0),b="rgba(255, 255, 255,",g.addColorStop(0,"".concat(b," 1)")),g.addColorStop(.15,"".concat(b," 1)")),g.addColorStop(.15,"".concat(b," .05)")),g.addColorStop(.4,"".concat(b," 0.0)")),g.addColorStop(1,"".concat(b," 0.0)")),s=s,d.clearRect(0,0,512,512),d.lineWidth=20,-1!==s&amp;&amp;(d.globalCompositeOperation="source-over",d.strokeStyle="".concat(b,"1)"),we(),d.globalCompositeOperation="source-in",d.beginPath(),d.arc(h,h,ye,0,2*Math.PI*s),d.strokeStyle="".concat(b,"1)"),d.stroke(),d.globalCompositeOperation="source-over",d.strokeStyle=b+(s?.5:1)+")",we()),d.beginPath(),d.arc(h,h,150,0,2*Math.PI),d.closePath(),d.fillStyle=g,d.fill(),d.fillStyle="".concat(b," .01)"),d.fillRect(0,0,512,512),M.needsUpdate=!0;var h,ye,d,ve,ge=M;function we(){var t=Math.PI/12,e=2*Math.PI/3;d.beginPath(),d.arc(h,h,ye,0*e,e-t),d.stroke(),d.beginPath(),d.arc(h,h,ye,e,2*e-t),d.stroke(),d.beginPath(),d.arc(h,h,ye,2*e,3*e-t),d.stroke()}function be(){0&lt;Object.keys(de).length&amp;&amp;(ge.rotation+=.01)}function m(t,e,o,n,r,i,a,s,c){var t=ve.call(this,"guide",t,e,o,n,r,i,a,s,c)||this,l=t;return u.b.isPc&amp;&amp;(l.on("hover",function(){l.DomElement&amp;&amp;(l.DomElement.style.cursor="pointer")}),l.on("unhover",function(){l.DomElement&amp;&amp;(l.DomElement.style.cursor="default")})),t}ge.center.set(.5,.5),requestAnimationFrame(function t(){requestAnimationFrame(t),be()}),e(m,ve=ne),m.unSelect=function(){var t=m.selectedSprite;t&amp;&amp;t.parent&amp;&amp;(t.userData.selectedGuide=null,t.parent.remove(t))},m.prototype.setDragable=function(t){this.dragable=t,this.enableClick=!t},m.prototype.createMeshs=function(){return pe(this,void 0,void 0,function(){var e,o,n;return fe(this,function(t){switch(t.label){case 0:return(e=this).position?(o=new E.C,[4,e.makeIconSprite()]):[2,[null]];case 1:return n=t.sent(),o.add(n),e.iconSprite=n,e.label&amp;&amp;(n=e.makeTextSprite(e.label),o.add(n),e.labelSprite=n),o.position.copy(e.position),n=1.2-Math.min(-.4/e.position.y,1),e.setIconScale(n),e.group=o,e.updateScale(),[2,[o]]}})})},m.prototype.loadStyle=function(o){return pe(this,void 0,void 0,function(){var e;return fe(this,function(t){switch(t.label){case 0:return[4,ve.prototype.loadStyle.call(this,o)];case 1:return t.sent(),(e=this).iconSprite.map=ge,e.setIconScale(),e.isSylteChanging=!1,[2]}})})},m.prototype.selected=function(){return pe(this,void 0,void 0,function(){var e;return fe(this,function(t){switch(t.label){case 0:return(e=m.selectedSprite)?[3,2]:[4,me];case 1:e=t.sent(),m.selectedSprite=e,t.label=2;case 2:return e.userData.selectedGuide=this,e.scale.copy(this.iconSprite.scale),this.group.add(e),[2]}})})},m.prototype.show=function(t){return ve.prototype.show.call(this,t=void 0===t?!0:t),de[this.objId]=this,Promise.resolve()},m.prototype.hide=function(){return delete de[this.objId],ve.prototype.hide.call(this)},m.prototype.setLabel=function(t){var e;this.label=t,this.labelSprite&amp;&amp;((e=this.labelSprite.material.map).image=this.makeTextImage(t),e.needsUpdate=!0)},m.prototype.setIconScale=function(t){void 0===t&amp;&amp;(t=1),this.iconSprite&amp;&amp;(this.iconSprite.scale.set(t,t,t),t=m.selectedSprite)&amp;&amp;t.userData.selectedGuide===this&amp;&amp;t.scale.copy(this.iconSprite.scale)},m.prototype.makeIconSprite=function(){return pe(this,void 0,void 0,function(){var e,o;return fe(this,function(t){return e=new E.eb({map:ge,side:E.x,transparent:!0}),this.materials.push(e),(o=new E.k(2)).rotateX(-Math.PI/2),(o=new E.db(o,e)).renderOrder=100,o.position.set(0,0,0),[2,o]})})},m.prototype.makeTextImage=function(t){var e,o,n="rgba(0,0, 0, 0.5)",r=document.createElement("canvas");return t&amp;&amp;((e=r.getContext("2d")).font="normal ".concat(50,"px ").concat("Arial"),o=e.measureText(t).width,e.fillStyle=n,e.strokeStyle=n,n=125-o/(e.lineWidth=2),this.roundRect(e,1+n,1,o+2+40,72,10),e.fillStyle="rgba(255,255, 255, 1)",e.fillText(t,1+n+20,52)),r},m.prototype.makeTextSprite=function(t){t=this.makeTextImage(t),t=new E.bc(t),t.anisotropy=1,t.minFilter=E.S,t.magFilter=E.S,t.needsUpdate=!0,t=new E.ac({map:t}),this.materials.push(t),t=new E.Zb(t);return t.scale.set(8,4,1),t.position.set(0,2,0),t},m.prototype.roundRect=function(t,e,o,n,r,i){t.beginPath(),t.moveTo(e+i,o),t.lineTo(e+n-i,o),t.quadraticCurveTo(e+n,o,e+n,o+i),t.lineTo(e+n,o+r-i),t.quadraticCurveTo(e+n,o+r,e+n-i,o+r),t.lineTo(e+i,o+r),t.quadraticCurveTo(e,o+r,e,o+r-i),t.lineTo(e,o+i),t.quadraticCurveTo(e,o,e+i,o),t.closePath(),t.fill(),t.stroke()};var xe,Se,Ee=m,y=t(2),s=(xe=function(t,e){return(xe=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&amp;&amp;(t[o]=e[o])}))(t,e)},function(t,e){if("function"!=typeof e&amp;&amp;null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}xe(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),Te=function(t,a,s,c){return new(s=s||Promise)(function(o,e){function n(t){try{i(c.next(t))}catch(t){e(t)}}function r(t){try{i(c.throw(t))}catch(t){e(t)}}function i(t){var e;t.done?o(t.value):((e=t.value)instanceof s?e:new s(function(t){t(e)})).then(n,r)}i((c=c.apply(t,a||[])).next())})},_e=function(n,r){var i,a,s,c={label:0,sent:function(){if(1&amp;s[0])throw s[1];return s[1]},trys:[],ops:[]},l={next:t(0),throw:t(1),return:t(2)};return"function"==typeof Symbol&amp;&amp;(l[Symbol.iterator]=function(){return this}),l;function t(o){return function(t){var e=[o,t];if(i)throw new TypeError("Generator is already executing.");for(;c=l&amp;&amp;e[l=0]?0:c;)try{if(i=1,a&amp;&amp;(s=2&amp;e[0]?a.return:e[0]?a.throw||((s=a.return)&amp;&amp;s.call(a),0):a.next)&amp;&amp;!(s=s.call(a,e[1])).done)return s;switch(a=0,(e=s?[2&amp;e[0],s.value]:e)[0]){case 0:case 1:s=e;break;case 4:return c.label++,{value:e[1],done:!1};case 5:c.label++,a=e[1],e=[0];continue;case 7:e=c.ops.pop(),c.trys.pop();continue;default:if(!(s=0&lt;(s=c.trys).length&amp;&amp;s[s.length-1])&amp;&amp;(6===e[0]||2===e[0])){c=0;continue}if(3===e[0]&amp;&amp;(!s||e[1]&gt;s[0]&amp;&amp;e[1]&lt;s[3]))c.label=e[1];else if(6===e[0]&amp;&amp;c.label&lt;s[1])c.label=s[1],s=e;else{if(!(s&amp;&amp;c.label&lt;s[2])){s[2]&amp;&amp;c.ops.pop(),c.trys.pop();continue}c.label=s[2],c.ops.push(e)}}e=r.call(n,c)}catch(t){e=[6,t],a=0}finally{i=s=0}if(5&amp;e[0])throw e[1];return{value:e[0]?e[1]:void 0,done:!0}}}},Pe=u.a.terminal,Me=u.a.pConfig,Re={};function v(t,e,o,n,r,i,a,s,c){t=Se.call(this,"vrhotspot",t,e,o,n,r,i,a,s,c)||this;return t.isShow=!1,t.jQuery=Me.jQuery,t}s(v,Se=ne),v.unSelect=function(){v.selectedHotspot&amp;&amp;v.selectedHotspot.unSelect()},Object.defineProperty(v.prototype,"position",{get:function(){return this._position},set:function(t){this._position=t;t=this.projectVector(this._position);this.htmlElement.css("transform","translate3d(".concat(t.x,"px, ").concat(t.y,"px, 0px)"))},enumerable:!1,configurable:!0}),v.prototype.createMeshs=function(){var t,e,o,n=this;return n._position?(t=this.makeIconSprite(),e=this.makeTextSprite(),n.htmlElement=n.jQuery('&lt;div class="info_fixed"&gt;&lt;div style="position: absolute;transform: translate(-50%, -50%);top: 50%;left: 50%;"&gt;&lt;/div&gt;&lt;/div&gt;'),n.htmlElement.children("div").append(e).append(t),o=n.projectVector(n._position),n.htmlElement.css("transform","translate3d(".concat(o.x,"px, ").concat(o.y,"px, 0px)")),null!=(o=n.House)&amp;&amp;o.vrHotspots.appendChild(n.htmlElement[0]),t.add(e).on("click",function(){n.emit("click")}).on("mousedown",function(){n.emit("mousedown")}).on("mouseup",function(){n.emit("mouseup")}),n.iconSprite=t,this.labelSprite=e,Promise.resolve([1])):Promise.resolve([0])},v.prototype.loadStyle=function(o){return Te(this,void 0,void 0,function(){var e;return _e(this,function(t){switch(t.label){case 0:return[4,Se.prototype.loadStyle.call(this,o)];case 1:return t.sent(),(e=this).makeIconSprite(),e.makeTextSprite(),[2]}})})},v.prototype.selected=function(){var o;return Te(this,void 0,void 0,function(){var e;return _e(this,function(t){return e=this,v.unSelect(),e.iconSprite.find(".icon").addClass("selectedBox"),null!=(o=e.labelSprite)&amp;&amp;o.addClass("selectedBox"),v.selectedHotspot=e,[2]})})},v.prototype.unSelect=function(){var t;this.iconSprite.find(".icon").removeClass("selectedBox"),null!=(t=this.labelSprite)&amp;&amp;t.removeClass("selectedBox")},Object.defineProperty(v.prototype,"parent",{set:function(t){this._parent=t,this.htmlElement||(this.createMeshs(),this.isShow=!1,this.htmlElement.hide(),this.bindEvent())},enumerable:!1,configurable:!0}),v.prototype.show=function(){return this._parent.isHidden||(Re[this.objId]=this).setVisible(),Promise.resolve()},v.prototype.hide=function(){return delete Re[this.objId],this.isShow=!1,this.htmlElement&amp;&amp;this.htmlElement.hide(),Promise.resolve()},v.prototype.setLabel=function(t){this.label=t,this.makeTextSprite()},v.prototype.setAct=function(t){this.act=t,this.makeTextSprite()},v.prototype.bindEvent=function(){var t=this;t.House.on("viewchange",function(){t.setVisible()})},v.prototype.setVisible=function(){var t,e=this;Re[e.objId]&amp;&amp;(e.checkView(e._position)?!0===e.isShow&amp;&amp;(e.isShow=!1,e.htmlElement.hide()):(!1===e.isShow&amp;&amp;(e.isShow=!0,e.htmlElement.show()),t=e.projectVector(e._position),e.htmlElement.css("transform","translate3d(".concat(t.x,"px, ").concat(t.y,"px, 0px)"))))},v.prototype.makeIconSprite=function(){var n=this,r=n.styleObj,t=60/r.frameWidth,i=n.iconSprite;return i?(i.show(),i.css({height:"".concat(t*r.frameHeight,"px")}),i.find(".icon").css({width:"".concat(r.frameWidth,"px"),height:"".concat(r.frameHeight,"px"),top:"-".concat(r.frameHeight*(1-t)/2+14,"px"),left:"-".concat(r.frameWidth*(1-t)/2,"px"),transform:"scale(".concat(t,")"),"background-image":"url(".concat(r.url,")")})):(t='&lt;div style="position: relative;width: 60px; height: '.concat(t*r.frameHeight,'px;margin: 0 auto; text-align: center;left: 0; top: 0;"&gt;\n            &lt;div class="icon" style="position: absolute;width: ').concat(r.frameWidth,"px; height: ").concat(r.frameHeight,"px;top: -").concat(r.frameHeight*(1-t)/2+14,"px; left: -").concat(r.frameWidth*(1-t)/2,"px;cursor:pointer;transform: scale(").concat(t,");background-image: url(").concat(r.url,'); background-repeat: no-repeat; background-position:0 0;"&gt;&lt;/div&gt;\n            &lt;/div&gt;'),i=n.jQuery(t)),r.imagePromise||r.url||i.hide(),null!=(t=r.imagePromise)&amp;&amp;t.then(function(t){var e,o=n.style;r.keyframes||(t="@keyframes ".concat(o," { 0%{ background-position-y: 0; } 100%{ background-position-y: -").concat(t.height,"px; } }"),r.keyframes=t,(e=document.createElement("style")).setAttribute("type","text/css"),e.innerHTML=t,document.head.appendChild(e)),i.find(".icon").css("animation","1s ".concat(o," infinite steps(").concat(r.frameCount,",end)"))}),i},v.prototype.makeTextSprite=function(){var e,o,t=this,n=t.label,r=t.jQuery,i=/edit=radar/.test(location.search),a=/^skin_zx_/.test(t.style),s=parseFloat(document.documentElement.style.fontSize),c=Pe.isPc?16:.375*s,i=(i&amp;&amp;(c+=2),"card"===t.act&amp;&amp;(n=Me.projname||"",c+=Pe.isPc?36:40),v.textDiv),l=(i||(i=r('&lt;div class="info_text" style="text-align: left;visibility: hidden;display: inline-flex;word-break: keep-all;top:0;left:0;"&gt;&lt;/div&gt;'),null!=(u=t.House)&amp;&amp;u.vrHotspots.appendChild(i[0]),v.textDiv=i),0&lt;n.length&amp;&amp;(i.text(n),c+=i.width()||0),a&amp;&amp;(c+=Pe.isPc?16:.3*s),t.labelSprite),u=(l=l||r('&lt;div class="info_addimg" style="width:'.concat(c,'px;margin: 0 auto; text-align: center;cursor:pointer;"&gt;&lt;p class="info_text" style="text-align: left;word-break: break-all"&gt;').concat(n,"&lt;/p&gt;&lt;/div&gt;"))).children(".info_text"),r=(u.removeClass().addClass("info_text"),a&amp;&amp;u.addClass(t.style),l.css({width:(i=c,Pe.isPc?"".concat(i,"px"):"".concat(Math.ceil(1e4*i/s)/1e4,"rem"))}),l.children("p"));return r.text(n),t.resetLoupanImg(l,r),0===n.length?l.hide():l.show(),Pe.aerial&amp;&amp;(e="rgba(0,0, 0, 0.5)","house"===t.act||"fangyuan"===t.act?(o={0:"rgba(170,170,170,1)",10:"rgba(244,85,73,1)",20:"rgba(245,145,73,1)"},Me.obj.fangyuan.getFangyuanList().then(function(t){Array.isArray(t)&amp;&amp;((t=t.find(function(t){return t&amp;&amp;t.dongname===n}))&amp;&amp;(e=o[t.salestatus]||e),l.css({"background-color":e}))}),v.legendBoxShow||(t.saleStatusBox().show(),v.legendBoxShow=!0)):l.css({"background-color":e})),l},v.prototype.resetLoupanImg=function(t,o){var n=this,t=t.children("img");t.length&amp;&amp;t.remove(),"card"===n.act&amp;&amp;Ot.b.syncHouseData.getInfoAsync().then(function(){var t=Me.houseData,e=t.photoUrl,t=t.titleimg,e='&lt;img src="'.concat(e?y.a.converDomain(e,"56x56"):t,'" alt=""&gt;');n.jQuery(e).insertBefore(o)})},v.prototype.saleStatusBox=function(){var t=this.jQuery('&lt;div class="legend_box"&gt;\n        &lt;p class="color_zs"&gt;&lt;i&gt;&lt;/i&gt;\u5728\u552e&lt;/p&gt;\n        &lt;p class="color_ds"&gt;&lt;i&gt;&lt;/i&gt;\u5f85\u552e&lt;/p&gt;\n        &lt;p class="color_sw"&gt;&lt;i&gt;&lt;/i&gt;\u552e\u5b8c&lt;/p&gt;\n    &lt;/div&gt;');return t.appendTo(".initial_con"),t},v.legendBoxShow=!1;var Oe,ke,Ce=v,je=t(28),g=(Oe=function(t,e){return(Oe=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&amp;&amp;(t[o]=e[o])}))(t,e)},function(t,e){if("function"!=typeof e&amp;&amp;null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}Oe(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),Le=function(t,a,s,c){return new(s=s||Promise)(function(o,e){function n(t){try{i(c.next(t))}catch(t){e(t)}}function r(t){try{i(c.throw(t))}catch(t){e(t)}}function i(t){var e;t.done?o(t.value):((e=t.value)instanceof s?e:new s(function(t){t(e)})).then(n,r)}i((c=c.apply(t,a||[])).next())})},De=function(n,r){var i,a,s,c={label:0,sent:function(){if(1&amp;s[0])throw s[1];return s[1]},trys:[],ops:[]},l={next:t(0),throw:t(1),return:t(2)};return"function"==typeof Symbol&amp;&amp;(l[Symbol.iterator]=function(){return this}),l;function t(o){return function(t){var e=[o,t];if(i)throw new TypeError("Generator is already executing.");for(;c=l&amp;&amp;e[l=0]?0:c;)try{if(i=1,a&amp;&amp;(s=2&amp;e[0]?a.return:e[0]?a.throw||((s=a.return)&amp;&amp;s.call(a),0):a.next)&amp;&amp;!(s=s.call(a,e[1])).done)return s;switch(a=0,(e=s?[2&amp;e[0],s.value]:e)[0]){case 0:case 1:s=e;break;case 4:return c.label++,{value:e[1],done:!1};case 5:c.label++,a=e[1],e=[0];continue;case 7:e=c.ops.pop(),c.trys.pop();continue;default:if(!(s=0&lt;(s=c.trys).length&amp;&amp;s[s.length-1])&amp;&amp;(6===e[0]||2===e[0])){c=0;continue}if(3===e[0]&amp;&amp;(!s||e[1]&gt;s[0]&amp;&amp;e[1]&lt;s[3]))c.label=e[1];else if(6===e[0]&amp;&amp;c.label&lt;s[1])c.label=s[1],s=e;else{if(!(s&amp;&amp;c.label&lt;s[2])){s[2]&amp;&amp;c.ops.pop(),c.trys.pop();continue}c.label=s[2],c.ops.push(e)}}e=r.call(n,c)}catch(t){e=[6,t],a=0}finally{i=s=0}if(5&amp;e[0])throw e[1];return{value:e[0]?e[1]:void 0,done:!0}}}},Ie=u.a.offsetAngle;function He(t,e,o,n,r,i,a){var s=ke.call(this,"line")||this;return s.name=t,s.labelName=e,s.labelText=o,s.direction=n,s.start=r,s.end=i,s.middle=a,console.log(s.labelName),s}g(He,ke=W),He.prototype.destory=function(){this.textCanvas&amp;&amp;(console.log("sdfsdf"),this.textCanvas.remove())},He.prototype.createMeshs=function(){return Le(this,void 0,void 0,function(){var e;return De(this,function(t){switch(t.label){case 0:return this.label=this.makeTextSprite(),[4,(e=this).makeLine()];case 1:return e.line=t.sent(),this.updateMeshs(),[2,[this.label,this.line]]}})})},He.prototype.updateData=function(t,e,o,n,r){this.label&amp;&amp;this.line&amp;&amp;(this.labelText=t,this.direction=e,this.start=o,this.end=n,this.middle=r,this.updateMeshs())},He.prototype.updateMeshs=function(){this.buildTextCanvas(),this.label.material.map.image=this.textCanvas;var t=T.a.athvToVector3(this.middle.Ath-this.House.curRoom.alignDeg-Ie,this.middle.Atv);this.label.position.copy((new E.ic).addVectors(this.House.curRoom.position,t)),this.direction===je.a.Horizontal?this.label.center=new E.hc(.5,.7):this.label.center=new E.hc(.3,.5),this.setLinePosition()},He.prototype.makeLine=function(){return Le(this,void 0,void 0,function(){var e,o;return De(this,function(t){return e=new E.O({color:16777215}),o=new E.h,[2,new E.Q(o,e)]})})},He.prototype.setLinePosition=function(){var t=new E.h,e=this.House.curRoom,o=(new E.ic).addVectors(e.position,T.a.athvToVector3(this.start.Ath-e.alignDeg-Ie,this.start.Atv)),e=(new E.ic).addVectors(e.position,T.a.athvToVector3(this.end.Ath-e.alignDeg-Ie,this.end.Atv));t.setFromPoints([o,e]),this.line.geometry=t},He.prototype.buildTextCanvas=function(){this.textCanvas&amp;&amp;this.textCanvas.remove();var t,e=0,o=0,n=0,r=0,i=0,a=0,s=0,c=.5,l=document.createElement("canvas"),u=l.getContext("2d");u&amp;&amp;(u.font="25px Arial",t=u.measureText(this.labelText).width,u.fillStyle="rgba("+i+","+a+","+s+","+c+")",u.strokeStyle="rgba("+e+","+o+","+n+","+r+")",i=125-t/(u.lineWidth=2),u.fillStyle="rgba(255,255, 255, 1.0)",u.fillText(this.labelText,1+i+20,27),this.textCanvas=l)},He.prototype.makeTextSprite=function(){this.buildTextCanvas();var t=new E.bc,t=(t.needsUpdate=!0,t.minFilter=E.S,t.magFilter=E.S,new E.ac({map:t})),t=(this.materials.push(t),new E.Zb(t));return t.scale.set(4,2,1),t};var Fe=He,Ae=function(t){this.id="",this.pos={x:0,y:0},this.cornerids=[],this.type="",this.area="",this.sceneId="",this.onStart=0,this.id=t.id||y.a.getGUID(),this.pos=t.pos,this.cornerids=t.cornerids,this.type=t.type,this.area=t.area,this.cameraHeight=t.cameraHeight,this.roomHeight=t.roomHeight,this.sceneId=t.sceneId},ze=function(t){var e="function"==typeof Symbol&amp;&amp;Symbol.iterator,o=e&amp;&amp;t[e],n=0;if(o)return o.call(t);if(t&amp;&amp;"number"==typeof t.length)return{next:function(){return{value:(t=t&amp;&amp;n&gt;=t.length?void 0:t)&amp;&amp;t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};function w(t,e,o){this.wallStarts=[],this.wallEnds=[],this.x=t,this.y=e,this.id=o||y.a.getGUID()}w.prototype.getX=function(){return this.x},w.prototype.getY=function(){return this.y},w.prototype.adjacentCorners=function(){var e,t,o,n,r=[];try{for(var i=ze(this.wallStarts),a=i.next();!a.done;a=i.next()){var s=a.value;r.push(s.getEnd())}}catch(t){e={error:t}}finally{try{a&amp;&amp;!a.done&amp;&amp;(t=i.return)&amp;&amp;t.call(i)}finally{if(e)throw e.error}}try{for(var c=ze(this.wallEnds),l=c.next();!l.done;l=c.next()){s=l.value;r.push(s.getStart())}}catch(t){o={error:t}}finally{try{l&amp;&amp;!l.done&amp;&amp;(n=c.return)&amp;&amp;n.call(c)}finally{if(o)throw o.error}}return r},w.prototype.isWallConnected=function(t){var e,o,n,r;try{for(var i=ze(this.wallStarts),a=i.next();!a.done;a=i.next())if(a.value===t)return!0}catch(t){e={error:t}}finally{try{a&amp;&amp;!a.done&amp;&amp;(o=i.return)&amp;&amp;o.call(i)}finally{if(e)throw e.error}}try{for(var s=ze(this.wallEnds),c=s.next();!c.done;c=s.next())if(c.value===t)return!0}catch(t){n={error:t}}finally{try{c&amp;&amp;!c.done&amp;&amp;(r=s.return)&amp;&amp;r.call(s)}finally{if(n)throw n.error}}return!1},w.prototype.distanceFrom=function(t,e){return y.a.distance(t,e,this.x,this.y)},w.prototype.distanceFromCorner=function(t){return this.distanceFrom(t.x,t.y)},w.prototype.attachStart=function(t){this.wallStarts.push(t)},w.prototype.attachEnd=function(t){this.wallEnds.push(t)},w.prototype.wallTo=function(t){var e,o;try{for(var n=ze(this.wallStarts),r=n.next();!r.done;r=n.next()){var i=r.value;if(i.getEnd()===t)return i}}catch(t){e={error:t}}finally{try{r&amp;&amp;!r.done&amp;&amp;(o=n.return)&amp;&amp;o.call(n)}finally{if(e)throw e.error}}return null},w.prototype.wallFrom=function(t){var e,o;try{for(var n=ze(this.wallEnds),r=n.next();!r.done;r=n.next()){var i=r.value;if(i.getStart()===t)return i}}catch(t){e={error:t}}finally{try{r&amp;&amp;!r.done&amp;&amp;(o=n.return)&amp;&amp;o.call(n)}finally{if(e)throw e.error}}return null},w.prototype.wallToOrFrom=function(t){return this.wallTo(t)||this.wallFrom(t)},w.prototype.getWallStarts=function(){return this.wallStarts},w.prototype.getWallEnds=function(){return this.wallEnds};var Ve,We,Ue=w,b=(Ve=function(t,e){return(Ve=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&amp;&amp;(t[o]=e[o])}))(t,e)},function(t,e){if("function"!=typeof e&amp;&amp;null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}Ve(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),Ne=function(t,e){var o="function"==typeof Symbol&amp;&amp;t[Symbol.iterator];if(!o)return t;var n,r,i=o.call(t),a=[];try{for(;(void 0===e||0&lt;e--)&amp;&amp;!(n=i.next()).done;)a.push(n.value)}catch(t){r={error:t}}finally{try{n&amp;&amp;!n.done&amp;&amp;(o=i.return)&amp;&amp;o.call(i)}finally{if(r)throw r.error}}return a};function x(t,e,o){var n=We.call(this)||this;return n.interiorTransform=new E.cb,n.invInteriorTransform=new E.cb,n.exteriorTransform=new E.cb,n.invExteriorTransform=new E.cb,n.room=t,n.wall=e,n.front=o||!1,n.offset=e.thickness/2,n.height=e.height,n.front?n.wall.frontEdge=n:n.wall.backEdge=n,n}We=V.a,b(x,We),x.prototype.getTexture=function(){return this.front?this.wall.frontTexture:this.wall.backTexture},x.prototype.generatePlane=function(){function t(t){return new E.ic(t.x,0,t.y)}var e=t(this.interiorStart()),o=t(this.interiorEnd()),n=o.clone(),r=e.clone(),i=(r.y=n.y=this.wall.height,new E.h),a=[];[e,o,n,r].forEach(function(t){a.push(t.x,t.y,t.z)}),i.setAttribute("position",new E.z(a,3)),i.computeBoundingBox(),this.plane=new E.db(i,new E.eb),this.plane.visible=!1,(this.plane.userData.edge=this).computeTransforms(this.interiorTransform,this.invInteriorTransform,this.interiorStart(),this.interiorEnd()),this.computeTransforms(this.exteriorTransform,this.invExteriorTransform,this.exteriorStart(),this.exteriorEnd())},x.prototype.interiorDistance=function(){var t=this.interiorStart(),e=this.interiorEnd();return y.a.distanceCorners(t,e)},x.prototype.distanceTo=function(t,e){return y.a.pointDistanceFromLine(t,e,this.interiorStart().x,this.interiorStart().y,this.interiorEnd().x,this.interiorEnd().y)},x.prototype.interiorEnd=function(){var t=this.halfAngleVector(this,this.next),e=this.getEnd().x+t.x,t=this.getEnd().y+t.y;return this._interiorEnd={x:e,y:t},this._interiorEnd},x.prototype.interiorStart=function(){var t=this.halfAngleVector(this.prev,this),e=this.getStart().x+t.x,t=this.getStart().y+t.y;return this._interiorStart={x:e,y:t},this._interiorStart},x.prototype.interiorCenter=function(){return{x:(this.interiorStart().x+this.interiorEnd().x)/2,y:(this.interiorStart().y+this.interiorEnd().y)/2}},x.prototype.exteriorEnd=function(){var t;return this._exteriorEnd&amp;&amp;!isNaN(this._exteriorEnd.x)&amp;&amp;!isNaN(this._exteriorEnd.y)||(t=this.halfAngleExteriorVector(this.getEnd(),"next"),this._exteriorEnd={x:this.getEnd().x-t.x,y:this.getEnd().y-t.y}),this._exteriorEnd},x.prototype.exteriorStart=function(){var t;return this._exteriorStart&amp;&amp;!isNaN(this._exteriorStart.x)&amp;&amp;!isNaN(this._exteriorStart.y)||(t=this.halfAngleExteriorVector(this.getStart(),"prev"),this._exteriorStart={x:this.getStart().x-t.x,y:this.getStart().y-t.y}),this._exteriorStart},x.prototype.corners=function(){return[this.getStart(),this.interiorStart(),this.interiorEnd(),this.getEnd(),this.exteriorEnd(),this.exteriorStart()]},x.prototype.getRoom=function(){return this.room},x.prototype.getStart=function(){return this.front?this.wall.getStart():this.wall.getEnd()},x.prototype.getEnd=function(){return this.front?this.wall.getEnd():this.wall.getStart()},x.prototype.computeTransforms=function(t,e,o,n){var n=y.a.angle(1,0,n.x-o.x,n.y-o.y),r=new E.cb,o=(r.makeTranslation(-o.x,0,-o.y),new E.cb);o.makeRotationY(-n),t.multiplyMatrices(o,r),e.copy(t).invert()},x.prototype.halfAngleVector=function(t,e){var o,n,r,i,a,s,c=(t?(o=t.getStart().x,n=t.getStart().y,r=t.getEnd().x,t.getEnd()):(o=e.getStart().x-(e.getEnd().x-e.getStart().x),n=e.getStart().y-(e.getEnd().y-e.getStart().y),r=e.getStart().x,e.getStart())).y,e=e?(i=e.getStart().x,a=e.getStart().y,s=e.getEnd().x,e.getEnd().y):(i=t.getEnd().x,a=t.getEnd().y,s=t.getEnd().x+(t.getEnd().x-t.getStart().x),t.getEnd().y+(t.getEnd().y-t.getStart().y));return this.getVector(o,n,r,c,i,a,s,e)},x.prototype.getVector=function(t,e,o,n,r,i,a,s){t=y.a.angle2pi(t-o,e-n,a-o,s-n),e=Math.cos(t/2),o=Math.sin(t/2),n=a-r,t=s-i,a=n*e-t*o,r=n*o+t*e,s=y.a.distance(0,0,a,r),i=this.offset/o/s,n={x:a*i,y:r*i};return n.x=Math.round(1e11*n.x)/1e11,n.y=Math.round(1e11*n.y)/1e11,n},x.prototype.AngleBetween=function(t,e){var o=t.x*e.y-e.x*t.y,o=Math.atan2(o,t.x*e.x+t.y*e.y);return o&lt;0&amp;&amp;(o+=2*Math.PI),o},x.prototype.initVector=function(t,e){var o={x:e.getStart().x,y:e.getStart().y},n={x:e.getEnd().x,y:e.getEnd().y};return t===e.getEnd()&amp;&amp;(o=(t=Ne([n,o],2))[0],n=t[1]),{x:n.x-o.x,y:n.y-o.y}},x.prototype.halfAngleExteriorVector=function(l,t){var e=l.getWallEnds(),o=l.getWallStarts(),e=e.concat(o),n=this;function r(t,e){var o,n,r,i=t.getStart().x,a=t.getStart().y,s=t.getEnd().x,c=t.getEnd().y;return l===t.getStart()&amp;&amp;(i=(t=Ne([s,c,i,a],4))[0],a=t[1],s=t[2],c=t[3]),t=e.getStart().x,o=e.getStart().y,n=e.getEnd().x,r=e.getEnd().y,l===e.getEnd()&amp;&amp;(t=(e=Ne([n,r,t,o],4))[0],o=e[1],n=e[2],r=e[3]),[i,a,s,c,t,o,n,r]}var i,a,s,c=n.wall,u=null,h="next"===t?this.next&amp;&amp;this.next.wall:this.prev&amp;&amp;this.prev.wall;return 2&lt;e.length&amp;&amp;(i=[],a=n.initVector(l,c),s=[],c.frontEdge&amp;&amp;c.backEdge||(3===e.length?e.forEach(function(t){t!==c&amp;&amp;t!==h&amp;&amp;(u=t)}):(e.forEach(function(t){var e;t!==c&amp;&amp;(e=n.initVector(l,t),s.push(n.AngleBetween(a,e)),i.push(t))}),o=Math.min.apply(null,s),e=s.indexOf(o),(h=h||i[e])===i[e]&amp;&amp;(o=Math.max.apply(null,s),e=s.indexOf(o)),u=i[e]))),u?(o="next"===t?r(c,u):r(u,c),this.getVector.apply(this,o)):"next"===t?this.halfAngleVector(this,this.next):this.halfAngleVector(this.prev,this)};var Ge=x,Xe=u.a.imgpath;function S(t,e){this.interiorCorners=[],this._walls=[],this.nextRoomList=new Set,this.isHaveDoor=!1,this.defaultRoomTexture={url:Xe+"rooms/textures/hardwood.png",scale:400},this.defaultTexture={url:"https://js.soufunimg.com/mp/resources/vr_model/2019-04-10/b48c4aa2a91c4907aaf7b06217719c10.jpg",stretch:!1,scale:200},this.floorplan=t,this.corners=e,this.updateWalls(),this.updateInteriorCorners(),this.generatePlane()}Object.defineProperty(S.prototype,"walls",{get:function(){var t=this.edgePointer;for(this._walls.length=0;;){if(this._walls.push(t.wall),t.next===this.edgePointer)break;t=t.next}return this._walls},set:function(t){this._walls=t},enumerable:!1,configurable:!0}),S.prototype.getTexture=function(){var t=this.getUuid(),t=this.floorplan.getFloorTexture(t);return!0===/\u53a8|\u536b/.test(this.getLabel().type)?t&amp;&amp;!0!==/textures\/hardwood\.png/.test(t.url)||(t=this.defaultTexture):t=t||this.defaultRoomTexture,t},S.prototype.setLabel=function(t){this._label=t},S.prototype.getLabel=function(){return this._label},Object.defineProperty(S.prototype,"label",{get:function(){return this._label},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"firtEdge",{get:function(){return this.edgePointer},enumerable:!1,configurable:!0}),S.prototype.getUuid=function(){return y.a.map(this.corners,function(t){return t.id}).join()},S.prototype.generatePlane=function(){var e=[],t=(this.interiorCorners.forEach(function(t){e.push(new E.hc(t.x,t.y))}),new E.Rb(e)),t=new E.Sb(t);this.floorPlane=new E.db(t,new E.eb({side:E.x})),this.floorPlane.visible=!1,this.floorPlane.rotation.set(Math.PI/2,0,0),this.floorPlane.userData.room=this},S.prototype.updateInteriorCorners=function(){for(var t=this.edgePointer;this.interiorCorners.push(t.interiorStart()),t.generatePlane(),t.next!==this.edgePointer;)t=t.next},S.prototype.updateWalls=function(){for(var t,e,o,n=this.corners.length,r=0;r&lt;n;r++){var i=this.corners[r],a=this.corners[(r+1)%n],s=i.wallTo(a),i=i.wallFrom(a);s?o=new Ge(this,s,!0):i?o=new Ge(this,i,!1):console.log("corners arent connected by a wall, uh oh"),0===r?e=o:o&amp;&amp;((o.prev=t).next=o,r+1===this.corners.length)&amp;&amp;((e.prev=o).next=e),t=o}this.edgePointer=e};var Be=S,Ye=u.a.wallHeight,qe=u.a.wallThickness,Qe={url:u.a.imgpath+"rooms/textures/wallmap.png",stretch:!0,scale:1};function P(t,e,o,n){void 0===o&amp;&amp;(o=!1),void 0===n&amp;&amp;(n=!1),this.virtual=!1,this.dotted=!1,this.frontEdge=null,this.backEdge=null,this.orphan=!1,this.items=[],this.start=t,this.end=e,this.virtual=o,this.dotted=n,this.id=this.getUuid(),this.start.attachStart(this),this.end.attachEnd(this),this.frontTexture=Qe,this.backTexture=Qe}Object.defineProperty(P.prototype,"thickness",{get:function(){return qe},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"height",{get:function(){return Ye},enumerable:!1,configurable:!0}),P.prototype.resetFrontBack=function(){this.frontEdge=null,this.backEdge=null,this.orphan=!1},P.prototype.fireRedraw=function(){this.frontEdge&amp;&amp;this.frontEdge.emit("redraw"),this.backEdge&amp;&amp;this.backEdge.emit("redraw")},P.prototype.getId=function(){return this.id},P.prototype.getStart=function(){return this.start},P.prototype.getEnd=function(){return this.end},P.prototype.getStartX=function(){return this.start.getX()},P.prototype.getEndX=function(){return this.end.getX()},P.prototype.getStartY=function(){return this.start.getY()},P.prototype.getEndY=function(){return this.end.getY()},P.prototype.remove=function(){},P.prototype.getRooms=function(){var t,e=[];return this.frontEdge&amp;&amp;(t=this.frontEdge.getRoom())&amp;&amp;e.push(t),this.backEdge&amp;&amp;(t=this.backEdge.getRoom())&amp;&amp;e.push(t),e},P.prototype.getRoomIds=function(){var e=[];return this.getRooms().forEach(function(t){e.push(t.getLabel().id)}),e},P.prototype.length=function(){return y.a.distance(this.start.x,this.start.y,this.end.x,this.end.y)},P.prototype.getUuid=function(){return[this.start.id,this.end.id].join()};var Ze,$e,Ke=P,M=(Ze=function(t,e){return(Ze=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&amp;&amp;(t[o]=e[o])}))(t,e)},function(t,e){if("function"!=typeof e&amp;&amp;null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}Ze(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),Je=function(t){var e="function"==typeof Symbol&amp;&amp;Symbol.iterator,o=e&amp;&amp;t[e],n=0;if(o)return o.call(t);if(t&amp;&amp;"number"==typeof t.length)return{next:function(){return{value:(t=t&amp;&amp;n&gt;=t.length?void 0:t)&amp;&amp;t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},to=function(t,e){var o="function"==typeof Symbol&amp;&amp;t[Symbol.iterator];if(!o)return t;var n,r,i=o.call(t),a=[];try{for(;(void 0===e||0&lt;e--)&amp;&amp;!(n=i.next()).done;)a.push(n.value)}catch(t){r={error:t}}finally{try{n&amp;&amp;!n.done&amp;&amp;(o=i.return)&amp;&amp;o.call(i)}finally{if(r)throw r.error}}return a},eo=function(t,e,o){if(o||2===arguments.length)for(var n,r=0,i=e.length;r&lt;i;r++)!n&amp;&amp;r in e||((n=n||Array.prototype.slice.call(e,0,r))[r]=e[r]);return t.concat(n||Array.prototype.slice.call(e))},oo=u.a.imgpath,no=u.a.pConfig;function R(t){var e=$e.call(this)||this;return e.needGrid=!0,e.walls=[],e.corners=[],e._roomLabels=[],e.rooms=[],e.floorTextures={},e.roofTextures={},e.model=t,e}$e=V.a,M(R,$e),Object.defineProperty(R.prototype,"roomLabels",{get:function(){return this._roomLabels},enumerable:!1,configurable:!0}),R.prototype.destroy=function(){this.reset()},R.prototype.wallEdges=function(){var e=[];return this.walls.forEach(function(t){t.frontEdge&amp;&amp;e.push(t.frontEdge),t.backEdge&amp;&amp;e.push(t.backEdge)}),e},R.prototype.wallEdgePlanes=function(){var e=[];return this.walls.forEach(function(t){t.frontEdge&amp;&amp;e.push(t.frontEdge.plane),t.backEdge&amp;&amp;e.push(t.backEdge.plane)}),e},R.prototype.newWall=function(t,e,o,n,r){void 0===o&amp;&amp;(o=!0);t=new Ke(t,e,n=void 0===n?!1:n,r=void 0===r?!1:r);return this.walls.push(t),o&amp;&amp;this.update(),t},R.prototype.newCorner=function(t,e,o){t=new Ue(t,e,o);return this.corners.push(t),t},R.prototype.getWalls=function(){return this.walls},R.prototype.getCorners=function(){return this.corners},R.prototype.setCorners=function(t){this.corners=t},R.prototype.getRooms=function(){return this.rooms},R.prototype.updateRoom=function(t){this.rooms=t},R.prototype.overlappedCorner=function(t,e,o){var n,r;o=o||10;try{for(var i=Je(this.corners),a=i.next();!a.done;a=i.next()){var s=a.value;if(s.distanceFrom(t,e)&lt;o)return s}}catch(t){n={error:t}}finally{try{a&amp;&amp;!a.done&amp;&amp;(r=i.return)&amp;&amp;r.call(i)}finally{if(n)throw n.error}}return null},R.prototype.loadFloorplan=function(o){var e,t,a=this,n=(this.reset(),{});if(o&amp;&amp;"corners"in o&amp;&amp;"walls"in o){try{for(var r=Je(Object.keys(o.corners)),i=r.next();!i.done;i=r.next()){var s=i.value,c=o.corners[s];n[s]=this.newCorner(c.x,c.y,s)}}catch(t){e={error:t}}finally{try{i&amp;&amp;!i.done&amp;&amp;(t=r.return)&amp;&amp;t.call(r)}finally{if(e)throw e.error}}var l=this,u=no.vector.scenes,h=(o.roomLabels&amp;&amp;o.roomLabels.length&amp;&amp;o.roomLabels.forEach(function(t){var e,o;if(!t.type)try{for(var n=Je(u),r=n.next();!r.done;r=n.next()){var i=r.value;if(-1!==i.sceneid.indexOf(t.id)){t.type=i.name;break}}}catch(t){e={error:t}}finally{try{r&amp;&amp;!r.done&amp;&amp;(o=n.return)&amp;&amp;o.call(n)}finally{if(e)throw e.error}}a.roomLabels.push(new Ae(t))}),oo+"rooms/wall/");o.floorTextures&amp;&amp;Object.keys(o.floorTextures).forEach(function(t){var e=o.floorTextures[t];a.floorTextures[t]=y.a.removeHttp((/^http/.test(e)?"":h)+e)}),o.roofTextures&amp;&amp;Object.keys(o.roofTextures).forEach(function(t){var e=o.roofTextures[t];a.roofTextures[t]=y.a.removeHttp((/^http/.test(e)?"":h)+e)}),o.walls.forEach(function(t){var e;n[t.corner1]&amp;&amp;n[t.corner2]&amp;&amp;(e=l.newWall(n[t.corner1],n[t.corner2],!1,t.virtual,t.dotted),t.frontTexture&amp;&amp;t.frontTexture.url&amp;&amp;-1===t.frontTexture.url.indexOf("wallmap")&amp;&amp;(t.frontTexture.url=y.a.removeHttp(t.frontTexture.url),e.frontTexture=t.frontTexture),t.backTexture)&amp;&amp;t.backTexture.url&amp;&amp;-1===t.backTexture.url.indexOf("wallmap")&amp;&amp;(t.backTexture.url=y.a.removeHttp(t.backTexture.url),e.backTexture=t.backTexture)}),this.update()}},R.prototype.getFloorTexture=function(t){return t in this.floorTextures?this.floorTextures[t]:null},R.prototype.setFloorTexture=function(t,e,o,n){this.floorTextures[t]={url:e,scale:o,textureCategory:n}},R.prototype.getCenter=function(){return this.getDimensions(!0)},R.prototype.getSize=function(){return this.getDimensions(!1)},R.prototype.getDimensions=function(t){t=t||!1;var e,o,n,r,i,a=this.walls,s=[],a=(a.forEach(function(t){t=t.getId().split(",");s.push(t[0],t[1])}),this.corners.filter(function(t){return s.includes(t.id)}));return a.length?(e=[],o=[],a.forEach(function(t){e.push(t.x),o.push(t.y)}),a=Math.min.apply(Math,eo([],to(e),!1)),n=Math.max.apply(Math,eo([],to(e),!1)),r=Math.min.apply(Math,eo([],to(o),!1)),i=Math.max.apply(Math,eo([],to(o),!1)),t?new E.ic(.5*(a+n),0,.5*(r+i)):new E.ic(n-a,0,i-r)):new E.ic},R.prototype.findRooms=function(t){function m(t,e,o){return y.a.angle2pi(t.x-e.x,t.y-e.y,o.x-e.x,o.y-e.y)}function o(u,h){var p=[],f={corner:h,previousCorners:[u]},d={};for(d[u.id]=!0;f;){var t=(()=&gt;{var e,t,o=f.corner;if(d[o.id]=!0,f.corner===u&amp;&amp;o!==h)return{value:f.previousCorners};var n=[],r=f.corner.adjacentCorners();try{e=void 0;for(var i=Je(r),a=i.next();!a.done;a=i.next()){var s=a.value;s.id in d&amp;&amp;(s!==u||o===h)||n.push(s)}}catch(t){e={error:t}}finally{try{a&amp;&amp;!a.done&amp;&amp;(t=i.return)&amp;&amp;t.call(i)}finally{if(e)throw e.error}}var c,l=f.previousCorners.slice(0);l.push(o),1&lt;n.length&amp;&amp;(c=f.previousCorners[f.previousCorners.length-1],n.sort(function(t,e){return m(c,o,e)-m(c,o,t)})),0&lt;n.length&amp;&amp;n.forEach(function(t){p.push({corner:t,previousCorners:l})}),f=p.pop()})();if("object"==typeof t)return t.value}return[]}var n=[],t=(t.forEach(function(e){e.adjacentCorners().forEach(function(t){n.push(o(e,t))})}),(t=&gt;{function e(t){return t.id}var o,n,r=[],i={};if(2&lt;t.length)try{for(var a=Je(t),s=a.next();!s.done;s=a.next()){for(var c=s.value,l=!0,u="",h=0;h&lt;c.length;h++){var p=y.a.cycle(c,h),u=y.a.map(p,e).join("-");if(i.hasOwnProperty(u)){l=!1;break}}l&amp;&amp;(r.push(c),i[u]=!0)}}catch(t){o={error:t}}finally{try{s&amp;&amp;!s.done&amp;&amp;(n=a.return)&amp;&amp;n.call(a)}finally{if(o)throw o.error}}return r})(n));return y.a.removeIf(t,y.a.isClockwise)},R.prototype.floorPlanes=function(){return y.a.map(this.rooms,function(t){return t.floorPlane})},R.prototype.removeRoomlist=function(){this.rooms.forEach(function(t){t.nextRoomList.clear()})},R.prototype.getClosetoRoom=function(){var e=this,o=this;o.removeRoomlist(),o.model.scene.getItems().filter(function(t){return!0===t.addToWall}).forEach(function(t){o.getClosetoRooms(t)}),this.walls.filter(function(t){return t.virtual}).forEach(function(t){e.getClosetoRooms(null,t)})},R.prototype.update=function(){this.walls.forEach(function(t){t.resetFrontBack()});var t=this.findRooms(this.corners),r=(this.rooms=[],this),i=1,o=r.roomLabels&amp;&amp;r.roomLabels.length||0;t.forEach(function(t){for(var n=new Be(r,t),e=0;e&lt;o&amp;&amp;"break"!==(t=&gt;{var e=(t=r.roomLabels[t]).cornerids,o=e.join(",");if(n.corners.every(function(t){return-1&lt;o.indexOf(t.id)})&amp;&amp;e.length===n.corners.length)return t.id||(t.id="RL"+y.a.getGUID()+i),n.setLabel(t),"break"})(e);e++);n.getLabel()||(t={pos:{x:(t=y.a.getCentroid(n.corners)).x||0,y:t.y||0},text:"\u623f\u95f4".concat(i," ").concat("","\u33a1"),id:"RL"+y.a.getGUID()+i,cornerids:n.corners.map(function(t){return t.id}),type:"",area:""},t=new Ae(t),n.setLabel(t),r.roomLabels.push(t)),i++,r.rooms.push(n)}),this.assignOrphanEdges(),this.updateFloorTextures(),this.emit("updatedRooms"),Ot.b.publishReset.fire(r.rooms.length,Object.keys(this.floorTextures).length)},R.prototype.updateFloorTextures=function(){var o=this,n=y.a.map(this.rooms,function(t){return t.getUuid()}),r=y.a.map(this.rooms,function(t){return t.getLabel().id});Object.keys(this.floorTextures).forEach(function(t){var e=[];y.a.hasValue(0&lt;t.indexOf(",")?n:r,t,e)?n[e=e[0]]!==t&amp;&amp;(o.floorTextures[n[e]]=o.floorTextures[t],Reflect.deleteProperty(o.floorTextures,t)):Reflect.deleteProperty(o.floorTextures,t)})},R.prototype.reset=function(){this.walls.slice(0).forEach(function(t){t.remove()}),this.corners=[],this.walls=[],this._roomLabels=[]},R.prototype.assignOrphanEdges=function(){var e=[];this.walls.forEach(function(t){t.backEdge||t.frontEdge||(t.orphan=!0,new Ge(t.getRooms()[0],t,!1).generatePlane(),new Ge(t.getRooms()[0],t,!0).generatePlane(),e.push(t))})},R.prototype.getClosetoRooms=function(o,n){var r=[],i=(n=o?o.currentWallEdge.wall:n).getId().split(",");this.rooms.forEach(function(t){var e=[];t.corners.forEach(function(t){e.push(t.id)}),t.isHaveDoor=!1,e.includes(i[0])&amp;&amp;e.includes(i[1])&amp;&amp;(r.push({room:t,item:o,wall:n,type:o?0:1}),t.isHaveDoor=!0)}),this.rooms.forEach(function(e){if(!e.isHaveDoor)return e;var o;r.length&amp;&amp;(o=e.getLabel(),r.forEach(function(t){t.room.getLabel().id!==o.id&amp;&amp;e.nextRoomList.add(t)}))})};var ro,io,ao=R,e=(ro=function(t,e){return(ro=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&amp;&amp;(t[o]=e[o])}))(t,e)},function(t,e){if("function"!=typeof e&amp;&amp;null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}ro(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),so=u.a.terminal,co=u.a.pConfig;function O(){var t=io.call(this)||this;return t.floorplan=new ao(t),t}io=V.a,e(O,io),O.prototype.loadData=function(t){this.scene.clearItems(),this.floorplan.loadFloorplan(t.floorplan),this.loadItem(t.items),so.needHotspot&amp;&amp;this.exportCameraData(t.scenes)},O.prototype.destroy=function(){this.floorplan.destroy()},O.prototype.exportCameraData=function(t){var n=[],r={};return t.forEach(function(t){var e,o=t.sceneid,n=/^RL/.test(o)?19:16;o.length&gt;n&amp;&amp;(e=o.substring(n),/^[\d]+$/.test(e))&amp;&amp;e.length&lt;3&amp;&amp;(o=o.substring(0,n),t.sceneid=o),r[o]||(r[o]=[]),r[o].push(t)}),Object.keys(r).forEach(function(t){var o=1&lt;r[t].length?0:"";r[t].forEach(function(t){var e={item_type:1e3,model_url:"",model_mtl:"",xpos:t.pos.x,ypos:t.pos.y,zpos:t.pos.z,rotation:0,fixed:!0,scale_x:3,scale_y:3,scale_z:3,autoPush:!0,room_name:t.name,roomid:t.sceneid,item_name:"\u76f8\u673a_"+t.name+o,title:t.name+o,name:t.sceneid+o,room_area:0};t.sceneid=t.sceneid+o,n.push(e),"number"==typeof o&amp;&amp;o++})}),this.setCameraHotspot(n),n.forEach(function(t){co.vector.hotspots[t.name]=t.hotsports}),this.cameras=n},O.prototype.loadItem=function(t){var e=this;null!=t&amp;&amp;t.length&amp;&amp;t.forEach(function(t){7===t.item_type&amp;&amp;e.addItem(t)}),this.scene.setEntryDoor(this.floorplan.getRooms())},O.prototype.addItem=function(t){var e=new E.ic(t.xpos,t.ypos,t.zpos),o={itemName:t.item_name,itemType:Number(t.item_type)},n=new E.ic(1,1,1);this.scene.addItem(this.floorplan,t.item_type,o,e,t.rotation,n)},O.prototype.setCameraHotspot=function(t){var n=this,r={};return t.forEach(function(t){r[t.roomid]||(r[t.roomid]=[]),r[t.roomid].push(t)}),n.floorplan.getClosetoRoom(),n.floorplan.getRooms().forEach(function(t){var e,o=t.getLabel();r[o.id]&amp;&amp;(1&lt;(e=r[o.id]).length&amp;&amp;n.addHotspotsSameRoom(e),t.nextRoomList.forEach(function(t){t.item?n.addHotspotsByDoor(e,t,r):n.addHotspotsByVirtualWall(e,t,r)}))}),t},O.prototype.addHotspotsSameRoom=function(t){var o=this;t.forEach(function(e){t.forEach(function(t){t!==e&amp;&amp;o.makeHotsportData(e,t,1)})})},O.prototype.addHotspotsByDoor=function(t,e,o){var n,r,i,a=this,s=e.item,o=o[e.room.getLabel().id];s&amp;&amp;o&amp;&amp;o.length&amp;&amp;(n=1&lt;o.length?(e=s.position,r=e.x,i=e.z,o.map(function(t){return[y.a.distance(r,i,t.xpos,t.zpos),t]}).sort(function(t,e){return t[0]-e[0]})[0][1]):o[0],t.forEach(function(t){a.makeHotsportData(t,n,0)}))},O.prototype.addHotspotsByVirtualWall=function(t,e,o){var n=this,r=o[e.room.getLabel().id];r.length&amp;&amp;t.forEach(function(e){r.forEach(function(t){n.makeHotsportData(e,t,1)})})},O.prototype.makeHotsportData=function(t,e,o){void 0===o&amp;&amp;(o=0),t.hotsports||(t.hotsports=[]);e={linkedScene:e.name,name:"spot"+t.hotsports.length,xpos:e.xpos,ypos:e.ypos,zpos:e.zpos,type:o};t.hotsports.push(e)};var lo,uo,ho=O,s=(lo=function(t,e){return(lo=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&amp;&amp;(t[o]=e[o])}))(t,e)},function(t,e){if("function"!=typeof e&amp;&amp;null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}lo(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),po=function(t,a,s,c){return new(s=s||Promise)(function(o,e){function n(t){try{i(c.next(t))}catch(t){e(t)}}function r(t){try{i(c.throw(t))}catch(t){e(t)}}function i(t){var e;t.done?o(t.value):((e=t.value)instanceof s?e:new s(function(t){t(e)})).then(n,r)}i((c=c.apply(t,a||[])).next())})},fo=function(n,r){var i,a,s,c={label:0,sent:function(){if(1&amp;s[0])throw s[1];return s[1]},trys:[],ops:[]},l={next:t(0),throw:t(1),return:t(2)};return"function"==typeof Symbol&amp;&amp;(l[Symbol.iterator]=function(){return this}),l;function t(o){return function(t){var e=[o,t];if(i)throw new TypeError("Generator is already executing.");for(;c=l&amp;&amp;e[l=0]?0:c;)try{if(i=1,a&amp;&amp;(s=2&amp;e[0]?a.return:e[0]?a.throw||((s=a.return)&amp;&amp;s.call(a),0):a.next)&amp;&amp;!(s=s.call(a,e[1])).done)return s;switch(a=0,(e=s?[2&amp;e[0],s.value]:e)[0]){case 0:case 1:s=e;break;case 4:return c.label++,{value:e[1],done:!1};case 5:c.label++,a=e[1],e=[0];continue;case 7:e=c.ops.pop(),c.trys.pop();continue;default:if(!(s=0&lt;(s=c.trys).length&amp;&amp;s[s.length-1])&amp;&amp;(6===e[0]||2===e[0])){c=0;continue}if(3===e[0]&amp;&amp;(!s||e[1]&gt;s[0]&amp;&amp;e[1]&lt;s[3]))c.label=e[1];else if(6===e[0]&amp;&amp;c.label&lt;s[1])c.label=s[1],s=e;else{if(!(s&amp;&amp;c.label&lt;s[2])){s[2]&amp;&amp;c.ops.pop(),c.trys.pop();continue}c.label=s[2],c.ops.push(e)}}e=r.call(n,c)}catch(t){e=[6,t],a=0}finally{i=s=0}if(5&amp;e[0])throw e[1];return{value:e[0]?e[1]:void 0,done:!0}}}},mo=u.a.terminal,yo=u.a.wallHeight;function k(t,e){var o=uo.call(this,"edge")||this;return o.planes=[],o.wallColor=13421772,o.visible=!1,o.needDraw=!1,o.wall=e.wall,o.scene=t,o.edge=e,o.visible=!1,o}s(k,uo=W),Object.defineProperty(k.prototype,"parent",{set:function(t){this._parent=t,this.createMeshs(),this.bindEvent()},enumerable:!1,configurable:!0}),k.prototype.createMeshs=function(){return this.needDraw=!0,this.delayDraw(),Promise.resolve(1)},k.prototype.bindEvent=function(){var t=this;t.House.on("viewchange3d",function(){t.updateVisibility()}),t.edge.on("redraw",function(){t.needDraw=!0,t.delayDraw()})},k.prototype.delayDraw=function(){var t=this;setTimeout(function(){t.needDraw&amp;&amp;(t.needDraw=!1,t.reDraw())},10)},k.prototype.reDraw=function(){return po(this,void 0,void 0,function(){var e;return fo(this,function(t){switch(t.label){case 0:return[4,(e=this).updateTexture()];case 1:return t.sent(),e.updatePlanes(),e.addToScene(),[2]}})})},k.prototype.addToScene=function(){var e=this;mo.gltfModel||(e.planes.forEach(function(t){e.scene.add(t)}),e.updateVisibility())},k.prototype.updateVisibility=function(){var e=this,t=e.edge.interiorStart(),o=e.edge.interiorEnd(),n=o.x-t.x,r=o.y-t.y,r=new E.ic(-r,0,n),n=(r.normalize(),e.House.camera.position.clone()),t=new E.ic((t.x+o.x)/2,0,(t.y+o.y)/2),o=n.sub(t).normalize(),n=r.dot(o);e.visible=0&lt;=n,e.planes.forEach(function(t){t.visible=e.visible})},k.prototype.updateTexture=function(){return po(this,void 0,void 0,function(){var o,e,n,r;return fo(this,function(t){return e=(o=this).edge.getTexture(),n=e.url,(r=new E.cc).setCrossOrigin("*"),[2,new Promise(function(e){r.load(n,function(t){(o.texture=t).wrapT=t.wrapS=E.Ob,t.repeat.set(1,1),t.needsUpdate=!0,o.scene.needsUpdate=!0,e(!0)})})]})})},k.prototype.updatePlanes=function(){var t=new E.eb({color:this.wallColor,side:E.x,lightMapIntensity:1,refractionRatio:.98,map:this.texture});this.planes.push(this.makeWall(t))},k.prototype.makeWall=function(t){for(var e=this,o=e.edge,n=o.interiorStart(),r=o.interiorEnd(),i=o.interiorTransform,o=o.invInteriorTransform,n=e.toVec3(n),r=e.toVec3(r),a=r.clone(),s=n.clone(),n=(s.y=a.y=yo,[n.clone(),r.clone(),a.clone(),s.clone()]),r=(n.forEach(function(t){t.applyMatrix4(i)}),n.map(function(t){return new E.hc(t.x,t.y)})),c=new E.Rb(r),a=e.getDimensions(r),l=a.xMax-a.xMin,u=a.yMax-a.yMin,h=a.xMin,p=a.yMin,s=(e.wall.items.forEach(function(t){var e=t.position.clone(),t=(e.applyMatrix4(i),t.halfSize),o=t.clone().multiplyScalar(-1),t=t.clone(),e=(o.add(e),t.add(e),[new E.hc(o.x,o.y),new E.hc(t.x,o.y),new E.hc(t.x,t.y),new E.hc(o.x,t.y)]);c.holes.push(new E.qb(e))}),new E.Sb(c)),f=s.getAttribute("position").array,d=[],m=0;m&lt;f.length;m+=3)d.push((f[m]-h)/l,(f[m+1]-p)/u);s.setAttribute("uv",new E.g(new Float32Array(d),2)),s.applyMatrix4(o),s.computeVertexNormals();n=new E.db(s,t);return n.scale.set(1,1,1),n},k.prototype.toVec3=function(t,e){return new E.ic(t.x,e=e||0,t.y)},k.prototype.getDimensions=function(t){var e=[],o=[];return t.forEach(function(t){e.push(t.x),o.push(t.y)}),e.sort(function(t,e){return t-e}),o.sort(function(t,e){return t-e}),{xMin:e[0],xMax:e[e.length-1],yMin:o[0],yMax:o[o.length-1]}};var vo=k,go=u.a.terminal,wo=u.a.wallHeight;function bo(t,e){this.room=e,this.scene=t,this.floorPlane=this.buildFloor(),this.roofPlane=this.buildRoof(!1)}bo.prototype.redraw=function(){this.removeFromScene(),this.floorPlane=this.buildFloor(),this.addToScene()},bo.prototype.addToScene=function(){var t;go.gltfModel||((t=this.scene).add(this.floorPlane),t.add(this.roofPlane),t.add(this.room.floorPlane))},bo.prototype.removeFromScene=function(){var t=this.scene;t.remove(this.floorPlane),t.remove(this.roofPlane),t.remove(this.room.floorPlane)},bo.prototype.buildFloor=function(){for(var t=this.room.getTexture(),e=new E.cc,e=(e.setCrossOrigin("*"),e.load(t.url||t)),t=(e.wrapS=e.wrapT=E.Ob,e.repeat.set(1,1),e.anisotropy=16,new E.eb({map:e,side:E.c,color:13421772,lightMapIntensity:1,refractionRatio:.98})),o=[],e=this.getDimensions(this.room.interiorCorners),n=e.xMax-e.xMin,r=e.yMax-e.yMin,i=e.xMin,a=e.yMax,e=(this.room.interiorCorners.forEach(function(t){o.push(new E.hc(t.x,t.y))}),new E.Rb(o)),e=new E.Sb(e),s=e.getAttribute("position").array,c=[],l=0;l&lt;s.length;l+=3)c.push((s[l]-i)/n,-(s[l+1]-a)/r);e.setAttribute("uv",new E.g(new Float32Array(c),2));e=new E.db(e,t);return e.rotation.set(Math.PI/2,0,0),e.scale.set(1,1,1),e.position.y=.02,e},bo.prototype.getDimensions=function(t){var e=[],o=[];return t.forEach(function(t){e.push(t.x),o.push(t.y)}),e.sort(function(t,e){return t-e}),o.sort(function(t,e){return t-e}),{xMin:e[0],xMax:e[e.length-1],yMin:o[0],yMax:o[o.length-1]}},bo.prototype.buildRoof=function(t,e){void 0===t&amp;&amp;(t=!1),void 0===e&amp;&amp;(e=!1);var o=new E.fb({side:E.B,emissive:8816262,color:16777215}),n=[],r=(this.room[t?"corners":"interiorCorners"].forEach(function(t){n.push(new E.hc(t.x,t.y))}),new E.Rb(n)),r=new E.Sb(r),r=new E.db(r,o);return r.castShadow=!0,r.rotation.set(Math.PI/2,0,0),r.position.y=e?-.1:wo+(t?5:0),r};var xo,So,Eo=bo,ne=(xo=function(t,e){return(xo=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&amp;&amp;(t[o]=e[o])}))(t,e)},function(t,e){if("function"!=typeof e&amp;&amp;null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}xo(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),To=function(t,e){var o="function"==typeof Symbol&amp;&amp;t[Symbol.iterator];if(!o)return t;var n,r,i=o.call(t),a=[];try{for(;(void 0===e||0&lt;e--)&amp;&amp;!(n=i.next()).done;)a.push(n.value)}catch(t){r={error:t}}finally{try{n&amp;&amp;!n.done&amp;&amp;(o=i.return)&amp;&amp;o.call(i)}finally{if(r)throw r.error}}return a},_o=function(t,e,o){if(o||2===arguments.length)for(var n,r=0,i=e.length;r&lt;i;r++)!n&amp;&amp;r in e||((n=n||Array.prototype.slice.call(e,0,r))[r]=e[r]);return t.concat(n||Array.prototype.slice.call(e))},Po=u.a.terminal,Mo=u.a.pConfig,Ro=u.a.winSize,Oo={};function C(t,e,o){void 0===o&amp;&amp;(o="");var n=So.call(this,"threehotspot")||this,r=(n.isShow=!1,n.kind="",n.raycaster=new E.Mb,n);return n.jQuery=Mo.jQuery,n.scene=t,n.roomLabel=e,n.kind=o,r.init(),n}ne(C,So=W),C.prototype.init=function(){var t=this,e=t.roomLabel;t.position=new E.ic(e.pos.x,1,e.pos.y),"door"===t.kind&amp;&amp;(t.textColor="#ffa531"),console.log(t.textColor)},C.prototype.createMeshs=function(){var t,e,o=this;return o.position?(t=this.buildHotspot(),e=Po.isPc?"-180px":"-1.8rem",e='&lt;div class="info_fixed threehot"&gt;&lt;div style="position: absolute;transform: translate(-50%, '.concat(e,');"&gt;&lt;/div&gt;&lt;/div&gt;'),o.htmlElement=o.jQuery(e),o.htmlElement.children("div").append(t),e=o.projectVector(o.position),0===C.zIndexFactor&amp;&amp;(C.zIndexFactor=100/Math.abs(.5*-e.z+.5)|0),o.htmlElement.css({transform:"translate3d(".concat(e.x,"px, ").concat(e.y,"px, 0px)"),zIndex:(.5*-e.z+.5)*C.zIndexFactor|0}),o.House.vrHotspots.appendChild(o.htmlElement[0]),t.on("click",function(){o.emit("click",o.roomLabel)}).on("mousedown",function(){o.emit("mousedown")}).on("mouseup",function(){o.emit("mouseup")}),this.labelSprite=t,Promise.resolve(1)):Promise.resolve(0)},Object.defineProperty(C.prototype,"parent",{set:function(t){var e=this;e._parent=t,e.htmlElement||(e.createMeshs(),e.isShow=!1,e.htmlElement.hide(),e.bindEvent(),e.generatePlane())},enumerable:!1,configurable:!0}),C.prototype.show=function(){return(Oo[this.objId]=this).scene.add(this.plane),this.setVisible(),Promise.resolve()},C.prototype.hide=function(){var t=this;return delete Oo[t.objId],t.isShow=!1,t.Scene.remove(t.plane),null!=(t=t.htmlElement)&amp;&amp;t.hide(),Promise.resolve()},C.prototype.bindEvent=function(){var t=this,e=t.House,o=(Po.gltfModel&amp;&amp;e.on("viewchange3d",function(){t.isShow&amp;&amp;(t.isShow=!1,t.htmlElement.hide())}),Po.gltfModel?"rotate3d":"viewchange3d");e.on(o,function(){t.setVisible()})},C.prototype.setVisible=function(){var t,e=this;Oo[e.objId]&amp;&amp;(t=e.projectVector(e.position),e.isIntersect(t)?(e.isShow||(e.isShow=!0,e.htmlElement.show()),e.htmlElement.css({transform:"translate3d(".concat(t.x,"px, ").concat(t.y,"px, 0px)"),zIndex:(.5*-t.z+.5)*C.zIndexFactor|0})):e.isShow&amp;&amp;(e.isShow=!1,e.htmlElement.hide()))},C.prototype.buildHotspot=function(){var t=Mo.jQuery,e=this.roomLabel.type,o=this.labelSprite;return o?o.children("p").text(e):o=t('&lt;div class="info_addimg" style="margin: 0 auto; text-align: center;cursor:pointer;"&gt;&lt;p class="info_text" style="text-align: left;word-break: keep-all;"&gt;'.concat(e,"&lt;/p&gt;&lt;/div&gt;")),o.show(),o},C.prototype.generatePlane=function(){var t=this,e=new E.k(3,4);t.plane=new E.db(e,new E.eb({side:E.x})),t.meshs.push(t.plane),t.plane.position.copy(t.position),t.plane.visible=!1,t.plane.rotation.set(Math.PI/2,0,0),t.plane.userData.hotspot=t},C.prototype.isIntersect=function(t){var e=this,o=e.House,n=Ro.screenWidth/2,r=Ro.screenHeight/2,n=new E.hc(t.x/n-1,1-t.y/r),t=(e.raycaster.setFromCamera(n,o.camera),e.scene.getChildren()),n=(Po.gltfModel&amp;&amp;(t=[e.plane],r=e._parent.gltfScene.children,t.push.apply(t,_o([],To(r),!1))),e.raycaster.intersectObjects(t,!1));if(null!=n&amp;&amp;n.length){o=n.findIndex(function(t){return t.object===e.plane});if(0===o)return!0;if(0&lt;o)return n.slice(0,o).every(function(t){return!1===t.object.visible})}return!1},C.zIndexFactor=0;var ko,Co,jo=C,g=(ko=function(t,e){return(ko=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&amp;&amp;(t[o]=e[o])}))(t,e)},function(t,e){if("function"!=typeof e&amp;&amp;null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}ko(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)});function Lo(t,e,o){var n=Co.call(this)||this,r=(n.floors=[],n.edges=[],n.hotspots=[],n);return n.main=t,n.scene=e,n.floorplan=o,n.floors=[],n.edges=[],n.hotspots=[],o.on("updatedRooms",r.redraw,r),e.on("entrydoor",r.entryDoor,r),n}Co=V.a,g(Lo,Co),Lo.prototype.destroy=function(){var t=this;t.floors.forEach(function(t){t.removeFromScene()}),t.hotspots.forEach(function(t){t.hide()}),t.floors=[],t.edges=[],t.hotspots=[]},Lo.prototype.showHotspot=function(e){void 0===e&amp;&amp;(e=!0);var t=this.hotspots.map(function(t){return e?t.show():t.hide()});return Promise.all(t)},Lo.prototype.redraw=function(){var e=this;e.destroy(),e.floorplan.getRooms().forEach(function(t){t=new Eo(e.scene,t);e.floors.push(t),t.addToScene()}),e.floorplan.roomLabels.forEach(function(t){t.type&amp;&amp;"\u7a7a"!==t.type&amp;&amp;e.addHotspot(t)}),e.floorplan.wallEdges().forEach(function(t){t.wall.virtual||((t=new vo(e.scene,t)).parent=e.main,e.edges.push(t))})},Lo.prototype.entryDoor=function(t){var e=t.pos,t=new Ae({id:t.id,pos:{x:e.x,y:e.z},cornerids:[],type:"\u5165\u6237\u95e8",area:""});this.addHotspot(t,"door")},Lo.prototype.addHotspot=function(t,e){var o=this,t=new jo(o.scene,t,e=void 0===e?"":e);o.hotspots.push(t),t.parent=o.main,t.on("click",function(t){t=t.sceneId||t.id;Ot.b.setDirection.fire(),-1!==o.stores.currentSceneId.get().indexOf(t)?Ot.b.threeZoomOut.fire():Ot.b.startLoadPano.fire(t)})};var Do,Io,Ho=Lo,b=(Object.defineProperty(Fo.prototype,"positionSet",{get:function(){return this._positionSet},set:function(t){this._positionSet=t},enumerable:!1,configurable:!0}),Fo.prototype.resize=function(t,e,o){e/=this.getWidth(),t/=this.getHeight(),o/=this.getDepth();this.setScale(e,t,o)},Fo.prototype.setScale=function(t,e,o){t=new E.ic(t,e,o);this.halfSize.multiply(t),t.multiply(this.scale),this.scale.set(t.x,t.y,t.z),this.resized()},Fo.prototype.getHeight=function(){return 2*this.halfSize.y},Fo.prototype.getWidth=function(){return 2*this.halfSize.x},Fo.prototype.getDepth=function(){return 2*this.halfSize.z},Fo.prototype.getHalfSize=function(){return this.halfSize},Fo.prototype.initObject=function(){this.placeInRoom()},Fo);function Fo(t,e,o,n,r){this.position=new E.ic,this.rotation=new E.ic,this.scale=new E.ic,this.size=new E.ic,this.needChange=!1,this.obstructFloorMoves=!0,this._positionSet=!1,this.floorplan=t,this.metadata=e,this.scale=r,this.size=e.boundingBox,o&amp;&amp;(this.position.copy(o),this.positionSet=!0),this.halfSize=new E.ic(this.size.x/2,this.size.y/2,this.size.z/2),n&amp;&amp;(this.rotation.y=n),r&amp;&amp;this.setScale(r.x,r.y,r.z)}Do=function(t,e){return(Do=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&amp;&amp;(t[o]=e[o])}))(t,e)};var Ao=j,M=Io=b;if("function"!=typeof M&amp;&amp;null!==M)throw new TypeError("Class extends value "+String(M)+" is not a constructor or null");function zo(){this.constructor=Ao}function j(){var t=null!==Io&amp;&amp;Io.apply(this,arguments)||this;return t.boundToFloor=!1,t.addToWall=!1,t.refVec=new E.hc(0,1),t.wallOffsetScalar=0,t.sizeX=0,t.sizeY=0,t}Do(Ao,M),Ao.prototype=null===M?Object.create(M):(zo.prototype=M.prototype,new zo),j.prototype.closestWallEdge=function(){var t=this.floorplan.wallEdges(),r=this.position.x,i=this.position.z,a=Number.MAX_VALUE;return t.reduce(function(t,e,o){var n=t,o=(0===o&amp;&amp;(a=t.distanceTo(r,i)),e.distanceTo(r,i));return o&lt;a&amp;&amp;(a=o,n=e),n})},j.prototype.removed=function(){this.currentWallEdge&amp;&amp;this.addToWall&amp;&amp;(y.a.removeValue(this.currentWallEdge.wall.items,this),this.redrawWall())},j.prototype.getCurrentWallWidth=function(){var t,e,o,n,r;if(null!==this.currentWallEdge&amp;&amp;this.addToWall)return r=0,(n=this.currentWallEdge.wall)&amp;&amp;(t=n.getStartX(),e=n.getEndX(),o=n.getStartY(),n=n.getEndY(),r=Math.sqrt(Math.pow(t-e,2)+Math.pow(o-n,2))),r},j.prototype.getCurrentWallCenter=function(){var t,e,o,n,r;if(null!==this.currentWallEdge&amp;&amp;this.addToWall)return t={x:0,y:0},(r=this.currentWallEdge.wall)&amp;&amp;(e=r.getStartX(),o=r.getEndX(),n=r.getStartY(),r=r.getEndY(),t.x=(e+o)/2,t.y=(n+r)/2),t},j.prototype.resized=function(){this.boundToFloor&amp;&amp;(this.position.y=.5*this.size.y*this.scale.y+.001),this.updateSize(),this.redrawWall()},j.prototype.placeInRoom=function(){var t=this.closestWallEdge();t&amp;&amp;t.wall&amp;&amp;(this.changeWallEdge(t),this.updateSize(),this.boundMove(this.position),this.redrawWall())},j.prototype.changeWallEdge=function(t){this.currentWallEdge&amp;&amp;this.addToWall&amp;&amp;(y.a.removeValue(this.currentWallEdge.wall.items,this),this.redrawWall());var e=new E.hc,o=this.isFront(t),n=t.plane.geometry;n.computeVertexNormals();n=n.getAttribute("normal").array,e.x=n[0],e.y=n[2],n=y.a.angle(this.refVec.x,this.refVec.y,e.x,e.y);o&amp;&amp;5===this.metadata.itemType?this.rotation.y=n+Math.PI:this.rotation.y=n,this.currentWallEdge=t,this.addToWall&amp;&amp;(t.wall.items.push(this),this.redrawWall())},j.prototype.getWall=function(){return this.currentWallEdge.wall},j.prototype.getWallOffset=function(){return this.wallOffsetScalar},j.prototype.isFront=function(t){var e=t.front?t.wall.backEdge:t.wall.frontEdge,o=Number(null==(o=null==e?void 0:e.room)?void 0:o.label.area);if(isNaN(o))return!1;o&lt;0&amp;&amp;(o=-y.a.getRoomArea(e.room.corners)/1e4);e=Number(t.room.label.area);return(e=e&lt;0?-y.a.getRoomArea(t.room.corners)/1e4:e)-o},j.prototype.redrawWall=function(){this.addToWall&amp;&amp;this.currentWallEdge.wall.fireRedraw()},j.prototype.updateSize=function(){this.wallOffsetScalar=this.size.z*this.scale.z/2,this.sizeX=this.size.x*this.scale.x,this.sizeY=this.size.y*this.scale.y},j.prototype.boundMove=function(t){var e=this.currentWallEdge;t.applyMatrix4(e.interiorTransform),t.x&lt;this.sizeX/2+6?t.x=this.sizeX/2+6:t.x&gt;e.interiorDistance()-this.sizeX/2-6&amp;&amp;(t.x=e.interiorDistance()-this.sizeX/2-6),this.boundToFloor?t.y=this.sizeY/2+.001:t.y&lt;this.sizeY/2+6?t.y=this.sizeY/2+6:t.y&gt;e.height-this.sizeY/2-6&amp;&amp;(t.y=e.height-this.sizeY/2-6),t.z=this.getWallOffset(),t.applyMatrix4(e.invInteriorTransform)};var Vo,Wo,e=j;function Uo(t,e,o,n,r){t=Wo.call(this,t,e,o,n,r)||this;return t.boundToFloor=!0,t.addToWall=!0,t}Vo=function(t,e){return(Vo=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&amp;&amp;(t[o]=e[o])}))(t,e)};var No=Uo,s=Wo=e;if("function"!=typeof s&amp;&amp;null!==s)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");function Go(){this.constructor=No}Vo(No,s),No.prototype=null===s?Object.create(s):(Go.prototype=s.prototype,new Go);var Xo=Uo,Bo={2:e,5:Xo,7:Xo};function Yo(){}Yo.getClass=function(t){return Bo[t]};var qo,Qo,Zo=Yo,ne=(qo=function(t,e){return(qo=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&amp;&amp;(t[o]=e[o])}))(t,e)},function(t,e){if("function"!=typeof e&amp;&amp;null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}qo(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)});function L(t){var e=Qo.call(this)||this;return e.doorNum=0,e.needsUpdate=!1,e.items=[],e.mesh=t,e}Qo=V.a,ne(L,Qo),L.prototype.add=function(t){this.mesh.add(t)},L.prototype.remove=function(t){this.mesh.remove(t),y.a.removeValue(this.items,t)},L.prototype.getChildren=function(){return this.mesh.children},L.prototype.getItems=function(){return this.items},L.prototype.itemCount=function(){return this.items.length},L.prototype.clearItems=function(){var e=this;this.items.forEach(function(t){e.removeItem(t,!0)}),this.items=[]},L.prototype.removeItem=function(t,e){e=e||!1,"removeFromScene"in t&amp;&amp;t.removeFromScene(),e||y.a.removeValue(this.items,t)},L.prototype.addItem=function(t,e,o,n,r,i){5!==(e=e||1)&amp;&amp;7!==e||(e=5,o.boundingBox=new E.ic(97.1,221.58,7.62),e=new(Zo.getClass(e))(t,o,n,r,i),this.items.push(e),e.initObject())},L.prototype.setEntryDoor=function(t){var r=this,i=t.find(function(t){return/^\u5957\u5916\u7535\u68af\u95f4/.test(t.getLabel().type)});i?i.walls.find(function(n){return n.backEdge&amp;&amp;n.frontEdge&amp;&amp;!!n.items.find(function(t){var e,o;return t instanceof Xo&amp;&amp;(e=i.getLabel().id,o=n.getRoomIds().find(function(t){return t!==e})||e,r.emit("entrydoor",{id:o,pos:t.position}),!0)})}):this.items.find(function(t){if(t instanceof Xo){var e=t.getWall();if(!e.backEdge||!e.frontEdge)return e=e.getRoomIds(),r.emit("entrydoor",{id:e[0],pos:t.position}),!0}return!1})};var $o=L,Ko=t(77),g=t(76),b=t(68),Jo=t(74),tn=function(t,a,s,c){return new(s=s||Promise)(function(o,e){function n(t){try{i(c.next(t))}catch(t){e(t)}}function r(t){try{i(c.throw(t))}catch(t){e(t)}}function i(t){var e;t.done?o(t.value):((e=t.value)instanceof s?e:new s(function(t){t(e)})).then(n,r)}i((c=c.apply(t,a||[])).next())})},en=function(n,r){var i,a,s,c={label:0,sent:function(){if(1&amp;s[0])throw s[1];return s[1]},trys:[],ops:[]},l={next:t(0),throw:t(1),return:t(2)};return"function"==typeof Symbol&amp;&amp;(l[Symbol.iterator]=function(){return this}),l;function t(o){return function(t){var e=[o,t];if(i)throw new TypeError("Generator is already executing.");for(;c=l&amp;&amp;e[l=0]?0:c;)try{if(i=1,a&amp;&amp;(s=2&amp;e[0]?a.return:e[0]?a.throw||((s=a.return)&amp;&amp;s.call(a),0):a.next)&amp;&amp;!(s=s.call(a,e[1])).done)return s;switch(a=0,(e=s?[2&amp;e[0],s.value]:e)[0]){case 0:case 1:s=e;break;case 4:return c.label++,{value:e[1],done:!1};case 5:c.label++,a=e[1],e=[0];continue;case 7:e=c.ops.pop(),c.trys.pop();continue;default:if(!(s=0&lt;(s=c.trys).length&amp;&amp;s[s.length-1])&amp;&amp;(6===e[0]||2===e[0])){c=0;continue}if(3===e[0]&amp;&amp;(!s||e[1]&gt;s[0]&amp;&amp;e[1]&lt;s[3]))c.label=e[1];else if(6===e[0]&amp;&amp;c.label&lt;s[1])c.label=s[1],s=e;else{if(!(s&amp;&amp;c.label&lt;s[2])){s[2]&amp;&amp;c.ops.pop(),c.trys.pop();continue}c.label=s[2],c.ops.push(e)}}e=r.call(n,c)}catch(t){e=[6,t],a=0}finally{i=s=0}if(5&amp;e[0])throw e[1];return{value:e[0]?e[1]:void 0,done:!0}}}},on=(E.i.enabled=!0,new E.Y),M="https://img360.fang.com/three-158",nn=new b.a(on).setDecoderPath("".concat(M,"/js/libs/draco/gltf/")),rn=new g.a(on).setTranscoderPath("".concat(M,"/js/libs/basis/"));function an(t){this.renderer=t}an.prototype.load=function(i,a,s){return tn(this,void 0,void 0,function(){var o,n,r=this;return en(this,function(t){return o=[],n=E.X.extractUrlBase(i),[2,new Promise(function(e,t){on.setURLModifier(function(t){var e=a+decodeURI(t).replace(n,"").replace(/^(\.?\/)/,"");return s.has(e)?(e=s.get(e),e=URL.createObjectURL(e),o.push(e),e):t}),new Ko.a(on).setCrossOrigin("anonymous").setDRACOLoader(nn).setKTX2Loader(rn.detectSupport(r.renderer)).setMeshoptDecoder(Jo.a).load(i,function(t){o.forEach(URL.revokeObjectURL),e(t)},void 0,t)})]})})};var sn,cn,ln=an,s=(sn=function(t,e){return(sn=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&amp;&amp;(t[o]=e[o])}))(t,e)},function(t,e){if("function"!=typeof e&amp;&amp;null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}sn(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),un=function(t,a,s,c){return new(s=s||Promise)(function(o,e){function n(t){try{i(c.next(t))}catch(t){e(t)}}function r(t){try{i(c.throw(t))}catch(t){e(t)}}function i(t){var e;t.done?o(t.value):((e=t.value)instanceof s?e:new s(function(t){t(e)})).then(n,r)}i((c=c.apply(t,a||[])).next())})},hn=function(n,r){var i,a,s,c={label:0,sent:function(){if(1&amp;s[0])throw s[1];return s[1]},trys:[],ops:[]},l={next:t(0),throw:t(1),return:t(2)};return"function"==typeof Symbol&amp;&amp;(l[Symbol.iterator]=function(){return this}),l;function t(o){return function(t){var e=[o,t];if(i)throw new TypeError("Generator is already executing.");for(;c=l&amp;&amp;e[l=0]?0:c;)try{if(i=1,a&amp;&amp;(s=2&amp;e[0]?a.return:e[0]?a.throw||((s=a.return)&amp;&amp;s.call(a),0):a.next)&amp;&amp;!(s=s.call(a,e[1])).done)return s;switch(a=0,(e=s?[2&amp;e[0],s.value]:e)[0]){case 0:case 1:s=e;break;case 4:return c.label++,{value:e[1],done:!1};case 5:c.label++,a=e[1],e=[0];continue;case 7:e=c.ops.pop(),c.trys.pop();continue;default:if(!(s=0&lt;(s=c.trys).length&amp;&amp;s[s.length-1])&amp;&amp;(6===e[0]||2===e[0])){c=0;continue}if(3===e[0]&amp;&amp;(!s||e[1]&gt;s[0]&amp;&amp;e[1]&lt;s[3]))c.label=e[1];else if(6===e[0]&amp;&amp;c.label&lt;s[1])c.label=s[1],s=e;else{if(!(s&amp;&amp;c.label&lt;s[2])){s[2]&amp;&amp;c.ops.pop(),c.trys.pop();continue}c.label=s[2],c.ops.push(e)}}e=r.call(n,c)}catch(t){e=[6,t],a=0}finally{i=s=0}if(5&amp;e[0])throw e[1];return{value:e[0]?e[1]:void 0,done:!0}}}},pn=function(t,e){var o="function"==typeof Symbol&amp;&amp;t[Symbol.iterator];if(!o)return t;var n,r,i=o.call(t),a=[];try{for(;(void 0===e||0&lt;e--)&amp;&amp;!(n=i.next()).done;)a.push(n.value)}catch(t){r={error:t}}finally{try{n&amp;&amp;!n.done&amp;&amp;(o=i.return)&amp;&amp;o.call(i)}finally{if(r)throw r.error}}return a},fn=function(t,e,o){if(o||2===arguments.length)for(var n,r=0,i=e.length;r&lt;i;r++)!n&amp;&amp;r in e||((n=n||Array.prototype.slice.call(e,0,r))[r]=e[r]);return t.concat(n||Array.prototype.slice.call(e))},dn=u.a.pConfig,mn=u.a.terminal;function D(){var t=cn.call(this,"vrdesign")||this,e=(t.timer=0,t.lights=[],t.gltfModelLoaded=!1,t);return e.createMeshs(),t.scene=new $o(e.mesh),t.model=new ho,e.model.scene=e.scene,dn.model=e.model,t.floorplan=new Ho(e,e.scene,e.model.floorplan),e.init(),t}s(D,cn=W),D.prototype.init=function(){this.bindEvent()},D.prototype.loadData=function(){return un(this,void 0,void 0,function(){var e,o;return hn(this,function(t){switch(t.label){case 0:return(e=this,(o=dn.vector)&amp;&amp;o.floorplan)?(e.model.loadData(o),[4,e.loadModel()]):[3,2];case 1:t.sent(),this.mesh.position.set(0,0,0),t.label=2;case 2:return[2]}})})},D.prototype.loadModel=function(){return un(this,void 0,void 0,function(){var e;return hn(this,function(t){switch(t.label){case 0:return e=this,!mn.gltfModel||e.gltfModelLoaded?[3,2]:[4,e.addModel()];case 1:t.sent(),e.House.emit("needupdate"),t.label=2;case 2:return e.gltfModelLoaded=!0,[2,Promise.resolve()]}})})},D.prototype.destroy=function(){this.model.destroy(),this.gltfScene=null,this.mesh.clear()},D.prototype.showRoomLabel=function(o){return un(this,void 0,void 0,function(){var e;return hn(this,function(t){return e=this,clearTimeout(e.timer),e.timer=0,[2,new Promise(function(t){e.timer=window.setTimeout(function(){e.floorplan.showHotspot(o).then(function(){t(1)})},o?1e3:10)})]})})},Object.defineProperty(D.prototype,"center",{get:function(){return this._firstCenter},enumerable:!1,configurable:!0}),D.prototype.createMeshs=function(){return un(this,void 0,void 0,function(){var e;return hn(this,function(t){return e=new E.Qb,[2,[this.mesh=e]]})})},D.prototype.bindEvent=function(){var n=this,t=new E.a(16777215,3),e=new E.v(16777215,2);e.position.set(.5,0,.866),e.name="main_light",n.lights.push(t,e),n.stores.gtlfMode.onChange(function(t){var e=n.House.scene,o=n.gltfScene;1===t?(o&amp;&amp;(o.add.apply(o,fn([],pn(n.lights),!1)),e.add(o)),e.add(n.mesh)):2===t&amp;&amp;(o&amp;&amp;(o.remove.apply(o,fn([],pn(n.lights),!1)),e.remove(o)),e.remove(n.mesh))}),n.model.floorplan.on("updatedRooms",function(){n._center=n.model.floorplan.getCenter(),n._firstCenter?n._firstCenter.equals(n._center):n._firstCenter=n._center.clone(),n.size=n.model.floorplan.getSize()})},D.prototype.addModel=function(){return un(this,void 0,void 0,function(){var e,o,n;return hn(this,function(t){switch(t.label){case 0:return o=(e=this).House.webglRenderer,o=new ln(o),n=new Map,[4,o.load(dn.vector.modelurl,"",n)];case 1:return o=t.sent(),(n=o.scene||o.scenes[0]).children.forEach(function(t){var e,o;t&amp;&amp;t.material&amp;&amp;(e=(t=t.material).map,o=t.emissiveMap,e&amp;&amp;(e.colorSpace=E.Pb),o&amp;&amp;(o.colorSpace=E.Pb),e||o)&amp;&amp;(t.needsUpdate=!0)}),n.position.y=-15,[2,e.gltfScene=n]}})})};var yn,vn,gn=D,e=(yn=function(t,e){return(yn=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&amp;&amp;(t[o]=e[o])}))(t,e)},function(t,e){if("function"!=typeof e&amp;&amp;null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}yn(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),wn=function(t,a,s,c){return new(s=s||Promise)(function(o,e){function n(t){try{i(c.next(t))}catch(t){e(t)}}function r(t){try{i(c.throw(t))}catch(t){e(t)}}function i(t){var e;t.done?o(t.value):((e=t.value)instanceof s?e:new s(function(t){t(e)})).then(n,r)}i((c=c.apply(t,a||[])).next())})},bn=function(n,r){var i,a,s,c={label:0,sent:function(){if(1&amp;s[0])throw s[1];return s[1]},trys:[],ops:[]},l={next:t(0),throw:t(1),return:t(2)};return"function"==typeof Symbol&amp;&amp;(l[Symbol.iterator]=function(){return this}),l;function t(o){return function(t){var e=[o,t];if(i)throw new TypeError("Generator is already executing.");for(;c=l&amp;&amp;e[l=0]?0:c;)try{if(i=1,a&amp;&amp;(s=2&amp;e[0]?a.return:e[0]?a.throw||((s=a.return)&amp;&amp;s.call(a),0):a.next)&amp;&amp;!(s=s.call(a,e[1])).done)return s;switch(a=0,(e=s?[2&amp;e[0],s.value]:e)[0]){case 0:case 1:s=e;break;case 4:return c.label++,{value:e[1],done:!1};case 5:c.label++,a=e[1],e=[0];continue;case 7:e=c.ops.pop(),c.trys.pop();continue;default:if(!(s=0&lt;(s=c.trys).length&amp;&amp;s[s.length-1])&amp;&amp;(6===e[0]||2===e[0])){c=0;continue}if(3===e[0]&amp;&amp;(!s||e[1]&gt;s[0]&amp;&amp;e[1]&lt;s[3]))c.label=e[1];else if(6===e[0]&amp;&amp;c.label&lt;s[1])c.label=s[1],s=e;else{if(!(s&amp;&amp;c.label&lt;s[2])){s[2]&amp;&amp;c.ops.pop(),c.trys.pop();continue}c.label=s[2],c.ops.push(e)}}e=r.call(n,c)}catch(t){e=[6,t],a=0}finally{i=s=0}if(5&amp;e[0])throw e[1];return{value:e[0]?e[1]:void 0,done:!0}}}},xn=u.a.terminal,Sn=u.a.offsetAngle,ne=(vn=V.a,e(I,vn),I.prototype.init=function(e){var o=this,n=this,t=n.pConfig.vector,r=t.hotspots;n.hospotVisible=!(1===t.hideHotspot||1===(null==r?void 0:r.hideHotspot)),n.do(function(){n.house||n.loadHouse(e),n.threed||(n.threed=new gn);var t=o.getRooms();n.house.loadData(t,n.threed),n.threed.loadData()})},I.prototype.destory=function(){this.house.destory(),this.threed.destroy()},I.prototype.onPanoViewChanged=function(t){this.on("panoViewChanged",t)},I.prototype.onNewPanoLoaded=function(t){this.on("newPanoLoaded",t)},I.prototype.onBeforePanoRemoveed=function(t){this.on("beforePanoRemoveed",t)},I.prototype.onHotspotedit=function(t){this.on("fang_var_radar_hotspotedit",t)},I.prototype.onHotspotdrag=function(t){this.on("fang_vr_radar_hotspotdrag_recv",t)},I.prototype.onPanoSceneHotspotClicked=function(t){this.on("panoSceneHotspotClicked",t)},I.prototype.switchFloorScene=function(t){this.on("switchFloorScene",t)},I.prototype.emitHotspotClicked=function(t,e,o,n,r){this.emit("panoSceneHotspotClicked",t,e,o,n,r)},I.prototype.enterVR=function(){throw new Error("Method not implemented.")},I.prototype.onFangyuanShow=function(t){this.on("fangyuanShow",t)},I.prototype.onSwitchNextScene=function(t){this.on("switchNextScene",t)},I.prototype.addPoint=function(t,e,o,n,r){throw new Error("Method not implemented. ".concat(t," ").concat(e," ").concat(o," ").concat(n," ").concat(r))},I.prototype.updatePoint=function(t,e,o,n,r){throw new Error("Method not implemented. ".concat(t," ").concat(e," ").concat(o," ").concat(n," ").concat(r))},I.prototype.removePoint=function(t,e){throw new Error("Method not implemented. ".concat(t," ").concat(e))},I.prototype.setPointVisible=function(t,e){throw new Error("Method not implemented. ".concat(t," ").concat(e))},I.prototype.setLineVisible=function(e,o){var t=this;this.do(function(){t.house.curRoom.Lines.forEach(function(t){-1&lt;e.indexOf(t.name)&amp;&amp;(o?t.show():t.hide())})})},I.prototype.removeLine=function(e){var t=this.house.curRoom.Lines.find(function(t){return t.name===e});t&amp;&amp;(this.house.curRoom.removeChildren(t),t.destory())},I.prototype.addLine=function(e,o,n,r,i,a,s,c){var l=this;this.do(function(){var t=new Fe(e,o,r,i,a,s,c);l.house.curRoom.addChildren(t),n&amp;&amp;t.show()})},I.prototype.updateLine=function(e,t,o,n,r,i,a,s){var c=this;this.do(function(){var t=c.house.curRoom.Lines.find(function(t){return t.name===e});t&amp;&amp;(t.updateData(n,r,i,a,s),o?t.show():t.hide())}),console.log(t)},I.prototype.getCurrentView=function(){var t,e,o=this.house;return o&amp;&amp;o.controls?(t=(e=o.controls.spherical).theta,e=e.phi,{hlookat:T.a.thetaToAth(t)+o.curRoom.alignDeg+Sn,vlookat:T.a.phiToAtv(e),fov:o.controls.object.fov}):{hlookat:0,vlookat:0,fov:90}},I.prototype.setHotspotUserData=function(e,t,o){var n=this;this.do(function(){n.house.curRoom.Guides.find(function(t){return t.name===e}).tag[t]=o})},I.prototype.hotspotLoadStyle=function(e,t){var o=this;this.do(function(){o.house.curRoom.Guides.find(function(t){return t.name===e}).loadStyle(t)})},I.prototype.hotspotProp=function(e,o,n){var r=this;this.do(function(){var t=r.house.curRoom.Guides.find(function(t){return t.name===e||t.id===e});"label"===o?t.setLabel(n):"act"===o?t.setAct(n):Object.defineProperty(t,o,n)})},I.prototype.selectedHotSpot=function(e){var t=this;this.do(function(){t.house.curRoom.Guides.find(function(t){return t.name===e}).selected()})},I.prototype.cancelHotspotSelected=function(){Ee.unSelect(),Ce.unSelect()},I.prototype.setDragEvent=function(){var t=this;t.do(function(){t.house.curRoom.Guides.forEach(t.setGuideDragEvent.bind(t))})},I.prototype.setGuideDragEvent=function(o){var n=this,t=n.house,r=t.curRoom,i=t.container,a=t.camera,s=!1;function c(){s=!1,o.inDraging=!1}function l(t){var e;o.inDraging?(t=n.convertTo3DCoordinate(t.clientX,t.clientY),t=new E.ic(t.x,t.y+.5,t.z),o.position=t,e=(t=T.a.vector3ToAthv(t.clone().sub(a.position))).ath,n.emit("fang_vr_radar_hotspotdrag_recv",o.id,e+r.alignDeg+Sn,t.atv)):(i.removeEventListener("mousemove",l),i.removeEventListener("mouseup",c))}o.on("mousedown",function(){var t;o.dragable&amp;&amp;!0!==s&amp;&amp;(s=!0,o.inDraging=!0,t=!!n.supportsPassive&amp;&amp;{passive:!0},i.addEventListener("mousemove",l,t),i.addEventListener("mouseup",c,t))}),o.on("mouseup",function(){var t,e;o.dragable&amp;&amp;(s=!1,e=(t=T.a.vector3ToAthv(o.position.clone().sub(a.position))).ath,n.emit("fang_var_radar_hotspotedit",e+r.alignDeg+Sn,t.atv,o.id,o.name,o.style,o.link,o.label,o.act))})},I.prototype.setLookatTipVisible=function(t){var e=this;this.do(function(){t?e.$pickerImage.show():e.$pickerImage.hide()})},I.prototype.addLookatTip=function(t,e){var o=this;this.do(function(){o.$pickerImage=$("&lt;img style='position: absolute;top: 50%;left: 50%;transform: translate(-50%, -50%);z-index: 2;display: ".concat(t?"block":"none",";' src='").concat(e,"'&gt;&lt;/img&gt;")),o.$pickerImage.appendTo(o.house.container)})},I.prototype.setHotspotVisible=function(t){var e=this;this.hospotVisible=t,this.do(function(){t?e.house.curRoom.showGuides():e.house.curRoom.hideGuides()})},I.prototype.setGlobalVar=function(e,o){var n=this;n.do(function(){var t;"hotspoteditactive"===e&amp;&amp;(n.hospotDragable="true"===o,(t=null==(t=n.house)?void 0:t.curRoom)&amp;&amp;t.Guides.forEach(function(t){return t.setDragable(n.hospotDragable)}),n.pConfig.vector.hideHotspot=n.hospotDragable?0:1),n.vars[e]=o})},I.prototype.setAutorotate=function(t){var e=this;e.do(function(){e.house.controls.setAutorate(t)})},I.prototype.setAutoRotateInfo=function(t){void 0===t&amp;&amp;(t={});var e=this;e.do(function(){e.house.controls.setAutoRotateInfo(t)})},I.prototype.addHotspot=function(s,c){var l,t=this,u=(void 0===c&amp;&amp;(c=!1),this);if(-1!==s.name.indexOf("spot"))return l={guide:Ee,vrhotspot:Ce}[/edit=radar/i.test(location.search)||"skin_hotspotstyle_12"!==s.style||s.html?"vrhotspot":"guide"],u.do(function(){return wn(t,void 0,void 0,function(){var e,o,n,r,i,a=this;return bn(this,function(t){switch(t.label){case 0:return(i=u.house,e=i.curRoom,o=i.roomDic,n=i.camera,e)?(r=e.Guides.find(function(t){return t.id===s.linkedscene}))?[3,1]:(i=Number(s.ath)-e.alignDeg-Sn,i=T.a.athvToVector3(i,Number(s.atv)),(r=new l(s.name,e,o[s.linkedscene],"\u7a7a"!==s.html?s.html:"",s.style,i.add(e.position),s.link,s.linkedscene,s.act)).on("click",function(){return wn(a,void 0,void 0,function(){var e,o;return bn(this,function(t){return r.enableClick&amp;&amp;("house"===r.act||"fangyuan"===r.act?u.emit("fangyuanShow",r.label):"none"!==r.act&amp;&amp;"card"!==r.act&amp;&amp;("floor"===r.act?(console.log(r.id,r.link),u.emit("switchFloorScene",{floor:r.link,sceneId:r.id})):"link"===r.act?/^http[s]?:\/\/.*?/.test(r.link)&amp;&amp;(window.location.href=r.link):r.targetRoom&amp;&amp;(o=T.a.vector3ToAthv(r.position.clone().sub(n.position)),e=o.ath,o=o.atv,u.emit("panoSceneHotspotClicked",e,o,r.targetRoom.id,r.objId,s.style)))),[2]})})}),e.addChildren(r),[3,3]):[2];case 1:return r.label!==s.html&amp;&amp;r.setLabel(s.html),u.hospotVisible?[3,3]:[4,r.hide()];case 2:t.sent(),t.label=3;case 3:return u.hospotVisible?[4,r.show()]:[3,5];case 4:t.sent(),t.label=5;case 5:return c&amp;&amp;u.setGuideDragEvent(r),r.setDragable(u.hospotDragable),u.house.update(),c&amp;&amp;r.emit("mouseup"),[2]}})})}),u},I.prototype.removeHotspots=function(t){var e=this,o=e.house.curRoom;return e.do(function(){t.length?t.forEach(function(e){var t=o.Guides.find(function(t){return t.name===e});t&amp;&amp;t.hide()}):o.hideGuides(),e.house.update()}),e},I.prototype.removeHotspotsById=function(e){var o=this,n=o.house.curRoom;return o.do(function(){var t=n.Guides.find(function(t){return t.id===e});t&amp;&amp;t.hide(),o.house.update()}),o},I.prototype.loadScene=function(o){var t=this,n=this;n.do(function(){return wn(t,void 0,void 0,function(){var e;return bn(this,function(t){switch(t.label){case 0:return(null==(e=n.house.curRoom)?void 0:e.id)===o.name?[3,2]:(null!=e&amp;&amp;e.id&amp;&amp;n.emit("beforePanoRemoveed",e.id),[4,n.house.loadRoom(o.name)]);case 1:t.sent(),n.firstLoad&amp;&amp;n.pConfig.modelRoom&amp;&amp;(n.firstLoad=!1,n.do(function(){window.setTimeout(function(){oe.preRender(n.house.rooms,n.house)},2e3)})),t.label=2;case 2:return[2]}})})})},I.prototype.lookAt=function(a,s,c,l){void 0===l&amp;&amp;(l=!1);var u=this;return u.do(function(){var t,e,o,n,r,i;if(u.house&amp;&amp;u.house.curRoom)return n=u.getCurrentView(),t=u.noneOrDefault(a,n.hlookat)-(u.house.curRoom.alignDeg+Sn),e=u.noneOrDefault(s,n.vlookat),o=u.noneOrDefault(c,n.fov),n={h:n.hlookat-(u.house.curRoom.alignDeg+Sn),v:n.vlookat,f:n.fov},r={h:t,v:e,f:o},i=function(t){return Math.abs(t)&lt;.1},!l||i(n.h-r.h)&amp;&amp;i(n.v-r.v)&amp;&amp;i(n.f-r.f)?(u.house.controls.setLookAt(T.a.athToTheta(t),T.a.atvToPhi(e),o),Promise.resolve(1)):u.lookTo(n,r)})},I.prototype.lookTo=function(n,r){return wn(this,void 0,void 0,function(){var e,o;return bn(this,function(t){return e=this,o=y.a.clamp(r.h-n.h),r.h=n.h+o,[2,new Promise(function(t){new Z.a.Tween(n).to(r,1e3).easing(Z.a.Easing.Quartic.Out).onUpdate(function(){e.house.controls.setLookAt(T.a.athToTheta(n.h),T.a.atvToPhi(n.v),n.f)}).onComplete(function(){t(1)}).start()})]})})},I.prototype.noneOrDefault=function(t,e){t=Number(t);return isNaN(t)?e:t},I.prototype.getRooms=function(){var a=[],t=null!=(t=null==(t=this.pConfig.vector)?void 0:t.scenes)?t:[];return t.forEach(function(t){var e=(t.sceneid,t).path,o=(xn.isPc&amp;&amp;"zq"===xn.from&amp;&amp;(e=e.split("/low/").join("/high/")),xn.from?t.tile:"/pano_%s.jpg"),n=xn.from?"":"".concat(e,"/preview.jpg"),r=t.pos||{},i=r.x,r=r.z,i=new E.hc(void 0===i?0:i,void 0===r?0:r),r=new oe(t.sceneid,"qf"===xn.from?o:"".concat(e).concat(o),n,i,t.cameraHeight,t.onstart||0);t.sceneid,a.push(r)}),a},I.prototype.loadHouse=function(t){function e(t,e,o){r.curRoom&amp;&amp;(t=i(t),e=a(e),n.emit("panoViewChanged",t+r.curRoom.alignDeg+Sn,e,o))}var n=this,r=new Ft(n.domElement,t),i=T.a.thetaToAth,a=T.a.phiToAtv;r.on("viewchange",e),r.on("viewchange3d",e),r.on("roomLoaded",function(t){n.emit("newPanoLoaded",t.id)}),r.on("switchNextScene",function(){n.emit("switchNextScene")}),r.init(),n.house=r},I.prototype.do=function(n){var t=this,e=this.workPromise.then(function(){return wn(t,void 0,void 0,function(){var e,o;return bn(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,n()];case 1:return e=t.sent(),[3,3];case 2:return o=t.sent(),console.log(o),[3,3];case 3:return[2,Promise.resolve(e)]}})})});return this.workPromise=e},I.prototype.convertTo3DCoordinate=function(t,e){var o=this.house.webglRenderer.domElement,n=o.clientWidth,t=new E.ic(t/n*2-1,-e/o.clientHeight*2+1,.5),n=this.house.camera;return t.unproject(n),T.a.vectorFixRadiux(t.sub(n.position)),t.add(n.position),t},I);function I(t,e){var o=vn.call(this)||this,n=(o.workPromise=Promise.resolve(),o.vars={},o.hospotDragable=!1,o.hospotVisible=!0,o.firstLoad=!0,o);return n.domElement=document.getElementById(t.target),n.pConfig=e,o}F.default=ne},28:function(t,e,o){var n,r;(r=n=n||{})[r.Vertical=0]="Vertical",r[r.Horizontal=1]="Horizontal",e.a=n}}]);</pre></body></html>