if(!Object['hasOwnProperty']('values')){Object['values']=function(a){return Object['keys'](a)['map'](function(b){return a[b];});};}if(!String['prototype']['startsWith']){String['prototype']['startsWith']=function(a,b){b=b||0x0;return this['indexOf'](a,b)===b;};}TDV['EventDispatcher']=function(){this['_handlers']={};};TDV['EventDispatcher']['prototype']['bind']=function(a,b){if(!(a in this['_handlers']))this['_handlers'][a]=[];this['_handlers'][a]['push'](b);};TDV['EventDispatcher']['prototype']['unbind']=function(a,b){if(a in this['_handlers']){var c=this['_handlers'][a]['indexOf'](b);if(c!=-0x1)this['_handlers'][a]['splice'](c,0x1);}};TDV['EventDispatcher']['prototype']['createNewEvent']=function(a){if(typeof Event==='function')return new Event(a);var b=document['createEvent']('Event');b['initEvent'](a,!![],!![]);return b;};TDV['EventDispatcher']['prototype']['dispatchEvent']=function(a){if(a['type']in this['_handlers']){var b=this['_handlers'][a['type']];for(var c=0x0;c0x0)return;}if(d['sourceClassName']=='MediaAudio'||d['sourceClassName']=='Model3DCameraSequence'||this['_isInitialized'])return;this['_isInitialized']=!![];b['unbind']('preloadMediaShow',a,this,!![]);b['unbindOnObjectsOf']('PlayListItem','begin',a,this,!![]);b['unbind']('stateChange',a,this,!![]);if(this['_isPaused'])this['pause']();window['parent']['postMessage'](TDV['Tour']['EVENT_TOUR_LOADED'],'*');this['dispatchEvent'](this['createNewEvent'](TDV['Tour']['EVENT_TOUR_LOADED']));};this['_setup']();this['_settings']['set'](TDV['PlayerSettings']['SCRIPT_URL'],this['_currentScriptUrl']);var b=this['player']=TDV['PlayerAPI']['create'](this['_settings']);b['bindOnObject']('rootPlayer','start',c,this,!![]);window['addEventListener']('message',function(d){var f=d['data'];if(f=='pauseTour')f='pause';else if(f=='resumeTour')f='resume';else return;this[f]['apply'](this);}['bind'](this));function c(d){b['unbindOnObject']('rootPlayer','start',c,this,!![]);var f=d['data']['source'];f['get']('data')['tour']=this;var g=window['location']!==window['parent']['location']||window['frameElement']!==undefined;f['set']('fullscreenFallback',g?'out_of_frame':'none');var h=window['navigator']['language']||window['navigator']['userLanguage']||'en';var j=f['get']('data')['locales']||{};var k=f['get']('data')['defaultLocale']||h;var l=this['locManager']=new TDV['Tour']['LocaleManager'](f,j,k,this['_settings']['get'](TDV['PlayerSettings']['QUERY_STRING_PARAMETERS']));f['get']('data')['localeManager']=l;var m=function(){var x=f['get']('data');if(!('updateText'in x)){x['updateText']=function(B){var C=B[0x0]['split']('.');if(C['length']==0x2){var D=l['trans']['apply'](l,B);var E=B[0x1]||f;if(typeof E=='string'){var F=E['split']('.');E=f[F['shift']()];for(var G=0x0;G0x0&&z['get']('class')=='Model3D'){f['startMeasurement'](null,y[0x0]);}break;}}['bind'](this);this['_onBeforeUnload']=function(x){f['stopTextToSpeech']();};window['addEventListener']('hashchange',this['_onHashChange']);window['addEventListener']('beforeunload',this['_onBeforeUnload']);document['addEventListener']('keyup',this['_onKeyUp']);f['bind']('tourEnded',function(){this['dispatchEvent'](this['createNewEvent'](TDV['Tour']['EVENT_TOUR_ENDED']));},this,!![]);f['bind']('mute_changed',function(){if(this['get']('mute'))this['stopTextToSpeech']();},f,!![]);b['bind']('preloadMediaShow',a,this,!![]);b['bind']('stateChange',a,this,!![]);b['bindOnObjectsOf']('PlayListItem','begin',a,this,!![]);this['dispatchEvent'](this['createNewEvent'](TDV['Tour']['EVENT_TOUR_INITIALIZED']));}};TDV['Tour']['prototype']['pause']=function(){this['_isPaused']=!![];if(!this['_isInitialized'])return;var a=function(k){var l=k['source'];if(!this['_isPaused'])l['unbind']('stateChange',a,this);else if(l['get']('state')=='playing'){l['pause']();}};var b=this['player']['getByClassName']('PlayList');for(var c=0x0,d=b['length'];c0xb4)g-=0x168;}else{g=f['get']('yaw');h=f['get']('pitch');}var o=c['getPlayListWithItem'](a);if(o){var p=function(){c['setPanoramaCameraWithSpot'](o,a,g,h);};if(!this['_isInitialized']){var q=function(){a['unbind']('begin',q,this);p();};a['bind']('begin',q,this);}else{p();}}}}};TDV['Tour']['prototype']['setComponentsVisibilityByTags']=function(a,b,c){var d=this['_getRootPlayer']();if(d!==undefined){var e=d['getComponentsByTags'](a,c);for(var f=0x0,g=e['length'];f0x0;};TDV['Tour']['prototype']['_getOrientation']=function(){var a=this['_getRootPlayer']();if(a){return a['get']('orientation');}else if(this['_lockedOrientation']){return this['_lockedOrientation'];}else{return TDV['PlayerAPI']['getOrientation']();}};TDV['Tour']['prototype']['_getParams']=function(a){var b={};a['split']('&')['forEach'](function(c){var d=c['split']('=')[0x0],e=decodeURIComponent(c['split']('=')[0x1]);b[d['toLowerCase']()]=e;});return b;};TDV['Tour']['prototype']['_getRootPlayer']=function(){return this['player']!==undefined?this['player']['getById']('rootPlayer'):undefined;};TDV['Tour']['prototype']['_setup']=function(){if(!this['_orientation'])this['_orientation']=this['_getOrientation']();this['_device']=this['_getDevice']();this['_currentScriptUrl']=this['_getScriptUrl']();if(this['isMobile']()){var a=document['getElementById']('metaViewport');if(a){var b=this['_devicesUrl'][this['_device']];var c=0x1;if(typeof b=='object'&&this['_orientation']in b&&this['_orientation']==TDV['PlayerAPI']['ORIENTATION_LANDSCAPE']||this['_device']==TDV['Tour']['DEVICE_GENERAL']){c=a['getAttribute']('data-tdv-general-scale')||0.5;}var d=a['getAttribute']('content');d=d['replace'](/initial-scale=(\d+(\.\d+)?)/,function(e,f){return'initial-scale='+c;});a['setAttribute']('content',d);}}};TDV['Tour']['prototype']['_getScriptUrl']=function(){var a=this['_devicesUrl'][this['_device']];if(typeof a=='object'){if(this['_orientation']in a){a=a[this['_orientation']];}}return a;};TDV['Tour']['prototype']['_getDevice']=function(){var a=TDV['Tour']['DEVICE_GENERAL'];if(!this['_isRemoteSession']&&this['isMobile']()){if(this['isIPad']()&&TDV['Tour']['DEVICE_IPAD']in this['_devicesUrl'])a=TDV['Tour']['DEVICE_IPAD'];else if(TDV['Tour']['DEVICE_MOBILE']in this['_devicesUrl'])a=TDV['Tour']['DEVICE_MOBILE'];}return a;};TDV['Tour']['prototype']['_setMediaFromURL']=function(a,b){var c=this['_getRootPlayer']();var d=c['getActivePlayerWithViewer'](c['getMainViewer']());var e=d?c['getMediaFromPlayer'](d):undefined;var f;if('media'in a){var g=a['media'];var h=Number(g);f=isNaN(h)?this['setMediaByName'](g):this['setMediaByIndex'](h-0x1);}else if('media-index'in a){f=this['setMediaByIndex'](parseInt(a['media-index'])-0x1);}else if('media-name'in a){f=this['setMediaByName'](decodeURIComponent(a['media-name']));}if(f==undefined&&b!==undefined){f=this['setMediaByIndex'](0x0);}if(f!=undefined){var i=f['get']('player');var j=function(){if('trigger-overlay-name'in a){this['triggerOverlayByName'](f['get']('media'),a['trigger-overlay-name'],a['trigger-overlay-event']);}if('focus-overlay-name'in a){this['focusOverlayByName'](f,a['focus-overlay-name']);}else if('yaw'in a||'pitch'in a){var n=c['getPlayListWithItem'](f);if(n){switch(f['get']('class')){case'PanoramaPlayListItem':var o=parseFloat(a['yaw'])||undefined;var p=parseFloat(a['pitch'])||undefined;var q=parseFloat(a['fov'])||undefined;c['setPanoramaCameraWithSpot'](n,f,o,p,q);break;case'Model3DPlayListItem':var r=['yaw','pitch','x','y','z','distance'];var s={};for(var t=0x0;t0x0){h['set']('objects',i['concat'](j));}};if('hide-components-tags'in a||'hct'in a)d['call'](this,this['setComponentsVisibilityByTags'],a['hide-components-tags']||a['hct'],![]);if('show-components-tags'in a||'sct'in a)d['call'](this,this['setComponentsVisibilityByTags'],a['show-components-tags']||a['sct'],!![]);if('hide-overlays-tags'in a||'hot'in a)d['call'](this,this['setOverlaysVisibilityByTags'],a['hide-overlays-tags']||a['hot'],![]);if('show-overlays-tags'in a||'sot'in a)d['call'](this,this['setOverlaysVisibilityByTags'],a['show-overlays-tags']||a['sot'],!![]);if('hide-overlays-names'in a||'hon'in a)this['setOverlaysVisibilityByName'](decodeURIComponent(a['hide-overlays-names']||a['hon'])['split'](','),![]);if('show-overlays-names'in a||'son'in a)this['setOverlaysVisibilityByName'](decodeURIComponent(a['show-overlays-names']||a['son'])['split'](','),!![]);if('show-object-ids'in a||'sobjids'in a)this['setObjectsVisibilityByID'](decodeURIComponent(a['show-object-ids']||a['sobjids'])['split'](','),!![]);if('hide-object-ids'in a||'hobjids'in a)this['setObjectsVisibilityByID'](decodeURIComponent(a['hide-object-ids']||a['hobjids'])['split'](','),![]);if('variant'in a)this['setModel3DVariant'](decodeURIComponent(a['variant']));if('measures'in a)e['call'](this,decodeURIComponent(a['measures']['split'](';')));};TDV['Tour']['LocaleManager']=function(a,b,c,d){TDV['EventDispatcher']['call'](this);this['rootPlayer']=a;this['locales']={};this['defaultLocale']=c;this['queryParam']=d;this['currentLocaleMap']={};this['currentLocaleID']=undefined;for(var e in b){this['registerLocale'](e,b[e]);}};TDV['Tour']['LocaleManager']['EVENT_LOCALE_CHANGED']='localeChanged';TDV['Tour']['LocaleManager']['prototype']=new TDV['EventDispatcher']();TDV['Tour']['LocaleManager']['prototype']['registerLocale']=function(a,b){var c=[a,a['split']('-')[0x0]];for(var d=0x0;d0x2){var d=typeof arguments[0x2]=='object'?arguments[0x2]:undefined;var e=arguments;c=c['replace'](/\{\{([\w _\-\.]+)\}\}/g,function(f,g){if(b(g))g=e[parseInt(g)+0x1];else if(d!==undefined)g=d[g];if(typeof g=='string')g=this['currentLocaleMap'][g]||g;else if(typeof g=='function')g=g['call'](this['rootPlayer']);return g!==undefined?g:'';}['bind'](this));}return c;};TDV['Tour']['LocaleManager']['prototype']['_parsePropertiesContent']=function(a){a=a['replace'](/(^|\n)#[^\n]*/g,'');var b={};var c=a['split']('\x0a');for(var d=0x0,e=c['length'];d0x0;};TDV['Tour']['HistoryData']['prototype']['canForward']=function(){return this['pointer']>=0x0&&this['pointer']0x0&&v['length']>=x||f>0x0&&D['distance']>f||y&&a['testIntersection'](z,D['position']))return;var E=l['call'](this,D['panorama'],D['yaw']-q['get']('yaw'),D['pitch'],D['width'],D['height'],D['anchorX'],D['anchorY'],D['opacity'],D['transparentAreaActive'],D['image'],j&&!D['excludeSurfacePanorama']);var F=m['call'](this,D['panorama'],D['yaw']-q['get']('yaw'),D['backwardYaw'],D['floorDistance'],!D['excludeSurfacePanorama']);v['push'](E);var G=w['findIndex'](function(J){return J['get']('panorama')==D['panorama'];});if(G!=-0x1)w['splice'](G,0x1);w['push'](F);var H=E['get']('areas')[0x0];if(D['toolTip']){H['set']('toolTip',D['toolTip']);}H['bind']('click',k['bind'](this,t,D['panorama'],a,!![]),this);F['bind']('select',k['bind'](this,t,D['panorama'],a,!![]),this);var I=D['actions'];if(I){p['call'](this,E,I);if('click'in I)F['bind']('select',new Function('event',I['click']),this);}}['bind'](this));t['set']('overlays',(t['get']('overlays')||[])['concat'](v));t['set']('adjacentPanoramas',w);var A=!a['get']('surfaceSelectionEnabled')||!!r['excludeSurfaceSelectionModel'];var B;if(A){B=n['call'](this,q['get']('x'),q['get']('y'),q['get']('z'),r['width'],r['height'],r['anchorX']?r['anchorX']:0.5,r['anchorY']?r['anchorY']:0.5,r['opacity'],!!r['transparentAreaActive'],b['showOnlyHotspotsLineSight'],_getObject(this,r['image']));B['set']('id','sprite_'+q['get']('id'));B['set']('translationLineColor',r['translationLineColor']!=null?r['translationLineColor']:'#ffffff');B['set']('translationLineOpacity',r['translationLineOpacity']!=null?r['translationLineOpacity']:0x1);B['set']('translationLineVisible',r['translationLineVisible']!=null?r['translationLineVisible']:![]);B['set']('translationLineWidth',r['translationLineWidth']!=null?r['translationLineWidth']:0x1);B['set']('translationLength',r['translationLength']!=null?r['translationLength']:b['showOnlyHotspotsLineSight']&&(r['translationY']==null||r['translationY']==0x0)?r['height']/0x2:undefined);B['set']('translationX',r['translationX']!=null?r['translationX']:0x0);B['set']('translationY',r['translationY']!=null&&r['translationY']!=0x0?r['translationY']:b['showOnlyHotspotsLineSight']?0x1:0x0);B['set']('translationZ',r['translationZ']!=null?r['translationZ']:0x0);if(r['toolTip'])B['set']('toolTip',r['toolTip']);}else B=o['call'](this,q['get']('x'),q['get']('y'),q['get']('z'));r['object']=B;if(r['tags']!==undefined)B['get']('data')['tags']=r['tags'];if(r['enabled']!==undefined)B['set']('enabled',r['enabled']);B['get']('data')['location']=q;var C=r['actions'];if(C){p['call'](this,B,C);}B['bind']('click',k['bind'](this,a,t,a,![]),this);h['push'](B);}['bind'](this));a['set']('objects',(a['get']('objects')||[])['concat'](h));b['isInitialized']=!![];function k(q,r,s,t){var u=this['getPlayListsWithMedia'](q,!![])['filter'](function(B){return this['getMediaFromPlayer'](B['get']('items')[B['get']('selectedIndex')]['get']('player'))==q;}['bind'](this));if(u['length']==0x0)return;var v=this['getPlayListItemByMedia'](u[0x0],q);var w=v['get']('player')['get']('viewerArea');var x;this['getPlayListsWithMedia'](r)['forEach'](function(B){var C=this['getPlayListItemByMedia'](B,r);if(C['get']('player')['get']('viewerArea')==w){if(t&&v['get']('player')['get']('viewerArea')['get']('translationTransitionEnabled')){y();C['bind']('begin',A,this);}B['set']('selectedIndex',B['get']('items')['indexOf'](C));}}['bind'](this));function y(){x=s['get']('objects')['filter'](function(B){var C=B['get']('data');return C&&C['location']!==undefined;});x['forEach'](function(B){B['set']('enabled',![]);});}function z(){x['forEach'](function(B){B['set']('enabled',!![]);});}function A(B){B['source']['unbind']('begin',A,this);z();}}function l(q,r,s,t,u,v,w,x,y,z,A){var B=_createInstanceFromObj(this,{'class':'HotspotPanoramaOverlay','useHandCursor':!![],'enabledInSurfaceSelection':A,'areas':[{'class':'HotspotPanoramaOverlayArea','mapColor':y?'any':'image','displayTooltipInTouchScreens':c['displayTooltipInTouchScreens']}],'items':[{'class':'FlatHotspotPanoramaOverlayImage','yaw':r,'pitch':s,'width':t,'height':u,'offsetX':v*t,'offsetY':w*u,'opacity':x!==undefined?x:0x1}]});B['get']('items')[0x0]['set']('image',z);return B;}function m(q,r,s,t,u){return _createInstanceFromObj(this,{'class':'AdjacentPanorama','panorama':'this.'+q['get']('id'),'backwardYaw':s,'yaw':r,'distance':t,'enabledInSurfaceSelection':u});}function n(q,r,s,t,u,v,w,A,B,C,D){var E=_createInstanceFromObj(this,{'class':'SpriteModel3DObject','x':q,'y':r,'z':s,'anchorX':v,'anchorY':w,'depthTest':C,'transparentAreaActive':B,'hideBasedOnDistance':!![],'width':t,'height':u,'opacity':A!=undefined?A:0x1,'data':{}});E['set']('image',D);return E;}function o(q,r,s){return _createInstanceFromObj(this,{'class':'SurfaceReticleModel3DObject','x':q,'y':r,'z':s,'depthTest':![],'data':{}});}function p(q,r){Object['keys'](r)['forEach'](function(s){if(q['hasEvent'](s))q['bind'](s,new Function('event',r[s]),this);}['bind'](this));}}function _findLocationWithPanorama(a){var b=this['getByClassName']('Model3D');for(var c=0x0,d=b['length'];c0x0){var d=b[c];if(d['get']('viewerArea')!=a){b['splice'](c,0x1);}}return b;}function _createInstance(a,b,c){var d=a['createInstance'](b);if(c){d['set']('id',c);a[c]=d;}return d;}function _createInstanceFromObj(a,b){return c(b);function c(d,f){if(typeof d=='object'){if('class'in d){try{f=_createInstance(a,d['class'],d['id']);}catch(j){f=d;}}else{f=d;}}var g=function(k,l){if('set'in f)f['set'](k,l);else f[k]=l;};for(var h in d){var i=d[h];if(typeof i=='object'&&i!==null)g(h,c(i,f));else if(typeof i=='string'&&i['indexOf']('this.')==0x0)g(h,a[i['replace']('this.','')]);else g(h,i);}return f;}}TDV['Tour']['Script']=function(){};TDV['Tour']['Script']['assignObjRecursively']=function(a,b){for(var c in a){var d=a[c];if(typeof d=='object'&&d!==null)this['assignObjRecursively'](a[c],b[c]||(b[c]={}));else b[c]=d;}return b;};TDV['Tour']['Script']['autotriggerAtStart']=function(a,b,c){var d=function(e){b();if(c==!![])a['unbind']('change',d,this);};a['bind']('change',d,this);};TDV['Tour']['Script']['changeBackgroundWhilePlay']=function(a,b,c){var d=function(){e['unbind']('stop',d,this);if(c==g['get']('backgroundColor')&&j==g['get']('backgroundColorRatios')){g['set']('backgroundColor',h);g['set']('backgroundColorRatios',i);}};var e=a['get']('items')[b];var f=e['get']('player');var g=f['get']('viewerArea');var h=g['get']('backgroundColor');var i=g['get']('backgroundColorRatios');var j=[0x0];if(c!=h||j!=i){g['set']('backgroundColor',c);g['set']('backgroundColorRatios',j);e['bind']('stop',d,this);}};TDV['Tour']['Script']['changeOpacityWhilePlay']=function(a,b,c){var d=function(){e['unbind']('stop',d,this);if(h==g['get']('backgroundOpacity')){g['set']('opacity',h);}};var e=a['get']('items')[b];var f=e['get']('player');var g=f['get']('viewerArea');var h=g['get']('backgroundOpacity');if(c!=h){g['set']('backgroundOpacity',c);e['bind']('stop',d,this);}};TDV['Tour']['Script']['changePlayListWithSameSpot']=function(a,b){var c=a['get']('selectedIndex');if(c>=0x0&&b>=0x0&&c!=b){var d=a['get']('items')[c];var e=a['get']('items')[b];var f=d['get']('player');var g=e['get']('player');if((f['get']('class')=='PanoramaPlayer'||f['get']('class')=='Video360Player')&&(g['get']('class')=='PanoramaPlayer'||g['get']('class')=='Video360Player')){var h=this['clonePanoramaCamera'](e['get']('camera'));this['setCameraSameSpotAsMedia'](h,d['get']('media'));var i=h['get']('initialPosition');if(i['get']('yaw')==undefined||i['get']('pitch')==undefined||i['get']('hfov')==undefined)return;this['startPanoramaWithCamera'](e['get']('media'),h);}}};TDV['Tour']['Script']['clone']=function(a,b){var c=this['rootPlayer']['createInstance'](a['get']('class'));var d=a['get']('id');if(d){var e=d+'_'+Math['random']()['toString'](0x24)['substring'](0x2,0xf);c['set']('id',e);this[e]=c;}for(var f=0x0;f0x0){for(var r=0x0;r>0x10&0xff,n>>0x8&0xff,n&0xff],'finalRGB':[o>>0x10&0xff,o>>0x8&0xff,o&0xff]};g[i+k]=f;}else{j[k]=h?a['get'](k):a[k];if(k=='yaw'&&Math['abs'](l-j[k])>0xb4)j[k]=j[k]+(l>j[k]?0x168:-0x168);g[i+k]=f;}}f['set']('duration',(c||0x0)*0x3e8);f['set']('easing',d||'cubic_in_out');f['set']('animationDirection',e||'normal');f['bind']('end',function(){for(var p in j){if(g[i+p]==f)delete g[i+p];}this['disposeInstance'](f);},this);f['bind']('frame',function(){var p=f['getPosition']();for(var q in j){var s=j[q];if(g[i+q]!=f)continue;if(typeof s==='object'&&'color'in s){var t=Math['round'](s['initialRGB'][0x0]+(s['finalRGB'][0x0]-s['initialRGB'][0x0])*p);var u=Math['round'](s['initialRGB'][0x1]+(s['finalRGB'][0x1]-s['initialRGB'][0x1])*p);var w=Math['round'](s['initialRGB'][0x2]+(s['finalRGB'][0x2]-s['initialRGB'][0x2])*p);s='#'+((0x1<<0x18)+(t<<0x10)+(u<<0x8)+w)['toString'](0x10)['slice'](0x1);}else{s=s+(b[q]-s)*p;}if(h)a['set'](q,s);else a[q]=s;}},this);return f;};TDV['Tour']['Script']['executeFunctionWhenChange']=function(a,b,c,d){var e=undefined;var f=function(j){if(j['data']['previousSelectedIndex']==b){if(d)d['call'](this);if(c&&e)e['unbind']('end',c,this);a['unbind']('change',f,this);}};if(c){var g=a['get']('items')[b];var h=g['get']('class');if(h=='PanoramaPlayListItem'||h=='Model3DPlayListItem'){var i=g['get']('camera');if(i!=undefined){e=i['get']('initialSequence');if(e==undefined)e=i['get']('idleSequence');}}else{e=g['get']('media');}if(e){e['bind']('end',c,this);}}a['bind']('change',f,this);};TDV['Tour']['Script']['executeJS']=function(a){try{eval(a);}catch(b){console['log']('Javascript\x20error:\x20'+b);console['log']('\x20\x20\x20code:\x20'+a);}};TDV['Tour']['Script']['fixTogglePlayPauseButton']=function(a){var b=a['get']('buttonPlayPause');if(typeof b!=='undefined'&&a['get']('state')=='playing'){if(!Array['isArray'](b))b=[b];for(var c=0x0;c0x1){b['sort'](function(c,d){var e=c['get']('class');var f=d['get']('class');if(e=='Model3DPlayer')return 0x1;else if(f=='Model3DPlayer')return-0x1;else return 0x0;});}return b['length']>0x0?b[0x0]:undefined;};TDV['Tour']['Script']['getActivePlayersWithViewer']=function(a){var b=this['getCurrentPlayers']();var c=b['length'];var d=[];while(c-->0x0){var e=b[c];if(e['get']('viewerArea')==a){var f=e['get']('class');if(f=='PanoramaPlayer'&&(e['get']('panorama')!=undefined||e['get']('video')!=undefined)||(f=='VideoPlayer'||f=='Video360Player')&&e['get']('video')!=undefined||f=='PhotoAlbumPlayer'&&e['get']('photoAlbum')!=undefined||f=='MapPlayer'&&e['get']('map')!=undefined||f=='Model3DPlayer'&&e['get']('model')!=undefined)d['push'](e);}}return d;};TDV['Tour']['Script']['getCurrentPlayerWithMedia']=function(a){var b=undefined;var c=undefined;switch(a['get']('class')){case'Panorama':case'LivePanorama':case'HDRPanorama':b='PanoramaPlayer';c='panorama';break;case'Video360':b='PanoramaPlayer';c='video';break;case'PhotoAlbum':b='PhotoAlbumPlayer';c='photoAlbum';break;case'Map':b='MapPlayer';c='map';break;case'Video':b='VideoPlayer';c='video';break;case'Model3D':b='Model3DPlayer';c='media';break;}if(b!=undefined){var d=this['getByClassName'](b);for(var e=0x0;e{return d['get']('class')=='PanoramaModel3DLocation'?d['get']('data')['object']:d;});};TDV['Tour']['Script']['getOverlaysByGroupname']=function(a){var b=this['get']('data');var c='groupname2Overlays';var d=b[c];if(!d){var e=['HotspotPanoramaOverlay','VideoPanoramaOverlay','QuadVideoPanoramaOverlay','FramePanoramaOverlay','QuadFramePanoramaOverlay'];b[c]=d={};for(var f=0x0;f0x1){b['sort'](function(j,k){var l=j['get']('data')['groupIndex'];var m=k['get']('data')['groupIndex'];return l-m;});for(var c=0x0,d=b['length'];c=0x0;--v){if(A['indexOf'](y[v])==-0x1)y['splice'](v,0x1);}}else if(d=='or'){for(var v=A['length']-0x1;v>=0x0;--v){var q=A[v];if(y['indexOf'](q)==-0x1)y['push'](q);}}}}return y||[];};TDV['Tour']['Script']['getComponentByName']=function(a){var b=this['getByClassName']('UIComponent');for(var c=0x0,d=b['length'];cc)c=e['get']('width');}return c;}else{return e['get']('width');}default:return a['get']('width');}};TDV['Tour']['Script']['getMediaHeight']=function(a){switch(a['get']('class')){case'Video360':var b=a['get']('video');if(b instanceof Array){var c=0x0;for(var d=0x0;dc)c=e['get']('height');}return c;}else{return e['get']('height');}default:return a['get']('height');}};TDV['Tour']['Script']['getOverlays']=function(a){switch(a['get']('class')){case'LivePanorama':case'HDRPanorama':case'Panorama':var b=a['get']('overlays')['concat']()||[];var c=a['get']('frames');for(var d=0x0;d=0x0;--g){var h=f[g];var k=h['get']('player');if(k!==undefined&&k['get']('viewerArea')==a)return!![];}return![];};for(var d=b['length']-0x1;d>=0x0;--d){if(!c(b[d]))b['splice'](d,0x1);}return b;};TDV['Tour']['Script']['getPlayListWithItem']=function(a){var b=this['getByClassName']('PlayList');for(var c=b['length']-0x1;c>=0x0;--c){var d=b[c];var e=d['get']('items');for(var f=e['length']-0x1;f>=0x0;--f){var g=e[f];if(g==a)return d;}}return undefined;};TDV['Tour']['Script']['getFirstPlayListWithMedia']=function(a,b){var c=this['getPlayListsWithMedia'](a,b);return c['length']>0x0?c[0x0]:undefined;};TDV['Tour']['Script']['getPlayListItemByMedia']=function(a,b){var c=a['get']('items');for(var d=0x0,e=c['length'];d=0x0;--e){var f=d[e];if(f['get']('media')!=a||b!=undefined&&f['get']('player')!=b){d['splice'](e,0x1);}}return d;}else{return[];}};TDV['Tour']['Script']['historyGoBack']=function(a){var b=this['get']('data')['history'][a['get']('id')];if(b!=undefined){b['back']();}};TDV['Tour']['Script']['historyGoForward']=function(a){var b=this['get']('data')['history'][a['get']('id')];if(b!=undefined){b['forward']();}};TDV['Tour']['Script']['init']=function(){var a=this['get']('data')['history'];var b=function(l){var m=l['source'];var n=m['get']('selectedIndex');if(n<0x0)return;var o=m['get']('id');if(!a['hasOwnProperty'](o))a[o]=new TDV['Tour']['HistoryData'](m);a[o]['add'](n);};var c=this['getByClassName']('PlayList');for(var e=0x0,f=c['length'];e=0x0){this['skip3DTransitionOnce'](n['get']('items')[o]['get']('player'));}}for(var e=0x0,j=h['length'];e0x0){var p=A['get']('data');if(p===undefined)continue;var C=p['name'];A['bind']('click',this['sendAnalyticsData']['bind'](this,'Skin','click',C),this,![]);}}var D=this['mainPlayList']['get']('items')['concat'](this['getByClassName']('PlayListItem'));var E={};for(var f=0x0,k=D['length'];f{E['set'](G,D['get'](G));});}}function g(y){u=y['source'];}function h(y){k['call'](this,y['source']);}function i(y){var z=y['get']('viewerArea');if(z==p){if(s&&s['get']('class')=='PanoramaPlayer'){s['get']('camera')['set']('hoverFactor',v);}s=y;u=s;if(s&&s['get']('class')=='PanoramaPlayer'){v=s['get']('camera')['get']('hoverFactor');s['get']('camera')['set']('hoverFactor',0x0);}}else if(z==q){if(t&&t['get']('class')=='PanoramaPlayer'){t['get']('camera')['set']('hoverFactor',w);}t=y;u=t;if(t&&t['get']('class')=='PanoramaPlayer'){w=t['get']('camera')['get']('hoverFactor');t['get']('camera')['set']('hoverFactor',0x0);}}f(y);}function j(y){var z=this['getCurrentPlayers']();var A=z['length'];while(A-->0x0){var C=z[A];if(C['get']('viewerArea')!=y){z['splice'](A,0x1);}}for(A=0x0;A{return B['player']==y;});if(z){if(z['media']['get']('class')=='Model3D'){z['media']['get']('camera')['unbind']('positionSet',z['updateFn'],this);z['media']['get']('camera')['unbind']('userInteractionStart',z['userInteractionStartFn'],this);}x['splice'](x['indexOf'](z),0x1);}var A=this['getMediaFromPlayer'](y);if(!A)return;z={'media':A,'player':y,'updateFn':()=>{f(y);},'userInteractionStartFn'(){u=y;}};x['push'](z);if(z['media']['get']('class')=='Model3D'){z['media']['get']('camera')['bind']('positionSet',z['updateFn'],this);z['media']['get']('camera')['bind']('userInteractionStart',z['userInteractionStartFn'],this);}i(y);}function l(y){i(this['getActivePlayerWithViewer'](y['source']));f(u);}var m=a['get']('children');var n=m[0x0];var o=m[0x1];var p=n['get']('children')[0x0];var q=o['get']('children')[0x0];var r=m[0x2];var s,t,u;var v,w;var x=[];j['call'](this,p);j['call'](this,q);this['bind']('instanceCreation',y=>{var z=y['data']['instance'];var A=z['get']('class');if(A=='PanoramaPlayer'||A=='Model3DPlayer'){z['bind']('preloadMediaShow',h,this);z['bind']('cameraPositionChange',e,this);z['bind']('userInteractionStart',g,this);k['call'](this,z);}},this);p['bind']('mouseDown',l,this);q['bind']('mouseDown',l,this);a['bind']('resize',function(){r['set']('left',(a['get']('actualWidth')-r['get']('actualWidth'))*0.5);b();},this);r['bind']('mouseDown',function(y){var z=y['pageX'];var A=function(B){var C=B['pageX'];var D=z-C;var E=a['get']('actualWidth');var F=r['get']('left');var G=(typeof F=='string'?c(F):F)-D;if(G<0x0){C-=G;G=0x0;}else if(G+r['get']('actualWidth')>=E){C-=G-(E-r['get']('actualWidth'));G=E-r['get']('actualWidth');}r['set']('left',G);b();z=C;};this['bind']('mouseMove',A,this);this['bind']('mouseUp',function(){this['unbind']('mouseMove',A,this);},this);},this);b();};TDV['Tour']['Script']['_initTwinsViewer']=function(a){function b(){var z=a['get']('actualWidth');o['get']('children')[0x0]['set']('width',z);p['get']('children')[0x0]['set']('width',z);var A=s['get']('left');var B=typeof A=='string'?c(A):A;B+=s['get']('actualWidth')*0.5;o['set']('width',d(B));p['set']('width',d(z-B));}function c(z){return parseFloat(z['replace']('%',''))/0x64*a['get']('actualWidth');}function d(z){return z/a['get']('actualWidth')*0x64+'%';}function e(z){f(z['source']);}function f(z){var A=z==u?t:u;if(v&&z!=v||!z||!A)return;var B=z['get']('class');var C=A['get']('class');if(B=='PanoramaPlayer'&&C=='PanoramaPlayer'){var D=A['get']('camera')['get']('initialPosition')['get']('yaw')-z['get']('camera')['get']('initialPosition')['get']('yaw');A['setPosition'](z['get']('yaw')+D,z['get']('pitch'),z['get']('roll'),z['get']('hfov'));}else if(B=='Model3DPlayer'&&C=='Model3DPlayer'){var E=z['get']('model')['get']('camera');var F=A['get']('model')['get']('camera');var G=['yaw','pitch','x','y','z','fov'];if(E['get']('class')=='OrbitModel3DCamera'&&F['get']('class')=='OrbitModel3DCamera')G['push']('distance');G['forEach'](H=>{F['set'](H,E['get'](H));});}}function g(z){v=z['source'];}function h(z){v=t;}function i(z){l['call'](this,z['source']);}function j(z){var A=z['get']('viewerArea');if(A==q){if(t&&t['get']('class')=='PanoramaPlayer'){t['get']('camera')['set']('hoverFactor',w);}t=z;v=t;if(t&&t['get']('class')=='PanoramaPlayer'){w=t['get']('camera')['get']('hoverFactor');t['get']('camera')['set']('hoverFactor',0x0);}}else if(A==r){if(u&&u['get']('class')=='PanoramaPlayer'){u['get']('camera')['set']('hoverFactor',x);}u=z;v=u;if(u&&u['get']('class')=='PanoramaPlayer'){x=u['get']('camera')['get']('hoverFactor');u['get']('camera')['set']('hoverFactor',0x0);}}f(z);}function k(z){var A=this['getCurrentPlayers']();var B=A['length'];while(B-->0x0){var D=A[B];if(D['get']('viewerArea')!=z){A['splice'](B,0x1);}}for(B=0x0;B{return C['player']==z;});if(A){if(A['media']['get']('class')=='Model3D'){A['media']['get']('camera')['unbind']('positionSet',A['updateFn'],this);A['media']['get']('camera')['unbind']('userInteractionStart',A['userInteractionStartFn'],this);}y['splice'](y['indexOf'](A),0x1);}var B=this['getMediaFromPlayer'](z);if(!B)return;A={'media':B,'player':z,'updateFn':()=>{f(z);},'userInteractionStartFn'(){v=z;}};y['push'](A);if(A['media']['get']('class')=='Model3D'){A['media']['get']('camera')['bind']('positionSet',A['updateFn'],this);A['media']['get']('camera')['bind']('userInteractionStart',A['userInteractionStartFn'],this);}j(z);}function m(z){j(this['getActivePlayerWithViewer'](z['source']));f(v);}var n=a['get']('children');var o=n[0x0];var p=n[0x1];var q=o['get']('children')[0x0];var r=p['get']('children')[0x0];var s=n[0x2];var t,u,v;var w,x;var y=[];k['call'](this,q);k['call'](this,r);this['bind']('instanceCreation',z=>{var A=z['data']['instance'];if(A['get']('class')=='PanoramaPlayer'){var B=A;B['bind']('preloadMediaShow',i,this);if(B['get']('class')=='PanoramaPlayer'){B['bind']('cameraPositionChange',e,this);B['bind']('userInteractionStart',g,this);}l['call'](this,B);}},this);q['bind']('mouseDown',m,this);r['bind']('mouseDown',m,this);a['bind']('resize',function(){s['set']('left',(a['get']('actualWidth')-s['get']('actualWidth'))*0.5);b();},this);b();};TDV['Tour']['Script']['isCardboardViewMode']=function(){var a=this['getByClassName']('PanoramaPlayer');return a['length']>0x0&&a[0x0]['get']('viewMode')=='cardboard';};TDV['Tour']['Script']['isPanorama']=function(a){return['Panorama','HDRPanorama','LivePanorama','Video360','VideoPanorama']['indexOf'](a['get']('class'))!=-0x1;};TDV['Tour']['Script']['keepCompVisible']=function(a,b){var c='keepVisibility_'+a['get']('id');var d=this['getKey'](c);if(d==undefined&&b){this['registerKey'](c,b);}else if(d!=undefined&&!b){this['unregisterKey'](c);}};TDV['Tour']['Script']['_initItemWithComps']=function(a,b,c,d,e,f,g,h){var j=a['get']('items')[b];var k=j['get']('media');var l=k['get']('loop')==undefined||k['get']('loop');var m=h>0x0;var n=this['rootPlayer'];var o=function(w){var x=f?f['get']('class'):undefined;var y=undefined;switch(x){case'FadeInEffect':case'FadeOutEffect':y=n['createInstance'](w?'FadeInEffect':'FadeOutEffect');break;case'SlideInEffect':case'SlideOutEffect':y=n['createInstance'](w?'SlideInEffect':'SlideOutEffect');break;}if(y){y['set']('duration',f['get']('duration'));y['set']('easing',f['get']('easing'));if(x['indexOf']('Slide')!=-0x1)y['set'](w?'from':'to',f['get'](f['get']('class')=='SlideInEffect'?'from':'to'));}return y;};var p=function(){for(var w=0x0,x=c['length'];w0x0){this['setComponentVisibility'](y,!e,0x0,o(!e));}else{var z='visibility_'+y['get']('id');if(this['existsKey'](z)){if(this['getKey'](z))this['setComponentVisibility'](y,!![],0x0,o(!![]));else this['setComponentVisibility'](y,![],0x0,o(![]));this['unregisterKey'](z);}}}j['unbind']('end',p,this);if(!l)k['unbind']('end',p,this);};var q=function(){j['unbind']('stop',q,this,!![]);j['unbind']('stop',q,this);j['unbind']('begin',q,this,!![]);j['unbind']('begin',q,this);for(var w=0x0,x=c['length'];w0x0){var H=x+y+(G!=undefined?G['get']('duration'):0x0);n['setComponentVisibility'](E,!F,H,o(!F),F?'hideEffect':'showEffect',!![]);}};for(var B=0x0,C=c['length'];B0x0){r('begin',h,0x0);h=0x0;}if(d!=undefined)r(d,g,h);};TDV['Tour']['Script']['loadFromCurrentMediaPlayList']=function(a,b,c){var d=a['get']('selectedIndex');var e=a['get']('items')['length'];var f=(d+b)%e;while(f<0x0){f=e+f;}if(d!=f){if(c){var g=a['get']('items')[f];this['skip3DTransitionOnce'](g['get']('player'));}a['set']('selectedIndex',f);}};TDV['Tour']['Script']['mixObject']=function(a,b){return this['assignObjRecursively'](b,this['copyObjRecursively'](a));};TDV['Tour']['Script']['downloadFile']=function(a){if((navigator['userAgent']['toLowerCase']()['indexOf']('chrome')>-0x1||navigator['userAgent']['toLowerCase']()['indexOf']('safari')>-0x1)&&!/(iP)/g['test'](navigator['userAgent'])){var b=document['createElement']('a');b['href']=a;b['setAttribute']('target','_blank');if(b['download']!==undefined){var c=a['substring'](a['lastIndexOf']('/')+0x1,a['length']);b['download']=c;}if(document['createEvent']){var d=document['createEvent']('MouseEvents');d['initEvent']('click',!![],!![]);b['dispatchEvent'](d);return;}}window['open'](a,'_blank');};TDV['Tour']['Script']['openLink']=function(a,b){if(!a||a==location['href']){return;}if(!b)b='_blank';if(b=='_top'||b=='_self'){this['updateDeepLink']({'includeCurrentView':!![],'includeCurrentVisibleHotspots':!![],'includeCurrentMeasureModel3DObjects':!![],'setHash':!![]});}var c=window&&window['process']&&window['process']['versions']&&window['process']['versions']['electron']||navigator&&navigator['userAgent']&&navigator['userAgent']['indexOf']('Electron')>=0x0;if(c&&b=='_blank'){if(a['startsWith']('files/')){a='/'+a;}if(a['startsWith']('//')){a='https:'+a;}else if(a['startsWith']('/')){var d=window['location']['href']['split']('/');d['pop']();a=d['join']('/')+a;}var e=a['split']('.')['pop']()['toLowerCase']();if((['pdf','zip','xls','xlsx']['indexOf'](e)==-0x1||a['startsWith']('file://'))&&window['hasOwnProperty']('require')){var f=window['require']('electron')['shell'];f['openExternal'](a);}else{window['open'](a,b);}}else if(c&&(b=='_top'||b=='_self')){window['location']=a;}else{var g=this['get']('data')['tour'];if(g['isMobileApp']()&&g['isIOS']())a='blank:'+a;var h=window['open'](a,b);h['focus']();}};TDV['Tour']['Script']['startPanoramaWithModel']=function(a,b){var c=a['get']('media');var d=_findLocationWithPanorama['call'](this,c);if(!d){b['call'](this);return;}var e=d['get']('model');var f=a['get']('player')['get']('viewerArea');var h=this['getActivePlayersWithViewer'](f);var j=h['length']==0x1?h['find'](function(q){return this['getMediaFromPlayer'](q)==e;}['bind'](this)):undefined;if(j){b['call'](this);}else{var h=_getPlayersWithViewer['call'](this,f);var j=h['find'](function(q){return q['get']('class')=='Model3DPlayer';});var k,l;if(!j){j=this['createInstance']('Model3DPlayer');j['set']('viewerArea',f);}else{var m=this['getByClassName']('Model3DPlayListItem');k=m['find'](function(q){return q['get']('player')==j;}['bind'](this));}if(!k){k=this['createInstance']('Model3DPlayListItem');k['set']('player',j);_initModel3DItem['call'](this,k);}k['set']('media',e);var n=d['get']('forceModelLoading');d['set']('forceModelLoading',!![]);var o=function(){k['unbind']('begin',o,this);b['call'](this);};var p=function(){a['unbind']('begin',p,this);d['set']('forceModelLoading',n);if(l)this['disposeInstance'](l);};a['bind']('begin',p,this);if(k['get']('state')=='playing')o['call'](this);else{k['bind']('begin',o,this);l=this['createInstance']('PlayList');l['set']('items',[k]);l['set']('selectedIndex',0x0);}}};TDV['Tour']['Script']['pauseCurrentPlayers']=function(a){var b=this['getCurrentPlayers']();var c=b['length'];while(c-->0x0){var d=b[c];if(d['get']('state')=='playing'||d['get']('data')&&d['get']('data')['playing']||d['get']('viewerArea')&&d['get']('viewerArea')['get']('id')==this['getMainViewer']()||d['get']('camera')&&d['get']('camera')['get']('idleSequence')&&d['get']('camera')['get']('timeToIdle')>0x0&&d['get']('state')=='playing'||d['get']('class')=='Model3DPlayer'&&d['get']('model')&&d['get']('model')['get']('camera')['get']('state')=='playing'){var e=this['getMediaFromPlayer'](d);if(a&&e&&e['get']('class')!='Video360'&&'pauseCamera'in d){d['pauseCamera']();}else{d['pause']();}}else{b['splice'](c,0x1);}}return b;};TDV['Tour']['Script']['pauseGlobalAudiosWhilePlayItem']=function(a,b,c){var d=function(){if(a['get']('selectedIndex')!=b){this['resumeGlobalAudios']();}};this['pauseGlobalAudios'](c,!![]);this['executeFunctionWhenChange'](a,b,d,d);};TDV['Tour']['Script']['pauseGlobalAudios']=function(b,c){this['stopTextToSpeech']();if(window['pausedAudiosLIFO']==undefined)window['pausedAudiosLIFO']=[];var d=this['getByClassName']('VideoPanoramaOverlay');d=d['concat'](this['getByClassName']('QuadVideoPanoramaOverlay'));for(var f=d['length']-0x1;f>=0x0;--f){var g=d[f];if(g['get']('video')['get']('hasAudio')==![])d['splice'](f,0x1);}var h=this['getByClassName']('Audio')['concat'](d);var j={};if(window['currentGlobalAudios']!=undefined)h=h['concat'](Object['values'](window['currentGlobalAudios'])['map'](function(n){if(!n['allowResume'])j[n['audio']['get']('id')]=n['audio'];return n['audio'];}));var k=[];for(var f=0x0,l=h['length'];f0x0)window['pausedAudiosLIFO']['push'](k);return k;};TDV['Tour']['Script']['resumeGlobalAudios']=function(){if(window['pausedAudiosLIFO']==undefined)return;if(window['resumeAudiosBlocked']){if(window['pausedAudiosLIFO']['length']>0x1){window['pausedAudiosLIFO'][window['pausedAudiosLIFO']['length']-0x2]=window['pausedAudiosLIFO'][window['pausedAudiosLIFO']['length']-0x2]['concat'](window['pausedAudiosLIFO'][window['pausedAudiosLIFO']['length']-0x1]);window['pausedAudiosLIFO']['splice'](window['pausedAudiosLIFO']['length']-0x1,0x1);}return;}var b=window['pausedAudiosLIFO']['pop']();if(!b)return;for(var c=0x0,d=b['length'];c=a['length']){if(!b)return;d=0x0;}e=a[d];f(e,!![],g,!![]);};g();}};TDV['Tour']['Script']['playGlobalAudioWhilePlayActiveMedia']=function(a,b,c,d){var e=this['getActiveMediaWithViewer'](this['getMainViewer']());var f=this['getFirstPlayListWithMedia'](e,!![]);var g=this['getPlayListItemByMedia'](f,e);var h=f['get']('items')['indexOf'](g);return this['playGlobalAudioWhilePlay'](f,h,a,b,c,d);};TDV['Tour']['Script']['playGlobalAudioWhilePlay']=function(a,b,c,d,e,f){var g=function(p){if(p['data']['previousSelectedIndex']==b){this['stopGlobalAudio'](c);if(k){var q=j['get']('media');var r=q['get']('audios');r['splice'](r['indexOf'](c),0x1);q['set']('audios',r);}a['unbind']('change',g,this);if(e)e();}};var i=window['currentGlobalAudios'];if(i&&c['get']('id')in i){c=i[c['get']('id')]['audio'];if(c['get']('state')!='playing'){c['play']();}return c;}a['bind']('change',g,this);var j=a['get']('items')[b];var k=j['get']('class')=='PanoramaPlayListItem';if(k){var l=j['get']('media');var i=(l['get']('audios')||[])['slice']();if(c['get']('class')=='MediaAudio'){var m=this['rootPlayer']['createInstance']('PanoramaAudio');m['set']('autoplay',![]);m['set']('audio',c['get']('audio'));m['set']('loop',c['get']('loop'));m['set']('id',c['get']('id'));this['cloneBindings'](c,m,'start');this['cloneBindings'](c,m,'end');this['cloneBindings'](c,m,'stateChange');c=m;}i['push'](c);l['set']('audios',i);}var n=this['playGlobalAudio'](c,d,function(){a['unbind']('change',g,this);if(e)e['call'](this);});if(f===!![]){var o=function(){if(n['get']('state')=='playing'){this['pauseGlobalAudios']([n],!![]);}else if(n['get']('state')=='stopped'){this['resumeGlobalAudios']();n['unbind']('stateChange',o,this);}};n['bind']('stateChange',o,this);}return n;};TDV['Tour']['Script']['playGlobalAudio']=function(a,b,c,d){var e=function(){a['unbind']('end',e,this);this['stopGlobalAudio'](a);if(c)c['call'](this);};a=this['getGlobalAudio'](a);var f=window['currentGlobalAudios'];if(!f){f=window['currentGlobalAudios']={};}f[a['get']('id')]={'audio':a,'asBackground':d||![],'allowResume':b};if(a['get']('state')=='playing'){return a;}if(!a['get']('loop')){a['bind']('end',e,this);}a['play']();return a;};TDV['Tour']['Script']['restartTourWithoutInteraction']=function(a){var b=-0x1;this['bind']('userInteraction',c['bind'](this),this);c();function c(){if(b!=-0x1)clearTimeout(b);b=setTimeout(function(){var d=this['get']('data')['tour'];if(d){if(this['isCardboardViewMode']())location['reload']();else d['reload']();}}['bind'](this),a*0x3e8);}};TDV['Tour']['Script']['resumePlayers']=function(a,b){for(var c=0x0;c0x0){var l=setTimeout(function(){if(window[j]instanceof Array){var n=window[j];var o=n['indexOf'](l);n['splice'](o,0x1);if(n['length']==0x0){delete window[j];}}else{delete window[j];}h();},c);if(window['hasOwnProperty'](j)){window[j]=[window[j],l];}else{window[j]=l;}}else{h();}};TDV['Tour']['Script']['setDirectionalPanoramaAudio']=function(a,b,c,d){a['set']('yaw',b);a['set']('pitch',c);a['set']('maximumAngle',d);};TDV['Tour']['Script']['setLocale']=function(a){this['stopTextToSpeech']();var b=this['get']('data')['localeManager'];if(b)this['get']('data')['localeManager']['setLocale'](a);else{this['get']('data')['defaultLocale']=a;this['get']('data')['forceDefaultLocale']=!![];}};TDV['Tour']['Script']['setEndToItemIndex']=function(a,b,c){var d=function(){if(a['get']('selectedIndex')==b){var e=a['get']('items')[c];this['skip3DTransitionOnce'](e['get']('player'));a['set']('selectedIndex',c);}};this['executeFunctionWhenChange'](a,b,d);};TDV['Tour']['Script']['setMapLocation']=function(a,b){var c=function(){a['unbind']('stop',c,this);d['set']('mapPlayer',null);};a['bind']('stop',c,this);var d=a['get']('player');d['set']('mapPlayer',b);};TDV['Tour']['Script']['setMainMediaByIndex']=function(a){var b=undefined;if(a>=0x0&&a0x0){g=k[0x0];h=this['getPlayListItemIndexByMedia'](g,c);}if(!g)c=!![];}if(c===!![]){var p=this['getActiveMediaWithViewer'](j);if(p){g=this['getFirstPlayListWithMedia'](p,!![]);var o=this['getPlayListItemByMedia'](g,p);h=g['get']('items')['indexOf'](o);}else{c=null;}}var q=[];var r=function(){var z=q['concat']();var A=![];var B=function(E){var F=E['source']['get']('state');if(F=='playing'){if(!A){A=!![];this['pauseGlobalAudios'](q,!![]);}}else if(F=='stopped'){z['splice'](z['indexOf'](E['source']),0x1);if(z['length']==0x0){this['resumeGlobalAudios']();}E['source']['unbind']('stateChange',B,this);}}['bind'](this);for(var C=0x0,D=q['length'];C0x0&&y['get']('movements')[x-0x1]['get']('class')=='TargetPanoramaCameraMovement'){var F=z['get']('initialPosition');var G=F['get']('yaw');var H=F['get']('pitch');var I=F['get']('hfov');var J=y['get']('movements')[x-0x1];var K=J['get']('targetYaw');var L=J['get']('targetPitch');var M=J['get']('targetHfov');if(K!==undefined)F['set']('yaw',K);if(L!==undefined)F['set']('pitch',L);if(M!==undefined)F['set']('hfov',M);var N=function(Q){F['set']('yaw',G);F['set']('pitch',H);F['set']('hfov',I);t['unbind']('end',N,this);};t['bind']('end',N,this);}y['set']('movementIndex',x);}}if(r){q['unbind']('begin',g,this);r['unbind']('stateChange',f,this);for(var O=0x0;O0x1)&&(P==undefined||P==q['get']('media'))){n['set']('selectedIndex',p);}if(a!=n)n['unbind']('change',h,this);}else{u['set']('visible',v);}n=undefined;};if(!c){var l=a['get']('selectedIndex');var m=l!=-0x1?a['get']('items')[a['get']('selectedIndex')]['get']('player'):this['getActivePlayerWithViewer'](this['getMainViewer']());if(m){c=this['getMediaFromPlayer'](m);}}var n=undefined;if(c){var o=this['getPlayListsWithMedia'](c,!![]);if(o['indexOf'](a)!=-0x1){n=a;}else if(o['indexOf'](this['mainPlayList'])!=-0x1){n=this['mainPlayList'];}else if(o['length']>0x0){n=o[0x0];}}if(!n){a['set']('selectedIndex',b);return;}var p=n['get']('selectedIndex');var q=a['get']('items')[b];var r=q['get']('player');var s=this['getMediaFromPlayer'](r);if(a['get']('selectedIndex')==b&&s==q['get']('media')||p==-0x1){return;}if(a['get']('selectedIndex')==b&&s!=q['get']('media'))a['set']('selectedIndex',-0x1);var t=n['get']('items')[p];var u=r['get']('viewerArea');var v=u['get']('visible');var w=u==t['get']('player')['get']('viewerArea');if(w){if(a!=n){n['set']('selectedIndex',-0x1);n['bind']('change',h,this);}}else{u['set']('visible',!![]);}var x=-0x1;var y=undefined;var z=t['get']('camera');if(z){y=z['get']('initialSequence');if(y){x=y['get']('movementIndex');}}a['set']('selectedIndex',b);var A=[];var B=function(D){var E=r['get'](D);if(E==undefined)return;if(Array['isArray'](E))A=A['concat'](E);else A['push'](E);};B('buttonStop');for(var C=0x0;C0x0){f[j['get']('id')]=setTimeout(k['bind'](this,j),c);}else{k['call'](this,j);}}function k(l){var m=l['get']('id');var n=f[m];if(n){clearTimeout(n);delete n[m];}var o=l['get']('class')=='PanoramaModel3DLocation'?l['get']('data')['object']:l;if(!o)return;var p=b=='toggle'?!o['get']('enabled'):b;o['set']('enabled',p);if(l['get']('class')=='PanoramaModel3DLocation')l['get']('data')['enabled']=p;var r=l['get']('data');if(p&&r&&'group'in r){var s=this['getOverlaysByGroupname'](r['group']);for(var t=0x0,u=s['length'];t=0x0&&g[f]==b&&h['get']('isLoaded')){i['set']('yaw',i['get']('yaw')%0x168);var j=b['get']('player')['get']('viewerArea');var k=this['getActiveMediaWithViewer'](j);if(k['get']('class')['indexOf']('Panorama')!=-0x1){if(d!==undefined){d*=0x3e8;var l=j['get']('modelToPanoramaTraslationDuration');var m=j['get']('panoramaToModelTraslationDuration');var n=()=>{clearTimeout(o);a['unbind']('change',n,this);j['set']('modelToPanoramaTraslationDuration',l);j['set']('panoramaToModelTraslationDuration',m);};var o=setTimeout(n,d);a['bind']('change',n,this);j['set']('modelToPanoramaTraslationDuration',d);j['set']('panoramaToModelTraslationDuration',d);}i['setStoredPosition'](c);}else{if(i['get']('state')=='playing')i['stop']();this['createTween'](i,c,d,e)['play']();}}else{if(i['get']('state')=='playing')i['stop']();this['startModel3DWithCameraSpot'](b,c);}};TDV['Tour']['Script']['setModel3DCameraSequence']=function(a,b,c){var d=a['get']('selectedIndex');var e=a['get']('items');var f=b['get']('media');if(e[d]==b&&f['get']('isLoaded')){c['play']();}else{var g=c['get']('movements');var h={};if(g['length']>0x0){var i=g[0x0];if(i['get']('class')=='TargetModel3DCameraMovement'){var j=['x','y','z','yaw','pitch','fov','distance'];for(var k in j){k=j[k];var l=i['get']('target'+k['charAt'](0x0)['toUpperCase']()+k['slice'](0x1));if(l!==undefined){h[k]=l;}}}}this['startModel3DWithCameraSpot'](b,h);var m=function(){b['unbind']('begin',m,this);c['play']();};b['bind']('begin',m,this);}};TDV['Tour']['Script']['setPanoramaCameraWithCurrentSpot']=function(a,b){var c=this['getActiveMediaWithViewer'](b||this['getMainViewer']());if(c!=undefined&&(c['get']('class')['indexOf']('Panorama')!=-0x1||c['get']('class')=='Video360')){var d=a['get']('media');var e=this['clonePanoramaCamera'](a['get']('camera'));this['setCameraSameSpotAsMedia'](e,c);this['startPanoramaWithCamera'](d,e);}};TDV['Tour']['Script']['setPanoramaCameraWithSpot']=function(a,b,c,d,e){var f=b['get']('media');var g=b['get']('player');if(a['get']('items')[a['get']('selectedIndex')]==b||g['get']('rendererPanorama')==f){if(c===undefined)c=g['get']('yaw');if(d===undefined)d=g['get']('pitch');if(e===undefined)e=g['get']('hfov');g['moveTo'](c,d,g['get']('roll'),e);}else{var h=this['clonePanoramaCamera'](b['get']('camera'));var i=h['get']('initialPosition');if(c!==undefined)i['set']('yaw',c);if(d!==undefined)i['set']('pitch',d);if(e!==undefined)i['set']('hfov',e);this['startPanoramaWithCamera'](f,h);}};TDV['Tour']['Script']['setSurfaceSelectionHotspotMode']=function(a){var b=this['getByClassName']('HotspotPanoramaOverlay');var c=this['getByClassName']('PanoramaPlayer');var d=a=='hotspotEnabled';var e=a=='circleEnabled';var f=!!a;b['forEach'](function(g){var h=g['get']('data');if(h&&h['hasPanoramaAction']==!![])g['set']('enabledInSurfaceSelection',d);});c['forEach'](function(g){g['set']('adjacentPanoramaPositionsEnabled',e);g['set']('surfaceSelectionEnabled',f);});this['get']('data')['surfaceSelectionHotspotMode']=a;};TDV['Tour']['Script']['setValue']=function(a,b,c){try{if('set'in a)a['set'](b,c);else a[b]=c;}catch(d){}};TDV['Tour']['Script']['setStartTimeVideo']=function(a,b){var c=this['getPlayListItems'](a);var d=[];var e=function(){for(var j=0x0;j=0x0)clearTimeout(f);a['bind']('rollOut',h,this);};var h=function(){var i=function(){e['call'](this,![]);};a['unbind']('rollOut',h,this);f=setTimeout(i['bind'](this),c);};a['bind']('rollOver',g,this);}};TDV['Tour']['Script']['setObjectsVisibilityByTags']=function(a,b,c,d){var e=this['_getObjectsByTags'](b,['InnerModel3DObject'],'tags2Objects',c)['filter'](function(f){return a['get']('objects')['indexOf'](f)!=-0x1;}['bind'](this));this['setObjectsVisibility'](e,d);};TDV['Tour']['Script']['setObjectsVisibilityByID']=function(a,b,c){var d=b['map'](function(e){return this['getModel3DInnerObject'](a,e);}['bind'](this));this['setObjectsVisibility'](d,c);};TDV['Tour']['Script']['setObjectsVisibility']=function(a,b){a['forEach'](function(c){if(c)c['set']('enabled',b==='toggle'?!c['get']('enabled'):b);}['bind'](this));};TDV['Tour']['Script']['getModel3DInnerObject']=function(a,b){var c=a['get']('objects');for(var d=0x0,e=c['length'];dA?z:A;y+=n('headerPaddingTop')+n('headerPaddingBottom');}var B=u-n('bodyPaddingLeft')-n('bodyPaddingRight')-n('paddingLeft')-n('paddingRight');var C=v-y-x-n('bodyPaddingTop')-n('bodyPaddingBottom')-n('paddingTop')-n('paddingBottom');var D=B/C;var E=q/r;if(D>E){u=C*E+n('bodyPaddingLeft')+n('bodyPaddingRight')+n('paddingLeft')+n('paddingRight');}else{v=B/E+y+x+n('bodyPaddingTop')+n('bodyPaddingBottom')+n('paddingTop')+n('paddingBottom');}if(u>o*s){u=o*s;}if(v>p*t){v=p*t;}a['set']('width',u);a['set']('height',v);a['set']('x',(o-n('actualWidth'))*0.5);a['set']('y',(p-n('actualHeight'))*0.5);};if(f){this['executeFunctionWhenChange'](c,0x0,i);}var k=b['get']('class');var l=k=='Video'||k=='Video360';c['set']('selectedIndex',0x0);if(l){this['bind']('resize',j,this);j();c['get']('items')[0x0]['get']('player')['play']();}else{a['set']('width',d);a['set']('height',e);}window['resumeAudiosBlocked']=!![];this['getMainViewer']()['set']('toolTipEnabled',![]);var m=this['pauseCurrentPlayers'](!![]);a['bind']('close',h,this);a['show'](this,!![]);};TDV['Tour']['Script']['showPopupImage']=function(a,b,c,d,e,f,g,h,i,j,k,l){var m=![];var n=function(){F['unbind']('loaded',q,this);u['call'](this);};var o=function(){F['unbind']('click',o,this);if(J!=undefined){clearTimeout(J);}};var p=function(){setTimeout(z,0x0);};var q=function(){this['unbind']('click',n,this);E['set']('visible',!![]);z();G['set']('visible',!![]);F['unbind']('loaded',q,this);F['bind']('resize',p,this);J=setTimeout(r['bind'](this),0xc8);};var r=function(){J=undefined;if(h){F['bind']('click',o,this);t['call'](this);}F['bind']('userInteractionStart',A,this);F['bind']('userInteractionEnd',B,this);F['bind']('backgroundClick',u,this);if(b){F['bind']('click',x,this);F['set']('imageCursor','hand');}G['bind']('click',u,this);if(k)k['call'](this);};var s=function(){if(h&&J){clearTimeout(J);J=undefined;}};var t=function(){if(h){s();J=setTimeout(u['bind'](this),h);}};var u=function(){this['getMainViewer']()['set']('toolTipEnabled',!![]);m=!![];if(J)clearTimeout(J);if(K)clearTimeout(K);if(h)o();if(f&&f['get']('duration')>0x0){f['bind']('end',w,this);}else{setTimeout(()=>{v['call'](this);},0x0);}F['set']('visible',![]);G['set']('visible',![]);E['set']('visible',![]);this['unbind']('click',n,this);F['unbind']('backgroundClick',u,this);F['unbind']('userInteractionStart',A,this);F['unbind']('userInteractionEnd',B,this,!![]);F['unbind']('resize',p,this);if(b){F['unbind']('click',x,this);F['set']('cursor','default');}G['unbind']('click',u,this);this['resumePlayers'](I,i==null||j);if(j){this['resumeGlobalAudios']();}if(i){this['stopGlobalAudio'](i);}};var v=function(){F['set']('image',null);if(l)l['call'](this);};var w=function(){f['unbind']('end',w,this);v['call'](this);};var x=function(){F['set']('image',y()?a:b);};var y=function(){return F['get']('image')==b;};var z=function(){var L=F['get']('actualWidth')-F['get']('imageLeft')-F['get']('imageWidth')+0xa;var M=F['get']('imageTop')+0xa;if(L<0xa)L=0xa;if(M<0xa)M=0xa;G['set']('right',L);G['set']('top',M);};var A=function(){s();if(K){clearTimeout(K);K=undefined;}else{G['set']('visible',![]);}};var B=function(){t['call'](this);if(!m){K=setTimeout(C,0x12c);}};var C=function(){K=undefined;G['set']('visible',!![]);z();};var D=function(L){var M=L['get']('data');if(M&&'extraLevels'in M){var N=this['rootPlayer']['createInstance'](L['get']('class'));var O=M['extraLevels'];for(var P=0x0;P0x0){var w=j['get']('imageWidth');var x=j['get']('imageHeight');a['bind']('showEnd',v,this,!![]);a['set']('showDuration',0x1);a['set']('popupMaxWidth',w);a['set']('popupMaxHeight',x);a['set']('visible',!![]);}else{a['set']('showDuration',k);if(h)h();}this['getMainViewer']()['set']('toolTipEnabled',!![]);};a['bind']('showEnd',q,this,!![]);}else{var s=function(){this['resumePlayers'](n,f==null||g);if(g){this['resumeGlobalAudios']();}if(f){this['stopGlobalAudio'](f);}if(d){a['set']('image',c);a['unbind']('click',t,this);}a['unbind']('hideEnd',s,this);this['getMainViewer']()['set']('toolTipEnabled',!![]);if(h)h();};var t=function(){a['set']('image',a['get']('image')==c?d:c);};var n=this['pauseCurrentPlayers'](f==null||!g);if(g){this['pauseGlobalAudios'](null,!![]);}if(f){this['playGlobalAudio'](f,!![]);}if(d)a['bind']('click',t,this);a['bind']('hideEnd',s,this,!![]);}a['set']('visible',!![]);};TDV['Tour']['Script']['showPopupPanoramaVideoOverlay']=function(a,b,c,d,e){var f=![];var g=function(){a['unbind']('showEnd',g);k['bind']('click',i,this);j();k['set']('visible',!![]);}['bind'](this);var h=function(){f=!![];if(!a['get']('loop'))i();}['bind'](this);var i=function(){window['resumeAudiosBlocked']=![];this['getMainViewer']()['set']('toolTipEnabled',!![]);a['set']('visible',![]);k['set']('visible',![]);k['unbind']('click',i,this);a['unbind']('end',h,this);a['unbind']('hideEnd',i,this,!![]);this['resumePlayers'](m,!![]);if(c){this['resumeGlobalAudios']();}if(d)d();if(e&&f)e();}['bind'](this);var j=function(){var n=0xa;var o=0xa;k['set']('right',n);k['set']('top',o);}['bind'](this);this['getMainViewer']()['set']('toolTipEnabled',![]);var k=this['closeButtonPopupPanorama'];if(b){for(var l in b){k['set'](l,b[l]);}}window['resumeAudiosBlocked']=!![];var m=this['pauseCurrentPlayers'](!![]);if(c){this['pauseGlobalAudios']();}a['bind']('end',h,this,!![]);a['bind']('showEnd',g,this,!![]);a['bind']('hideEnd',i,this,!![]);a['set']('visible',!![]);};TDV['Tour']['Script']['showWindow']=function(a,b,c){if(a['get']('visible')==!![]){return;}var d=function(){this['getMainViewer']()['set']('toolTipEnabled',!![]);if(c){this['resumeGlobalAudios']();}e();this['resumePlayers'](h,!c);a['unbind']('close',d,this);};var e=function(){a['unbind']('click',e,this);if(f!=undefined){clearTimeout(f);}};var f=undefined;if(b){var g=function(){a['hide']();};a['bind']('click',e,this);f=setTimeout(g,b);}this['getMainViewer']()['set']('toolTipEnabled',![]);if(c){this['pauseGlobalAudios'](null,!![]);}var h=this['pauseCurrentPlayers'](!c);a['bind']('close',d,this);a['show'](this,!![]);};TDV['Tour']['Script']['startModel3DWithCameraSpot']=function(a,b){var c=a['get']('media');var d=window['currentPanoramasWithCameraChanged']==undefined||!(c['get']('id')in window['currentPanoramasWithCameraChanged']);if(!d){return;}var e=c['get']('camera');b=Object['assign']({},b);if(!c['get']('isLoaded')){var f={};for(var h in b){var i='initial'+h['charAt'](0x0)['toUpperCase']()+h['slice'](0x1);f[i]=e['get'](i);b[i]=b[h];e['set'](i,b[i]);delete b[h];}if(window['currentPanoramasWithCameraChanged']==undefined){window['currentPanoramasWithCameraChanged']={};}var j=c['get']('id');window['currentPanoramasWithCameraChanged'][j]=[a];var k=function(){if(j in window['currentPanoramasWithCameraChanged']){delete window['currentPanoramasWithCameraChanged'][j];}a['unbind']('begin',k,this);for(var s in f){e['set'](s,f[s]);}};a['bind']('begin',k,this);}else{for(var h in b){e['set'](h,b[h]);}e['setStoredPosition'](b);}var l=a['get']('player');var m=l['get']('viewerArea');var n=this['getActivePlayersWithViewer'](m);var o=n['find'](function(s){return this['getMediaFromPlayer'](s)['get']('class')['indexOf']('Panorama')!=-0x1;}['bind'](this));var p=c['get']('data');if(o&&p['panoramaLocations']){var q=this['getMediaFromPlayer'](o);var r=_getObject(this,p['panoramaLocations']['find'](s=>q==_getObject(this,_getObject(this,s)['get']('data')['panorama'])));if(r&&!r['get']('forceModelLoading')){r['set']('forceModelLoading',!![]);a['bind']('begin',function s(){a['unbind']('begin',s,this);r['set']('forceModelLoading',![]);},this);}}};TDV['Tour']['Script']['startPanoramaWithCamera']=function(a,b){var c=this['getByClassName']('PlayList');if(c['length']==0x0)return;var d=window['currentPanoramasWithCameraChanged']==undefined||!(a['get']('id')in window['currentPanoramasWithCameraChanged']);var e=[];for(var g=0x0,h=c['length'];g0x0){if(window['currentPanoramasWithCameraChanged']==undefined){window['currentPanoramasWithCameraChanged']={};}var q=a['get']('id');window['currentPanoramasWithCameraChanged'][q]=e;var r=function(){if(q in window['currentPanoramasWithCameraChanged']){delete window['currentPanoramasWithCameraChanged'][q];}for(var t=0x0;t=0x0?this['mainPlayList']['get']('items')[b]['get']('media'):this['getActiveMediaWithViewer'](this['getMainViewer']());if(d!=undefined){var f=d['get']('data');if(f&&f['label']){if(b>=0x0){var h=this['mainPlayList']['get']('items')['reduce'](function(D,E){var F=E['get']('media')['get']('data');return F&&f['label']==F['label']?D+0x1:D;},0x0);if(h!=0x1)c='#media='+(b+0x1);}if(!c)c='#media-name='+encodeURIComponent(f['label']);}else if(b>=0x0){c='#media='+(b+0x1);}}if(d){if(a['includeCurrentView']===!![]){var j=this['getActivePlayerWithViewer'](this['getMainViewer']());if(j){switch(j['get']('class')){case'PanoramaPlayer':var k=j['get']('yaw');var l=j['get']('pitch');var m=j['get']('hfov');if(!isNaN(k)&&!isNaN(l))c+='&yaw='+k['toFixed'](0x2)+'&pitch='+l['toFixed'](0x2);if(!isNaN(m))c+='&fov='+m['toFixed'](0x2);break;case'Model3DPlayer':var n=j['get']('model');var o=n['get']('camera');var p=[];p['push']('yaw='+o['get']('yaw')['toFixed'](0x2));p['push']('pitch='+o['get']('pitch')['toFixed'](0x2));p['push']('x='+o['get']('x')['toFixed'](0x5));p['push']('y='+o['get']('y')['toFixed'](0x5));p['push']('z='+o['get']('z')['toFixed'](0x5));if(o['get']('class')=='OrbitModel3DCamera')p['push']('distance='+o['get']('distance')['toFixed'](0x5));c+='&'+p['join']('&');break;}}}if(a['includeCurrentVisibleHotspots']===!![]){var q=this['getOverlays'](d);var r=[];var s=[];for(var t=0x0,h=q['length'];t0x0)c+='&son='+r['join'](',');if(s['length']>0x0)c+='&hon='+s['join'](',');if(d['get']('class')=='Model3D'){var y=d['get']('variant');if(y)c+='&variant='+y;var z=d['get']('objects');var A=[];var B=[];z['forEach'](function(D){if(D['get']('class')=='InnerModel3DObject')(D['get']('enabled')?A:B)['push'](D['get']('objectId'));});if(A['length']>0x0)c+='&sobjids='+A['join'](',');if(B['length']>0x0)c+='&hobjids='+B['join'](',');}}if(a['includeCurrentMeasureModel3DObjects']===!![]&&d['get']('class')=='Model3D'){var C=[];d['get']('objects')['forEach'](function(D){if(D['get']('class')=='MeasureModel3DObject'&&D['get']('mode')!='create'){var E=[D['get']('data')['id'],D['get']('x'),D['get']('y'),D['get']('z')];D['get']('points')['forEach'](function(F){E['push'](F['get']('x'),F['get']('y'),F['get']('z'));});if(E['length']>0x4){C['push'](E['join'](','));}}});if(C['length']>0x0)c+='&measures='+C['join']('+');}}if(c&&a['setHash']===!![]){location['hash']=c;}return c;};TDV['Tour']['Script']['updateMediaLabelFromPlayList']=function(a,b,c){var d=function(){var f=a['get']('selectedIndex');if(f>=0x0){var g=function(){j['unbind']('begin',g);h(f);};var h=function(k){var l=j['get']('media');var m=l['get']('data');var n=m!==undefined?m['description']:undefined;i(n);};var i=function(k){if(k!==undefined){b['set']('html',''+k+'');}else{b['set']('html','');}var l=b['get']('html');b['set']('visible',l!==undefined&&l);};var j=a['get']('items')[f];if(b['get']('html')){i('Loading...');j['bind']('begin',g);}else{h(f);}}};var e=function(){b['set']('html',undefined);a['unbind']('change',d,this);c['unbind']('stop',e,this);};if(c){c['bind']('stop',e,this);}a['bind']('change',d,this);d();};TDV['Tour']['Script']['updateVideoCues']=function(a,b){var c=a['get']('items')[b];var d=c['get']('media');if(d['get']('cues')['length']==0x0)return;var e=c['get']('player');var f=[];var g=function(){if(a['get']('selectedIndex')!=b){d['unbind']('cueChange',h,this);a['unbind']('change',g,this);}};var h=function(j){var k=j['data']['activeCues'];for(var l=0x0,m=f['length'];le['get']('currentTime')||n['get']('endTime')0x0){g=this['mixObject'](g||{},{'theme':{'window':{'width':undefined,'left':i,'right':i}}});}}var j=this['get']('data')['textToSpeechConfig']['speechOnQuizQuestion']&&!!f['title'];if(j)this['textToSpeech'](f['title'],a);d=c['showQuestion'](a,g);d['then'](function(k){if(j)this['stopTextToSpeech']();this['resumePlayers'](e,!![]);}['bind'](this));}return d;};TDV['Tour']['Script']['quizShowScore']=function(a){var b=this['get']('data');var c=b['quiz'];if(c){if(this['get']('isMobile')){a=a||{};a=this['mixObject'](a,b[this['get']('orientation')=='portrait'?'scorePortraitConfig':'scoreLandscapeConfig']);}return c['showScore'](a);}};TDV['Tour']['Script']['quizShowTimeout']=function(a,b){var c=this['get']('data');var d=c['quiz'];if(d){if(this['get']('isMobile')){b=b||{};b=this['mixObject'](b,c[this['get']('orientation')=='portrait'?'scorePortraitConfig':'scoreLandscapeConfig']);}d['showTimeout'](a,b);}};TDV['Tour']['Script']['stopTextToSpeech']=function(a){if(window['speechSynthesis']&&(a==undefined||this['t2sLastID']==a)){var b=window['speechSynthesis'];if(b['speaking']){b['cancel']();}this['t2sLastID']=undefined;}};TDV['Tour']['Script']['getStateTextToSpeech']=function(a){return this['t2sLastID']==a?'playing':'stopped';};TDV['Tour']['Script']['textToSpeech']=function(a,b,c){if(this['get']('mute')){return;}var d=this['get']('data');var e=d['disableTTS']||![];if(e)return;if(b!=undefined&&this['t2sLastID']!=b||b==undefined){c=c||0x0;if(this['t2sLastID']&&c>this['t2sLastPriority']){return;}var f=d['tour'];var g=d['textToSpeechConfig'];var h=d['localeManager']['currentLocaleID'];if(window['speechSynthesis']){var i=window['speechSynthesis'];if(i['speaking']){i['cancel']();}var j=new SpeechSynthesisUtterance(a);if(h)j['lang']=h;var k;if(g){j['volume']=g['volume'];j['pitch']=g['pitch'];j['rate']=g['rate'];if(g['stopBackgroundAudio'])this['pauseGlobalAudios'](null,!![]);}j['onend']=function(){this['t2sLastID']=null;if(k)clearInterval(k);if(g['stopBackgroundAudio'])this['resumeGlobalAudios']();}['bind'](this);j['onerror']=function(m){console['error']('Text\x20to\x20speech\x20error:\x20',m['error']);}['bind'](this);if(navigator['userAgent']['indexOf']('Chrome')!=-0x1&&!this['get']('isMobile')){k=setInterval(function(){i['pause']();i['resume']();},0xbb8);}i['speak'](j);this['t2sLastPriority']=c;this['t2sLastID']=b;}else if(f['isMobileApp']()){if(!f['isIOS']()){var l=function(m,n){var o={'command':'tts','type':m};if(n)o=this['mixObject'](o,n);android['sendJSON'](JSON['stringify'](o));}['bind'](this);android['onTTSEnd']=function(){this['t2sLastID']=null;if(g['stopBackgroundAudio'])this['resumeGlobalAudios']();android['onTTSEnd']=undefined;}['bind'](this);l('stop');if(g){l('init',{'volume':g['volume'],'pitch':g['pitch'],'rate':g['rate'],'language':h});if(g['stopBackgroundAudio'])this['pauseGlobalAudios'](null,!![]);}l('play',{'text':a,'androidCallback':'onTTSEnd'});}else{console['error']('Text\x20to\x20Speech\x20isn\x27t\x20supported\x20on\x20this\x20browser');}}else{console['error']('Text\x20to\x20Speech\x20isn\x27t\x20supported\x20on\x20this\x20browser');}}};TDV['Tour']['Script']['textToSpeechComponent']=function(a){var b=a['get']('class');var c;if(b=='HTMLText'){var d=a['get']('html');if(d){c=this['htmlToPlainText'](d,{'linkProcess':function(e,f){return f;}});}}else if(b=='Button'){c=a['get']('label');}else if(b=='Label'){c=a['get']('text');}if(c){this['textToSpeech'](c,a['get']('id'));}};TDV['Tour']['Script']['toggleTextToSpeechComponent']=function(a){var b=a['get']('id');if(this['getStateTextToSpeech'](b)!='playing')this['textToSpeechComponent'](a);else this['stopTextToSpeech'](b);};TDV['Tour']['Script']['_initTTSTooltips']=function(){function a(c){var d=c['source'];this['textToSpeech'](d['get']('toolTip'),d['get']('id'),0x1);}function b(c){var d=c['source'];this['stopTextToSpeech'](d['get']('id'));}setTimeout(function(){var c=this['getByClassName']('UIComponent');for(var d=0x0,e=c['length'];d/i);if(n){m=m['substring'](0x0,n['index']);}const o=m['match'](/]*>/i);if(o){m=m['substring'](o['index']+o[0x0]['length'],m['length']);}m=m['replace'](/<(script|style)( [^>]*)*>((?!<\/\1( [^>]*)*>).)*<\/\1>/gi,'');m=m['replace'](/<(\/)?((?!h[1-6]( [^>]*)*>)(?!img( [^>]*)*>)(?!a( [^>]*)*>)(?!ul( [^>]*)*>)(?!ol( [^>]*)*>)(?!li( [^>]*)*>)(?!p( [^>]*)*>)(?!div( [^>]*)*>)(?!td( [^>]*)*>)(?!br( [^>]*)*>)[^>\/])[^<>]*>/gi,'');m=m['replace'](/]*)>/gi,function(q,r){var s='';var t='';var u=/src="([^"]*)"/i['exec'](r);var v=/alt="([^"]*)"/i['exec'](r);if(u!==null){s=u[0x1];}if(v!==null){t=v[0x1];}if(typeof e==='function'){return e(s,t);}if(t===''){return'![image]\x20('+s+')';}return'!['+t+']\x20('+s+')';});function p(){return function(q,r,s,t){var u=0x0;if(s&&/start="([0-9]+)"/i['test'](s)){u=/start="([0-9]+)"/i['exec'](s)[0x1]-0x1;}var v='

'+t['replace'](/]*>(((?!]*>)(?!<\/li>).)*)<\/li>/gi,function(w,x){var y=0x0;var z=x['replace'](/(^|(
))(?!

)/gi,function(){if(r==='o'&&y===0x0){u+=0x1;y+=0x1;return''+u+c(j,i-String(u)['length']);}return''+l;});return z;})+'

';return v;};}if(g==='linebreak'){m=m['replace'](/<\/?ul[^>]*>|<\/?ol[^>]*>|<\/?li[^>]*>/gi,'\x0a');}else if(g==='indention'){while(/<(o|u)l[^>]*>(.*)<\/\1l>/gi['test'](m)){m=m['replace'](/<(o|u)l([^>]*)>(((?!<(o|u)l[^>]*>)(?!<\/(o|u)l>).)*)<\/\1l>/gi,p());}}if(f==='linebreak'){m=m['replace'](/]*>([^<]*)<\/h\1>/gi,'\x0a$2\x0a');}else if(f==='underline'){m=m['replace'](/]*>(((?!<\/h1>).)*)<\/h1>/gi,function(q,r){return'\x0a \x0a'+r+'\x0a'+c('=',r['length'])+'\x0a \x0a';});m=m['replace'](/]*>(((?!<\/h2>).)*)<\/h2>/gi,function(q,r){return'\x0a \x0a'+r+'\x0a'+c('-',r['length'])+'\x0a \x0a';});m=m['replace'](/]*>(((?!<\/h\1>).)*)<\/h\1>/gi,function(q,r,s){return'\x0a \x0a'+s+'\x0a \x0a';});}else if(f==='hashify'){m=m['replace'](/]*>([^<]*)<\/h\1>/gi,function(q,r,s){return'\x0a \x0a'+c('#',r)+'\x20'+s+'\x0a \x0a';});}m=m['replace'](/]*)*>|]*)*>|<\/p( [^>]*)*>|]*)*>|<\/div( [^>]*)*>|]*)*>|<\/td( [^>]*)*>/gi,'\x0a');m=m['replace'](/]*href="([^"]*)"[^>]*>([^<]+)<\/a[^>]*>/gi,function(q,r,s){if(typeof d==='function'){return d(r,s);}return'\x20['+s+']\x20('+r+')\x20';});m=m['replace'](/\n[ \t\f]*/gi,'\x0a');m=m['replace'](/\n\n+/gi,'\x0a');if(k){m=m['replace'](/( |\t)+/gi,'\x20');m=m['replace'](/ /gi,'\x20');}else{m=m['replace'](/( | |\t)+/gi,'\x20');}m=m['replace'](/\n +/gi,'\x0a');m=m['replace'](/^ +/gi,'');while(m['indexOf']('\x0a')===0x0){m=m['substring'](0x1);}if(m['length']===0x0||m['lastIndexOf']('\x0a')!==m['length']-0x1){m+='\x0a';}return m;};TDV['Tour']['Script']['openEmbeddedPDF']=function(a,b){var c=!!window['MSInputMethodContext']&&!!document['documentMode'];if(c){this['openLink'](b,'_blank');return;}var d=a['get']('class');var e=!new RegExp('^(?:[a-z]+:)?//','i')['test'](b);if(e&&d=='WebFrame'){var f=location['origin']+location['pathname'];a['set']('url','lib/pdfjs/web/viewer.html?file='+encodeURIComponent(f['substring'](0x0,f['lastIndexOf']('/'))+'/'+b)+'#0');}else{var g=location['origin']==new URL(b)['origin'];var h=''+'

This\x20browser\x20does\x20not\x20support\x20inline\x20PDFs.\x20Please\x20download\x20the\x20PDF\x20to\x20view\x20it:\x20Download\x20PDF

'+'';var i=/^((?!chrome|android|crios|ipad|iphone).)*safari/i['test'](navigator['userAgent']);var j=''+''+'!function(root,factory){\x22function\x22==typeof\x20define&&define.amd?define([],factory):\x22object\x22==typeof\x20module&&module.exports?module.exports=factory():root.PDFObject=factory()}(this,function(){\x22use\x20strict\x22;if(void\x200===window||void\x200===window.navigator||void\x200===window.navigator.userAgent||void\x200===window.navigator.mimeTypes)return!1;let\x20nav=window.navigator,ua=window.navigator.userAgent,isIE=\x22ActiveXObject\x22in\x20window,isModernBrowser=void\x200!==window.Promise,supportsPdfMimeType=void\x200!==nav.mimeTypes[\x22application/pdf\x22],isMobileDevice=void\x200!==nav.platform&&\x22MacIntel\x22===nav.platform&&void\x200!==nav.maxTouchPoints&&nav.maxTouchPoints>1||/Mobi|Tablet|Android|iPad|iPhone/.test(ua),isSafariDesktop=!isMobileDevice&&void\x200!==nav.vendor&&/Apple/.test(nav.vendor)&&/Safari/.test(ua),isFirefoxWithPDFJS=!(isMobileDevice||!/irefox/.test(ua))&&parseInt(ua.split(\x22rv:\x22)[1].split(\x22.\x22)[0],10)>18,createAXO=function(type){var\x20ax;try{ax=new\x20ActiveXObject(type)}catch(e){ax=null}return\x20ax},supportsPDFs=!isMobileDevice&&(isFirefoxWithPDFJS||supportsPdfMimeType||isIE&&!(!createAXO(\x22AcroPDF.PDF\x22)&&!createAXO(\x22PDF.PdfCtrl\x22))),embedError=function(msg,suppressConsole){return\x20suppressConsole||console.log(\x22[PDFObject]\x20\x22+msg),!1},emptyNodeContents=function(node){for(;node.firstChild;)node.removeChild(node.firstChild)},generatePDFJSMarkup=function(targetNode,url,pdfOpenFragment,PDFJS_URL,id,omitInlineStyles){emptyNodeContents(targetNode);let\x20fullURL=PDFJS_URL+\x22?file=\x22+encodeURIComponent(url)+pdfOpenFragment,div=document.createElement(\x22div\x22),iframe=document.createElement(\x22iframe\x22);return\x20iframe.src=fullURL,iframe.className=\x22pdfobject\x22,iframe.type=\x22application/pdf\x22,iframe.frameborder=\x220\x22,id&&(iframe.id=id),omitInlineStyles||(div.style.cssText=\x22position:\x20absolute;\x20top:\x200;\x20right:\x200;\x20bottom:\x200;\x20left:\x200;\x22,iframe.style.cssText=\x22border:\x20none;\x20width:\x20100%;\x20height:\x20100%;\x22,/*targetNode.style.position=\x22relative\x22,*/targetNode.style.overflow=\x22auto\x22),div.appendChild(iframe),targetNode.appendChild(div),targetNode.classList.add(\x22pdfobject-container\x22),targetNode.getElementsByTagName(\x22iframe\x22)[0]},embed=function(url,targetSelector,options){let\x20selector=targetSelector||!1,opt=options||{},id=\x22string\x22==typeof\x20opt.id?opt.id:\x22\x22,page=opt.page||!1,pdfOpenParams=opt.pdfOpenParams||{},fallbackLink=opt.fallbackLink||!0,width=opt.width||\x22100%\x22,height=opt.height||\x22100%\x22,assumptionMode=\x22boolean\x22!=typeof\x20opt.assumptionMode||opt.assumptionMode,forcePDFJS=\x22boolean\x22==typeof\x20opt.forcePDFJS&&opt.forcePDFJS,supportRedirect=\x22boolean\x22==typeof\x20opt.supportRedirect&&opt.supportRedirect,omitInlineStyles=\x22boolean\x22==typeof\x20opt.omitInlineStyles&&opt.omitInlineStyles,suppressConsole=\x22boolean\x22==typeof\x20opt.suppressConsole&&opt.suppressConsole,forceIframe=\x22boolean\x22==typeof\x20opt.forceIframe&&opt.forceIframe,PDFJS_URL=opt.PDFJS_URL||!1,targetNode=function(targetSelector){let\x20targetNode=document.body;return\x22string\x22==typeof\x20targetSelector?targetNode=document.querySelector(targetSelector):void\x200!==window.jQuery&&targetSelector\x20instanceof\x20jQuery&&targetSelector.length?targetNode=targetSelector.get(0):void\x200!==targetSelector.nodeType&&1===targetSelector.nodeType&&(targetNode=targetSelector),targetNode}(selector),fallbackHTML=\x22\x22,pdfOpenFragment=\x22\x22;if(\x22string\x22!=typeof\x20url)return\x20embedError(\x22URL\x20is\x20not\x20valid\x22,suppressConsole);if(!targetNode)return\x20embedError(\x22Target\x20element\x20cannot\x20be\x20determined\x22,suppressConsole);if(page&&(pdfOpenParams.page=page),pdfOpenFragment=function(pdfParams){let\x20prop,string=\x22\x22;if(pdfParams){for(prop\x20in\x20pdfParams)pdfParams.hasOwnProperty(prop)&&(string+=encodeURIComponent(prop)+\x22=\x22+encodeURIComponent(pdfParams[prop])+\x22&\x22);string&&(string=(string=\x22#\x22+string).slice(0,string.length-1))}return\x20string}(pdfOpenParams),forcePDFJS&&PDFJS_URL)return\x20generatePDFJSMarkup(targetNode,url,pdfOpenFragment,PDFJS_URL,id,omitInlineStyles);if(supportsPDFs||assumptionMode&&isModernBrowser&&!isMobileDevice){return\x20function(embedType,targetNode,targetSelector,url,pdfOpenFragment,width,height,id,omitInlineStyles){emptyNodeContents(targetNode);let\x20embed=document.createElement(embedType);if(embed.src=url+pdfOpenFragment,embed.className=\x22pdfobject\x22,embed.type=\x22application/pdf\x22,id&&(embed.id=id),!omitInlineStyles){let\x20style=\x22embed\x22===embedType?\x22overflow:\x20auto;\x22:\x22border:\x20none;\x22;targetSelector&&targetSelector!==document.body?style+=\x22width:\x20\x22+width+\x22;\x20height:\x20\x22+height+\x22;\x22:style+=\x22position:\x20absolute;\x20top:\x200;\x20right:\x200;\x20bottom:\x200;\x20left:\x200;\x20width:\x20100%;\x20height:\x20100%;\x22,embed.style.cssText=style}return\x20targetNode.classList.add(\x22pdfobject-container\x22),targetNode.appendChild(embed),targetNode.getElementsByTagName(embedType)[0]}(forceIframe||supportRedirect&&isSafariDesktop?\x22iframe\x22:\x22embed\x22,targetNode,targetSelector,url,pdfOpenFragment,width,height,id,omitInlineStyles)}return\x20PDFJS_URL?generatePDFJSMarkup(targetNode,url,pdfOpenFragment,PDFJS_URL,id,omitInlineStyles):(fallbackLink&&(fallbackHTML=\x22string\x22==typeof\x20fallbackLink?fallbackLink:\x22

This\x20browser\x20does\x20not\x20support\x20inline\x20PDFs.\x20Please\x20download\x20the\x20PDF\x20to\x20view\x20it:\x20Download\x20PDF

\x22,targetNode.innerHTML=fallbackHTML.replace(/\x5c[url\x5c]/g,url)),embedError(\x22This\x20browser\x20does\x20not\x20support\x20embedded\x20PDFs\x22,suppressConsole))};return{embed:function(a,b,c){return\x20embed(a,b,c)},pdfobjectversion:\x222.2.3\x22,supportsPDFs:supportsPDFs}});'+'if\x20(typeof\x20module\x20===\x20\x22object\x22\x20&&\x20module.exports)\x20{'+'this.PDFObject\x20=\x20module.exports;'+'}'+'PDFObject.embed(\x22'+b+'\x22,\x20\x22#content\x22,\x20{'+(g?'\x22PDFJS_URL\x22:\x20\x22'+new URL('lib/pdfjs/web/viewer.html',document['baseURI'])['href']+'\x22,\x20':'')+'\x22fallbackLink\x22:\x20\x22'+h+'\x22,'+'\x22forcePDFJS\x22:\x20'+i+'});'+'if(!PDFObject.supportsPDFs\x20&&\x20!'+g+'){'+'\x20var\x20iframeTimerId;'+'\x20function\x20startTimer(){'+'\x20\x20\x20\x20iframeTimerId\x20=\x20window.setTimeout(checkIframeLoaded,\x202000);'+'\x20}'+'\x20function\x20checkIframeLoaded(){\x20\x20'+'\x20\x20\x20\x20var\x20iframe\x20=\x20document.getElementById(\x22googleViewer\x22);'+'\x20\x20\x20\x20iframe.src\x20=\x20iframe.src;'+'\x20\x20\x20\x20iframeTimerId\x20=\x20window.setTimeout(checkIframeLoaded,\x202000);'+'\x20}'+'\x20document.getElementById(\x22googleViewer\x22).addEventListener(\x22load\x22,\x20function(){'+'\x20\x20\x20clearInterval(iframeTimerId);\x20'+'\x20});'+'\x20startTimer();'+'}'+'';if(d=='WebFrame'){a['set']('url','data:text/html;charset=utf-8,'+encodeURIComponent(''+''+''+''+j+''+''));}else if(d=='HTML'){a['set']('content','data:text/html;charset=utf-8,'+encodeURIComponent(j));}}};TDV['Tour']['Script']['enableVR']=function(){var a=this['getMainViewer']();var b=this['getActivePlayerWithViewer'](a);if(b['get']('class')=='Model3DPlayer'&&!this['get']('vrControllerAvailable')){return;}a['set']('viewMode','vr');};TDV['Tour']['Script']['disableVR']=function(){var a=this['getMainViewer']();a['set']('viewMode','standard');};TDV['Tour']['Script']['toggleVR']=function(){var a=this['getMainViewer']();if(a['get']('viewMode')=='standard')this['enableVR']();else this['disableVR']();};TDV['Tour']['Script']['getKey']=function(a){return window[a];};TDV['Tour']['Script']['registerKey']=function(a,b){window[a]=b;};TDV['Tour']['Script']['unregisterKey']=function(a){delete window[a];};TDV['Tour']['Script']['existsKey']=function(a){return a in window;};function _getCurrentActiveModels(){var a=this['getByClassName']('Model3DPlayer');var b=[];for(var c of a){var d=c['get']('model');var e=c['get']('viewerArea');if(d&&d['get']('isLoaded')&&e&&e['get']('visible'))b['push'](d);}return b;}function _onMeasureClick(a){var b=a['source'];var c=b['get']('mode');if(c!='create'){b['set']('mode',c=='view'?'edit':'view');console['log'](b['get']('mode'));}}function _forEachMeasureModel3DObject(a,b){if(!a)a=_getCurrentActiveModels['call'](this);a['forEach'](function(c){c['get']('objects')['forEach'](function(d){if(d['get']('class')=='MeasureModel3DObject')b(c,d);}['bind'](this));}['bind'](this));}function _deleteModel3DObjects(a,b){if(!a)a=_getCurrentActiveModels['call'](this);a['forEach'](function(c){var d=c['get']('objects');var e=d['filter'](function(f){return!b['call'](this,f);});if(e['length']!=d['length']){c['set']('objects',e);d['forEach'](function(f){if(b['call'](this,f))this['disposeInstance'](f);}['bind'](this));}}['bind'](this));}function _cloneMeasureModel3DObject(a){var b=this['clone'](a,a['getAttributeNames']()['filter'](function(c){return c!='id';}));b['set']('data',{'id':a['get']('id')});return b;}TDV['Tour']['Script']['startMeasurement']=function(a,b){if(!a)a=_getCurrentActiveModels['call'](this);var c={},d={},e={};a['forEach'](function(g){var h=g['get']('objects');var i=h['findIndex'](function(n){return n['get']('class')=='MeasureModel3DObject'&&n['get']('mode')=='create';});var j=i!=-0x1;if(j){var k=h[i];if(k['get']('points')['length']==0x0){h['splice'](i,0x1);this['disposeInstance'](k);}else k['set']('mode','view');}h['forEach'](function(n){if(n['get']('class')=='MeasureModel3DObject'&&n['get']('mode')=='edit')n['set']('mode','view');}['bind'](this));var l=_cloneMeasureModel3DObject['call'](this,b);this['cloneBindings'](b,l,'modeChange');l['set']('mode','create');l['bind']('click',_onMeasureClick,this);var m=g['get']('camera');l['bind']('modeChange',function n(){if(l['get']('mode')=='create'){c[g['get']('id')]=g['get']('surfaceSelectionEnabled');g['set']('surfaceSelectionEnabled',!![]);if(m['get']('class')=='FlyOverModel3DCamera'){d[g['get']('id')]=m['get']('doubleClickAction');m['set']('doubleClickAction','none');}}else{l['unbind']('modeChange',n,this);g['set']('surfaceSelectionEnabled',c[g['get']('id')]);if(m['get']('class')=='FlyOverModel3DCamera'){m['set']('doubleClickAction',d[g['get']('id')]);}h['forEach'](function(o){var p=e[o['get']('id')];if(p){o['set']('rollOverEnabled',p['rollOverEnabled']);}});}},this);if(a['length']>0x0){l['bind']('distanceChange',function o(){l['unbind']('distanceChange',o,this);f['call'](this,a['filter'](p=>p!=g));},this);}h['forEach'](function(p){var q=p['get']('id');if(q){e[q]={'rollOverEnabled':p['get']('rollOverEnabled')};p['set']('rollOverEnabled',!![]);}});h=h['concat']();h['push'](l);g['set']('objects',h);}['bind'](this));function f(g){this['stopMeasurement'](g);for(var h of g){var i=h['get']('id');h['set']('surfaceSelectionEnabled',c[i]);if(i in d)h['get']('camera')['set']('doubleClickAction',d[i]);}}};TDV['Tour']['Script']['stopMeasurement']=function(a){_deleteModel3DObjects['call'](this,a,function(b){return b['get']('class')=='MeasureModel3DObject'&&b['get']('mode')=='create'&&b['get']('points')['length']==0x0;});_forEachMeasureModel3DObject['call'](this,a,function(b,c){if(c['get']('mode')=='create'){c['set']('mode','edit');}});};TDV['Tour']['Script']['toggleMeasurement']=function(a,b){if(!a)a=_getCurrentActiveModels['call'](this);var c=a['some'](function(d){var e=d['get']('objects');var f=e['find'](function(g){return g['get']('class')=='MeasureModel3DObject'&&g['get']('mode')=='create';});return f!=null;});if(!c)this['startMeasurement'](a,b);else this['stopMeasurement'](a);};TDV['Tour']['Script']['cleanAllMeasurements']=function(a){_deleteModel3DObjects['call'](this,a,function(b){return b['get']('class')=='MeasureModel3DObject';});};TDV['Tour']['Script']['cleanSelectedMeasurements']=function(a){_deleteModel3DObjects['call'](this,a,function(b){return b['get']('class')=='MeasureModel3DObject'&&b['get']('mode')=='edit';});};TDV['Tour']['Script']['setMeasurementsVisibility']=function(a,b){_forEachMeasureModel3DObject['call'](this,a,function(c,d){d['set']('enabled',b);});};TDV['Tour']['Script']['toggleMeasurementsVisibility']=function(a){_forEachMeasureModel3DObject['call'](this,a,function(b,c){c['set']('enabled',!c['get']('enabled'));});};TDV['Tour']['Script']['setMeasurementUnits']=function(a){_forEachMeasureModel3DObject['call'](this,null,function(b,c){c['set']('units',a);});}; //# sourceMappingURL=script_v2024.0.11.js.map //Generated with v2024.0.11, Sat Nov 2 2024 var tour; var devicesUrl = {"general":"script_general.js?v=1730578383660"}; (function() { var deviceType = ['general']; if(TDV.PlayerAPI.mobile) deviceType.unshift('mobile'); if(TDV.PlayerAPI.device == TDV.PlayerAPI.DEVICE_IPAD) deviceType.unshift('ipad'); var url; for(var i=0; i -1; } function getParams(params) { var queryDict = {}; params.split("&").forEach(function(item) {var k = item.split("=")[0], v = decodeURIComponent(item.split("=")[1]);queryDict[k.toLowerCase()] = v}); return queryDict; } document.addEventListener('DOMContentLoaded', onLoad);