",{class:o.videoWrapper}),r=t.children("."+o.playButton);a.append(l),t.append(a),-1!==i.indexOf("vimeo.com")?(n="vimeo",s=elementorFrontend.utils.vimeo):i.match(/^(?:https?:\/\/)?(?:www\.)?(?:m\.)?(?:youtu\.be\/|youtube\.com)/)&&(n="youtube",s=elementorFrontend.utils.youtube);var d=s.getVideoIDFromURL(i);s.onApiReady((function(t){"youtube"===n?e.prepareYTVideo(t,d,a,l,r):"vimeo"===n&&e.prepareVimeoVideo(t,d,a,l,r)})),r.addClass(o.playing).removeClass(o.hidden)}},prepareYTVideo:function prepareYTVideo(e,t,i,n,s){var o=this,a=this.getSettings("classes"),l=jQuery("
"),r=e.PlayerState.PLAYING;n.append(l),window.chrome&&(r=e.PlayerState.UNSTARTED),i.addClass("elementor-loading "+a.invisible),this.player=new e.Player(l[0],{videoId:t,events:{onReady:function onReady(){s.addClass(a.hidden),i.removeClass(a.invisible),o.player.playVideo()},onStateChange:function onStateChange(e){e.data===r&&i.removeClass("elementor-loading "+a.invisible)}},playerVars:{controls:0,rel:0}})},prepareVimeoVideo:function prepareVimeoVideo(e,t,i,n,s){var o=this.getSettings("classes"),a={id:t,autoplay:!0,transparent:!1,playsinline:!1};this.player=new e.Player(n,a),this.player.ready().then((function(){s.addClass(o.hidden),i.removeClass(o.invisible)}))},setEntranceAnimation:function setEntranceAnimation(e){e=e||elementorFrontend.getCurrentDeviceSetting(this.getSettings("modalOptions"),"entranceAnimation");var t=this.getModal().getElements("message");this.oldAnimation&&t.removeClass(this.oldAnimation),this.oldAnimation=e,e&&t.addClass("animated "+e)},openSlideshow:function openSlideshow(e,t){var i=jQuery(this.getSettings("selectors.links")).filter((function(t,i){var n=jQuery(i);return e===i.dataset.elementorLightboxSlideshow&&!n.parent(".swiper-slide-duplicate").length&&!n.parents(".slick-cloned").length})),n=[],s=0;i.each((function(){var e=this.dataset.elementorLightboxVideo,o=this.dataset.elementorLightboxIndex;void 0===o&&(o=i.index(this)),(t===this.href||e&&t===e)&&(s=o);var a={image:this.href,index:o,title:this.dataset.elementorLightboxTitle,description:this.dataset.elementorLightboxDescription};e&&(a.video=e),n.push(a)})),n.sort((function(e,t){return e.index-t.index})),this.showModal({type:"slideshow",id:e,modalOptions:{id:"elementor-lightbox-slideshow-"+e},slideshow:{slides:n,swiper:{initialSlide:+s}}})},onSlideChange:function onSlideChange(){this.getSlide("prev").add(this.getSlide("next")).add(this.getSlide("active")).find("."+this.getSettings("classes.videoWrapper")).remove(),this.playSlideVideo(),this.updateFooterText()}})},3251:(e,t,i)=>{"use strict";var n,s,o,a,l,r=i(7971),d=r(i(2937)),c=r(i(3220));n="undefined"!=typeof window&&void 0!==window.document?window.document:{},s=e.exports,o=function(){for(var e,t=[["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"]],i=0,s=t.length,o={};i{"use strict";var n=i(6365),s=i(6078),o=i(8492),a=i(2404);i(8897)("match",1,(function(e,t,i,l){return[function match(i){var n=e(this),s=null==i?void 0:i[t];return void 0!==s?s.call(i,n):new RegExp(i)[t](String(n))},function(e){var t=l(i,e,this);if(t.done)return t.value;var r=n(e),d=String(this);if(!r.global)return a(r,d);var c=r.unicode;r.lastIndex=0;for(var h,u=[],p=0;null!==(h=a(r,d));){var g=String(h[0]);u[p]=g,""===g&&(r.lastIndex=o(d,s(r.lastIndex),c)),p++}return 0===p?null:u}]}))},4208:(e,t,i)=>{"use strict";var n=i(6365),s=i(6033),o=i(6078),a=i(3338),l=i(8492),r=i(2404),d=Math.max,c=Math.min,h=Math.floor,u=/\$([$&`']|\d\d?|<[^>]*>)/g,p=/\$([$&`']|\d\d?)/g;i(8897)("replace",2,(function(e,t,i,g){return[function replace(n,s){var o=e(this),a=null==n?void 0:n[t];return void 0!==a?a.call(n,o,s):i.call(String(o),n,s)},function(e,t){var s=g(i,e,this,t);if(s.done)return s.value;var h=n(e),u=String(this),p="function"==typeof t;p||(t=String(t));var m=h.global;if(m){var v=h.unicode;h.lastIndex=0}for(var f=[];;){var w=r(h,u);if(null===w)break;if(f.push(w),!m)break;""===String(w[0])&&(h.lastIndex=l(u,o(h.lastIndex),v))}for(var b,S="",x=0,y=0;y=x&&(S+=u.slice(x,$)+L,x=$+C.length)}return S+u.slice(x)}];function getSubstitution(e,t,n,o,a,l){var r=n+e.length,d=o.length,c=p;return void 0!==a&&(a=s(a),c=u),i.call(l,c,(function(i,s){var l;switch(s.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,n);case"'":return t.slice(r);case"<":l=a[s.slice(1,-1)];break;default:var c=+s;if(0===c)return i;if(c>d){var u=h(c/10);return 0===u?i:u<=d?void 0===o[u-1]?s.charAt(1):o[u-1]+s.charAt(1):i}l=o[c-1]}return void 0===l?"":l}))}}))}}]);