-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscript.js
391 lines (391 loc) · 122 KB
/
script.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
if(!Object['hasOwnProperty']('values')){Object['values']=function(c){return Object['keys'](c)['map'](function(d){return c[d];});};}if(!String['prototype']['startsWith']){String['prototype']['startsWith']=function(e,f){f=f||0x0;return this['indexOf'](e,f)===f;};}TDV['EventDispatcher']=function(){this['_handlers']={};};TDV['EventDispatcher']['prototype']['bind']=function(g,h){if(!(g in this['_handlers']))this['_handlers'][g]=[];this['_handlers'][g]['push'](h);};TDV['EventDispatcher']['prototype']['unbind']=function(i,j){if(i in this['_handlers']){var k=this['_handlers'][i]['indexOf'](j);if(k!=-0x1)this['_handlers'][i]['splice'](k,0x1);}};TDV['EventDispatcher']['prototype']['createNewEvent']=function(l){if(typeof Event==='function')return new Event(l);var m=document['createEvent']('Event');m['initEvent'](l,!![],!![]);return m;};TDV['EventDispatcher']['prototype']['dispatchEvent']=function(n){if(n['type']in this['_handlers']){var o=this['_handlers'][n['type']];for(var p=0x0;p<o['length'];++p){o[p]['call'](window,n);if(n['defaultPrevented'])break;}}};TDV['Tour']=function(q,r){TDV['EventDispatcher']['call'](this);this['player']=undefined;this['_settings']=q;this['_devicesUrl']=r;this['_playersPlayingTmp']=[];this['_isInitialized']=![];this['_isPaused']=![];this['_isRemoteSession']=![];this['_orientation']=undefined;this['_lockedOrientation']=undefined;this['_device']=undefined;Object['defineProperty'](this,'isInitialized',{'get':function(){return this['_isInitialized'];}});Object['defineProperty'](this,'isPaused',{'get':function(){return this['_isPaused'];}});this['_setupRemote']();};TDV['Tour']['DEVICE_GENERAL']='general';TDV['Tour']['DEVICE_MOBILE']='mobile';TDV['Tour']['DEVICE_IPAD']='ipad';TDV['Tour']['DEVICE_VR']='vr';TDV['Tour']['EVENT_TOUR_INITIALIZED']='tourInitialized';TDV['Tour']['EVENT_TOUR_LOADED']='tourLoaded';TDV['Tour']['EVENT_TOUR_ENDED']='tourEnded';TDV['Tour']['prototype']=new TDV['EventDispatcher']();TDV['Tour']['prototype']['dispose']=function(){if(!this['player'])return;if(this['_onHashChange']){window['removeEventListener']('hashchange',this['_onHashChange']);this['_onHashChange']=undefined;}if(this['_onKeyUp']){document['removeEventListener']('keyup',this['_onKeyUp']);this['_onKeyUp']=undefined;}if(this['_onBeforeUnload']){window['removeEventListener']('beforeunload',this['_onBeforeUnload']);this['_onBeforeUnload']=undefined;}var s=this['_getRootPlayer']();if(s!==undefined){s['stopTextToSpeech']();}this['player']['delete']();this['player']=undefined;this['_isInitialized']=![];window['currentGlobalAudios']=undefined;window['pauseGlobalAudiosState']=undefined;window['currentPanoramasWithCameraChanged']=undefined;window['overlaysDispatched']=undefined;};TDV['Tour']['prototype']['load']=function(){if(this['player'])return;var t=function(v){if(v['name']=='begin'){var w=v['data']['source']['get']('camera');if(w&&w['get']('initialSequence')&&w['get']('initialSequence')['get']('movements')['length']>0x0)return;}if(v['sourceClassName']=='MediaAudio'||this['_isInitialized'])return;this['_isInitialized']=!![];u['unbind']('preloadMediaShow',t,this,!![]);u['unbindOnObjectsOf']('PlayListItem','begin',t,this,!![]);u['unbind']('stateChange',t,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 u=this['player']=TDV['PlayerAPI']['create'](this['_settings']);u['bind']('preloadMediaShow',t,this,!![]);u['bind']('stateChange',t,this,!![]);u['bindOnObjectsOf']('PlayListItem','begin',t,this,!![]);u['bindOnObject']('rootPlayer','start',function(x){var y=x['data']['source'];y['get']('data')['tour']=this;var z=window['navigator']['language']||window['navigator']['userLanguage']||'en';var A=y['get']('data')['locales']||{};var B=y['get']('data')['defaultLocale']||z;var C=this['locManager']=new TDV['Tour']['LocaleManager'](y,A,B,this['_settings']['get'](TDV['PlayerSettings']['QUERY_STRING_PARAMETERS']));y['get']('data')['localeManager']=C;var D=function(){var O=y['get']('data');if(!('updateText'in O)){O['updateText']=function(S){var T=S[0x0]['split']('.');if(T['length']==0x2){var U=C['trans']['apply'](C,S);var V=S[0x1]||y;if(typeof V=='string'){var W=V['split']('.');V=y[W['shift']()];for(var X=0x0;X<W['length']-0x1;++X){if(V!=undefined)V='get'in V?V['get'](W[X]):V[W[X]];}if(V!=undefined){var Y=W[W['length']-0x1];if(Array['isArray'](V)){for(var Z=0x0;Z<V['length'];++Z){this['setValue'](V[Z],Y,U);}}else this['setValue'](V,Y,U);}}else{V=V[T[0x0]];this['setValue'](V,T[0x1],U);}}}['bind'](y);}var P=O['translateObjs'];var Q=O['updateText'];var R=function(){for(var a0 in P){Q(P[a0]);}};R();R();};this['locManager']['bind'](TDV['Tour']['LocaleManager']['EVENT_LOCALE_CHANGED'],D['bind'](this));var E=this['_getParams'](location['search']['substr'](0x1));E=y['mixObject'](E,this['_getParams'](location['hash']['substr'](0x1)));var F=E['language'];if(!F||!this['locManager']['hasLocale'](E['language'])){if(y['get']('data')['forceDefaultLocale'])F=B;else F=z;}this['setLocale'](F);var G=y['getByClassName']('HotspotPanoramaOverlay');for(var I=0x0,J=G['length'];I<J;++I){var K=G[I];var L=K['get']('data');if(!L)K['set']('data',L={});L['defaultEnabledValue']=K['get']('enabled');}this['_setMediaFromURL'](E);this['_updateParams'](E,![]);if(this['isMobile']()&&typeof this['_devicesUrl'][this['_device']]=='object'){var M=function(){if(!y['isCardboardViewMode']()&&this['_getOrientation']()!=this['_orientation']){this['reload']();return!![];}return![];};if(M['call'](this))return;var N=y['getByClassName']('PanoramaPlayer');for(var I=0x0;I<N['length'];++I){N[I]['bind']('viewModeChange',M,this);}y['bind']('orientationChange',M,this);}this['_onHashChange']=function(){var a1=this['_getParams'](location['hash']['substr'](0x1));this['_setMediaFromURL'](a1,![]);this['_updateParams'](a1,!![]);}['bind'](this);this['_onKeyUp']=function(a2){if(a2['ctrlKey']&&a2['shiftKey']&&a2['key']['toLowerCase']()=='u'){this['updateDeepLink']();y['copyToClipboard'](location['href']);}}['bind'](this);this['_onBeforeUnload']=function(a3){y['stopTextToSpeech']();};window['addEventListener']('hashchange',this['_onHashChange']);window['addEventListener']('beforeunload',this['_onBeforeUnload']);document['addEventListener']('keyup',this['_onKeyUp']);y['bind']('tourEnded',function(){this['dispatchEvent'](this['createNewEvent'](TDV['Tour']['EVENT_TOUR_ENDED']));},this,!![]);y['bind']('mute_changed',function(){if(this['get']('mute'))this['stopTextToSpeech']();},y,!![]);this['dispatchEvent'](this['createNewEvent'](TDV['Tour']['EVENT_TOUR_INITIALIZED']));},this,!![]);window['addEventListener']('message',function(a4){var a5=a4['data'];if(a5=='pauseTour')a5='pause';else if(a5=='resumeTour')a5='resume';else return;this[a5]['apply'](this);}['bind'](this));};TDV['Tour']['prototype']['pause']=function(){this['_isPaused']=!![];if(!this['_isInitialized'])return;var a6=function(af){var ag=af['source'];if(!this['_isPaused'])ag['unbind']('stateChange',a6,this);else if(ag['get']('state')=='playing'){ag['pause']();}};var a7=this['player']['getByClassName']('PlayList');for(var a8=0x0,a9=a7['length'];a8<a9;a8++){var aa=a7[a8];var ab=aa['get']('selectedIndex');if(ab!=-0x1){var ac=aa['get']('items')[ab];var ad=ac['get']('player');if(ad&&ad['pause']){if(ad['get']('state')!='playing')ad['bind']('stateChange',a6,this);else ad['pause']();this['_playersPlayingTmp']['push'](ad);}}}var ae=this['_getRootPlayer']();ae['pauseGlobalAudios']();ae['quizPauseTimer']();};TDV['Tour']['prototype']['resume']=function(){this['_isPaused']=![];if(!this['_isInitialized'])return;while(this['_playersPlayingTmp']['length']){var ah=this['_playersPlayingTmp']['pop']();ah['play']();}var ai=this['_getRootPlayer']();ai['resumeGlobalAudios']();ai['quizResumeTimer']();};TDV['Tour']['prototype']['reload']=function(){this['_orientation']=this['_getOrientation']();this['updateDeepLink']();this['dispose']();this['load']();};TDV['Tour']['prototype']['setMediaByIndex']=function(aj){var ak=this['_getRootPlayer']();if(ak!==undefined){return ak['setMainMediaByIndex'](aj);}};TDV['Tour']['prototype']['setMediaByName']=function(al){var am=this['_getRootPlayer']();if(am!==undefined){return am['setMainMediaByName'](al);}};TDV['Tour']['prototype']['triggerOverlayByName']=function(an,ao,ap){var aq=this['_getRootPlayer']();if(!ap)ap='click';if(aq!==undefined&&ap){var ar=aq['getPanoramaOverlayByName'](an,ao);if(ar){aq['triggerOverlay'](ar,ap);}}};TDV['Tour']['prototype']['focusOverlayByName']=function(as,at){var au=this['_getRootPlayer']();if(au!==undefined){var av=au['getPanoramaOverlayByName'](as['get']('media'),at);if(av){var aw=av['get']('class');var ax=aw=='VideoPanoramaOverlay'||aw=='QuadVideoPanoramaOverlay'?av:av['get']('items')[0x0];var ay,az;aw=ax['get']('class');if(aw=='QuadVideoPanoramaOverlay'||aw=='QuadHotspotPanoramaOverlayImage'){var aA=ax['get']('vertices');var aB=0x0,aC=aA['length'];ay=0x0;az=0x0;while(aB<aC){var aD=aA[aB++];ay+=aD['get']('yaw');az+=aD['get']('pitch');}ay/=0x4;az/=0x4;}else{ay=ax['get']('yaw');az=ax['get']('pitch');}var aE=au['getPlayListWithItem'](as);if(aE){var aF=function(){au['setPanoramaCameraWithSpot'](aE,as,ay,az);};if(!this['_isInitialized']){var aG=function(){as['unbind']('begin',aG,this);aF();};as['bind']('begin',aG,this);}else{aF();}}}}};TDV['Tour']['prototype']['setComponentsVisibilityByTags']=function(aH,aI,aJ){var aK=this['_getRootPlayer']();if(aK!==undefined){var aL=aK['getComponentsByTags'](aH,aJ);for(var aM=0x0,aN=aL['length'];aM<aN;++aM){aL[aM]['set']('visible',aI);}}};TDV['Tour']['prototype']['setOverlaysVisibilityByTags']=function(aO,aP,aQ){var aR=this['_getRootPlayer']();if(aR!==undefined){var aS=aR['getOverlaysByTags'](aO,aQ);aR['setOverlaysVisibility'](aS,aP);}};TDV['Tour']['prototype']['setOverlaysVisibilityByName']=function(aT,aU){var aV=this['_getRootPlayer']();if(aV!==undefined){var aW=aV['getActiveMediaWithViewer'](aV['getMainViewer']());var aX=[];for(var aY=0x0,aZ=aT['length'];aY<aZ;++aY){var b0=aV['getPanoramaOverlayByName'](aW,aT[aY]);if(b0)aX['push'](b0);}aV['setOverlaysVisibility'](aX,aU);}};TDV['Tour']['prototype']['updateDeepLink']=function(){var b1=this['_getRootPlayer']();if(b1!==undefined){b1['updateDeepLink'](!![],!![],!![]);}};TDV['Tour']['prototype']['setLocale']=function(b2){var b3=this['_getRootPlayer']();if(b3!==undefined&&this['locManager']!==undefined){this['locManager']['setLocale'](b2);}};TDV['Tour']['prototype']['getLocale']=function(){var b4=this['_getRootPlayer']();return b4!==undefined&&this['locManager']!==undefined?this['locManager']['currentLocaleID']:undefined;};TDV['Tour']['prototype']['isMobile']=function(){return TDV['PlayerAPI']['mobile'];};TDV['Tour']['prototype']['isIPhone']=function(){return TDV['PlayerAPI']['device']==TDV['PlayerAPI']['DEVICE_IPHONE'];};TDV['Tour']['prototype']['isIPad']=function(){return TDV['PlayerAPI']['device']==TDV['PlayerAPI']['DEVICE_IPAD'];};TDV['Tour']['prototype']['isIOS']=function(){return this['isIPad']()||this['isIPhone']();};TDV['Tour']['prototype']['isMobileApp']=function(){return navigator['userAgent']['indexOf']('App/TDV')!=-0x1;};TDV['Tour']['prototype']['getNotchValue']=function(){var b5=document['documentElement'];b5['style']['setProperty']('--notch-top','env(safe-area-inset-top)');b5['style']['setProperty']('--notch-right','env(safe-area-inset-right)');b5['style']['setProperty']('--notch-bottom','env(safe-area-inset-bottom)');b5['style']['setProperty']('--notch-left','env(safe-area-inset-left)');var b6=window['getComputedStyle'](b5);return parseInt(b6['getPropertyValue']('--notch-top')||'0',0xa)||parseInt(b6['getPropertyValue']('--notch-right')||'0',0xa)||parseInt(b6['getPropertyValue']('--notch-bottom')||'0',0xa)||parseInt(b6['getPropertyValue']('--notch-left')||'0',0xa);};TDV['Tour']['prototype']['hasNotch']=function(){return this['getNotchValue']()>0x0;};TDV['Tour']['prototype']['_getOrientation']=function(){var b7=this['_getRootPlayer']();if(b7){return b7['get']('orientation');}else if(this['_lockedOrientation']){return this['_lockedOrientation'];}else{return TDV['PlayerAPI']['getOrientation']();}};TDV['Tour']['prototype']['_getParams']=function(b8){var b9={};b8['split']('&')['forEach'](function(ba){var bb=ba['split']('=')[0x0],bc=decodeURIComponent(ba['split']('=')[0x1]);b9[bb['toLowerCase']()]=bc;});return b9;};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 bd=document['getElementById']('metaViewport');if(bd){var be=this['_devicesUrl'][this['_device']];var bf=0x1;if(typeof be=='object'&&this['_orientation']in be&&this['_orientation']==TDV['PlayerAPI']['ORIENTATION_LANDSCAPE']||this['_device']==TDV['Tour']['DEVICE_GENERAL']){bf=bd['getAttribute']('data-tdv-general-scale')||0.5;}var bg=bd['getAttribute']('content');bg=bg['replace'](/initial-scale=(\d+(\.\d+)?)/,function(bh,bi){return'initial-scale='+bf;});bd['setAttribute']('content',bg);}}};TDV['Tour']['prototype']['_getScriptUrl']=function(){var bj=this['_devicesUrl'][this['_device']];if(typeof bj=='object'){if(this['_orientation']in bj){bj=bj[this['_orientation']];}}return bj;};TDV['Tour']['prototype']['_getDevice']=function(){var bk=TDV['Tour']['DEVICE_GENERAL'];if(!this['_isRemoteSession']&&this['isMobile']()){if(this['isIPad']()&&TDV['Tour']['DEVICE_IPAD']in this['_devicesUrl'])bk=TDV['Tour']['DEVICE_IPAD'];else if(TDV['Tour']['DEVICE_MOBILE']in this['_devicesUrl'])bk=TDV['Tour']['DEVICE_MOBILE'];}return bk;};TDV['Tour']['prototype']['_setMediaFromURL']=function(bl){var bm=this['_getRootPlayer']();var bn=bm['getActivePlayerWithViewer'](bm['getMainViewer']());var bo=bn?bm['getMediaFromPlayer'](bn):undefined;var bp=undefined;if('media'in bl){var bq=bl['media'];var br=Number(bq);bp=isNaN(br)?this['setMediaByName'](bq):this['setMediaByIndex'](br-0x1);}else if('media-index'in bl){bp=this['setMediaByIndex'](parseInt(bl['media-index'])-0x1);}else if('media-name'in bl){bp=this['setMediaByName'](bl['media-name']);}if(bp==undefined){bp=this['setMediaByIndex'](0x0);}if(bp!=undefined){var bs=bp['get']('player');var bt=function(){if('trigger-overlay-name'in bl){this['triggerOverlayByName'](bp['get']('media'),bl['trigger-overlay-name'],bl['trigger-overlay-event']);}if('focus-overlay-name'in bl){this['focusOverlayByName'](bp,bl['focus-overlay-name']);}else if('yaw'in bl||'pitch'in bl){var bx=parseFloat(bl['yaw'])||undefined;var by=parseFloat(bl['pitch'])||undefined;var bz=bm['getPlayListWithItem'](bp);if(bz)bm['setPanoramaCameraWithSpot'](bz,bp,bx,by);}}['bind'](this);if(bs){var bu=bs['get']('viewerArea')==bm['getMainViewer']();var bv=bm['getMediaFromPlayer'](bs);if(bu&&bo==bp['get']('media')||!bu&&bv==bp['get']('media')){bt();return bp!=undefined;}}var bw=function(){bp['unbind']('begin',bw,this);bt();};bp['bind']('begin',bw,bm);}return bp!=undefined;};TDV['Tour']['prototype']['_setupRemote']=function(){if(this['isMobile']()&&TDV['Remote']!=undefined){var bA=function(){var bB=undefined;var bC=function(){var bF=this['_getRootPlayer']();bB=bF['get']('lockedOrientation');bF['set']('lockedOrientation',this['_lockedOrientation']);}['bind'](this);this['_isRemoteSession']=!![];this['_lockedOrientation']=TDV['PlayerAPI']['ORIENTATION_LANDSCAPE'];if(this['_device']!=TDV['Tour']['DEVICE_GENERAL']){var bD=function(){bC();this['unbind'](TDV['Tour']['EVENT_TOUR_INITIALIZED'],bD);}['bind'](this);this['bind'](TDV['Tour']['EVENT_TOUR_INITIALIZED'],bD);this['reload']();}else{bC();}var bE=function(){this['_isRemoteSession']=![];this['_getRootPlayer']()['set']('lockedOrientation',bB);TDV['Remote']['unbind'](TDV['Remote']['EVENT_CALL_END'],bE);var bG=this['_getScriptUrl']();if(this['_currentScriptUrl']!=bG)this['reload']();}['bind'](this);TDV['Remote']['bind'](TDV['Remote']['EVENT_CALL_END'],bE);}['bind'](this);TDV['Remote']['bind'](TDV['Remote']['EVENT_CALL_BEGIN'],bA);}};TDV['Tour']['prototype']['_updateParams']=function(bH,bI){if(bI&&'language'in bH){var bJ=bH['language'];if(this['locManager']['hasLocale'](bJ)){this['setLocale'](bJ);}}var bK=function(bL,bM,bN){var bO=bM['split'](',');for(var bP=0x0,bQ=bO['length'];bP<bQ;++bP){bL['call'](this,bO[bP]['split']('+'),bN,'and');}};if('hide-components-tags'in bH||'hct'in bH)bK['call'](this,this['setComponentsVisibilityByTags'],bH['hide-components-tags']||bH['hct'],![]);if('show-components-tags'in bH||'sct'in bH)bK['call'](this,this['setComponentsVisibilityByTags'],bH['show-components-tags']||bH['sct'],!![]);if('hide-overlays-tags'in bH||'hot'in bH)bK['call'](this,this['setOverlaysVisibilityByTags'],bH['hide-overlays-tags']||bH['hot'],![]);if('show-overlays-tags'in bH||'sot'in bH)bK['call'](this,this['setOverlaysVisibilityByTags'],bH['show-overlays-tags']||bH['sot'],!![]);if('hide-overlays-names'in bH||'hon'in bH)this['setOverlaysVisibilityByName'](decodeURIComponent(bH['hide-overlays-names']||bH['hon'])['split'](','),![]);if('show-overlays-names'in bH||'son'in bH)this['setOverlaysVisibilityByName'](decodeURIComponent(bH['show-overlays-names']||bH['son'])['split'](','),!![]);};TDV['Tour']['LocaleManager']=function(bR,bS,bT,bU){TDV['EventDispatcher']['call'](this);this['rootPlayer']=bR;this['locales']={};this['defaultLocale']=bT;this['queryParam']=bU;this['currentLocaleMap']={};this['currentLocaleID']=undefined;for(var bV in bS){this['registerLocale'](bV,bS[bV]);}};TDV['Tour']['LocaleManager']['EVENT_LOCALE_CHANGED']='localeChanged';TDV['Tour']['LocaleManager']['prototype']=new TDV['EventDispatcher']();TDV['Tour']['LocaleManager']['prototype']['registerLocale']=function(bW,bX){var bY=[bW,bW['split']('-')[0x0]];for(var bZ=0x0;bZ<bY['length'];++bZ){bW=bY[bZ];if(!(bW in this['locales'])){this['locales'][bW]=bX;}}};TDV['Tour']['LocaleManager']['prototype']['unregisterLocale']=function(c0){delete this['locales'][c0];if(c0==this['currentLocaleID']){this['setLocale'](this['defaultLocale']);}};TDV['Tour']['LocaleManager']['prototype']['hasLocale']=function(c1){return c1 in this['locales'];};TDV['Tour']['LocaleManager']['prototype']['setLocale']=function(c2){var c3=undefined;var c4=c2['split']('-')[0x0];var c5=[c2,c4];for(var c6=0x0;c6<c5['length'];++c6){var c8=c5[c6];if(c8 in this['locales']){c3=c8;break;}}if(c3===undefined){for(var c8 in this['locales']){if(c8['indexOf'](c4)==0x0){c3=c8;break;}}}if(c3===undefined){c3=this['defaultLocale'];}var c9=this['locales'][c3];if(c9!==undefined&&this['currentLocaleID']!=c3){this['currentLocaleID']=c3;var ca=this;if(typeof c9=='string'){var cb=new XMLHttpRequest();cb['onreadystatechange']=function(){if(cb['readyState']==0x4){if(cb['status']==0xc8){ca['locales'][c3]=ca['currentLocaleMap']=ca['_parsePropertiesContent'](cb['responseText']);ca['dispatchEvent'](ca['createNewEvent'](TDV['Tour']['LocaleManager']['EVENT_LOCALE_CHANGED']));}else{throw c9+'\x20can\x27t\x20be\x20loaded';}}};var cc=c9;if(this['queryParam'])cc+=(cc['indexOf']('?')==-0x1?'?':'&')+this['queryParam'];cb['open']('GET',cc);cb['send']();}else{this['currentLocaleMap']=c9;this['dispatchEvent'](this['createNewEvent'](TDV['Tour']['LocaleManager']['EVENT_LOCALE_CHANGED']));}}};TDV['Tour']['LocaleManager']['prototype']['trans']=function(cd){var ce=this['currentLocaleMap'][cd];if(ce&&arguments['length']>0x2){var cf=typeof arguments[0x2]=='object'?arguments[0x2]:undefined;var cg=arguments;function ch(ci){return/^\d+$/['test'](ci);}ce=ce['replace'](/\{\{([\w\.]+)\}\}/g,function(cj,ck){if(ch(ck))ck=cg[parseInt(ck)+0x1];else if(cf!==undefined)ck=cf[ck];if(typeof ck=='string')ck=this['currentLocaleMap'][ck]||ck;else if(typeof ck=='function')ck=ck['call'](this['rootPlayer']);return ck!==undefined?ck:'';}['bind'](this));}return ce;};TDV['Tour']['LocaleManager']['prototype']['_parsePropertiesContent']=function(cl){cl=cl['replace'](/(^|\n)#[^\n]*/g,'');var cm={};var cn=cl['split']('\x0a');for(var co=0x0,cp=cn['length'];co<cp;++co){var cq=cn[co]['trim']();if(cq['length']==0x0){continue;}var cr=cq['indexOf']('=');if(cr==-0x1){console['error']('Locale\x20parser:\x20Invalid\x20line\x20'+co);continue;}var cs=cq['substr'](0x0,cr)['trim']();var ct=cq['substr'](cr+0x1)['trim']();var cu;while((cu=ct['lastIndexOf']('\x5c'))!=-0x1&&cu==ct['length']-0x1&&++co<cp){ct=ct['substr'](0x0,ct['length']-0x2);cq=cn[co];if(cq['length']==0x0)break;ct+='\x0a'+cq;ct=ct['trim']();}cm[cs]=ct;}return cm;};TDV['Tour']['HistoryData']=function(cv){this['playList']=cv;this['list']=[];this['pointer']=-0x1;};TDV['Tour']['HistoryData']['prototype']['add']=function(cw){if(this['pointer']<this['list']['length']&&this['list'][this['pointer']]==cw){return;}++this['pointer'];this['list']['splice'](this['pointer'],this['list']['length']-this['pointer'],cw);};TDV['Tour']['HistoryData']['prototype']['back']=function(){if(!this['canBack']())return;this['playList']['set']('selectedIndex',this['list'][--this['pointer']]);};TDV['Tour']['HistoryData']['prototype']['forward']=function(){if(!this['canForward']())return;this['playList']['set']('selectedIndex',this['list'][++this['pointer']]);};TDV['Tour']['HistoryData']['prototype']['canBack']=function(){return this['pointer']>0x0;};TDV['Tour']['HistoryData']['prototype']['canForward']=function(){return this['pointer']>=0x0&&this['pointer']<this['list']['length']-0x1;};TDV['Tour']['Script']=function(){};TDV['Tour']['Script']['assignObjRecursively']=function(cx,cy){for(var cz in cx){var cA=cx[cz];if(typeof cA=='object'&&cA!==null)this['assignObjRecursively'](cx[cz],cy[cz]||(cy[cz]={}));else cy[cz]=cA;}return cy;};TDV['Tour']['Script']['autotriggerAtStart']=function(cB,cC,cD){var cE=function(cF){cC();if(cD==!![])cB['unbind']('change',cE,this);};cB['bind']('change',cE,this);};TDV['Tour']['Script']['changeBackgroundWhilePlay']=function(cG,cH,cI){var cJ=function(){cK['unbind']('stop',cJ,this);if(cI==cM['get']('backgroundColor')&&cP==cM['get']('backgroundColorRatios')){cM['set']('backgroundColor',cN);cM['set']('backgroundColorRatios',cO);}};var cK=cG['get']('items')[cH];var cL=cK['get']('player');var cM=cL['get']('viewerArea');var cN=cM['get']('backgroundColor');var cO=cM['get']('backgroundColorRatios');var cP=[0x0];if(cI!=cN||cP!=cO){cM['set']('backgroundColor',cI);cM['set']('backgroundColorRatios',cP);cK['bind']('stop',cJ,this);}};TDV['Tour']['Script']['changeOpacityWhilePlay']=function(cQ,cR,cS){var cT=function(){cU['unbind']('stop',cT,this);if(cX==cW['get']('backgroundOpacity')){cW['set']('opacity',cX);}};var cU=cQ['get']('items')[cR];var cV=cU['get']('player');var cW=cV['get']('viewerArea');var cX=cW['get']('backgroundOpacity');if(cS!=cX){cW['set']('backgroundOpacity',cS);cU['bind']('stop',cT,this);}};TDV['Tour']['Script']['changePlayListWithSameSpot']=function(cY,cZ){var d0=cY['get']('selectedIndex');if(d0>=0x0&&cZ>=0x0&&d0!=cZ){var d1=cY['get']('items')[d0];var d2=cY['get']('items')[cZ];var d3=d1['get']('player');var d4=d2['get']('player');if((d3['get']('class')=='PanoramaPlayer'||d3['get']('class')=='Video360Player')&&(d4['get']('class')=='PanoramaPlayer'||d4['get']('class')=='Video360Player')){var d5=this['cloneCamera'](d2['get']('camera'));this['setCameraSameSpotAsMedia'](d5,d1['get']('media'));var d6=d5['get']('initialPosition');if(d6['get']('yaw')==undefined||d6['get']('pitch')==undefined||d6['get']('hfov')==undefined)return;this['startPanoramaWithCamera'](d2['get']('media'),d5);}}};TDV['Tour']['Script']['clone']=function(d7,d8){var d9=this['rootPlayer']['createInstance'](d7['get']('class'));var da=d7['get']('id');if(da){var db=da+'_'+Math['random']()['toString'](0x24)['substring'](0x2,0xf);d9['set']('id',db);this[db]=d9;}for(var dc=0x0;dc<d8['length'];++dc){var dd=d8[dc];var de=d7['get'](dd);if(de)d9['set'](dd,de);}return d9;};TDV['Tour']['Script']['cloneBindings']=function(df,dg,dh){var di=df['getBindings'](dh);for(var dj=0x0;dj<di['length'];++dj){var dk=di[dj];if(typeof dk=='string')dk=new Function('event',dk);dg['bind'](dh,dk,this);}};TDV['Tour']['Script']['cloneCamera']=function(dl){var dm=this['clone'](dl,['manualRotationSpeed','manualZoomSpeed','automaticRotationSpeed','automaticZoomSpeed','timeToIdle','sequences','draggingFactor','hoverFactor']);var dn=['initialSequence','idleSequence'];for(var dp=0x0;dp<dn['length'];++dp){var dq=dn[dp];var dr=dl['get'](dq);if(dr){var ds=this['clone'](dr,['mandatory','repeat','restartMovementOnUserInteraction','restartMovementDelay']);dm['set'](dq,ds);var dt=dr['get']('movements');var du=[];var dv=['easing','duration','hfovSpeed','pitchSpeed','yawSpeed','path','stereographicFactorSpeed','targetYaw','targetPitch','targetHfov','targetStereographicFactor','hfovDelta','pitchDelta','yawDelta'];for(var dw=0x0;dw<dt['length'];++dw){var dx=dt[dw];var dy=this['clone'](dx,dv);var dz=dx['getBindings']('end');if(dz['length']>0x0){for(var dA=0x0;dA<dz['length'];++dA){var dB=dz[dA];if(typeof dB=='string'){dB=dB['replace'](dl['get']('id'),dm['get']('id'));dB=new Function('event',dB);dy['bind']('end',dB,this);}}}du['push'](dy);}ds['set']('movements',du);}}return dm;};TDV['Tour']['Script']['copyObjRecursively']=function(dC){var dD={};for(var dE in dC){var dF=dC[dE];if(typeof dF=='object'&&dF!==null)dD[dE]=this['copyObjRecursively'](dC[dE]);else dD[dE]=dF;}return dD;};TDV['Tour']['Script']['copyToClipboard']=function(dG){if(navigator['clipboard']){navigator['clipboard']['writeText'](dG);}else{var dH=document['createElement']('textarea');dH['value']=dG;dH['style']['position']='fixed';document['body']['appendChild'](dH);dH['focus']();dH['select']();try{document['execCommand']('copy');}catch(dI){}document['body']['removeChild'](dH);}};TDV['Tour']['Script']['executeFunctionWhenChange']=function(dJ,dK,dL,dM){var dN=undefined;var dO=function(dR){if(dR['data']['previousSelectedIndex']==dK){if(dM)dM['call'](this);if(dL&&dN)dN['unbind']('end',dL,this);dJ['unbind']('change',dO,this);}};if(dL){var dP=dJ['get']('items')[dK];if(dP['get']('class')=='PanoramaPlayListItem'){var dQ=dP['get']('camera');if(dQ!=undefined)dN=dQ['get']('initialSequence');if(dN==undefined)dN=dQ['get']('idleSequence');}else{dN=dP['get']('media');}if(dN){dN['bind']('end',dL,this);}}dJ['bind']('change',dO,this);};TDV['Tour']['Script']['executeJS']=function(dS){try{eval(dS);}catch(dT){console['log']('Javascript\x20error:\x20'+dT);console['log']('\x20\x20\x20code:\x20'+dS);}};TDV['Tour']['Script']['fixTogglePlayPauseButton']=function(dU){var dV=dU['get']('buttonPlayPause');if(typeof dV!=='undefined'&&dU['get']('state')=='playing'){if(!Array['isArray'](dV))dV=[dV];for(var dW=0x0;dW<dV['length'];++dW)dV[dW]['set']('pressed',!![]);}};TDV['Tour']['Script']['getActiveMediaWithViewer']=function(dX){var dY=this['getActivePlayerWithViewer'](dX);if(dY==undefined){return undefined;}return this['getMediaFromPlayer'](dY);};TDV['Tour']['Script']['getActivePlayerWithViewer']=function(dZ){var e0=this['getCurrentPlayers']();var e1=e0['length'];while(e1-->0x0){var e2=e0[e1];if(e2['get']('viewerArea')==dZ){var e3=e2['get']('class');if(e3=='PanoramaPlayer'&&(e2['get']('panorama')!=undefined||e2['get']('video')!=undefined)||(e3=='VideoPlayer'||e3=='Video360Player')&&e2['get']('video')!=undefined||e3=='PhotoAlbumPlayer'&&e2['get']('photoAlbum')!=undefined||e3=='MapPlayer'&&e2['get']('map')!=undefined)return e2;}}return undefined;};TDV['Tour']['Script']['getCurrentPlayerWithMedia']=function(e4){var e5=undefined;var e6=undefined;switch(e4['get']('class')){case'Panorama':case'LivePanorama':case'HDRPanorama':e5='PanoramaPlayer';e6='panorama';break;case'Video360':e5='PanoramaPlayer';e6='video';break;case'PhotoAlbum':e5='PhotoAlbumPlayer';e6='photoAlbum';break;case'Map':e5='MapPlayer';e6='map';break;case'Video':e5='VideoPlayer';e6='video';break;};if(e5!=undefined){var e7=this['getByClassName'](e5);for(var e8=0x0;e8<e7['length'];++e8){var e9=e7[e8];if(e9['get'](e6)==e4){return e9;}}}else{return undefined;}};TDV['Tour']['Script']['getCurrentPlayers']=function(){var ea=this['getByClassName']('PanoramaPlayer');ea=ea['concat'](this['getByClassName']('VideoPlayer'));ea=ea['concat'](this['getByClassName']('Video360Player'));ea=ea['concat'](this['getByClassName']('PhotoAlbumPlayer'));ea=ea['concat'](this['getByClassName']('MapPlayer'));return ea;};TDV['Tour']['Script']['getGlobalAudio']=function(eb){var ec=window['currentGlobalAudios'];if(ec!=undefined&&eb['get']('id')in ec){eb=ec[eb['get']('id')]['audio'];}return eb;};TDV['Tour']['Script']['getMediaByName']=function(ed){var ee=this['getByClassName']('Media');for(var ef=0x0,eg=ee['length'];ef<eg;++ef){var eh=ee[ef];var ei=eh['get']('data');if(ei&&ei['label']==ed){return eh;}}return undefined;};TDV['Tour']['Script']['getMediaByTags']=function(ej,ek){return this['_getObjectsByTags'](ej,['Media'],'tags2Media',ek);};TDV['Tour']['Script']['getAudioByTags']=function(el,em){return this['_getObjectsByTags'](el,['Audio'],'tags2Media',em);};TDV['Tour']['Script']['getOverlaysByTags']=function(en,eo){return this['_getObjectsByTags'](en,['HotspotPanoramaOverlay','HotspotMapOverlay','VideoPanoramaOverlay','QuadVideoPanoramaOverlay','FramePanoramaOverlay','QuadFramePanoramaOverlay'],'tags2Overlays',eo);};TDV['Tour']['Script']['getOverlaysByGroupname']=function(ep){var eq=this['get']('data');var er='groupname2Overlays';var es=eq[er];if(!es){var et=['HotspotPanoramaOverlay','VideoPanoramaOverlay','QuadVideoPanoramaOverlay','FramePanoramaOverlay','QuadFramePanoramaOverlay'];eq[er]=es={};for(var eu=0x0;eu<et['length'];++eu){var ev=et[eu];var ew=this['getByClassName'](ev);for(var ex=0x0,ey=ew['length'];ex<ey;++ex){var ez=ew[ex];var eA=ez['get']('data');if(eA&&eA['group']){var eB=es[eA['group']];if(!eB)es[eA['group']]=eB=[];eB['push'](ez);}}}}return es[ep]||[];};TDV['Tour']['Script']['getRootOverlay']=function(eC){var eD=eC['get']('class');var eE=eD['indexOf']('HotspotPanoramaOverlayArea')!=-0x1;var eF=eD['indexOf']('HotspotPanoramaOverlayImage')!=-0x1;if(eE||eF){var eG=this['get']('data');var eH='overlays';var eI=eG[eH];if(!eI){var eJ=['HotspotPanoramaOverlay'];eI=[];for(var eK=0x0;eK<eJ['length'];++eK){var eL=eJ[eK];eI=eI['concat'](this['getByClassName'](eL));}eG[eH]=eI;}var eM=eE?'areas':'items';for(var eN=0x0,eO=eI['length'];eN<eO;++eN){var eP=eI[eN];var eQ=eP['get'](eM);if(eQ){for(var eR=0x0;eR<eQ['length'];++eR){if(eQ[eR]==eC)return eP;}}}}return eC;};TDV['Tour']['Script']['initOverlayGroupRotationOnClick']=function(eS){var eT=this['getOverlaysByGroupname'](eS);if(eT['length']>0x1){eT['sort'](function(f0,f1){var f2=f0['get']('data')['groupIndex'];var f3=f1['get']('data')['groupIndex'];return f2-f3;});for(var eU=0x0,eV=eT['length'];eU<eV;++eU){var eW=eT[eU];var eX=eT[(eU+0x1)%eV];var eY=eW['get']('class');var eZ=eW;if(eY=='HotspotPanoramaOverlay'){eZ=eW['get']('areas')[0x0];}eZ['bind']('click',function(f4,f5){this['setOverlaysVisibility']([f4],![]);this['setOverlaysVisibility']([f5],!![]);}['bind'](this,eW,eX),this);}}};TDV['Tour']['Script']['getComponentsByTags']=function(f6,f7){return this['_getObjectsByTags'](f6,['UIComponent'],'tags2Components',f7);};TDV['Tour']['Script']['_getObjectsByTags']=function(f8,f9,fa,fb){var fc=this['get']('data');var fd=fc[fa];if(!fd){fc[fa]=fd={};for(var fe=0x0;fe<f9['length'];++fe){var ff=f9[fe];var fg=this['getByClassName'](ff);for(var fi=0x0,fk=fg['length'];fi<fk;++fi){var fm=fg[fi];var fn=fm['get']('data');if(fn&&fn['tags']){var fo=fn['tags'];for(var fr=0x0,fs=fo['length'];fr<fs;++fr){var ft=fo[fr];if(ft in fd)fd[ft]['push'](fm);else fd[ft]=[fm];}}}}}var fu=undefined;fb=fb||'and';for(var fi=0x0,fk=f8['length'];fi<fk;++fi){var fv=fd[f8[fi]];if(!fv)continue;if(!fu)fu=fv['concat']();else{if(fb=='and'){for(var fr=fu['length']-0x1;fr>=0x0;--fr){if(fv['indexOf'](fu[fr])==-0x1)fu['splice'](fr,0x1);}}else if(fb=='or'){for(var fr=fv['length']-0x1;fr>=0x0;--fr){var fm=fv[fr];if(fu['indexOf'](fm)==-0x1)fu['push'](fm);}}}}return fu||[];};TDV['Tour']['Script']['getComponentByName']=function(fw){var fx=this['getByClassName']('UIComponent');for(var fy=0x0,fz=fx['length'];fy<fz;++fy){var fA=fx[fy];var fB=fA['get']('data');if(fB!=undefined&&fB['name']==fw){return fA;}}return undefined;};TDV['Tour']['Script']['getMainViewer']=function(){var fC='MainViewer';return this[fC]||this[fC+'_mobile'];};TDV['Tour']['Script']['getMediaFromPlayer']=function(fD){switch(fD['get']('class')){case'PanoramaPlayer':return fD['get']('panorama')||fD['get']('video');case'VideoPlayer':case'Video360Player':return fD['get']('video');case'PhotoAlbumPlayer':return fD['get']('photoAlbum');case'MapPlayer':return fD['get']('map');}};TDV['Tour']['Script']['getMediaWidth']=function(fE){switch(fE['get']('class')){case'Video360':var fF=fE['get']('video');if(fF instanceof Array){var fG=0x0;for(var fH=0x0;fH<fF['length'];fH++){var fI=fF[fH];if(fI['get']('width')>fG)fG=fI['get']('width');}return fG;}else{return fI['get']('width');}default:return fE['get']('width');}};TDV['Tour']['Script']['getMediaHeight']=function(fJ){switch(fJ['get']('class')){case'Video360':var fK=fJ['get']('video');if(fK instanceof Array){var fL=0x0;for(var fM=0x0;fM<fK['length'];fM++){var fN=fK[fM];if(fN['get']('height')>fL)fL=fN['get']('height');}return fL;}else{return fN['get']('height');}default:return fJ['get']('height');}};TDV['Tour']['Script']['getOverlays']=function(fO){switch(fO['get']('class')){case'LivePanorama':case'HDRPanorama':case'Panorama':var fP=fO['get']('overlays')['concat']()||[];var fQ=fO['get']('frames');for(var fR=0x0;fR<fQ['length'];++fR){fP=fP['concat'](fQ[fR]['get']('overlays')||[]);}return fP;case'Video360':case'Map':return fO['get']('overlays')||[];default:return[];}};TDV['Tour']['Script']['getPanoramaOverlayByName']=function(fS,fT){var fU=this['getOverlays'](fS);for(var fV=0x0,fW=fU['length'];fV<fW;++fV){var fX=fU[fV];var fY=fX['get']('data');if(fY!=undefined&&fY['label']==fT){return fX;}}return undefined;};TDV['Tour']['Script']['getPanoramaOverlaysByTags']=function(fZ,g0,g1){var g2=[];var g3=this['getOverlays'](fZ);var g4=this['getOverlaysByTags'](g0,g1);for(var g5=0x0,g6=g3['length'];g5<g6;++g5){var g7=g3[g5];if(g4['indexOf'](g7)!=-0x1)g2['push'](g7);}return g2;};TDV['Tour']['Script']['getPixels']=function(g8){var g9=/((\+|-)?d+(.d*)?)(px|vw|vh|vmin|vmax)?/i['exec'](g8);if(g9==undefined){return 0x0;}var gb=parseFloat(g9[0x1]);var gc=g9[0x4];var gd=this['rootPlayer']['get']('actualWidth')/0x64;var ge=this['rootPlayer']['get']('actualHeight')/0x64;switch(gc){case'vw':return gb*gd;case'vh':return gb*ge;case'vmin':return gb*Math['min'](gd,ge);case'vmax':return gb*Math['max'](gd,ge);default:return gb;}};TDV['Tour']['Script']['getPlayListsWithMedia']=function(gf,gg){var gh=[];var gi=this['getByClassName']('PlayList');for(var gj=0x0,gk=gi['length'];gj<gk;++gj){var gl=gi[gj];if(gg&&gl['get']('selectedIndex')==-0x1)continue;var gm=this['getPlayListItemByMedia'](gl,gf);if(gm!=undefined&&gm['get']('player')!=undefined)gh['push'](gl);}return gh;};TDV['Tour']['Script']['_getPlayListsWithViewer']=function(gn){var go=this['getByClassName']('PlayList');var gp=function(gr){var gs=gr['get']('items');for(var gt=gs['length']-0x1;gt>=0x0;--gt){var gu=gs[gt];var gv=gu['get']('player');if(gv!==undefined&&gv['get']('viewerArea')==gn)return!![];}return![];};for(var gq=go['length']-0x1;gq>=0x0;--gq){if(!gp(go[gq]))go['splice'](gq,0x1);}return go;};TDV['Tour']['Script']['getPlayListWithItem']=function(gw){var gx=this['getByClassName']('PlayList');for(var gy=gx['length']-0x1;gy>=0x0;--gy){var gz=gx[gy];var gA=gz['get']('items');for(var gB=gA['length']-0x1;gB>=0x0;--gB){var gC=gA[gB];if(gC==gw)return gz;}}return undefined;};TDV['Tour']['Script']['getFirstPlayListWithMedia']=function(gD,gE){var gF=this['getPlayListsWithMedia'](gD,gE);return gF['length']>0x0?gF[0x0]:undefined;};TDV['Tour']['Script']['getPlayListItemByMedia']=function(gG,gH){var gI=gG['get']('items');for(var gJ=0x0,gK=gI['length'];gJ<gK;++gJ){var gL=gI[gJ];if(gL['get']('media')==gH)return gL;}return undefined;};TDV['Tour']['Script']['getPlayListItemIndexByMedia']=function(gM,gN){var gO=this['getPlayListItemByMedia'](gM,gN);return gO?gM['get']('items')['indexOf'](gO):-0x1;};TDV['Tour']['Script']['getPlayListItems']=function(gP,gQ){var gR=function(){switch(gP['get']('class')){case'Panorama':case'LivePanorama':case'HDRPanorama':return'PanoramaPlayListItem';case'Video360':return'Video360PlayListItem';case'PhotoAlbum':return'PhotoAlbumPlayListItem';case'Map':return'MapPlayListItem';case'Video':return'VideoPlayListItem';}}();if(gR!=undefined){var gS=this['getByClassName'](gR);for(var gT=gS['length']-0x1;gT>=0x0;--gT){var gU=gS[gT];if(gU['get']('media')!=gP||gQ!=undefined&&gU['get']('player')!=gQ){gS['splice'](gT,0x1);}}return gS;}else{return[];}};TDV['Tour']['Script']['historyGoBack']=function(gV){var gW=this['get']('data')['history'][gV['get']('id')];if(gW!=undefined){gW['back']();}};TDV['Tour']['Script']['historyGoForward']=function(gX){var gY=this['get']('data')['history'][gX['get']('id')];if(gY!=undefined){gY['forward']();}};TDV['Tour']['Script']['init']=function(){var gZ=this['get']('data')['history'];var h0=function(h9){var ha=h9['source'];var hb=ha['get']('selectedIndex');if(hb<0x0)return;var hc=ha['get']('id');if(!gZ['hasOwnProperty'](hc))gZ[hc]=new TDV['Tour']['HistoryData'](ha);gZ[hc]['add'](hb);};var h1=this['getByClassName']('PlayList');for(var h3=0x0,h4=h1['length'];h3<h4;++h3){var h5=h1[h3];h5['bind']('change',h0,this);}if(this['getMainViewer']()['get']('translationTransitionEnabled')){var h6=this['getByClassName']('ThumbnailList');h6=h6['concat'](this['getByClassName']('ThumbnailGrid'));h6=h6['concat'](this['getByClassName']('DropDown'));function hd(he){var hf=he['source']['get']('playList');var hg=hf['get']('selectedIndex');if(hg>=0x0){this['skip3DTransitionOnce'](hf['get']('items')[hg]['get']('player'));}}for(var h3=0x0,h7=h6['length'];h3<h7;++h3){var h8=h6[h3];h8['bind']('change',hd,this);}}};TDV['Tour']['Script']['sendAnalyticsData']=function(hh,hi,hj){if(window['dataLayer']){window['dataLayer']['push']({'event':hi,'label':hj,'category':hh});}if(!this['get']('data')['tour']['player']['cookiesEnabled'])return;if(window['ga']){window['ga']('send','event',hh,hi,hj);}if(window['gtag']){window['gtag']('event',hi,{'category':hh,'label':hj});}};TDV['Tour']['Script']['initAnalytics']=function(){var hl=this['getByClassName']('Panorama');hl=hl['concat'](this['getByClassName']('Video360'));hl=hl['concat'](this['getByClassName']('Map'));for(var ho=0x0,hr=hl['length'];ho<hr;++ho){var hs=hl[ho];var hu=hs['get']('data');var hv=hu?hu['label']:'';var hw=this['getOverlays'](hs);for(var hx=0x0,hy=hw['length'];hx<hy;++hx){var hz=hw[hx];var hA=hz['get']('data')!=undefined?hv+'\x20-\x20'+hz['get']('data')['label']:hv;switch(hz['get']('class')){case'FlatHotspotPanoramaOverlay':case'HotspotPanoramaOverlay':case'HotspotMapOverlay':case'AreaHotspotMapOverlay':var hB=hz['get']('areas');for(var hC=0x0;hC<hB['length'];++hC){hB[hC]['bind']('click',this['sendAnalyticsData']['bind'](this,'Hotspot','click',hA),this,![]);}break;case'CeilingCapPanoramaOverlay':case'TripodCapPanoramaOverlay':hz['bind']('click',this['sendAnalyticsData']['bind'](this,'Cap','click',hA),this,![]);break;case'QuadVideoPanoramaOverlay':case'VideoPanoramaOverlay':hz['bind']('click',this['sendAnalyticsData']['bind'](this,'Hotspot','click',hA),this,![]);hz['bind']('start',this['sendAnalyticsData']['bind'](this,'Hotspot','start',hA),this,![]);break;case'QuadFramePanoramaOverlay':case'FramePanoramaOverlay':hz['bind']('click',this['sendAnalyticsData']['bind'](this,'Hotspot','click',hA),this,![]);break;}}}var hD=this['getByClassName']('UIComponent');for(var ho=0x0,hr=hD['length'];ho<hr;++ho){var hE=hD[ho];var hF=hE['getBindings']('click');if(hF['length']>0x0){var hG=hE['get']('data')['name'];hE['bind']('click',this['sendAnalyticsData']['bind'](this,'Skin','click',hG),this,![]);}}var hH=this['getByClassName']('PlayListItem');var hI={};for(var ho=0x0,hr=hH['length'];ho<hr;++ho){var hJ=hH[ho];var hl=hJ['get']('media');if(!(hl['get']('id')in hI)){var hu=hl['get']('data');hJ['bind']('begin',this['sendAnalyticsData']['bind'](this,'Media','play',hu?hu['label']:undefined),this,![]);hI[hl['get']('id')]=hJ;}}if(TDV['Remote']!=undefined){var hK=undefined;TDV['Remote']['bind'](TDV['Remote']['EVENT_CALL_BEGIN'],function(hL){hK=Date['now']();this['sendAnalyticsData']('Live\x20Guided\x20Tour','Start\x20Call','Guest:\x20'+hL);}['bind'](this));TDV['Remote']['bind'](TDV['Remote']['EVENT_CALL_END'],function(hM){var hN=new Date();hN['setTime'](Date['now']()-hK);this['sendAnalyticsData']('Live\x20Guided\x20Tour','End\x20Call','Guest:\x20'+hM+'\x20Duration:\x20'+hN['toUTCString']()['split']('\x20')[0x4]);}['bind'](this));}};TDV['Tour']['Script']['initQuiz']=function(hO,hP,hQ){var hR={
"question": {
"veil": {
"backgroundColor": "#000000",
"backgroundOpacity": 0.3
},
"window": {
"width": "60%",
"height": "60%",
"backgroundColor": "#ffffff",
"backgroundOpacity": 1,
"borderRadius": 5,
"horizontalAlign": "center",
"minWidth": 500,
"paddingBottom": 20,
"paddingLeft": 20,
"paddingRight": 20,
"paddingTop": 20,
"shadowBlurRadius": 4,
"shadow": true,
"shadowColor": "#000000",
"shadowOpacity": 0.3,
"shadowHorizontalLength": 0,
"shadowVerticalLength": 0,
"shadowSpread": 4,
"title": {
"fontColor": "#000000",
"fontFamily": "Arial",
"fontSize": 20,
"fontWeight": "bold",
"paddingLeft": 50,
"paddingRight": 50,
"paddingBottom": 40,
"paddingTop": 25,
"textAlign": "center"
},
"buttonsContainer": {
"horizontalAlign": "right",
"verticalAlign": "bottom",
"button": {
"backgroundColor": "#000000",
"backgroundOpacity": 0.7,
"borderRadius": 3,
"fontColor": "#ffffff",
"fontFamily": "Arial",
"fontSize": 18,
"fontWeight": "bold",
"horizontalAlign": "center",
"paddingLeft": 25,
"paddingRight": 25,
"paddingTop": 10,
"paddingBottom": 10,
"verticalAlign": "middle"
}
},
"bodyContainer": {
"width": "100%",
"height": "100%",
"gap": 35,
"layout": "horizontal",
"paddingLeft": 30,
"paddingRight": 30,
"paddingBottom": 30
},
"mediaContainer": {
"width": "70%",
"height": "100%",
"buttonNext": {
"iconURL": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAAlCAMAAACAj7KHAAAAA3NCSVQICAjb4U/gAAAAS1BMVEX///8AAAAAAAAAAAAAAACVlZWLi4uDg4MAAAC8vLx8fHx5eXl2dnZ0dHRxcXHDw8PAwMBra2tjY2PY2NiLi4v7+/v5+fn////7+/sWSBTRAAAAGXRSTlMAESIzRFVVVVVmZmZmZmZ3d3d3mZnu7v//nfgMagAAAAlwSFlzAAAK6wAACusBgosNWgAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNui8sowAAAAWdEVYdENyZWF0aW9uIFRpbWUAMDYvMjkvMTUTtAt+AAAAjElEQVQokbXTyRaAIAgFUJHmeTL7/y9Naie+Toti2T0R4suYH4qI0HNKGpGV0iYwuoLFlEzeu0YT2dqH2jtFZHN3UR9T6FamKQi3O6Q+STL2O4r6WR4QcTZfdIQjR6NzttxUaKk2Eb/qdql34HfgbPA8eAdwb3jXD/eD7xTnAGcH5g1n9CHXBv8Ln9UJhXMPrAhUbYMAAAAASUVORK5CYII=",
"width": 25,
"height": 37
},
"buttonPrevious": {
"iconURL": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAAlCAMAAACAj7KHAAAAA3NCSVQICAjb4U/gAAAAS1BMVEX///8AAAAAAAAAAAAAAACVlZWLi4uDg4MAAAC8vLx8fHx5eXl2dnZ0dHRxcXHDw8PAwMBra2tjY2PY2NiLi4v7+/v5+fn////7+/sWSBTRAAAAGXRSTlMAESIzRFVVVVVmZmZmZmZ3d3d3mZnu7v//nfgMagAAAAlwSFlzAAAK6wAACusBgosNWgAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNui8sowAAAAWdEVYdENyZWF0aW9uIFRpbWUAMDYvMjkvMTUTtAt+AAAAkElEQVQokbXSyRaDIAwFUALOQ7W2iP//pQK6CGheF55mmXuYwlPqn0VEUp/uzPd0qAuFvqnsdKEInXVuziTCsDpfraYcxgi25MKh5rsxWHvDhMMIIJWf8EpAeei2CO/CJK8kXR2w5ED6E8B9m0zkNegc8W7ye8AM5LmBWYP/AX8KcgCyA/IGMqrkXJ92239aO3W4D6yL2ECSAAAAAElFTkSuQmCC",
"width": 25,
"height": 37
},
"viewerArea": {
"playbackBarBackgroundColor": "#000000",
"playbackBarBackgroundOpacity": 0.5,
"playbackBarBorderRadius": 0,
"playbackBarBorderSize": 0,
"playbackBarBottom": 5,
"playbackBarHeight": 6,
"playbackBarLeft": 0,
"playbackBarRight": 0,
"playbackBarProgressBackgroundColor": "#3399ff",
"playbackBarProgressOpacity": 0.5,
"playbackBarHeadBackgroundColor": "#cccccc",
"playbackBarHeadBorderColor": "#ffffff",
"playbackBarHeadBorderRadius": 7,
"playbackBarHeadBorderSize": 3,
"playbackBarHeadOpacity": 1,
"playbackBarHeadWidth": 14,
"playbackBarHeadHeight": 14,
"playbackBarHeadShadow": true,
"playbackBarHeadShadowBlurRadius": 2,
"playbackBarHeadShadowColor": "#000000",
"playbackBarHeadShadowHorizontalLength": 0,
"playbackBarHeadShadowOpacity": 0.3,
"playbackBarHeadShadowSpread": 2,
"playbackBarHeadShadowVerticalLength": 0,
"backgroundColor": "#e6e6e6",
"backgroundOpacity": 1
}
},
"optionsContainer": {
"gap": 10,
"width": "30%",
"height": "100%",
"overflow": "scroll",
"contentOpaque": true
},
"option": {
"gap": 10,
"text": {
"fontColor": "#404040",
"fontFamily": "Arial",
"fontSize": 18,
"paddingTop": 9,
"textAlign": "left",
"verticalAlign": "middle",
"selected": {
"fontColor": "#000000",
"fontFamily": "Arial",
"fontSize": 18,
"paddingTop": 9,
"textAlign": "left"
}
},
"label": {
"borderRadius": 19,
"backgroundColor": "#000000",
"backgroundOpacity": 0.2,
"fontColor": "#ffffff",
"fontFamily": "Arial",
"fontSize": 18,
"fontWeight": "bold",
"height": 38,
"horizontalAlign": "center",
"pressedBackgroundOpacity": 1,
"verticalAlign": "middle",
"width": 38,
"correct": {
"borderRadius": 19,
"backgroundColor": "#39b54a",
"backgroundOpacity": 1,
"fontColor": "#ffffff",
"fontFamily": "Arial",
"fontSize": 18,
"fontWeight": "bold",
"height": 38,
"horizontalAlign": "center",
"pressedBackgroundOpacity": 1,
"verticalAlign": "middle",
"width": 38
},
"incorrect": {
"borderRadius": 19,
"backgroundColor": "#ed1c24",
"backgroundOpacity": 1,
"fontColor": "#ffffff",
"fontFamily": "Arial",
"fontSize": 18,
"fontWeight": "bold",
"height": 38,
"horizontalAlign": "center",
"pressedBackgroundOpacity": 1,
"verticalAlign": "middle",
"width": 38
}
}
},
"closeButton": {
"backgroundColor": "#009FE3",
"height": 45,
"iconColor": "#FFFFFF",
"iconLineWidth": 2,
"iconHeight": 18,
"iconWidth": 18,
"width": 45
}
}
},
"score": {
"veil": {
"backgroundColor": "#000000",
"backgroundOpacity": 0.3
},
"window": {
"backgroundColor": "#ffffff",
"horizontalAlign": "center",
"minWidth": 500,
"maxWidth": 1500,
"paddingBottom": 20,
"paddingLeft": 20,
"paddingRight": 20,
"paddingTop": 20,
"shadowBlurRadius": 4,
"shadow": true,
"shadowColor": "#000000",
"shadowOpacity": 0.3,
"shadowHorizontalLength": 0,
"shadowVerticalLength": 0,
"shadowSpread": 4,
"content": {
"width": "100%",
"horizontalAlign": "center"
},
"closeButton": {
"backgroundColor": "#009fe3",
"height": 45,
"iconColor": "#ffffff",
"iconLineWidth": 2,
"iconHeight": 18,
"iconWidth": 18,
"width": 45
},
"title": {
"fontColor": "#000000",
"fontFamily": "Arial",
"fontSize": 50,
"fontWeight": "bold",
"paddingBottom": 15,
"paddingTop": 50,
"textAlign": "center"
},
"description": {
"fontColor": "#000000",
"fontFamily": "Arial",
"fontSize": 16,
"fontWeight": "normal",
"paddingLeft": 100,
"paddingRight": 100,
"paddingBottom": 15,
"paddingTop": 15,
"textAlign": "center"
},
"statsContainer": {
"gap": 20,
"horizontalAlign": "center",
"paddingLeft": 100,
"paddingRight": 100,
"paddingBottom": 15,
"paddingTop": 15,
"verticalAlign": "middle",
"overflow": "scroll",
"contentOpaque": true
},
"stats": {
"borderColor": "#009fe3",
"borderSize": 1,
"borderRadius": 75,
"gap": 0,
"height": 150,
"horizontalAlign": "center",
"layout": "vertical",
"verticalAlign": "middle",
"minWidth": 150,
"title": {
"fontColor": "#000000",
"fontFamily": "Arial",
"fontSize": 20,
"fontWeight": "normal",
"paddingTop": 10,
"paddingLeft": 5,
"paddingRight": 5
},
"mainValue": {
"fontColor": "#000000",
"fontFamily": "Arial",
"fontSize": 40,
"fontWeight": "bold"
},
"secondaryValue": {
"fontColor": "#000000",
"fontFamily": "Arial",
"fontSize": 20,
"fontWeight": "bold"
},
"label": {
"fontColor": "#000000",
"fontFamily": "Arial",
"fontSize": 15,
"fontWeight": "normal"
}
},
"calification": {
"fontColor": "#009fe3",
"fontFamily": "Arial",
"fontSize": 30,
"fontWeight": "bold",
"textAlign": "center",
"paddingLeft": 100,
"paddingRight": 100,
"paddingBottom": 10,
"paddingTop": 15,
"verticalAlign": "middle",
"width": "100%"
},
"timeContainer": {
"gap": 5,
"horizontalAlign": "center",
"paddingLeft": 100,
"paddingRight": 100,
"paddingBottom": 15,
"paddingTop": 10,
"verticalAlign": "middle",
"width": "100%"
},
"buttonsContainer": {
"gap": 8,
"paddingLeft": 100,
"paddingRight": 100,
"paddingBottom": 50,
"paddingTop": 35,
"horizontalAlign": "center",
"verticalAlign": "middle",
"width": "100%",
"button": {
"backgroundColor": "#009fe3",
"fontColor": "#ffffff",
"fontFamily": "Arial",
"fontSize": 15,
"fontWeight": "bold",
"horizontalAlign": "center",
"paddingLeft": 25,
"paddingRight": 25,
"paddingTop": 12,
"paddingBottom": 12,
"verticalAlign": "middle"
}
}
}
},
"timeout": {
"veil": {
"backgroundColor": "#000000",
"backgroundOpacity": 0.3
},
"window": {
"backgroundColor": "#ffffff",
"horizontalAlign": "center",
"gap": 15,
"paddingBottom": 55,
"paddingLeft": 80,
"paddingRight": 80,
"paddingTop": 45,
"shadowBlurRadius": 4,
"shadow": true,
"shadowColor": "#000000",
"shadowOpacity": 0.3,
"shadowHorizontalLength": 0,
"shadowVerticalLength": 0,
"shadowSpread": 4,
"icon": {
"height": 72,
"url": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAD0AAABGCAYAAAB/h5zrAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAABhRJREFUeNrsW41y2jgQliVjGxMuhDR37/92l2uvhVIcjGtzuLO6aBRpdyVb9G4azWiABKH99n9XcibSj9V13geu6a7z7+scUhAkbwB6GbFmAVP8X0H/58Y76HfQ76DfQYeOLmLNGKq+pyIouxFzS3jNkZg9MucrvB8B96mIyW8EumV858L8XlLQC5DKqGqHSDX9WeMe6G+BdpZ6jwseDZsfIC0MBa6M7KqEzwr5/hlUu4P3MYzeXGdtfG6uc0eBtgGLQOAjqAo2nppKjnuejBkK2Ak8YwI2ifgTcVYrAJxi9ED80VOIrGH6xr/A8wDAvhBXwmZFYjtVsM8KgB8cAsOG1oCdCgCsw0pjMOAeprqhk8qA0bUV2jKGlo04lQLin5iJioJNxu9+uIF0qcSqhtcugPmLDNA//UppaA5c6lIW7RB+WtjHlYQooCUHOqqUKXJmqMrjzMA7cDinyLZPCV2XembMu8yykTmAn8GztjPa7grmVOmPIavJHBvontYooW0AEwYoGJqEIesh0HnuwPEWgKcTDm93MWz8An+rmNL9BK+pxgUYOjBp6g3QZ9PEFMHZLaP8HAn5bDApRHJ5hL13ILUlQZs0BPJmY994ZJSee1cVwxg1xPkV0HAKXD+Az6CAly5HKhGiCoaEj4wMSCIpofB4ZwkES0LinAOBe66kt8SGI/e+EJs9Qa5cA4FmJ6QytGgk+ptF0++gBePaF8R0BvjtmpFFdhjomviRnmHDo5TujFxAAvFmJ0UazsaU1p3hqDLY50zQY7akfBp3xDona0YYGBg2R33eIZHABQobB2DUApF2rcOpLekK1GqKHWtQujBpIX5zvXtvrD0ExP2OoF3q38oRB+PjKHc0ExKVmLW67PVhKLR9K4sTG4KQF8//1mCLF5GmXy3h97cgzbPHxHpC2j8cmrQ4gQ2fWq8AdAVEqZnBrsGbr+GzEnjvHOvhLW31LikOIZ7aLlf7GcDGFhlHRGMLG3RBxGVM7Ssmp+cAO0Am6BtUdVfmzMZaSzDk2WhIxNTOykhkqMLmM7FHTzRF8pyRgwtG9dQHqPRoDr8ZRPVMP7BnhkvBBZ0TMXeuCy+1w94UA8Au0GwwASw4B3jfGeUhR60lSNjWjoJwSntPo0MKf+MfZRBH0lg+q3vl48Z/EcALq8b9hEhf5+StpxgqjAzyo6fhQBbaMb2nylrPabS7HGPjcIwfEedZMJ0vCTrGZvsQlbL+X3pSX453PgY4WFS9Y1LHBkq/JdTDFGidOkqQ1h8Om+bk23tDC3z5Q8YBHfudY0AY0d3SjeEElaNg4IxTgClFSVoazmrq0N1M+9zpGNlrw6KK18xyZqG+EPM17/UBuz48THGtA5P0kDOzmIoAvQHn1CIdkSlZnB3ajkj+LQnQZ8n0hBVBTG20ZGqRZtRWORtD649wKZlFhUK4l4V4zgljQHpu3O5PZyclVMzzcffFsMsO6a5MHQfwBWfEhBSR1jYuqWwJ9XgWCW/yzTA2hKSf7R6ZzlmXRPjiHsHovtYCGBVy1lVBcZJDOOWsXQi8x3fWOUXuCCdYfatPHDjhyzzrLiG95MbYrQFeMSMC9ZxII5BC48BQIcnkPOZR9QMtFZEBcrLGFWHLPQW6IexWWXUxp9vSeACvxNsOamslLN8YzKWkfOCkaxfCoS0YHv8E9nhyaE9lVVqtxehGvF7j6Bg1fUaEqT0HdCdeL7BivS6sNWzeanDF9tqIuQeHs6Kcn76OQan/m1I1I36Uc6kOSwkphxXbQeXecDy4fBQmyYvg3e8ojIIkJCxdIkKZjiAPgnel80toCaYXSkEf+eTi9a5mqmcvJIC9Y6S6A/TgLjGgtZNRjH6U7qKUERUUJ8l5YPbE9L30XsS0VQJTPFfIakT8jcEF7LcU/MYl6yJ+aEUUCtwMX/oRBd+TOKVRMJQi/PST/chFTBlI3aD/GaOD0MQyqZiz5DPMStzuuS4qZO5CTCib6GA2It0zG5x2016EX7ybRVK3eobDtF3deo7q0M6pnqnBTwabsp+lxOsFODUDUDP0zTJSOyIFGqCfwssFfd+zN8Jbkmcv/xFgALaVsLLFsFFBAAAAAElFTkSuQmCC",
"width": 62
},
"title": {
"fontColor": "#000000",
"fontFamily": "Arial",
"fontSize": 40,
"fontWeight": "bold",
"textAlign": "center",
"paddingBottom": 20
},
"button": {
"backgroundColor": "#009fe3",
"fontColor": "#ffffff",
"fontFamily": "Arial",
"fontSize": 15,
"fontWeight": "bold",
"horizontalAlign": "center",
"paddingLeft": 25,
"paddingRight": 25,
"paddingTop": 12,
"paddingBottom": 12,
"verticalAlign": "middle"
},
"buttonsContainer": {
"horizontalAlign": "center",
"width": "100%",
"gap": 10
}
}
}
};hO['theme']='theme'in hO?this['mixObject'](hR,hO['theme']):hR;var hS=hO['data']&&hO['data']['titlesScale']?hO['data']['titlesScale']:0x1;var hT=hO['data']&&hO['data']['bodyScale']?hO['data']['bodyScale']:0x1;if(hO['player']['get']('isMobile')){var hU=this['mixObject'](hO['theme'],{'question':{'window':{'width':'100%','height':'100%','minWidth':undefined,'backgroundOpacity':0x1,'borderRadius':0x0,'paddingLeft':0x0,'paddingRight':0x0,'paddingBottom':0x0,'paddingTop':0x0,'verticalAlign':'middle','title':{'paddingBottom':0x19,'paddingTop':0x19},'bodyContainer':{'layout':'vertical','horizontalAlign':'center','paddingLeft':0x0,'paddingRight':0x0,'gap':0x14},'mediaContainer':{'width':'100%','height':'45%'},'optionsContainer':{'width':'100%','height':'55%','paddingLeft':0x14,'paddingRight':0x14}}},'score':{'window':{'description':{'paddingLeft':0xa,'paddingRight':0xa},'calification':{'fontSize':0x14*hT,'paddingLeft':0xa,'paddingRight':0xa}}}});hO['theme']=hU;}var hV=this['get']('data');var hW=document['getElementById']('metaViewport');var hX=hW?/initial-scale=(\d+(\.\d+)?)/['exec'](hW['getAttribute']('content')):undefined;var hY=hX?hX[0x1]:0x1;hV['scorePortraitConfig']={'theme':{'window':{'minWidth':0xfa/hY,'maxHeight':0x258/hY,'content':{'height':'100%'},'statsContainer':{'layout':'vertical','horizontalAlign':'center','maxHeight':0x258,'paddingLeft':0x0,'paddingRight':0x0,'width':'100%','height':'100%'},'buttonsContainer':{'paddingLeft':0xa,'paddingRight':0xa,'button':{'paddingLeft':0xf,'paddingRight':0xf}}}}};hV['scoreLandscapeConfig']={'theme':{'window':{'title':{'fontSize':0x1e*hS,'paddingTop':0xa},'stats':{'height':0x64},'buttonsContainer':{'paddingBottom':0x14,'paddingTop':0xa},'description':{'paddingBottom':0x5,'paddingTop':0x5}}}};var hZ=new TDV['Quiz'](hO);hZ['setMaxListeners'](0x32);if(hQ===!![]){hZ['bind'](TDV['Quiz']['EVENT_PROPERTIES_CHANGE'],function(){if((hZ['get'](TDV['Quiz']['PROPERTY']['QUESTIONS_ANSWERED'])+hZ['get'](TDV['Quiz']['PROPERTY']['ITEMS_FOUND']))/(hZ['get'](TDV['Quiz']['PROPERTY']['QUESTION_COUNT'])+hZ['get'](TDV['Quiz']['PROPERTY']['ITEM_COUNT']))==0x1)hZ['finish']();}['bind'](this));}if(hP===!![]){hZ['start']();}hV['quiz']=hZ;hV['quizConfig']=hO;};TDV['Tour']['Script']['_initSplitViewer']=function(i0){function i1(){var io=i0['get']('actualWidth');ic['get']('children')[0x0]['set']('width',io);id['get']('children')[0x0]['set']('width',io);var ip=ih['get']('left');var iq=typeof ip=='string'?i2(ip):ip;iq+=ih['get']('actualWidth')*0.5;ic['set']('width',i3(iq));id['set']('width',i3(io-iq));}function i2(ir){return parseFloat(ir['replace']('%',''))/0x64*i0['get']('actualWidth');}function i3(is){return is/ i0['get']('actualWidth')*0x64+'%';}function i4(it){i5(it['source']);}function i5(iu){var iv=iu==ij?ii:ij;if(ik&&iu!=ik||!iu||!iv)return;var iw=iv['get']('camera')['get']('initialPosition')['get']('yaw')-iu['get']('camera')['get']('initialPosition')['get']('yaw');iv['setPosition'](iu['get']('yaw')+iw,iu['get']('pitch'),iu['get']('roll'),iu['get']('hfov'));}function i6(ix){ik=ix['source'];}function i7(iy){i8(iy['source']);}function i8(iz){var iA=iz['get']('viewerArea');if(iA==ie){if(ii){ii['get']('camera')['set']('hoverFactor',il);}ii=iz;ik=ii;if(ii){il=ii['get']('camera')['get']('hoverFactor');ii['get']('camera')['set']('hoverFactor',0x0);}}else if(iA==ig){if(ij){ij['get']('camera')['set']('hoverFactor',im);}ij=iz;ik=ii;if(ij){im=ij['get']('camera')['get']('hoverFactor');ij['get']('camera')['set']('hoverFactor',0x0);}}i5(iz);}function i9(iB){var iC=this['getCurrentPlayers']();var iD=iC['length'];while(iD-->0x0){var iF=iC[iD];if(iF['get']('viewerArea')!=iB){iC['splice'](iD,0x1);}}for(iD=0x0;iD<iC['length'];++iD){var iF=iC[iD];iF['bind']('preloadMediaShow',i7,this);iF['bind']('cameraPositionChange',i4,this);iF['bind']('userInteractionStart',i6,this);if(iF['get']('panorama'))i8(iF);}return iC;}function ia(iG){i8(this['getActivePlayerWithViewer'](iG['source']));i5(ik);}var ib=i0['get']('children');var ic=ib[0x0];var id=ib[0x1];var ie=ic['get']('children')[0x0];var ig=id['get']('children')[0x0];var ih=ib[0x2];var ii,ij,ik;var il,im;i9['call'](this,ie);i9['call'](this,ig);ie['bind']('mouseDown',ia,this);ig['bind']('mouseDown',ia,this);i0['bind']('resize',function(){ih['set']('left',(i0['get']('actualWidth')-ih['get']('actualWidth'))*0.5);i1();},this);ih['bind']('mouseDown',function(iH){var iI=iH['pageX'];var iJ=function(iK){var iL=iK['pageX'];var iM=iI-iL;var iN=i0['get']('actualWidth');var iO=ih['get']('left');var iP=(typeof iO=='string'?i2(iO):iO)-iM;if(iP<0x0){iL-=iP;iP=0x0;}else if(iP+ih['get']('actualWidth')>=iN){iL-=iP-(iN-ih['get']('actualWidth'));iP=iN-ih['get']('actualWidth');}ih['set']('left',iP);i1();iI=iL;};this['bind']('mouseMove',iJ,this);this['bind']('mouseUp',function(){this['unbind']('mouseMove',iJ,this);},this);},this);i1();};TDV['Tour']['Script']['_initTwinsViewer']=function(iQ){function iR(){var jc=iQ['get']('actualWidth');j2['get']('children')[0x0]['set']('width',jc);j3['get']('children')[0x0]['set']('width',jc);var jd=j6['get']('left');var je=typeof jd=='string'?iS(jd):jd;je+=j6['get']('actualWidth')*0.5;j2['set']('width',iT(je));j3['set']('width',iT(jc-je));}function iS(jf){return parseFloat(jf['replace']('%',''))/0x64*iQ['get']('actualWidth');}function iT(jg){return jg/ iQ['get']('actualWidth')*0x64+'%';}function iU(jh){iV(jh['source']);}function iV(ji){var jj=ji==j8?j7:j8;if(j9&&ji!=j9||!ji||!jj)return;var jk=jj['get']('camera')['get']('initialPosition')['get']('yaw')-ji['get']('camera')['get']('initialPosition')['get']('yaw');jj['setPosition'](ji['get']('yaw')+jk,ji['get']('pitch'),ji['get']('roll'),ji['get']('hfov'));}function iW(jl){j9=jl['source'];}function iX(jm){iY(jm['source']);}function iY(jn){var jo=jn['get']('viewerArea');if(jo==j4){if(j7){j7['get']('camera')['set']('hoverFactor',ja);}j7=jn;j9=j7;if(j7){ja=j7['get']('camera')['get']('hoverFactor');j7['get']('camera')['set']('hoverFactor',0x0);}}else if(jo==j5){if(j8){j8['get']('camera')['set']('hoverFactor',jb);}j8=jn;j9=j7;if(j8){jb=j8['get']('camera')['get']('hoverFactor');j8['get']('camera')['set']('hoverFactor',0x0);}}iV(jn);}function iZ(jp){var jq=this['getCurrentPlayers']();var jr=jq['length'];while(jr-->0x0){var jt=jq[jr];if(jt['get']('viewerArea')!=jp){jq['splice'](jr,0x1);}}for(jr=0x0;jr<jq['length'];++jr){var jt=jq[jr];jt['bind']('preloadMediaShow',iX,this);jt['bind']('cameraPositionChange',iU,this);jt['bind']('userInteractionStart',iW,this);if(jt['get']('panorama'))iY(jt);}return jq;}function j0(ju){iY(this['getActivePlayerWithViewer'](ju['source']));iV(j9);}var j1=iQ['get']('children');var j2=j1[0x0];var j3=j1[0x1];var j4=j2['get']('children')[0x0];var j5=j3['get']('children')[0x0];var j6=j1[0x2];var j7,j8,j9;var ja,jb;iZ['call'](this,j4);iZ['call'](this,j5);j4['bind']('mouseDown',j0,this);j5['bind']('mouseDown',j0,this);iQ['bind']('resize',function(){j6['set']('left',(iQ['get']('actualWidth')-j6['get']('actualWidth'))*0.5);iR();},this);iR();};TDV['Tour']['Script']['isCardboardViewMode']=function(){var jv=this['getByClassName']('PanoramaPlayer');return jv['length']>0x0&&jv[0x0]['get']('viewMode')=='cardboard';};TDV['Tour']['Script']['isPanorama']=function(jw){return['Panorama','HDRPanorama','LivePanorama','Video360','VideoPanorama']['indexOf'](jw['get']('class'))!=-0x1;};TDV['Tour']['Script']['keepCompVisible']=function(jx,jy){var jz='keepVisibility_'+jx['get']('id');var jA=this['getKey'](jz);if(jA==undefined&&jy){this['registerKey'](jz,jy);}else if(jA!=undefined&&!jy){this['unregisterKey'](jz);}};TDV['Tour']['Script']['_initItemWithComps']=function(jB,jC,jD,jE,jF,jG,jH,jI){var jJ=jB['get']('items')[jC];var jK=jJ['get']('media');var jL=jK['get']('loop')==undefined||jK['get']('loop');var jM=jI>0x0;var jN=this['rootPlayer'];var jO=function(jW){var jX=jG?jG['get']('class'):undefined;var jY=undefined;switch(jX){case'FadeInEffect':case'FadeOutEffect':jY=jN['createInstance'](jW?'FadeInEffect':'FadeOutEffect');break;case'SlideInEffect':case'SlideOutEffect':jY=jN['createInstance'](jW?'SlideInEffect':'SlideOutEffect');break;}if(jY){jY['set']('duration',jG['get']('duration'));jY['set']('easing',jG['get']('easing'));if(jX['indexOf']('Slide')!=-0x1)jY['set'](jW?'from':'to',jG['get'](jG['get']('class')=='SlideInEffect'?'from':'to'));}return jY;};var jP=function(){for(var jZ=0x0,k0=jD['length'];jZ<k0;++jZ){var k1=jD[jZ];if(jI>0x0){this['setComponentVisibility'](k1,!jF,0x0,jO(!jF));}else{var k2='visibility_'+k1['get']('id');if(this['existsKey'](k2)){if(this['getKey'](k2))this['setComponentVisibility'](k1,!![],0x0,jO(!![]));else this['setComponentVisibility'](k1,![],0x0,jO(![]));this['unregisterKey'](k2);}}}jJ['unbind']('end',jP,this);if(!jL)jK['unbind']('end',jP,this);};var jQ=function(){jJ['unbind']('stop',jQ,this,!![]);jJ['unbind']('stop',jQ,this);jJ['unbind']('begin',jQ,this,!![]);jJ['unbind']('begin',jQ,this);for(var k3=0x0,k4=jD['length'];k3<k4;++k3){this['keepCompVisible'](jD[k3],![]);}};var jR=function(k5,k6,k7){var k8=function(){var k9=function(kd,ke,kf){jN['setComponentVisibility'](kd,ke,k6,kf,ke?'showEffect':'hideEffect',![]);if(k7>0x0){var kg=k6+k7+(kf!=undefined?kf['get']('duration'):0x0);jN['setComponentVisibility'](kd,!ke,kg,jO(!ke),ke?'hideEffect':'showEffect',!![]);}};for(var ka=0x0,kb=jD['length'];ka<kb;++ka){var kc=jD[ka];if(jF=='toggle'){if(!kc['get']('visible'))k9(kc,!![],jO(!![]));else k9(kc,![],jO(![]));}else{k9(kc,jF,jO(jF));}}jJ['unbind'](k5,k8,this);if(k5=='end'&&!jL)jK['unbind'](k5,k8,this);};jJ['bind'](k5,k8,this);if(k5=='end'&&!jL)jK['bind'](k5,k8,this);};if(jE=='begin'){for(var jS=0x0,jT=jD['length'];jS<jT;++jS){var jU=jD[jS];this['keepCompVisible'](jU,!![]);if(jM){var jV='visibility_'+jU['get']('id');this['registerKey'](jV,jU['get']('visible'));}}jJ['bind']('stop',jQ,this,!![]);jJ['bind']('stop',jQ,this);jJ['bind']('begin',jQ,this,!![]);jJ['bind']('begin',jQ,this);if(jM){jJ['bind']('end',jP,this);if(!jL)jK['bind']('end',jP,this);}}else if(jE=='end'&&jI>0x0){jR('begin',jI,0x0);jI=0x0;}if(jE!=undefined)jR(jE,jH,jI);};TDV['Tour']['Script']['loadFromCurrentMediaPlayList']=function(kh,ki,kj){var kk=kh['get']('selectedIndex');var kl=kh['get']('items')['length'];var km=(kk+ki)%kl;while(km<0x0){km=kl+km;}if(kk!=km){if(kj){var kn=kh['get']('items')[km];this['skip3DTransitionOnce'](kn['get']('player'));}kh['set']('selectedIndex',km);}};TDV['Tour']['Script']['mixObject']=function(ko,kp){return this['assignObjRecursively'](kp,this['copyObjRecursively'](ko));};TDV['Tour']['Script']['downloadFile']=function(kq){if((navigator['userAgent']['toLowerCase']()['indexOf']('chrome')>-0x1||navigator['userAgent']['toLowerCase']()['indexOf']('safari')>-0x1)&&!/(iP)/g['test'](navigator['userAgent'])){var kr=document['createElement']('a');kr['href']=kq;kr['setAttribute']('target','_blank');if(kr['download']!==undefined){var ks=kq['substring'](kq['lastIndexOf']('/')+0x1,kq['length']);kr['download']=ks;}if(document['createEvent']){var kt=document['createEvent']('MouseEvents');kt['initEvent']('click',!![],!![]);kr['dispatchEvent'](kt);return;}}window['open'](kq,'_blank');};TDV['Tour']['Script']['openLink']=function(ku,kv){if(!ku||ku==location['href']){return;}if(!kv)kv='_blank';if(kv=='_top'||kv=='_self'){this['updateDeepLink'](!![],!![],!![]);}var kw=window&&window['process']&&window['process']['versions']&&window['process']['versions']['electron']||navigator&&navigator['userAgent']&&navigator['userAgent']['indexOf']('Electron')>=0x0;if(kw&&kv=='_blank'){if(ku['startsWith']('files/')){ku='/'+ku;}if(ku['startsWith']('//')){ku='https:'+ku;}else if(ku['startsWith']('/')){var kx=window['location']['href']['split']('/');kx['pop']();ku=kx['join']('/')+ku;}var ky=ku['split']('.')['pop']()['toLowerCase']();if((['pdf','zip','xls','xlsx']['indexOf'](ky)==-0x1||ku['startsWith']('file://'))&&window['hasOwnProperty']('require')){var kz=window['require']('electron')['shell'];kz['openExternal'](ku);}else{window['open'](ku,kv);}}else if(kw&&(kv=='_top'||kv=='_self')){window['location']=ku;}else{var kA=this['get']('data')['tour'];if(kA['isMobileApp']()&&kA['isIOS']())ku='blank:'+ku;var kB=window['open'](ku,kv);kB['focus']();}};TDV['Tour']['Script']['pauseCurrentPlayers']=function(kC){var kD=this['getCurrentPlayers']();var kE=kD['length'];while(kE-->0x0){var kF=kD[kE];if(kF['get']('state')=='playing'||kF['get']('data')&&kF['get']('data')['playing']||kF['get']('viewerArea')&&kF['get']('viewerArea')['get']('id')==this['getMainViewer']()||kF['get']('camera')&&kF['get']('camera')['get']('idleSequence')&&kF['get']('camera')['get']('timeToIdle')>0x0&&kF['get']('state')=='playing'){var kG=this['getMediaFromPlayer'](kF);if(kC&&kG&&kG['get']('class')!='Video360'&&'pauseCamera'in kF){kF['pauseCamera']();}else{kF['pause']();}}else{kD['splice'](kE,0x1);}}return kD;};TDV['Tour']['Script']['pauseGlobalAudiosWhilePlayItem']=function(kH,kI,kJ){var kK=function(){if(kH['get']('selectedIndex')!=kI){this['resumeGlobalAudios']();}};this['pauseGlobalAudios'](kJ,!![]);this['executeFunctionWhenChange'](kH,kI,kK,kK);};TDV['Tour']['Script']['pauseGlobalAudios']=function(kL,kM){this['stopTextToSpeech']();if(window['pausedAudiosLIFO']==undefined)window['pausedAudiosLIFO']=[];var kN=this['getByClassName']('VideoPanoramaOverlay');kN=kN['concat'](this['getByClassName']('QuadVideoPanoramaOverlay'));for(var kP=kN['length']-0x1;kP>=0x0;--kP){var kQ=kN[kP];if(kQ['get']('video')['get']('hasAudio')==![])kN['splice'](kP,0x1);}var kR=this['getByClassName']('Audio')['concat'](kN);var kS={};if(window['currentGlobalAudios']!=undefined)kR=kR['concat'](Object['values'](window['currentGlobalAudios'])['map'](function(kW){if(!kW['allowResume'])kS[kW['audio']['get']('id')]=kW['audio'];return kW['audio'];}));var kT=[];for(var kP=0x0,kU=kR['length'];kP<kU;++kP){var kV=kR[kP];if(kV&&kV['get']('state')=='playing'&&(kL==undefined||kL['indexOf'](kV)==-0x1)){if(kV['get']('id')in kS){kV['stop']();}else{kV['pause']();kT['push'](kV);}}}if(kM||kT['length']>0x0)window['pausedAudiosLIFO']['push'](kT);return kT;};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 kX=window['pausedAudiosLIFO']['pop']();if(!kX)return;for(var kY=0x0,kZ=kX['length'];kY<kZ;++kY){var l0=kX[kY];if(l0['get']('state')=='paused')l0['play']();}};TDV['Tour']['Script']['pauseGlobalAudio']=function(l1){var l2=window['currentGlobalAudios'];if(l2){var l3=l2[l1['get']('id')];if(l3)l1=l3['audio'];}if(l1['get']('state')=='playing')l1['pause']();};TDV['Tour']['Script']['playAudioList']=function(l4,l5){if(l4['length']==0x0)return;if(l4['length']==0x1&&l5){var l6=l4[0x0];l6['set']('loop',!![]);this['playGlobalAudio'](l6,!![],null,!![]);}else{var l7=-0x1;var l8;var l9=this['playGlobalAudio'];var la=function(){if(++l7>=l4['length']){if(!l5)return;l7=0x0;}l8=l4[l7];l9(l8,!![],la,!![]);};la();}};TDV['Tour']['Script']['playGlobalAudioWhilePlayActiveMedia']=function(lb,lc,ld,le){var lf=this['getActiveMediaWithViewer'](this['getMainViewer']());var lg=this['getFirstPlayListWithMedia'](lf,!![]);var lh=this['getPlayListItemByMedia'](lg,lf);var li=lg['get']('items')['indexOf'](lh);return this['playGlobalAudioWhilePlay'](lg,li,lb,lc,ld,le);};TDV['Tour']['Script']['playGlobalAudioWhilePlay']=function(lj,lk,ll,lm,ln,lo){var lp=function(ly){if(ly['data']['previousSelectedIndex']==lk){this['stopGlobalAudio'](ll);if(lt){var lz=ls['get']('media');var lA=lz['get']('audios');lA['splice'](lA['indexOf'](ll),0x1);lz['set']('audios',lA);}lj['unbind']('change',lp,this);if(ln)ln();}};var lr=window['currentGlobalAudios'];if(lr&&ll['get']('id')in lr){ll=lr[ll['get']('id')]['audio'];if(ll['get']('state')!='playing'){ll['play']();}return ll;}lj['bind']('change',lp,this);var ls=lj['get']('items')[lk];var lt=ls['get']('class')=='PanoramaPlayListItem';if(lt){var lu=ls['get']('media');var lr=(lu['get']('audios')||[])['slice']();if(ll['get']('class')=='MediaAudio'){var lv=this['rootPlayer']['createInstance']('PanoramaAudio');lv['set']('autoplay',![]);lv['set']('audio',ll['get']('audio'));lv['set']('loop',ll['get']('loop'));lv['set']('id',ll['get']('id'));this['cloneBindings'](ll,lv,'end');this['cloneBindings'](ll,lv,'stateChange');ll=lv;}lr['push'](ll);lu['set']('audios',lr);}var lw=this['playGlobalAudio'](ll,lm,function(){lj['unbind']('change',lp,this);if(ln)ln['call'](this);});if(lo===!![]){var lx=function(){if(lw['get']('state')=='playing'){this['pauseGlobalAudios']([lw],!![]);}else if(lw['get']('state')=='stopped'){this['resumeGlobalAudios']();lw['unbind']('stateChange',lx,this);}};lw['bind']('stateChange',lx,this);}return lw;};TDV['Tour']['Script']['playGlobalAudio']=function(lB,lC,lD,lE){var lF=function(){lB['unbind']('end',lF,this);this['stopGlobalAudio'](lB);if(lD)lD['call'](this);};lB=this['getGlobalAudio'](lB);var lG=window['currentGlobalAudios'];if(!lG){lG=window['currentGlobalAudios']={};}lG[lB['get']('id')]={'audio':lB,'asBackground':lE||![],'allowResume':lC};if(lB['get']('state')=='playing'){return lB;}if(!lB['get']('loop')){lB['bind']('end',lF,this);}lB['play']();return lB;};TDV['Tour']['Script']['resumePlayers']=function(lH,lI){for(var lJ=0x0;lJ<lH['length'];++lJ){var lK=lH[lJ];var lL=this['getMediaFromPlayer'](lK);if(!lL)continue;if(lI&&lL['get']('class')!='Video360'&&'pauseCamera'in lK){lK['resumeCamera']();}else if(lK['get']('state')!='playing'){var lM=lK['get']('data');if(!lM){lM={};lK['set']('data',lM);}lM['playing']=!![];var lN=function(){if(lK['get']('state')=='playing'){delete lM['playing'];lK['unbind']('stateChange',lN,this);}};lK['bind']('stateChange',lN,this);lK['play']();}}};TDV['Tour']['Script']['stopGlobalAudios']=function(lO){var lP=window['currentGlobalAudios'];var lQ=this;if(lP){Object['keys'](lP)['forEach'](function(lR){var lS=lP[lR];if(!lO||lO&&!lS['asBackground']){lQ['stopGlobalAudio'](lS['audio']);}});}};TDV['Tour']['Script']['stopGlobalAudio']=function(lT){var lU=window['currentGlobalAudios'];if(lU){var lV=lU[lT['get']('id')];if(lV){lT=lV['audio'];delete lU[lT['get']('id')];if(Object['keys'](lU)['length']==0x0){window['currentGlobalAudios']=undefined;}}}if(lT)lT['stop']();};TDV['Tour']['Script']['setCameraSameSpotAsMedia']=function(lW,lX){var lY=this['getCurrentPlayerWithMedia'](lX);if(lY!=undefined){var lZ=lW['get']('initialPosition');lZ['set']('yaw',lY['get']('yaw'));lZ['set']('pitch',lY['get']('pitch'));lZ['set']('hfov',lY['get']('hfov'));}};TDV['Tour']['Script']['setComponentVisibility']=function(m0,m1,m2,m3,m4,m5){var m6=this['getKey']('keepVisibility_'+m0['get']('id'));if(m6)return;this['unregisterKey']('visibility_'+m0['get']('id'));var m7=function(){if(m4){m0['set'](m4,m3);}m0['set']('visible',m1);if(m0['get']('class')=='ViewerArea'){try{if(m1)m0['restart']();else if(m0['get']('playbackState')=='playing')m0['pause']();}catch(mc){};}};var m8='effectTimeout_'+m0['get']('id');if(!m5&&window['hasOwnProperty'](m8)){var ma=window[m8];if(ma instanceof Array){for(var mb=0x0;mb<ma['length'];mb++){clearTimeout(ma[mb]);}}else{clearTimeout(ma);}delete window[m8];}else if(m1==m0['get']('visible')&&!m5)return;if(m2&&m2>0x0){var ma=setTimeout(function(){if(window[m8]instanceof Array){var md=window[m8];var me=md['indexOf'](ma);md['splice'](me,0x1);if(md['length']==0x0){delete window[m8];}}else{delete window[m8];}m7();},m2);if(window['hasOwnProperty'](m8)){window[m8]=[window[m8],ma];}else{window[m8]=ma;}}else{m7();}};TDV['Tour']['Script']['setDirectionalPanoramaAudio']=function(mf,mg,mh,mi){mf['set']('yaw',mg);mf['set']('pitch',mh);mf['set']('maximumAngle',mi);};TDV['Tour']['Script']['setLocale']=function(mj){this['stopTextToSpeech']();var mk=this['get']('data')['localeManager'];if(mk)this['get']('data')['localeManager']['setLocale'](mj);else{this['get']('data')['defaultLocale']=mj;this['get']('data')['forceDefaultLocale']=!![];}};TDV['Tour']['Script']['setEndToItemIndex']=function(ml,mm,mn){var mo=function(){if(ml['get']('selectedIndex')==mm){var mp=ml['get']('items')[mn];this['skip3DTransitionOnce'](mp['get']('player'));ml['set']('selectedIndex',mn);}};this['executeFunctionWhenChange'](ml,mm,mo);};TDV['Tour']['Script']['setMapLocation']=function(mq,mr){var ms=function(){mq['unbind']('stop',ms,this);mt['set']('mapPlayer',null);};mq['bind']('stop',ms,this);var mt=mq['get']('player');mt['set']('mapPlayer',mr);};TDV['Tour']['Script']['setMainMediaByIndex']=function(mu){var mv=undefined;if(mu>=0x0&&mu<this['mainPlayList']['get']('items')['length']){this['mainPlayList']['set']('selectedIndex',mu);mv=this['mainPlayList']['get']('items')[mu];}return mv;};TDV['Tour']['Script']['setMainMediaByName']=function(mw){var mx=this['getMainViewer']();var my=this['_getPlayListsWithViewer'](mx);for(var mz=0x0,mA=my['length'];mz<mA;++mz){var mB=my[mz];var mC=mB['get']('items');for(var mD=0x0,mE=mC['length'];mD<mE;++mD){var mF=mC[mD];var mG=mF['get']('media')['get']('data');if(mG!==undefined&&mG['label']==mw&&mF['get']('player')['get']('viewerArea')==mx){mB['set']('selectedIndex',mD);return mF;}}}};TDV['Tour']['Script']['executeAudioAction']=function(mH,mI,mJ,mK,mL,mM){if(mH['length']==0x0)return;var mN,mO;var mP=this['getMainViewer']();if(mJ&&!(mJ===!![])){var mQ=this['getPlayListsWithMedia'](mJ);for(var mR=0x0;mR<mQ['length'];++mR){var mS=mQ[mR];var mU=this['getPlayListItemByMedia'](mS,mJ);if(mU&&mU['get']('player')&&mU['get']('player')['get']('viewerArea')==mP){mN=mS;mO=mN['get']('items')['indexOf'](mU);break;}}if(!mN&&mQ['length']>0x0){mN=mQ[0x0];mO=this['getPlayListItemIndexByMedia'](mN,mJ);}if(!mN)mJ=!![];}if(mJ===!![]){var mV=this['getActiveMediaWithViewer'](mP);if(mV){mN=this['getFirstPlayListWithMedia'](mV,!![]);var mU=this['getPlayListItemByMedia'](mN,mV);mO=mN['get']('items')['indexOf'](mU);}else{mJ=null;}}var mW=[];var mX=function(){var n5=mW['concat']();var n6=![];var n7=function(na){var nb=na['source']['get']('state');if(nb=='playing'){if(!n6){n6=!![];this['pauseGlobalAudios'](mW,!![]);}}else if(nb=='stopped'){n5['splice'](n5['indexOf'](na['source']),0x1);if(n5['length']==0x0){this['resumeGlobalAudios']();}na['source']['unbind']('stateChange',n7,this);}}['bind'](this);for(var n8=0x0,n9=mW['length'];n8<n9;++n8){mW[n8]['bind']('stateChange',n7,this);}}['bind'](this);var mY=function(){for(var nc=0x0,nd=mH['length'];nc<nd;++nc){var ne=mH[nc];mW['push'](this['playGlobalAudio'](ne,mK));}if(mL)mX();}['bind'](this);var mZ=function(){for(var nf=0x0,ng=mH['length'];nf<ng;++nf){var nh=mH[nf];mW['push'](this['playGlobalAudioWhilePlay'](mN,mO,nh,mK));}if(mL)mX();}['bind'](this);var n0=function(){for(var ni=0x0,nj=mH['length'];ni<nj;++ni){this['pauseGlobalAudio'](mH[ni]);}}['bind'](this);var n1=function(){for(var nk=0x0,nl=mH['length'];nk<nl;++nk){this['stopGlobalAudio'](mH[nk]);}}['bind'](this);var n2=function(){for(var nm=0x0,nn=mH['length'];nm<nn;++nm){if(this['getGlobalAudio'](mH[nm])['get']('state')=='playing')return!![];}return![];}['bind'](this);if(mI=='playPause'||mI=='playStop'){if(n2()){if(mI=='playPause'){n0();}else if(mI=='playStop'){n1();}}else{if(mL){if(mI=='playStop'){this['stopGlobalAudios'](!![]);}}if(mN){mZ();}else{mY();}}}else if(mI=='play'){if(mN||mJ===!![]){if(mM){var n3=mN?mN['get']('items')[mO]['get']('player'):this['getActivePlayerWithViewer'](this['getMainViewer']());if(n3&&n3['pauseCamera']){var n4=mH['concat']();endCallback=function(no){n4['splice'](n4['indexOf'](no),0x1);if(n4['length']==0x0)n3['resumeCamera']();}['bind'](this);n3['pauseCamera']();}}mZ();}else{mY();}}else if(mI=='stop'){n1();}else if(mI=='pause'){n0();}};TDV['Tour']['Script']['executeAudioActionByTags']=function(np,nq,nr,ns,nt,nu,nv){var nw=this['getAudioByTags'](np,nq);this['executeAudioAction'](nw,nr,ns,nt,nu,nv);};TDV['Tour']['Script']['setMediaBehaviour']=function(nx,ny,nz,nA){var nB=this;var nC=function(nZ){if(nZ['data']['state']=='stopped'&&nA){nG['call'](this,!![]);}};var nD=function(){nM['unbind']('begin',nD,nB);var o0=nM['get']('media');if(o0['get']('class')!='Panorama'||o0['get']('camera')!=undefined&&o0['get']('camera')['get']('initialSequence')!=undefined){nN['bind']('stateChange',nC,nB);}};var nE=function(){var o1=nJ['get']('selectedIndex');if(o1!=-0x1){nL=o1;nG['call'](this,![]);}};var nF=function(){nG['call'](this,![]);};var nG=function(o2){if(!nJ)return;var o3=nM['get']('media');if((o3['get']('class')=='Video360'||o3['get']('class')=='Video')&&o3['get']('loop')==!![]&&!o2)return;nx['set']('selectedIndex',-0x1);if(nU&&nT!=-0x1){if(nU){if(nT>0x0&&nU['get']('movements')[nT-0x1]['get']('class')=='TargetPanoramaCameraMovement'){var o4=nV['get']('initialPosition');var o5=o4['get']('yaw');var o6=o4['get']('pitch');var o7=o4['get']('hfov');var o8=nU['get']('movements')[nT-0x1];var o9=o8['get']('targetYaw');var oa=o8['get']('targetPitch');var ob=o8['get']('targetHfov');if(o9!==undefined)o4['set']('yaw',o9);if(oa!==undefined)o4['set']('pitch',oa);if(ob!==undefined)o4['set']('hfov',ob);var oc=function(of){o4['set']('yaw',o5);o4['set']('pitch',o6);o4['set']('hfov',o7);nP['unbind']('end',oc,this);};nP['bind']('end',oc,this);}nU['set']('movementIndex',nT);}}if(nN){nM['unbind']('begin',nD,this);nN['unbind']('stateChange',nC,this);for(var od=0x0;od<nW['length'];++od){nW[od]['unbind']('click',nF,this);}}if(nS){var oe=this['getMediaFromPlayer'](nN);if((nJ==this['mainPlayList']||nJ['get']('items')['length']>0x1)&&(oe==undefined||oe==nM['get']('media'))){nJ['set']('selectedIndex',nL);}if(nx!=nJ)nJ['unbind']('change',nE,this);}else{nQ['set']('visible',nR);}nJ=undefined;};if(!nz){var nH=nx['get']('selectedIndex');var nI=nH!=-0x1?nx['get']('items')[nx['get']('selectedIndex')]['get']('player'):this['getActivePlayerWithViewer'](this['getMainViewer']());if(nI){nz=this['getMediaFromPlayer'](nI);}}var nJ=undefined;if(nz){var nK=this['getPlayListsWithMedia'](nz,!![]);if(nK['indexOf'](nx)!=-0x1){nJ=nx;}else if(nK['indexOf'](this['mainPlayList'])!=-0x1){nJ=this['mainPlayList'];}else if(nK['length']>0x0){nJ=nK[0x0];}}if(!nJ){nx['set']('selectedIndex',ny);return;}var nL=nJ['get']('selectedIndex');var nM=nx['get']('items')[ny];var nN=nM['get']('player');var nO=this['getMediaFromPlayer'](nN);if(nx['get']('selectedIndex')==ny&&nO==nM['get']('media')||nL==-0x1){return;}if(nx['get']('selectedIndex')==ny&&nO!=nM['get']('media'))nx['set']('selectedIndex',-0x1);var nP=nJ['get']('items')[nL];var nQ=nN['get']('viewerArea');var nR=nQ['get']('visible');var nS=nQ==nP['get']('player')['get']('viewerArea');if(nS){if(nx!=nJ){nJ['set']('selectedIndex',-0x1);nJ['bind']('change',nE,this);}}else{nQ['set']('visible',!![]);}var nT=-0x1;var nU=undefined;var nV=nP['get']('camera');if(nV){nU=nV['get']('initialSequence');if(nU){nT=nU['get']('movementIndex');}}nx['set']('selectedIndex',ny);var nW=[];var nX=function(og){var oh=nN['get'](og);if(oh==undefined)return;if(Array['isArray'](oh))nW=nW['concat'](oh);else nW['push'](oh);};nX('buttonStop');for(var nY=0x0;nY<nW['length'];++nY){nW[nY]['bind']('click',nF,this);}nM['bind']('begin',nD,nB);this['executeFunctionWhenChange'](nx,ny,nA?nF:undefined);};TDV['Tour']['Script']['setOverlayBehaviour']=function(oi,oj,ok,ol){var om=function(){switch(ok){case'triggerClick':this['triggerOverlay'](oi,'click');break;case'stop':case'play':case'pause':oi[ok]();break;case'togglePlayPause':case'togglePlayStop':if(oi['get']('state')=='playing')oi[ok=='togglePlayPause'?'pause':'stop']();else oi['play']();break;}if(ol){if(window['overlaysDispatched']==undefined)window['overlaysDispatched']={};var or=oi['get']('id');window['overlaysDispatched'][or]=!![];setTimeout(function(){delete window['overlaysDispatched'][or];},0x3e8);}};if(ol&&window['overlaysDispatched']!=undefined&&oi['get']('id')in window['overlaysDispatched'])return;var on=this['getFirstPlayListWithMedia'](oj,!![]);if(on!=undefined){var oo=this['getPlayListItemByMedia'](on,oj);var op=oo['get']('player');if(on['get']('items')['indexOf'](oo)!=on['get']('selectedIndex')||this['isPanorama'](oo['get']('media'))&&op['get']('rendererPanorama')!=oo['get']('media')){var oq=function(os){oo['unbind']('begin',oq,this);om['call'](this);};oo['bind']('begin',oq,this);return;}}om['call'](this);};TDV['Tour']['Script']['setOverlaysVisibility']=function(ot,ou,ov){var ow='overlayEffects';var ox=undefined;var oy=this['getKey'](ow);if(!oy){oy={};this['registerKey'](ow,oy);}for(var oz=0x0,oA=ot['length'];oz<oA;++oz){var oB=ot[oz];if(ov&&ov>0x0){oy[oB['get']('id')]=setTimeout(oC['bind'](this,oB),ov);}else{oC['call'](this,oB);}}function oC(oD){var oE=oD['get']('id');var oF=oy[oE];if(oF){clearTimeout(oF);delete oF[oE];}var oG=ou=='toggle'?!oD['get']('enabled'):ou;oD['set']('enabled',oG);var oI=oD['get']('data');if(oG&&oI&&'group'in oI){var oJ=this['getOverlaysByGroupname'](oI['group']);for(var oK=0x0,oL=oJ['length'];oK<oL;++oK){var oN=oJ[oK];if(oN!=oD)oN['set']('enabled',!oG);}}if(!ox)ox=this['getByClassName']('AdjacentPanorama');for(var oO=0x0,oP=ox['length'];oO<oP;++oO){var oQ=ox[oO];var oI=oQ['get']('data');if(!oI)continue;var oN=this[oI['overlayID']];if(oN&&oN==oD){oQ['set']('enabledInSurfaceSelection',oN['get']('enabled'));}}}};TDV['Tour']['Script']['setOverlaysVisibilityByTags']=function(oR,oS,oT,oU,oV){var oW=oT?this['getPanoramaOverlaysByTags'](oT,oR,oU):this['getOverlaysByTags'](oR,oU);this['setOverlaysVisibility'](oW,oS,oV);};TDV['Tour']['Script']['setComponentsVisibilityByTags']=function(oX,oY,oZ,p0,p1){var p2=this['getComponentsByTags'](oX,p1);for(var p3=0x0,p4=p2['length'];p3<p4;++p3){var p5=p2[p3];if(oY=='toggle')p5['get']('visible')?p0(p5):oZ(p5);else oY?oZ(p5):p0(p5);}};TDV['Tour']['Script']['setPanoramaCameraWithCurrentSpot']=function(p6,p7){var p8=this['getActiveMediaWithViewer'](p7||this['getMainViewer']());if(p8!=undefined&&(p8['get']('class')['indexOf']('Panorama')!=-0x1||p8['get']('class')=='Video360')){var p9=p6['get']('media');var pa=this['cloneCamera'](p6['get']('camera'));this['setCameraSameSpotAsMedia'](pa,p8);this['startPanoramaWithCamera'](p9,pa);}};TDV['Tour']['Script']['setPanoramaCameraWithSpot']=function(pb,pc,pd,pe,pf){var pg=pb['get']('selectedIndex');var ph=pb['get']('items');var pi=pc['get']('player');if(ph[pg]==pc||pi['get']('rendererPanorama')==pc['get']('media')){if(pd===undefined)pd=pi['get']('yaw');if(pe===undefined)pe=pi['get']('pitch');if(pf===undefined)pf=pi['get']('hfov');pi['moveTo'](pd,pe,pi['get']('roll'),pf);}else{var pj=pc['get']('media');var pk=this['cloneCamera'](pc['get']('camera'));var pl=pk['get']('initialPosition');if(pd!==undefined)pl['set']('yaw',pd);if(pe!==undefined)pl['set']('pitch',pe);if(pf!==undefined)pl['set']('hfov',pf);this['startPanoramaWithCamera'](pj,pk);}};TDV['Tour']['Script']['setSurfaceSelectionHotspotMode']=function(pm){var pn=this['getByClassName']('HotspotPanoramaOverlay');var po=this['getByClassName']('PanoramaPlayer');var pp=pm=='hotspotEnabled';var pq=pm=='circleEnabled';var pr=!!pm;pn['forEach'](function(ps){var pt=ps['get']('data');if(pt&&pt['hasPanoramaAction']==!![])ps['set']('enabledInSurfaceSelection',pp);});po['forEach'](function(pu){pu['set']('adjacentPanoramaPositionsEnabled',pq);pu['set']('surfaceSelectionEnabled',pr);});this['get']('data')['surfaceSelectionHotspotMode']=pm;};TDV['Tour']['Script']['setValue']=function(pv,pw,px){try{if('set'in pv)pv['set'](pw,px);else pv[pw]=px;}catch(py){}};TDV['Tour']['Script']['setStartTimeVideo']=function(pz,pA){var pB=this['getPlayListItems'](pz);var pC=[];var pD=function(){for(var pH=0x0;pH<pB['length'];++pH){var pI=pB[pH];pI['set']('startTime',pC[pH]);pI['unbind']('stop',pD,this);}};for(var pE=0x0;pE<pB['length'];++pE){var pF=pB[pE];var pG=pF['get']('player');if(!pG)continue;if(pG['get']('video')==pz&&pG['get']('state')=='playing'){pG['seek'](pA);}else{pC['push'](pF['get']('startTime'));pF['set']('startTime',pA);pF['bind']('stop',pD,this);}}};TDV['Tour']['Script']['setStartTimeVideoSync']=function(pJ,pK){if(pJ&&pK)this['setStartTimeVideo'](pJ,pK['get']('currentTime'));};TDV['Tour']['Script']['skip3DTransitionOnce']=function(pL){if(pL&&pL['get']('class')=='PanoramaPlayer'){var pM=pL['get']('viewerArea');if(pM&&pM['get']('translationTransitionEnabled')==!![]){var pN=function(){pL['unbind']('preloadMediaShow',pN,this);pM['set']('translationTransitionEnabled',!![]);};pM['set']('translationTransitionEnabled',![]);pL['bind']('preloadMediaShow',pN,this);}}};TDV['Tour']['Script']['shareSocial']=function(pO,pP,pQ,pR,pS,pT){if(pP==undefined){pP=location['href']['split'](location['search']||location['hash']||/[?#]/)[0x0];}if(pQ){pP+=this['updateDeepLink'](pR,pS,![]);}pP=function(pV){switch(pV){case'email':return'mailto:?body='+encodeURIComponent(pP);case'facebook':var pW=pP['indexOf']('?')!=-0x1;pP=pP['replace']('#','?');if(pW){var pX=pP['lastIndexOf']('?');pP=pP['substring'](0x0,pX)+'&'+pP['substring'](pX+0x1);}return'https://www.facebook.com/sharer/sharer.php?u='+encodeURIComponent(pP);case'linkedin':return'https://www.linkedin.com/shareArticle?mini=true&url='+encodeURIComponent(pP);case'pinterest':return'https://pinterest.com/pin/create/button/?url='+pP;case'telegram':return'https://t.me/share/url?url='+pP;case'twitter':return'https://twitter.com/intent/tweet?source=webclient&url='+pP;case'whatsapp':return'https://api.whatsapp.com/send/?text='+encodeURIComponent(pP);default:return pP;}}(pO);if(pT){for(var pU in pT){pP+='&'+pU+'='+pT[pU];}}if(pO=='clipboard')this['copyToClipboard'](pP);else this['openLink'](pP,'_blank');};TDV['Tour']['Script']['showComponentsWhileMouseOver']=function(pY,pZ,q0,q1){var q2=function(q6){for(var q7=0x0,q8=pZ['length'];q7<q8;q7++){var q9=pZ[q7];if(!q1||q1(q9,q6))q9['set']('visible',q6);}};if(this['get']('isMobile')){q2['call'](this,!![]);}else{var q3=-0x1;var q4=function(){q2['call'](this,!![]);if(q3>=0x0)clearTimeout(q3);pY['bind']('rollOut',q5,this);};var q5=function(){var qa=function(){q2['call'](this,![]);};pY['unbind']('rollOut',q5,this);q3=setTimeout(qa['bind'](this),q0);};pY['bind']('rollOver',q4,this);}};TDV['Tour']['Script']['showPopupMedia']=function(qb,qc,qd,qe,qf,qg){var qh=this;var qi=function(){window['resumeAudiosBlocked']=![];qd['set']('selectedIndex',-0x1);qh['getMainViewer']()['set']('toolTipEnabled',!![]);this['resumePlayers'](qn,!![]);if(qm){this['unbind']('resize',qk,this);}qb['unbind']('close',qi,this);};var qj=function(){qb['hide']();};var qk=function(){var qo=function(qF){return qb['get'](qF)||0x0;};var qp=qh['get']('actualWidth');var qq=qh['get']('actualHeight');var qr=qh['getMediaWidth'](qc);var qs=qh['getMediaHeight'](qc);var qt=parseFloat(qe)/0x64;var qu=parseFloat(qf)/0x64;var qv=qt*qp;var qw=qu*qq;var qx=qo('footerHeight');var qy=qo('headerHeight');if(!qy){var qz=qo('closeButtonIconHeight')+qo('closeButtonPaddingTop')+qo('closeButtonPaddingBottom');var qA=qh['getPixels'](qo('titleFontSize'))+qo('titlePaddingTop')+qo('titlePaddingBottom');qy=qz>qA?qz:qA;qy+=qo('headerPaddingTop')+qo('headerPaddingBottom');}var qB=qv-qo('bodyPaddingLeft')-qo('bodyPaddingRight')-qo('paddingLeft')-qo('paddingRight');var qC=qw-qy-qx-qo('bodyPaddingTop')-qo('bodyPaddingBottom')-qo('paddingTop')-qo('paddingBottom');var qD=qB/qC;var qE=qr/qs;if(qD>qE){qv=qC*qE+qo('bodyPaddingLeft')+qo('bodyPaddingRight')+qo('paddingLeft')+qo('paddingRight');}else{qw=qB/qE+qy+qx+qo('bodyPaddingTop')+qo('bodyPaddingBottom')+qo('paddingTop')+qo('paddingBottom');}if(qv>qp*qt){qv=qp*qt;}if(qw>qq*qu){qw=qq*qu;}qb['set']('width',qv);qb['set']('height',qw);qb['set']('x',(qp-qo('actualWidth'))*0.5);qb['set']('y',(qq-qo('actualHeight'))*0.5);};if(qg){this['executeFunctionWhenChange'](qd,0x0,qj);}var ql=qc['get']('class');var qm=ql=='Video'||ql=='Video360';qd['set']('selectedIndex',0x0);if(qm){this['bind']('resize',qk,this);qk();qd['get']('items')[0x0]['get']('player')['play']();}else{qb['set']('width',qe);qb['set']('height',qf);}window['resumeAudiosBlocked']=!![];this['getMainViewer']()['set']('toolTipEnabled',![]);var qn=this['pauseCurrentPlayers'](!![]);qb['bind']('close',qi,this);qb['show'](this,!![]);};TDV['Tour']['Script']['showPopupImage']=function(qG,qH,qI,qJ,qK,qL,qM,qN,qO,qP,qQ,qR){var qS=![];var qT=function(){ra['unbind']('loaded',qW,this);r0['call'](this);};var qU=function(){ra['unbind']('click',qU,this);if(re!=undefined){clearTimeout(re);}};var qV=function(){setTimeout(r4,0x0);};var qW=function(){this['unbind']('click',qT,this);r9['set']('visible',!![]);r4();rb['set']('visible',!![]);ra['unbind']('loaded',qW,this);ra['bind']('resize',qV,this);re=setTimeout(qX['bind'](this),0xc8);};var qX=function(){re=undefined;if(qN){ra['bind']('click',qU,this);qZ['call'](this);}ra['bind']('userInteractionStart',r5,this);ra['bind']('userInteractionEnd',r6,this);ra['bind']('backgroundClick',r0,this);if(qH){ra['bind']('click',r2,this);ra['set']('imageCursor','hand');}rb['bind']('click',r0,this);if(qQ)qQ['call'](this);};var qY=function(){if(qN&&re){clearTimeout(re);re=undefined;}};var qZ=function(){if(qN){qY();re=setTimeout(r0['bind'](this),qN);}};var r0=function(){this['getMainViewer']()['set']('toolTipEnabled',!![]);qS=!![];if(re)clearTimeout(re);if(rf)clearTimeout(rf);if(qN)qU();if(qR)qR['call'](this);ra['set']('visible',![]);if(qL&&qL['get']('duration')>0x0){qL['bind']('end',r1,this);}else{ra['set']('image',null);}rb['set']('visible',![]);r9['set']('visible',![]);this['unbind']('click',qT,this);ra['unbind']('backgroundClick',r0,this);ra['unbind']('userInteractionStart',r5,this);ra['unbind']('userInteractionEnd',r6,this,!![]);ra['unbind']('resize',qV,this);if(qH){ra['unbind']('click',r2,this);ra['set']('cursor','default');}rb['unbind']('click',r0,this);this['resumePlayers'](rd,qO==null||qP);if(qP){this['resumeGlobalAudios']();}if(qO){this['stopGlobalAudio'](qO);}};var r1=function(){ra['set']('image',null);qL['unbind']('end',r1,this);};var r2=function(){ra['set']('image',r3()?qG:qH);};var r3=function(){return ra['get']('image')==qH;};var r4=function(){var rg=ra['get']('actualWidth')-ra['get']('imageLeft')-ra['get']('imageWidth')+0xa;var rh=ra['get']('imageTop')+0xa;if(rg<0xa)rg=0xa;if(rh<0xa)rh=0xa;rb['set']('right',rg);rb['set']('top',rh);};var r5=function(){qY();if(rf){clearTimeout(rf);rf=undefined;}else{rb['set']('visible',![]);}};var r6=function(){qZ['call'](this);if(!qS){rf=setTimeout(r7,0x12c);}};var r7=function(){rf=undefined;rb['set']('visible',!![]);r4();};var r8=function(ri){var rj=ri['get']('data');if(rj&&'extraLevels'in rj){var rk=this['rootPlayer']['createInstance'](ri['get']('class'));var rl=rj['extraLevels'];for(var rm=0x0;rm<rl['length'];rm++){var rn=rl[rm];if(typeof rn=='string')rl[rm]=this[rn['replace']('this.','')];}rk['set']('levels',ri['get']('levels')['concat'](rl));ri=rk;}return ri;};this['getMainViewer']()['set']('toolTipEnabled',![]);var r9=this['veilPopupPanorama'];var ra=this['zoomImagePopupPanorama'];var rb=this['closeButtonPopupPanorama'];if(qM){for(var rc in qM){rb['set'](rc,qM[rc]);}}var rd=this['pauseCurrentPlayers'](qO==null||!qP);if(qP){this['pauseGlobalAudios'](null,!![]);}if(qO){this['playGlobalAudio'](qO,!![]);}var re=undefined;var rf=undefined;qG=r8['call'](this,qG);if(qH)qH=r8['call'](this,qH);ra['bind']('loaded',qW,this);setTimeout(function(){this['bind']('click',qT,this,![]);}['bind'](this),0x0);ra['set']('image',qG);ra['set']('customWidth',qI);ra['set']('customHeight',qJ);ra['set']('showEffect',qK);ra['set']('hideEffect',qL);ra['set']('visible',!![]);return ra;};TDV['Tour']['Script']['showPopupPanoramaOverlay']=function(ro,rp,rq,rr,rs,rt,ru,rv){var rw=this['isCardboardViewMode']();if(ro['get']('visible')||!rw&&this['zoomImagePopupPanorama']['get']('visible'))return;this['getMainViewer']()['set']('toolTipEnabled',![]);if(!rw){var rx=this['zoomImagePopupPanorama'];var ry=ro['get']('showDuration');var rz=ro['get']('hideDuration');var rB=this['pauseCurrentPlayers'](rt==null||!ru);var rC=ro['get']('popupMaxWidth');var rD=ro['get']('popupMaxHeight');var rE=function(){var rH=function(){if(!this['isCardboardViewMode']())ro['set']('visible',![]);};ro['unbind']('showEnd',rE,this);ro['set']('showDuration',0x1);ro['set']('hideDuration',0x1);this['showPopupImage'](rq,rr,ro['get']('popupMaxWidth'),ro['get']('popupMaxHeight'),null,null,rp,rs,rt,ru,rH,rF);};var rF=function(){var rI=function(){ro['unbind']('showEnd',rI,this);ro['set']('visible',![]);ro['set']('showDuration',ry);ro['set']('popupMaxWidth',rC);ro['set']('popupMaxHeight',rD);};this['resumePlayers'](rB,rt==null||!ru);var rJ=rx['get']('imageWidth');var rK=rx['get']('imageHeight');ro['bind']('showEnd',rI,this,!![]);ro['set']('showDuration',0x1);ro['set']('hideDuration',rz);ro['set']('popupMaxWidth',rJ);ro['set']('popupMaxHeight',rK);if(ro['get']('visible'))rI();else ro['set']('visible',!![]);this['getMainViewer']()['set']('toolTipEnabled',!![]);if(rv)rv();};ro['bind']('showEnd',rE,this,!![]);}else{var rG=function(){this['resumePlayers'](rB,rt==null||ru);if(ru){this['resumeGlobalAudios']();}if(rt){this['stopGlobalAudio'](rt);}ro['unbind']('hideEnd',rG,this);this['getMainViewer']()['set']('toolTipEnabled',!![]);if(rv)rv();};var rB=this['pauseCurrentPlayers'](rt==null||!ru);if(ru){this['pauseGlobalAudios'](null,!![]);}if(rt){this['playGlobalAudio'](rt,!![]);}ro['bind']('hideEnd',rG,this,!![]);}ro['set']('visible',!![]);};TDV['Tour']['Script']['showPopupPanoramaVideoOverlay']=function(rL,rM,rN,rO,rP){var rQ=![];var rR=function(){rL['unbind']('showEnd',rR);rV['bind']('click',rT,this);rU();rV['set']('visible',!![]);}['bind'](this);var rS=function(){rQ=!![];if(!rL['get']('loop'))rT();}['bind'](this);var rT=function(){window['resumeAudiosBlocked']=![];this['getMainViewer']()['set']('toolTipEnabled',!![]);rL['set']('visible',![]);rV['set']('visible',![]);rV['unbind']('click',rT,this);rL['unbind']('end',rS,this);rL['unbind']('hideEnd',rT,this,!![]);this['resumePlayers'](rX,!![]);if(rN){this['resumeGlobalAudios']();}if(rO)rO();if(rP&&rQ)rP();}['bind'](this);var rU=function(){var rY=0xa;var rZ=0xa;rV['set']('right',rY);rV['set']('top',rZ);}['bind'](this);this['getMainViewer']()['set']('toolTipEnabled',![]);var rV=this['closeButtonPopupPanorama'];if(rM){for(var rW in rM){rV['set'](rW,rM[rW]);}}window['resumeAudiosBlocked']=!![];var rX=this['pauseCurrentPlayers'](!![]);if(rN){this['pauseGlobalAudios']();}rL['bind']('end',rS,this,!![]);rL['bind']('showEnd',rR,this,!![]);rL['bind']('hideEnd',rT,this,!![]);rL['set']('visible',!![]);};TDV['Tour']['Script']['showWindow']=function(s0,s1,s2){if(s0['get']('visible')==!![]){return;}var s3=function(){this['getMainViewer']()['set']('toolTipEnabled',!![]);if(s2){this['resumeGlobalAudios']();}s4();this['resumePlayers'](s7,!s2);s0['unbind']('close',s3,this);};var s4=function(){s0['unbind']('click',s4,this);if(s5!=undefined){clearTimeout(s5);}};var s5=undefined;if(s1){var s6=function(){s0['hide']();};s0['bind']('click',s4,this);s5=setTimeout(s6,s1);}this['getMainViewer']()['set']('toolTipEnabled',![]);if(s2){this['pauseGlobalAudios'](null,!![]);}var s7=this['pauseCurrentPlayers'](!s2);s0['bind']('close',s3,this);s0['show'](this,!![]);};TDV['Tour']['Script']['startPanoramaWithCamera']=function(s8,s9){var sa=this['getByClassName']('PlayList');if(sa['length']==0x0)return;var sb=window['currentPanoramasWithCameraChanged']==undefined||!(s8['get']('id')in window['currentPanoramasWithCameraChanged']);var sc=[];for(var se=0x0,sf=sa['length'];se<sf;++se){var sg=sa[se];var sh=sg['get']('items');for(var si=0x0,sj=sh['length'];si<sj;++si){var sl=sh[si];if(sl['get']('media')==s8&&(sl['get']('class')=='PanoramaPlayListItem'||sl['get']('class')=='Video360PlayListItem')){if(sb){sc['push']({'camera':sl['get']('camera'),'item':sl});}sl['set']('camera',s9);}}}if(sc['length']>0x0){if(window['currentPanoramasWithCameraChanged']==undefined){window['currentPanoramasWithCameraChanged']={};}var sm=s8['get']('id');window['currentPanoramasWithCameraChanged'][sm]=sc;var sn=function(){if(sm in window['currentPanoramasWithCameraChanged']){delete window['currentPanoramasWithCameraChanged'][sm];}for(var sp=0x0;sp<sc['length'];sp++){sc[sp]['item']['set']('camera',sc[sp]['camera']);sc[sp]['item']['unbind']('end',sn,this);}};for(var se=0x0;se<sc['length'];se++){var so=sc[se];var sl=so['item'];this['skip3DTransitionOnce'](sl['get']('player'));sl['bind']('end',sn,this);}}};TDV['Tour']['Script']['stopAndGoCamera']=function(sq,sr){var ss=sq['get']('initialSequence');ss['pause']();var st=function(){ss['play']();};setTimeout(st,sr);};TDV['Tour']['Script']['syncPlaylists']=function(su){var sv=function(sD,sE){for(var sF=0x0,sG=su['length'];sF<sG;++sF){var sH=su[sF];if(sH!=sE){var sI=sH['get']('items');for(var sJ=0x0,sK=sI['length'];sJ<sK;++sJ){if(sI[sJ]['get']('media')==sD){if(sH['get']('selectedIndex')!=sJ){sH['set']('selectedIndex',sJ);}break;}}}}};var sw=function(sL){var sM=sL['source'];var sN=sM['get']('selectedIndex');if(sN<0x0)return;var sO=sM['get']('items')[sN]['get']('media');sv(sO,sM);};var sx=function(sP){var sQ=sP['source']['get']('panoramaMapLocation');if(sQ){var sR=sQ['get']('map');sv(sR);}};for(var sz=0x0,sB=su['length'];sz<sB;++sz){su[sz]['bind']('change',sw,this);}var sC=this['getByClassName']('MapPlayer');for(var sz=0x0,sB=sC['length'];sz<sB;++sz){sC[sz]['bind']('panoramaMapLocation_change',sx,this);}};TDV['Tour']['Script']['translate']=function(sS){return this['get']('data')['localeManager']['trans'](sS);};TDV['Tour']['Script']['triggerOverlay']=function(sT,sU){if(sT['get']('areas')!=undefined){var sV=sT['get']('areas');for(var sW=0x0;sW<sV['length'];++sW){sV[sW]['trigger'](sU);}}else{sT['trigger'](sU);}};TDV['Tour']['Script']['updateDeepLink']=function(sX,sY,sZ){var t0=this['mainPlayList']['get']('selectedIndex');var t1;var t2;if(t0>=0x0){t1='#media='+(t0+0x1);t2=this['mainPlayList']['get']('items')[t0]['get']('media');}else{t2=this['getActiveMediaWithViewer'](this['getMainViewer']());if(t2!=undefined){var t4=t2['get']('data');if(t4){t1='#media-name='+t4['label'];}}}if(t2){if(sX){var t5=this['getActivePlayerWithViewer'](this['getMainViewer']());if(t5&&t5['get']('class')=='PanoramaPlayer'){t1+='&yaw='+t5['get']('yaw')['toFixed'](0x2)+'&pitch='+t5['get']('pitch')['toFixed'](0x2);}}if(sY){var t6=this['getOverlays'](t2);var t7=[];var t8=[];for(var t9=0x0,ta=t6['length'];t9<ta;++t9){var tb=t6[t9];var tc=tb['get']('enabled');var t4=tb['get']('data');if(tc===undefined||!t4||!t4['label'])continue;var td=encodeURIComponent(t4['label']);var te=t4['group'];if(tc!=t4['defaultEnabledValue']){if(tc){t7['push'](td);}else if(!te){t8['push'](td);}}}if(t7['length']>0x0)t1+='&son='+t7['join'](',');if(t8['length']>0x0)t1+='&hon='+t8['join'](',');}}if(t1&&sZ===!![]){location['hash']=t1;}return t1;};TDV['Tour']['Script']['updateMediaLabelFromPlayList']=function(tf,tg,th){var ti=function(){var tk=tf['get']('selectedIndex');if(tk>=0x0){var tl=function(){to['unbind']('begin',tl);tm(tk);};var tm=function(tp){var tq=to['get']('media');var tr=tq['get']('data');var ts=tr!==undefined?tr['description']:undefined;tn(ts);};var tn=function(tt){if(tt!==undefined){tg['set']('html','<div\x20style=\x22text-align:left\x22><SPAN\x20STYLE=\x22color:#FFFFFF;font-size:12px;font-family:Verdana\x22><span\x20color=\x22white\x22\x20font-family=\x22Verdana\x22\x20font-size=\x2212px\x22>'+tt+'</SPAN></div>');}else{tg['set']('html','');}var tu=tg['get']('html');tg['set']('visible',tu!==undefined&&tu);};var to=tf['get']('items')[tk];if(tg['get']('html')){tn('Loading...');to['bind']('begin',tl);}else{tm(tk);}}};var tj=function(){tg['set']('html',undefined);tf['unbind']('change',ti,this);th['unbind']('stop',tj,this);};if(th){th['bind']('stop',tj,this);}tf['bind']('change',ti,this);ti();};TDV['Tour']['Script']['updateVideoCues']=function(tv,tw){var tx=tv['get']('items')[tw];var ty=tx['get']('media');if(ty['get']('cues')['length']==0x0)return;var tz=tx['get']('player');var tA=[];var tB=function(){if(tv['get']('selectedIndex')!=tw){ty['unbind']('cueChange',tC,this);tv['unbind']('change',tB,this);}};var tC=function(tD){var tE=tD['data']['activeCues'];for(var tF=0x0,tG=tA['length'];tF<tG;++tF){var tH=tA[tF];if(tE['indexOf'](tH)==-0x1&&(tH['get']('startTime')>tz['get']('currentTime')||tH['get']('endTime')<tz['get']('currentTime')+0.5)){tH['trigger']('end');}}tA=tE;};ty['bind']('cueChange',tC,this);tv['bind']('change',tB,this);};TDV['Tour']['Script']['visibleComponentsIfPlayerFlagEnabled']=function(tI,tJ){var tK=this['get'](tJ);for(var tL in tI){tI[tL]['set']('visible',tK);}};TDV['Tour']['Script']['quizStart']=function(){var tM=this['get']('data')['quiz'];return tM?tM['start']():undefined;};TDV['Tour']['Script']['quizFinish']=function(){var tN=this['get']('data')['quiz'];return tN?tN['finish']():undefined;};TDV['Tour']['Script']['quizPauseTimer']=function(){var tO=this['get']('data')['quiz'];return tO?tO['pauseTimer']():undefined;};TDV['Tour']['Script']['quizResumeTimer']=function(){var tP=this['get']('data')['quiz'];return tP?tP['continueTimer']():undefined;};TDV['Tour']['Script']['quizSetItemFound']=function(tQ){var tR=this['get']('data')['quiz'];if(tR)tR['setItemFound'](tQ);};TDV['Tour']['Script']['quizShowQuestion']=function(tS){var tT=this['get']('data');var tU=tT['quiz'];var tV;if(tU){var tW=this['pauseCurrentPlayers'](!![]);var tX=this[tS];var tY;if(!tX['media']){tY=this['get']('isMobile')?{'theme':{'window':{'height':undefined,'maxHeight':this['get']('actualHeight'),'optionsContainer':{'height':'100%'}}}}:{'theme':{'window':{'width':'40%','height':undefined,'maxHeight':0x2bc,'optionsContainer':{'width':'100%'}}}};}else if(this['get']('isMobile')&&this['get']('orientation')=='landscape'){tY={'theme':{'window':{'bodyContainer':{'layout':'horizontal','paddingLeft':0x1e,'paddingRight':0x1e},'mediaContainer':{'width':'60%','height':'100%'},'buttonsContainer':{'paddingLeft':0x14,'paddingRight':0x14},'optionsContainer':{'width':'40%','height':'100%','paddingLeft':0x0,'paddingRight':0x0}}}};}if(!tX['canClose']){tY=this['mixObject'](tY||{},{'theme':{'window':{'closeButton':{'width':0x0,'height':0x0,'paddingTop':0x0,'paddingBottom':0x0,'paddingLeft':0x0,'paddingRight':0x0}}}});}if(this['get']('isMobile')&&this['get']('orientation')=='landscape'){var tZ=this['get']('data')['tour']['getNotchValue']();if(tZ>0x0){tY=this['mixObject'](tY||{},{'theme':{'window':{'width':undefined,'left':tZ,'right':tZ}}});}}var u0=this['get']('data')['textToSpeechConfig']['speechOnQuizQuestion']&&!!tX['title'];if(u0)this['textToSpeech'](tX['title'],tS);tV=tU['showQuestion'](tS,tY);tV['then'](function(u1){if(u0)this['stopTextToSpeech']();this['resumePlayers'](tW,!![]);}['bind'](this));}return tV;};TDV['Tour']['Script']['quizShowScore']=function(u2){var u3=this['get']('data');var u4=u3['quiz'];if(u4){if(this['get']('isMobile')){u2=u2||{};u2=this['mixObject'](u2,u3[this['get']('orientation')=='portrait'?'scorePortraitConfig':'scoreLandscapeConfig']);}return u4['showScore'](u2);}};TDV['Tour']['Script']['quizShowTimeout']=function(u5,u6){var u7=this['get']('data');var u8=u7['quiz'];if(u8){if(this['get']('isMobile')){u6=u6||{};u6=this['mixObject'](u6,u7[this['get']('orientation')=='portrait'?'scorePortraitConfig':'scoreLandscapeConfig']);}u8['showTimeout'](u5,u6);}};TDV['Tour']['Script']['stopTextToSpeech']=function(u9){if(window['speechSynthesis']&&(u9==undefined||this['t2sLastID']==u9)){var ua=window['speechSynthesis'];if(ua['speaking']){ua['cancel']();}this['t2sLastID']=undefined;}};TDV['Tour']['Script']['textToSpeech']=function(ub,uc,ud){if(this['get']('mute')){return;}var ue=this['get']('data');var uf=ue['disableTTS']||![];if(uf)return;if(uc!=undefined&&this['t2sLastID']!=uc||uc==undefined){ud=ud||0x0;if(this['t2sLastID']&&ud>this['t2sLastPriority']){return;}var ug=ue['tour'];var uh=ue['textToSpeechConfig'];var ui=ue['localeManager']['currentLocaleID'];if(window['speechSynthesis']){var uj=window['speechSynthesis'];if(uj['speaking']){uj['cancel']();}var uk=new SpeechSynthesisUtterance(ub);if(ui)uk['lang']=ui;var ul;if(uh){uk['volume']=uh['volume'];uk['pitch']=uh['pitch'];uk['rate']=uh['rate'];if(uh['stopBackgroundAudio'])this['pauseGlobalAudios'](null,!![]);}uk['onend']=function(){this['t2sLastID']=null;if(ul)clearInterval(ul);if(uh['stopBackgroundAudio'])this['resumeGlobalAudios']();}['bind'](this);if(navigator['userAgent']['indexOf']('Chrome')!=-0x1&&!this['get']('isMobile')){ul=setInterval(function(){uj['pause']();uj['resume']();},0xbb8);}uj['speak'](uk);this['t2sLastPriority']=ud;this['t2sLastID']=uc;}else if(ug['isMobileApp']()){if(!ug['isIOS']()){var um=function(un,uo){var up={'command':'tts','type':un};if(uo)up=this['mixObject'](up,uo);android['sendJSON'](JSON['stringify'](up));}['bind'](this);android['onTTSEnd']=function(){this['t2sLastID']=null;if(uh['stopBackgroundAudio'])this['resumeGlobalAudios']();android['onTTSEnd']=undefined;}['bind'](this);um('stop');if(uh){um('init',{'volume':uh['volume'],'pitch':uh['pitch'],'rate':uh['rate'],'language':ui});if(uh['stopBackgroundAudio'])this['pauseGlobalAudios'](null,!![]);}um('play',{'text':ub,'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(uq){var ur=uq['get']('class');var us;if(ur=='HTMLText'){var ut=uq['get']('html');if(ut){us=this['htmlToPlainText'](ut,{'linkProcess':function(uu,uv){return uv;}});}}else if(ur=='BaseButton'){us=uq['get']('label');}else if(ur=='Label'){us=uq['get']('text');}if(us){this['textToSpeech'](us,uq['get']('id'));}};TDV['Tour']['Script']['_initTTSTooltips']=function(){function uw(uy){var uz=uy['source'];this['textToSpeech'](uz['get']('toolTip'),uz['get']('id'),0x1);}function ux(uA){var uB=uA['source'];this['stopTextToSpeech'](uB['get']('id'));}setTimeout(function(){var uC=this['getByClassName']('UIComponent');for(var uD=0x0,uE=uC['length'];uD<uE;++uD){var uF=uC[uD];var uG=uF['get']('toolTip');if(!!uG||uF['get']('class')=='ViewerArea'){uF['bind']('toolTipShow',uw,this);uF['bind']('toolTipHide',ux,this);}}}['bind'](this),0x0);};TDV['Tour']['Script']['takeScreenshot']=function(uH){var uI=this['getActivePlayerWithViewer'](uH);if(uI&&uI['get']('class')=='PanoramaPlayer')uI['saveScreenshot']();};TDV['Tour']['Script']['htmlToPlainText']=function htmlToPlainText(uJ,uK){var uL=function(uZ,v0){var v1='';for(var v2=0x0;v2<v0;v2+=0x1){v1+=uZ;}return v1;};var uM=null;var uN=null;var uO='underline';var uP='indention';var uQ='-';var uR=0x3;var uS='-';var uT=![];if(!!uK){if(typeof uK['linkProcess']==='function'){uM=uK['linkProcess'];}if(typeof uK['imgProcess']==='function'){uN=uK['imgProcess'];}if(!!uK['headingStyle']){uO=uK['headingStyle'];}if(!!uK['listStyle']){uP=uK['listStyle'];}if(!!uK['uIndentionChar']){uQ=uK['uIndentionChar'];}if(!!uK['listIndentionTabs']){uR=uK['listIndentionTabs'];}if(!!uK['oIndentionChar']){uS=uK['oIndentionChar'];}if(!!uK['keepNbsps']){uT=uK['keepNbsps'];}}var uU=uL(uQ,uR);var uV=String(uJ)['replace'](/\n|\r/g,'\x20');const uW=uV['match'](/<\/body>/i);if(uW){uV=uV['substring'](0x0,uW['index']);}const uX=uV['match'](/<body[^>]*>/i);if(uX){uV=uV['substring'](uX['index']+uX[0x0]['length'],uV['length']);}uV=uV['replace'](/<(script|style)( [^>]*)*>((?!<\/\1( [^>]*)*>).)*<\/\1>/gi,'');uV=uV['replace'](/<(\/)?((?!h[1-6]( [^>]*)*>)(?!img( [^>]*)*>)(?!a( [^>]*)*>)(?!ul( [^>]*)*>)(?!ol( [^>]*)*>)(?!li( [^>]*)*>)(?!p( [^>]*)*>)(?!div( [^>]*)*>)(?!td( [^>]*)*>)(?!br( [^>]*)*>)[^>\/])[^<>]*>/gi,'');uV=uV['replace'](/<img([^>]*)>/gi,function(v3,v4){var v5='';var v6='';var v7=/src="([^"]*)"/i['exec'](v4);var v8=/alt="([^"]*)"/i['exec'](v4);if(v7!==null){v5=v7[0x1];}if(v8!==null){v6=v8[0x1];}if(typeof uN==='function'){return uN(v5,v6);}if(v6===''){return'![image]\x20('+v5+')';}return'!['+v6+']\x20('+v5+')';});function uY(){return function(v9,va,vb,vc){var vd=0x0;if(vb&&/start="([0-9]+)"/i['test'](vb)){vd=/start="([0-9]+)"/i['exec'](vb)[0x1]-0x1;}var ve='<p>'+vc['replace'](/<li[^>]*>(((?!<li[^>]*>)(?!<\/li>).)*)<\/li>/gi,function(vf,vg){var vh=0x0;var vi=vg['replace'](/(^|(<br \/>))(?!<p>)/gi,function(){if(va==='o'&&vh===0x0){vd+=0x1;vh+=0x1;return'<br\x20/>'+vd+uL(uS,uR-String(vd)['length']);}return'<br\x20/>'+uU;});return vi;})+'</p>';return ve;};}if(uP==='linebreak'){uV=uV['replace'](/<\/?ul[^>]*>|<\/?ol[^>]*>|<\/?li[^>]*>/gi,'\x0a');}else if(uP==='indention'){while(/<(o|u)l[^>]*>(.*)<\/\1l>/gi['test'](uV)){uV=uV['replace'](/<(o|u)l([^>]*)>(((?!<(o|u)l[^>]*>)(?!<\/(o|u)l>).)*)<\/\1l>/gi,uY());}}if(uO==='linebreak'){uV=uV['replace'](/<h([1-6])[^>]*>([^<]*)<\/h\1>/gi,'\x0a$2\x0a');}else if(uO==='underline'){uV=uV['replace'](/<h1[^>]*>(((?!<\/h1>).)*)<\/h1>/gi,function(vj,vk){return'\x0a \x0a'+vk+'\x0a'+uL('=',vk['length'])+'\x0a \x0a';});uV=uV['replace'](/<h2[^>]*>(((?!<\/h2>).)*)<\/h2>/gi,function(vl,vm){return'\x0a \x0a'+vm+'\x0a'+uL('-',vm['length'])+'\x0a \x0a';});uV=uV['replace'](/<h([3-6])[^>]*>(((?!<\/h\1>).)*)<\/h\1>/gi,function(vn,vo,vp){return'\x0a \x0a'+vp+'\x0a \x0a';});}else if(uO==='hashify'){uV=uV['replace'](/<h([1-6])[^>]*>([^<]*)<\/h\1>/gi,function(vq,vr,vs){return'\x0a \x0a'+uL('#',vr)+'\x20'+vs+'\x0a \x0a';});}uV=uV['replace'](/<br( [^>]*)*>|<p( [^>]*)*>|<\/p( [^>]*)*>|<div( [^>]*)*>|<\/div( [^>]*)*>|<td( [^>]*)*>|<\/td( [^>]*)*>/gi,'\x0a');uV=uV['replace'](/<a[^>]*href="([^"]*)"[^>]*>([^<]+)<\/a[^>]*>/gi,function(vt,vu,vv){if(typeof uM==='function'){return uM(vu,vv);}return'\x20['+vv+']\x20('+vu+')\x20';});uV=uV['replace'](/\n[ \t\f]*/gi,'\x0a');uV=uV['replace'](/\n\n+/gi,'\x0a');if(uT){uV=uV['replace'](/( |\t)+/gi,'\x20');uV=uV['replace'](/ /gi,'\x20');}else{uV=uV['replace'](/( | |\t)+/gi,'\x20');}uV=uV['replace'](/\n +/gi,'\x0a');uV=uV['replace'](/^ +/gi,'');while(uV['indexOf']('\x0a')===0x0){uV=uV['substring'](0x1);}if(uV['length']===0x0||uV['lastIndexOf']('\x0a')!==uV['length']-0x1){uV+='\x0a';}return uV;};TDV['Tour']['Script']['openEmbeddedPDF']=function(vw,vx){var vy=!!window['MSInputMethodContext']&&!!document['documentMode'];if(vy){this['openLink'](vx,'_blank');return;}var vz=vw['get']('class');var vA=!new RegExp('^(?:[a-z]+:)?//','i')['test'](vx);if(vA&&vz=='WebFrame'){var vB=location['origin']+location['pathname'];vw['set']('url','lib/pdfjs/web/viewer.html?file='+encodeURIComponent(vB['substring'](0x0,vB['lastIndexOf']('/'))+'/'+vx));}else{var vC=location['origin']==new URL(vx)['origin'];var vD='<iframe\x20\x20id=\x27googleViewer\x27\x20src=\x27https://docs.google.com/viewer?url=[url]&embedded=true\x27\x20width=\x27100%\x27\x20height=\x27100%\x27\x20frameborder=\x270\x27>'+'<p>This\x20browser\x20does\x20not\x20support\x20inline\x20PDFs.\x20Please\x20download\x20the\x20PDF\x20to\x20view\x20it:\x20<a\x20href=\x27[url]\x27>Download\x20PDF</a></p>'+'</iframe>';var vE=/^((?!chrome|android|crios|ipad|iphone).)*safari/i['test'](navigator['userAgent']);var vF='<div\x20id=\x22content\x22\x20style=\x22width:100%;height:100%;position:absolute;left:0;top:0;\x22></div>'+'<script\x20type=\x22text/javascript\x22>'+'!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<p>This\x20browser\x20does\x20not\x20support\x20inline\x20PDFs.\x20Please\x20download\x20the\x20PDF\x20to\x20view\x20it:\x20<a\x20href=\x27[url]\x27>Download\x20PDF</a></p>\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'+vx+'\x22,\x20\x22#content\x22,\x20{'+(vC?'\x22PDFJS_URL\x22:\x20\x22'+new URL('lib/pdfjs/web/viewer.html',document['baseURI'])['href']+'\x22,\x20':'')+'\x22fallbackLink\x22:\x20\x22'+vD+'\x22,'+'\x22forcePDFJS\x22:\x20'+vE+'});'+'if(!PDFObject.supportsPDFs\x20&&\x20!'+vC+'){'+'\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();'+'}'+'</script>';if(vz=='WebFrame'){vw['set']('url','data:text/html;charset=utf-8,'+encodeURIComponent('<!DOCTYPE\x20html>'+'<html>'+'<head></head>'+'<body\x20style=\x22height:100%;width:100%;overflow:hidden;margin:0px;background-color:rgb(82,\x2086,\x2089);\x22>'+vF+'</body>'+'</html>'));}else if(vz=='HTML'){vw['set']('content','data:text/html;charset=utf-8,'+encodeURIComponent(vF));}}};TDV['Tour']['Script']['getKey']=function(vG){return window[vG];};TDV['Tour']['Script']['registerKey']=function(vH,vI){window[vH]=vI;};TDV['Tour']['Script']['unregisterKey']=function(vJ){delete window[vJ];};TDV['Tour']['Script']['existsKey']=function(vK){return vK in window;};
//# sourceMappingURL=script_v2022.1.5.js.map
//Generated with v2022.1.5, Thu Jun 2 2022