".concat(this.viewer.config.caption,"
"):"")+this.viewer.config.description})):(this.mode=1,this.viewer.notification.show({id:Le.DESCRIPTION,content:this.viewer.config.caption}))}}]),t}(hi);vi.id="description";var pi=function(e){function t(e){var n;return _classCallCheck(this,t),n=i.call(this,e,{className:"psv-download-butto",hoverScale:!0,collapsable:!0,tabbable:!0,icon:Ie.download}),n.viewer.addEventListener(ct.type,_assertThisInitialized(n)),n}_inherits(t,e);var i=_createSuper(t);return _createClass(t,[{key:"destroy",value:function(){this.viewer.removeEventListener(ct.type,this),_get(_getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"handleEvent",value:function(e){_instanceof(e,ct)&&e.containsOptions("downloadUrl")&&this.checkSupported()}},{key:"onClick",value:function(){var e=this,t=document.createElement("a");t.href=this.viewer.config.downloadUrl||this.viewer.config.panorama,t.href.startsWith("data:")&&!this.viewer.config.downloadName?t.download="panorama."+t.href.substring(0,t.href.indexOf(";")).split("/").pop():t.download=this.viewer.config.downloadName||t.href.split("/").pop(),this.viewer.container.appendChild(t),t.click(),setTimeout(function(){e.viewer.container.removeChild(t)},100)}},{key:"checkSupported",value:function(){var e=this.viewer.adapter.constructor.supportsDownload||this.viewer.config.downloadUrl;e?this.show():this.hide()}}]),t}(hi);pi.id="download";var fi=function(e){function t(e){var n;return _classCallCheck(this,t),n=i.call(this,e,{className:"psv-fullscreen-button",hoverScale:!0,collapsable:!1,tabbable:!0,icon:Ie.fullscreenIn,iconActive:Ie.fullscreenOut}),n.viewer.addEventListener(vt.type,_assertThisInitialized(n)),n}_inherits(t,e);var i=_createSuper(t);return _createClass(t,[{key:"destroy",value:function(){this.viewer.removeEventListener(vt.type,this),_get(_getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"handleEvent",value:function(e){_instanceof(e,vt)&&this.toggleActive(e.fullscreenEnabled)}},{key:"onClick",value:function(){this.viewer.toggleFullscreen()}}]),t}(hi);fi.id="fullscreen";var yi="psvButton",mi=function(e,t){return'\n \n")},gi=function(e){function t(e){var n,r;return _classCallCheck(this,t),r=i.call(this,e,{className:"psv-menu-button",hoverScale:!0,collapsable:!1,tabbable:!0,icon:Ie.menu}),r.viewer.addEventListener(Dt.type,_assertThisInitialized(r)),r.viewer.addEventListener(_t.type,_assertThisInitialized(r)),_get((n=_assertThisInitialized(r),_getPrototypeOf(t.prototype)),"hide",n).call(n),r}_inherits(t,e);var i=_createSuper(t);return _createClass(t,[{key:"destroy",value:function(){this.viewer.removeEventListener(Dt.type,this),this.viewer.removeEventListener(_t.type,this),_get(_getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"handleEvent",value:function(e){_instanceof(e,Dt)?this.toggleActive(e.panelId===Le.MENU):_instanceof(e,_t)&&this.toggleActive(!1)}},{key:"onClick",value:function(){this.state.active?this.__hideMenu():this.__showMenu()}},{key:"hide",value:function(e){_get(_getPrototypeOf(t.prototype),"hide",this).call(this,e),this.__hideMenu()}},{key:"show",value:function(e){_get(_getPrototypeOf(t.prototype),"show",this).call(this,e),this.state.active&&this.__showMenu()}},{key:"__showMenu",value:function(){var e=this;this.viewer.panel.show({id:Le.MENU,content:mi(this.viewer.navbar.collapsed,this.viewer.config.lang.menu),noMargin:!0,clickHandler:function(t){var i=t?p(t,"li"):void 0,n=i?i.dataset[yi]:void 0;n&&(e.viewer.navbar.getButton(n).onClick(),e.__hideMenu())}})}},{key:"__hideMenu",value:function(){this.viewer.panel.hide(Le.MENU)}}]),t}(hi);gi.id="menu";var _i=function(e){function t(e,n){var r;return _classCallCheck(this,t),r=i.call(this,e,{className:"psv-move-button",hoverScale:!0,collapsable:!1,tabbable:!0,icon:Q(n)}),r.direction=n,r.handler=new Ze,r.container.addEventListener("mousedown",_assertThisInitialized(r)),r.container.addEventListener("keydown",_assertThisInitialized(r)),r.container.addEventListener("keyup",_assertThisInitialized(r)),r.viewer.container.addEventListener("mouseup",_assertThisInitialized(r)),r.viewer.container.addEventListener("touchend",_assertThisInitialized(r)),r}_inherits(t,e);var i=_createSuper(t);return _createClass(t,[{key:"destroy",value:function(){this.__onMouseUp(),this.viewer.container.removeEventListener("mouseup",this),this.viewer.container.removeEventListener("touchend",this),_get(_getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"handleEvent",value:function(e){switch(e.type){case"mousedown":this.__onMouseDown();break;case"mouseup":case"touchend":this.__onMouseUp();break;case"keydown":e.key===xe.Enter&&this.__onMouseDown();break;case"keyup":e.key===xe.Enter&&this.__onMouseUp()}}},{key:"onClick",value:function(){}},{key:"isSupported",value:function(){return I(ai.isTouchEnabled)}},{key:"__onMouseDown",value:function(){if(this.state.enabled){var e={};switch(this.direction){case 0:e.pitch=!1;break;case 1:e.pitch=!0;break;case 3:e.yaw=!1;break;default:e.yaw=!0}this.viewer.stopAll(),this.viewer.dynamics.position.roll(e),this.handler.down()}}},{key:"__onMouseUp",value:function(){var e=this;this.state.enabled&&this.handler.up(function(){e.viewer.dynamics.position.stop(),e.viewer.resetIdleTimer()})}}]),t}(hi);_i.groupId="move";var wi=function(e){function t(e){return _classCallCheck(this,t),i.call(this,e,1)}_inherits(t,e);var i=_createSuper(t);return _createClass(t)}(_i);wi.id="moveDown";var bi=function(e){function t(e){return _classCallCheck(this,t),i.call(this,e,2)}_inherits(t,e);var i=_createSuper(t);return _createClass(t)}(_i);bi.id="moveLeft";var ki=function(e){function t(e){return _classCallCheck(this,t),i.call(this,e,3)}_inherits(t,e);var i=_createSuper(t);return _createClass(t)}(_i);ki.id="moveRight";var Ei=function(e){function t(e){return _classCallCheck(this,t),i.call(this,e,0)}_inherits(t,e);var i=_createSuper(t);return _createClass(t)}(_i);Ei.id="moveUp";var Ci=function(e){function t(e,n,r){var o;return _classCallCheck(this,t),o=i.call(this,e,{className:"psv-zoom-button",hoverScale:!0,collapsable:!1,tabbable:!0,icon:r}),o.direction=n,o.handler=new Ze,o.container.addEventListener("mousedown",_assertThisInitialized(o)),o.container.addEventListener("keydown",_assertThisInitialized(o)),o.container.addEventListener("keyup",_assertThisInitialized(o)),o.viewer.container.addEventListener("mouseup",_assertThisInitialized(o)),o.viewer.container.addEventListener("touchend",_assertThisInitialized(o)),o}_inherits(t,e);var i=_createSuper(t);return _createClass(t,[{key:"destroy",value:function(){this.__onMouseUp(),this.viewer.container.removeEventListener("mouseup",this),this.viewer.container.removeEventListener("touchend",this),_get(_getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"handleEvent",value:function(e){switch(e.type){case"mousedown":this.__onMouseDown();break;case"mouseup":case"touchend":this.__onMouseUp();break;case"keydown":e.key===xe.Enter&&this.__onMouseDown();break;case"keyup":e.key===xe.Enter&&this.__onMouseUp()}}},{key:"onClick",value:function(){}},{key:"isSupported",value:function(){return I(ai.isTouchEnabled)}},{key:"__onMouseDown",value:function(){this.state.enabled&&(this.viewer.dynamics.zoom.roll(1===this.direction),this.handler.down())}},{key:"__onMouseUp",value:function(){var e=this;this.state.enabled&&this.handler.up(function(){return e.viewer.dynamics.zoom.stop()})}}]),t}(hi);Ci.groupId="zoom";var Ti=function(e){function t(e){return _classCallCheck(this,t),i.call(this,e,0,Ie.zoomIn)}_inherits(t,e);var i=_createSuper(t);return _createClass(t)}(Ci);Ti.id="zoomIn";var Si=function(e){function t(e){return _classCallCheck(this,t),i.call(this,e,1,Ie.zoomOut)}_inherits(t,e);var i=_createSuper(t);return _createClass(t)}(Ci);Si.id="zoomOut";var Pi=function(e){function t(e){var n ;return _classCallCheck(this,t),n=i.call(this,e,{className:"psv-zoom-range",hoverScale:!1,collapsable:!1,tabbable:!1}),n.zoomRange=document.createElement("div"),n.zoomRange.className="psv-zoom-range-line",n.container.appendChild(n.zoomRange),n.zoomValue=document.createElement("div"),n.zoomValue.className="psv-zoom-range-handle",n.zoomRange.appendChild(n.zoomValue),n.slider=new Ke(n.container,"HORIZONTAL",function(e){return n.__onSliderUpdate(e)}),n.mediaMinWidth=parseInt(y(n.container,"maxWidth"),10),n.viewer.addEventListener(Zt.type,_assertThisInitialized(n)),n.viewer.state.ready?n.__moveZoomValue(n.viewer.getZoomLevel()):n.viewer.addEventListener(xt.type,_assertThisInitialized(n)),n}_inherits(t,e);var i=_createSuper(t);return _createClass(t,[{key:"destroy",value:function(){this.slider.destroy(),this.viewer.removeEventListener(Zt.type,this),this.viewer.removeEventListener(xt.type,this),_get(_getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"handleEvent",value:function(e){_instanceof(e,Zt)?this.__moveZoomValue(e.zoomLevel):_instanceof(e,xt)&&this.__moveZoomValue(this.viewer.getZoomLevel())}},{key:"onClick",value:function(){}},{key:"isSupported",value:function(){return I(ai.isTouchEnabled)}},{key:"autoSize",value:function(){this.state.supported&&(this.viewer.state.size.width<=this.mediaMinWidth&&this.state.visible?this.hide(!1):this.viewer.state.size.width>this.mediaMinWidth&&!this.state.visible&&this.show(!1))}},{key:"__moveZoomValue",value:function(e){this.zoomValue.style.left=e/100*this.zoomRange.offsetWidth-this.zoomValue.offsetWidth/2+"px"}},{key:"__onSliderUpdate",value:function(e){e.mousedown&&this.viewer.zoom(100*e.value)}}]),t}(hi);Pi.id="zoomRange",Pi.groupId="zoom";var Oi=se(),Mi=function(e){function t(e){var n;return _classCallCheck(this,t),n=i.call(this),n.viewer=e,n}_inherits(t,e);var i=_createSuper(t);return _createClass(t,[{key:"init",value:function(){}},{key:"destroy",value:function(){}}]),t}($e),Li=function(e){function t(e,n){var r;return _classCallCheck(this,t),r=i.call(this,e),r.config=r.constructor.configParser(n),r}_inherits(t,e);var i=_createSuper(t);return _createClass(t,[{key:"setOption",value:function(e,t){this.setOptions(_defineProperty({},e,t))}},{key:"setOptions",value:function(e){for(var t={...this.config,...e},i=this.constructor,n=i.configParser,r=i.readonlyOptions,o=i.id,a=0,s=Object.entries(e);a