(()=>{function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,r)}return o}function o(e){for(var o=1;o<arguments.length;o++){var a=null!=arguments[o]?arguments[o]:{};o%2?t(Object(a),!0).forEach((function(t){r(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):t(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}function r(t,o,r){return(o=function(t){var o=function(t){if("object"!=e(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var r=o.call(t,"string");if("object"!=e(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==e(o)?o:o+""}(o))in t?Object.defineProperty(t,o,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[o]=r,t}var a;(a=jQuery)(document).ready((function(){var e=document.querySelectorAll(".bppiv_panorama");Object.values(e).map((function(e){var t=a(e).data("settings");a(e).removeAttr("data-settings");var r=t.bppiv_type,n=t.bppiv_image_src,i=t.bppiv_video_src,p=t.bppiv_auto_play,l=t.bppiv_video_mute,u=t.bppiv_video_loop,c=t.image_src_360,s=t.bppiv_auto_rotate,b=t.bppiv_speed,v=t.bppiv_auto_load,y=t.control_show_hide,f=t.draggable_360,m=t.compass_360,_=t.title_author,d=t.title_360,O=t.author_360,g=t.initial_view,w=t.initial_view_property;if("video"===r){var P=i?i.url:[],j=Boolean(parseInt(p)),B=Boolean(parseInt(l)),S=Boolean(parseInt(u)),h=!0!==Boolean(parseInt(u)),I=new PANOLENS.VideoPanorama(P,{autoplay:j,loop:S,muted:B});new PANOLENS.Viewer({container:e,controlBar:h}).add(I)}else if("image360"===r){var N=null!=c?c:"",E=Boolean(parseInt(s))?b:0,A=Boolean(parseInt(v)),D=1!=Boolean(parseInt(y)),L=Boolean(parseInt(f)),F=null!=_?_:0,R=Boolean(parseInt(m)),V=Boolean(parseInt(g))&&{pitch:parseFloat(w.top),yaw:parseFloat(w.right),hfov:parseFloat(w.bottom)}||{},q=a(e).attr("id"),k="1"===F?{title:d,author:O}:{};pannellum.viewer(q,o(o({type:"equirectangular",panorama:N,preview:N,autoLoad:A,autoRotate:E,draggable:L,showControls:D,compass:R,orientationOnByDefault:!0},k),V))}else{var C=n?n.url:[],Q=Boolean(parseInt(s)),T=b||2,x=1!=Boolean(parseInt(y)),z=new PANOLENS.ImagePanorama(C);new PANOLENS.Viewer({container:e,autoRotate:Q,autoRotateSpeed:parseFloat(T),controlBar:x}).add(z)}}))}))})();