",{class:i.videoWrapper}),o=e.children("."+i.playButton);let l,a;s.append(n),e.append(s),-1!==t.indexOf("vimeo.com")?(l="vimeo",a=elementorFrontend.utils.vimeo):t.match(/^(?:https?:\/\/)?(?:www\.)?(?:m\.)?(?:youtu\.be\/|youtube\.com)/)&&(l="youtube",a=elementorFrontend.utils.youtube);const r=a.getVideoIDFromURL(t);a.onApiReady((e=>{"youtube"===l?this.prepareYTVideo(e,r,s,n,o):"vimeo"===l&&this.prepareVimeoVideo(e,r,s,n,o)})),o.addClass(i.playing).removeClass(i.hidden)},prepareYTVideo:function(e,t,i,s,n){const o=this.getSettings("classes"),l=jQuery("
");let a=e.PlayerState.PLAYING;s.append(l),window.chrome&&(a=e.PlayerState.UNSTARTED),i.addClass("elementor-loading "+o.invisible),this.player=new e.Player(l[0],{videoId:t,events:{onReady:()=>{n.addClass(o.hidden),i.removeClass(o.invisible),this.player.playVideo()},onStateChange:e=>{e.data===a&&i.removeClass("elementor-loading "+o.invisible)}},playerVars:{controls:0,rel:0}})},prepareVimeoVideo:function(e,t,i,s,n){const o=this.getSettings("classes"),l={id:t,autoplay:!0,transparent:!1,playsinline:!1};this.player=new e.Player(s,l),this.player.ready().then((()=>{n.addClass(o.hidden),i.removeClass(o.invisible)}))},setEntranceAnimation:function(e){e=e||elementorFrontend.getCurrentDeviceSetting(this.getSettings("modalOptions"),"entranceAnimation");const t=this.getModal().getElements("message");this.oldAnimation&&t.removeClass(this.oldAnimation),this.oldAnimation=e,e&&t.addClass("animated "+e)},openSlideshow:function(e,t){const i=jQuery(this.getSettings("selectors.links")).filter(((t,i)=>{const s=jQuery(i);return e===i.dataset.elementorLightboxSlideshow&&!s.parent(".swiper-slide-duplicate").length&&!s.parents(".slick-cloned").length})),s=[];let n=0;i.each((function(){const e=this.dataset.elementorLightboxVideo;let o=this.dataset.elementorLightboxIndex;void 0===o&&(o=i.index(this)),(t===this.href||e&&t===e)&&(n=o);const l={image:this.href,index:o,title:this.dataset.elementorLightboxTitle,description:this.dataset.elementorLightboxDescription};e&&(l.video=e),s.push(l)})),s.sort(((e,t)=>e.index-t.index)),this.showModal({type:"slideshow",id:e,modalOptions:{id:"elementor-lightbox-slideshow-"+e},slideshow:{slides:s,swiper:{initialSlide:+n}}})},onSlideChange:function(){this.getSlide("prev").add(this.getSlide("next")).add(this.getSlide("active")).find("."+this.getSettings("classes.videoWrapper")).remove(),this.playSlideVideo(),this.updateFooterText()}})},3251:e=>{"use strict";var t,i,s,n,o;t="undefined"!=typeof window&&void 0!==window.document?window.document:{},i=e.exports,s=function(){for(var e,i=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],s=0,n=i.length,o={};s