(()=>{var a;(a=jQuery)(document).ready((function(){const e=document.querySelectorAll(".bppiv_panorama");Object.values(e).map((e=>{const o=a(e).data("settings");a(e).removeAttr("data-settings");const{bppiv_type:t,bppiv_image_src:n,bppiv_video_src:r,bppiv_auto_play:p,bppiv_video_mute:l,bppiv_video_loop:i,image_src_360:s,bppiv_auto_rotate:_,bppiv_speed:u,bppiv_auto_load:c,control_show_hide:d,draggable_360:v,compass_360:m,title_author:B,title_360:b,author_360:w,initial_view:I,initial_view_property:g}=o;if("video"===t){const a=r?r.url:[],o=Boolean(parseInt(p)),t=Boolean(parseInt(l)),n=Boolean(parseInt(i)),s=!0!==Boolean(parseInt(i)),_=new PANOLENS.VideoPanorama(a,{autoplay:o,loop:n,muted:t});new PANOLENS.Viewer({container:e,controlBar:s}).add(_)}else if("image360"===t){const o=null!=s?s:"",t=Boolean(parseInt(_))?u:0,n=Boolean(parseInt(c)),r=1!=Boolean(parseInt(d)),p=Boolean(parseInt(v)),l=null!=B?B:0,i=Boolean(parseInt(m)),y=Boolean(parseInt(I))&&{pitch:parseFloat(g.top),yaw:parseFloat(g.right),hfov:parseFloat(g.bottom)}||{},h=a(e).attr("id"),N="1"===l?{title:b,author:w}:{};pannellum.viewer(h,{type:"equirectangular",panorama:o,preview:o,autoLoad:n,autoRotate:t,draggable:p,showControls:r,compass:i,orientationOnByDefault:!0,...N,...y})}else{const a=n?n.url:[],o=Boolean(parseInt(_)),t=u||2,r=1!=Boolean(parseInt(d)),p=new PANOLENS.ImagePanorama(a);new PANOLENS.Viewer({container:e,autoRotate:o,autoRotateSpeed:parseFloat(t),controlBar:r}).add(p)}}))}))})();