Localisation updates from https://translatewiki.net.
[rails.git] / vendor / assets / iD / iD / pannellum-streetside / pannellum.htm
1 <!DOCTYPE HTML>
2 <!-- Pannellum 2.4.1, https://github.com/mpetroff/pannellum -->
3 <html><head><meta charset=utf-8><meta name=viewport content="width=device-width, initial-scale=1.0"><title>Pannellum</title><style type="text/css">.pnlm-container{margin:0;padding:0;overflow:hidden;position:relative;cursor:default;width:100%;height:100%;font-family:Helvetica,"Nimbus Sans L","Liberation Sans",Arial,sans-serif;background:#f4f4f4 url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2267%22%20height%3D%22100%22%20viewBox%3D%220%200%2067%20100%22%3E%0A%3Cpath%20stroke%3D%22%23ccc%22%20fill%3D%22none%22%20d%3D%22M33.5%2C50%2C0%2C63%2C33.5%2C75%2C67%2C63%2C33.5%2C50m-33.5-50%2C67%2C25m-0.5%2C0%2C0%2C75m-66.5-75%2C67-25m-33.5%2C75%2C0%2C25m0-100%2C0%2C50%22%2F%3E%0A%3C%2Fsvg%3E%0A') repeat;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-o-user-select:none;-ms-user-select:none;user-select:none;outline:0;line-height:1.4;contain:content;touch-action:none}.pnlm-container *{box-sizing:content-box}.pnlm-ui{position:absolute;width:100%;height:100%;z-index:1}.pnlm-grab{cursor:grab;cursor:url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20height%3D%2226%22%20width%3D%2226%22%3E%0A%3Cpath%20stroke%3D%22%23000%22%20stroke-width%3D%221px%22%20fill%3D%22%23fff%22%20d%3D%22m15.3%2020.5s6.38-6.73%204.64-8.24-3.47%201.01-3.47%201.01%203.61-5.72%201.41-6.49c-2.2-0.769-3.33%204.36-3.33%204.36s0.873-5.76-1.06-5.76-1.58%205.39-1.58%205.39-0.574-4.59-2.18-4.12c-1.61%200.468-0.572%205.51-0.572%205.51s-1.58-4.89-2.93-3.79c-1.35%201.11%200.258%205.25%200.572%206.62%200.836%202.43%202.03%202.94%202.17%205.55%22%2F%3E%0A%3C%2Fsvg%3E%0A') 12 8,default}.pnlm-grabbing{cursor:grabbing;cursor:url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20height%3D%2226%22%20width%3D%2226%22%3E%0A%3Cpath%20stroke%3D%22%23000%22%20stroke-width%3D%221px%22%20fill%3D%22%23fff%22%20d%3D%22m15.3%2020.5s5.07-5.29%203.77-6.74c-1.31-1.45-2.53%200.14-2.53%200.14s2.74-3.29%200.535-4.06c-2.2-0.769-2.52%201.3-2.52%201.3s0.81-2.13-1.12-2.13-1.52%201.77-1.52%201.77-0.261-1.59-1.87-1.12c-1.61%200.468-0.874%202.17-0.874%202.17s-0.651-1.55-2-0.445c-1.35%201.11-0.68%202.25-0.365%203.62%200.836%202.43%202.03%202.94%202.17%205.55%22%2F%3E%0A%3C%2Fsvg%3E%0A') 12 8,default}.pnlm-sprite{background-image:url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2226%22%20height%3D%22208%22%3E%0A%3Ccircle%20fill-opacity%3D%22.78%22%20cy%3D%22117%22%20cx%3D%2213%22%20r%3D%2211%22%20fill%3D%22%23fff%22%2F%3E%0A%3Ccircle%20fill-opacity%3D%22.78%22%20cy%3D%22143%22%20cx%3D%2213%22%20r%3D%2211%22%20fill%3D%22%23fff%22%2F%3E%0A%3Ccircle%20cy%3D%22169%22%20cx%3D%2213%22%20r%3D%227%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%2F%3E%0A%3Ccircle%20cy%3D%22195%22%20cx%3D%2213%22%20r%3D%227%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%2F%3E%0A%3Ccircle%20cx%3D%2213%22%20cy%3D%22195%22%20r%3D%222.5%22%2F%3E%0A%3Cpath%20d%3D%22m5%2083v6h2v-4h4v-2zm10%200v2h4v4h2v-6zm-5%205v6h6v-6zm-5%205v6h6v-2h-4v-4zm14%200v4h-4v2h6v-6z%22%2F%3E%0A%3Cpath%20d%3D%22m13%20110a7%207%200%200%200%20-7%207%207%207%200%200%200%207%207%207%207%200%200%200%207%20-7%207%207%200%200%200%20-7%20-7zm-1%203h2v2h-2zm0%203h2v5h-2z%22%2F%3E%0A%3Cpath%20d%3D%22m5%2057v6h2v-4h4v-2zm10%200v2h4v4h2v-6zm-10%2010v6h6v-2h-4v-4zm14%200v4h-4v2h6v-6z%22%2F%3E%0A%3Cpath%20d%3D%22m17%2038v2h-8v-2z%22%2F%3E%0A%3Cpath%20d%3D%22m12%209v3h-3v2h3v3h2v-3h3v-2h-3v-3z%22%2F%3E%0A%3Cpath%20d%3D%22m13%20136-6.125%206.125h4.375v7.875h3.5v-7.875h4.375z%22%2F%3E%0A%3Cpath%20d%3D%22m10.428%20173.33v-5.77l5-2.89v5.77zm1-1.73%203-1.73-3.001-1.74z%22%2F%3E%0A%3C%2Fsvg%3E%0A')}.pnlm-container:-moz-full-screen{height:100%!important;width:100%!important;position:static!important}.pnlm-container:-webkit-full-screen{height:100%!important;width:100%!important;position:static!important}.pnlm-container:-ms-fullscreen{height:100%!important;width:100%!important;position:static!important}.pnlm-container:fullscreen{height:100%!important;width:100%!important;position:static!important}.pnlm-render-container{cursor:inherit;position:absolute;height:100%;width:100%}.pnlm-controls{margin-top:4px;background-color:#fff;border:1px solid #999;border-color:rgba(0,0,0,0.4);border-radius:3px;cursor:pointer;z-index:2;-webkit-transform:translateZ(9999px);transform:translateZ(9999px)}.pnlm-control:hover{background-color:#f8f8f8}.pnlm-controls-container{position:absolute;top:0;left:4px;z-index:1}.pnlm-zoom-controls{width:26px;height:52px}.pnlm-zoom-in{width:100%;height:50%;position:absolute;top:0;border-radius:3px 3px 0 0}.pnlm-zoom-out{width:100%;height:50%;position:absolute;bottom:0;background-position:0 -26px;border-top:1px solid #ddd;border-top-color:rgba(0,0,0,0.10);border-radius:0 0 3px 3px}.pnlm-fullscreen-toggle-button,.pnlm-orientation-button,.pnlm-hot-spot-debug-indicator{width:26px;height:26px}.pnlm-hot-spot-debug-indicator{position:absolute;top:50%;left:50%;width:26px;height:26px;margin:-13px 0 0 -13px;background-color:rgba(255,255,255,0.5);border-radius:13px;display:none}.pnlm-orientation-button-inactive{background-position:0 -156px}.pnlm-orientation-button-active{background-position:0 -182px}.pnlm-fullscreen-toggle-button-inactive{background-position:0 -52px}.pnlm-fullscreen-toggle-button-active{background-position:0 -78px}.pnlm-panorama-info{position:absolute;bottom:4px;background-color:rgba(0,0,0,0.7);border-radius:0 3px 3px 0;padding-right:10px;color:#fff;text-align:left;display:none;z-index:2;-webkit-transform:translateZ(9999px);transform:translateZ(9999px)}.pnlm-title-box{position:relative;font-size:20px;display:table;padding-left:5px;margin-bottom:3px}.pnlm-author-box{position:relative;font-size:12px;display:table;padding-left:5px}.pnlm-load-box{position:absolute;top:50%;left:50%;width:200px;height:150px;margin:-75px 0 0 -100px;background-color:rgba(0,0,0,0.7);border-radius:3px;text-align:center;font-size:20px;display:none;color:#fff}.pnlm-load-box p{margin:20px 0}.pnlm-lbox{position:absolute;top:50%;left:50%;width:20px;height:20px;margin:-10px 0 0 -10px;display:none}.pnlm-loading{animation-duration:1.5s;-webkit-animation-duration:1.5s;animation-name:pnlm-mv;-webkit-animation-name:pnlm-mv;animation-iteration-count:infinite;-webkit-animation-iteration-count:infinite;animation-timing-function:linear;-webkit-animation-timing-function:linear;height:10px;width:10px;background-color:#fff;position:relative}@keyframes pnlm-mv{from{left:0;top:0}25%{left:10px;top:0}50%{left:10px;top:10px}75%{left:0;top:10px}to{left:0;top:0}}@-webkit-keyframes pnlm-mv{from{left:0;top:0}25%{left:10px;top:0}50%{left:10px;top:10px}75%{left:0;top:10px}to{left:0;top:0}}.pnlm-load-button{position:absolute;top:50%;left:50%;width:200px;height:100px;margin:-50px 0 0 -100px;background-color:rgba(0,0,0,.7);border-radius:3px;text-align:center;font-size:20px;display:table;color:#fff;cursor:pointer}.pnlm-load-button:hover{background-color:rgba(0,0,0,.8)}.pnlm-load-button p{display:table-cell;vertical-align:middle}.pnlm-info-box{font-size:15px;position:absolute;top:50%;left:50%;width:200px;height:150px;margin:-75px 0 0 -100px;background-color:#000;border-radius:3px;display:table;text-align:center;color:#fff;table-layout:fixed}.pnlm-info-box a{color:#fff;word-wrap:break-word;overflow-wrap:break-word}.pnlm-info-box p{display:table-cell;vertical-align:middle;padding:0 5px 0 5px}.pnlm-error-msg{display:none}.pnlm-about-msg{font-size:11px;line-height:11px;color:#fff;padding:5px 8px 5px 8px;background:rgba(0,0,0,0.7);border-radius:3px;position:absolute;top:50px;left:50px;display:none;opacity:0;-moz-transition:opacity .3s ease-in-out;-webkit-transition:opacity .3s ease-in-out;-o-transition:opacity .3s ease-in-out;-ms-transition:opacity .3s ease-in-out;transition:opacity .3s ease-in-out;z-index:1}.pnlm-about-msg a:link,.pnlm-about-msg a:visited{color:#fff}.pnlm-about-msg a:hover,.pnlm-about-msg a:active{color:#eee}.pnlm-hotspot-base{position:absolute;visibility:hidden;cursor:default;vertical-align:middle;top:0;z-index:1}.pnlm-hotspot{height:26px;width:26px;border-radius:13px}.pnlm-hotspot:hover{background-color:rgba(255,255,255,0.2)}.pnlm-hotspot.pnlm-info{background-position:0 -104px}.pnlm-hotspot.pnlm-scene{background-position:0 -130px}div.pnlm-tooltip span{visibility:hidden;position:absolute;border-radius:3px;background-color:rgba(0,0,0,0.7);color:#fff;text-align:center;max-width:200px;padding:5px 10px;margin-left:-220px;cursor:default}div.pnlm-tooltip:hover span{visibility:visible}div.pnlm-tooltip:hover span:after{content:'';position:absolute;width:0;height:0;border-width:10px;border-style:solid;border-color:rgba(0,0,0,0.7) transparent transparent transparent;bottom:-20px;left:-10px;margin:0 50%}.pnlm-compass{position:absolute;width:50px;height:50px;right:4px;bottom:4px;border-radius:25px;background-image:url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20height%3D%2250%22%20width%3D%2250%22%3E%0A%3Cpath%20d%3D%22m24.5078%206-3.2578%2018h7.5l-3.25781-18h-0.984376zm-3.2578%2020%203.2578%2018h0.9844l3.2578-18h-7.5zm1.19531%200.9941h5.10938l-2.5547%2014.1075-2.5547-14.1075z%22%2F%3E%0A%3C%2Fsvg%3E%0A');cursor:default;display:none}.pnlm-world{position:absolute;left:50%;top:50%}.pnlm-face{position:absolute;-webkit-transform-origin:0 0;transform-origin:0 0}.pnlm-dragfix,.pnlm-preview-img{position:absolute;height:100%;width:100%}.pnlm-preview-img{background-size:cover;background-position:center}.pnlm-lbar{width:150px;margin:0 auto;border:#fff 1px solid;height:6px}.pnlm-lbar-fill{background:#fff;height:100%;width:0}.pnlm-lmsg{font-size:12px}.pnlm-fade-img{position:absolute;top:0;left:0}html{height:100%}body{margin:0;padding:0;overflow:hidden;position:fixed;cursor:default;width:100%;height:100%}</style></head><body><div id=container><noscript><div class=pnlm-info-box><p>Javascript is required to view this panorama.<br>(It could be worse; you could need a plugin.)</p></div></noscript></div><script type="text/javascript">window.libpannellum=function(w,d,g){function N(Q){function N(a,f){return 1==a.level&&1!=f.level?-1:1==f.level&&1!=a.level?1:f.timestamp-a.timestamp}function X(a,f){return a.level!=f.level?a.level-f.level:a.diff-f.diff}function Y(a,f,e,d,r,c){this.vertices=a;this.side=f;this.level=e;this.x=d;this.y=r;this.path=c.replace("%s",f).replace("%l",e).replace("%x",d).replace("%y",r)}function Z(a,f,d,g,r){var c;var h=f.vertices;c=fa(a,h.slice(0,3));var t=fa(a,h.slice(3,6)),z=fa(a,h.slice(6,9)),h=fa(a,h.slice(9,
4 12)),y=c[0]+t[0]+z[0]+h[0];-4==y||4==y?c=!1:(y=c[1]+t[1]+z[1]+h[1],c=-4==y||4==y?!1:4!=c[2]+t[2]+z[2]+h[2]);if(c){c=f.vertices;t=c[0]+c[3]+c[6]+c[9];z=c[1]+c[4]+c[7]+c[10];h=c[2]+c[5]+c[8]+c[11];y=Math.sqrt(t*t+z*z+h*h);h=Math.asin(h/y);t=Math.atan2(z,t)-g;t+=t>Math.PI?-2*Math.PI:t<-Math.PI?2*Math.PI:0;t=Math.abs(t);f.diff=Math.acos(Math.sin(d)*Math.sin(h)+Math.cos(d)*Math.cos(h)*Math.cos(t));t=!1;for(z=0;z<e.nodeCache.length;z++)if(e.nodeCache[z].path==f.path){t=!0;e.nodeCache[z].timestamp=e.nodeCacheTimestamp++;
5 e.nodeCache[z].diff=f.diff;e.currentNodes.push(e.nodeCache[z]);break}t||(f.timestamp=e.nodeCacheTimestamp++,e.currentNodes.push(f),e.nodeCache.push(f));if(f.level<e.level){var h=s.cubeResolution*Math.pow(2,f.level-s.maxLevel),t=Math.ceil(h*s.invTileResolution)-1,z=h%s.tileResolution*2,D=2*h%s.tileResolution;0===D&&(D=s.tileResolution);0===z&&(z=2*s.tileResolution);y=0.5;if(f.x==t||f.y==t)y=1-s.tileResolution/(s.tileResolution+D);var k=1-y,h=[],n=y,R=y,I=y,L=k,w=k,C=k;if(D<s.tileResolution)if(f.x==
6 t&&f.y!=t){if(w=R=0.5,"d"==f.side||"u"==f.side)C=I=0.5}else f.x!=t&&f.y==t&&(L=n=0.5,"l"==f.side||"r"==f.side)&&(C=I=0.5);z<=s.tileResolution&&(f.x==t&&(n=0,L=1,"l"==f.side||"r"==f.side)&&(I=0,C=1),f.y==t&&(R=0,w=1,"d"==f.side||"u"==f.side)&&(I=0,C=1));D=[c[0],c[1],c[2],c[0]*n+c[3]*L,c[1]*y+c[4]*k,c[2]*I+c[5]*C,c[0]*n+c[6]*L,c[1]*R+c[7]*w,c[2]*I+c[8]*C,c[0]*y+c[9]*k,c[1]*R+c[10]*w,c[2]*I+c[11]*C];D=new Y(D,f.side,f.level+1,2*f.x,2*f.y,s.fullpath);h.push(D);f.x==t&&z<=s.tileResolution||(D=[c[0]*n+
7 c[3]*L,c[1]*y+c[4]*k,c[2]*I+c[5]*C,c[3],c[4],c[5],c[3]*y+c[6]*k,c[4]*R+c[7]*w,c[5]*I+c[8]*C,c[0]*n+c[6]*L,c[1]*R+c[7]*w,c[2]*I+c[8]*C],D=new Y(D,f.side,f.level+1,2*f.x+1,2*f.y,s.fullpath),h.push(D));f.x==t&&z<=s.tileResolution||f.y==t&&z<=s.tileResolution||(D=[c[0]*n+c[6]*L,c[1]*R+c[7]*w,c[2]*I+c[8]*C,c[3]*y+c[6]*k,c[4]*R+c[7]*w,c[5]*I+c[8]*C,c[6],c[7],c[8],c[9]*n+c[6]*L,c[10]*y+c[7]*k,c[11]*I+c[8]*C],D=new Y(D,f.side,f.level+1,2*f.x+1,2*f.y+1,s.fullpath),h.push(D));f.y==t&&z<=s.tileResolution||(D=
8 [c[0]*y+c[9]*k,c[1]*R+c[10]*w,c[2]*I+c[11]*C,c[0]*n+c[6]*L,c[1]*R+c[7]*w,c[2]*I+c[8]*C,c[9]*n+c[6]*L,c[10]*y+c[7]*k,c[11]*I+c[8]*C,c[9],c[10],c[11]],D=new Y(D,f.side,f.level+1,2*f.x,2*f.y+1,s.fullpath),h.push(D));for(f=0;f<h.length;f++)Z(a,h[f],d,g,r)}}}function Ca(){return[-1,1,-1,1,1,-1,1,-1,-1,-1,-1,-1,1,1,1,-1,1,1,-1,-1,1,1,-1,1,-1,1,1,1,1,1,1,1,-1,-1,1,-1,-1,-1,-1,1,-1,-1,1,-1,1,-1,-1,1,-1,1,1,-1,1,-1,-1,-1,-1,-1,-1,1,1,1,-1,1,1,1,1,-1,1,1,-1,-1]}function sa(a,f,e){var d=Math.sin(f);f=Math.cos(f);
9 if("x"==e)return[a[0],f*a[1]+d*a[2],f*a[2]-d*a[1],a[3],f*a[4]+d*a[5],f*a[5]-d*a[4],a[6],f*a[7]+d*a[8],f*a[8]-d*a[7]];if("y"==e)return[f*a[0]-d*a[2],a[1],f*a[2]+d*a[0],f*a[3]-d*a[5],a[4],f*a[5]+d*a[3],f*a[6]-d*a[8],a[7],f*a[8]+d*a[6]];if("z"==e)return[f*a[0]+d*a[1],f*a[1]-d*a[0],a[2],f*a[3]+d*a[4],f*a[4]-d*a[3],a[5],f*a[6]+d*a[7],f*a[7]-d*a[6],a[8]]}function ta(a){return[a[0],a[4],a[8],a[12],a[1],a[5],a[9],a[13],a[2],a[6],a[10],a[14],a[3],a[7],a[11],a[15]]}function Ka(a){a.textureLoad||(a.textureLoad=
10 !0,La(encodeURI(a.path+"."+s.extension),function(f){a.texture=f;a.textureLoaded=!0},$.crossOrigin))}function fa(a,f){var d=[a[0]*f[0]+a[1]*f[1]+a[2]*f[2],a[4]*f[0]+a[5]*f[1]+a[6]*f[2],a[11]+a[8]*f[0]+a[9]*f[1]+a[10]*f[2],1/(a[12]*f[0]+a[13]*f[1]+a[14]*f[2])],e=d[0]*d[3],g=d[1]*d[3],d=d[2]*d[3],c=[0,0,0];-1>e&&(c[0]=-1);1<e&&(c[0]=1);-1>g&&(c[1]=-1);1<g&&(c[1]=1);if(-1>d||1<d)c[2]=1;return c}function ua(){console.log("Reducing canvas size due to error 1286!");E.width=Math.round(E.width/2);E.height=
11 Math.round(E.height/2)}var E=d.createElement("canvas");E.style.width=E.style.height="100%";Q.appendChild(E);var e,a,W,O,oa,S,va,ga,s,G,wa,la,F,ca,Da,$;this.init=function(m,f,w,ka,r,c,h,t){f===g&&(f="equirectangular");if("equirectangular"!=f&&"cubemap"!=f&&"multires"!=f)throw console.log("Error: invalid image type specified!"),{type:"config error"};G=f;s=m;wa=w;$=t||{};if(e){W&&(a.detachShader(e,W),a.deleteShader(W));O&&(a.detachShader(e,O),a.deleteShader(O));a.bindBuffer(a.ARRAY_BUFFER,null);a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,
12 null);e.texture&&a.deleteTexture(e.texture);if(e.nodeCache)for(m=0;m<e.nodeCache.length;m++)a.deleteTexture(e.nodeCache[m].texture);a.deleteProgram(e);e=g}ga=g;"cubemap"==G&&0!==(s[0].width&s[0].width-1)&&(navigator.userAgent.toLowerCase().match(/(iphone|ipod|ipad).* os 8_/)||navigator.userAgent.toLowerCase().match(/(iphone|ipod|ipad).* os 9_/)||navigator.userAgent.toLowerCase().match(/(iphone|ipod|ipad).* os 10_/)||navigator.userAgent.match(/Trident.*rv[ :]*11\./))||(a||(a=E.getContext("experimental-webgl",
13 {alpha:!1,depth:!1})),a&&1286==a.getError()&&ua());if(!a&&("multires"==G&&s.hasOwnProperty("fallbackPath")||"cubemap"==G)&&("WebkitAppearance"in d.documentElement.style||navigator.userAgent.match(/Trident.*rv[ :]*11\./)||-1!==navigator.appVersion.indexOf("MSIE 10"))){S&&Q.removeChild(S);S=d.createElement("div");S.className="pnlm-world";ka=s.basePath?s.basePath+s.fallbackPath:s.fallbackPath;var z="frblud".split(""),y=0;r=function(){var a=d.createElement("canvas");a.className="pnlm-face pnlm-"+z[this.side]+
14 "face";S.appendChild(a);var c=a.getContext("2d");a.style.width=this.width+4+"px";a.style.height=this.height+4+"px";a.width=this.width+4;a.height=this.height+4;c.drawImage(this,2,2);var f=c.getImageData(0,0,a.width,a.height),e=f.data,m,g;for(m=2;m<a.width-2;m++)for(g=0;4>g;g++)e[4*(m+a.width)+g]=e[4*(m+2*a.width)+g],e[4*(m+a.width*(a.height-2))+g]=e[4*(m+a.width*(a.height-3))+g];for(m=2;m<a.height-2;m++)for(g=0;4>g;g++)e[4*(m*a.width+1)+g]=e[4*(m*a.width+2)+g],e[4*((m+1)*a.width-2)+g]=e[4*((m+1)*a.width-
15 3)+g];for(g=0;4>g;g++)e[4*(a.width+1)+g]=e[4*(2*a.width+2)+g],e[4*(2*a.width-2)+g]=e[4*(3*a.width-3)+g],e[4*(a.width*(a.height-2)+1)+g]=e[4*(a.width*(a.height-3)+2)+g],e[4*(a.width*(a.height-1)-2)+g]=e[4*(a.width*(a.height-2)-3)+g];for(m=1;m<a.width-1;m++)for(g=0;4>g;g++)e[4*m+g]=e[4*(m+a.width)+g],e[4*(m+a.width*(a.height-1))+g]=e[4*(m+a.width*(a.height-2))+g];for(m=1;m<a.height-1;m++)for(g=0;4>g;g++)e[m*a.width*4+g]=e[4*(m*a.width+1)+g],e[4*((m+1)*a.width-1)+g]=e[4*((m+1)*a.width-2)+g];for(g=0;4>
16 g;g++)e[g]=e[4*(a.width+1)+g],e[4*(a.width-1)+g]=e[4*(2*a.width-2)+g],e[a.width*(a.height-1)*4+g]=e[4*(a.width*(a.height-2)+1)+g],e[4*(a.width*a.height-1)+g]=e[4*(a.width*(a.height-1)-2)+g];c.putImageData(f,0,0);y++;6==y&&(oa=this.width,Q.appendChild(S),h())};for(m=0;6>m;m++)c=new Image,c.crossOrigin=$.crossOrigin?$.crossOrigin:"anonymous",c.side=m,c.onload=r,c.src="multires"==G?encodeURI(ka.replace("%s",z[m])+"."+s.extension):encodeURI(s[m].src)}else{if(!a)throw console.log("Error: no WebGL support detected!"),
17 {type:"no webgl"};s.fullpath=s.basePath?s.basePath+s.path:s.path;s.invTileResolution=1/s.tileResolution;f=Ca();va=[];for(m=0;6>m;m++)va[m]=f.slice(12*m,12*m+12),f=Ca();if("equirectangular"==G){if(m=Math.max(s.width,s.height),f=a.getParameter(a.MAX_TEXTURE_SIZE),m>f)throw console.log("Error: The image is too big; it's "+m+"px wide, but this device's maximum supported width is "+f+"px."),{type:"webgl size error",width:m,maxWidth:f};}else if("cubemap"==G&&(m=s[0].width,f=a.getParameter(a.MAX_CUBE_MAP_TEXTURE_SIZE),
18 m>f))throw console.log("Error: The cube face image is too big; it's "+m+"px wide, but this device's maximum supported width is "+f+"px."),{type:"webgl size error",width:m,maxWidth:f};t===g||t.horizonPitch===g&&t.horizonRoll===g||(ga=[t.horizonPitch==g?0:t.horizonPitch,t.horizonRoll==g?0:t.horizonRoll]);m=a.TEXTURE_2D;a.viewport(0,0,a.drawingBufferWidth,a.drawingBufferHeight);W=a.createShader(a.VERTEX_SHADER);f=k;"multires"==G&&(f=n);a.shaderSource(W,f);a.compileShader(W);O=a.createShader(a.FRAGMENT_SHADER);
19 f=bb;"cubemap"==G?(m=a.TEXTURE_CUBE_MAP,f=Ma):"multires"==G&&(f=pa);a.shaderSource(O,f);a.compileShader(O);e=a.createProgram();a.attachShader(e,W);a.attachShader(e,O);a.linkProgram(e);a.getShaderParameter(W,a.COMPILE_STATUS)||console.log(a.getShaderInfoLog(W));a.getShaderParameter(O,a.COMPILE_STATUS)||console.log(a.getShaderInfoLog(O));a.getProgramParameter(e,a.LINK_STATUS)||console.log(a.getProgramInfoLog(e));a.useProgram(e);e.drawInProgress=!1;e.texCoordLocation=a.getAttribLocation(e,"a_texCoord");
20 a.enableVertexAttribArray(e.texCoordLocation);"multires"!=G?(la||(la=a.createBuffer()),a.bindBuffer(a.ARRAY_BUFFER,la),a.bufferData(a.ARRAY_BUFFER,new Float32Array([-1,1,1,1,1,-1,-1,1,1,-1,-1,-1]),a.STATIC_DRAW),a.vertexAttribPointer(e.texCoordLocation,2,a.FLOAT,!1,0,0),e.aspectRatio=a.getUniformLocation(e,"u_aspectRatio"),a.uniform1f(e.aspectRatio,a.drawingBufferWidth/a.drawingBufferHeight),e.psi=a.getUniformLocation(e,"u_psi"),e.theta=a.getUniformLocation(e,"u_theta"),e.f=a.getUniformLocation(e,
21 "u_f"),e.h=a.getUniformLocation(e,"u_h"),e.v=a.getUniformLocation(e,"u_v"),e.vo=a.getUniformLocation(e,"u_vo"),e.rot=a.getUniformLocation(e,"u_rot"),a.uniform1f(e.h,ka/(2*Math.PI)),a.uniform1f(e.v,r/Math.PI),a.uniform1f(e.vo,c/Math.PI*2),"equirectangular"==G&&(e.backgroundColor=a.getUniformLocation(e,"u_backgroundColor"),a.uniform4fv(e.backgroundColor,(t.backgroundColor?t.backgroundColor:[0,0,0]).concat([1]))),e.texture=a.createTexture(),a.bindTexture(m,e.texture),"cubemap"==G?(a.texImage2D(a.TEXTURE_CUBE_MAP_POSITIVE_X,
22 0,a.RGB,a.RGB,a.UNSIGNED_BYTE,s[1]),a.texImage2D(a.TEXTURE_CUBE_MAP_NEGATIVE_X,0,a.RGB,a.RGB,a.UNSIGNED_BYTE,s[3]),a.texImage2D(a.TEXTURE_CUBE_MAP_POSITIVE_Y,0,a.RGB,a.RGB,a.UNSIGNED_BYTE,s[4]),a.texImage2D(a.TEXTURE_CUBE_MAP_NEGATIVE_Y,0,a.RGB,a.RGB,a.UNSIGNED_BYTE,s[5]),a.texImage2D(a.TEXTURE_CUBE_MAP_POSITIVE_Z,0,a.RGB,a.RGB,a.UNSIGNED_BYTE,s[0]),a.texImage2D(a.TEXTURE_CUBE_MAP_NEGATIVE_Z,0,a.RGB,a.RGB,a.UNSIGNED_BYTE,s[2])):a.texImage2D(m,0,a.RGB,a.RGB,a.UNSIGNED_BYTE,s),a.texParameteri(m,a.TEXTURE_WRAP_S,
23 a.CLAMP_TO_EDGE),a.texParameteri(m,a.TEXTURE_WRAP_T,a.CLAMP_TO_EDGE),a.texParameteri(m,a.TEXTURE_MIN_FILTER,a.LINEAR),a.texParameteri(m,a.TEXTURE_MAG_FILTER,a.LINEAR)):(e.vertPosLocation=a.getAttribLocation(e,"a_vertCoord"),a.enableVertexAttribArray(e.vertPosLocation),F||(F=a.createBuffer()),ca||(ca=a.createBuffer()),Da||(Da=a.createBuffer()),a.bindBuffer(a.ARRAY_BUFFER,ca),a.bufferData(a.ARRAY_BUFFER,new Float32Array([0,0,1,0,1,1,0,1]),a.STATIC_DRAW),a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,Da),a.bufferData(a.ELEMENT_ARRAY_BUFFER,
24 new Uint16Array([0,1,2,0,2,3]),a.STATIC_DRAW),e.perspUniform=a.getUniformLocation(e,"u_perspMatrix"),e.cubeUniform=a.getUniformLocation(e,"u_cubeMatrix"),e.level=-1,e.currentNodes=[],e.nodeCache=[],e.nodeCacheTimestamp=0);ka=a.getError();if(0!==ka)throw console.log("Error: Something went wrong with WebGL!",ka),{type:"webgl error"};h()}};this.destroy=function(){Q!==g&&(E!==g&&Q.contains(E)&&Q.removeChild(E),S!==g&&Q.contains(S)&&Q.removeChild(S));if(a){var e=a.getExtension("WEBGL_lose_context");e&&
25 e.loseContext()}};this.resize=function(){var d=w.devicePixelRatio||1;E.width=E.clientWidth*d;E.height=E.clientHeight*d;a&&(1286==a.getError()&&ua(),a.viewport(0,0,a.drawingBufferWidth,a.drawingBufferHeight),"multires"!=G&&a.uniform1f(e.aspectRatio,E.clientWidth/E.clientHeight))};this.resize();this.setPose=function(a,e){ga=[a,e]};this.render=function(d,f,k,n){var r;r=0;n===g&&(n={});n.roll&&(r=n.roll);if(ga!==g){var c=ga[0],h=ga[1],t=d,z=f,y=Math.cos(h)*Math.sin(d)*Math.sin(c)+Math.cos(d)*(Math.cos(c)*
26 Math.cos(f)+Math.sin(h)*Math.sin(c)*Math.sin(f)),w=-Math.sin(d)*Math.sin(h)+Math.cos(d)*Math.cos(h)*Math.sin(f);d=Math.cos(h)*Math.cos(c)*Math.sin(d)+Math.cos(d)*(-Math.cos(f)*Math.sin(c)+Math.cos(c)*Math.sin(h)*Math.sin(f));d=Math.asin(Math.max(Math.min(d,1),-1));f=Math.atan2(w,y);c=[Math.cos(t)*(Math.sin(h)*Math.sin(c)*Math.cos(z)-Math.cos(c)*Math.sin(z)),Math.cos(t)*Math.cos(h)*Math.cos(z),Math.cos(t)*(Math.cos(c)*Math.sin(h)*Math.cos(z)+Math.sin(z)*Math.sin(c))];h=[-Math.cos(d)*Math.sin(f),Math.cos(d)*
27 Math.cos(f)];h=Math.acos(Math.max(Math.min((c[0]*h[0]+c[1]*h[1])/(Math.sqrt(c[0]*c[0]+c[1]*c[1]+c[2]*c[2])*Math.sqrt(h[0]*h[0]+h[1]*h[1])),1),-1));0>c[2]&&(h=2*Math.PI-h);r+=h}if(a||"multires"!=G&&"cubemap"!=G){if("multires"!=G)k=2*Math.atan(Math.tan(0.5*k)/(a.drawingBufferWidth/a.drawingBufferHeight)),k=1/Math.tan(0.5*k),a.uniform1f(e.psi,f),a.uniform1f(e.theta,d),a.uniform1f(e.rot,r),a.uniform1f(e.f,k),!0===wa&&"equirectangular"==G&&(a.bindTexture(a.TEXTURE_2D,e.texture),a.texImage2D(a.TEXTURE_2D,
28 0,a.RGB,a.RGB,a.UNSIGNED_BYTE,s)),a.drawArrays(a.TRIANGLES,0,6);else{c=a.drawingBufferWidth/a.drawingBufferHeight;h=2*Math.atan(Math.tan(k/2)*a.drawingBufferHeight/a.drawingBufferWidth);h=1/Math.tan(h/2);c=[h/c,0,0,0,0,h,0,0,0,0,100.1/-99.9,20/-99.9,0,0,-1,0];for(h=1;h<s.maxLevel&&a.drawingBufferWidth>s.tileResolution*Math.pow(2,h-1)*Math.tan(k/2)*0.707;)h++;e.level=h;h=[1,0,0,0,1,0,0,0,1];h=sa(h,-r,"z");h=sa(h,-d,"x");h=sa(h,f,"y");h=[h[0],h[1],h[2],0,h[3],h[4],h[5],0,h[6],h[7],h[8],0,0,0,0,1];a.uniformMatrix4fv(e.perspUniform,
29 !1,new Float32Array(ta(c)));a.uniformMatrix4fv(e.cubeUniform,!1,new Float32Array(ta(h)));c=[c[0]*h[0],c[0]*h[1],c[0]*h[2],0,c[5]*h[4],c[5]*h[5],c[5]*h[6],0,c[10]*h[8],c[10]*h[9],c[10]*h[10],c[11],-h[8],-h[9],-h[10],0];e.nodeCache.sort(N);if(200<e.nodeCache.length&&e.nodeCache.length>e.currentNodes.length+50)for(h=e.nodeCache.splice(200,e.nodeCache.length-200),r=0;r<h.length;r++)a.deleteTexture(h[r].texture);e.currentNodes=[];h="fbudlr".split("");for(r=0;6>r;r++)t=new Y(va[r],h[r],1,0,0,s.fullpath),
30 Z(c,t,d,f,k);e.currentNodes.sort(X);for(r=0;r<e.currentNodes.length;r++)if(!e.currentNodes[r].texture){setTimeout(Ka,0,e.currentNodes[r]);break}if(!e.drawInProgress){e.drawInProgress=!0;for(d=0;d<e.currentNodes.length;d++)e.currentNodes[d].textureLoaded&&(a.bindBuffer(a.ARRAY_BUFFER,F),a.bufferData(a.ARRAY_BUFFER,new Float32Array(e.currentNodes[d].vertices),a.STATIC_DRAW),a.vertexAttribPointer(e.vertPosLocation,3,a.FLOAT,!1,0,0),a.bindBuffer(a.ARRAY_BUFFER,ca),a.vertexAttribPointer(e.texCoordLocation,
31 2,a.FLOAT,!1,0,0),a.bindTexture(a.TEXTURE_2D,e.currentNodes[d].texture),a.drawElements(a.TRIANGLES,6,a.UNSIGNED_SHORT,0));e.drawInProgress=!1}}if(n.returnImage!==g)return E.toDataURL("image/png")}else for(r=oa/2,n={f:"translate3d(-"+(r+2)+"px, -"+(r+2)+"px, -"+r+"px)",b:"translate3d("+(r+2)+"px, -"+(r+2)+"px, "+r+"px) rotateX(180deg) rotateZ(180deg)",u:"translate3d(-"+(r+2)+"px, -"+r+"px, "+(r+2)+"px) rotateX(270deg)",d:"translate3d(-"+(r+2)+"px, "+r+"px, -"+(r+2)+"px) rotateX(90deg)",l:"translate3d(-"+
32 r+"px, -"+(r+2)+"px, "+(r+2)+"px) rotateX(180deg) rotateY(90deg) rotateZ(180deg)",r:"translate3d("+r+"px, -"+(r+2)+"px, -"+(r+2)+"px) rotateY(270deg)"},k=1/Math.tan(k/2),k=k*a.drawingBufferWidth/2+"px",d="perspective("+k+") translateZ("+k+") rotateX("+d+"rad) rotateY("+f+"rad) ",f=Object.keys(n),r=0;6>r;r++)k=S.querySelector(".pnlm-"+f[r]+"face").style,k.webkitTransform=d+n[f[r]],k.transform=d+n[f[r]]};this.isLoading=function(){if(a&&"multires"==G)for(var d=0;d<e.currentNodes.length;d++)if(!e.currentNodes[d].textureLoaded)return!0;
33 return!1};this.getCanvas=function(){return E};var La=function(){function d(){var e=this;this.texture=this.callback=null;this.image=new Image;this.image.crossOrigin=c?c:"anonymous";this.image.addEventListener("load",function(){var c=e.image;a.bindTexture(a.TEXTURE_2D,e.texture);a.texImage2D(a.TEXTURE_2D,0,a.RGB,a.RGB,a.UNSIGNED_BYTE,c);a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MAG_FILTER,a.LINEAR);a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MIN_FILTER,a.LINEAR);a.texParameteri(a.TEXTURE_2D,a.TEXTURE_WRAP_S,
34 a.CLAMP_TO_EDGE);a.texParameteri(a.TEXTURE_2D,a.TEXTURE_WRAP_T,a.CLAMP_TO_EDGE);a.bindTexture(a.TEXTURE_2D,null);e.callback(e.texture);n.length?(c=n.shift(),e.loadTexture(c.src,c.texture,c.callback)):k[g++]=e})}function e(a,c,d){this.src=a;this.texture=c;this.callback=d}var g=4,k={},n=[],c;d.prototype.loadTexture=function(a,c,d){this.texture=c;this.callback=d;this.image.src=a};for(var h=0;h<g;h++)k[h]=new d;return function(d,h,m){c=m;m=a.createTexture();g?k[--g].loadTexture(d,m,h):n.push(new e(d,
35 m,h));return m}}()}var k="attribute vec2 a_texCoord;varying vec2 v_texCoord;void main() {gl_Position = vec4(a_texCoord, 0.0, 1.0);v_texCoord = a_texCoord;}",n="attribute vec3 a_vertCoord;attribute vec2 a_texCoord;uniform mat4 u_cubeMatrix;uniform mat4 u_perspMatrix;varying mediump vec2 v_texCoord;void main(void) {gl_Position = u_perspMatrix * u_cubeMatrix * vec4(a_vertCoord, 1.0);v_texCoord = a_texCoord;}",Ma="precision mediump float;\nuniform float u_aspectRatio;\nuniform float u_psi;\nuniform float u_theta;\nuniform float u_f;\nuniform float u_h;\nuniform float u_v;\nuniform float u_vo;\nuniform float u_rot;\nconst float PI = 3.14159265358979323846264;\nuniform sampler2D u_image;\nuniform samplerCube u_imageCube;\nvarying vec2 v_texCoord;\nuniform vec4 u_backgroundColor;\nvoid main() {\nfloat x = v_texCoord.x * u_aspectRatio;\nfloat y = v_texCoord.y;\nfloat sinrot = sin(u_rot);\nfloat cosrot = cos(u_rot);\nfloat rot_x = x * cosrot - y * sinrot;\nfloat rot_y = x * sinrot + y * cosrot;\nfloat sintheta = sin(u_theta);\nfloat costheta = cos(u_theta);\nfloat a = u_f * costheta - rot_y * sintheta;\nfloat root = sqrt(rot_x * rot_x + a * a);\nfloat lambda = atan(rot_x / root, a / root) + u_psi;\nfloat phi = atan((rot_y * costheta + u_f * sintheta) / root);float cosphi = cos(phi);\ngl_FragColor = textureCube(u_imageCube, vec3(cosphi*sin(lambda), sin(phi), cosphi*cos(lambda)));\n}",
36 bb="precision mediump float;\nuniform float u_aspectRatio;\nuniform float u_psi;\nuniform float u_theta;\nuniform float u_f;\nuniform float u_h;\nuniform float u_v;\nuniform float u_vo;\nuniform float u_rot;\nconst float PI = 3.14159265358979323846264;\nuniform sampler2D u_image;\nuniform samplerCube u_imageCube;\nvarying vec2 v_texCoord;\nuniform vec4 u_backgroundColor;\nvoid main() {\nfloat x = v_texCoord.x * u_aspectRatio;\nfloat y = v_texCoord.y;\nfloat sinrot = sin(u_rot);\nfloat cosrot = cos(u_rot);\nfloat rot_x = x * cosrot - y * sinrot;\nfloat rot_y = x * sinrot + y * cosrot;\nfloat sintheta = sin(u_theta);\nfloat costheta = cos(u_theta);\nfloat a = u_f * costheta - rot_y * sintheta;\nfloat root = sqrt(rot_x * rot_x + a * a);\nfloat lambda = atan(rot_x / root, a / root) + u_psi;\nfloat phi = atan((rot_y * costheta + u_f * sintheta) / root);lambda = mod(lambda + PI, PI * 2.0) - PI;\nvec2 coord = vec2(lambda / PI, phi / (PI / 2.0));\nif(coord.x < -u_h || coord.x > u_h || coord.y < -u_v + u_vo || coord.y > u_v + u_vo)\ngl_FragColor = u_backgroundColor;\nelse\ngl_FragColor = texture2D(u_image, vec2((coord.x + u_h) / (u_h * 2.0), (-coord.y + u_v + u_vo) / (u_v * 2.0)));\n}",
37 pa="varying mediump vec2 v_texCoord;uniform sampler2D u_sampler;void main(void) {gl_FragColor = texture2D(u_sampler, v_texCoord);}";return{renderer:function(d,g,k,n){return new N(d,g,k,n)}}}(window,document);window.requestAnimationFrame||(window.requestAnimationFrame=function(){return window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(w,d){window.setTimeout(w,1E3/60)}}());
38 window.pannellum=function(w,d,g){function N(k,n){function Ma(u){w.removeEventListener("deviceorientation",Ma);u&&null!==u.alpha&&null!==u.beta&&null!==u.gamma?(v.container.appendChild(v.orientation),qa=!0,Xa&&Ja()):qa=!1}function N(){var u=d.createElement("div");u.innerHTML="\x3c!--[if lte IE 9]><i></i><![endif]--\x3e";if(1==u.getElementsByTagName("i").length)X();else{xa=b.hfov;Ea=b.pitch;var a;if("cubemap"==b.type){P=[];for(u=0;6>u;u++)P.push(new Image),P[u].crossOrigin=b.crossOrigin;p.load.lbox.style.display=
39 "block";p.load.lbar.style.display="none"}else if("multires"==b.type)u=JSON.parse(JSON.stringify(b.multiRes)),b.basePath&&b.multiRes.basePath&&!/^(?:[a-z]+:)?\/\//i.test(b.multiRes.basePath)?u.basePath=b.basePath+b.multiRes.basePath:b.multiRes.basePath?u.basePath=b.multiRes.basePath:b.basePath&&(u.basePath=b.basePath),P=u;else if(!0===b.dynamic)P=b.panorama;else{if(b.panorama===g){X(b.strings.noPanoramaError);return}P=new Image}if("cubemap"==b.type)for(var da=6,c=function(){da--;0===da&&Q()},e=function(a){var u=
40 d.createElement("a");u.href=a.target.src;u.innerHTML=u.href;X(b.strings.fileAccessError.replace("%s",u.outerHTML))},u=0;u<P.length;u++)P[u].onload=c,P[u].onerror=e,a=b.cubeMap[u],b.basePath&&!pa(a)&&(a=b.basePath+a),P[u].src=encodeURI(a);else if("multires"==b.type)Q();else if(a="",b.basePath&&(a=b.basePath),!0!==b.dynamic){a=pa(b.panorama)?b.panorama:a+b.panorama;P.onload=function(){w.URL.revokeObjectURL(this.src);Q()};var f=new XMLHttpRequest;f.onloadend=function(){if(200!=f.status){var u=d.createElement("a");
41 u.href=encodeURI(a);u.innerHTML=u.href;X(b.strings.fileAccessError.replace("%s",u.outerHTML))}ab(this.response);p.load.msg.innerHTML=""};f.onprogress=function(a){if(a.lengthComputable){p.load.lbarFill.style.width=a.loaded/a.total*100+"%";var u,b;1E6<a.total?(u="MB",b=(a.loaded/1E6).toFixed(2),a=(a.total/1E6).toFixed(2)):1E3<a.total?(u="kB",b=(a.loaded/1E3).toFixed(1),a=(a.total/1E3).toFixed(1)):(u="B",b=a.loaded,a=a.total);p.load.msg.innerHTML=b+" / "+a+" "+u}else p.load.lbox.style.display="block",
42 p.load.lbar.style.display="none"};try{f.open("GET",a,!0)}catch(h){X(b.strings.malformedURLError)}f.responseType="blob";f.setRequestHeader("Accept","image/*,*/*;q=0.9");f.withCredentials="use-credentials"===b.crossOrigin;f.send()}b.draggable&&B.classList.add("pnlm-grab");B.classList.remove("pnlm-grabbing")}}function pa(a){return/^(?:[a-z]+:)?\/\//i.test(a)||"/"==a[0]||"blob:"==a.slice(0,5)}function Q(){A||(A=new libpannellum.renderer(M));Qa||(Qa=!0,H.addEventListener("mousedown",Ca,!1),d.addEventListener("mousemove",
43 Ka,!1),d.addEventListener("mouseup",fa,!1),b.mouseZoom&&(B.addEventListener("mousewheel",oa,!1),B.addEventListener("DOMMouseScroll",oa,!1)),b.doubleClickZoom&&H.addEventListener("dblclick",sa,!1),B.addEventListener("mozfullscreenchange",y,!1),B.addEventListener("webkitfullscreenchange",y,!1),B.addEventListener("msfullscreenchange",y,!1),B.addEventListener("fullscreenchange",y,!1),w.addEventListener("resize",la,!1),w.addEventListener("orientationchange",la,!1),b.disableKeyboardCtrl||(k.addEventListener("keydown",
44 S,!1),k.addEventListener("keyup",ga,!1),k.addEventListener("blur",va,!1)),d.addEventListener("mouseleave",fa,!1),""===d.documentElement.style.pointerAction&&""===d.documentElement.style.touchAction?(H.addEventListener("pointerdown",a,!1),H.addEventListener("pointermove",W,!1),H.addEventListener("pointerup",O,!1),H.addEventListener("pointerleave",O,!1)):(H.addEventListener("touchstart",ua,!1),H.addEventListener("touchmove",E,!1),H.addEventListener("touchend",e,!1)),w.navigator.pointerEnabled&&(k.style.touchAction=
45 "none"));m();setTimeout(function(){},500)}function ab(a){var l=new FileReader;l.addEventListener("loadend",function(){var da=l.result;if(navigator.userAgent.toLowerCase().match(/(iphone|ipod|ipad).* os 8_/)){var c=da.indexOf("\u00ff\u00c2");(0>c||65536<c)&&X(b.strings.iOS8WebGLError)}c=da.indexOf("<x:xmpmeta");if(-1<c&&!0!==b.ignoreGPanoXMP){var d=da.substring(c,da.indexOf("</x:xmpmeta>")+12),e=function(a){var u;0<=d.indexOf(a+'="')?(u=d.substring(d.indexOf(a+'="')+a.length+2),u=u.substring(0,u.indexOf('"'))):
46 0<=d.indexOf(a+">")&&(u=d.substring(d.indexOf(a+">")+a.length+1),u=u.substring(0,u.indexOf("<")));return u!==g?Number(u):null},da=e("GPano:FullPanoWidthPixels"),c=e("GPano:CroppedAreaImageWidthPixels"),f=e("GPano:FullPanoHeightPixels"),h=e("GPano:CroppedAreaImageHeightPixels"),k=e("GPano:CroppedAreaTopPixels"),m=e("GPano:PoseHeadingDegrees"),n=e("GPano:PosePitchDegrees"),e=e("GPano:PoseRollDegrees");null!==da&&null!==c&&null!==f&&null!==h&&null!==k&&(0>ea.indexOf("haov")&&(b.haov=c/da*360),0>ea.indexOf("vaov")&&
47 (b.vaov=h/f*180),0>ea.indexOf("vOffset")&&(b.vOffset=-180*((k+h/2)/f-0.5)),null!==m&&0>ea.indexOf("northOffset")&&(b.northOffset=m,!1!==b.compass&&(b.compass=!0)),null!==n&&null!==e&&(0>ea.indexOf("horizonPitch")&&(b.horizonPitch=n),0>ea.indexOf("horizonRoll")&&(b.horizonRoll=e)))}P.src=w.URL.createObjectURL(a)});l.readAsBinaryString!==g?l.readAsBinaryString(a):l.readAsText(a)}function X(a){a===g&&(a=b.strings.genericWebGLError);p.errorMsg.innerHTML="<p>"+a+"</p>";v.load.style.display="none";p.load.box.style.display=
48 "none";p.errorMsg.style.display="table";Na=!0;M.style.display="none";ha("error",a)}function Y(a){var b=Z(a);ia.style.left=b.x+"px";ia.style.top=b.y+"px";clearTimeout(Y.t1);clearTimeout(Y.t2);ia.style.display="block";ia.style.opacity=1;Y.t1=setTimeout(function(){ia.style.opacity=0},2E3);Y.t2=setTimeout(function(){ia.style.display="none"},2500);a.preventDefault()}function Z(a){var b=k.getBoundingClientRect(),c={};c.x=a.clientX-b.left;c.y=a.clientY-b.top;return c}function Ca(a){a.preventDefault();k.focus();
49 if(J&&b.draggable){var l=Z(a);if(b.hotSpotDebug){var c=ta(a);console.log("Pitch: "+c[0]+", Yaw: "+c[1]+", Center Pitch: "+b.pitch+", Center Yaw: "+b.yaw+", HFOV: "+b.hfov)}Ia();L();b.roll=0;x.hfov=0;ma=!0;T=Date.now();ya=l.x;za=l.y;Oa=b.yaw;Pa=b.pitch;B.classList.add("pnlm-grabbing");B.classList.remove("pnlm-grab");ha("mousedown",a);F()}}function sa(a){b.minHfov===b.hfov?Aa.setHfov(xa,1E3):(a=ta(a),Aa.lookAt(a[0],a[1],b.minHfov,1E3))}function ta(a){var l=Z(a);a=A.getCanvas();var c=a.clientWidth,d=
50 a.clientHeight;a=l.x/c*2-1;var d=(1-l.y/d*2)*d/c,e=1/Math.tan(b.hfov*Math.PI/360),f=Math.sin(b.pitch*Math.PI/180),g=Math.cos(b.pitch*Math.PI/180),l=e*g-d*f,c=Math.sqrt(a*a+l*l),d=180*Math.atan((d*g+e*f)/c)/Math.PI;a=180*Math.atan2(a/c,l/c)/Math.PI+b.yaw;-180>a&&(a+=360);180<a&&(a-=360);return[d,a]}function Ka(a){if(ma&&J){T=Date.now();var l=A.getCanvas(),c=l.clientWidth,l=l.clientHeight;a=Z(a);var d=180*(Math.atan(ya/c*2-1)-Math.atan(a.x/c*2-1))/Math.PI*b.hfov/90+Oa;x.yaw=(d-b.yaw)%360*0.2;b.yaw=
51 d;c=360*Math.atan(Math.tan(b.hfov/360*Math.PI)*l/c)/Math.PI;c=180*(Math.atan(a.y/l*2-1)-Math.atan(za/l*2-1))/Math.PI*c/90+Pa;x.pitch=0.2*(c-b.pitch);b.pitch=c}}function fa(a){ma&&(ma=!1,15<Date.now()-T&&(x.pitch=x.yaw=0),B.classList.add("pnlm-grab"),B.classList.remove("pnlm-grabbing"),T=Date.now(),ha("mouseup",a))}function ua(a){if(J&&b.draggable){Ia();L();b.roll=0;x.hfov=0;var l=Z(a.targetTouches[0]);ya=l.x;za=l.y;if(2==a.targetTouches.length){var c=Z(a.targetTouches[1]);ya+=0.5*(c.x-l.x);za+=0.5*
52 (c.y-l.y);Fa=Math.sqrt((l.x-c.x)*(l.x-c.x)+(l.y-c.y)*(l.y-c.y))}ma=!0;T=Date.now();Oa=b.yaw;Pa=b.pitch;ha("touchstart",a);F()}}function E(a){if(b.draggable&&(a.preventDefault(),J&&(T=Date.now()),ma&&J)){var l=Z(a.targetTouches[0]),c=l.x,d=l.y;2==a.targetTouches.length&&-1!=Fa&&(a=Z(a.targetTouches[1]),c+=0.5*(a.x-l.x),d+=0.5*(a.y-l.y),l=Math.sqrt((l.x-a.x)*(l.x-a.x)+(l.y-a.y)*(l.y-a.y)),V(b.hfov+0.1*(Fa-l)),Fa=l);l=b.hfov/360;c=(ya-c)*l+Oa;x.yaw=(c-b.yaw)%360*0.2;b.yaw=c;d=(d-za)*l+Pa;x.pitch=0.2*
53 (d-b.pitch);b.pitch=d}}function e(){ma=!1;150<Date.now()-T&&(x.pitch=x.yaw=0);Fa=-1;T=Date.now();ha("touchend",event)}function a(a){"touch"==a.pointerType&&(na.push(a.pointerId),Ba.push({clientX:a.clientX,clientY:a.clientY}),a.targetTouches=Ba,ua(a),a.preventDefault())}function W(a){if("touch"==a.pointerType)for(var b=0;b<na.length;b++)if(a.pointerId==na[b]){Ba[b].clientX=a.clientX;Ba[b].clientY=a.clientY;a.targetTouches=Ba;E(a);a.preventDefault();break}}function O(a){if("touch"==a.pointerType){for(var b=
54 !1,c=0;c<na.length;c++)a.pointerId==na[c]&&(na[c]=g),na[c]&&(b=!0);b||(na=[],Ba=[],e());a.preventDefault()}}function oa(a){J&&("fullscreenonly"!=b.mouseZoom||Ga)&&(a.preventDefault(),Ia(),T=Date.now(),a.wheelDeltaY?(V(b.hfov-0.05*a.wheelDeltaY),x.hfov=0>a.wheelDelta?1:-1):a.wheelDelta?(V(b.hfov-0.05*a.wheelDelta),x.hfov=0>a.wheelDelta?1:-1):a.detail&&(V(b.hfov+1.5*a.detail),x.hfov=0<a.detail?1:-1),F())}function S(a){Ia();T=Date.now();L();b.roll=0;var l=a.which||a.keycode;0>Ya.indexOf(l)||(a.preventDefault(),
55 27==l?Ga&&z():s(l,!0))}function va(){for(var a=0;10>a;a++)q[a]=!1}function ga(a){var b=a.which||a.keycode;0>Ya.indexOf(b)||(a.preventDefault(),s(b,!1))}function s(a,b){var c=!1;switch(a){case 109:case 189:case 17:case 173:q[0]!=b&&(c=!0);q[0]=b;break;case 107:case 187:case 16:case 61:q[1]!=b&&(c=!0);q[1]=b;break;case 38:q[2]!=b&&(c=!0);q[2]=b;break;case 87:q[6]!=b&&(c=!0);q[6]=b;break;case 40:q[3]!=b&&(c=!0);q[3]=b;break;case 83:q[7]!=b&&(c=!0);q[7]=b;break;case 37:q[4]!=b&&(c=!0);q[4]=b;break;case 65:q[8]!=
56 b&&(c=!0);q[8]=b;break;case 39:q[5]!=b&&(c=!0);q[5]=b;break;case 68:q[9]!=b&&(c=!0),q[9]=b}c&&b&&(ja="undefined"!==typeof performance&&performance.now()?performance.now():Date.now(),F())}function G(){if(J){var a=!1,l=b.pitch,c=b.yaw,d=b.hfov,e;e="undefined"!==typeof performance&&performance.now()?performance.now():Date.now();ja===g&&(ja=e);var f=(e-ja)*b.hfov/1700,f=Math.min(f,1);q[0]&&!0===b.keyboardZoom&&(V(b.hfov+(0.8*x.hfov+0.5)*f),a=!0);q[1]&&!0===b.keyboardZoom&&(V(b.hfov+(0.8*x.hfov-0.2)*f),
57 a=!0);if(q[2]||q[6])b.pitch+=(0.8*x.pitch+0.2)*f,a=!0;if(q[3]||q[7])b.pitch+=(0.8*x.pitch-0.2)*f,a=!0;if(q[4]||q[8])b.yaw+=(0.8*x.yaw-0.2)*f,a=!0;if(q[5]||q[9])b.yaw+=(0.8*x.yaw+0.2)*f,a=!0;a&&(T=Date.now());Date.now();if(b.autoRotate){if(0.001<e-ja){var a=(e-ja)/1E3,h=(x.yaw/a*f-0.2*b.autoRotate)*a,h=(0<-b.autoRotate?1:-1)*Math.min(Math.abs(b.autoRotate*a),Math.abs(h));b.yaw+=h}b.autoRotateStopDelay&&(b.autoRotateStopDelay-=e-ja,0>=b.autoRotateStopDelay&&(b.autoRotateStopDelay=!1,aa=b.autoRotate,
58 b.autoRotate=0))}K.pitch&&(wa("pitch"),l=b.pitch);K.yaw&&(wa("yaw"),c=b.yaw);K.hfov&&(wa("hfov"),d=b.hfov);0<f&&!b.autoRotate&&(q[4]||q[5]||q[8]||q[9]||K.yaw||(b.yaw+=x.yaw*f*0.85),q[2]||q[3]||q[6]||q[7]||K.pitch||(b.pitch+=x.pitch*f*0.85),q[0]||q[1]||K.hfov||V(b.hfov+x.hfov*f*0.85));ja=e;0<f&&(x.yaw=0.8*x.yaw+(b.yaw-c)/f*0.2,x.pitch=0.8*x.pitch+(b.pitch-l)/f*0.2,x.hfov=0.8*x.hfov+(b.hfov-d)/f*0.2,l=b.autoRotate?Math.abs(b.autoRotate):5,x.yaw=Math.min(l,Math.max(x.yaw,-l)),x.pitch=Math.min(l,Math.max(x.pitch,
59 -l)),x.hfov=Math.min(l,Math.max(x.hfov,-l)));q[0]&&q[0]&&(x.hfov=0);(q[2]||q[6])&&(q[3]||q[7])&&(x.pitch=0);(q[4]||q[8])&&(q[5]||q[9])&&(x.yaw=0)}}function wa(a){var l=K[a],c=Math.min(1,Math.max((Date.now()-l.startTime)/1E3/(l.duration/1E3),0)),c=l.startPosition+b.animationTimingFunction(c)*(l.endPosition-l.startPosition);if(l.endPosition>l.startPosition&&c>=l.endPosition||l.endPosition<l.startPosition&&c<=l.endPosition||l.endPosition===l.startPosition){c=l.endPosition;x[a]=0;var l=K[a].callback,
60 d=K[a].callbackArgs;delete K[a];"function"==typeof l&&l(d)}b[a]=c}function la(){y()}function F(){Ra||(Ra=!0,ca())}function ca(){Da();Sa&&clearTimeout(Sa);if(ma||!0===ba)requestAnimationFrame(ca);else if(q[0]||q[1]||q[2]||q[3]||q[4]||q[5]||q[6]||q[7]||q[8]||q[9]||b.autoRotate||K.pitch||K.yaw||K.hfov||0.01<Math.abs(x.yaw)||0.01<Math.abs(x.pitch)||0.01<Math.abs(x.hfov))G(),0<=b.autoRotateInactivityDelay&&aa&&Date.now()-T>b.autoRotateInactivityDelay&&!b.autoRotate&&(b.autoRotate=aa,Aa.lookAt(Ea,g,xa,
61 3E3)),requestAnimationFrame(ca);else if(A&&(A.isLoading()||!0===b.dynamic&&Za))requestAnimationFrame(ca);else{Ra=!1;ja=g;var a=b.autoRotateInactivityDelay-(Date.now()-T);0<a?Sa=setTimeout(function(){b.autoRotate=aa;Aa.lookAt(Ea,g,xa,3E3);F()},a):0<=b.autoRotateInactivityDelay&&aa&&(b.autoRotate=aa,Aa.lookAt(Ea,g,xa,3E3),F())}}function Da(){var a;if(J){180<b.yaw?b.yaw-=360:-180>b.yaw&&(b.yaw+=360);a=b.yaw;var l=b.maxYaw-b.minYaw,d=-180,e=180;360>l&&(d=b.minYaw+b.hfov/2,e=b.maxYaw-b.hfov/2,l<b.hfov&&
62 (d=e=(d+e)/2));b.yaw=Math.max(d,Math.min(e,b.yaw));!1!==b.autoRotate&&a!=b.yaw&&(b.autoRotate*=-1);a=A.getCanvas();a=2*Math.atan(Math.tan(b.hfov/180*Math.PI*0.5)/(a.width/a.height))/Math.PI*180;l=b.minPitch+a/2;d=b.maxPitch-a/2;b.maxPitch-b.minPitch<a&&(l=d=(l+d)/2);isNaN(l)&&(l=-90);isNaN(d)&&(d=90);b.pitch=Math.max(l,Math.min(d,b.pitch));A.render(b.pitch*Math.PI/180,b.yaw*Math.PI/180,b.hfov*Math.PI/180,{roll:b.roll*Math.PI/180});b.hotSpots.forEach(c);b.compass&&(Ha.style.transform="rotate("+(-b.yaw-
63 b.northOffset)+"deg)",Ha.style.webkitTransform="rotate("+(-b.yaw-b.northOffset)+"deg)")}}function $(a,b,c,d){this.w=a;this.x=b;this.y=c;this.z=d}function La(a){var c;c=a.alpha;var d=a.beta;a=a.gamma;d=[d?d*Math.PI/180/2:0,a?a*Math.PI/180/2:0,c?c*Math.PI/180/2:0];c=[Math.cos(d[0]),Math.cos(d[1]),Math.cos(d[2])];d=[Math.sin(d[0]),Math.sin(d[1]),Math.sin(d[2])];c=new $(c[0]*c[1]*c[2]-d[0]*d[1]*d[2],d[0]*c[1]*c[2]-c[0]*d[1]*d[2],c[0]*d[1]*c[2]+d[0]*c[1]*d[2],c[0]*c[1]*d[2]+d[0]*d[1]*c[2]);c=c.multiply(new $(Math.sqrt(0.5),
64 -Math.sqrt(0.5),0,0));d=w.orientation?-w.orientation*Math.PI/180/2:0;c=c.multiply(new $(Math.cos(d),0,-Math.sin(d),0)).toEulerAngles();"number"==typeof ba&&10>ba?ba+=1:10===ba?($a=c[2]/Math.PI*180+b.yaw,ba=!0,requestAnimationFrame(ca)):(b.pitch=c[0]/Math.PI*180,b.roll=-c[1]/Math.PI*180,b.yaw=-c[2]/Math.PI*180+$a)}function m(){try{var a={};b.horizonPitch!==g&&(a.horizonPitch=b.horizonPitch*Math.PI/180);b.horizonRoll!==g&&(a.horizonRoll=b.horizonRoll*Math.PI/180);b.backgroundColor!==g&&(a.backgroundColor=
65 b.backgroundColor);A.init(P,b.type,b.dynamic,b.haov*Math.PI/180,b.vaov*Math.PI/180,b.vOffset*Math.PI/180,f,a);!0!==b.dynamic&&(P=g)}catch(c){if("webgl error"==c.type||"no webgl"==c.type)X();else if("webgl size error"==c.type)X(b.strings.textureSizeError.replace("%s",c.width).replace("%s",c.maxWidth));else throw X(b.strings.unknownError),c;}}function f(){if(b.sceneFadeDuration&&A.fadeImg!==g){A.fadeImg.style.opacity=0;var a=A.fadeImg;delete A.fadeImg;setTimeout(function(){M.removeChild(a);ha("scenechangefadedone")},
66 b.sceneFadeDuration)}Ha.style.display=b.compass?"inline":"none";ka();p.load.box.style.display="none";ra!==g&&(M.removeChild(ra),ra=g);J=!0;ha("load");F()}function Wa(a){a.pitch=Number(a.pitch)||0;a.yaw=Number(a.yaw)||0;var c=d.createElement("div");c.className="pnlm-hotspot-base";c.className=a.cssClass?c.className+(" "+a.cssClass):c.className+(" pnlm-hotspot pnlm-sprite pnlm-"+C(a.type));var e=d.createElement("span");a.text&&(e.innerHTML=C(a.text));var f;if(a.video){f=d.createElement("video");var g=
67 a.video;b.basePath&&!pa(g)&&(g=b.basePath+g);f.src=encodeURI(g);f.controls=!0;f.style.width=a.width+"px";M.appendChild(c);e.appendChild(f)}else if(a.image){g=a.image;b.basePath&&!pa(g)&&(g=b.basePath+g);f=d.createElement("a");f.href=encodeURI(a.URL?a.URL:g);f.target="_blank";e.appendChild(f);var h=d.createElement("img");h.src=encodeURI(g);h.style.width=a.width+"px";h.style.paddingTop="5px";M.appendChild(c);f.appendChild(h);e.style.maxWidth="initial"}else a.URL?(f=d.createElement("a"),f.href=encodeURI(a.URL),
68 f.target="_blank",M.appendChild(f),c.style.cursor="pointer",e.style.cursor="pointer",f.appendChild(c)):(a.sceneId&&(c.onclick=c.ontouchend=function(){c.clicked||(c.clicked=!0,I(a.sceneId,a.targetPitch,a.targetYaw,a.targetHfov));return!1},c.style.cursor="pointer",e.style.cursor="pointer"),M.appendChild(c));if(a.createTooltipFunc)a.createTooltipFunc(c,a.createTooltipArgs);else if(a.text||a.video||a.image)c.classList.add("pnlm-tooltip"),c.appendChild(e),e.style.width=e.scrollWidth-20+"px",e.style.marginLeft=
69 -(e.scrollWidth-c.offsetWidth)/2+"px",e.style.marginTop=-e.scrollHeight-12+"px";a.clickHandlerFunc&&(c.addEventListener("click",function(b){a.clickHandlerFunc(b,a.clickHandlerArgs)},"false"),c.style.cursor="pointer",e.style.cursor="pointer");a.div=c}function ka(){Ta||(b.hotSpots?(b.hotSpots=b.hotSpots.sort(function(a,b){return a.pitch<b.pitch}),b.hotSpots.forEach(Wa)):b.hotSpots=[],Ta=!0,b.hotSpots.forEach(c))}function r(){var a=b.hotSpots;Ta=!1;delete b.hotSpots;if(a)for(var c=0;c<a.length;c++){for(var d=
70 a[c].div;d.parentNode!=M;)d=d.parentNode;M.removeChild(d);delete a[c].div}}function c(a){var c=Math.sin(a.pitch*Math.PI/180),d=Math.cos(a.pitch*Math.PI/180),e=Math.sin(b.pitch*Math.PI/180),f=Math.cos(b.pitch*Math.PI/180),g=Math.cos((-a.yaw+b.yaw)*Math.PI/180),h=c*e+d*g*f;if(90>=a.yaw&&-90<a.yaw&&0>=h||(90<a.yaw||-90>=a.yaw)&&0>=h)a.div.style.visibility="hidden";else{var k=Math.sin((-a.yaw+b.yaw)*Math.PI/180),m=Math.tan(b.hfov*Math.PI/360);a.div.style.visibility="visible";var n=A.getCanvas(),p=n.clientWidth,
71 n=n.clientHeight,c=[-p/m*k*d/h/2,-p/m*(c*f-d*g*e)/h/2],d=Math.sin(b.roll*Math.PI/180),e=Math.cos(b.roll*Math.PI/180),c=[c[0]*e-c[1]*d,c[0]*d+c[1]*e];c[0]+=(p-a.div.offsetWidth)/2;c[1]+=(n-a.div.offsetHeight)/2;p="translate("+c[0]+"px, "+c[1]+"px) translateZ(9999px) rotate("+b.roll+"deg)";a.div.style.webkitTransform=p;a.div.style.MozTransform=p;a.div.style.transform=p}}function h(a){b={};var c,d,e="haov vaov vOffset northOffset horizonPitch horizonRoll".split(" ");ea=[];for(c in Ua)Ua.hasOwnProperty(c)&&
72 (b[c]=Ua[c]);for(c in n.default)if(n.default.hasOwnProperty(c))if("strings"==c)for(d in n.default.strings)n.default.strings.hasOwnProperty(d)&&(b.strings[d]=C(n.default.strings[d]));else b[c]=n.default[c],0<=e.indexOf(c)&&ea.push(c);if(null!==a&&""!==a&&n.scenes&&n.scenes[a]){var f=n.scenes[a];for(c in f)if(f.hasOwnProperty(c))if("strings"==c)for(d in f.strings)f.strings.hasOwnProperty(d)&&(b.strings[d]=C(f.strings[d]));else b[c]=f[c],0<=e.indexOf(c)&&ea.push(c);b.scene=a}for(c in n)if(n.hasOwnProperty(c))if("strings"==
73 c)for(d in n.strings)n.strings.hasOwnProperty(d)&&(b.strings[d]=C(n.strings[d]));else b[c]=n[c],0<=e.indexOf(c)&&ea.push(c)}function t(a){if((a=a?a:!1)&&"preview"in b){var c=b.preview;b.basePath&&!pa(c)&&(c=b.basePath+c);ra=d.createElement("div");ra.className="pnlm-preview-img";ra.style.backgroundImage="url('"+encodeURI(c)+"')";M.appendChild(ra)}var c=b.title,e=b.author;a&&("previewTitle"in b&&(b.title=b.previewTitle),"previewAuthor"in b&&(b.author=b.previewAuthor));b.hasOwnProperty("title")||(p.title.innerHTML=
74 "");b.hasOwnProperty("author")||(p.author.innerHTML="");b.hasOwnProperty("title")||b.hasOwnProperty("author")||(p.container.style.display="none");v.load.innerHTML="<p>"+b.strings.loadButtonLabel+"</p>";p.load.boxp.innerHTML=b.strings.loadingLabel;for(var f in b)if(b.hasOwnProperty(f))switch(f){case "title":p.title.innerHTML=C(b[f]);p.container.style.display="inline";break;case "author":p.author.innerHTML=b.strings.bylineLabel.replace("%s",C(b[f]));p.container.style.display="inline";break;case "fallback":p.errorMsg.innerHTML=
75 '<p>Your browser does not support WebGL.<br><a href="'+encodeURI(b[f])+'" target="_blank">Click here to view this panorama in an alternative viewer.</a></p>';break;case "hfov":V(Number(b[f]));break;case "autoLoad":!0===b[f]&&A===g&&(p.load.box.style.display="inline",v.load.style.display="none",N());break;case "showZoomCtrl":v.zoom.style.display=b[f]&&!1!=b.showControls?"block":"none";break;case "showFullscreenCtrl":v.fullscreen.style.display=b[f]&&!1!=b.showControls&&("fullscreen"in d||"mozFullScreen"in
76 d||"webkitIsFullScreen"in d||"msFullscreenElement"in d)?"block":"none";break;case "hotSpotDebug":Va.style.display=b[f]?"block":"none";break;case "showControls":b[f]||(v.orientation.style.display="none",v.zoom.style.display="none",v.fullscreen.style.display="none");break;case "orientationOnByDefault":b[f]&&(qa===g?Xa=!0:!0===qa&&Ja())}a&&(c?b.title=c:delete b.title,e?b.author=e:delete b.author)}function z(){if(J&&!Na)if(Ga)d.exitFullscreen?d.exitFullscreen():d.mozCancelFullScreen?d.mozCancelFullScreen():
77 d.webkitCancelFullScreen?d.webkitCancelFullScreen():d.msExitFullscreen&&d.msExitFullscreen();else try{k.requestFullscreen?k.requestFullscreen():k.mozRequestFullScreen?k.mozRequestFullScreen():k.msRequestFullscreen?k.msRequestFullscreen():k.webkitRequestFullScreen()}catch(a){}}function y(){d.fullscreen||d.mozFullScreen||d.webkitIsFullScreen||d.msFullscreenElement?(v.fullscreen.classList.add("pnlm-fullscreen-toggle-button-active"),Ga=!0):(v.fullscreen.classList.remove("pnlm-fullscreen-toggle-button-active"),
78 Ga=!1);A.resize();V(b.hfov);F()}function D(a){var c=b.minHfov;"multires"==b.type&&A&&(c=Math.min(c,A.getCanvas().width/(b.multiRes.cubeResolution/90*0.9)));return c>b.maxHfov?(console.log("HFOV bounds do not make sense (minHfov > maxHfov)."),b.hfov):a<c?c:a>b.maxHfov?b.maxHfov:a}function V(a){b.hfov=D(a)}function Ia(){K={};aa=b.autoRotate?b.autoRotate:aa;b.autoRotate=!1}function R(){Na&&(p.load.box.style.display="none",p.errorMsg.style.display="none",Na=!1,ha("errorcleared"));J=!1;v.load.style.display=
79 "none";p.load.box.style.display="inline";N()}function I(a,c,d,f,e){J=!1;K={};var k,m;if(b.sceneFadeDuration&&!e&&(k=A.render(b.pitch*Math.PI/180,b.yaw*Math.PI/180,b.hfov*Math.PI/180,{returnImage:!0}),k!==g)){e=new Image;e.className="pnlm-fade-img";e.style.transition="opacity "+b.sceneFadeDuration/1E3+"s";e.style.width="100%";e.style.height="100%";e.onload=function(){I(a,c,d,f,!0)};e.src=k;M.appendChild(e);A.fadeImg=e;return}e="same"===c?b.pitch:c;k="same"===d?b.yaw:"sameAzimuth"===d?b.yaw+(b.northOffset||
80 0)-(n.scenes[a].northOffset||0):d;m="same"===f?b.hfov:f;r();h(a);x.yaw=x.pitch=x.hfov=0;t();e!==g&&(b.pitch=e);k!==g&&(b.yaw=k);m!==g&&(b.hfov=m);ha("scenechange",a);R()}function L(){w.removeEventListener("deviceorientation",La);v.orientation.classList.remove("pnlm-orientation-button-active");ba=!1}function Ja(){ba=1;w.addEventListener("deviceorientation",La);v.orientation.classList.add("pnlm-orientation-button-active")}function C(a){return n.escapeHTML?String(a).split(/&/g).join("&amp;").split('"').join("&quot;").split("'").join("&#39;").split("<").join("&lt;").split(">").join("&gt;").split("/").join("&#x2f;").split("\n").join("<br>"):
81 String(a).split("\n").join("<br>")}function ha(a){if(a in U)for(var b=U[a].length;0<b;b--)U[a][U[a].length-b].apply(null,[].slice.call(arguments,1))}var Aa=this,b,A,ra,ma=!1,T=Date.now(),ya=0,za=0,Fa=-1,Oa=0,Pa=0,q=Array(10),Ga=!1,J,Na=!1,Qa=!1,P,ja,x={yaw:0,pitch:0,hfov:0},Ra=!1,ba=!1,$a=0,Sa,aa=0,xa,Ea,K={},U={},ea=[],Za=!1,Ta=!1,Ua={hfov:100,minHfov:50,maxHfov:120,pitch:0,minPitch:g,maxPitch:g,yaw:0,minYaw:-180,maxYaw:180,roll:0,haov:360,vaov:180,vOffset:0,autoRotate:!1,autoRotateInactivityDelay:-1,
82 autoRotateStopDelay:g,type:"equirectangular",northOffset:0,showFullscreenCtrl:!0,dynamic:!1,doubleClickZoom:!0,keyboardZoom:!0,mouseZoom:!0,showZoomCtrl:!0,autoLoad:!1,showControls:!0,orientationOnByDefault:!1,hotSpotDebug:!1,backgroundColor:[0,0,0],animationTimingFunction:function(a){return 0.5>a?2*a*a:-1+(4-2*a)*a},draggable:!0,disableKeyboardCtrl:!1,crossOrigin:"anonymous",strings:{loadButtonLabel:"Click to<br>Load<br>Panorama",loadingLabel:"Loading...",bylineLabel:"by %s",noPanoramaError:"No panorama image was specified.",
83 fileAccessError:"The file %s could not be accessed.",malformedURLError:"There is something wrong with the panorama URL.",iOS8WebGLError:"Due to iOS 8's broken WebGL implementation, only progressive encoded JPEGs work for your device (this panorama uses standard encoding).",genericWebGLError:"Your browser does not have the necessary WebGL support to display this panorama.",textureSizeError:"This panorama is too big for your device! It's %spx wide, but your device only supports images up to %spx wide. Try another device. (If you're the author, try scaling down the image.)",
84 unknownError:"Unknown error. Check developer console."}},Ya=[16,17,27,37,38,39,40,61,65,68,83,87,107,109,173,187,189];k="string"===typeof k?d.getElementById(k):k;k.classList.add("pnlm-container");k.tabIndex=0;var B=d.createElement("div");B.className="pnlm-ui";k.appendChild(B);var M=d.createElement("div");M.className="pnlm-render-container";k.appendChild(M);var H=d.createElement("div");H.className="pnlm-dragfix";B.appendChild(H);var ia=d.createElement("span");ia.className="pnlm-about-msg";ia.innerHTML=
85 '<a href="https://pannellum.org/" target="_blank">Pannellum</a> 2.4.1';B.appendChild(ia);H.addEventListener("contextmenu",Y);var p={},Va=d.createElement("div");Va.className="pnlm-sprite pnlm-hot-spot-debug-indicator";B.appendChild(Va);p.container=d.createElement("div");p.container.className="pnlm-panorama-info";p.title=d.createElement("div");p.title.className="pnlm-title-box";p.container.appendChild(p.title);p.author=d.createElement("div");p.author.className="pnlm-author-box";p.container.appendChild(p.author);
86 B.appendChild(p.container);p.load={};p.load.box=d.createElement("div");p.load.box.className="pnlm-load-box";p.load.boxp=d.createElement("p");p.load.box.appendChild(p.load.boxp);p.load.lbox=d.createElement("div");p.load.lbox.className="pnlm-lbox";p.load.lbox.innerHTML='<div class="pnlm-loading"></div>';p.load.box.appendChild(p.load.lbox);p.load.lbar=d.createElement("div");p.load.lbar.className="pnlm-lbar";p.load.lbarFill=d.createElement("div");p.load.lbarFill.className="pnlm-lbar-fill";p.load.lbar.appendChild(p.load.lbarFill);
87 p.load.box.appendChild(p.load.lbar);p.load.msg=d.createElement("p");p.load.msg.className="pnlm-lmsg";p.load.box.appendChild(p.load.msg);B.appendChild(p.load.box);p.errorMsg=d.createElement("div");p.errorMsg.className="pnlm-error-msg pnlm-info-box";B.appendChild(p.errorMsg);var v={};v.container=d.createElement("div");v.container.className="pnlm-controls-container";B.appendChild(v.container);v.load=d.createElement("div");v.load.className="pnlm-load-button";v.load.addEventListener("click",function(){t();
88 R()});B.appendChild(v.load);v.zoom=d.createElement("div");v.zoom.className="pnlm-zoom-controls pnlm-controls";v.zoomIn=d.createElement("div");v.zoomIn.className="pnlm-zoom-in pnlm-sprite pnlm-control";v.zoomIn.addEventListener("click",function(){J&&(V(b.hfov-5),F())});v.zoom.appendChild(v.zoomIn);v.zoomOut=d.createElement("div");v.zoomOut.className="pnlm-zoom-out pnlm-sprite pnlm-control";v.zoomOut.addEventListener("click",function(){J&&(V(b.hfov+5),F())});v.zoom.appendChild(v.zoomOut);v.container.appendChild(v.zoom);
89 v.fullscreen=d.createElement("div");v.fullscreen.addEventListener("click",z);v.fullscreen.className="pnlm-fullscreen-toggle-button pnlm-sprite pnlm-fullscreen-toggle-button-inactive pnlm-controls pnlm-control";(d.fullscreenEnabled||d.mozFullScreenEnabled||d.webkitFullscreenEnabled||d.msFullscreenEnabled)&&v.container.appendChild(v.fullscreen);v.orientation=d.createElement("div");v.orientation.addEventListener("click",function(a){ba?L():Ja()});v.orientation.addEventListener("mousedown",function(a){a.stopPropagation()});
90 v.orientation.addEventListener("touchstart",function(a){a.stopPropagation()});v.orientation.addEventListener("pointerdown",function(a){a.stopPropagation()});v.orientation.className="pnlm-orientation-button pnlm-orientation-button-inactive pnlm-sprite pnlm-controls pnlm-control";var qa,Xa=!1;w.DeviceOrientationEvent?w.addEventListener("deviceorientation",Ma):qa=!1;var Ha=d.createElement("div");Ha.className="pnlm-compass pnlm-controls pnlm-control";B.appendChild(Ha);n.firstScene?h(n.firstScene):n.default&&
91 n.default.firstScene?h(n.default.firstScene):h(null);t(!0);var na=[],Ba=[];$.prototype.multiply=function(a){return new $(this.w*a.w-this.x*a.x-this.y*a.y-this.z*a.z,this.x*a.w+this.w*a.x+this.y*a.z-this.z*a.y,this.y*a.w+this.w*a.y+this.z*a.x-this.x*a.z,this.z*a.w+this.w*a.z+this.x*a.y-this.y*a.x)};$.prototype.toEulerAngles=function(){var a=Math.atan2(2*(this.w*this.x+this.y*this.z),1-2*(this.x*this.x+this.y*this.y)),b=Math.asin(2*(this.w*this.y-this.z*this.x)),c=Math.atan2(2*(this.w*this.z+this.x*
92 this.y),1-2*(this.y*this.y+this.z*this.z));return[a,b,c]};this.isLoaded=function(){return Boolean(J)};this.getPitch=function(){return b.pitch};this.setPitch=function(a,c,d,e){(c=c==g?1E3:Number(c))?K.pitch={startTime:Date.now(),startPosition:b.pitch,endPosition:a,duration:c,callback:d,callbackArgs:e}:b.pitch=a;F();return this};this.getPitchBounds=function(){return[b.minPitch,b.maxPitch]};this.setPitchBounds=function(a){b.minPitch=Math.max(-90,Math.min(a[0],90));b.maxPitch=Math.max(-90,Math.min(a[1],
93 90));return this};this.getYaw=function(){return b.yaw};this.setYaw=function(a,c,d,e){c=c==g?1E3:Number(c);a=(a+180)%360-180;c?(180<b.yaw-a?a+=360:180<a-b.yaw&&(a-=360),K.yaw={startTime:Date.now(),startPosition:b.yaw,endPosition:a,duration:c,callback:d,callbackArgs:e}):b.yaw=a;F();return this};this.getYawBounds=function(){return[b.minYaw,b.maxYaw]};this.setYawBounds=function(a){b.minYaw=Math.max(-180,Math.min(a[0],180));b.maxYaw=Math.max(-180,Math.min(a[1],180));return this};this.getHfov=function(){return b.hfov};
94 this.setHfov=function(a,c,d,e){(c=c==g?1E3:Number(c))?K.hfov={startTime:Date.now(),startPosition:b.hfov,endPosition:D(a),duration:c,callback:d,callbackArgs:e}:V(a);F();return this};this.getHfovBounds=function(){return[b.minHfov,b.maxHfov]};this.setHfovBounds=function(a){b.minHfov=Math.max(0,a[0]);b.maxHfov=Math.max(0,a[1]);return this};this.lookAt=function(a,b,c,d,e,f){d=d==g?1E3:Number(d);a!==g&&(this.setPitch(a,d,e,f),e=g);b!==g&&(this.setYaw(b,d,e,f),e=g);c!==g&&this.setHfov(c,d,e,f);return this};
95 this.getNorthOffset=function(){return b.northOffset};this.setNorthOffset=function(a){b.northOffset=Math.min(360,Math.max(0,a));F();return this};this.getHorizonRoll=function(){return b.horizonRoll};this.setHorizonRoll=function(a){b.horizonRoll=Math.min(90,Math.max(-90,a));A.setPose(b.horizonPitch*Math.PI/180,b.horizonRoll*Math.PI/180);F();return this};this.getHorizonPitch=function(){return b.horizonPitch};this.setHorizonPitch=function(a){b.horizonPitch=Math.min(90,Math.max(-90,a));A.setPose(b.horizonPitch*
96 Math.PI/180,b.horizonRoll*Math.PI/180);F();return this};this.startAutoRotate=function(a){a=a||aa||1;b.autoRotate=a;Aa.lookAt(Ea,g,xa,3E3);F();return this};this.stopAutoRotate=function(){aa=b.autoRotate?b.autoRotate:aa;b.autoRotate=!1;b.autoRotateInactivityDelay=-1;return this};this.getRenderer=function(){return A};this.setUpdate=function(a){Za=!0===a;A===g?Q():F();return this};this.mouseEventToCoords=function(a){return ta(a)};this.loadScene=function(a,b,c,d){!1!==J&&I(a,b,c,d);return this};this.getScene=
97 function(){return b.scene};this.addScene=function(a,b){n.scenes[a]=b;return this};this.removeScene=function(a){if(b.scene===a||!n.scenes.hasOwnProperty(a))return!1;delete n.scenes[a];return!0};this.toggleFullscreen=function(){z();return this};this.getConfig=function(){return b};this.getContainer=function(){return k};this.addHotSpot=function(a,d){if(d===g&&b.scene===g)b.hotSpots.push(a);else{var e=d!==g?d:b.scene;if(n.scenes.hasOwnProperty(e))n.scenes[e].hasOwnProperty("hotSpots")||(n.scenes[e].hotSpots=
98 [],e==b.scene&&(b.hotSpots=n.scenes[e].hotSpots)),n.scenes[e].hotSpots.push(a);else throw"Invalid scene ID!";}if(d===g||b.scene==d)Wa(a),J&&c(a);return this};this.removeHotSpot=function(a){if(!b.hotSpots)return!1;for(var c=0;c<b.hotSpots.length;c++)if(b.hotSpots[c].hasOwnProperty("id")&&b.hotSpots[c].id===a){for(a=b.hotSpots[c].div;a.parentNode!=M;)a=a.parentNode;M.removeChild(a);delete b.hotSpots[c].div;b.hotSpots.splice(c,1);return!0}return!1};this.resize=function(){y()};this.isLoaded=function(){return J};
99 this.isOrientationSupported=function(){return qa||!1};this.stopOrientation=function(){L()};this.startOrientation=function(){qa&&Ja()};this.isOrientationActive=function(){return Boolean(ba)};this.on=function(a,b){U[a]=U[a]||[];U[a].push(b);return this};this.off=function(a,b){if(!a)return U={},this;if(b){var c=U[a].indexOf(b);0<=c&&U[a].splice(c,1);0==U[a].length&&delete U[a]}else delete U[a];return this};this.destroy=function(){A&&A.destroy();Qa&&(H.removeEventListener("mousedown",Ca,!1),H.removeEventListener("dblclick",
100 sa,!1),d.removeEventListener("mousemove",Ka,!1),d.removeEventListener("mouseup",fa,!1),k.removeEventListener("mousewheel",oa,!1),k.removeEventListener("DOMMouseScroll",oa,!1),k.removeEventListener("mozfullscreenchange",y,!1),k.removeEventListener("webkitfullscreenchange",y,!1),k.removeEventListener("msfullscreenchange",y,!1),k.removeEventListener("fullscreenchange",y,!1),w.removeEventListener("resize",la,!1),w.removeEventListener("orientationchange",la,!1),k.removeEventListener("keydown",S,!1),k.removeEventListener("keyup",
101 ga,!1),k.removeEventListener("blur",va,!1),d.removeEventListener("mouseleave",fa,!1),H.removeEventListener("touchstart",ua,!1),H.removeEventListener("touchmove",E,!1),H.removeEventListener("touchend",e,!1),H.removeEventListener("pointerdown",a,!1),H.removeEventListener("pointermove",W,!1),H.removeEventListener("pointerup",O,!1),H.removeEventListener("pointerleave",O,!1));k.innerHTML="";k.classList.remove("pnlm-container");B.classList.remove("pnlm-grab");B.classList.remove("pnlm-grabbing")}}return{viewer:function(d,
102 g){return new N(d,g)}}}(window,document);function anError(w){var d=document.createElement("div");d.className="pnlm-info-box";d.innerHTML="<p>"+w+"</p>";document.getElementById("container").appendChild(d)}var viewer;
103 function parseURLParameters(){var w;0<window.location.hash.length?w=[window.location.hash.slice(1)]:(w=decodeURI(window.location.href).split("?"),w.shift());if(1>w.length)anError("No configuration options were specified.");else{w=w[0].split("&");for(var d={},g=0;g<w.length;g++){var N=w[g].split("=")[0],k=w[g].split("=")[1];if(""!=k)switch(N){case "hfov":case "pitch":case "yaw":case "haov":case "vaov":case "minHfov":case "maxHfov":case "minPitch":case "maxPitch":case "minYaw":case "maxYaw":case "vOffset":case "autoRotate":d[N]=
104 Number(k);break;case "autoLoad":case "ignoreGPanoXMP":d[N]=JSON.parse(k);break;case "author":case "title":case "firstScene":case "fallback":case "preview":case "panorama":case "config":d[N]=decodeURIComponent(k);break;default:anError("An invalid configuration parameter was specified: "+N);return}}var n;d.config?(n=new XMLHttpRequest,n.onload=function(){if(200!=n.status){var g=document.createElement("a");g.href=d.config;g.innerHTML=g.href;anError("The file "+g.outerHTML+" could not be accessed.")}else{g=
105 JSON.parse(n.responseText);void 0===g.basePath&&(g.basePath=d.config.substring(0,d.config.lastIndexOf("/")+1));for(var k in g)d.hasOwnProperty(k)||(d[k]=g[k]);"title"in d&&(document.title=d.title);d.escapeHTML=!0;viewer=pannellum.viewer("container",d)}},n.open("GET",d.config),n.send()):("title"in d&&(document.title=d.title),d.escapeHTML=!0,viewer=pannellum.viewer("container",d))}}
106 "file:"==window.location.protocol?anError("Due to browser security restrictions, Pannellum can't be run from the local filesystem; some sort of web server must be used."):parseURLParameters();
107 </script></body></html>