From 0aaa667121c51562351a578517cb474a79a88983 Mon Sep 17 00:00:00 2001 From: strarsis Date: Fri, 13 Nov 2020 14:58:14 +0100 Subject: [PATCH] Build eeb9383. --- build/pannellum.css | 4 +- build/pannellum.htm | 232 +++++++++++++++++++++++++++------------------------- build/pannellum.js | 227 +++++++++++++++++++++++++------------------------- 3 files changed, 237 insertions(+), 226 deletions(-) diff --git a/build/pannellum.css b/build/pannellum.css index 3d47aea..61e7f49 100644 --- a/build/pannellum.css +++ b/build/pannellum.css @@ -1,2 +1,2 @@ -/* Pannellum 0d32eea, https://github.com/mpetroff/pannellum */ -.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}.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,.pnlm-author-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}.pnlm-pointer{cursor:pointer} \ No newline at end of file +/* Pannellum eeb9383, https://github.com/mpetroff/pannellum */ +.pnlm-container{margin:0;padding:0;overflow:hidden;position:relative;cursor:default;width:100%;height:100%;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;direction:ltr}.pnlm-container,.pnlm-load-button{font-family:Helvetica,"Nimbus Sans L","Liberation Sans",Arial,sans-serif}.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;font-size:20px;color:#fff;cursor:pointer;display:inline-block;border:0;padding:0;line-height:1.4}.pnlm-load-button:hover{background-color:rgba(0,0,0,.8)}.pnlm-load-button:focus{outline:0;box-shadow:0 0 0 1px #fff inset}.pnlm-load-button div{display:table;text-align:center;width:100%}.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,.pnlm-author-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}.pnlm-pointer{cursor:pointer} \ No newline at end of file diff --git a/build/pannellum.htm b/build/pannellum.htm index dbd8b2a..b4edf75 100644 --- a/build/pannellum.htm +++ b/build/pannellum.htm @@ -1,117 +1,123 @@ - -Pannellum
\ No newline at end of file diff --git a/build/pannellum.js b/build/pannellum.js index bc8114a..af0f920 100644 --- a/build/pannellum.js +++ b/build/pannellum.js @@ -1,111 +1,116 @@ -// Pannellum 0d32eea, https://github.com/mpetroff/pannellum -window.libpannellum=function(E,g,p){function Ba(K){function ja(a,e){return 1==a.level&&1!=e.level?-1:1==e.level&&1!=a.level?1:e.timestamp-a.timestamp}function Q(a,e){return a.level!=e.level?a.level-e.level:a.diff-e.diff}function ka(a,e,c,g,l,f){this.vertices=a;this.side=e;this.level=c;this.x=g;this.y=l;this.path=f.replace("%s",e).replace("%l",c).replace("%x",g).replace("%y",l)}function Ja(a,e,g,p,l){var f;var d=e.vertices;f=la(a,d.slice(0,3));var u=la(a,d.slice(3,6)),x=la(a,d.slice(6,9)),d=la(a,d.slice(9, -12)),t=f[0]+u[0]+x[0]+d[0];-4==t||4==t?f=!1:(t=f[1]+u[1]+x[1]+d[1],f=-4==t||4==t?!1:4!=f[2]+u[2]+x[2]+d[2]);if(f){f=e.vertices;u=f[0]+f[3]+f[6]+f[9];x=f[1]+f[4]+f[7]+f[10];d=f[2]+f[5]+f[8]+f[11];t=Math.sqrt(u*u+x*x+d*d);d=Math.asin(d/t);u=Math.atan2(x,u)-p;u+=u>Math.PI?-2*Math.PI:u<-Math.PI?2*Math.PI:0;u=Math.abs(u);e.diff=Math.acos(Math.sin(g)*Math.sin(d)+Math.cos(g)*Math.cos(d)*Math.cos(u));u=!1;for(x=0;xg&&(f[0]=-1);1l&&(f[1]=-1);1c||1t;t++)0==m[t].width&&(m[t]=a)}}e===p&&(e="equirectangular");if("equirectangular"!=e&&"cubemap"!=e&&"multires"!=e)throw console.log("Error: invalid image type specified!"), -{type:"config error"};z=e;m=L;F=Ca;va=u||{};if(c){U&&(a.detachShader(c,U),a.deleteShader(U));V&&(a.detachShader(c,V),a.deleteShader(V));a.bindBuffer(a.ARRAY_BUFFER,null);a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,null);c.texture&&a.deleteTexture(c.texture);if(c.nodeCache)for(L=0;Lt;t++)0d;d++)c[4*(b+a.width)+d]=c[4*(b+2*a.width)+d],c[4*(b+a.width*(a.height-2))+d]=c[4*(b+a.width*(a.height-3))+d];for(b=2;bd;d++)c[4*(b*a.width+1)+d]=c[4*(b*a.width+2)+d],c[4*((b+1)*a.width-2)+d]=c[4*((b+1)*a.width-3)+d];for(d=0;4>d;d++)c[4*(a.width+1)+d]=c[4*(2*a.width+2)+d],c[4*(2*a.width-2)+d]=c[4*(3*a.width-3)+d],c[4*(a.width*(a.height-2)+1)+d]=c[4* -(a.width*(a.height-3)+2)+d],c[4*(a.width*(a.height-1)-2)+d]=c[4*(a.width*(a.height-2)-3)+d];for(b=1;bd;d++)c[4*b+d]=c[4*(b+a.width)+d],c[4*(b+a.width*(a.height-1))+d]=c[4*(b+a.width*(a.height-2))+d];for(b=1;bd;d++)c[b*a.width*4+d]=c[4*(b*a.width+1)+d],c[4*((b+1)*a.width-1)+d]=c[4*((b+1)*a.width-2)+d];for(d=0;4>d;d++)c[d]=c[4*(a.width+1)+d],c[4*(a.width-1)+d]=c[4*(2*a.width-2)+d],c[a.width*(a.height-1)*4+d]=c[4*(a.width*(a.height-2)+1)+d],c[4*(a.width* -a.height-1)+d]=c[4*(a.width*(a.height-1)-2)+d];e.putImageData(f,0,0);D.call(this)};var D=function(){0t;t++)f=new Image,f.crossOrigin=va.crossOrigin?va.crossOrigin:"anonymous",f.side=t,f.onload=l,f.onerror=D,f.src="multires"==z?H.replace("%s",Q[t])+"."+m.extension:m[t].src;x($)}else{if(!a)throw console.log("Error: no WebGL support detected!"), -{type:"no webgl"};"cubemap"==z&&x(y);m.fullpath=m.basePath?m.basePath+m.path:m.path;m.invTileResolution=1/m.tileResolution;L=ta();wa=[];for(t=0;6>t;t++)wa[t]=L.slice(12*t,12*t+12),L=ta();L=0;if("equirectangular"==z){if(L=a.getParameter(a.MAX_TEXTURE_SIZE),Math.max(m.width/2,m.height)>L)throw console.log("Error: The image is too big; it's "+m.width+"px wide, but this device's maximum supported size is "+2*L+"px."),{type:"webgl size error",width:m.width,maxWidth:2*L};}else if("cubemap"==z&&y>a.getParameter(a.MAX_CUBE_MAP_TEXTURE_SIZE))throw console.log("Error: The image is too big; it's "+ -y+"px wide, but this device's maximum supported size is "+L+"px."),{type:"webgl size error",width:y,maxWidth:L};u!==p&&(y=isNaN(u.horizonPitch)?0:Number(u.horizonPitch),e=isNaN(u.horizonRoll)?0:Number(u.horizonRoll),0!=y||0!=e)&&(ga=[y,e]);y=a.TEXTURE_2D;a.viewport(0,0,a.drawingBufferWidth,a.drawingBufferHeight);a.getShaderPrecisionFormat&&(e=a.getShaderPrecisionFormat(a.FRAGMENT_SHADER,a.HIGH_FLOAT))&&1>e.precision&&(oa=oa.replace("highp","mediump"));U=a.createShader(a.VERTEX_SHADER);e=r;"multires"== -z&&(e=k);a.shaderSource(U,e);a.compileShader(U);V=a.createShader(a.FRAGMENT_SHADER);e=pa;"cubemap"==z?(y=a.TEXTURE_CUBE_MAP,e=qa):"multires"==z&&(e=bb);a.shaderSource(V,e);a.compileShader(V);c=a.createProgram();a.attachShader(c,U);a.attachShader(c,V);a.linkProgram(c);a.getShaderParameter(U,a.COMPILE_STATUS)||console.log(a.getShaderInfoLog(U));a.getShaderParameter(V,a.COMPILE_STATUS)||console.log(a.getShaderInfoLog(V));a.getProgramParameter(c,a.LINK_STATUS)||console.log(a.getProgramInfoLog(c));a.useProgram(c); -c.drawInProgress=!1;e=u.backgroundColor?u.backgroundColor:[0,0,0];a.clearColor(e[0],e[1],e[2],1);a.clear(a.COLOR_BUFFER_BIT);c.texCoordLocation=a.getAttribLocation(c,"a_texCoord");a.enableVertexAttribArray(c.texCoordLocation);"multires"!=z?(ca||(ca=a.createBuffer()),a.bindBuffer(a.ARRAY_BUFFER,ca),a.bufferData(a.ARRAY_BUFFER,new Float32Array([-1,1,1,1,1,-1,-1,1,1,-1,-1,-1]),a.STATIC_DRAW),a.vertexAttribPointer(c.texCoordLocation,2,a.FLOAT,!1,0,0),c.aspectRatio=a.getUniformLocation(c,"u_aspectRatio"), -a.uniform1f(c.aspectRatio,a.drawingBufferWidth/a.drawingBufferHeight),c.psi=a.getUniformLocation(c,"u_psi"),c.theta=a.getUniformLocation(c,"u_theta"),c.f=a.getUniformLocation(c,"u_f"),c.h=a.getUniformLocation(c,"u_h"),c.v=a.getUniformLocation(c,"u_v"),c.vo=a.getUniformLocation(c,"u_vo"),c.rot=a.getUniformLocation(c,"u_rot"),a.uniform1f(c.h,H/(2*Math.PI)),a.uniform1f(c.v,l/Math.PI),a.uniform1f(c.vo,f/Math.PI*2),"equirectangular"==z&&(c.backgroundColor=a.getUniformLocation(c,"u_backgroundColor"),a.uniform4fv(c.backgroundColor, -e.concat([1]))),c.texture=a.createTexture(),a.bindTexture(y,c.texture),"cubemap"==z?(a.texImage2D(a.TEXTURE_CUBE_MAP_POSITIVE_X,0,a.RGB,a.RGB,a.UNSIGNED_BYTE,m[1]),a.texImage2D(a.TEXTURE_CUBE_MAP_NEGATIVE_X,0,a.RGB,a.RGB,a.UNSIGNED_BYTE,m[3]),a.texImage2D(a.TEXTURE_CUBE_MAP_POSITIVE_Y,0,a.RGB,a.RGB,a.UNSIGNED_BYTE,m[4]),a.texImage2D(a.TEXTURE_CUBE_MAP_NEGATIVE_Y,0,a.RGB,a.RGB,a.UNSIGNED_BYTE,m[5]),a.texImage2D(a.TEXTURE_CUBE_MAP_POSITIVE_Z,0,a.RGB,a.RGB,a.UNSIGNED_BYTE,m[0]),a.texImage2D(a.TEXTURE_CUBE_MAP_NEGATIVE_Z, -0,a.RGB,a.RGB,a.UNSIGNED_BYTE,m[2])):m.width<=L?(a.uniform1i(a.getUniformLocation(c,"u_splitImage"),0),a.texImage2D(y,0,a.RGB,a.RGB,a.UNSIGNED_BYTE,m)):(a.uniform1i(a.getUniformLocation(c,"u_splitImage"),1),H=g.createElement("canvas"),H.width=m.width/2,H.height=m.height,H=H.getContext("2d"),H.drawImage(m,0,0),l=H.getImageData(0,0,m.width/2,m.height),a.texImage2D(y,0,a.RGB,a.RGB,a.UNSIGNED_BYTE,l),c.texture2=a.createTexture(),a.activeTexture(a.TEXTURE1),a.bindTexture(y,c.texture2),a.uniform1i(a.getUniformLocation(c, -"u_image1"),1),H.drawImage(m,-m.width/2,0),l=H.getImageData(0,0,m.width/2,m.height),a.texImage2D(y,0,a.RGB,a.RGB,a.UNSIGNED_BYTE,l),a.texParameteri(y,a.TEXTURE_WRAP_S,a.CLAMP_TO_EDGE),a.texParameteri(y,a.TEXTURE_WRAP_T,a.CLAMP_TO_EDGE),a.texParameteri(y,a.TEXTURE_MIN_FILTER,a.LINEAR),a.texParameteri(y,a.TEXTURE_MAG_FILTER,a.LINEAR),a.activeTexture(a.TEXTURE0)),a.texParameteri(y,a.TEXTURE_WRAP_S,a.CLAMP_TO_EDGE),a.texParameteri(y,a.TEXTURE_WRAP_T,a.CLAMP_TO_EDGE),a.texParameteri(y,a.TEXTURE_MIN_FILTER, -a.LINEAR),a.texParameteri(y,a.TEXTURE_MAG_FILTER,a.LINEAR)):(c.vertPosLocation=a.getAttribLocation(c,"a_vertCoord"),a.enableVertexAttribArray(c.vertPosLocation),Fa||(Fa=a.createBuffer()),Y||(Y=a.createBuffer()),na||(na=a.createBuffer()),a.bindBuffer(a.ARRAY_BUFFER,Y),a.bufferData(a.ARRAY_BUFFER,new Float32Array([0,0,1,0,1,1,0,1]),a.STATIC_DRAW),a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,na),a.bufferData(a.ELEMENT_ARRAY_BUFFER,new Uint16Array([0,1,2,0,2,3]),a.STATIC_DRAW),c.perspUniform=a.getUniformLocation(c, -"u_perspMatrix"),c.cubeUniform=a.getUniformLocation(c,"u_cubeMatrix"),c.level=-1,c.currentNodes=[],c.nodeCache=[],c.nodeCacheTimestamp=0);H=a.getError();if(0!==H)throw console.log("Error: Something went wrong with WebGL!",H),{type:"webgl error"};d()}};this.destroy=function(){K!==p&&(A!==p&&K.contains(A)&&K.removeChild(A),R!==p&&K.contains(R)&&K.removeChild(R));if(a){var c=a.getExtension("WEBGL_lose_context");c&&c.loseContext()}};this.resize=function(){var g=E.devicePixelRatio||1;A.width=A.clientWidth* -g;A.height=A.clientHeight*g;a&&(1286==a.getError()&&Ea(),a.viewport(0,0,a.drawingBufferWidth,a.drawingBufferHeight),"multires"!=z&&a.uniform1f(c.aspectRatio,A.clientWidth/A.clientHeight))};this.resize();this.setPose=function(a,c){a=isNaN(a)?0:Number(a);c=isNaN(c)?0:Number(c);ga=0==a&&0==c?p:[a,c]};this.render=function(g,e,k,r){var l,f=0;r===p&&(r={});r.roll&&(f=r.roll);if(ga!==p){l=ga[0];var d=ga[1],u=g,x=e,t=Math.cos(d)*Math.sin(g)*Math.sin(l)+Math.cos(g)*(Math.cos(l)*Math.cos(e)+Math.sin(d)*Math.sin(l)* -Math.sin(e)),E=-Math.sin(g)*Math.sin(d)+Math.cos(g)*Math.cos(d)*Math.sin(e);g=Math.cos(d)*Math.cos(l)*Math.sin(g)+Math.cos(g)*(-Math.cos(e)*Math.sin(l)+Math.cos(l)*Math.sin(d)*Math.sin(e));g=Math.asin(Math.max(Math.min(g,1),-1));e=Math.atan2(E,t);l=[Math.cos(u)*(Math.sin(d)*Math.sin(l)*Math.cos(x)-Math.cos(l)*Math.sin(x)),Math.cos(u)*Math.cos(d)*Math.cos(x),Math.cos(u)*(Math.cos(l)*Math.sin(d)*Math.cos(x)+Math.sin(x)*Math.sin(l))];d=[-Math.cos(g)*Math.sin(e),Math.cos(g)*Math.cos(e)];d=Math.acos(Math.max(Math.min((l[0]* -d[0]+l[1]*d[1])/(Math.sqrt(l[0]*l[0]+l[1]*l[1]+l[2]*l[2])*Math.sqrt(d[0]*d[0]+d[1]*d[1])),1),-1));0>l[2]&&(d=2*Math.PI-d);f+=d}if(a||"multires"!=z&&"cubemap"!=z){if("multires"!=z)k=2*Math.atan(Math.tan(0.5*k)/(a.drawingBufferWidth/a.drawingBufferHeight)),k=1/Math.tan(0.5*k),a.uniform1f(c.psi,e),a.uniform1f(c.theta,g),a.uniform1f(c.rot,f),a.uniform1f(c.f,k),!0===F&&"equirectangular"==z&&(a.bindTexture(a.TEXTURE_2D,c.texture),a.texImage2D(a.TEXTURE_2D,0,a.RGB,a.RGB,a.UNSIGNED_BYTE,m)),a.drawArrays(a.TRIANGLES, -0,6);else{l=a.drawingBufferWidth/a.drawingBufferHeight;d=2*Math.atan(Math.tan(k/2)*a.drawingBufferHeight/a.drawingBufferWidth);d=1/Math.tan(d/2);l=[d/l,0,0,0,0,d,0,0,0,0,100.1/-99.9,20/-99.9,0,0,-1,0];for(d=1;dm.tileResolution*Math.pow(2,d-1)*Math.tan(k/2)*0.707;)d++;c.level=d;d=[1,0,0,0,1,0,0,0,1];d=ua(d,-f,"z");d=ua(d,-g,"x");d=ua(d,e,"y");d=[d[0],d[1],d[2],0,d[3],d[4],d[5],0,d[6],d[7],d[8],0,0,0,0,1];a.uniformMatrix4fv(c.perspUniform,!1,new Float32Array(ma(l))); -a.uniformMatrix4fv(c.cubeUniform,!1,new Float32Array(ma(d)));f=[l[0]*d[0],l[0]*d[1],l[0]*d[2],0,l[5]*d[4],l[5]*d[5],l[5]*d[6],0,l[10]*d[8],l[10]*d[9],l[10]*d[10],l[11],-d[8],-d[9],-d[10],0];c.nodeCache.sort(ja);if(200c.currentNodes.length+50)for(l=c.nodeCache.splice(200,c.nodeCache.length-200),d=0;dl;l++)u=new ka(wa[l],d[l],1,0,0,m.fullpath),Ja(f,u,g,e,k);c.currentNodes.sort(Q); -for(g=S.length-1;0<=g;g--)-1===c.currentNodes.indexOf(S[g].node)&&(S[g].node.textureLoad=!1,S.splice(g,1));if(0===S.length)for(g=0;gg;g++)if(f=R.querySelector(".pnlm-"+k[g]+"face"))f.style.webkitTransform= -e+r[k[g]],f.style.transform=e+r[k[g]]};this.isLoading=function(){if(a&&"multires"==z)for(var g=0;g u_h || coord.y < -u_v + u_vo || coord.y > u_v + u_vo)\ngl_FragColor = u_backgroundColor;\nelse {\nif(u_splitImage) {\nif(coord.x < 0.0)\ngl_FragColor = texture2D(u_image0, vec2((coord.x + u_h) / u_h, (-coord.y + u_v + u_vo) / (u_v * 2.0)));\nelse\ngl_FragColor = texture2D(u_image1, vec2((coord.x + u_h) / u_h - 1.0, (-coord.y + u_v + u_vo) / (u_v * 2.0)));\n} else {\ngl_FragColor = texture2D(u_image0, vec2((coord.x + u_h) / (u_h * 2.0), (-coord.y + u_v + u_vo) / (u_v * 2.0)));\n}\n}\n}", -bb="varying mediump vec2 v_texCoord;uniform sampler2D u_sampler;void main(void) {gl_FragColor = texture2D(u_sampler, v_texCoord);}";return{renderer:function(g,k,p,r){return new Ba(g,k,p,r)}}}(window,document); -window.pannellum=function(E,g,p){function Ba(r,k){function oa(){var a=g.createElement("div");a.innerHTML="\x3c!--[if lte IE 9]>a;a++)M.push(new Image),M[a].crossOrigin=b.crossOrigin;q.load.lbox.style.display="block";q.load.lbar.style.display="none"}else if("multires"==b.type)a=JSON.parse(JSON.stringify(b.multiRes)),b.basePath&&b.multiRes.basePath&&!/^(?:[a-z]+:)?\/\//i.test(b.multiRes.basePath)? -a.basePath=b.basePath+b.multiRes.basePath:b.multiRes.basePath?a.basePath=b.multiRes.basePath:b.basePath&&(a.basePath=b.basePath),M=a;else if(!0===b.dynamic)M=b.panorama;else{if(b.panorama===p){K(b.strings.noPanoramaError);return}M=new Image}if("cubemap"==b.type)for(var n=6,c=function(){n--;0===n&&pa()},d=function(a){var ea=g.createElement("a");ea.href=a.target.src;ea.textContent=ea.href;K(b.strings.fileAccessError.replace("%s",ea.outerHTML))},a=0;ae||65536")+12),f=function(a){var b;0<=d.indexOf(a+'="')?(b=d.substring(d.indexOf(a+'="')+a.length+2),b=b.substring(0,b.indexOf('"'))):0<=d.indexOf(a+">")&&(b=d.substring(d.indexOf(a+">")+a.length+1),b=b.substring(0, -b.indexOf("<")));return b!==p?Number(b):null},c=f("GPano:FullPanoWidthPixels"),e=f("GPano:CroppedAreaImageWidthPixels"),l=f("GPano:FullPanoHeightPixels"),k=f("GPano:CroppedAreaImageHeightPixels"),m=f("GPano:CroppedAreaTopPixels"),q=f("GPano:PoseHeadingDegrees"),r=f("GPano:PosePitchDegrees"),f=f("GPano:PoseRollDegrees");null!==c&&null!==e&&null!==l&&null!==k&&null!==m&&(0>aa.indexOf("haov")&&(b.haov=e/c*360),0>aa.indexOf("vaov")&&(b.vaov=k/l*180),0>aa.indexOf("vOffset")&&(b.vOffset=-180*((m+k/2)/l- -0.5)),null!==q&&0>aa.indexOf("northOffset")&&(b.northOffset=q,!1!==b.compass&&(b.compass=!0)),null!==r&&null!==f&&(0>aa.indexOf("horizonPitch")&&(b.horizonPitch=r),0>aa.indexOf("horizonRoll")&&(b.horizonRoll=f)))}M.src=E.URL.createObjectURL(a);M.onerror=function(){(function(){return E.fetch?E.fetch(g.location.href).then(function(a){return a.headers.get("Content-Security-Policy")}):null})().then(function(a){a&&a.split(";").find(function(a){if(a=a.match(/img-src(.*)/))return!a[1].includes("blob")})&& -(console.log("CSP blocks blobs; reverting to URL."),M.crossOrigin=b.crossOrigin,M.src=h)})}});n.readAsBinaryString!==p?n.readAsBinaryString(a):n.readAsText(a)}function K(a){a===p&&(a=b.strings.genericWebGLError);q.errorMsg.innerHTML="

"+a+"

";v.load.style.display="none";q.load.box.style.display="none";q.errorMsg.style.display="table";Na=!0;G=p;N.style.display="none";B("error",a)}function ja(a){var b=Q(a);fa.style.left=b.x+"px";fa.style.top=b.y+"px";clearTimeout(ja.t1);clearTimeout(ja.t2);fa.style.display= -"block";fa.style.opacity=1;ja.t1=setTimeout(function(){fa.style.opacity=0},2E3);ja.t2=setTimeout(function(){fa.style.display="none"},2500);a.preventDefault()}function Q(a){var b=r.getBoundingClientRect(),n={};n.x=(a.clientX||a.pageX)-b.left;n.y=(a.clientY||a.pageY)-b.top;return n}function ka(a){a.preventDefault();r.focus();if(G&&b.draggable){var h=Q(a);if(b.hotSpotDebug){var n=ta(a);console.log("Pitch: "+n[0]+", Yaw: "+n[1]+", Center Pitch: "+b.pitch+", Center Yaw: "+b.yaw+", HFOV: "+b.hfov)}t(); -Da();b.roll=0;w.hfov=0;ha=!0;O=Date.now();xa=h.x;ya=h.y;Oa=b.yaw;Pa=b.pitch;J.classList.add("pnlm-grabbing");J.classList.remove("pnlm-grab");B("mousedown",a);F()}}function Ja(a){b.minHfov===b.hfov?da.setHfov(ra,1E3):(a=ta(a),da.lookAt(a[0],a[1],b.minHfov,1E3))}function ta(a){var h=Q(a);a=C.getCanvas();var n=a.clientWidth,c=a.clientHeight;a=h.x/n*2-1;var c=(1-h.y/c*2)*c/n,e=1/Math.tan(b.hfov*Math.PI/360),d=Math.sin(b.pitch*Math.PI/180),f=Math.cos(b.pitch*Math.PI/180),h=e*f-c*d,n=Math.sqrt(a*a+h*h), -c=180*Math.atan((c*f+e*d)/n)/Math.PI;a=180*Math.atan2(a/n,h/n)/Math.PI+b.yaw;-180>a&&(a+=360);180a.wheelDelta?1:-1):a.wheelDelta?(x(b.hfov-0.05*a.wheelDelta),w.hfov=0>a.wheelDelta?1:-1):a.detail&&(x(b.hfov+1.5*a.detail),w.hfov=0b.capturedKeyNumbers.indexOf(h)||(a.preventDefault(),27==h?Aa&&f():wa(h,!0))}function $(){for(var a=0;10>a;a++)s[a]=!1}function R(a){var h=a.which||a.keycode; -0>b.capturedKeyNumbers.indexOf(h)||(a.preventDefault(),wa(h,!1))}function wa(a,b){var n=!1;switch(a){case 109:case 189:case 17:case 173:s[0]!=b&&(n=!0);s[0]=b;break;case 107:case 187:case 16:case 61:s[1]!=b&&(n=!0);s[1]=b;break;case 38:s[2]!=b&&(n=!0);s[2]=b;break;case 87:s[6]!=b&&(n=!0);s[6]=b;break;case 40:s[3]!=b&&(n=!0);s[3]=b;break;case 83:s[7]!=b&&(n=!0);s[7]=b;break;case 37:s[4]!=b&&(n=!0);s[4]=b;break;case 65:s[8]!=b&&(n=!0);s[8]=b;break;case 39:s[5]!=b&&(n=!0);s[5]=b;break;case 68:s[9]!= -b&&(n=!0),s[9]=b}n&&b&&(ba="undefined"!==typeof performance&&performance.now()?performance.now():Date.now(),F())}function ga(){if(G){var a=!1,h=b.pitch,n=b.yaw,c=b.hfov,e;e="undefined"!==typeof performance&&performance.now()?performance.now():Date.now();ba===p&&(ba=e);var d=(e-ba)*b.hfov/1700,d=Math.min(d,1);s[0]&&!0===b.keyboardZoom&&(x(b.hfov+(0.8*w.hfov+0.5)*d),a=!0);s[1]&&!0===b.keyboardZoom&&(x(b.hfov+(0.8*w.hfov-0.2)*d),a=!0);if(s[2]||s[6])b.pitch+=(0.8*w.pitch+0.2)*d,a=!0;if(s[3]||s[7])b.pitch+= -(0.8*w.pitch-0.2)*d,a=!0;if(s[4]||s[8])b.yaw+=(0.8*w.yaw-0.2)*d,a=!0;if(s[5]||s[9])b.yaw+=(0.8*w.yaw+0.2)*d,a=!0;a&&(O=Date.now());if(b.autoRotate){if(0.001=b.autoRotateStopDelay&&(b.autoRotateStopDelay=!1,Z=b.autoRotate,b.autoRotate=0))}P.pitch&&(m("pitch"),h=b.pitch);P.yaw&&(m("yaw"),n=b.yaw);P.hfov&&(m("hfov"), -c=b.hfov);0h.startPosition&&n>=h.endPosition||h.endPositionb.autoRotateInactivityDelay&&!b.autoRotate&&(b.autoRotate=Z,da.lookAt(Ga,p,ra,3E3)),requestAnimationFrame(ca);else if(C&&(C.isLoading()||!0===b.dynamic&&Ma))requestAnimationFrame(ca);else{B("animatefinished",{pitch:da.getPitch(), -yaw:da.getYaw(),hfov:da.getHfov()});Ta=!1;ba=p;var a=b.autoRotateInactivityDelay-(Date.now()-O);0b.yaw&&(b.yaw+=360));a=b.yaw;var n=0;if(b.avoidShowingBackground){var c=b.hfov/2,d=180*Math.atan2(Math.tan(c/180*Math.PI),h.width/h.height)/Math.PI;b.vaov>b.haov? -Math.min(Math.cos((b.pitch-c)/180*Math.PI),Math.cos((b.pitch+c)/180*Math.PI)):n=c*(1-Math.min(Math.cos((b.pitch-d)/180*Math.PI),Math.cos((b.pitch+d)/180*Math.PI)))}var c=b.maxYaw-b.minYaw,d=-180,e=180;360>c&&(d=b.minYaw+b.hfov/2+n,e=b.maxYaw-b.hfov/2-n,cb.yaw&&(b.yaw+=360));!1!==b.autoRotate&&a!=b.yaw&&ba!==p&&(b.autoRotate*=-1);a=2*Math.atan(Math.tan(b.hfov/180*Math.PI*0.5)/(h.width/h.height))/ -Math.PI*180;h=b.minPitch+a/2;n=b.maxPitch-a/2;b.maxPitch-b.minPitchX?X+=1:10===X?($a=h[2]/Math.PI*180+b.yaw,X=!0,requestAnimationFrame(ca)):(b.pitch=h[0]/Math.PI*180,b.roll=-h[1]/Math.PI*180,b.yaw=-h[2]/Math.PI*180+$a)}function va(){try{var a={};b.horizonPitch!==p&&(a.horizonPitch=b.horizonPitch*Math.PI/180);b.horizonRoll!==p&&(a.horizonRoll=b.horizonRoll*Math.PI/180);b.backgroundColor!==p&&(a.backgroundColor=b.backgroundColor);C.init(M,b.type,b.dynamic,b.haov*Math.PI/180,b.vaov*Math.PI/180,b.vOffset*Math.PI/180,S,a);!0!==b.dynamic&&(M=p)}catch(h){if("webgl error"== -h.type||"no webgl"==h.type)K();else if("webgl size error"==h.type)K(b.strings.textureSizeError.replace("%s",h.width).replace("%s",h.maxWidth));else throw K(b.strings.unknownError),h;}}function S(){if(b.sceneFadeDuration&&C.fadeImg!==p){C.fadeImg.style.opacity=0;var a=C.fadeImg;delete C.fadeImg;setTimeout(function(){N.removeChild(a);B("scenechangefadedone")},b.sceneFadeDuration)}Ia.style.display=b.compass?"inline":"none";L();q.load.box.style.display="none";sa!==p&&(N.removeChild(sa),sa=p);G=!0;F(); -B("load")}function La(a){a.pitch=Number(a.pitch)||0;a.yaw=Number(a.yaw)||0;var h=g.createElement("div");h.className="pnlm-hotspot-base";h.className=a.cssClass?h.className+(" "+a.cssClass):h.className+(" pnlm-hotspot pnlm-sprite pnlm-"+D(a.type));var c=g.createElement("span");a.text&&(c.innerHTML=D(a.text));var d;if(a.video){d=g.createElement("video");var e=a.video;b.basePath&&!qa(e)&&(e=b.basePath+e);d.src=I(e);d.controls=!0;d.style.width=a.width+"px";N.appendChild(h);c.appendChild(d)}else if(a.image){e= -a.image;b.basePath&&!qa(e)&&(e=b.basePath+e);d=g.createElement("a");d.href=I(a.URL?a.URL:e,!0);d.target="_blank";c.appendChild(d);var f=g.createElement("img");f.src=I(e);f.style.width=a.width+"px";f.style.paddingTop="5px";N.appendChild(h);d.appendChild(f);c.style.maxWidth="initial"}else if(a.URL){d=g.createElement("a");d.href=I(a.URL,!0);if(a.attributes)for(e in a.attributes)d.setAttribute(e,a.attributes[e]);else d.target="_blank";N.appendChild(d);h.className+=" pnlm-pointer";c.className+=" pnlm-pointer"; -d.appendChild(h)}else a.sceneId&&(h.onclick=h.ontouchend=function(){h.clicked||(h.clicked=!0,y(a.sceneId,a.targetPitch,a.targetYaw,a.targetHfov));return!1},h.className+=" pnlm-pointer",c.className+=" pnlm-pointer"),N.appendChild(h);if(a.createTooltipFunc)a.createTooltipFunc(h,a.createTooltipArgs);else if(a.text||a.video||a.image)h.classList.add("pnlm-tooltip"),h.appendChild(c),c.style.width=c.scrollWidth-20+"px",c.style.marginLeft=-(c.scrollWidth-h.offsetWidth)/2+"px",c.style.marginTop=-c.scrollHeight- -12+"px";a.clickHandlerFunc&&(h.addEventListener("click",function(b){a.clickHandlerFunc(b,a.clickHandlerArgs)},"false"),h.className+=" pnlm-pointer",c.className+=" pnlm-pointer");a.div=h}function L(){Ua||(b.hotSpots?(b.hotSpots=b.hotSpots.sort(function(a,b){return a.pitch=a.yaw&&-90=g||(90=a.yaw)&&0>=g)a.div.style.visibility="hidden";else{var l=Math.sin((-a.yaw+b.yaw)*Math.PI/180),k=Math.tan(b.hfov*Math.PI/360);a.div.style.visibility="visible";var m=C.getCanvas(),p=m.clientWidth,m=m.clientHeight,h=[-p/k*l*c/ -g/2,-p/k*(h*e-c*f*d)/g/2],c=Math.sin(b.roll*Math.PI/180),d=Math.cos(b.roll*Math.PI/180),h=[h[0]*d-h[1]*c,h[0]*c+h[1]*d];h[0]+=(p-a.div.offsetWidth)/2;h[1]+=(m-a.div.offsetHeight)/2;p="translate("+h[0]+"px, "+h[1]+"px) translateZ(9999px) rotate("+b.roll+"deg)";a.scale&&(p+=" scale("+ra/b.hfov/g+")");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(" ");aa=[];for(c in Va)Va.hasOwnProperty(c)&& -(b[c]=Va[c]);for(c in k.default)if(k.default.hasOwnProperty(c))if("strings"==c)for(d in k.default.strings)k.default.strings.hasOwnProperty(d)&&(b.strings[d]=D(k.default.strings[d]));else b[c]=k.default[c],0<=e.indexOf(c)&&aa.push(c);if(null!==a&&""!==a&&k.scenes&&k.scenes[a]){var f=k.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]=D(f.strings[d]));else b[c]=f[c],0<=e.indexOf(c)&&aa.push(c);b.scene=a}for(c in k)if(k.hasOwnProperty(c))if("strings"== -c)for(d in k.strings)k.strings.hasOwnProperty(d)&&(b.strings[d]=D(k.strings[d]));else b[c]=k[c],0<=e.indexOf(c)&&aa.push(c)}function l(a){if((a=a?a:!1)&&"preview"in b){var c=b.preview;b.basePath&&!qa(c)&&(c=b.basePath+c);sa=g.createElement("div");sa.className="pnlm-preview-img";sa.style.backgroundImage="url('"+I(c).replace(/"/g,"%22").replace(/'/g,"%27")+"')";N.appendChild(sa)}var c=b.title,d=b.author;a&&("previewTitle"in b&&(b.title=b.previewTitle),"previewAuthor"in b&&(b.author=b.previewAuthor)); -b.hasOwnProperty("title")||(q.title.innerHTML="");b.hasOwnProperty("author")||(q.author.innerHTML="");b.hasOwnProperty("title")||b.hasOwnProperty("author")||(q.container.style.display="none");v.load.innerHTML="

"+b.strings.loadButtonLabel+"

";q.load.boxp.innerHTML=b.strings.loadingLabel;for(var e in b)if(b.hasOwnProperty(e))switch(e){case "title":q.title.innerHTML=D(b[e]);q.container.style.display="inline";break;case "author":var f=D(b[e]);b.authorURL&&(f=g.createElement("a"),f.href=I(b.authorURL, -!0),f.target="_blank",f.innerHTML=D(b[e]),f=f.outerHTML);q.author.innerHTML=b.strings.bylineLabel.replace("%s",f);q.container.style.display="inline";break;case "fallback":f=g.createElement("a");f.href=I(b[e],!0);f.target="_blank";f.textContent="Click here to view this panorama in an alternative viewer.";var k=g.createElement("p");k.textContent="Your browser does not support WebGL.";k.appendChild(g.createElement("br"));k.appendChild(f);q.errorMsg.innerHTML="";q.errorMsg.appendChild(k);break;case "hfov":x(Number(b[e])); -break;case "autoLoad":!0===b[e]&&C===p&&(q.load.box.style.display="inline",v.load.style.display="none",oa());break;case "showZoomCtrl":v.zoom.style.display=b[e]&&!1!=b.showControls?"block":"none";break;case "showFullscreenCtrl":v.fullscreen.style.display=b[e]&&!1!=b.showControls&&("fullscreen"in g||"mozFullScreen"in g||"webkitIsFullScreen"in g||"msFullscreenElement"in g)?"block":"none";break;case "hotSpotDebug":Wa.style.display=b[e]?"block":"none";break;case "showControls":b[e]||(v.orientation.style.display= -"none",v.zoom.style.display="none",v.fullscreen.style.display="none");break;case "orientationOnByDefault":b[e]&&Ra()}a&&(c?b.title=c:delete b.title,d?b.author=d:delete b.author)}function f(){if(G&&!Na)if(Aa)g.exitFullscreen?g.exitFullscreen():g.mozCancelFullScreen?g.mozCancelFullScreen():g.webkitCancelFullScreen?g.webkitCancelFullScreen():g.msExitFullscreen&&g.msExitFullscreen();else try{r.requestFullscreen?r.requestFullscreen():r.mozRequestFullScreen?r.mozRequestFullScreen():r.msRequestFullscreen? -r.msRequestFullscreen():r.webkitRequestFullScreen()}catch(a){}}function d(a){g.fullscreenElement||g.fullscreen||g.mozFullScreen||g.webkitIsFullScreen||g.msFullscreenElement?(v.fullscreen.classList.add("pnlm-fullscreen-toggle-button-active"),Aa=!0):(v.fullscreen.classList.remove("pnlm-fullscreen-toggle-button-active"),Aa=!1);"resize"!==a&&B("fullscreenchange",Aa);C.resize();x(b.hfov);F()}function u(a){var c=b.minHfov;"multires"==b.type&&C&&!b.multiResMinHfov&&(c=Math.min(c,C.getCanvas().width/(b.multiRes.cubeResolution/ -90*0.9)));if(c>b.maxHfov)return console.log("HFOV bounds do not make sense (minHfov > maxHfov)."),b.hfov;var d=b.hfov,d=ab.maxHfov?b.maxHfov:a;b.avoidShowingBackground&&C&&(a=C.getCanvas(),d=Math.min(d,360*Math.atan(Math.tan((b.maxPitch-b.minPitch)/360*Math.PI)/a.height*a.width)/Math.PI));return d}function x(a){b.hfov=u(a);B("zoomchange",b.hfov)}function t(){P={};Z=b.autoRotate?b.autoRotate:Z;b.autoRotate=!1}function Ya(){Na&&(q.load.box.style.display="none",q.errorMsg.style.display="none", -Na=!1,N.style.display="block",B("errorcleared"));G=!1;v.load.style.display="none";q.load.box.style.display="inline";oa()}function y(a,c,d,f,g){G||(g=!0);G=!1;P={};var m,q;if(b.sceneFadeDuration&&!g&&(m=C.render(b.pitch*Math.PI/180,b.yaw*Math.PI/180,b.hfov*Math.PI/180,{returnImage:!0}),m!==p)){g=new Image;g.className="pnlm-fade-img";g.style.transition="opacity "+b.sceneFadeDuration/1E3+"s";g.style.width="100%";g.style.height="100%";g.onload=function(){y(a,c,d,f,!0)};g.src=m;N.appendChild(g);C.fadeImg= -g;return}g="same"===c?b.pitch:c;m="same"===d?b.yaw:"sameAzimuth"===d?b.yaw+(b.northOffset||0)-(k.scenes[a].northOffset||0):d;q="same"===f?b.hfov:f;e();H(a);w.yaw=w.pitch=w.hfov=0;l();g!==p&&(b.pitch=g);m!==p&&(b.yaw=m);q!==p&&(b.hfov=q);B("scenechange",a);Ya()}function Da(){E.removeEventListener("deviceorientation",na);v.orientation.classList.remove("pnlm-orientation-button-active");X=!1}function Ra(){Xa&&(typeof DeviceMotionEvent!==p&&"function"===typeof DeviceMotionEvent.requestPermission?DeviceOrientationEvent.requestPermission().then(function(a){"granted"== -a&&(X=1,E.addEventListener("deviceorientation",na),v.orientation.classList.add("pnlm-orientation-button-active"))}):(X=1,E.addEventListener("deviceorientation",na),v.orientation.classList.add("pnlm-orientation-button-active")))}function D(a){return k.escapeHTML?String(a).split(/&/g).join("&").split('"').join(""").split("'").join("'").split("<").join("<").split(">").join(">").split("/").join("/").split("\n").join("
"):String(a).split("\n").join("
")}function I(a,b){try{var c= -decodeURIComponent(ab(a)).replace(/[^\w:]/g,"").toLowerCase()}catch(d){return"about:blank"}return 0===c.indexOf("javascript:")||0===c.indexOf("vbscript:")?(console.log("Script URL removed."),"about:blank"):b&&0===c.indexOf("data:")?(console.log("Data URI removed from link."),"about:blank"):a}function ab(a){return a.replace(/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,function(a,b){b=b.toLowerCase();return"colon"===b?":":"#"===b.charAt(0)?"x"===b.charAt(1)?String.fromCharCode(parseInt(b.substring(2), -16)):String.fromCharCode(+b.substring(1)):""})}function B(a){if(a in T)for(var b=T[a].length;0a?2*a*a:-1+(4-2*a)*a},draggable:!0,disableKeyboardCtrl:!1,crossOrigin:"anonymous",touchPanSpeedCoeffFactor:1,capturedKeyNumbers:[16, -17,27,37,38,39,40,61,65,68,83,87,107,109,173,187,189],friction:0.15,strings:{loadButtonLabel:"Click to
Load
Panorama",loadingLabel:"Loading...",bylineLabel:"by %s",noPanoramaError:"No panorama image was specified.",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.)",unknownError:"Unknown error. Check developer console."}};r="string"===typeof r?g.getElementById(r):r;r.classList.add("pnlm-container");r.tabIndex=0;var J=g.createElement("div");J.className="pnlm-ui";r.appendChild(J);var N=g.createElement("div");N.className="pnlm-render-container";r.appendChild(N); -var W=g.createElement("div");W.className="pnlm-dragfix";J.appendChild(W);var fa=g.createElement("span");fa.className="pnlm-about-msg";fa.innerHTML='Pannellum 0d32eea';J.appendChild(fa);W.addEventListener("contextmenu",ja);var q={},Wa=g.createElement("div");Wa.className="pnlm-sprite pnlm-hot-spot-debug-indicator";J.appendChild(Wa);q.container=g.createElement("div");q.container.className="pnlm-panorama-info";q.title=g.createElement("div");q.title.className= -"pnlm-title-box";q.container.appendChild(q.title);q.author=g.createElement("div");q.author.className="pnlm-author-box";q.container.appendChild(q.author);J.appendChild(q.container);q.load={};q.load.box=g.createElement("div");q.load.box.className="pnlm-load-box";q.load.boxp=g.createElement("p");q.load.box.appendChild(q.load.boxp);q.load.lbox=g.createElement("div");q.load.lbox.className="pnlm-lbox";q.load.lbox.innerHTML='
';q.load.box.appendChild(q.load.lbox);q.load.lbar= -g.createElement("div");q.load.lbar.className="pnlm-lbar";q.load.lbarFill=g.createElement("div");q.load.lbarFill.className="pnlm-lbar-fill";q.load.lbar.appendChild(q.load.lbarFill);q.load.box.appendChild(q.load.lbar);q.load.msg=g.createElement("p");q.load.msg.className="pnlm-lmsg";q.load.box.appendChild(q.load.msg);J.appendChild(q.load.box);q.errorMsg=g.createElement("div");q.errorMsg.className="pnlm-error-msg pnlm-info-box";J.appendChild(q.errorMsg);var v={};v.container=g.createElement("div");v.container.className= -"pnlm-controls-container";J.appendChild(v.container);v.load=g.createElement("div");v.load.className="pnlm-load-button";v.load.addEventListener("click",function(){l();Ya()});J.appendChild(v.load);v.zoom=g.createElement("div");v.zoom.className="pnlm-zoom-controls pnlm-controls";v.zoomIn=g.createElement("div");v.zoomIn.className="pnlm-zoom-in pnlm-sprite pnlm-control";v.zoomIn.addEventListener("click",function(){G&&(x(b.hfov-5),F())});v.zoom.appendChild(v.zoomIn);v.zoomOut=g.createElement("div");v.zoomOut.className= -"pnlm-zoom-out pnlm-sprite pnlm-control";v.zoomOut.addEventListener("click",function(){G&&(x(b.hfov+5),F())});v.zoom.appendChild(v.zoomOut);v.container.appendChild(v.zoom);v.fullscreen=g.createElement("div");v.fullscreen.addEventListener("click",f);v.fullscreen.className="pnlm-fullscreen-toggle-button pnlm-sprite pnlm-fullscreen-toggle-button-inactive pnlm-controls pnlm-control";(g.fullscreenEnabled||g.mozFullScreenEnabled||g.webkitFullscreenEnabled||g.msFullscreenEnabled)&&v.container.appendChild(v.fullscreen); -v.orientation=g.createElement("div");v.orientation.addEventListener("click",function(a){X?Da():Ra()});v.orientation.addEventListener("mousedown",function(a){a.stopPropagation()});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 Xa=!1;E.DeviceOrientationEvent&&"https:"== -location.protocol&&0<=navigator.userAgent.toLowerCase().indexOf("mobi")&&(v.container.appendChild(v.orientation),Xa=!0);var Ia=g.createElement("div");Ia.className="pnlm-compass pnlm-controls pnlm-control";J.appendChild(Ia);k.firstScene?H(k.firstScene):k.default&&k.default.firstScene?H(k.default.firstScene):H(null);l(!0);var ia=[],za=[];Y.prototype.multiply=function(a){return new Y(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)};Y.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*this.y),1-2*(this.y*this.y+this.z*this.z));return[a,b,c]};this.isLoaded=function(){return Boolean(G)};this.getPitch=function(){return b.pitch};this.setPitch=function(a,c,d,e){O=Date.now();if(1E-6>=Math.abs(a-b.pitch))return"function"==typeof d&& -d(e),this;(c=c==p?1E3:Number(c))?(P.pitch={startTime:Date.now(),startPosition:b.pitch,endPosition:a,duration:c},"function"==typeof d&&setTimeout(function(){d(e)},c)):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],90));return this};this.getYaw=function(){return(b.yaw+540)%360-180};this.setYaw=function(a,c,d,e){O=Date.now();if(1E-6>=Math.abs(a-b.yaw))return"function"== -typeof d&&d(e),this;c=c==p?1E3:Number(c);a=(a+180)%360-180;c?(180=Math.abs(a-b.hfov))return"function"==typeof d&&d(e),this;(c=c==p?1E3:Number(c))?(P.hfov={startTime:Date.now(),startPosition:b.hfov,endPosition:u(a),duration:c},"function"==typeof d&&setTimeout(function(){d(e)},c)):x(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,c,d,e,f,g){e=e==p?1E3:Number(e);a!==p&&1E-6Math.PI?-2*Math.PI:v<-Math.PI?2*Math.PI:0;v=Math.abs(v);c.diff=Math.acos(Math.sin(f)*Math.sin(g)+Math.cos(f)*Math.cos(g)*Math.cos(v));v=!1;for(h=0;hf&&(d[0]=-1);1k&&(d[1]=-1);1e||1u;u++)0==l[u].width&&(l[u]= +b)}}c===h&&(c="equirectangular");if("equirectangular"!=c&&"cubemap"!=c&&"multires"!=c)throw console.log("Error: invalid image type specified!"),{type:"config error"};s=c;l=H;ga=Ma;qa=v||{};if(e){T&&(a.detachShader(e,T),a.deleteShader(T));U&&(a.detachShader(e,U),a.deleteShader(U));a.bindBuffer(a.ARRAY_BUFFER,null);a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,null);e.texture&&a.deleteTexture(e.texture);if(e.nodeCache)for(H=0;Hu;u++)0g;g++)d[4*(e+b.width)+g]=d[4*(e+2*b.width)+g],d[4*(e+b.width*(b.height-2))+g]=d[4*(e+b.width*(b.height-3))+g];for(e=2;eg;g++)d[4*(e*b.width+1)+g]=d[4*(e*b.width+2)+g],d[4*((e+1)*b.width-2)+g]=d[4*((e+1)*b.width-3)+g];for(g=0;4>g;g++)d[4* +(b.width+1)+g]=d[4*(2*b.width+2)+g],d[4*(2*b.width-2)+g]=d[4*(3*b.width-3)+g],d[4*(b.width*(b.height-2)+1)+g]=d[4*(b.width*(b.height-3)+2)+g],d[4*(b.width*(b.height-1)-2)+g]=d[4*(b.width*(b.height-2)-3)+g];for(e=1;eg;g++)d[4*e+g]=d[4*(e+b.width)+g],d[4*(e+b.width*(b.height-1))+g]=d[4*(e+b.width*(b.height-2))+g];for(e=1;eg;g++)d[e*b.width*4+g]=d[4*(e*b.width+1)+g],d[4*((e+1)*b.width-1)+g]=d[4*((e+1)*b.width-2)+g];for(g=0;4>g;g++)d[g]=d[4*(b.width+ +1)+g],d[4*(b.width-1)+g]=d[4*(2*b.width-2)+g],d[b.width*(b.height-1)*4+g]=d[4*(b.width*(b.height-2)+1)+g],d[4*(b.width*b.height-1)+g]=d[4*(b.width*(b.height-1)-2)+g];a.putImageData(c,0,0);P.call(this)};var P=function(){0u;u++)d=new Image,d.crossOrigin=qa.crossOrigin?qa.crossOrigin:"anonymous",d.side=u,d.onload= +k,d.onerror=P,d.src="multires"==s?C.replace("%s",ya[u])+"."+l.extension:l[u].src;S($)}else{if(!a)throw console.log("Error: no WebGL support detected!"),{type:"no webgl"};"cubemap"==s&&S(z);l.fullpath=l.basePath?l.basePath+l.path:l.path;l.invTileResolution=1/l.tileResolution;H=oa();Fa=[];for(u=0;6>u;u++)Fa[u]=H.slice(12*u,12*u+12),H=oa();H=0;if("equirectangular"==s){if(H=a.getParameter(a.MAX_TEXTURE_SIZE),Math.max(l.width/2,l.height)>H)throw console.log("Error: The image is too big; it's "+l.width+ +"px wide, but this device's maximum supported size is "+2*H+"px."),{type:"webgl size error",width:l.width,maxWidth:2*H};}else if("cubemap"==s&&z>a.getParameter(a.MAX_CUBE_MAP_TEXTURE_SIZE))throw console.log("Error: The image is too big; it's "+z+"px wide, but this device's maximum supported size is "+H+"px."),{type:"webgl size error",width:z,maxWidth:H};v!==h&&(z=isNaN(v.horizonPitch)?0:Number(v.horizonPitch),c=isNaN(v.horizonRoll)?0:Number(v.horizonRoll),0!=z||0!=c)&&(aa=[z,c]);z=a.TEXTURE_2D;a.viewport(0, +0,a.drawingBufferWidth,a.drawingBufferHeight);a.getShaderPrecisionFormat&&(c=a.getShaderPrecisionFormat(a.FRAGMENT_SHADER,a.HIGH_FLOAT))&&1>c.precision&&(sa=sa.replace("highp","mediump"));T=a.createShader(a.VERTEX_SHADER);c=m;"multires"==s&&(c=q);a.shaderSource(T,c);a.compileShader(T);U=a.createShader(a.FRAGMENT_SHADER);c=ia;"cubemap"==s?(z=a.TEXTURE_CUBE_MAP,c=ta):"multires"==s&&(c=eb);a.shaderSource(U,c);a.compileShader(U);e=a.createProgram();a.attachShader(e,T);a.attachShader(e,U);a.linkProgram(e); +a.getShaderParameter(T,a.COMPILE_STATUS)||console.log(a.getShaderInfoLog(T));a.getShaderParameter(U,a.COMPILE_STATUS)||console.log(a.getShaderInfoLog(U));a.getProgramParameter(e,a.LINK_STATUS)||console.log(a.getProgramInfoLog(e));a.useProgram(e);e.drawInProgress=!1;c=v.backgroundColor?v.backgroundColor:[0,0,0];a.clearColor(c[0],c[1],c[2],1);a.clear(a.COLOR_BUFFER_BIT);e.texCoordLocation=a.getAttribLocation(e,"a_texCoord");a.enableVertexAttribArray(e.texCoordLocation);"multires"!=s?(Ga||(Ga=a.createBuffer()), +a.bindBuffer(a.ARRAY_BUFFER,Ga),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,"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,C/(2*Math.PI)),a.uniform1f(e.v,k/Math.PI),a.uniform1f(e.vo,d/Math.PI*2),"equirectangular"==s&&(e.backgroundColor=a.getUniformLocation(e,"u_backgroundColor"),a.uniform4fv(e.backgroundColor,c.concat([1]))),e.texture=a.createTexture(),a.bindTexture(z,e.texture),"cubemap"==s?(a.texImage2D(a.TEXTURE_CUBE_MAP_POSITIVE_X,0,a.RGB,a.RGB,a.UNSIGNED_BYTE,l[1]),a.texImage2D(a.TEXTURE_CUBE_MAP_NEGATIVE_X,0,a.RGB,a.RGB,a.UNSIGNED_BYTE,l[3]),a.texImage2D(a.TEXTURE_CUBE_MAP_POSITIVE_Y, +0,a.RGB,a.RGB,a.UNSIGNED_BYTE,l[4]),a.texImage2D(a.TEXTURE_CUBE_MAP_NEGATIVE_Y,0,a.RGB,a.RGB,a.UNSIGNED_BYTE,l[5]),a.texImage2D(a.TEXTURE_CUBE_MAP_POSITIVE_Z,0,a.RGB,a.RGB,a.UNSIGNED_BYTE,l[0]),a.texImage2D(a.TEXTURE_CUBE_MAP_NEGATIVE_Z,0,a.RGB,a.RGB,a.UNSIGNED_BYTE,l[2])):l.width<=H?(a.uniform1i(a.getUniformLocation(e,"u_splitImage"),0),a.texImage2D(z,0,a.RGB,a.RGB,a.UNSIGNED_BYTE,l)):(a.uniform1i(a.getUniformLocation(e,"u_splitImage"),1),C=f.createElement("canvas"),C.width=l.width/2,C.height=l.height, +C=C.getContext("2d"),C.drawImage(l,0,0),k=C.getImageData(0,0,l.width/2,l.height),a.texImage2D(z,0,a.RGB,a.RGB,a.UNSIGNED_BYTE,k),e.texture2=a.createTexture(),a.activeTexture(a.TEXTURE1),a.bindTexture(z,e.texture2),a.uniform1i(a.getUniformLocation(e,"u_image1"),1),C.drawImage(l,-l.width/2,0),k=C.getImageData(0,0,l.width/2,l.height),a.texImage2D(z,0,a.RGB,a.RGB,a.UNSIGNED_BYTE,k),a.texParameteri(z,a.TEXTURE_WRAP_S,a.CLAMP_TO_EDGE),a.texParameteri(z,a.TEXTURE_WRAP_T,a.CLAMP_TO_EDGE),a.texParameteri(z, +a.TEXTURE_MIN_FILTER,a.LINEAR),a.texParameteri(z,a.TEXTURE_MAG_FILTER,a.LINEAR),a.activeTexture(a.TEXTURE0)),a.texParameteri(z,a.TEXTURE_WRAP_S,a.CLAMP_TO_EDGE),a.texParameteri(z,a.TEXTURE_WRAP_T,a.CLAMP_TO_EDGE),a.texParameteri(z,a.TEXTURE_MIN_FILTER,a.LINEAR),a.texParameteri(z,a.TEXTURE_MAG_FILTER,a.LINEAR)):(e.vertPosLocation=a.getAttribLocation(e,"a_vertCoord"),a.enableVertexAttribArray(e.vertPosLocation),ba||(ba=a.createBuffer()),ra||(ra=a.createBuffer()),Ha||(Ha=a.createBuffer()),a.bindBuffer(a.ARRAY_BUFFER, +ra),a.bufferData(a.ARRAY_BUFFER,new Float32Array([0,0,1,0,1,1,0,1]),a.STATIC_DRAW),a.vertexAttribPointer(e.texCoordLocation,2,a.FLOAT,!1,0,0),a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,Ha),a.bufferData(a.ELEMENT_ARRAY_BUFFER,new Uint16Array([0,1,2,0,2,3]),a.STATIC_DRAW),a.bindBuffer(a.ARRAY_BUFFER,ba),a.vertexAttribPointer(e.vertPosLocation,3,a.FLOAT,!1,0,0),e.perspUniform=a.getUniformLocation(e,"u_perspMatrix"),e.cubeUniform=a.getUniformLocation(e,"u_cubeMatrix"),e.level=-1,e.currentNodes=[],e.nodeCache= +[],e.nodeCacheTimestamp=0,e.textureLoads=[]);C=a.getError();if(0!==C)throw console.log("Error: Something went wrong with WebGL!",C),{type:"webgl error"};g()}};this.destroy=function(){G!==h&&(E!==h&&G.contains(E)&&G.removeChild(E),Q!==h&&G.contains(Q)&&G.removeChild(Q));if(a){var e=a.getExtension("WEBGL_lose_context");e&&e.loseContext()}};this.resize=function(){var f=D.devicePixelRatio||1;E.width=E.clientWidth*f;E.height=E.clientHeight*f;a&&(1286==a.getError()&&Pa(),a.viewport(0,0,a.drawingBufferWidth, +a.drawingBufferHeight),"multires"!=s&&a.uniform1f(e.aspectRatio,E.clientWidth/E.clientHeight))};this.resize();this.setPose=function(a,c){a=isNaN(a)?0:Number(a);c=isNaN(c)?0:Number(c);aa=0==a&&0==c?h:[a,c]};this.render=function(f,c,m,q){var k,d=0;q===h&&(q={});q.roll&&(d=q.roll);if(aa!==h){k=aa[0];var g=aa[1],v=f,S=c,u=Math.cos(g)*Math.sin(f)*Math.sin(k)+Math.cos(f)*(Math.cos(k)*Math.cos(c)+Math.sin(g)*Math.sin(k)*Math.sin(c)),G=-Math.sin(f)*Math.sin(g)+Math.cos(f)*Math.cos(g)*Math.sin(c);f=Math.cos(g)* +Math.cos(k)*Math.sin(f)+Math.cos(f)*(-Math.cos(c)*Math.sin(k)+Math.cos(k)*Math.sin(g)*Math.sin(c));f=Math.asin(Math.max(Math.min(f,1),-1));c=Math.atan2(G,u);k=[Math.cos(v)*(Math.sin(g)*Math.sin(k)*Math.cos(S)-Math.cos(k)*Math.sin(S)),Math.cos(v)*Math.cos(g)*Math.cos(S),Math.cos(v)*(Math.cos(k)*Math.sin(g)*Math.cos(S)+Math.sin(S)*Math.sin(k))];g=[-Math.cos(f)*Math.sin(c),Math.cos(f)*Math.cos(c)];g=Math.acos(Math.max(Math.min((k[0]*g[0]+k[1]*g[1])/(Math.sqrt(k[0]*k[0]+k[1]*k[1]+k[2]*k[2])*Math.sqrt(g[0]* +g[0]+g[1]*g[1])),1),-1));0>k[2]&&(g=2*Math.PI-g);d+=g}if(a||"multires"!=s&&"cubemap"!=s){if("multires"!=s)m=2*Math.atan(Math.tan(0.5*m)/(a.drawingBufferWidth/a.drawingBufferHeight)),m=1/Math.tan(0.5*m),a.uniform1f(e.psi,c),a.uniform1f(e.theta,f),a.uniform1f(e.rot,d),a.uniform1f(e.f,m),!0===ga&&"equirectangular"==s&&(a.bindTexture(a.TEXTURE_2D,e.texture),a.texImage2D(a.TEXTURE_2D,0,a.RGB,a.RGB,a.UNSIGNED_BYTE,l)),a.drawArrays(a.TRIANGLES,0,6);else{k=a.drawingBufferWidth/a.drawingBufferHeight;g=2*Math.atan(Math.tan(m/ +2)*a.drawingBufferHeight/a.drawingBufferWidth);g=1/Math.tan(g/2);k=new Float32Array([g/k,0,0,0,0,g,0,0,0,0,100.1/-99.9,20/-99.9,0,0,-1,0]);for(g=1;gl.tileResolution*Math.pow(2,g-1)*Math.tan(m/2)*0.707;)g++;e.level=g;g=new Float32Array([1,0,0,0,1,0,0,0,1]);g=xa(g,-d,"z");g=xa(g,-f,"x");g=xa(g,c,"y");g=new Float32Array([g[0],g[1],g[2],0,g[3],g[4],g[5],0,g[6],g[7],g[8],0,0,0,0,1]);a.uniformMatrix4fv(e.perspUniform,!1,pa(k));a.uniformMatrix4fv(e.cubeUniform,!1,pa(g)); +d=new Float32Array([k[0]*g[0],k[0]*g[1],k[0]*g[2],0,k[5]*g[4],k[5]*g[5],k[5]*g[6],0,k[10]*g[8],k[10]*g[9],k[10]*g[10],k[11],-g[8],-g[9],-g[10],0]);e.nodeCache.sort(la);if(200e.currentNodes.length+50)for(k=e.nodeCache.splice(200,e.nodeCache.length-200),g=0;gk;k++)g=new ma(Fa[k],ya[k],1,0,0,l.fullpath,null),Na(d,g,f,c,m);e.currentNodes.sort(Z);for(f=V.length-1;0<=f;f--)-1===e.currentNodes.indexOf(V[f].node)&& +(V[f].node.textureLoad=!1,V.splice(f,1));if(0===V.length)for(f=0;ff;f++)if(d= +Q.querySelector(".pnlm-"+m[f]+"face"))d.style.webkitTransform=c+q[m[f]],d.style.transform=c+q[m[f]]};this.isLoading=function(){if(a&&"multires"==s)for(var f=0;f u_h || coord.y < -u_v + u_vo || coord.y > u_v + u_vo)\ngl_FragColor = u_backgroundColor;\nelse {\nif(u_splitImage) {\nif(coord.x < 0.0)\ngl_FragColor = texture2D(u_image0, vec2((coord.x + u_h) / u_h, (-coord.y + u_v + u_vo) / (u_v * 2.0)));\nelse\ngl_FragColor = texture2D(u_image1, vec2((coord.x + u_h) / u_h - 1.0, (-coord.y + u_v + u_vo) / (u_v * 2.0)));\n} else {\ngl_FragColor = texture2D(u_image0, vec2((coord.x + u_h) / (u_h * 2.0), (-coord.y + u_v + u_vo) / (u_v * 2.0)));\n}\n}\n}", +eb="varying mediump vec2 v_texCoord;uniform sampler2D u_sampler;void main(void) {gl_FragColor = texture2D(u_sampler, v_texCoord);}";return{renderer:function(f,h,m,q){return new ka(f,h,m,q)}}}(window,document); +window.pannellum=function(D,f,h){function ka(m,q){function sa(){var n=f.createElement("div");n.innerHTML="\x3c!--[if lte IE 9]>n;n++)I.push(new Image),I[n].crossOrigin=b.crossOrigin;r.load.lbox.style.display="block";r.load.lbar.style.display="none"}else if("multires"==b.type)n=JSON.parse(JSON.stringify(b.multiRes)),b.basePath&&b.multiRes.basePath&&!/^(?:[a-z]+:)?\/\//i.test(b.multiRes.basePath)? +n.basePath=b.basePath+b.multiRes.basePath:b.multiRes.basePath?n.basePath=b.multiRes.basePath:b.basePath&&(n.basePath=b.basePath),I=n;else if(!0===b.dynamic)I=b.panorama;else{if(b.panorama===h){G(b.strings.noPanoramaError);return}I=new Image}if("cubemap"==b.type)for(var y=6,c=function(){y--;0===y&&ia()},d=function(n){var a=f.createElement("a");a.href=n.target.src;a.textContent=a.href;G(b.strings.fileAccessError.replace("%s",a.outerHTML))},n=0;ne||65536")+12),g=function(b){var n; +0<=d.indexOf(b+'="')?(n=d.substring(d.indexOf(b+'="')+b.length+2),n=n.substring(0,n.indexOf('"'))):0<=d.indexOf(b+">")&&(n=d.substring(d.indexOf(b+">")+b.length+1),n=n.substring(0,n.indexOf("<")));return n!==h?Number(n):null},c=g("GPano:FullPanoWidthPixels"),e=g("GPano:CroppedAreaImageWidthPixels"),k=g("GPano:FullPanoHeightPixels"),l=g("GPano:CroppedAreaImageHeightPixels"),m=g("GPano:CroppedAreaTopPixels"),q=g("GPano:PoseHeadingDegrees"),r=g("GPano:PosePitchDegrees"),g=g("GPano:PoseRollDegrees"); +null!==c&&null!==e&&null!==k&&null!==l&&null!==m&&(0>ca.indexOf("haov")&&(b.haov=e/c*360),0>ca.indexOf("vaov")&&(b.vaov=l/k*180),0>ca.indexOf("vOffset")&&(b.vOffset=-180*((m+l/2)/k-0.5)),null!==q&&0>ca.indexOf("northOffset")&&(b.northOffset=q,!1!==b.compass&&(b.compass=!0)),null!==r&&null!==g&&(0>ca.indexOf("horizonPitch")&&(b.horizonPitch=r),0>ca.indexOf("horizonRoll")&&(b.horizonRoll=g)))}I.src=D.URL.createObjectURL(n);I.onerror=function(){(function(){return D.fetch?D.fetch(f.location.href).then(function(b){return b.headers.get("Content-Security-Policy")}): +null})().then(function(n){n&&n.split(";").find(function(b){if(b=b.match(/img-src(.*)/))return!b[1].includes("blob")})&&(console.log("CSP blocks blobs; reverting to URL."),I.crossOrigin=b.crossOrigin,I.src=a)})}});y.readAsBinaryString!==h?y.readAsBinaryString(n):y.readAsText(n)}function G(n){n===h&&(n=b.strings.genericWebGLError);r.errorMsg.innerHTML="

"+n+"

";w.load.style.display="none";r.load.box.style.display="none";r.errorMsg.style.display="table";Sa=!0;F=h;L.style.display="none";O("error", +n)}function la(b){var a=Z(b);ea.style.left=a.x+"px";ea.style.top=a.y+"px";clearTimeout(la.t1);clearTimeout(la.t2);ea.style.display="block";ea.style.opacity=1;la.t1=setTimeout(function(){ea.style.opacity=0},2E3);la.t2=setTimeout(function(){ea.style.display="none"},2500);b.preventDefault()}function Z(b){var a=m.getBoundingClientRect(),y={};y.x=(b.clientX||b.pageX)-a.left;y.y=(b.clientY||b.pageY)-a.top;return y}function ma(n){n.preventDefault();m.focus();if(F&&b.draggable&&!b.draggingHotSpot){var a= +Z(n);if(b.hotSpotDebug){var y=oa(n);console.log("Pitch: "+y[0]+", Yaw: "+y[1]+", Center Pitch: "+b.pitch+", Center Yaw: "+b.yaw+", HFOV: "+b.hfov)}k();v();b.roll=0;x.hfov=0;ha=!0;M=Date.now();Aa=a.x;Ba=a.y;Ta=b.yaw;Ua=b.pitch;J.classList.add("pnlm-grabbing");J.classList.remove("pnlm-grab");O("mousedown",n);s()}}function Na(n){b.minHfov===b.hfov?P.setHfov(wa,1E3):(n=oa(n),P.lookAt(n[0],n[1],b.minHfov,1E3))}function oa(n){var a=Z(n);n=A.getCanvas();var y=n.clientWidth,c=n.clientHeight;n=a.x/y*2-1;var c= +(1-a.y/c*2)*c/y,e=1/Math.tan(b.hfov*Math.PI/360),d=Math.sin(b.pitch*Math.PI/180),f=Math.cos(b.pitch*Math.PI/180),a=e*f-c*d,y=Math.sqrt(n*n+a*a),c=180*Math.atan((c*f+e*d)/y)/Math.PI;n=180*Math.atan2(n/y,a/y)/Math.PI+b.yaw;-180>n&&(n+=360);180a.wheelDelta?1:-1):a.wheelDelta?(C(b.hfov-0.05*a.wheelDelta),x.hfov= +0>a.wheelDelta?1:-1):a.detail&&(C(b.hfov+1.5*a.detail),x.hfov=0b.capturedKeyNumbers.indexOf(p)||(a.preventDefault(),27==p?Da&&H():Q(p,!0))}function U(){for(var b=0;10>b;b++)t[b]=!1}function $(a){var p=a.which||a.keycode;0>b.capturedKeyNumbers.indexOf(p)||(a.preventDefault(),Q(p,!1))}function Q(b,a){var c=!1;switch(b){case 109:case 189:case 17:case 173:t[0]!=a&&(c=!0);t[0]=a;break;case 107:case 187:case 16:case 61:t[1]!= +a&&(c=!0);t[1]=a;break;case 38:t[2]!=a&&(c=!0);t[2]=a;break;case 87:t[6]!=a&&(c=!0);t[6]=a;break;case 40:t[3]!=a&&(c=!0);t[3]=a;break;case 83:t[7]!=a&&(c=!0);t[7]=a;break;case 37:t[4]!=a&&(c=!0);t[4]=a;break;case 65:t[8]!=a&&(c=!0);t[8]=a;break;case 39:t[5]!=a&&(c=!0);t[5]=a;break;case 68:t[9]!=a&&(c=!0),t[9]=a}c&&a&&(da="undefined"!==typeof performance&&performance.now()?performance.now():Date.now(),s())}function Fa(){if(F){var a=!1,p=b.pitch,c=b.yaw,e=b.hfov,d;d="undefined"!==typeof performance&& +performance.now()?performance.now():Date.now();da===h&&(da=d);var f=(d-da)*b.hfov/1700,f=Math.min(f,1);t[0]&&!0===b.keyboardZoom&&(C(b.hfov+(0.8*x.hfov+0.5)*f),a=!0);t[1]&&!0===b.keyboardZoom&&(C(b.hfov+(0.8*x.hfov-0.2)*f),a=!0);if(t[2]||t[6])b.pitch+=(0.8*x.pitch+0.2)*f,a=!0;if(t[3]||t[7])b.pitch+=(0.8*x.pitch-0.2)*f,a=!0;if(t[4]||t[8])b.yaw+=(0.8*x.yaw-0.2)*f,a=!0;if(t[5]||t[9])b.yaw+=(0.8*x.yaw+0.2)*f,a=!0;a&&(M=Date.now());if(b.autoRotate){if(0.001=b.autoRotateStopDelay&&(b.autoRotateStopDelay=!1,Y=b.autoRotate,b.autoRotate=0))}N.pitch&&(aa("pitch"),p=b.pitch);N.yaw&&(aa("yaw"),c=b.yaw);N.hfov&&(aa("hfov"),e=b.hfov);0p.startPosition&&c>=p.endPosition||p.endPositionb.autoRotateInactivityDelay&&!b.autoRotate&&(b.autoRotate=Y,P.lookAt(Ja,h,wa,3E3)),requestAnimationFrame(ga);else if(A&&(A.isLoading()||!0===b.dynamic&&Qa))requestAnimationFrame(ga);else{P.getPitch&&P.getYaw&&P.getHfov&&O("animatefinished",{pitch:P.getPitch(),yaw:P.getYaw(),hfov:P.getHfov()});Xa=!1;da=h;var a=b.autoRotateInactivityDelay-(Date.now()-M);0b.yaw&&(b.yaw+=360));a=b.yaw;var c=0;if(b.avoidShowingBackground){var d=b.hfov/2,e=180*Math.atan2(Math.tan(d/180*Math.PI),p.width/p.height)/Math.PI;b.vaov>b.haov?Math.min(Math.cos((b.pitch-d)/180*Math.PI),Math.cos((b.pitch+d)/180*Math.PI)):c=d*(1-Math.min(Math.cos((b.pitch-e)/180*Math.PI),Math.cos((b.pitch+e)/180*Math.PI)))}var d= +b.maxYaw-b.minYaw,e=-180,f=180;360>d&&(e=b.minYaw+b.hfov/2+c,f=b.maxYaw-b.hfov/2-c,db.yaw&&(b.yaw+=360));!1!==b.autoRotate&&a!=b.yaw&&da!==h&&(b.autoRotate*=-1);a=2*Math.atan(Math.tan(b.hfov/180*Math.PI*0.5)/(p.width/p.height))/Math.PI*180;p=b.minPitch+a/2;c=b.maxPitch-a/2;b.maxPitch-b.minPitchX?X+=1:10===X?(cb=c[2]/Math.PI*180+b.yaw,X=!0,requestAnimationFrame(ga)):(b.pitch=c[0]/Math.PI*180,b.roll=-c[1]/Math.PI*180,b.yaw=-c[2]/Math.PI*180+cb)}function Ha(){try{var a={}; +b.horizonPitch!==h&&(a.horizonPitch=b.horizonPitch*Math.PI/180);b.horizonRoll!==h&&(a.horizonRoll=b.horizonRoll*Math.PI/180);b.backgroundColor!==h&&(a.backgroundColor=b.backgroundColor);A.init(I,b.type,b.dynamic,b.haov*Math.PI/180,b.vaov*Math.PI/180,b.vOffset*Math.PI/180,qa,a);!0!==b.dynamic&&(I=h)}catch(c){if("webgl error"==c.type||"no webgl"==c.type)G();else if("webgl size error"==c.type)G(b.strings.textureSizeError.replace("%s",c.width).replace("%s",c.maxWidth));else throw G(b.strings.unknownError), +c;}}function qa(){if(b.sceneFadeDuration&&A.fadeImg!==h){A.fadeImg.style.opacity=0;var a=A.fadeImg;delete A.fadeImg;setTimeout(function(){L.removeChild(a);O("scenechangefadedone")},b.sceneFadeDuration)}La.style.display=b.compass?"inline":"none";db();r.load.box.style.display="none";K!==h&&(L.removeChild(K),K=h);F=!0;s();O("load")}function ya(a){a.pitch=Number(a.pitch)||0;a.yaw=Number(a.yaw)||0;var c=f.createElement("div");c.className="pnlm-hotspot-base";c.className=a.cssClass?c.className+(" "+a.cssClass): +c.className+(" pnlm-hotspot pnlm-sprite pnlm-"+u(a.type));var d=f.createElement("span");a.text&&(d.innerHTML=u(a.text));var e;if(a.video){e=f.createElement("video");var h=a.video;b.basePath&&!ta(h)&&(h=b.basePath+h);e.src=fa(h);e.controls=!0;e.style.width=a.width+"px";L.appendChild(c);d.appendChild(e)}else if(a.image){h=a.image;b.basePath&&!ta(h)&&(h=b.basePath+h);e=f.createElement("a");e.href=fa(a.URL?a.URL:h,!0);e.target="_blank";d.appendChild(e);var k=f.createElement("img");k.src=fa(h);k.style.width= +a.width+"px";k.style.paddingTop="5px";L.appendChild(c);e.appendChild(k);d.style.maxWidth="initial"}else if(a.URL){e=f.createElement("a");e.href=fa(a.URL,!0);if(a.attributes)for(h in a.attributes)e.setAttribute(h,a.attributes[h]);else e.target="_blank";L.appendChild(e);c.className+=" pnlm-pointer";d.className+=" pnlm-pointer";e.appendChild(c)}else a.sceneId&&(c.onclick=c.ontouchend=function(){c.clicked||(c.clicked=!0,g(a.sceneId,a.targetPitch,a.targetYaw,a.targetHfov));return!1},c.className+=" pnlm-pointer", +d.className+=" pnlm-pointer"),L.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(d),d.style.width=d.scrollWidth-20+"px",d.style.marginLeft=-(d.scrollWidth-c.offsetWidth)/2+"px",d.style.marginTop=-d.scrollHeight-12+"px";a.clickHandlerFunc&&(c.addEventListener("click",function(b){a.clickHandlerFunc(b,a.clickHandlerArgs)},"false"),""===f.documentElement.style.pointerAction&&""===f.documentElement.style.touchAction? +c.addEventListener("pointerup",function(b){a.clickHandlerFunc(b,a.clickHandlerArgs)},!1):c.addEventListener("touchend",function(b){a.clickHandlerFunc(b,a.clickHandlerArgs)},!1),c.className+=" pnlm-pointer",d.className+=" pnlm-pointer");a.draggable&&(c.addEventListener("mousedown",function(b){a.dragHandlerFunc&&a.dragHandlerFunc(b,a.dragHandlerArgs);B=a}),""===f.documentElement.style.pointerAction&&""===f.documentElement.style.touchAction&&c.addEventListener("pointerdown",function(b){a.dragHandlerFunc&& +a.dragHandlerFunc(b,a.dragHandlerArgs);B=a}),c.addEventListener("touchmove",function(b){V(a,b.targetTouches[0])}),c.addEventListener("touchend",function(b){a.dragHandlerFunc&&a.dragHandlerFunc(b,a.dragHandlerArgs);B=null}));a.div=c}function V(a,b){var c=oa(b);a.pitch=c[0];a.yaw=c[1];za(a)}function db(){Ya||(b.hotSpots?(b.hotSpots=b.hotSpots.sort(function(a,b){return a.pitch=a.yaw&&-90=h||(90=a.yaw)&&0>=h)a.div.style.visibility="hidden";else{var k=Math.sin((-a.yaw+b.yaw)*Math.PI/180),l=Math.tan(b.hfov*Math.PI/ +360);a.div.style.visibility="visible";var m=A.getCanvas(),q=m.clientWidth,m=m.clientHeight,c=[-q/l*k*d/h/2,-q/l*(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]+=(q-a.div.offsetWidth)/2;c[1]+=(m-a.div.offsetHeight)/2;q="translate("+c[0]+"px, "+c[1]+"px) translateZ(9999px) rotate("+b.roll+"deg)";a.scale&&(q+=" scale("+wa/b.hfov/h+")");a.div.style.webkitTransform=q;a.div.style.MozTransform=q;a.div.style.transform=q}}function ua(a){b= +{};var c,d,e="haov vaov vOffset northOffset horizonPitch horizonRoll".split(" ");ca=[];for(c in Za)Za.hasOwnProperty(c)&&(b[c]=Za[c]);for(c in q.default)if(q.default.hasOwnProperty(c))if("strings"==c)for(d in q.default.strings)q.default.strings.hasOwnProperty(d)&&(b.strings[d]=u(q.default.strings[d]));else b[c]=q.default[c],0<=e.indexOf(c)&&ca.push(c);if(null!==a&&""!==a&&q.scenes&&q.scenes[a]){var f=q.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]=u(f.strings[d]));else b[c]=f[c],0<=e.indexOf(c)&&ca.push(c);b.scene=a}for(c in q)if(q.hasOwnProperty(c))if("strings"==c)for(d in q.strings)q.strings.hasOwnProperty(d)&&(b.strings[d]=u(q.strings[d]));else b[c]=q[c],0<=e.indexOf(c)&&ca.push(c)}function va(a){if((a=a?a:!1)&&"preview"in b){var c=b.preview;b.basePath&&!ta(c)&&(c=b.basePath+c);K=f.createElement("div");K.className="pnlm-preview-img";K.style.backgroundImage="url('"+fa(c).replace(/"/g,"%22").replace(/'/g,"%27")+"')";L.appendChild(K)}var c= +b.title,d=b.author;a&&("previewTitle"in b&&(b.title=b.previewTitle),"previewAuthor"in b&&(b.author=b.previewAuthor));b.hasOwnProperty("title")||(r.title.innerHTML="");b.hasOwnProperty("author")||(r.author.innerHTML="");b.hasOwnProperty("title")||b.hasOwnProperty("author")||(r.container.style.display="none");w.load.innerHTML="

"+b.strings.loadButtonLabel+"

";r.load.boxp.innerHTML=b.strings.loadingLabel;for(var e in b)if(b.hasOwnProperty(e))switch(e){case "title":r.title.innerHTML=u(b[e]); +r.container.style.display="inline";break;case "author":var g=u(b[e]);b.authorURL&&(g=f.createElement("a"),g.href=fa(b.authorURL,!0),g.target="_blank",g.innerHTML=u(b[e]),g=g.outerHTML);r.author.innerHTML=b.strings.bylineLabel.replace("%s",g);r.container.style.display="inline";break;case "fallback":g=f.createElement("a");g.href=fa(b[e],!0);g.target="_blank";g.textContent="Click here to view this panorama in an alternative viewer.";var k=f.createElement("p");k.textContent="Your browser does not support WebGL."; +k.appendChild(f.createElement("br"));k.appendChild(g);r.errorMsg.innerHTML="";r.errorMsg.appendChild(k);break;case "hfov":C(Number(b[e]));break;case "autoLoad":!0===b[e]&&A===h&&(r.load.box.style.display="inline",w.load.style.display="none",sa());break;case "showZoomCtrl":w.zoom.style.display=b[e]&&!1!=b.showControls?"block":"none";break;case "showFullscreenCtrl":w.fullscreen.style.display=b[e]&&!1!=b.showControls&&("fullscreen"in f||"mozFullScreen"in f||"webkitIsFullScreen"in f||"msFullscreenElement"in +f)?"block":"none";break;case "hotSpotDebug":$a.style.display=b[e]?"block":"none";break;case "showControls":b[e]||(w.orientation.style.display="none",w.zoom.style.display="none",w.fullscreen.style.display="none");break;case "orientationOnByDefault":b[e]&&S()}a&&(c?b.title=c:delete b.title,d?b.author=d:delete b.author)}function H(){if(F&&!Sa)if(Da)f.exitFullscreen?f.exitFullscreen():f.mozCancelFullScreen?f.mozCancelFullScreen():f.webkitCancelFullScreen?f.webkitCancelFullScreen():f.msExitFullscreen&& +f.msExitFullscreen();else try{m.requestFullscreen?m.requestFullscreen():m.mozRequestFullScreen?m.mozRequestFullScreen():m.msRequestFullscreen?m.msRequestFullscreen():m.webkitRequestFullScreen()}catch(a){}}function c(a){f.fullscreenElement||f.fullscreen||f.mozFullScreen||f.webkitIsFullScreen||f.msFullscreenElement?(w.fullscreen.classList.add("pnlm-fullscreen-toggle-button-active"),Da=!0):(w.fullscreen.classList.remove("pnlm-fullscreen-toggle-button-active"),Da=!1);"resize"!==a&&O("fullscreenchange", +Da);A.resize();C(b.hfov);s()}function Ma(a){var c=b.minHfov;"multires"==b.type&&A&&!b.multiResMinHfov&&(c=Math.min(c,A.getCanvas().width/(b.multiRes.cubeResolution/90*0.9)));if(c>b.maxHfov)return console.log("HFOV bounds do not make sense (minHfov > maxHfov)."),b.hfov;var d=b.hfov,d=ab.maxHfov?b.maxHfov:a;b.avoidShowingBackground&&A&&!isNaN(b.maxPitch-b.minPitch)&&(a=A.getCanvas(),d=Math.min(d,360*Math.atan(Math.tan((b.maxPitch-b.minPitch)/360*Math.PI)/a.height*a.width)/Math.PI));return d} +function C(a){b.hfov=Ma(a);O("zoomchange",b.hfov)}function k(){N={};Y=b.autoRotate?b.autoRotate:Y;b.autoRotate=!1}function d(){Sa&&(r.load.box.style.display="none",r.errorMsg.style.display="none",Sa=!1,L.style.display="block",O("errorcleared"));F=!1;w.load.style.display="none";r.load.box.style.display="inline";sa()}function g(a,c,e,k,l){F||(l=!0);F=!1;N={};var m,r,s;if(b.sceneFadeDuration&&!l&&(l=A.render(b.pitch*Math.PI/180,b.yaw*Math.PI/180,b.hfov*Math.PI/180,{returnImage:"ImageBitmap"}),l!==h)){m= +l.then?f.createElement("canvas"):new Image;m.className="pnlm-fade-img";m.style.transition="opacity "+b.sceneFadeDuration/1E3+"s";m.style.width="100%";m.style.height="100%";l.then?l.then(function(b){m.width=b.width;m.height=b.height;m.getContext("2d").drawImage(b,0,0);g(a,c,e,k,!0)}):(m.onload=function(){g(a,c,e,k,!0)},m.src=l);L.appendChild(m);A.fadeImg=m;return}l="same"===c?b.pitch:c;r="same"===e?b.yaw:"sameAzimuth"===e?b.yaw+(b.northOffset||0)-(q.scenes[a].northOffset||0):e;s="same"===k?b.hfov: +k;Ia();ua(a);x.yaw=x.pitch=x.hfov=0;va();l!==h&&(b.pitch=l);r!==h&&(b.yaw=r);s!==h&&(b.hfov=s);O("scenechange",a);d()}function v(){D.removeEventListener("deviceorientation",ra);w.orientation.classList.remove("pnlm-orientation-button-active");X=!1}function S(){ab&&("undefined"!==typeof DeviceMotionEvent&&"function"===typeof DeviceMotionEvent.requestPermission?DeviceOrientationEvent.requestPermission().then(function(a){"granted"==a&&(X=1,D.addEventListener("deviceorientation",ra),w.orientation.classList.add("pnlm-orientation-button-active"))}): +(X=1,D.addEventListener("deviceorientation",ra),w.orientation.classList.add("pnlm-orientation-button-active")))}function u(a){return q.escapeHTML?String(a).split(/&/g).join("&").split('"').join(""").split("'").join("'").split("<").join("<").split(">").join(">").split("/").join("/").split("\n").join("
"):String(a).split("\n").join("
")}function fa(a,b){try{var c=decodeURIComponent(z(a)).replace(/[^\w:]/g,"").toLowerCase()}catch(d){return"about:blank"}return 0===c.indexOf("javascript:")|| +0===c.indexOf("vbscript:")?(console.log("Script URL removed."),"about:blank"):b&&0===c.indexOf("data:")?(console.log("Data URI removed from link."),"about:blank"):a}function z(a){return a.replace(/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,function(a,b){b=b.toLowerCase();return"colon"===b?":":"#"===b.charAt(0)?"x"===b.charAt(1)?String.fromCharCode(parseInt(b.substring(2),16)):String.fromCharCode(+b.substring(1)):""})}function O(a){if(a in R)for(var b=R[a].length;0a?2*a*a:-1+(4-2*a)*a},draggable:!0,disableKeyboardCtrl:!1,crossOrigin:"anonymous",touchPanSpeedCoeffFactor:1,capturedKeyNumbers:[16,17,27,37,38,39,40,61,65,68,83,87,107,109,173,187,189],friction:0.15,strings:{loadButtonLabel:"Click to
Load
Panorama", +loadingLabel:"Loading...",bylineLabel:"by %s",noPanoramaError:"No panorama image was specified.",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.)", +unknownError:"Unknown error. Check developer console."}};m="string"===typeof m?f.getElementById(m):m;m.classList.add("pnlm-container");m.tabIndex=0;var J=f.createElement("div");J.className="pnlm-ui";m.appendChild(J);var L=f.createElement("div");L.className="pnlm-render-container";m.appendChild(L);var W=f.createElement("div");W.className="pnlm-dragfix";J.appendChild(W);var ea=f.createElement("span");ea.className="pnlm-about-msg";ea.innerHTML='Pannellum eeb9383'; +J.appendChild(ea);W.addEventListener("contextmenu",la);var r={},$a=f.createElement("div");$a.className="pnlm-sprite pnlm-hot-spot-debug-indicator";J.appendChild($a);r.container=f.createElement("div");r.container.className="pnlm-panorama-info";r.title=f.createElement("div");r.title.className="pnlm-title-box";r.container.appendChild(r.title);r.author=f.createElement("div");r.author.className="pnlm-author-box";r.container.appendChild(r.author);J.appendChild(r.container);r.load={};r.load.box=f.createElement("div"); +r.load.box.className="pnlm-load-box";r.load.boxp=f.createElement("p");r.load.box.appendChild(r.load.boxp);r.load.lbox=f.createElement("div");r.load.lbox.className="pnlm-lbox";r.load.lbox.innerHTML='
';r.load.box.appendChild(r.load.lbox);r.load.lbar=f.createElement("div");r.load.lbar.className="pnlm-lbar";r.load.lbarFill=f.createElement("div");r.load.lbarFill.className="pnlm-lbar-fill";r.load.lbar.appendChild(r.load.lbarFill);r.load.box.appendChild(r.load.lbar);r.load.msg= +f.createElement("p");r.load.msg.className="pnlm-lmsg";r.load.box.appendChild(r.load.msg);J.appendChild(r.load.box);r.errorMsg=f.createElement("div");r.errorMsg.className="pnlm-error-msg pnlm-info-box";J.appendChild(r.errorMsg);var w={};w.container=f.createElement("div");w.container.className="pnlm-controls-container";J.appendChild(w.container);w.load=f.createElement("button");w.load.className="pnlm-load-button";w.load.addEventListener("click",function(){va();d()});J.appendChild(w.load);w.zoom=f.createElement("div"); +w.zoom.className="pnlm-zoom-controls pnlm-controls";w.zoomIn=f.createElement("div");w.zoomIn.className="pnlm-zoom-in pnlm-sprite pnlm-control";w.zoomIn.addEventListener("click",function(){F&&(C(b.hfov-5),s())});w.zoom.appendChild(w.zoomIn);w.zoomOut=f.createElement("div");w.zoomOut.className="pnlm-zoom-out pnlm-sprite pnlm-control";w.zoomOut.addEventListener("click",function(){F&&(C(b.hfov+5),s())});w.zoom.appendChild(w.zoomOut);w.container.appendChild(w.zoom);w.fullscreen=f.createElement("div"); +w.fullscreen.addEventListener("click",H);w.fullscreen.className="pnlm-fullscreen-toggle-button pnlm-sprite pnlm-fullscreen-toggle-button-inactive pnlm-controls pnlm-control";(f.fullscreenEnabled||f.mozFullScreenEnabled||f.webkitFullscreenEnabled||f.msFullscreenEnabled)&&w.container.appendChild(w.fullscreen);w.orientation=f.createElement("div");w.orientation.addEventListener("click",function(a){X?v():S()});w.orientation.addEventListener("mousedown",function(a){a.stopPropagation()});w.orientation.addEventListener("touchstart", +function(a){a.stopPropagation()});w.orientation.addEventListener("pointerdown",function(a){a.stopPropagation()});w.orientation.className="pnlm-orientation-button pnlm-orientation-button-inactive pnlm-sprite pnlm-controls pnlm-control";var ab=!1;D.DeviceOrientationEvent&&"https:"==location.protocol&&0<=navigator.userAgent.toLowerCase().indexOf("mobi")&&(w.container.appendChild(w.orientation),ab=!0);var La=f.createElement("div");La.className="pnlm-compass pnlm-controls pnlm-control";J.appendChild(La); +q.firstScene?ua(q.firstScene):q.default&&q.default.firstScene?ua(q.default.firstScene):ua(null);va(!0);var ja=[],Ca=[];ba.prototype.multiply=function(a){return new ba(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)};ba.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*this.y),1-2*(this.y*this.y+this.z*this.z));return[a,b,c]};this.isLoaded=function(){return Boolean(F)};this.getPitch=function(){return b.pitch};this.setPitch=function(a,c,d,e){M=Date.now();if(1E-6>=Math.abs(a-b.pitch))return"function"==typeof d&&d(e),this;(c=c==h?1E3:Number(c))?(N.pitch={startTime:Date.now(),startPosition:b.pitch,endPosition:a,duration:c},"function"==typeof d&&setTimeout(function(){d(e)},c)):b.pitch=a;s();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],90));return this};this.getYaw=function(){return(b.yaw+540)%360-180};this.setYaw=function(a,c,d,e){M=Date.now();if(1E-6>=Math.abs(a-b.yaw))return"function"==typeof d&&d(e),this;c=c==h?1E3:Number(c);a=(a+180)%360-180;c?(180=Math.abs(a-b.hfov))return"function"==typeof d&&d(e),this;(c=c==h?1E3:Number(c))?(N.hfov={startTime:Date.now(),startPosition:b.hfov,endPosition:Ma(a),duration:c},"function"== +typeof d&&setTimeout(function(){d(e)},c)):C(a);s();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,c,d,e,f,g){e=e==h?1E3:Number(e);a!==h&&1E-6