/**
 * Minified by jsDelivr using Terser v5.13.1.
 * Original file: /npm/photo-sphere-viewer@4.6.3/dist/photo-sphere-viewer.js
 *
 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
 */
/*!
* Photo Sphere Viewer 4.6.3
* @copyright 2014-2015 Jérémy Heleine
* @copyright 2015-2022 Damien "Mistic" Sorel
* @licence MIT (https://opensource.org/licenses/MIT)
*/
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("three"),require("uevent")):"function"==typeof define&&define.amd?define(["exports","three","uevent"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).PhotoSphereViewer={},t.THREE,t.uEvent)}(this,(function(t,e,o){"use strict";function n(t){this.message=t,"captureStackTrace"in Error?Error.captureStackTrace(this,n):this.stack=(new Error).stack}n.prototype=Object.create(Error.prototype),n.prototype.name="PSVError",n.prototype.constructor=n;var i=function(){function t(t){this.psv=t}var e=t.prototype;return e.destroy=function(){delete this.psv},e.supportsTransition=function(t){return!1},e.supportsPreload=function(t){return!1},e.loadTexture=function(t,e){throw new n("loadTexture not implemented")},e.createMesh=function(t){throw new n("createMesh not implemented")},e.setTexture=function(t,e,o){throw new n("setTexture not implemented")},e.setTextureOpacity=function(t,e){throw new n("setTextureOpacity not implemented")},e.disposeTexture=function(t){throw new n("disposeTexture not implemented")},t}();function r(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function s(t,e,o){return e&&r(t.prototype,e),o&&r(t,o),Object.defineProperty(t,"prototype",{writable:!1}),t}function a(){return a=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var o=arguments[e];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(t[n]=o[n])}return t},a.apply(this,arguments)}function c(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,h(t,e)}function h(t,e){return h=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},h(t,e)}function p(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}i.id=null,i.supportsDownload=!1;var l=300,u=10,d="photoSphereViewer",v="psvSphere",f={ROTATE_LAT_UP:"rotateLatitudeUp",ROTATE_LAT_DOWN:"rotateLatitudeDown",ROTATE_LONG_RIGHT:"rotateLongitudeRight",ROTATE_LONG_LEFT:"rotateLongitudeLeft",ZOOM_IN:"zoomIn",ZOOM_OUT:"zoomOut",TOGGLE_AUTOROTATE:"toggleAutorotate"},m={AUTOROTATE:"autorotate",BEFORE_RENDER:"before-render",BEFORE_ROTATE:"before-rotate",CLICK:"click",CLOSE_PANEL:"close-panel",CONFIG_CHANGED:"config-changed",DOUBLE_CLICK:"dblclick",FULLSCREEN_UPDATED:"fullscreen-updated",HIDE_NOTIFICATION:"hide-notification",HIDE_OVERLAY:"hide-overlay",HIDE_TOOLTIP:"hide-tooltip",KEY_PRESS:"key-press",LOAD_PROGRESS:"load-progress",OPEN_PANEL:"open-panel",PANORAMA_LOADED:"panorama-loaded",POSITION_UPDATED:"position-updated",READY:"ready",RENDER:"render",SHOW_NOTIFICATION:"show-notification",SHOW_OVERLAY:"show-overlay",SHOW_TOOLTIP:"show-tooltip",SIZE_UPDATED:"size-updated",STOP_ALL:"stop-all",ZOOM_UPDATED:"zoom-updated"},g={GET_ANIMATE_POSITION:"get-animate-position",GET_ROTATE_POSITION:"get-rotate-position"},w={ENTER_OBJECT:"enter-object",HOVER_OBJECT:"hover-object",LEAVE_OBJECT:"leave-object"},_={MENU:"menu",TWO_FINGERS:"twoFingers",CTRL_ZOOM:"ctrlZoom",ERROR:"error",DESCRIPTION:"description"},y={linear:function(t){return t},inQuad:function(t){return t*t},outQuad:function(t){return t*(2-t)},inOutQuad:function(t){return t<.5?2*t*t:(4-2*t)*t-1},inCubic:function(t){return t*t*t},outCubic:function(t){return--t*t*t+1},inOutCubic:function(t){return t<.5?4*t*t*t:(t-1)*(2*t-2)*(2*t-2)+1},inQuart:function(t){return t*t*t*t},outQuart:function(t){return 1- --t*t*t*t},inOutQuart:function(t){return t<.5?8*t*t*t*t:1-8*--t*t*t*t},inQuint:function(t){return t*t*t*t*t},outQuint:function(t){return 1+--t*t*t*t*t},inOutQuint:function(t){return t<.5?16*t*t*t*t*t:1+16*--t*t*t*t*t},inSine:function(t){return 1-Math.cos(t*(Math.PI/2))},outSine:function(t){return Math.sin(t*(Math.PI/2))},inOutSine:function(t){return.5-.5*Math.cos(Math.PI*t)},inExpo:function(t){return Math.pow(2,10*(t-1))},outExpo:function(t){return 1-Math.pow(2,-10*t)},inOutExpo:function(t){return(t=2*t-1)<0?.5*Math.pow(2,10*t):1-.5*Math.pow(2,-10*t)},inCirc:function(t){return 1-Math.sqrt(1-t*t)},outCirc:function(t){return Math.sqrt(1-(t-1)*(t-1))},inOutCirc:function(t){return(t*=2)<1?.5-.5*Math.sqrt(1-t*t):.5+.5*Math.sqrt(1-(t-=2)*t)}},E={Enter:"Enter",Control:"Control",Escape:"Escape",Space:" ",PageUp:"PageUp",PageDown:"PageDown",ArrowLeft:"ArrowLeft",ArrowUp:"ArrowUp",ArrowRight:"ArrowRight",ArrowDown:"ArrowDown",Delete:"Delete",Plus:"+",Minus:"-"},T=Object.freeze({__proto__:null,DEFAULT_TRANSITION:1500,MOVE_THRESHOLD:4,DBLCLICK_DELAY:300,LONGTOUCH_DELAY:500,TWOFINGERSOVERLAY_DELAY:100,CTRLZOOM_TIMEOUT:2e3,INERTIA_WINDOW:l,SPHERE_RADIUS:u,VIEWER_DATA:d,MESH_USER_DATA:v,ACTIONS:f,EVENTS:m,CHANGE_EVENTS:g,OBJECT_EVENTS:w,IDS:_,EASINGS:y,KEY_CODES:E}),b=d+"_touchSupport",M={loaded:!1,pixelRatio:1,isWebGLSupported:!1,isTouchEnabled:null,maxTextureWidth:0,mouseWheelEvent:null,fullscreenEvent:null};M.load=function(){if(!M.loaded){var t=function(){var t=document.createElement("canvas"),e=["webgl","experimental-webgl","moz-webgl","webkit-3d"],o=null;if(!t.getContext)return null;return e.some((function(e){try{return null!==(o=t.getContext(e))}catch(t){return!1}}))?o:null}();M.loaded=!0,M.pixelRatio=window.devicePixelRatio||1,M.isWebGLSupported=null!=t,M.isTouchEnabled=function(){var t="ontouchstart"in window||navigator.maxTouchPoints>0;b in localStorage&&(t="true"===localStorage[b]);var e=new Promise((function(e){var o,n=function(){o(),localStorage[b]=!1,e(!1)},i=function(){o(),localStorage[b]=!0,e(!0)},r=function(){o(),localStorage[b]=t,e(t)};o=function(){window.removeEventListener("mousedown",n),window.removeEventListener("touchstart",i)},window.addEventListener("mousedown",n,!1),window.addEventListener("touchstart",i,!1),setTimeout(r,1e4)}));return{initial:t,promise:e}}(),M.maxTextureWidth=function(t){return null!==t?t.getParameter(t.MAX_TEXTURE_SIZE):0}(t),M.mouseWheelEvent="onwheel"in document.createElement("div")?"wheel":void 0!==document.onmousewheel?"mousewheel":"DOMMouseScroll",M.fullscreenEvent=(e=Object.keys(L).filter((function(t){return t in document}))).length?L[e[0]]:null}var e};var O=null;M.getMaxCanvasWidth=function(){return null===O&&(O=function(t){var e=document.createElement("canvas"),o=e.getContext("2d");e.width=t,e.height=t/2;for(;e.width>1024;){o.fillStyle="white",o.fillRect(0,0,1,1);try{if(255===o.getImageData(0,0,1,1).data[0])return e.width}catch(t){}e.width/=2,e.height/=2}throw new n("Unable to detect system capabilities")}(M.maxTextureWidth)),O};var L={exitFullscreen:"fullscreenchange",webkitExitFullscreen:"webkitfullscreenchange",mozCancelFullScreen:"mozfullscreenchange",msExitFullscreen:"MSFullscreenChange"};function C(t,e,o){void 0===o?t.classList.toggle(e):o&&!t.classList.contains(e)?t.classList.add(e):o||t.classList.remove(e)}function x(t,e){e&&e.split(" ").forEach((function(e){C(t,e,!0)}))}function P(t,e){if(!t.matches)return null;var o=t;do{if(o.matches(e))return o;o=o instanceof SVGElement?o.parentNode:o.parentElement}while(o);return null}function A(t){for(var e=0,o=0,n=t;n;)e+=n.offsetLeft-n.scrollLeft+n.clientLeft,o+=n.offsetTop-n.scrollTop+n.clientTop,n=n.offsetParent;return{left:e,top:o}}function S(t){return(document.fullscreenElement||document.webkitFullscreenElement)===t}function I(t){(t.requestFullscreen||t.webkitRequestFullscreen).call(t)}function k(){(document.exitFullscreen||document.webkitExitFullscreen).call(document)}function D(t,e){return window.getComputedStyle(t,null)[e]}
  /**
   * @summary Normalize mousewheel values accross browsers
   * @memberOf PSV.utils
   * @description From Facebook's Fixed Data Table
   * {@link https://github.com/facebookarchive/fixed-data-table/blob/master/src/vendor_upstream/dom/normalizeWheel.js}
   * @copyright Facebook
   * @param {WheelEvent} event
   * @returns {{spinX: number, spinY: number, pixelX: number, pixelY: number}}
   */function R(t){var e=0,o=0,n=0,i=0;return"detail"in t&&(o=t.detail),"wheelDelta"in t&&(o=-t.wheelDelta/120),"wheelDeltaY"in t&&(o=-t.wheelDeltaY/120),"wheelDeltaX"in t&&(e=-t.wheelDeltaX/120),"axis"in t&&t.axis===t.HORIZONTAL_AXIS&&(e=o,o=0),n=10*e,i=10*o,"deltaY"in t&&(i=t.deltaY),"deltaX"in t&&(n=t.deltaX),(n||i)&&t.deltaMode&&(1===t.deltaMode?(n*=40,i*=40):(n*=800,i*=800)),n&&!e&&(e=n<1?-1:1),i&&!o&&(o=i<1?-1:1),{spinX:e,spinY:o,pixelX:n,pixelY:i}}function N(t,e,o){return Math.max(e,Math.min(o,t))}function H(t,e){var o=t%e;return o<0&&(o+=e),o}function z(t){return Math.log(t)/Math.log(2)%1==0}function U(t,e){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function F(t,e){return[0,2*Math.PI,2*-Math.PI].reduce((function(o,n){var i=e-t+n;return Math.abs(i)<Math.abs(o)?i:o}),1/0)}function W(t,e){return Math.acos(Math.cos(t.latitude)*Math.cos(e.latitude)*Math.cos(t.longitude-e.longitude)+Math.sin(t.latitude)*Math.sin(e.latitude))}function V(t){return t.replace(/[A-Z](?:(?=[^A-Z])|[A-Z]*(?=[A-Z][^A-Z]|$))/g,(function(t,e){return(e>0?"-":"")+t.toLowerCase()}))}
  /**
   * @summary Returns a function, that, when invoked, will only be triggered at most once during a given window of time.
   * @memberOf PSV.utils
   * @copyright underscore.js - modified by Clément Prévost {@link http://stackoverflow.com/a/27078401}
   * @param {Function} func
   * @param {number} wait
   * @returns {Function}
   */function j(t,e){var o,n,i,r,s=0,a=function(){s=Date.now(),r=void 0,i=t.apply(o,n),r||(o=n=null)};return function(){var c=Date.now();s||(s=c);var h=e-(c-s);return o=this,n=arguments,h<=0||h>e?(r&&(clearTimeout(r),r=void 0),s=c,i=t.apply(o,n),r||(o=n=null)):r||(r=setTimeout(a,h)),i}}function Y(t){if("object"==typeof t&&null!==t){if("function"==typeof Object.getPrototypeOf){var e=Object.getPrototypeOf(t);return e===Object.prototype||null===e}return"[object Object]"===Object.prototype.toString.call(t)}return!1}
  /**
   * @summary Merges the enumerable attributes of two objects
   * @memberOf PSV.utils
   * @description Replaces arrays and alters the target object.
   * @copyright Nicholas Fisher <nfisher110@gmail.com>
   * @param {Object} target
   * @param {Object} src
   * @returns {Object} target
   */function Z(t,e){var o=e;return function t(e,n){return Array.isArray(n)?(e&&Array.isArray(e)?e.length=0:e=[],n.forEach((function(o,n){e[n]=t(null,o)}))):"object"==typeof n?(e&&!Array.isArray(e)||(e={}),Object.keys(n).forEach((function(i){"object"==typeof n[i]&&n[i]&&Y(n[i])?n[i]!=o&&(e[i]?t(e[i],n[i]):e[i]=t(null,n[i])):e[i]=n[i]}))):e=n,e}(t,e)}function X(t){return Z(null,t)}function B(t){return!t||0===Object.keys(t).length&&t.constructor===Object}function G(t,e){Object.keys(t).forEach((function(o){e(t[o],o)}))}function K(t){return null==t}function q(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];for(var n=0,i=e;n<i.length;n++){var r=i[n];if(!K(r))return r}}function Q(t,e){if(t)for(var o=0,n=[["_",t]].concat(Object.entries(t));o<n.length;o++){var i=n[o][1];if(i.prototype instanceof e)return i}return null}function $(){var t=new Error("Loading was aborted.");return t.name="AbortError",t}function J(t){return"AbortError"===(null==t?void 0:t.name)}function tt(t){console.warn("PhotoSphereViewer: "+t)}function et(t){return[["x","y"],["longitude","latitude"]].some((function(e){var o=e[0],n=e[1];return void 0!==t[o]&&void 0!==t[n]}))}function ot(t,e){var o=t.match("<GPano:"+e+">(.*)</GPano:"+e+">");if(null!==o){var n=parseInt(o[1],10);return isNaN(n)?null:n}if(null!==(o=t.match("GPano:"+e+'="(.*?)"'))){var i=parseInt(o[1],10);return isNaN(i)?null:i}return null}var nt={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"};function it(t){if(!t)return{x:.5,y:.5};if("object"==typeof t)return t;var e=t.toLocaleLowerCase().split(" ").slice(0,2);1===e.length&&(e=void 0!==nt[e[0]]?[e[0],"center"]:[e[0],e[0]]);var o="left"!==e[1]&&"right"!==e[1]&&"top"!==e[0]&&"bottom"!==e[0];e=e.map((function(t){return nt[t]||t})),o||e.reverse();var n=e.join(" ").match(/^([0-9.]+)% ([0-9.]+)%$/);return n?{x:parseFloat(n[1])/100,y:parseFloat(n[2])/100}:{x:.5,y:.5}}var rt={0:"left",.5:"center",1:"right"},st={0:"top",.5:"center",1:"bottom"};function at(t,e,o){if(void 0===o&&(o=!0),!t)return e.split(" ");if("string"==typeof t){var i=it(t);if(!(i.x in rt)||!(i.y in st))throw new n('Unable to parse position "'+t+'"');t=[st[i.y],rt[i.x]]}if(!o&&"center"===t[0]&&"center"===t[1])throw new n('Unable to parse position "center center"');return t}function ct(t){var o;if("string"==typeof t){var i=t.toString().trim(),r=parseFloat(i.replace(/^(-?[0-9]+(?:\.[0-9]*)?).*$/,"$1")),s=i.replace(/^-?[0-9]+(?:\.[0-9]*)?(.*)$/,"$1").trim();switch(s.match(/(pm|per minute)$/)&&(r/=60),s){case"dpm":case"degrees per minute":case"dps":case"degrees per second":o=e.MathUtils.degToRad(r);break;case"rdpm":case"radians per minute":case"rdps":case"radians per second":o=r;break;case"rpm":case"revolutions per minute":case"rps":case"revolutions per second":o=r*Math.PI*2;break;default:throw new n('Unknown speed unit "'+s+'"')}}else o=t;return o}function ht(t,o,i){var r;if(void 0===o&&(o=!1),void 0===i&&(i=o),"string"==typeof t){var s=t.toLowerCase().trim().match(/^(-?[0-9]+(?:\.[0-9]*)?)(.*)$/);if(!s)throw new n('Unknown angle "'+t+'"');var a=parseFloat(s[1]),c=s[2];if(c)switch(c){case"deg":case"degs":r=e.MathUtils.degToRad(a);break;case"rad":case"rads":r=a;break;default:throw new n('Unknown angle unit "'+c+'"')}else r=a}else{if("number"!=typeof t||isNaN(t))throw new n('Unknown angle "'+t+'"');r=t}return r=H(o?r+Math.PI:r,2*Math.PI),o?N(r-Math.PI,-Math.PI/(i?2:1),Math.PI/(i?2:1)):r}function pt(t){var o=new e.Texture(t);return o.needsUpdate=!0,o.minFilter=e.LinearFilter,o.generateMipmaps=!1,o}var lt=new e.Quaternion;function ut(t,e){lt.setFromEuler(e).invert(),t.applyQuaternion(lt)}var dt=function(){function t(t){var e=this;this.__callbacks=[],t?(t.easing&&"string"!=typeof t.easing||(t.easing=y[t.easing||"linear"]),this.__start=null,this.options=t,t.delay?this.__delayTimeout=setTimeout((function(){e.__delayTimeout=null,e.__animationFrame=window.requestAnimationFrame((function(t){return e.__run(t)}))}),t.delay):this.__animationFrame=window.requestAnimationFrame((function(t){return e.__run(t)}))):this.__resolved=!0}var e=t.prototype;return e.__run=function(t){var e=this;null===this.__start&&(this.__start=t);var o=(t-this.__start)/this.options.duration,n={};o<1?(G(this.options.properties,(function(t,i){t&&(n[i]=t.start+(t.end-t.start)*e.options.easing(o))})),this.options.onTick(n,o),this.__animationFrame=window.requestAnimationFrame((function(t){return e.__run(t)}))):(G(this.options.properties,(function(t,e){t&&(n[e]=t.end)})),this.options.onTick(n,1),this.__animationFrame=window.requestAnimationFrame((function(){e.__resolved=!0,e.__resolve(!0)})))},e.__resolve=function(t){this.__callbacks.forEach((function(e){return e(t)})),this.__callbacks.length=0},e.then=function(t,e){var o=this;return void 0===t&&(t=null),void 0===e&&(e=null),e&&tt("Animation#then does not accept a rejection handler anymore"),this.__resolved||this.__cancelled?Promise.resolve(this.__resolved).then(t):new Promise((function(t){o.__callbacks.push(t)})).then(t)},e.cancel=function(){this.__cancelled||this.__resolved||(this.__cancelled=!0,this.__resolve(!1),this.__delayTimeout&&(window.clearTimeout(this.__delayTimeout),this.__delayTimeout=null),this.__animationFrame&&(window.cancelAnimationFrame(this.__animationFrame),this.__animationFrame=null))},e.catch=function(){return tt("Animation#catch is not supported anymore"),this.then()},e.finally=function(t){return tt("Animation#finally is not supported anymore"),this.then(t)},t.resolve=function(){tt("Animation.resolve is not supported anymore")},t}(),vt=function(){function t(e,o,i,r,s){if(void 0===o&&(o=0),void 0===i&&(i=-1/0),void 0===r&&(r=1/0),void 0===s&&(s=!1),this.fn=e,this.mode=t.STOP,this.speed=0,this.speedMult=1,this.currentSpeed=0,this.target=0,this.current=o,this.min=i,this.max=r,this.loopValue=s,s&&0!==i)throw new n("invalid config");this.fn&&this.fn(o)}var e=t.prototype;return e.setSpeed=function(t){this.speed=t},e.goto=function(e,o){void 0===o&&(o=1),this.mode=t.POSITION,this.target=this.loopValue?H(e,this.max):N(e,this.min,this.max),this.speedMult=o},e.step=function(e,o){void 0===o&&(o=1),this.mode!==t.POSITION&&(this.target=this.current),this.goto(this.target+e,o)},e.roll=function(e,o){void 0===e&&(e=!1),void 0===o&&(o=1),this.mode=t.INFINITE,this.target=e?-1/0:1/0,this.speedMult=o},e.stop=function(){this.mode=t.STOP},e.setValue=function(e){return this.target=this.loopValue?H(e,this.max):N(e,this.min,this.max),this.mode=t.STOP,this.target!==this.current&&(this.current=this.target,this.fn&&this.fn(this.current),!0)},e.update=function(e){if(this.mode===t.POSITION){this.loopValue&&Math.abs(this.target-this.current)>this.max/2&&(this.current=this.current<this.target?this.current+this.max:this.current-this.max);var o=this.currentSpeed*this.currentSpeed/(this.speed*this.speedMult*4);Math.abs(this.target-this.current)<=o&&(this.mode=t.STOP)}var n=this.mode===t.STOP?0:this.speed*this.speedMult;this.target<this.current&&(n=-n),this.currentSpeed<n?this.currentSpeed=Math.min(n,this.currentSpeed+e/1e3*this.speed*this.speedMult*2):this.currentSpeed>n&&(this.currentSpeed=Math.max(n,this.currentSpeed-e/1e3*this.speed*this.speedMult*2));var i=null;return this.current>this.target&&this.currentSpeed?i=Math.max(this.target,this.current+this.currentSpeed*e/1e3):this.current<this.target&&this.currentSpeed&&(i=Math.min(this.target,this.current+this.currentSpeed*e/1e3)),null!==i&&(i=this.loopValue?H(i,this.max):N(i,this.min,this.max))!==this.current&&(this.current=i,this.fn&&this.fn(this.current),!0)},t}();vt.STOP=0,vt.INFINITE=1,vt.POSITION=2;var ft=function(){function t(t,e){this.fn=e,this.dynamics=t,this.fn&&this.fn(this.current)}var e=t.prototype;return e.setSpeed=function(t){G(this.dynamics,(function(e){e.setSpeed(t)}))},e.goto=function(t,e){var o=this;void 0===e&&(e=1),G(t,(function(t,n){o.dynamics[n].goto(t,e)}))},e.step=function(t,e){var o=this;void 0===e&&(e=1),G(t,(function(t,n){o.dynamics[n].step(t,e)}))},e.roll=function(t,e){var o=this;void 0===e&&(e=1),G(t,(function(t,n){o.dynamics[n].roll(t,e)}))},e.stop=function(){G(this.dynamics,(function(t){return t.stop()}))},e.setValue=function(t){var e=this,o=!1;return G(t,(function(t,n){o|=e.dynamics[n].setValue(t)})),o&&this.fn&&this.fn(this.current),o},e.update=function(t){var e=!1;return G(this.dynamics,(function(o){e|=o.update(t)})),e&&this.fn&&this.fn(this.current),e},s(t,[{key:"current",get:function(){var t={};return G(this.dynamics,(function(e,o){t[o]=e.current})),t}}]),t}(),mt=function(t){function e(e){var o,n=e.psv,i=e.container,r=e.direction,s=e.onUpdate;return(o=t.call(this)||this).psv=n,o.container=i,o.prop={onUpdate:s,direction:r,mousedown:!1,mouseover:!1},o.container.addEventListener("click",p(o)),o.container.addEventListener("mousedown",p(o)),o.container.addEventListener("mouseenter",p(o)),o.container.addEventListener("mouseleave",p(o)),o.container.addEventListener("touchstart",p(o)),o.container.addEventListener("mousemove",p(o),!0),o.container.addEventListener("touchmove",p(o),!0),window.addEventListener("mouseup",p(o)),window.addEventListener("touchend",p(o)),o}c(e,t);var o=e.prototype;return o.destroy=function(){window.removeEventListener("mouseup",this),window.removeEventListener("touchend",this)},o.handleEvent=function(t){switch(t.type){case"click":t.stopPropagation();break;case"mousedown":this.__onMouseDown(t);break;case"mouseenter":this.__onMouseEnter(t);break;case"mouseleave":this.__onMouseLeave(t);break;case"touchstart":this.__onTouchStart(t);break;case"mousemove":this.__onMouseMove(t);break;case"touchmove":this.__onTouchMove(t);break;case"mouseup":this.__onMouseUp(t);break;case"touchend":this.__onTouchEnd(t)}},o.__onMouseDown=function(t){this.prop.mousedown=!0,this.__update(t,!0)},o.__onMouseEnter=function(t){this.prop.mouseover=!0,this.__update(t,!0)},o.__onTouchStart=function(t){this.prop.mouseover=!0,this.prop.mousedown=!0,this.__update(t.changedTouches[0],!0)},o.__onMouseMove=function(t){(this.prop.mousedown||this.prop.mouseover)&&(t.stopPropagation(),this.__update(t,!0))},o.__onTouchMove=function(t){(this.prop.mousedown||this.prop.mouseover)&&(t.stopPropagation(),this.__update(t.changedTouches[0],!0))},o.__onMouseUp=function(t){this.prop.mousedown&&(this.prop.mousedown=!1,this.__update(t,!1))},o.__onMouseLeave=function(t){this.prop.mouseover&&(this.prop.mouseover=!1,this.__update(t,!0))},o.__onTouchEnd=function(t){this.prop.mousedown&&(this.prop.mouseover=!1,this.prop.mousedown=!1,this.__update(t.changedTouches[0],!1))},o.__update=function(t,e){var o=this.container.getBoundingClientRect(),n=t[this.vertical?"clientY":"clientX"],i=o[this.vertical?"bottom":"left"],r=o[this.vertical?"height":"width"],s=Math.abs((i-n)/r);this.prop.onUpdate({value:s,click:!e,mousedown:this.prop.mousedown,mouseover:this.prop.mouseover,cursor:t})},s(e,[{key:"vertical",get:function(){return this.prop.direction===e.VERTICAL}}]),e}(o.EventEmitter);mt.VERTICAL=1,mt.HORIZONTAL=2;var gt=Object.freeze({__proto__:null,toggleClass:C,addClasses:x,removeClasses:function(t,e){e&&e.split(" ").forEach((function(e){C(t,e,!1)}))},hasParent:function(t,e){var o=t;do{if(o===e)return!0;o=o.parentNode}while(o);return!1},getClosest:P,getPosition:A,isFullscreenEnabled:S,requestFullscreen:I,exitFullscreen:k,getStyle:D,normalizeWheel:R,bound:N,loop:H,isInteger:function(t){return Number.isInteger?Number.isInteger(t):"number"==typeof t&&Number.isFinite(t)&&Math.floor(t)===t},isPowerOfTwo:z,sum:function(t){return t.reduce((function(t,e){return t+e}),0)},distance:U,getShortestArc:F,getAngle:W,greatArcDistance:function(t,e){var o=t[0],n=t[1],i=e[0],r=e[1],s=(i-o)*Math.cos((n+r)/2),a=r-n;return Math.sqrt(s*s+a*a)},dasherize:V,throttle:j,isPlainObject:Y,deepmerge:Z,clone:X,isEmpty:B,each:G,isNil:K,firstNonNull:q,pluginInterop:Q,getAbortError:$,isAbortError:J,logWarn:tt,isExtendedPosition:et,getXMPValue:ot,parsePosition:it,cleanPosition:at,parseSpeed:ct,parseAngle:ht,createTexture:pt,applyEulerInverse:ut,Animation:dt,Dynamic:vt,MultiDynamic:ft,Slider:mt}),wt=function(t){function o(e,o){var i;if((i=t.call(this,e)||this).config=a({resolution:64},o),!z(i.config.resolution))throw new n("EquirectangularAdapter resolution must be power of two");return i.SPHERE_SEGMENTS=i.config.resolution,i.SPHERE_HORIZONTAL_SEGMENTS=i.SPHERE_SEGMENTS/2,i}c(o,t);var i=o.prototype;return i.supportsTransition=function(){return!0},i.supportsPreload=function(){return!0},i.loadTexture=function(t,e){var o=this;return"string"!=typeof t?((Array.isArray(t)||"object"==typeof t&&t.left)&&tt("Cubemap support now requires an additional adapter, see https://photo-sphere-viewer.js.org/guide/adapters"),Promise.reject(new n("Invalid panorama url, are you using the right adapter?"))):(this.psv.config.useXmpData?this.__loadXMP(t,(function(t){return o.psv.loader.setProgress(t)})).then((function(e){return o.psv.textureLoader.loadImage(t).then((function(t){return{img:t,xmpPanoData:e}}))})):this.psv.textureLoader.loadImage(t,(function(t){return o.psv.loader.setProgress(t)})).then((function(t){return{img:t,xmpPanoData:null}}))).then((function(n){var i,r,s,a,c,h,p,l,u,d=n.img,v=n.xmpPanoData;"function"==typeof e&&(e=e(d));var f={fullWidth:q(null==(i=e)?void 0:i.fullWidth,null==v?void 0:v.fullWidth,d.width),fullHeight:q(null==(r=e)?void 0:r.fullHeight,null==v?void 0:v.fullHeight,d.height),croppedWidth:q(null==(s=e)?void 0:s.croppedWidth,null==v?void 0:v.croppedWidth,d.width),croppedHeight:q(null==(a=e)?void 0:a.croppedHeight,null==v?void 0:v.croppedHeight,d.height),croppedX:q(null==(c=e)?void 0:c.croppedX,null==v?void 0:v.croppedX,0),croppedY:q(null==(h=e)?void 0:h.croppedY,null==v?void 0:v.croppedY,0),poseHeading:q(null==(p=e)?void 0:p.poseHeading,null==v?void 0:v.poseHeading,0),posePitch:q(null==(l=e)?void 0:l.posePitch,null==v?void 0:v.posePitch,0),poseRoll:q(null==(u=e)?void 0:u.poseRoll,null==v?void 0:v.poseRoll,0)};f.croppedWidth===d.width&&f.croppedHeight===d.height||tt("Invalid panoData, croppedWidth and/or croppedHeight is not coherent with loaded image.\n    panoData: "+f.croppedWidth+"x"+f.croppedHeight+", image: "+d.width+"x"+d.height),(e||v)&&f.fullWidth!==2*f.fullHeight&&tt("Invalid panoData, fullWidth should be twice fullHeight");var m=o.__createEquirectangularTexture(d,f);return{panorama:t,texture:m,panoData:f}}))},i.__loadXMP=function(t,e){var o=this;return this.psv.textureLoader.loadFile(t,e).then((function(t){return o.__loadBlobAsString(t)})).then((function(t){var e=t.indexOf("<x:xmpmeta"),o=t.indexOf("</x:xmpmeta>"),n=t.substring(e,o);return-1!==e&&-1!==o&&n.includes("GPano:")?{fullWidth:ot(n,"FullPanoWidthPixels"),fullHeight:ot(n,"FullPanoHeightPixels"),croppedWidth:ot(n,"CroppedAreaImageWidthPixels"),croppedHeight:ot(n,"CroppedAreaImageHeightPixels"),croppedX:ot(n,"CroppedAreaLeftPixels"),croppedY:ot(n,"CroppedAreaTopPixels"),poseHeading:ot(n,"PoseHeadingDegrees"),posePitch:ot(n,"PosePitchDegrees"),poseRoll:ot(n,"PoseRollDegrees")}:null}))},i.__loadBlobAsString=function(t){return new Promise((function(e,o){var n=new FileReader;n.onload=function(){return e(n.result)},n.onerror=o,n.readAsText(t)}))},i.__createEquirectangularTexture=function(t,e){if(e.fullWidth>M.maxTextureWidth||e.croppedWidth!==e.fullWidth||e.croppedHeight!==e.fullHeight){var o=M.getMaxCanvasWidth()/e.fullWidth,n=a({},e);o<1&&(n.fullWidth*=o,n.fullHeight*=o,n.croppedWidth*=o,n.croppedHeight*=o,n.croppedX*=o,n.croppedY*=o);var i=document.createElement("canvas");return i.width=n.fullWidth,i.height=n.fullHeight,i.getContext("2d").drawImage(t,n.croppedX,n.croppedY,n.croppedWidth,n.croppedHeight),pt(i)}return pt(t)},i.createMesh=function(t){void 0===t&&(t=1);var o=new e.SphereGeometry(u*t,this.SPHERE_SEGMENTS,this.SPHERE_HORIZONTAL_SEGMENTS,-Math.PI/2).scale(-1,1,1),n=new e.MeshBasicMaterial;return new e.Mesh(o,n)},i.setTexture=function(t,e){var o;null==(o=t.material.map)||o.dispose(),t.material.map=e.texture},i.setTextureOpacity=function(t,e){t.material.opacity=e,t.material.transparent=e<1},i.disposeTexture=function(t){var e;null==(e=t.texture)||e.dispose()},o}(i);wt.id="equirectangular",wt.supportsDownload=!0;var _t=function(){function t(t,e){this.psv=t.psv||t,this.parent=t,this.parent.children.push(this),this.children=[],this.prop={visible:!0},this.container=document.createElement("div"),this.container.className=e,this.parent.container.appendChild(this.container)}var e=t.prototype;return e.destroy=function(){this.parent.container.removeChild(this.container);var t=this.parent.children.indexOf(this);-1!==t&&this.parent.children.splice(t,1),this.children.slice().forEach((function(t){return t.destroy()})),this.children.length=0,delete this.container,delete this.parent,delete this.psv,delete this.prop},e.refreshUi=function(){var t=this;this.children.every((function(e){return e.refreshUi(),!0===t.psv.prop.uiRefresh}))},e.toggle=function(){this.isVisible()?this.hide():this.show()},e.hide=function(){this.container.style.display="none",this.prop.visible=!1},e.show=function(){this.container.style.display="",this.prop.visible=!0},e.isVisible=function(){return this.prop.visible},t}(),yt=function(t){function e(e,o,n,i){var r;return void 0===o&&(o=""),void 0===n&&(n=!1),void 0===i&&(i=!0),(r=t.call(this,e,"psv-button "+o)||this).prop=a({},r.prop,{id:r.constructor.id,collapsable:n,enabled:!0,supported:!0,collapsed:!1,active:!1,width:r.container.offsetWidth}),r.constructor.icon&&r.__setIcon(r.constructor.icon),r.prop.id&&r.psv.config.lang[r.prop.id]&&(r.container.title=r.psv.config.lang[r.prop.id]),i&&(r.container.tabIndex=0),r.container.addEventListener("click",(function(t){r.prop.enabled&&r.onClick(),t.stopPropagation()})),r.container.addEventListener("keydown",(function(t){t.key===E.Enter&&r.prop.enabled&&(r.onClick(),t.stopPropagation())})),r}c(e,t);var o=e.prototype;return o.checkSupported=function(){var t=this,e=this.isSupported();Y(e)?(!1===e.initial&&(this.hide(),this.prop.supported=!1),e.promise.then((function(e){t.prop&&(t.prop.supported=e,e?t.show():t.hide())}))):(this.prop.supported=e,e||this.hide())},o.isSupported=function(){return!0},o.toggleActive=function(t){this.prop.active=void 0!==t?t:!this.prop.active,C(this.container,"psv-button--active",this.prop.active),this.constructor.iconActive&&this.__setIcon(this.prop.active?this.constructor.iconActive:this.constructor.icon)},o.show=function(t){void 0===t&&(t=!0),this.isVisible()||(this.prop.visible=!0,this.prop.collapsed||(this.container.style.display=""),t&&this.psv.refreshUi("show button "+this.prop.id))},o.hide=function(t){void 0===t&&(t=!0),this.isVisible()&&(this.prop.visible=!1,this.container.style.display="none",t&&this.psv.refreshUi("hide button "+this.prop.id))},o.disable=function(){this.container.classList.add("psv-button--disabled"),this.prop.enabled=!1},o.enable=function(){this.container.classList.remove("psv-button--disabled"),this.prop.enabled=!0},o.collapse=function(){this.prop.collapsed=!0,this.container.style.display="none"},o.uncollapse=function(){this.prop.collapsed=!1,this.prop.visible&&(this.container.style.display="")},o.__setIcon=function(t,e){void 0===e&&(e=this.container),t?(e.innerHTML=t,e.querySelector("svg").classList.add("psv-button-svg")):e.innerHTML=""},o.onClick=function(){throw new n('onClick not implemented for button "'+this.prop.id+'".')},e}(_t);yt.id=null,yt.groupId=null,yt.icon=null,yt.iconActive=null;var Et=function(t){function e(e){var o;return(o=t.call(this,e,"psv-button--hover-scale psv-autorotate-button",!0)||this).psv.on(m.AUTOROTATE,p(o)),o}c(e,t);var o=e.prototype;return o.destroy=function(){this.psv.off(m.AUTOROTATE,this),t.prototype.destroy.call(this)},o.handleEvent=function(t){if(t.type===m.AUTOROTATE)this.toggleActive(t.args[0])},o.onClick=function(){this.psv.toggleAutorotate()},e}(yt);Et.id="autorotate",Et.icon='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 41 41"><path fill="currentColor" d="M40.5 14.1c-.1-.1-1.2-.5-2.899-1-.101 0-.2-.1-.2-.2C34.5 6.5 28 2 20.5 2S6.6 6.5 3.7 12.9c0 .1-.1.1-.2.2-1.7.6-2.8 1-2.9 1l-.6.3v12.1l.6.2c.1 0 1.1.4 2.7.9.1 0 .2.1.2.199C6.3 34.4 12.9 39 20.5 39c7.601 0 14.101-4.6 16.9-11.1 0-.101.1-.101.2-.2 1.699-.6 2.699-1 2.8-1l.6-.3V14.3l-.5-.2zM20.5 4c5.8 0 10.9 3 13.8 7.5.2.3-.1.6-.399.5-3.8-1-8.8-2-13.6-2-4.7 0-9.5 1-13.2 2-.3.1-.5-.2-.4-.5C9.7 7 14.8 4 20.5 4zm0 33c-5.9 0-11.1-3.1-14-7.899-.2-.301.1-.601.4-.5 3.9 1 8.9 2.1 13.6 2.1 5 0 9.9-1 13.601-2 .3-.1.5.2.399.5A16.422 16.422 0 0 1 20.5 37zm18.601-12.1c0 .1-.101.3-.2.3-2.5.9-10.4 3.6-18.4 3.6-7.1 0-15.6-2.699-18.3-3.6C2.1 25.2 2 25 2 24.9V16c0-.1.1-.3.2-.3 2.6-.9 10.6-3.6 18.2-3.6 7.5 0 15.899 2.7 18.5 3.6.1 0 .2.2.2.3v8.9z"/><path fill="currentColor" d="M18.7 24l6.4-3.7c.3-.2.3-.7 0-.8l-6.4-3.8c-.3-.2-.7 0-.7.4v7.4c0 .5.4.7.7.5z"/>\x3c!--Created by Nick Bluth from the Noun Project--\x3e</svg>\n',Et.iconActive='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 41 41"><path fill="currentColor" d="M40.5 14.1c-.1-.1-1.2-.5-2.898-1-.102 0-.202-.1-.202-.2C34.5 6.5 28 2 20.5 2S6.6 6.5 3.7 12.9c0 .1-.1.1-.2.2-1.7.6-2.8 1-2.9 1l-.6.3v12.1l.6.2c.1 0 1.1.399 2.7.899.1 0 .2.101.2.199C6.3 34.4 12.9 39 20.5 39c7.602 0 14.102-4.6 16.9-11.1 0-.102.1-.102.199-.2 1.699-.601 2.699-1 2.801-1l.6-.3V14.3l-.5-.2zM6.701 11.5C9.7 7 14.8 4 20.5 4c5.8 0 10.9 3 13.8 7.5.2.3-.1.6-.399.5-3.799-1-8.799-2-13.6-2-4.7 0-9.5 1-13.2 2-.3.1-.5-.2-.4-.5zM25.1 20.3L18.7 24c-.3.2-.7 0-.7-.5v-7.4c0-.4.4-.6.7-.4l6.399 3.8c.301.1.301.6.001.8zm9.4 8.901A16.421 16.421 0 0 1 20.5 37c-5.9 0-11.1-3.1-14-7.898-.2-.302.1-.602.4-.5 3.9 1 8.9 2.1 13.6 2.1 5 0 9.9-1 13.602-2 .298-.1.5.198.398.499z"/>\x3c!--Created by Nick Bluth from the Noun Project--\x3e</svg>\n';var Tt=function(t){function e(e,o){var n;return(n=t.call(this,e,"psv-custom-button",!1!==o.collapsable,!1!==o.tabbable)||this).config=o,n.config.id?n.prop.id=n.config.id:n.prop.id="psvButton-"+Math.random().toString(36).substr(2,9),n.config.className&&x(n.container,n.config.className),n.config.title&&(n.container.title=n.config.title),n.config.content&&(n.container.innerHTML=n.config.content),n.prop.width=n.container.offsetWidth,!1===n.config.enabled&&n.disable(),!1===n.config.visible&&n.hide(),n}c(e,t);var o=e.prototype;return o.destroy=function(){delete this.config,t.prototype.destroy.call(this)},o.onClick=function(){this.config.onClick&&this.config.onClick.apply(this.psv)},e}(yt),bt=function(t){function e(e,o){var n;return(n=t.call(this,e,"psv-caption")||this).prop=a({},n.prop,{id:n.constructor.id,collapsable:!1,width:0,contentWidth:0}),n.content=document.createElement("div"),n.content.className="psv-caption-content",n.container.appendChild(n.content),n.setCaption(o),n}c(e,t);var o=e.prototype;return o.destroy=function(){delete this.content,t.prototype.destroy.call(this)},o.setCaption=function(t){this.show(),this.content.innerHTML=t,this.prop.contentWidth=t?this.content.offsetWidth:0,this.refreshUi()},o.refreshUi=function(){var t=this.container.offsetWidth;t>=this.prop.contentWidth?this.show():t<this.prop.contentWidth&&this.hide(),this.__refreshButton()},o.hide=function(){this.content.style.display="none",this.prop.visible=!1},o.show=function(){this.content.style.display="",this.prop.visible=!0},o.__refreshButton=function(){var t;null==(t=this.psv.navbar.getButton(Mt.id,!1))||t.refreshUi(!0)},e}(_t);bt.id="caption";var Mt=function(t){function e(e){var o;return(o=t.call(this,e,"psv-button--hover-scale psv-description-button")||this).prop=a({},o.prop,{mode:null}),o.psv.on(m.HIDE_NOTIFICATION,p(o)),o.psv.on(m.SHOW_NOTIFICATION,p(o)),o.psv.on(m.CLOSE_PANEL,p(o)),o.psv.on(m.OPEN_PANEL,p(o)),o}c(e,t);var o=e.prototype;return o.destroy=function(){this.psv.off(m.HIDE_NOTIFICATION,this),this.psv.off(m.SHOW_NOTIFICATION,this),this.psv.off(m.CLOSE_PANEL,this),this.psv.off(m.OPEN_PANEL,this),t.prototype.destroy.call(this)},o.handleEvent=function(t){if(this.prop.mode){var e=!1;switch(t.type){case m.HIDE_NOTIFICATION:e=1===this.prop.mode;break;case m.SHOW_NOTIFICATION:e=1===this.prop.mode&&t.args[0]!==_.DESCRIPTION;break;case m.CLOSE_PANEL:e=2===this.prop.mode;break;case m.OPEN_PANEL:e=2===this.prop.mode&&t.args[0]!==_.DESCRIPTION}e&&(this.toggleActive(!1),this.prop.mode=null)}},o.hide=function(e){t.prototype.hide.call(this,e),this.prop.mode&&this.__close()},o.refreshUi=function(t){if(void 0===t&&(t=!1),t){var e=this.psv.navbar.getButton(bt.id,!1),o=e&&!e.isVisible(),n=!!this.psv.config.description;o||n?this.show(!1):this.hide(!1)}},o.onClick=function(){this.prop.mode?this.__close():this.__open()},o.__close=function(){switch(this.prop.mode){case 1:this.psv.notification.hide(_.DESCRIPTION);break;case 2:this.psv.panel.hide(_.DESCRIPTION)}},o.__open=function(){this.toggleActive(!0),this.psv.config.description?(this.prop.mode=2,this.psv.panel.show({id:_.DESCRIPTION,content:(this.psv.config.caption?"<p>"+this.psv.config.caption+"</p>":"")+this.psv.config.description})):(this.prop.mode=1,this.psv.notification.show({id:_.DESCRIPTION,content:this.psv.config.caption}))},e}(yt);Mt.id="description",Mt.icon='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><path fill="currentColor" d="M28.3 26.1c-1 2.6-1.9 4.8-2.6 7-2.5 7.4-5 14.7-7.2 22-1.3 4.4.5 7.2 4.3 7.8 1.3.2 2.8.2 4.2-.1 8.2-2 11.9-8.6 15.7-15.2l-2.2 2a18.8 18.8 0 0 1-7.4 5.2 2 2 0 0 1-1.6-.2c-.2-.1 0-1 0-1.4l.8-1.8L41.9 28c.5-1.4.9-3 .7-4.4-.2-2.6-3-4.4-6.3-4.4-8.8.2-15 4.5-19.5 11.8-.2.3-.2.6-.3 1.3 3.7-2.8 6.8-6.1 11.8-6.2z"/><circle fill="currentColor" cx="39.3" cy="9.2" r="8.2"/>\x3c!--Created by Arafat Uddin from the Noun Project--\x3e</svg>\n';var Ot=function(t){function e(e){return t.call(this,e,"psv-button--hover-scale psv-download-button",!0)||this}c(e,t);var o=e.prototype;return o.onClick=function(){var t=this,e=document.createElement("a");e.href=this.psv.config.downloadUrl||this.psv.config.panorama,e.download=e.href.split("/").pop(),this.psv.container.appendChild(e),e.click(),setTimeout((function(){t.psv.container.removeChild(e)}),100)},o.refreshUi=function(){var t=this.psv.adapter.constructor.supportsDownload||this.psv.config.downloadUrl;t&&!this.prop.visible?this.show():!t&&this.prop.visible&&this.hide()},e}(yt);Ot.id="download",Ot.icon='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path fill="currentColor" d="M83.3 35.6h-17V3H32.2v32.6H16.6l33.6 32.7 33-32.7z"/><path fill="currentColor" d="M83.3 64.2v16.3H16.6V64.2H-.1v32.6H100V64.2H83.3z"/>\x3c!--Created by Michael Zenaty from the Noun Project--\x3e</svg>\n';var Lt=function(t){function e(e){var o;return(o=t.call(this,e,"psv-button--hover-scale psv-fullscreen-button")||this).psv.on(m.FULLSCREEN_UPDATED,p(o)),o}c(e,t);var o=e.prototype;return o.destroy=function(){this.psv.off(m.FULLSCREEN_UPDATED,this),t.prototype.destroy.call(this)},o.handleEvent=function(t){if(t.type===m.FULLSCREEN_UPDATED)this.toggleActive(t.args[0])},o.onClick=function(){this.psv.toggleFullscreen()},e}(yt);Lt.id="fullscreen",Lt.icon='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path fill="currentColor" d="M100 40H87.1V18.8h-21V6H100zM100 93.2H66V80.3h21.1v-21H100zM34 93.2H0v-34h12.9v21.1h21zM12.9 40H0V6h34v12.9H12.8z"/>\x3c!--Created by Garrett Knoll from the Noun Project--\x3e</svg>\n',Lt.iconActive='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path fill="currentColor" d="M66 7h13v21h21v13H66zM66 60.3h34v12.9H79v21H66zM0 60.3h34v34H21V73.1H0zM21 7h13v34H0V28h21z"/>\x3c!--Created by Garrett Knoll from the Noun Project--\x3e</svg>\n';var Ct='<svg xmlns="http://www.w3.org/2000/svg" viewBox="10 10 80 80"><g fill="currentColor"><circle r="10" cx="20" cy="20"/><circle r="10" cx="50" cy="20"/><circle r="10" cx="80" cy="20"/><circle r="10" cx="20" cy="50"/><circle r="10" cx="50" cy="50"/><circle r="10" cx="80" cy="50"/><circle r="10" cx="20" cy="80"/><circle r="10" cx="50" cy="80"/><circle r="10" cx="80" cy="80"/></g>\x3c!-- Created by Richard Kunák from the Noun Project--\x3e</svg>\n',xt=function(t){function e(e){var o;return(o=t.call(this,e,"psv-button--hover-scale psv-menu-button")||this).psv.on(m.OPEN_PANEL,p(o)),o.psv.on(m.CLOSE_PANEL,p(o)),t.prototype.hide.call(p(o)),o}c(e,t);var o=e.prototype;return o.destroy=function(){this.psv.off(m.OPEN_PANEL,this),this.psv.off(m.CLOSE_PANEL,this),t.prototype.destroy.call(this)},o.handleEvent=function(t){switch(t.type){case m.OPEN_PANEL:this.toggleActive(t.args[0]===_.MENU);break;case m.CLOSE_PANEL:this.toggleActive(!1)}},o.hide=function(e){t.prototype.hide.call(this,e),this.__hideMenu()},o.show=function(e){t.prototype.show.call(this,e),this.prop.active&&this.__showMenu()},o.onClick=function(){this.prop.active?this.__hideMenu():this.__showMenu()},o.__showMenu=function(){var t=this;this.psv.panel.show({id:_.MENU,content:e.MENU_TEMPLATE(this.parent.collapsed,this.psv,V(e.BUTTON_DATA)),noMargin:!0,clickHandler:function(o){var n=o.target?P(o.target,"li"):void 0,i=n?n.dataset[e.BUTTON_DATA]:void 0;i&&(t.parent.getButton(i).onClick(),t.__hideMenu())}})},o.__hideMenu=function(){this.psv.panel.hide(_.MENU)},e}(yt);xt.id="menu",xt.icon=Ct,xt.BUTTON_DATA="psvButton",xt.MENU_TEMPLATE=function(t,e,o){return'\n<div class="psv-panel-menu psv-panel-menu--stripped">\n  <h1 class="psv-panel-menu-title">'+Ct+" "+e.config.lang.menu+'</h1>\n  <ul class="psv-panel-menu-list">\n    '+t.map((function(t){return"\n    <li data-"+o+'="'+t.prop.id+'" class="psv-panel-menu-item" tabindex="0">\n      <span class="psv-panel-menu-item-icon">'+t.container.innerHTML+'</span>\n      <span class="psv-panel-menu-item-label">'+t.container.title+"</span>\n    </li>\n    "})).join("")+"\n  </ul>\n</div>\n"};var Pt=function(){function t(t){void 0===t&&(t=200),this.delay=t,this.time=0,this.timeout=null}var e=t.prototype;return e.down=function(){this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.time=(new Date).getTime()},e.up=function(t){var e=this;this.time&&((new Date).getTime()-this.time<this.delay?this.timeout=setTimeout((function(){t(),e.timeout=null,e.time=0}),this.delay):(t(),this.time=0))},t}();function At(t){var e=0;switch(t){case"up":e=90;break;case"right":e=180;break;case"down":e=-90;break;default:e=0}return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="40 40 432 432"><g transform="rotate(0, 256, 256)"><path fill="currentColor" d="M425.23 210.55H227.39a5 5 0 01-3.53-8.53l56.56-56.57a45.5 45.5 0 000-64.28 45.15 45.15 0 00-32.13-13.3 45.15 45.15 0 00-32.14 13.3L41.32 256l174.83 174.83a45.15 45.15 0 0032.14 13.3 45.15 45.15 0 0032.13-13.3 45.5 45.5 0 000-64.28l-56.57-56.57a5 5 0 013.54-8.53h197.84c25.06 0 45.45-20.39 45.45-45.45s-20.4-45.45-45.45-45.45z"/></g>\x3c!-- Created by Flatart from the Noun Project --\x3e</svg>\n'.replace("rotate(0","rotate("+e)}var St=function(t){function e(e,o){var n;return(n=t.call(this,e,"psv-button--hover-scale psv-move-button")||this).container.title=n.psv.config.lang.move,n.prop=a({},n.prop,{value:o,handler:new Pt}),n.container.addEventListener("mousedown",p(n)),n.container.addEventListener("keydown",p(n)),n.container.addEventListener("keyup",p(n)),n.psv.container.addEventListener("mouseup",p(n)),n.psv.container.addEventListener("touchend",p(n)),n}c(e,t);var o=e.prototype;return o.destroy=function(){this.__onMouseUp(),this.psv.container.removeEventListener("mouseup",this),this.psv.container.removeEventListener("touchend",this),t.prototype.destroy.call(this)},o.handleEvent=function(t){switch(t.type){case"mousedown":this.__onMouseDown();break;case"mouseup":case"touchend":this.__onMouseUp();break;case"keydown":t.key===E.Enter&&this.__onMouseDown();break;case"keyup":t.key===E.Enter&&this.__onMouseUp()}},o.isSupported=function(){return{initial:!M.isTouchEnabled.initial,promise:M.isTouchEnabled.promise.then((function(t){return!t}))}},o.onClick=function(){},o.__onMouseDown=function(){this.prop.enabled&&(this.psv.__stopAll(),this.psv.dynamics.position.roll(this.prop.value),this.prop.handler.down())},o.__onMouseUp=function(){var t=this;this.prop.enabled&&this.prop.handler.up((function(){return t.psv.dynamics.position.stop()}))},e}(yt);St.groupId="move";var It=function(t){function e(e){return t.call(this,e,{latitude:!0})||this}return c(e,t),e}(St);It.id="moveDown",It.icon=At("down");var kt=function(t){function e(e){return t.call(this,e,{longitude:!0})||this}return c(e,t),e}(St);kt.id="moveLeft",kt.icon=At("left");var Dt=function(t){function e(e){return t.call(this,e,{longitude:!1})||this}return c(e,t),e}(St);Dt.id="moveRight",Dt.icon=At("right");var Rt=function(t){function e(e){return t.call(this,e,{latitude:!1})||this}return c(e,t),e}(St);Rt.id="moveUp",Rt.icon=At("up");var Nt=function(t){function e(e,o){var n;return(n=t.call(this,e,"psv-button--hover-scale psv-zoom-button")||this).prop=a({},n.prop,{value:o,handler:new Pt}),n.container.addEventListener("mousedown",p(n)),n.container.addEventListener("keydown",p(n)),n.container.addEventListener("keyup",p(n)),n.psv.container.addEventListener("mouseup",p(n)),n.psv.container.addEventListener("touchend",p(n)),n}c(e,t);var o=e.prototype;return o.destroy=function(){this.__onMouseUp(),this.psv.container.removeEventListener("mouseup",this),this.psv.container.removeEventListener("touchend",this),t.prototype.destroy.call(this)},o.handleEvent=function(t){switch(t.type){case"mousedown":this.__onMouseDown();break;case"mouseup":case"touchend":this.__onMouseUp();break;case"keydown":t.key===E.Enter&&this.__onMouseDown();break;case"keyup":t.key===E.Enter&&this.__onMouseUp()}},o.isSupported=function(){return{initial:!M.isTouchEnabled.initial,promise:M.isTouchEnabled.promise.then((function(t){return!t}))}},o.onClick=function(){},o.__onMouseDown=function(){this.prop.enabled&&(this.psv.dynamics.zoom.roll(this.prop.value),this.prop.handler.down())},o.__onMouseUp=function(){var t=this;this.prop.enabled&&this.prop.handler.up((function(){return t.psv.dynamics.zoom.stop()}))},e}(yt);Nt.groupId="zoom";var Ht=function(t){function e(e){return t.call(this,e,!1)||this}return c(e,t),e}(Nt);Ht.id="zoomIn",Ht.icon='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path fill="currentColor" d="M14.043 12.22a7.738 7.738 0 1 0-1.823 1.822l4.985 4.985c.503.504 1.32.504 1.822 0a1.285 1.285 0 0 0 0-1.822l-4.984-4.985zm-6.305 1.043a5.527 5.527 0 1 1 0-11.053 5.527 5.527 0 0 1 0 11.053z"/><path fill="currentColor" d="M8.728 4.009H6.744v2.737H4.006V8.73h2.738v2.736h1.984V8.73h2.737V6.746H8.728z"/>\x3c!--Created by Ryan Canning from the Noun Project--\x3e</svg>\n';var zt=function(t){function e(e){return t.call(this,e,!0)||this}return c(e,t),e}(Nt);zt.id="zoomOut",zt.icon='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path fill="currentColor" d="M14.043 12.22a7.738 7.738 0 1 0-1.823 1.822l4.985 4.985c.503.504 1.32.504 1.822 0a1.285 1.285 0 0 0 0-1.822l-4.984-4.985zm-6.305 1.043a5.527 5.527 0 1 1 0-11.053 5.527 5.527 0 0 1 0 11.053z"/><path fill="currentColor" d="M4.006 6.746h7.459V8.73H4.006z"/>\x3c!--Created by Ryan Canning from the Noun Project--\x3e</svg>\n';var Ut=function(t){function e(e){var o;return(o=t.call(this,e,"psv-zoom-range",!1,!1)||this).prop=a({},o.prop,{mediaMinWidth:0}),o.zoomRange=document.createElement("div"),o.zoomRange.className="psv-zoom-range-line",o.container.appendChild(o.zoomRange),o.zoomValue=document.createElement("div"),o.zoomValue.className="psv-zoom-range-handle",o.zoomRange.appendChild(o.zoomValue),o.slider=new mt({container:o.container,direction:mt.HORIZONTAL,onUpdate:function(t){return o.__onSliderUpdate(t)}}),o.prop.mediaMinWidth=parseInt(D(o.container,"maxWidth"),10),o.psv.on(m.ZOOM_UPDATED,p(o)),o.psv.prop.ready?o.__moveZoomValue(o.psv.getZoomLevel()):o.psv.once(m.READY,p(o)),o.refreshUi(),o}c(e,t);var o=e.prototype;return o.destroy=function(){this.slider.destroy(),delete this.zoomRange,delete this.zoomValue,this.psv.off(m.ZOOM_UPDATED,this),t.prototype.destroy.call(this)},o.handleEvent=function(t){switch(t.type){case m.ZOOM_UPDATED:this.__moveZoomValue(t.args[0]);break;case m.READY:this.__moveZoomValue(this.psv.getZoomLevel())}},o.isSupported=function(){return{initial:!M.isTouchEnabled.initial,promise:M.isTouchEnabled.promise.then((function(t){return!t}))}},o.refreshUi=function(){this.prop.supported&&(this.psv.prop.size.width<=this.prop.mediaMinWidth&&this.prop.visible?this.hide():this.psv.prop.size.width>this.prop.mediaMinWidth&&!this.prop.visible&&this.show())},o.onClick=function(){},o.__moveZoomValue=function(t){this.zoomValue.style.left=t/100*this.zoomRange.offsetWidth-this.zoomValue.offsetWidth/2+"px"},o.__onSliderUpdate=function(t){t.mousedown&&this.psv.zoom(100*t.value)},e}(yt);Ut.id="zoomRange",Ut.groupId="zoom";var Ft,Wt=function(t){function e(e){var o;return(o=t.call(this)||this).psv=e,o}c(e,t);var o=e.prototype;return o.init=function(){},o.destroy=function(){delete this.psv},e}(o.EventEmitter);Wt.id=null;var Vt={panorama:null,container:null,adapter:null,plugins:[],caption:null,description:null,downloadUrl:null,loadingImg:null,loadingTxt:"Loading...",size:null,fisheye:!1,minFov:30,maxFov:90,defaultZoomLvl:50,defaultLong:0,defaultLat:0,sphereCorrection:null,moveSpeed:1,zoomSpeed:1,autorotateDelay:null,autorotateSpeed:"2rpm",autorotateLat:null,moveInertia:!0,mousewheel:!0,mousemove:!0,captureCursor:!1,mousewheelCtrlKey:!1,touchmoveTwoFingers:!1,useXmpData:!0,panoData:null,requestHeaders:null,canvasBackground:"#000",withCredentials:!1,navbar:["autorotate","zoom","move","download","description","caption","fullscreen"],lang:{autorotate:"Automatic rotation",zoom:"Zoom",zoomOut:"Zoom out",zoomIn:"Zoom in",move:"Move",download:"Download",fullscreen:"Fullscreen",menu:"Menu",twoFingers:"Use two fingers to navigate",ctrlZoom:"Use ctrl + scroll to zoom the image",loadError:"The panorama can't be loaded"},keyboard:(Ft={},Ft[E.ArrowUp]=f.ROTATE_LAT_UP,Ft[E.ArrowDown]=f.ROTATE_LAT_DOWN,Ft[E.ArrowRight]=f.ROTATE_LONG_RIGHT,Ft[E.ArrowLeft]=f.ROTATE_LONG_LEFT,Ft[E.PageUp]=f.ZOOM_IN,Ft[E.PageDown]=f.ZOOM_OUT,Ft[E.Plus]=f.ZOOM_IN,Ft[E.Minus]=f.ZOOM_OUT,Ft[E.Space]=f.TOGGLE_AUTOROTATE,Ft)},jt={panorama:"Use setPanorama method to change the panorama",panoData:"Use setPanorama method to change the panorama",container:"Cannot change viewer container",adapter:"Cannot change adapter",plugins:"Cannot change plugins"},Yt={zoomButtonIncrement:"zoomButtonIncrement is deprecated, use zoomSpeed",mousewheelSpeed:"mousewheelSpeed is deprecated, use zoomSpeed",sphereCorrectionReorder:"sphereCorrectionReorder is deprecated"},Zt={container:function(t){if(!t)throw new n("No value given for container.");return t},adapter:function(t){if(!(t=t?Array.isArray(t)?[Q(t[0],i),t[1]]:[Q(t,i)]:[wt])[0])throw new n("Un undefined value with given for adapter.");return t},defaultLong:function(t){return ht(t)},defaultLat:function(t){return ht(t,!0)},minFov:function(t,e){return e.maxFov<t&&(tt("maxFov cannot be lower than minFov"),t=e.maxFov),N(t,1,179)},maxFov:function(t,e){return t<e.minFov&&(t=e.minFov),N(t,1,179)},lang:function(t){return Array.isArray(t.twoFingers)&&(tt("lang.twoFingers must not be an array"),t.twoFingers=t.twoFingers[0]),a({},Vt.lang,t)},keyboard:function(t){return!0===t?X(Vt.keyboard):t},autorotateLat:function(t,e){return ht(null===t?e.defaultLat:t,!0)},autorotateSpeed:function(t){return ct(t)},fisheye:function(t){return!0===t?1:!1===t?0:t},plugins:function(t){return t.map((function(t){if(!(t=Array.isArray(t)?[Q(t[0],Wt),t[1]]:[Q(t,Wt)])[0])throw new n("Un undefined value was given for plugins.");return t}))}};var Xt={},Bt={};function Gt(t,e){if(!t.id)throw new n("Button ID is required");if(Xt[t.id]=t,t.groupId&&(Bt[t.groupId]=Bt[t.groupId]||[],Bt[t.groupId].push(t)),"string"==typeof e)switch(e){case"start":Vt.navbar.unshift(t.id);break;case"end":Vt.navbar.push(t.id);break;default:var o=e.split(":"),i=o[0],r=o[1];Vt.navbar.splice(Vt.navbar.indexOf(i)+("right"===r?1:0),0,t.id)}}[Et,zt,Ut,Ht,Mt,Ot,Lt,kt,Dt,Rt,It].forEach(Gt);var Kt=function(t){function e(e){var o;return(o=t.call(this,e,"psv-navbar")||this).children=[],o.collapsed=[],o}c(e,t);var o=e.prototype;return o.setButtons=function(t){var e=this;this.children.slice().forEach((function(t){return t.destroy()})),this.children.length=0;var o=this.__cleanButtons(t);-1!==o.indexOf(bt.id)&&-1===o.indexOf(Mt.id)&&o.splice(o.indexOf(bt.id),0,Mt.id),o.forEach((function(t){if("object"==typeof t)new Tt(e,t);else if(Xt[t])new Xt[t](e);else if(Bt[t])Bt[t].forEach((function(t){return new t(e)}));else{if(t!==bt.id)throw new n("Unknown button "+t);new bt(e,e.psv.config.caption)}})),new xt(this),this.children.forEach((function(t){"function"==typeof t.checkSupported&&t.checkSupported()}))},o.setCaption=function(t){var e=this.getButton(bt.id,!1);null==e||e.setCaption(t)},o.getButton=function(t,e){void 0===e&&(e=!0);var o=null;return this.children.some((function(e){return e.prop.id===t&&(o=e,!0)})),!o&&e&&tt('button "'+t+'" not found in the navbar'),o},o.show=function(){this.container.classList.add("psv-navbar--open"),this.prop.visible=!0},o.hide=function(){this.container.classList.remove("psv-navbar--open"),this.prop.visible=!1},o.refreshUi=function(){if(t.prototype.refreshUi.call(this),!0===this.psv.prop.uiRefresh){var e=this.container.offsetWidth,o=0,n=[],i=[];if(this.children.forEach((function(t){t.prop.visible&&(o+=t.prop.width,n.push(t),t.prop.collapsable&&i.push(t))})),!n.length)return;e<o&&i.length>0?(i.forEach((function(t){return t.collapse()})),this.collapsed=i,this.getButton(xt.id).show(!1)):e>=o&&this.collapsed.length>0&&(this.collapsed.forEach((function(t){return t.uncollapse()})),this.collapsed=[],this.getButton(xt.id).hide(!1));var r=this.getButton(bt.id,!1);r&&r.refreshUi()}},o.__cleanButtons=function(t){return!0===t?X(Vt.navbar):"string"==typeof t?t.split(/[ ,]/):t||[]},e}(_t),qt=function(t){function e(e){var o;return(o=t.call(this,e,"psv-loader-container")||this).loader=document.createElement("div"),o.loader.className="psv-loader",o.container.appendChild(o.loader),o.canvas=document.createElement("canvas"),o.canvas.className="psv-loader-canvas",o.canvas.width=o.loader.clientWidth*M.pixelRatio,o.canvas.height=o.loader.clientWidth*M.pixelRatio,o.loader.appendChild(o.canvas),o.prop=a({},o.prop,{tickness:(o.loader.offsetWidth-o.loader.clientWidth)/2*M.pixelRatio,current:null}),o.refreshUi(),o.hide(),o}c(e,t);var o=e.prototype;return o.destroy=function(){delete this.loader,delete this.canvas,t.prototype.destroy.call(this)},o.refreshUi=function(){if(this.prop.current!==(this.psv.config.loadingImg||this.psv.config.loadingTxt)){var t;if(this.prop.current&&this.loader.removeChild(this.loader.lastChild),this.psv.config.loadingImg?((t=document.createElement("img")).className="psv-loader-image",t.src=this.psv.config.loadingImg):this.psv.config.loadingTxt&&((t=document.createElement("div")).className="psv-loader-text",t.innerHTML=this.psv.config.loadingTxt),t){var e=Math.round(Math.sqrt(2*Math.pow((this.canvas.width/2-this.prop.tickness/2)/M.pixelRatio,2)));t.style.maxWidth=e+"px",t.style.maxHeight=e+"px",this.loader.appendChild(t)}this.prop.current=this.psv.config.loadingImg||this.psv.config.loadingTxt}},o.setProgress=function(t){var e=this.canvas.getContext("2d");e.clearRect(0,0,this.canvas.width,this.canvas.height),e.lineWidth=this.prop.tickness,e.strokeStyle=D(this.loader,"color"),e.beginPath(),e.arc(this.canvas.width/2,this.canvas.height/2,this.canvas.width/2-this.prop.tickness/2,-Math.PI/2,N(t,0,100)/100*2*Math.PI-Math.PI/2),e.stroke(),this.psv.trigger(m.LOAD_PROGRESS,Math.round(t))},e}(_t),Qt=function(t){function e(e){var o;return(o=t.call(this,e,"psv-notification")||this).prop=a({},o.prop,{visible:!1,contentId:void 0,timeout:null}),o.content=document.createElement("div"),o.content.className="psv-notification-content",o.container.appendChild(o.content),o.content.addEventListener("click",(function(){return o.hide()})),o}c(e,t);var o=e.prototype;return o.destroy=function(){delete this.content,t.prototype.destroy.call(this)},o.isVisible=function(t){return this.prop.visible&&(!t||!this.prop.contentId||this.prop.contentId===t)},o.toggle=function(){throw new n("Notification cannot be toggled")},o.show=function(t){var e=this;this.prop.timeout&&(clearTimeout(this.prop.timeout),this.prop.timeout=null),"string"==typeof t&&(t={content:t}),this.prop.contentId=t.id,this.content.innerHTML=t.content,this.container.classList.add("psv-notification--visible"),this.prop.visible=!0,this.psv.trigger(m.SHOW_NOTIFICATION,t.id),t.timeout&&(this.prop.timeout=setTimeout((function(){return e.hide(t.id)}),t.timeout))},o.hide=function(t){if(this.isVisible(t)){var e=this.prop.contentId;this.container.classList.remove("psv-notification--visible"),this.prop.visible=!1,this.prop.contentId=void 0,this.psv.trigger(m.HIDE_NOTIFICATION,e)}},e}(_t),$t=function(t){function e(e){var o;return(o=t.call(this,e,"psv-overlay")||this).prop=a({},o.prop,{contentId:void 0,dissmisable:!0}),o.image=document.createElement("div"),o.image.className="psv-overlay-image",o.container.appendChild(o.image),o.text=document.createElement("div"),o.text.className="psv-overlay-text",o.container.appendChild(o.text),o.subtext=document.createElement("div"),o.subtext.className="psv-overlay-subtext",o.container.appendChild(o.subtext),o.psv.on(m.CLICK,p(o)),o.psv.on(m.KEY_PRESS,p(o)),t.prototype.hide.call(p(o)),o}c(e,t);var o=e.prototype;return o.destroy=function(){this.psv.off(m.CLICK,this),this.psv.off(m.KEY_PRESS,this),delete this.image,delete this.text,delete this.subtext,t.prototype.destroy.call(this)},o.handleEvent=function(t){switch(t.type){case m.CLICK:this.isVisible()&&this.prop.dissmisable&&(this.hide(),t.stopPropagation());break;case m.KEY_PRESS:this.isVisible()&&this.prop.dissmisable&&t.args[0]===E.Escape&&(this.hide(),t.preventDefault())}},o.isVisible=function(t){return this.prop.visible&&(!t||!this.prop.contentId||this.prop.contentId===t)},o.toggle=function(){throw new n("Overlay cannot be toggled")},o.show=function(e){"string"==typeof e&&(e={text:e}),this.prop.contentId=e.id,this.prop.dissmisable=!1!==e.dissmisable,this.image.innerHTML=e.image||"",this.text.innerHTML=e.text||"",this.subtext.innerHTML=e.subtext||"",t.prototype.show.call(this),this.psv.trigger(m.SHOW_OVERLAY,e.id)},o.hide=function(e){if(this.isVisible(e)){var o=this.prop.contentId;t.prototype.hide.call(this),this.prop.contentId=void 0,this.psv.trigger(m.HIDE_OVERLAY,o)}},e}(_t),Jt=function(t){function e(e){var o;(o=t.call(this,e,"psv-panel")||this).prop=a({},o.prop,{visible:!1,contentId:void 0,mouseX:0,mouseY:0,mousedown:!1,clickHandler:null,keyHandler:null,width:{}});var n=document.createElement("div");n.className="psv-panel-resizer",o.container.appendChild(n);var i=document.createElement("div");return i.className="psv-panel-close-button",o.container.appendChild(i),o.content=document.createElement("div"),o.content.className="psv-panel-content",o.container.appendChild(o.content),o.container.addEventListener(M.mouseWheelEvent,(function(t){return t.stopPropagation()})),i.addEventListener("click",(function(){return o.hide()})),n.addEventListener("mousedown",p(o)),n.addEventListener("touchstart",p(o)),o.psv.container.addEventListener("mouseup",p(o)),o.psv.container.addEventListener("touchend",p(o)),o.psv.container.addEventListener("mousemove",p(o)),o.psv.container.addEventListener("touchmove",p(o)),o.psv.on(m.KEY_PRESS,p(o)),o}c(e,t);var o=e.prototype;return o.destroy=function(){this.psv.off(m.KEY_PRESS,this),this.psv.container.removeEventListener("mousemove",this),this.psv.container.removeEventListener("touchmove",this),this.psv.container.removeEventListener("mouseup",this),this.psv.container.removeEventListener("touchend",this),delete this.prop,delete this.content,t.prototype.destroy.call(this)},o.handleEvent=function(t){switch(t.type){case"mousedown":this.__onMouseDown(t);break;case"touchstart":this.__onTouchStart(t);break;case"mousemove":this.__onMouseMove(t);break;case"touchmove":this.__onTouchMove(t);break;case"mouseup":case"touchend":this.__onMouseUp(t);break;case m.KEY_PRESS:this.isVisible()&&t.args[0]===E.Escape&&(this.hide(),t.preventDefault())}},o.isVisible=function(t){return this.prop.visible&&(!t||!this.prop.contentId||this.prop.contentId===t)},o.toggle=function(){throw new n("Panel cannot be toggled")},o.show=function(t){var e=this,o=this.isVisible(t.id);"string"==typeof t&&(t={content:t}),this.prop.contentId=t.id,this.prop.visible=!0,this.prop.clickHandler&&(this.content.removeEventListener("click",this.prop.clickHandler),this.content.removeEventListener("keydown",this.prop.keyHandler),this.prop.clickHandler=null,this.prop.keyHandler=null),t.id&&this.prop.width[t.id]?this.container.style.width=this.prop.width[t.id]:t.width?this.container.style.width=t.width:this.container.style.width=null,this.content.innerHTML=t.content,this.content.scrollTop=0,this.container.classList.add("psv-panel--open"),C(this.content,"psv-panel-content--no-margin",!0===t.noMargin),t.clickHandler&&(this.prop.clickHandler=t.clickHandler,this.prop.keyHandler=function(e){e.key===E.Enter&&t.clickHandler(e)},this.content.addEventListener("click",this.prop.clickHandler),this.content.addEventListener("keydown",this.prop.keyHandler),o||setTimeout((function(){var t;null==(t=e.content.querySelector("a,button,[tabindex]"))||t.focus()}),300)),this.psv.trigger(m.OPEN_PANEL,t.id)},o.hide=function(t){if(this.isVisible(t)){var e=this.prop.contentId;this.prop.visible=!1,this.prop.contentId=void 0,this.content.innerHTML=null,this.container.classList.remove("psv-panel--open"),this.prop.clickHandler&&(this.content.removeEventListener("click",this.prop.clickHandler),this.prop.clickHandler=null),this.psv.trigger(m.CLOSE_PANEL,e)}},o.__onMouseDown=function(t){t.stopPropagation(),this.__startResize(t)},o.__onTouchStart=function(t){t.stopPropagation(),this.__startResize(t.changedTouches[0])},o.__onMouseUp=function(t){this.prop.mousedown&&(t.stopPropagation(),this.prop.mousedown=!1,this.content.classList.remove("psv-panel-content--no-interaction"))},o.__onMouseMove=function(t){this.prop.mousedown&&(t.stopPropagation(),this.__resize(t))},o.__onTouchMove=function(t){this.prop.mousedown&&this.__resize(t.touches[0])},o.__startResize=function(t){this.prop.mouseX=t.clientX,this.prop.mouseY=t.clientY,this.prop.mousedown=!0,this.content.classList.add("psv-panel-content--no-interaction")},o.__resize=function(t){var e=t.clientX,o=t.clientY,n=Math.max(200,this.container.offsetWidth-(e-this.prop.mouseX))+"px";this.prop.contentId&&(this.prop.width[this.prop.contentId]=n),this.container.style.width=n,this.prop.mouseX=e,this.prop.mouseY=o},e}(_t),te=function(){function t(t){this.psv=t,this.config=t.config,this.prop=t.prop}return t.prototype.destroy=function(){delete this.psv,delete this.config,delete this.prop},t}(),ee=new e.Vector2,oe=new e.Vector3,ne=new e.Euler(0,0,0,"ZXY"),ie=function(t){function o(e){return t.call(this,e)||this}c(o,t);var i=o.prototype;return i.fovToZoomLevel=function(t){var e=Math.round((t-this.config.minFov)/(this.config.maxFov-this.config.minFov)*100);return e-2*(e-50)},i.zoomLevelToFov=function(t){return this.config.maxFov+t/100*(this.config.minFov-this.config.maxFov)},i.vFovToHFov=function(t){return e.MathUtils.radToDeg(2*Math.atan(Math.tan(e.MathUtils.degToRad(t)/2)*this.prop.aspect))},i.speedToDuration=function(t,e){if(t&&"number"==typeof t)return Math.abs(t);var o=t?ct(t):this.config.autorotateSpeed;return e/Math.abs(o)*1e3},i.textureCoordsToSphericalCoords=function(t){var e=this.prop.panoData;if(!e)throw new n("Current adapter does not support texture coordinates.");var o=(t.x+e.croppedX)/e.fullWidth*Math.PI*2,i=(t.y+e.croppedY)/e.fullHeight*Math.PI,r={longitude:o>=Math.PI?o-Math.PI:o+Math.PI,latitude:Math.PI/2-i};return ne.equals(this.psv.renderer.mesh.rotation)&&ne.equals(this.psv.renderer.meshContainer.rotation)?r:(this.sphericalCoordsToVector3(r,oe),oe.applyEuler(this.psv.renderer.mesh.rotation),oe.applyEuler(this.psv.renderer.meshContainer.rotation),this.vector3ToSphericalCoords(oe))},i.sphericalCoordsToTextureCoords=function(t){var e=this.prop.panoData;if(!e)throw new n("Current adapter does not support texture coordinates.");ne.equals(this.psv.renderer.mesh.rotation)&&ne.equals(this.psv.renderer.meshContainer.rotation)||(this.sphericalCoordsToVector3(t,oe),ut(oe,this.psv.renderer.meshContainer.rotation),ut(oe,this.psv.renderer.mesh.rotation),t=this.vector3ToSphericalCoords(oe));var o=t.longitude/Math.PI/2*e.fullWidth,i=t.latitude/Math.PI*e.fullHeight;return{x:Math.round(t.longitude<Math.PI?o+e.fullWidth/2:o-e.fullWidth/2)-e.croppedX,y:Math.round(e.fullHeight/2-i)-e.croppedY}},i.sphericalCoordsToVector3=function(t,o){return o||(o=new e.Vector3),o.x=u*-Math.cos(t.latitude)*Math.sin(t.longitude),o.y=u*Math.sin(t.latitude),o.z=u*Math.cos(t.latitude)*Math.cos(t.longitude),o},i.vector3ToSphericalCoords=function(t){var e=Math.acos(t.y/Math.sqrt(t.x*t.x+t.y*t.y+t.z*t.z)),o=Math.atan2(t.x,t.z);return{longitude:o<0?-o:2*Math.PI-o,latitude:Math.PI/2-e}},i.viewerCoordsToVector3=function(t){var e=this.getIntersections(t).filter((function(t){return t.object.userData.psvSphere}));return e.length?e[0].point:null},i.vector3ToViewerCoords=function(t){var e=t.clone();return e.project(this.psv.renderer.camera),{x:Math.round((e.x+1)/2*this.prop.size.width),y:Math.round((1-e.y)/2*this.prop.size.height)}},i.sphericalCoordsToViewerCoords=function(t){return this.vector3ToViewerCoords(this.sphericalCoordsToVector3(t,oe))},i.getIntersections=function(t){return ee.x=2*t.x/this.prop.size.width-1,ee.y=-2*t.y/this.prop.size.height+1,this.psv.renderer.raycaster.setFromCamera(ee,this.psv.renderer.camera),this.psv.renderer.raycaster.intersectObjects(this.psv.renderer.scene.children,!0).filter((function(t){return!!t.object.userData}))},i.cleanPosition=function(t){return void 0!==t.x&&void 0!==t.y?this.textureCoordsToSphericalCoords(t):{longitude:ht(t.longitude),latitude:ht(t.latitude,!0)}},i.cleanSphereCorrection=function(t){return{pan:ht((null==t?void 0:t.pan)||0),tilt:ht((null==t?void 0:t.tilt)||0,!0),roll:ht((null==t?void 0:t.roll)||0,!0,!1)}},i.cleanPanoramaPose=function(t){return{pan:e.MathUtils.degToRad((null==t?void 0:t.poseHeading)||0),tilt:e.MathUtils.degToRad((null==t?void 0:t.posePitch)||0),roll:e.MathUtils.degToRad((null==t?void 0:t.poseRoll)||0)}},o}(te),re=function(t){function o(e){var o;return(o=t.call(this,e)||this).state={moveThreshold:4*M.pixelRatio,keyboardEnabled:!1,moving:!1,zooming:!1,startMouseX:0,startMouseY:0,mouseX:0,mouseY:0,mouseHistory:[],pinchDist:0,keyHandler:new Pt,ctrlKeyDown:!1,dblclickData:null,dblclickTimeout:null,longtouchTimeout:null,twofingersTimeout:null,ctrlZoomTimeout:null},o.__onResize=j((function(){return o.psv.autoSize()}),50),o}c(o,t);var n=o.prototype;return n.init=function(){window.addEventListener("resize",this),window.addEventListener("keydown",this),window.addEventListener("keyup",this),this.psv.container.addEventListener("mouseenter",this),this.psv.container.addEventListener("mousedown",this),this.psv.container.addEventListener("mouseleave",this),this.psv.container.addEventListener("mousemove",this),window.addEventListener("mouseup",this),this.psv.container.addEventListener("touchstart",this),this.psv.container.addEventListener("touchmove",this),window.addEventListener("touchend",this),this.psv.container.addEventListener(M.mouseWheelEvent,this),M.fullscreenEvent&&document.addEventListener(M.fullscreenEvent,this)},n.destroy=function(){window.removeEventListener("resize",this),window.removeEventListener("keydown",this),window.removeEventListener("keyup",this),this.psv.container.removeEventListener("mouseenter",this),this.psv.container.removeEventListener("mousedown",this),this.psv.container.removeEventListener("mouseleave",this),this.psv.container.removeEventListener("mousemove",this),window.removeEventListener("mouseup",this),this.psv.container.removeEventListener("touchstart",this),this.psv.container.removeEventListener("touchmove",this),window.removeEventListener("touchend",this),this.psv.container.removeEventListener(M.mouseWheelEvent,this),M.fullscreenEvent&&document.removeEventListener(M.fullscreenEvent,this),clearTimeout(this.state.dblclickTimeout),clearTimeout(this.state.longtouchTimeout),clearTimeout(this.state.twofingersTimeout),clearTimeout(this.state.ctrlZoomTimeout),delete this.state,t.prototype.destroy.call(this)},n.handleEvent=function(t){switch(t.type){case"resize":this.__onResize();break;case"keydown":this.__onKeyDown(t);break;case"keyup":this.__onKeyUp();break;case"mouseup":this.__onMouseUp(t);break;case"touchend":this.__onTouchEnd(t);break;case M.fullscreenEvent:this.__fullscreenToggled()}if(!P(t.target,".psv-navbar")&&!P(t.target,".psv-panel"))switch(t.type){case"mousedown":this.__onMouseDown(t);break;case"mouseenter":this.__onMouseEnter(t);break;case"mouseleave":this.__onMouseLeave(t);break;case"mousemove":this.__onMouseMove(t);break;case"touchstart":this.__onTouchStart(t);break;case"touchmove":this.__onTouchMove(t);break;case M.mouseWheelEvent:this.__onMouseWheel(t)}},n.enableKeyboard=function(){this.state.keyboardEnabled=!0},n.disableKeyboard=function(){this.state.keyboardEnabled=!1},n.__onKeyDown=function(t){if(this.config.mousewheelCtrlKey&&(this.state.ctrlKeyDown=t.key===E.Control,this.state.ctrlKeyDown&&(clearTimeout(this.state.ctrlZoomTimeout),this.psv.overlay.hide(_.CTRL_ZOOM))),!this.psv.trigger(m.KEY_PRESS,t.key).isDefaultPrevented()&&this.state.keyboardEnabled)if(this.config.keyboard[t.key]===f.TOGGLE_AUTOROTATE)this.psv.toggleAutorotate();else if(this.config.keyboard[t.key]&&!this.state.keyHandler.time){switch(this.config.keyboard[t.key]){case f.ROTATE_LAT_UP:this.psv.dynamics.position.roll({latitude:!1});break;case f.ROTATE_LAT_DOWN:this.psv.dynamics.position.roll({latitude:!0});break;case f.ROTATE_LONG_RIGHT:this.psv.dynamics.position.roll({longitude:!1});break;case f.ROTATE_LONG_LEFT:this.psv.dynamics.position.roll({longitude:!0});break;case f.ZOOM_IN:this.psv.dynamics.zoom.roll(!1);break;case f.ZOOM_OUT:this.psv.dynamics.zoom.roll(!0)}this.state.keyHandler.down()}},n.__onKeyUp=function(){var t=this;this.state.ctrlKeyDown=!1,this.state.keyboardEnabled&&this.state.keyHandler.up((function(){t.psv.dynamics.position.stop(),t.psv.dynamics.zoom.stop()}))},n.__onMouseDown=function(t){this.config.mousemove&&!this.config.captureCursor&&this.__startMove(t)},n.__onMouseEnter=function(t){this.config.mousemove&&this.config.captureCursor&&this.__startMove(t)},n.__onMouseUp=function(t){this.config.mousemove&&!this.config.captureCursor&&this.__stopMove(t)},n.__onMouseLeave=function(t){this.config.mousemove&&this.config.captureCursor&&this.__stopMove(t)},n.__onMouseMove=function(t){if(this.config.mousemove&&(0!==t.buttons?(t.preventDefault(),this.__move(t)):this.config.captureCursor&&this.__moveAbsolute(t)),!B(this.prop.objectsObservers)){var e=A(this.psv.container),o={x:t.clientX-e.left,y:t.clientY-e.top},n=this.psv.dataHelper.getIntersections(o),i=function(e,n,i){e.listener.handleEvent(new CustomEvent(i,{detail:{originalEvent:t,object:e.object,data:e.object.userData[n],viewerPoint:o}}))};G(this.prop.objectsObservers,(function(t,e){var o=n.find((function(t){return t.object.userData[e]}));o?(t.object&&o.object!==t.object&&(i(t,e,w.LEAVE_OBJECT),delete t.object),t.object?i(t,e,w.HOVER_OBJECT):(t.object=o.object,i(t,e,w.ENTER_OBJECT))):t.object&&(i(t,e,w.LEAVE_OBJECT),delete t.object)}))}},n.__onTouchStart=function(t){var e=this;this.config.mousemove&&(1===t.touches.length?(this.config.touchmoveTwoFingers||(this.__startMove(t.touches[0]),t.preventDefault()),this.prop.longtouchTimeout||(this.prop.longtouchTimeout=setTimeout((function(){e.__click(t.touches[0],!0),e.prop.longtouchTimeout=null}),500))):2===t.touches.length&&(this.__cancelLongTouch(),this.__cancelTwoFingersOverlay(),this.__startMoveZoom(t),t.preventDefault()))},n.__onTouchEnd=function(t){this.config.mousemove&&(this.__cancelLongTouch(),this.__cancelTwoFingersOverlay(),1===t.touches.length?this.__stopMoveZoom():0===t.touches.length&&this.__stopMove(t.changedTouches[0]))},n.__onTouchMove=function(t){var e=this;this.config.mousemove&&(this.__cancelLongTouch(),1===t.touches.length?this.config.touchmoveTwoFingers?this.prop.twofingersTimeout||(this.prop.twofingersTimeout=setTimeout((function(){e.psv.overlay.show({id:_.TWO_FINGERS,image:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path fill="currentColor" d="M33.38 33.2a1.96 1.96 0 0 0 1.5-3.23 10.61 10.61 0 0 1 7.18-17.51c.7-.06 1.31-.49 1.61-1.12a13.02 13.02 0 0 1 11.74-7.43c7.14 0 12.96 5.8 12.96 12.9 0 3.07-1.1 6.05-3.1 8.38-.7.82-.61 2.05.21 2.76.83.7 2.07.6 2.78-.22a16.77 16.77 0 0 0 4.04-10.91C72.3 7.54 64.72 0 55.4 0a16.98 16.98 0 0 0-14.79 8.7 14.6 14.6 0 0 0-12.23 14.36c0 3.46 1.25 6.82 3.5 9.45.4.45.94.69 1.5.69m45.74 43.55a22.13 22.13 0 0 1-5.23 12.4c-4 4.55-9.53 6.86-16.42 6.86-12.6 0-20.1-10.8-20.17-10.91a1.82 1.82 0 0 0-.08-.1c-5.3-6.83-14.55-23.82-17.27-28.87-.05-.1 0-.21.02-.23a6.3 6.3 0 0 1 8.24 1.85l9.38 12.59a1.97 1.97 0 0 0 3.54-1.17V25.34a4 4 0 0 1 1.19-2.87 3.32 3.32 0 0 1 2.4-.95c1.88.05 3.4 1.82 3.4 3.94v24.32a1.96 1.96 0 0 0 3.93 0v-33.1a3.5 3.5 0 0 1 7 0v35.39a1.96 1.96 0 0 0 3.93 0v-.44c.05-2.05 1.6-3.7 3.49-3.7 1.93 0 3.5 1.7 3.5 3.82v5.63c0 .24.04.48.13.71l.1.26a1.97 1.97 0 0 0 3.76-.37c.33-1.78 1.77-3.07 3.43-3.07 1.9 0 3.45 1.67 3.5 3.74l-1.77 18.1zM77.39 51c-1.25 0-2.45.32-3.5.9v-.15c0-4.27-3.33-7.74-7.42-7.74-1.26 0-2.45.33-3.5.9V16.69a7.42 7.42 0 0 0-14.85 0v1.86a7 7 0 0 0-3.28-.94 7.21 7.21 0 0 0-5.26 2.07 7.92 7.92 0 0 0-2.38 5.67v37.9l-5.83-7.82a10.2 10.2 0 0 0-13.35-2.92 4.1 4.1 0 0 0-1.53 5.48C20 64.52 28.74 80.45 34.07 87.34c.72 1.04 9.02 12.59 23.4 12.59 7.96 0 14.66-2.84 19.38-8.2a26.06 26.06 0 0 0 6.18-14.6l1.78-18.2v-.2c0-4.26-3.32-7.73-7.42-7.73z"/>\x3c!--Created by AomAm from the Noun Project--\x3e</svg>\n',text:e.config.lang.twoFingers})}),100)):(t.preventDefault(),this.__move(t.touches[0])):2===t.touches.length&&(t.preventDefault(),this.__moveZoom(t),this.__cancelTwoFingersOverlay()))},n.__cancelLongTouch=function(){this.prop.longtouchTimeout&&(clearTimeout(this.prop.longtouchTimeout),this.prop.longtouchTimeout=null)},n.__cancelTwoFingersOverlay=function(){this.prop.twofingersTimeout&&(clearTimeout(this.prop.twofingersTimeout),this.prop.twofingersTimeout=null),this.psv.overlay.hide(_.TWO_FINGERS)},n.__onMouseWheel=function(t){var e=this;if(this.config.mousewheel){if(this.config.mousewheelCtrlKey&&!this.state.ctrlKeyDown)return this.psv.overlay.show({id:_.CTRL_ZOOM,image:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="10 17 79 79"><path fill="currentColor" d="M38.1 29.27c-.24 0-.44.2-.44.45v10.7a.45.45 0 00.9 0v-10.7c0-.25-.2-.45-.45-.45zm10.2 26.66a11.54 11.54 0 01-8.48-6.14.45.45 0 10-.8.41 12.45 12.45 0 009.22 6.62.45.45 0 00.07-.9zm24.55-13.08a23.04 23.04 0 00-22.56-23v7.07l-.01.05a2.83 2.83 0 012.39 2.78v14.03l.09-.02h8.84v-9.22a.45.45 0 11.9 0v9.22h10.35v-.9zm0 27.33V44.66H62.5c-.02 2.01-.52 4-1.47 5.76a.45.45 0 01-.61.18.45.45 0 01-.19-.61 11.54 11.54 0 001.36-5.33h-8.83l-.1-.01a2.83 2.83 0 01-2.83 2.84h-.04-.04a2.83 2.83 0 01-2.83-2.83v-14.9a2.82 2.82 0 012.47-2.8v-7.11a23.04 23.04 0 00-22.57 23v.91h14.72V29.88a8.2 8.2 0 015.02-7.57c.22-.1.5.01.59.24.1.23-.01.5-.24.6a7.3 7.3 0 00-4.47 6.73v13.88h3.9a.45.45 0 110 .9h-3.9v.15a7.32 7.32 0 0011.23 6.17.45.45 0 01.49.76 8.22 8.22 0 01-12.62-6.93v-.15H26.82v25.52a23.04 23.04 0 0023.01 23.01 23.04 23.04 0 0023.02-23.01zm1.8-27.33v27.33A24.85 24.85 0 0149.84 95a24.85 24.85 0 01-24.82-24.82V42.85a24.85 24.85 0 0124.82-24.82 24.85 24.85 0 0124.83 24.82zM57.98 29.88v9.36a.45.45 0 11-.9 0v-9.36a7.28 7.28 0 00-3.4-6.17.45.45 0 01.49-.76 8.18 8.18 0 013.8 6.93z"/>\x3c!-- Created by Icon Island from the Noun Project --\x3e</svg>\n',text:this.config.lang.ctrlZoom}),clearTimeout(this.state.ctrlZoomTimeout),void(this.state.ctrlZoomTimeout=setTimeout((function(){return e.psv.overlay.hide(_.CTRL_ZOOM)}),2e3));t.preventDefault(),t.stopPropagation();var o=5*R(t).spinY*this.config.zoomSpeed;0!==o&&this.psv.dynamics.zoom.step(-o,5)}},n.__fullscreenToggled=function(t){this.prop.fullscreen=void 0!==t?t:S(this.psv.container),this.config.keyboard&&(this.prop.fullscreen?this.psv.startKeyboardControl():this.psv.stopKeyboardControl()),this.psv.trigger(m.FULLSCREEN_UPDATED,this.prop.fullscreen)},n.__startMove=function(t){var e=this;this.psv.stopAutorotate(),this.psv.stopAnimation().then((function(){e.state.mouseX=t.clientX,e.state.mouseY=t.clientY,e.state.startMouseX=e.state.mouseX,e.state.startMouseY=e.state.mouseY,e.state.moving=!0,e.state.zooming=!1,e.state.mouseHistory.length=0,e.__logMouseMove(t)}))},n.__startMoveZoom=function(t){var e={x:t.touches[0].clientX,y:t.touches[0].clientY},o={x:t.touches[1].clientX,y:t.touches[1].clientY};this.state.pinchDist=U(e,o),this.state.mouseX=(e.x+o.x)/2,this.state.mouseY=(e.y+o.y)/2,this.state.startMouseX=this.state.mouseX,this.state.startMouseY=this.state.mouseY,this.state.moving=!0,this.state.zooming=!0},n.__stopMove=function(t){if(!P(t.target,".psv-container"))return this.state.moving=!1,void(this.state.mouseHistory.length=0);this.state.moving&&(Math.abs(t.clientX-this.state.startMouseX)<this.state.moveThreshold&&Math.abs(t.clientY-this.state.startMouseY)<this.state.moveThreshold?(this.__click(t),this.state.moving=!1):this.config.moveInertia?(this.__logMouseMove(t),this.__stopMoveInertia(t)):this.state.moving=!1,this.state.mouseHistory.length=0)},n.__stopMoveZoom=function(){this.state.mouseHistory.length=0,this.state.moving=!1,this.state.zooming=!1},n.__stopMoveInertia=function(t){var e=this,o=t.clientX-this.state.mouseHistory[0][1],n=t.clientY-this.state.mouseHistory[0][2],i=Math.sqrt(o*o+n*n);this.prop.animationPromise=new dt({properties:{clientX:{start:t.clientX,end:t.clientX+o},clientY:{start:t.clientY,end:t.clientY+n}},duration:i*l/100,easing:"outCirc",onTick:function(t){e.__move(t,!1)}}),this.prop.animationPromise.then((function(){e.state.moving=!1}))},n.__click=function(t,e){var o=this;void 0===e&&(e=!1);var n=this.psv.container.getBoundingClientRect(),i={rightclick:e||2===t.button,target:t.target,clientX:t.clientX,clientY:t.clientY,viewerX:t.clientX-n.left,viewerY:t.clientY-n.top},r=this.psv.dataHelper.getIntersections({x:i.viewerX,y:i.viewerY}),s=r.find((function(t){return t.object.userData.psvSphere}));if(s){var a=this.psv.dataHelper.vector3ToSphericalCoords(s.point);i.longitude=a.longitude,i.latitude=a.latitude,i.objects=r.map((function(t){return t.object})).filter((function(t){return!t.userData.psvSphere}));try{var c=this.psv.dataHelper.sphericalCoordsToTextureCoords(i);i.textureX=c.x,i.textureY=c.y}catch(t){i.textureX=NaN,i.textureY=NaN}this.state.dblclickTimeout?(Math.abs(this.state.dblclickData.clientX-i.clientX)<this.state.moveThreshold&&Math.abs(this.state.dblclickData.clientY-i.clientY)<this.state.moveThreshold&&this.psv.trigger(m.DOUBLE_CLICK,this.state.dblclickData),clearTimeout(this.state.dblclickTimeout),this.state.dblclickTimeout=null,this.state.dblclickData=null):(this.psv.trigger(m.CLICK,i),this.state.dblclickData=X(i),this.state.dblclickTimeout=setTimeout((function(){o.state.dblclickTimeout=null,o.state.dblclickData=null}),300))}},n.__move=function(t,o){if(this.state.moving){var n=t.clientX,i=t.clientY,r={longitude:(n-this.state.mouseX)/this.prop.size.width*this.config.moveSpeed*e.MathUtils.degToRad(this.prop.hFov),latitude:(i-this.state.mouseY)/this.prop.size.height*this.config.moveSpeed*e.MathUtils.degToRad(this.prop.vFov)},s=this.psv.getPosition();this.psv.rotate({longitude:s.longitude-r.longitude,latitude:s.latitude+r.latitude}),this.state.mouseX=n,this.state.mouseY=i,!1!==o&&this.__logMouseMove(t)}},n.__moveAbsolute=function(t){if(this.state.moving){var e=this.psv.container.getBoundingClientRect();this.psv.dynamics.position.goto({longitude:((t.clientX-e.left)/e.width-.5)*Math.PI*2,latitude:-((t.clientY-e.top)/e.height-.5)*Math.PI},10)}},n.__moveZoom=function(t){if(this.state.zooming&&this.state.moving){var e={x:t.touches[0].clientX,y:t.touches[0].clientY},o={x:t.touches[1].clientX,y:t.touches[1].clientY},n=U(e,o),i=80*(n-this.state.pinchDist)/this.prop.size.width*this.config.zoomSpeed;this.psv.zoom(this.psv.getZoomLevel()+i),this.__move({clientX:(e.x+o.x)/2,clientY:(e.y+o.y)/2}),this.state.pinchDist=n}},n.__logMouseMove=function(t){var e=Date.now();this.state.mouseHistory.push([e,t.clientX,t.clientY]);for(var o=null,n=0;n<this.state.mouseHistory.length;)this.state.mouseHistory[0][n]<e-l?this.state.mouseHistory.splice(n,1):o&&this.state.mouseHistory[0][n]-o>30?(this.state.mouseHistory.splice(0,n),n=0,o=this.state.mouseHistory[0][n]):(n++,o=this.state.mouseHistory[0][n])},o}(te),se=function(t){function o(o){var n,i;return(i=t.call(this,o)||this).renderer=new e.WebGLRenderer({alpha:!0,antialias:!0}),i.renderer.setPixelRatio(M.pixelRatio),i.renderer.domElement.className="psv-canvas",i.scene=new e.Scene,i.camera=new e.PerspectiveCamera(50,16/9,1,20),i.mesh=i.psv.adapter.createMesh(),i.mesh.userData=((n={}).psvSphere=!0,n),i.meshContainer=new e.Group,i.meshContainer.add(i.mesh),i.scene.add(i.meshContainer),i.raycaster=new e.Raycaster,i.timestamp=null,i.ready=!1,i.canvasContainer=document.createElement("div"),i.canvasContainer.className="psv-canvas-container",i.canvasContainer.style.background=i.psv.config.canvasBackground,i.canvasContainer.style.cursor=i.psv.config.mousemove?"move":"default",i.canvasContainer.appendChild(i.renderer.domElement),i.psv.container.appendChild(i.canvasContainer),o.on(m.SIZE_UPDATED,p(i)),o.on(m.ZOOM_UPDATED,p(i)),o.on(m.POSITION_UPDATED,p(i)),o.on(m.CONFIG_CHANGED,p(i)),i.hide(),i}c(o,t);var n=o.prototype;return n.destroy=function(){this.renderer.setAnimationLoop(null),this.__cleanTHREEScene(this.scene),this.psv.container.removeChild(this.canvasContainer),delete this.canvasContainer,delete this.renderer,delete this.scene,delete this.camera,delete this.mesh,delete this.meshContainer,delete this.raycaster,t.prototype.destroy.call(this)},n.handleEvent=function(t){switch(t.type){case m.SIZE_UPDATED:this.__onSizeUpdated();break;case m.ZOOM_UPDATED:this.__onZoomUpdated();break;case m.POSITION_UPDATED:this.__onPositionUpdated();break;case m.CONFIG_CHANGED:t.args[0].includes("fisheye")&&this.__onPositionUpdated(),t.args[0].includes("mousemove")&&(this.canvasContainer.style.cursor=this.psv.config.mousemove?"move":"default")}},n.hide=function(){this.canvasContainer.style.opacity=0},n.show=function(){this.canvasContainer.style.opacity=1},n.__onSizeUpdated=function(){this.renderer.setSize(this.prop.size.width,this.prop.size.height),this.camera.aspect=this.prop.aspect,this.camera.updateProjectionMatrix(),this.prop.needsUpdate=!0},n.__onZoomUpdated=function(){this.camera.fov=this.prop.vFov,this.camera.updateProjectionMatrix(),this.prop.needsUpdate=!0},n.__onPositionUpdated=function(){this.camera.position.set(0,0,0),this.camera.lookAt(this.prop.direction),this.config.fisheye&&this.camera.position.copy(this.prop.direction).multiplyScalar(this.config.fisheye/2).negate(),this.prop.needsUpdate=!0},n.__renderLoop=function(t){var e=null!==this.timestamp?t-this.timestamp:0;this.timestamp=t,this.psv.trigger(m.BEFORE_RENDER,t,e),G(this.psv.dynamics,(function(t){return t.update(e)})),this.prop.needsUpdate&&(this.render(),this.prop.needsUpdate=!1)},n.render=function(){this.renderer.render(this.scene,this.camera),this.psv.trigger(m.RENDER)},n.setTexture=function(t){var e=this;this.prop.panoData=t.panoData,this.psv.adapter.setTexture(this.mesh,t),this.ready||(this.renderer.setAnimationLoop((function(t){return e.__renderLoop(t)})),this.ready=!0),this.psv.needsUpdate(),this.psv.trigger(m.PANORAMA_LOADED,t)},n.setPanoramaPose=function(t,e){void 0===e&&(e=this.mesh);var o=this.psv.dataHelper.cleanPanoramaPose(t);e.rotation.set(-o.tilt,-o.pan,-o.roll,"ZXY")},n.setSphereCorrection=function(t,e){void 0===e&&(e=this.meshContainer);var o=this.psv.dataHelper.cleanSphereCorrection(t);e.rotation.set(o.tilt,o.pan,o.roll,"ZXY")},n.transition=function(t,o){var n=this,i=et(o),r="zoom"in o,s=new e.Group,a=this.psv.adapter.createMesh(.5);if(this.psv.adapter.setTexture(a,t,!0),this.psv.adapter.setTextureOpacity(a,0),this.setPanoramaPose(t.panoData,a),this.setSphereCorrection(o.sphereCorrection,s),i){var c=this.psv.dataHelper.cleanPosition(o),h=this.psv.getPosition(),p=new e.Vector3(0,1,0);s.rotateOnWorldAxis(p,c.longitude-h.longitude);var l=new e.Vector3(0,1,0).cross(this.camera.getWorldDirection(new e.Vector3)).normalize();s.rotateOnWorldAxis(l,c.latitude-h.latitude)}s.add(a),this.scene.add(s);var u=new dt({properties:{opacity:{start:0,end:1},zoom:r?{start:this.psv.getZoomLevel(),end:o.zoom}:void 0},duration:o.transition,easing:"outCubic",onTick:function(t){n.psv.adapter.setTextureOpacity(a,t.opacity),n.psv.adapter.setTextureOpacity(n.mesh,1-t.opacity),r&&n.psv.zoom(t.zoom),n.psv.needsUpdate()}});return u.then((function(e){e?(n.setTexture(t),n.psv.adapter.setTextureOpacity(n.mesh,1),n.setPanoramaPose(t.panoData),n.setSphereCorrection(o.sphereCorrection),i&&n.psv.rotate(o)):n.psv.adapter.disposeTexture(t),n.scene.remove(s),a.geometry.dispose(),a.geometry=null})),u},n.__cleanTHREEScene=function(t){var o=this;t.traverse((function(n){n.geometry&&n.geometry.dispose(),n.material&&(Array.isArray(n.material)?n.material.forEach((function(t){t.map&&t.map.dispose(),t.dispose()})):(n.material.map&&n.material.map.dispose(),n.material.dispose())),!n.dispose||n instanceof e.Scene||n.dispose(),n!==t&&o.__cleanTHREEScene(n)}))},o}(te),ae=function(t){function o(o){var n;return(n=t.call(this,o)||this).loader=new e.FileLoader,n.loader.setResponseType("blob"),n.config.withCredentials&&n.loader.setWithCredentials(!0),n.config.requestHeaders&&"object"==typeof n.config.requestHeaders&&n.loader.setRequestHeader(n.config.requestHeaders),n}c(o,t);var n=o.prototype;return n.destroy=function(){this.abortLoading(),t.prototype.destroy.call(this)},n.loadTexture=function(t,e){return this.psv.adapter.loadTexture(t,e)},n.abortLoading=function(){},n.loadFile=function(t,e){var o=this;return this.config.requestHeaders&&"function"==typeof this.config.requestHeaders&&this.loader.setRequestHeader(this.config.requestHeaders(t)),new Promise((function(n,i){var r=0;e&&e(r),o.loader.load(t,(function(t){r=100,e&&e(r),n(t)}),(function(t){if(t.lengthComputable){var o=t.loaded/t.total*100;o>r&&(r=o,e&&e(r))}}),(function(t){i(t)}))}))},n.loadImage=function(t,e){return this.loadFile(t,e).then((function(t){return new Promise((function(e,o){var n=document.createElementNS("http://www.w3.org/1999/xhtml","img");n.onload=function(){URL.revokeObjectURL(n.src),e(n)},n.onerror=o,n.src=URL.createObjectURL(t)}))}))},n.preloadPanorama=function(t){return this.psv.adapter.supportsPreload(t)?this.psv.adapter.loadTexture(t):Promise.resolve()},o}(te),ce=0,he=1,pe=2,le=3,ue=function(t){function e(e,o){var n;return(n=t.call(this,e,"psv-tooltip")||this).prop=a({},n.prop,o,{state:ce,width:0,height:0,pos:"",data:null}),n.content=document.createElement("div"),n.content.className="psv-tooltip-content",n.container.appendChild(n.content),n.arrow=document.createElement("div"),n.arrow.className="psv-tooltip-arrow",n.container.appendChild(n.arrow),n.container.addEventListener("transitionend",p(n)),n.container.style.top="-1000px",n.container.style.left="-1000px",n}c(e,t);var o=e.prototype;return o.destroy=function(){delete this.arrow,delete this.content,t.prototype.destroy.call(this)},o.handleEvent=function(t){if("transitionend"===t.type)this.__onTransitionEnd(t)},o.toggle=function(){throw new n("Tooltip cannot be toggled")},o.show=function(t){if(this.prop.state!==ce)throw new n("Initialized tooltip cannot be re-initialized");t.className&&x(this.container,t.className),this.content.innerHTML=t.content;var e=this.container.getBoundingClientRect();this.prop.width=e.right-e.left,this.prop.height=e.bottom-e.top,this.prop.state=le,this.move(t),this.prop.data=t.data,this.prop.state=he,this.psv.trigger(m.SHOW_TOOLTIP,this.prop.data,this)},o.move=function(t){if(this.prop.state!==he&&this.prop.state!==le)throw new n("Uninitialized tooltip cannot be moved");var e=this.container,o=this.arrow,i={posClass:at(t.position,"top center",!1),width:this.prop.width,height:this.prop.height,top:0,left:0,arrowTop:0,arrowLeft:0};this.__computeTooltipPosition(i,t);var r=!1;i.top<this.prop.offset?(i.posClass[0]="bottom",r=!0):i.top+i.height>this.psv.prop.size.height-this.prop.offset&&(i.posClass[0]="top",r=!0),i.left<this.prop.offset?(i.posClass[1]="right",r=!0):i.left+i.width>this.psv.prop.size.width-this.prop.offset&&(i.posClass[1]="left",r=!0),r&&this.__computeTooltipPosition(i,t),e.style.top=i.top+"px",e.style.left=i.left+"px",o.style.top=i.arrowTop+"px",o.style.left=i.arrowLeft+"px";var s=i.posClass.join("-");s!==this.prop.pos&&(e.classList.remove("psv-tooltip--"+this.prop.pos),this.prop.pos=s,e.classList.add("psv-tooltip--"+this.prop.pos))},o.hide=function(){this.container.classList.remove("psv-tooltip--visible"),this.prop.state=pe,this.psv.trigger(m.HIDE_TOOLTIP,this.prop.data)},o.__onTransitionEnd=function(t){if("transform"===t.propertyName)switch(this.prop.state){case he:this.container.classList.add("psv-tooltip--visible"),this.prop.state=le;break;case pe:this.prop.state=ce,this.destroy()}},o.__computeTooltipPosition=function(t,e){var o=!1;switch(e.box||(e.box={width:0,height:0}),t.posClass[0]){case"bottom":t.top=e.top+e.box.height+this.prop.offset+this.prop.arrow,t.arrowTop=2*-this.prop.arrow,o=!0;break;case"center":t.top=e.top+e.box.height/2-t.height/2,t.arrowTop=t.height/2-this.prop.arrow;break;case"top":t.top=e.top-t.height-this.prop.offset-this.prop.arrow,t.arrowTop=t.height,o=!0}switch(t.posClass[1]){case"right":o?(t.left=e.left+e.box.width/2-this.prop.offset-this.prop.arrow,t.arrowLeft=this.prop.offset):(t.left=e.left+e.box.width+this.prop.offset+this.prop.arrow,t.arrowLeft=2*-this.prop.arrow);break;case"center":t.left=e.left+e.box.width/2-t.width/2,t.arrowLeft=t.width/2-this.prop.arrow;break;case"left":o?(t.left=e.left-t.width+e.box.width/2+this.prop.offset+this.prop.arrow,t.arrowLeft=t.width-this.prop.offset-2*this.prop.arrow):(t.left=e.left-t.width-this.prop.offset-this.prop.arrow,t.arrowLeft=t.width)}},e}(_t),de=function(t){function e(e){var o;o=t.call(this,e)||this;var n=new ue(o.psv);return o.size={arrow:parseInt(D(n.arrow,"borderTopWidth"),10),offset:parseInt(D(n.container,"outlineWidth"),10)},n.destroy(),o}c(e,t);var o=e.prototype;return o.destroy=function(){delete this.size,t.prototype.destroy.call(this)},o.create=function(t){var e=new ue(this.psv,this.size);return e.show(t),e},e}(te);e.Cache.enabled=!0;var ve=function(t){function o(o){var i;if(i=t.call(this)||this,M.load(),!M.isWebGLSupported)throw new n("WebGL is not supported.");if(0===M.maxTextureWidth)throw new n("Unable to detect system capabilities");return i.prop={ready:!1,uiRefresh:!1,needsUpdate:!1,fullscreen:!1,direction:new e.Vector3(0,0,u),vFov:null,hFov:null,aspect:null,autorotateEnabled:!1,animationPromise:null,loadingPromise:null,startTimeout:null,objectsObservers:{},size:{width:0,height:0},panoData:{fullWidth:0,fullHeight:0,croppedWidth:0,croppedHeight:0,croppedX:0,croppedY:0,poseHeading:0,posePitch:0,poseRoll:0}},i.config=function(t){var e=X(Vt);Z(e,t);var o={};return G(e,(function(t,i){if(Yt[i])tt(Yt[i]);else{if(!Object.prototype.hasOwnProperty.call(Vt,i))throw new n("Unknown option "+i);Zt[i]?o[i]=Zt[i](t,e):o[i]=t}})),o}(o),i.parent="string"==typeof o.container?document.getElementById(o.container):o.container,i.parent[d]=p(i),i.container=document.createElement("div"),i.container.classList.add("psv-container"),i.parent.appendChild(i.container),i.adapter=new i.config.adapter[0](p(i),i.config.adapter[1]),i.children=[],i.plugins={},i.renderer=new se(p(i)),i.textureLoader=new ae(p(i)),i.eventsHandler=new re(p(i)),i.dataHelper=new ie(p(i)),i.loader=new qt(p(i)),i.navbar=new Kt(p(i)),i.panel=new Jt(p(i)),i.tooltip=new de(p(i)),i.notification=new Qt(p(i)),i.overlay=new $t(p(i)),i.dynamics={zoom:new vt((function(t){i.prop.vFov=i.dataHelper.zoomLevelToFov(t),i.prop.hFov=i.dataHelper.vFovToHFov(i.prop.vFov),i.trigger(m.ZOOM_UPDATED,t)}),i.config.defaultZoomLvl,0,100),position:new ft({longitude:new vt(null,i.config.defaultLong,0,2*Math.PI,!0),latitude:new vt(null,i.config.defaultLat,-Math.PI/2,Math.PI/2)},(function(t){i.dataHelper.sphericalCoordsToVector3(t,i.prop.direction),i.trigger(m.POSITION_UPDATED,t)}))},i.__updateSpeeds(),i.eventsHandler.init(),i.__resizeRefresh=j((function(){return i.refreshUi("resize")}),500),i.resize(i.config.size),i.config.plugins.forEach((function(t){var e=t[0],o=t[1];i.plugins[e.id]=new e(p(i),o)})),G(i.plugins,(function(t){return null==t.init?void 0:t.init()})),i.navbar.setButtons(i.config.navbar),i.config.panorama&&i.setPanorama(i.config.panorama),C(i.container,"psv--is-touch",M.isTouchEnabled.initial),M.isTouchEnabled.promise.then((function(t){return C(i.container,"psv--is-touch",t)})),i.once(m.RENDER,(function(){i.config.navbar&&(i.container.classList.add("psv--has-navbar"),i.navbar.show()),i.config.autorotateDelay&&(i.prop.startTimeout=setTimeout((function(){return i.startAutorotate()}),i.config.autorotateDelay)),i.prop.ready=!0,setTimeout((function(){i.refreshUi("init"),i.trigger(m.READY)}),0)})),i}c(o,t);var i=o.prototype;return i.destroy=function(){this.__stopAll(),this.stopKeyboardControl(),this.exitFullscreen(),this.eventsHandler.destroy(),this.renderer.destroy(),this.textureLoader.destroy(),this.dataHelper.destroy(),this.adapter.destroy(),this.children.slice().forEach((function(t){return t.destroy()})),this.children.length=0,G(this.plugins,(function(t){return t.destroy()})),delete this.plugins,this.parent.removeChild(this.container),delete this.parent[d],delete this.parent,delete this.container,delete this.loader,delete this.navbar,delete this.panel,delete this.tooltip,delete this.notification,delete this.overlay,delete this.config},i.refreshUi=function(t){var e=this;this.prop.ready&&(this.prop.uiRefresh?"new"!==this.prop.uiRefresh&&(this.prop.uiRefresh="new",setTimeout((function(){e.prop.uiRefresh=!1,e.refreshUi(t)}))):(this.prop.uiRefresh=!0,this.children.every((function(t){return t.refreshUi(),!0===e.prop.uiRefresh})),this.prop.uiRefresh=!1))},i.getPlugin=function(t){if("string"==typeof t)return this.plugins[t];var e=Q(t,Wt);return e?this.plugins[e.id]:void 0},i.getPosition=function(){return this.dataHelper.cleanPosition(this.dynamics.position.current)},i.getZoomLevel=function(){return this.dynamics.zoom.current},i.getSize=function(){return a({},this.prop.size)},i.isAutorotateEnabled=function(){return this.prop.autorotateEnabled},i.isFullscreenEnabled=function(){return M.fullscreenEvent?S(this.container):this.prop.fullscreen},i.needsUpdate=function(){this.prop.needsUpdate=!0},i.autoSize=function(){this.container.clientWidth===this.prop.size.width&&this.container.clientHeight===this.prop.size.height||(this.prop.size.width=Math.round(this.container.clientWidth),this.prop.size.height=Math.round(this.container.clientHeight),this.prop.aspect=this.prop.size.width/this.prop.size.height,this.prop.hFov=this.dataHelper.vFovToHFov(this.prop.vFov),this.trigger(m.SIZE_UPDATED,this.getSize()),this.__resizeRefresh())},i.setPanorama=function(t,e){var o,n=this;void 0===e&&(e={}),this.textureLoader.abortLoading(),null==(o=this.prop.transitionAnimation)||o.cancel(),this.prop.ready||("sphereCorrection"in e||(e.sphereCorrection=this.config.sphereCorrection),"panoData"in e||(e.panoData=this.config.panoData)),void 0!==e.transition&&!0!==e.transition||(e.transition=1500),void 0===e.showLoader&&(e.showLoader=!0),void 0===e.caption&&(e.caption=this.config.caption),void 0===e.description&&(e.description=this.config.description);var i=et(e),r="zoom"in e;(i||r)&&this.__stopAll(),this.hideError(),this.config.panorama=t,this.config.caption=e.caption,this.config.description=e.description;var s=function(t){if(n.loader.hide(),n.prop.loadingPromise=null,J(t))return!1;if(t)throw n.navbar.setCaption(""),n.showError(n.config.lang.loadError),console.error(t),t;return n.navbar.setCaption(n.config.caption),!0};this.navbar.setCaption("<em>"+(this.config.loadingTxt||"")+"</em>"),!e.showLoader&&this.prop.ready||this.loader.show();var a=this.adapter.loadTexture(this.config.panorama,e.panoData).then((function(t){if(t.panorama!==n.config.panorama)throw n.adapter.disposeTexture(t),$();return t}));return e.transition&&this.prop.ready&&this.adapter.supportsTransition(this.config.panorama)?this.prop.loadingPromise=a.then((function(t){return n.loader.hide(),n.prop.transitionAnimation=n.renderer.transition(t,e),n.prop.transitionAnimation.then((function(t){if(n.prop.transitionAnimation=null,!t)throw $()}))})).then(s,s):this.prop.loadingPromise=a.then((function(t){n.renderer.show(),n.renderer.setTexture(t),n.renderer.setPanoramaPose(t.panoData),n.renderer.setSphereCorrection(e.sphereCorrection),r&&n.zoom(e.zoom),i&&n.rotate(e)})).then(s,s),this.prop.loadingPromise},i.setOptions=function(t){var e=this;G(t,(function(o,i){if(Yt[i])tt(Yt[i]);else{if(!Object.prototype.hasOwnProperty.call(Vt,i))throw new n("Unknown option "+i);if(jt[i])throw new n(jt[i]);switch(Zt[i]?e.config[i]=Zt[i](o,t):e.config[i]=o,i){case"caption":case"description":e.navbar.setCaption(e.config.caption);break;case"size":e.resize(o);break;case"sphereCorrection":e.renderer.setSphereCorrection(o);break;case"navbar":case"lang":e.navbar.setButtons(e.config.navbar);break;case"moveSpeed":case"zoomSpeed":e.__updateSpeeds();break;case"minFov":case"maxFov":e.dynamics.zoom.setValue(e.dataHelper.fovToZoomLevel(e.prop.vFov)),e.trigger(m.ZOOM_UPDATED,e.getZoomLevel());break;case"canvasBackground":e.renderer.canvasContainer.style.background=e.config.canvasBackground}}})),this.needsUpdate(),this.refreshUi("set options"),this.trigger(m.CONFIG_CHANGED,Object.keys(t))},i.setOption=function(t,e){var o;this.setOptions(((o={})[t]=e,o))},i.startAutorotate=function(t){void 0===t&&(t=!1),t&&!this.isAutorotateEnabled()||(t||this.__stopAll(),this.dynamics.position.roll({longitude:this.config.autorotateSpeed<0},Math.abs(this.config.autorotateSpeed/this.config.moveSpeed)),this.dynamics.position.goto({latitude:this.config.autorotateLat},Math.abs(this.config.autorotateSpeed/this.config.moveSpeed)),this.prop.autorotateEnabled=!0,t||this.trigger(m.AUTOROTATE,!0))},i.stopAutorotate=function(){this.prop.startTimeout&&(clearTimeout(this.prop.startTimeout),this.prop.startTimeout=null),this.isAutorotateEnabled()&&(this.dynamics.position.stop(),this.prop.autorotateEnabled=!1,this.trigger(m.AUTOROTATE,!1))},i.toggleAutorotate=function(){this.isAutorotateEnabled()?this.stopAutorotate():this.startAutorotate()},i.showError=function(t){this.overlay.show({id:_.ERROR,image:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="15 15 70 70"><path fill="currentColor" d="M50,16.2c-18.6,0-33.8,15.1-33.8,33.8S31.4,83.7,50,83.7S83.8,68.6,83.8,50S68.6,16.2,50,16.2z M50,80.2c-16.7,0-30.2-13.6-30.2-30.2S33.3,19.7,50,19.7S80.3,33.3,80.3,50S66.7,80.2,50,80.2z"/><rect fill="currentColor" x="48" y="31.7" width="4" height="28"/><rect fill="currentColor" x="48" y="63.2" width="4" height="5"/>\x3c!--Created by Shastry from the Noun Project--\x3e</svg>\n',text:t,dissmisable:!1})},i.hideError=function(){this.overlay.hide(_.ERROR)},i.rotate=function(t){if(!this.trigger(m.BEFORE_ROTATE,t).isDefaultPrevented()){var e=this.change(g.GET_ROTATE_POSITION,this.dataHelper.cleanPosition(t));this.dynamics.position.setValue(e)}},i.animate=function(t){var e=this;this.__stopAll();var o,n=et(t),i="zoom"in t,r={};if(n){var s=this.change(g.GET_ANIMATE_POSITION,this.dataHelper.cleanPosition(t)),a=this.getPosition(),c=F(a.longitude,s.longitude);r.longitude={start:a.longitude,end:a.longitude+c},r.latitude={start:a.latitude,end:s.latitude},o=this.dataHelper.speedToDuration(t.speed,W(a,s))}if(i){var h=Math.abs(t.zoom-this.getZoomLevel());r.zoom={start:this.getZoomLevel(),end:t.zoom},o||(o=this.dataHelper.speedToDuration(t.speed,Math.PI/4*h/100))}return o?(this.prop.animationPromise=new dt({properties:r,duration:o,easing:"inOutSine",onTick:function(t){n&&e.rotate(t),i&&e.zoom(t.zoom)}}),this.prop.animationPromise):(n&&this.rotate(t),i&&this.zoom(t.zoom),new dt)},i.stopAnimation=function(){var t=this;return this.prop.animationPromise?new Promise((function(e){t.prop.animationPromise.then(e),t.prop.animationPromise.cancel(),t.prop.animationPromise=null})):Promise.resolve()},i.zoom=function(t){this.dynamics.zoom.setValue(t)},i.zoomIn=function(t){void 0===t&&(t=1),this.dynamics.zoom.step(t)},i.zoomOut=function(t){void 0===t&&(t=1),this.dynamics.zoom.step(-t)},i.resize=function(t){var e=this;["width","height"].forEach((function(o){t&&t[o]&&(/^[0-9.]+$/.test(t[o])&&(t[o]+="px"),e.parent.style[o]=t[o])})),this.autoSize()},i.enterFullscreen=function(){M.fullscreenEvent?I(this.container):(this.container.classList.add("psv-container--fullscreen"),this.autoSize(),this.eventsHandler.__fullscreenToggled(!0))},i.exitFullscreen=function(){this.isFullscreenEnabled()&&(M.fullscreenEvent?k():(this.container.classList.remove("psv-container--fullscreen"),this.autoSize(),this.eventsHandler.__fullscreenToggled(!1)))},i.toggleFullscreen=function(){this.isFullscreenEnabled()?this.exitFullscreen():this.enterFullscreen()},i.startKeyboardControl=function(){this.eventsHandler.enableKeyboard()},i.stopKeyboardControl=function(){this.eventsHandler.disableKeyboard()},i.observeObjects=function(t,e){var o=this;return this.prop.objectsObservers[t]={listener:e},function(){delete o.prop.objectsObservers[t]}},i.__stopAll=function(){this.stopAutorotate(),this.stopAnimation(),this.trigger(m.STOP_ALL)},i.__updateSpeeds=function(){this.dynamics.zoom.setSpeed(50*this.config.zoomSpeed),this.dynamics.position.setSpeed(e.MathUtils.degToRad(50*this.config.moveSpeed))},o}(o.EventEmitter);t.AbstractAdapter=i,t.AbstractButton=yt,t.AbstractComponent=_t,t.AbstractPlugin=Wt,t.Animation=dt,t.CONSTANTS=T,t.DEFAULTS=Vt,t.EquirectangularAdapter=wt,t.PSVError=n,t.SYSTEM=M,t.Viewer=ve,t.registerButton=Gt,t.utils=gt,Object.defineProperty(t,"__esModule",{value:!0})}));
//# sourceMappingURL=/sm/03d4d06bf0fab4a5abca003d34f8eb8af5da4384b144829e1977c795789849ec.map