var VideoBackgroundPro;!function(){var e={201:function(e,t,n){var o,r,i;function c(e){return c="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},c(e)}i=function(e){return function(e,t){if(null==t&&(t={fuzzy:!0}),/youtu\.?be/.test(e)){var n,o=[/youtu\.be\/([^#\&\?]{11})/,/\?v=([^#\&\?]{11})/,/\&v=([^#\&\?]{11})/,/embed\/([^#\&\?]{11})/,/\/v\/([^#\&\?]{11})/];for(n=0;n<o.length;++n)if(o[n].test(e))return o[n].exec(e)[1];if(t.fuzzy){var r=e.split(/[\/\&\?=#\.\s]/g);for(n=0;n<r.length;++n)if(/^[^#\&\?]{11}$/.test(r[n]))return r[n]}}return null}},"object"===c(t)?e.exports=function(e,t){if(null==t&&(t={fuzzy:!0}),/youtu\.?be/.test(e)){var n,o=[/youtu\.be\/([^#\&\?]{11})/,/\?v=([^#\&\?]{11})/,/\&v=([^#\&\?]{11})/,/embed\/([^#\&\?]{11})/,/\/v\/([^#\&\?]{11})/];for(n=0;n<o.length;++n)if(o[n].test(e))return o[n].exec(e)[1];if(t.fuzzy){var r=e.split(/[\/\&\?=#\.\s]/g);for(n=0;n<r.length;++n)if(/^[^#\&\?]{11}$/.test(r[n]))return r[n]}}return null}:void 0===(r="function"==typeof(o=i)?o.call(t,n,t,e):o)||(e.exports=r)},12:function(){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector)},415:function(){[Element.prototype,Document.prototype,DocumentFragment.prototype].forEach((function(e){e.hasOwnProperty("prepend")||Object.defineProperty(e,"prepend",{configurable:!0,enumerable:!0,writable:!0,value:function(){var e=Array.prototype.slice.call(arguments),t=document.createDocumentFragment();e.forEach((function(e){var n=e instanceof Node;t.appendChild(n?e:document.createTextNode(String(e)))})),this.insertBefore(t,this.firstChild)}})}))},337:function(){[Element.prototype,CharacterData.prototype,DocumentType.prototype].forEach((function(e){e.hasOwnProperty("remove")||Object.defineProperty(e,"remove",{configurable:!0,enumerable:!0,writable:!0,value:function(){null!==this.parentNode&&this.parentNode.removeChild(this)}})}))},159:function(e){e.exports='<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 64 64" enable-background="new 0 0 64 64" xml:space="preserve"><g><path fill="#010101" d="M36.767,8.541c-0.355-0.185-0.784-0.156-1.11,0.075L17.401,21.468H11.04c-0.592,0-1.072,0.48-1.072,1.072 v20.016c0,0.594,0.48,1.074,1.072,1.074h6.362l18.255,12.849c0.184,0.129,0.398,0.197,0.617,0.197c0.168,0,0.337-0.039,0.493-0.122 c0.356-0.185,0.578-0.551,0.578-0.951V9.493C37.345,9.093,37.123,8.726,36.767,8.541z"></path><path fill="#010101" d="M17.35,4.824"></path></g></svg>'},618:function(e){e.exports='<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 64 64" enable-background="new 0 0 64 64" xml:space="preserve"><path fill="#010101" d="M21.385,52.76H8.173c-0.521,0-0.944-0.422-0.944-0.941V12.183c0-0.521,0.423-0.944,0.944-0.944h13.211 c0.521,0,0.943,0.423,0.943,0.944v39.636C22.329,52.338,21.905,52.76,21.385,52.76z"></path><path fill="#010101" d="M47.809,52.76H34.596c-0.52,0-0.943-0.422-0.943-0.941V12.183c0-0.521,0.424-0.944,0.943-0.944h13.213 c0.518,0,0.943,0.423,0.943,0.944v39.636C48.752,52.338,48.326,52.76,47.809,52.76z"></path></svg>'},442:function(e){e.exports='<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 64 64" enable-background="new 0 0 64 64" xml:space="preserve"><path fill="#010101" d="M16.42,56.676c-0.173,0-0.348-0.043-0.506-0.129c-0.324-0.184-0.521-0.529-0.521-0.898V8.354 c0-0.37,0.199-0.713,0.521-0.896c0.323-0.181,0.721-0.177,1.037,0.016l39.179,23.644c0.307,0.185,0.496,0.518,0.496,0.88 c0,0.361-0.188,0.695-0.496,0.88l-39.18,23.653C16.788,56.629,16.603,56.676,16.42,56.676z"></path></svg>'},658:function(e){e.exports='<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 64 64" enable-background="new 0 0 64 64" xml:space="preserve"><g><path fill="#010101" d="M36.767,8.541c-0.355-0.185-0.784-0.156-1.11,0.075L17.401,21.468H11.04c-0.592,0-1.072,0.48-1.072,1.072 v20.016c0,0.594,0.48,1.074,1.072,1.074h6.362l18.255,12.849c0.184,0.129,0.398,0.197,0.617,0.197c0.168,0,0.337-0.039,0.493-0.122 c0.356-0.185,0.578-0.551,0.578-0.951V9.493C37.345,9.093,37.123,8.726,36.767,8.541z"></path><path fill="#010101" d="M17.35,4.824"></path><path fill="#010101" d="M41.308,47.649c-0.198,0-0.395-0.053-0.577-0.156c-0.544-0.319-0.729-1.021-0.411-1.563 c2.362-4.046,3.611-8.672,3.611-13.382c0-4.99-1.393-9.854-4.022-14.065c-0.334-0.535-0.172-1.241,0.363-1.576 c0.536-0.334,1.241-0.172,1.576,0.364c2.858,4.574,4.369,9.856,4.369,15.277c0,5.115-1.355,10.141-3.921,14.535 C42.083,47.443,41.699,47.649,41.308,47.649z"></path><path fill="#010101" d="M47.354,52.179c-0.216,0-0.434-0.06-0.627-0.188c-0.528-0.349-0.673-1.058-0.325-1.585 c3.496-5.303,5.345-11.479,5.345-17.858c0-6.511-1.918-12.791-5.548-18.163c-0.353-0.524-0.215-1.234,0.309-1.587 c0.523-0.354,1.232-0.214,1.588,0.308c3.884,5.751,5.938,12.475,5.938,19.442c0,6.829-1.978,13.441-5.722,19.118 C48.091,51.999,47.726,52.179,47.354,52.179z"></path></g></svg>'}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var i=t[o]={exports:{}};return e[o].call(i.exports,i,i.exports,n),i.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)};var o={};!function(){"use strict";n.d(o,{default:function(){return he}}),n(337),n(415),n(12);var e,t=n(159),r=n.n(t),i=n(618),c=n.n(i),a=n(442),u=n.n(a),l=n(658),s=n.n(l),f="a-f\\d",p="#?[".concat(f,"]{3}[").concat(f,"]?"),d="#?[".concat(f,"]{6}([").concat(f,"]{2})?"),y=new RegExp("[^#".concat(f,"]"),"gi"),b=new RegExp("^".concat(p,"$|^").concat(d,"$"),"i"),m={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)},v=new Uint8Array(16);function g(){if(!e&&!(e="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return e(v)}for(var h=[],P=0;P<256;++P)h.push((P+256).toString(16).slice(1));var w=function(e,t,n){if(m.randomUUID&&!t&&!e)return m.randomUUID();var o=(e=e||{}).random||(e.rng||g)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t){n=n||0;for(var r=0;r<16;++r)t[n+r]=o[r];return t}return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return h[e[t+0]]+h[e[t+1]]+h[e[t+2]]+h[e[t+3]]+"-"+h[e[t+4]]+h[e[t+5]]+"-"+h[e[t+6]]+h[e[t+7]]+"-"+h[e[t+8]]+h[e[t+9]]+"-"+h[e[t+10]]+h[e[t+11]]+h[e[t+12]]+h[e[t+13]]+h[e[t+14]]+h[e[t+15]]}(o)};function O(e){return O="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},O(e)}function E(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function j(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?E(Object(n),!0).forEach((function(t){S(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function B(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,C(o.key),o)}}function x(e,t,n){return t&&B(e.prototype,t),n&&B(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function S(e,t,n){return(t=C(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function C(e){var t=function(e,t){if("object"!=O(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!=O(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==O(t)?t:String(t)}var M=x((function e(t,n,o){var i=this;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),S(this,"init",(function(){i.el.style.position="relative",i.el.style.zIndex=1,i.createContainer(),i.render(),i.createEndPoster(),i.frontendButtons(),i.overlay(),window.addEventListener("resize",i.resize)})),S(this,"createContainer",(function(){i.container=document.createElement("div"),i.container.className="vidbg-container",i.el===document.body&&(i.container.style.position="fixed"),i.ref=w(),i.tmpHolder=document.createElement("div"),i.tmpHolder.setAttribute("id",i.ref),i.el.prepend(i.container),i.container.prepend(i.tmpHolder),i.poster()})),S(this,"poster",(function(){i.config.poster&&(i.container.style.backgroundImage="url(".concat(i.config.poster,")"))})),S(this,"createEndPoster",(function(){i.config.endOnPoster&&!i.config.loop&&null!==i.config.poster&&(i.endPoster=document.createElement("div"),i.endPoster.className="vidbg-end-frame",i.endPoster.style.backgroundImage="url(".concat(i.config.poster,")"),i.container.appendChild(i.endPoster))})),S(this,"showEndPoster",(function(){i.config.endOnPoster&&!i.config.loop&&null!==i.config.poster&&(i.endPoster.style.opacity=1)})),S(this,"hideEndPoster",(function(){i.config.endOnPoster&&!i.config.loop&&null!==i.config.poster&&(i.endPoster.style.opacity=0)})),S(this,"overlay",(function(){var e=document.createElement("div");e.className="vidbg-overlay";var t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"!=typeof e||y.test(e)||!b.test(e))throw new TypeError("Expected a valid hex string");var n=1;8===(e=e.replace(/^#/,"")).length&&(n=Number.parseInt(e.slice(6,8),16)/255,e=e.slice(0,6)),4===e.length&&(n=Number.parseInt(e.slice(3,4).repeat(2),16)/255,e=e.slice(0,3)),3===e.length&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]);var o=Number.parseInt(e,16),r=o>>16,i=o>>8&255,c=255&o,a="number"==typeof t.alpha?t.alpha:n;if("array"===t.format)return[r,i,c,a];if("css"===t.format){var u=1===a?"":" / ".concat(Number((100*a).toFixed(2)),"%");return"rgb(".concat(r," ").concat(i," ").concat(c).concat(u,")")}return{red:r,green:i,blue:c,alpha:a}}(i.config.overlayColor);if(i.config.isOverlayEnabled){var n=i.config.overlayAlpha;e.style.backgroundColor="rgba(\n        ".concat(t.red,",\n        ").concat(t.green,",\n        ").concat(t.blue,",\n        ").concat(n,"\n)")}i.container.appendChild(e)})),S(this,"frontendButtons",(function(){if(!i.config.isFrontendPlayEnabled&&!i.config.isFrontendVolumeEnabled)return null;switch(i.frontendButtonsContainer=document.createElement("div"),i.frontendButtonsContainer.className="vidbg-frontend-buttons",i.config.frontendButtonsPosition){case"bottom-right":default:i.frontendButtonsContainer.className+=" bottom-right";break;case"bottom-left":i.frontendButtonsContainer.className+=" bottom-left";break;case"top-right":i.frontendButtonsContainer.className+=" top-right";break;case"top-left":i.frontendButtonsContainer.className+=" top-left"}if(i.createFrontendPlayButton(),i.createFrontendVolumeButton(),i.config.frontendButtonsContainer){var e=document.querySelector(i.config.frontendButtonsContainer);e?e.appendChild(i.frontendButtonsContainer):i.el.appendChild(i.frontendButtonsContainer)}else i.el.appendChild(i.frontendButtonsContainer)})),S(this,"createFrontendPlayButton",(function(){if(!i.config.isFrontendPlayEnabled)return null;i.frontendPlayButton=document.createElement("a"),i.frontendPlayButton.className="vidbg-frontend-button vidbg-toggle-pause",i.frontendPlayButton.innerHTML=c(),i.frontendPlayButton.addEventListener("click",i.frontendPlayButtonClicked),i.frontendButtonsContainer.appendChild(i.frontendPlayButton)})),S(this,"frontendPlayButtonClicked",(function(){i.isPlaying?i.pause():i.play()})),S(this,"createFrontendVolumeButton",(function(){if(!i.config.isFrontendVolumeEnabled)return null;i.frontendVolumeButton=document.createElement("a"),i.frontendVolumeButton.className="vidbg-frontend-button vidbg-toggle-mute",i.frontendVolumeButton.innerHTML=r(),i.frontendVolumeButton.addEventListener("click",i.frontendVolumeButtonClicked),i.frontendButtonsContainer.appendChild(i.frontendVolumeButton)})),S(this,"frontendVolumeButtonClicked",(function(){i.isMuted?i.unMute():i.mute()})),S(this,"playVidbg",(function(){console.error("playVidbg() is depreciated! Please use play() instead."),i.play()})),S(this,"pauseVidbg",(function(){console.error("pauseVidbg() is depreciated! Please use pause() instead."),i.pause()})),S(this,"muteVidbg",(function(){console.error("muteVidbg() is depreciated! Please use mute() instead."),i.mute()})),S(this,"unMuteVidbg",(function(){console.error("unMuteVidbg() is depreciated! Please use unMute() instead."),i.unMute()})),S(this,"resizeVidbg",(function(){console.error("resizeVidbg() is depreciated! Please use resize() instead."),i.resize()})),!t)throw new Error("The selector must be specified");if(this.el=document.querySelector(t),!this.el)throw new Error("The selector provided (".concat(t,") does not exist!"));window.jQuery&&jQuery(t).data("vidbgpro",this),this.isMuted=!0,this.isPlaying=!1,this.config=j(j({},{poster:null,endOnPoster:!1,loop:!0,isOverlayEnabled:!1,overlayColor:"#000",overlayAlpha:.3,isFrontendPlayEnabled:!0,isFrontendVolumeEnabled:!0,frontendButtonsPosition:"bottom-right",frontendButtonsContainer:null,doNotTrack:!1}),n)})),V=M;function T(e){return T="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},T(e)}function k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function _(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?k(Object(n),!0).forEach((function(t){R(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function H(e,t,n){return t=D(t),function(e,t){if(t&&("object"===T(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return N(e)}(e,L()?Reflect.construct(t,n||[],D(e).constructor):t.apply(e,n))}function L(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(L=function(){return!!e})()}function D(e){return D=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},D(e)}function N(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function z(e,t){return z=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},z(e,t)}function R(e,t,n){return(t=F(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function F(e){var t=function(e,t){if("object"!=T(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!=T(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==T(t)?t:String(t)}var I=function(e){function t(e,n,o){var i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),R(N(i=H(this,t,[e,n,o])),"render",(function(){if(!i.options.mp4&&!i.options.webm)throw new Error("MP4 or WEBM not provided.");if(i.video=document.createElement("video"),i.video.addEventListener("playing",i.onPlayingEvent),i.video.addEventListener("ended",i.onEndedEvent),i.video.autoplay=!0,i.video.muted=!0,i.video.defaultMuted=!0,i.video.controls=!1,i.video.setAttribute("playsinline",""),i.config.loop&&(i.video.loop=!0),i.options.mp4){var e=document.createElement("source");e.src=i.options.mp4,e.type="video/mp4",i.video.appendChild(e)}if(i.options.webm){var t=document.createElement("source");t.src=i.options.webm,t.type="video/webm",i.video.appendChild(t)}for(var n in i.options.videoAttributes)i.video[n]=i.options.videoAttributes[n];i.container.appendChild(i.video)})),R(N(i),"onPlayingEvent",(function(){i.resize(),i.isPlaying=!0,i.video.style.opacity=1,(i.config.isFrontendPlayEnabled||i.config.isFrontendVolumeEnabled)&&(i.frontendButtonsContainer.style.opacity=1),i.hideEndPoster()})),R(N(i),"onEndedEvent",(function(){i.isPlaying=!1,i.frontendPlayButton&&(i.frontendPlayButton.innerHTML=u()),i.showEndPoster()})),R(N(i),"play",(function(){var e=i.video.play();void 0!==e?e.then((function(){i.isPlaying=!0,i.frontendPlayButton&&(i.frontendPlayButton.innerHTML=c())})).catch((function(e){console.error(e)})):(i.video.play(),i.isPlaying=!0,i.frontendPlayButton&&(i.frontendPlayButton.innerHTML=c()))})),R(N(i),"pause",(function(){i.video.pause(),i.isPlaying=!1,i.frontendPlayButton&&(i.frontendPlayButton.innerHTML=u())})),R(N(i),"mute",(function(){i.video.muted=!0,i.isMuted=!0,i.frontendVolumeButton&&(i.frontendVolumeButton.innerHTML=r())})),R(N(i),"unMute",(function(){i.video.muted=!1,i.isMuted=!1,i.frontendVolumeButton&&(i.frontendVolumeButton.innerHTML=s())})),R(N(i),"resize",(function(){var e=i.container.offsetWidth,t=i.container.offsetHeight;e/i.video.videoWidth>t/i.video.videoHeight?(i.video.style.width="".concat(e,"px"),i.video.style.height="auto"):(i.video.style.width="auto",i.video.style.height="".concat(t,"px"))})),i.isPlaying=!1,i.isMuted=!0,i.options=_(_({},{mp4:null,webm:null,videoAttributes:{}}),o),i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&z(e,t)}(t,e),n=t,Object.defineProperty(n,"prototype",{writable:!1}),n;var n}(V);function U(e){return U="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},U(e)}function A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function W(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?A(Object(n),!0).forEach((function(t){J(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function q(e,t,n){return t=Q(t),function(e,t){if(t&&("object"===U(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Y(e)}(e,$()?Reflect.construct(t,n||[],Q(e).constructor):t.apply(e,n))}function $(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return($=function(){return!!e})()}function Q(e){return Q=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Q(e)}function Y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function G(e,t){return G=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},G(e,t)}function J(e,t,n){return(t=K(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function K(e){var t=function(e,t){if("object"!=U(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!=U(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==U(t)?t:String(t)}var X=function(e){function t(e,n,o){var i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),J(Y(i=q(this,t,[e,n,o])),"render",(function(){i.createPlayer()})),J(Y(i),"createPlayer",(function(){var e=W(W({},{url:i.options.url,loop:i.config.loop,autoplay:!0,muted:!0,playsinline:!0,title:!1,byline:!1,controls:!1,dnt:i.config.doNotTrack}),i.options.playerOptions);i.player=new Vimeo.Player(i.ref,e),i.videoWidth=16,i.player.getVideoWidth().then((function(e){i.videoWidth=e})),i.videoHeight=9,i.player.getVideoHeight().then((function(e){i.videoHeight=e})),i.isPlaying=!1,i.hasStartedPlaying=!1,i.player.on("timeupdate",i.onTimeUpdate),i.player.on("ended",i.playerEndedEvent)})),J(Y(i),"onTimeUpdate",(function(e){if(i.hasStartedPlaying)return null;e.seconds>0&&(i.onPlayingEvent(),i.hasStartedPlaying=!0)})),J(Y(i),"onPlayingEvent",(function(){i.resize(),i.isPlaying=!0,i.player.element.style.opacity=1,(i.config.isFrontendPlayEnabled||i.config.isFrontendVolumeEnabled)&&(i.frontendButtonsContainer.style.opacity=1),i.hideEndPoster()})),J(Y(i),"playerEndedEvent",(function(){i.isPlaying=!1,i.frontendPlayButton&&(i.frontendPlayButton.innerHTML=u()),i.config.loop||i.player.getCurrentTime(0),i.showEndPoster(),i.hasStartedPlaying=!1})),J(Y(i),"play",(function(){i.player.play(),i.isPlaying=!0,i.frontendPlayButton&&(i.frontendPlayButton.innerHTML=c())})),J(Y(i),"pause",(function(){i.player.pause(),i.isPlaying=!1,i.frontendPlayButton&&(i.frontendPlayButton.innerHTML=u())})),J(Y(i),"mute",(function(){i.player.setVolume(0),i.isMuted=!0,i.frontendVolumeButton&&(i.frontendVolumeButton.innerHTML=r())})),J(Y(i),"unMute",(function(){i.player.setVolume(1),i.isMuted=!1,i.frontendVolumeButton&&(i.frontendVolumeButton.innerHTML=s())})),J(Y(i),"resize",(function(){if(void 0!==i.player){var e=i.container.offsetWidth,t=i.container.offsetHeight,n=i.videoWidth/i.videoHeight,o=Math.ceil(t*n),r=Math.ceil(e/n);e/n<t?(i.player.element.style.width="".concat(o,"px"),i.player.element.style.height="".concat(t,"px"),i.player.element.style.top="0px",i.config.isRtl?i.player.element.style.right="".concat((e-o)/2,"px"):i.player.element.style.left="".concat((e-o)/2,"px")):(i.player.element.style.width="".concat(e,"px"),i.player.element.style.height="".concat(r,"px"),i.player.element.style.top="".concat((t-r)/2,"px"),i.config.isRtl?i.player.element.style.right="0px":i.player.element.style.left="0px")}})),i.isPlaying=!1,i.isMuted=!0,i.options=W(W({},{url:null,playerOptions:{}}),o),i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&G(e,t)}(t,e),n=t,Object.defineProperty(n,"prototype",{writable:!1}),n;var n}(V),Z=n(201),ee=n.n(Z);function te(e){return te="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},te(e)}function ne(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function oe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ne(Object(n),!0).forEach((function(t){le(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ne(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function re(e,t,n){return t=ce(t),function(e,t){if(t&&("object"===te(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ae(e)}(e,ie()?Reflect.construct(t,n||[],ce(e).constructor):t.apply(e,n))}function ie(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ie=function(){return!!e})()}function ce(e){return ce=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ce(e)}function ae(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ue(e,t){return ue=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ue(e,t)}function le(e,t,n){return(t=se(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function se(e){var t=function(e,t){if("object"!=te(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!=te(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==te(t)?t:String(t)}var fe,pe=function(e){function t(e,n,o){var i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),le(ae(i=re(this,t,[e,n,o])),"createPlayer",(function(){var e=oe(oe({},{autoplay:1,modestbranding:0,loop:1,controls:0,disablekb:1,enablejsapi:1,iv_load_policy:3,playsinline:1,rel:0}),i.options.playerOptions),t={events:{onReady:i.onPlayerReady,onStateChange:i.onPlayerStateChange},playerVars:e};i.config.doNotTrack&&(t.host="https://www.youtube-nocookie.com"),i.player=new YT.Player(i.ref,t),i.resize()})),le(ae(i),"onPlayerReady",(function(e){i.player.loadVideoById({videoId:ee()(i.options.url),suggestedQuality:"hd720",startSeconds:parseInt(i.options.startSecond),endSeconds:null!=i.options.endSecond?parseInt(i.options.endSecond):null}),i.player.mute()})),le(ae(i),"onPlayerStateChange",(function(e){1===e.data&&i.onPlayingEvent(),0===e.data&&i.onEndedEvent(),2===e.data&&(i.isPlaying=!1,i.frontendPlayButton&&(i.frontendPlayButton.innerHTML=u()))})),le(ae(i),"render",(function(){var e=window.onYouTubePlayerAPIReady||null,t=document.createElement("script");t.src="https://www.youtube.com/iframe_api";var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(t,n),window.onYouTubePlayerAPIReady=function(){e&&e(),i.createPlayer()}})),le(ae(i),"play",(function(){i.player.playVideo(),i.isPlaying=!0,i.frontendPlayButton&&(i.frontendPlayButton.innerHTML=c())})),le(ae(i),"pause",(function(){i.player.pauseVideo(),i.isPlaying=!1,i.frontendPlayButton&&(i.frontendPlayButton.innerHTML=u())})),le(ae(i),"mute",(function(){i.player.mute(),i.isMuted=!0,i.frontendVolumeButton&&(i.frontendVolumeButton.innerHTML=r())})),le(ae(i),"unMute",(function(){i.player.unMute(),i.isMuted=!1,i.frontendVolumeButton&&(i.frontendVolumeButton.innerHTML=s())})),le(ae(i),"onPlayingEvent",(function(){i.isPlaying=!0,document.getElementById(i.ref).style.opacity=1,i.hideEndPoster(),(i.config.isFrontendPlayEnabled||i.config.isFrontendVolumeEnabled)&&(i.frontendButtonsContainer.style.opacity=1)})),le(ae(i),"onEndedEvent",(function(){i.player.seekTo(i.options.startSecond),i.config.loop||(i.pause(),setTimeout((function(){i.showEndPoster()}),350))})),le(ae(i),"resize",(function(){if(void 0!==i.player){var e=i.container.offsetWidth,t=i.container.offsetHeight,n=16/9,o=Math.ceil(t*n),r=Math.ceil(e/n),c=document.getElementById(i.ref);e/n<t?(c.style.width="".concat(o,"px"),c.style.height="".concat(t,"px"),c.style.top="0px",i.config.isRtl?c.style.right="".concat((e-o)/2,"px"):c.style.left="".concat((e-o)/2,"px")):(c.style.width="".concat(e,"px"),c.style.height="".concat(r,"px"),c.style.top="".concat((t-r)/2,"px"),i.config.isRtl?c.style.right="0px":c.style.left="0px")}})),i.isPlaying=!1,i.isMuted=!0,i.options=oe(oe({},{url:null,startSecond:0,endSecond:null,playerOptions:{}}),o),i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ue(e,t)}(t,e),n=t,Object.defineProperty(n,"prototype",{writable:!1}),n;var n}(V);function de(e){return de="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},de(e)}function ye(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,ve(o.key),o)}}function be(e,t,n){return t&&ye(e.prototype,t),n&&ye(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function me(e,t,n){return(t=ve(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ve(e){var t=function(e,t){if("object"!=de(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!=de(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==de(t)?t:String(t)}var ge=be((function e(t,n,o,r){var i;switch(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),n){case"local":i=new I(t,o,r);break;case"youtube":i=new pe(t,o,r);break;case"vimeo":i=new X(t,o,r);break;default:throw new Error("Type must be local|youtube|vimeo!")}return i.init(),i}));fe=ge,me(ge,"instances",{}),me(ge,"getNextSibling",(function(e,t){var n=e.nextElementSibling;if(!t)return n;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}})),me(ge,"createSiteOriginContainer",(function(e,t){for(var n,o=document.querySelector(".".concat(e)),r=fe.getNextSibling(o,".panel-grid"),i=!1,c=0;c<r.childNodes.length;c++)r.childNodes[c].classList.contains("siteorigin-panels-stretch")&&(i=!0,n=c);i&&n?r.childNodes[n].classList.add(t):r.classList.add(t),o.remove()})),me(ge,"createWPBakeryContainer",(function(e,t){var n=document.querySelector(".".concat(e));fe.getNextSibling(n,".vc_row").classList.add(t),n.remove()}));var he=ge}(),VideoBackgroundPro=o.default}();