/home/silvwabw/www/wp-content/plugins/gutenverse-form/lib/framework/assets/js/frontend/video.js
(()=>{var t={36(t,e,n){var r=n(613),o=n(335),i=n(82),c=r?r.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":c&&c in Object(t)?o(t):i(t)}},65(t,e,n){var r=n(36),o=n(330),i=n(750),c={};c["[object Float32Array]"]=c["[object Float64Array]"]=c["[object Int8Array]"]=c["[object Int16Array]"]=c["[object Int32Array]"]=c["[object Uint8Array]"]=c["[object Uint8ClampedArray]"]=c["[object Uint16Array]"]=c["[object Uint32Array]"]=!0,c["[object Arguments]"]=c["[object Array]"]=c["[object ArrayBuffer]"]=c["[object Boolean]"]=c["[object DataView]"]=c["[object Date]"]=c["[object Error]"]=c["[object Function]"]=c["[object Map]"]=c["[object Number]"]=c["[object Object]"]=c["[object RegExp]"]=c["[object Set]"]=c["[object String]"]=c["[object WeakMap]"]=!1,t.exports=function(t){return i(t)&&o(t.length)&&!!c[r(t)]}},72(t,e,n){var r=n(370)(n(273),"DataView");t.exports=r},82(t){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},89(t){t.exports=function(t){return function(e){return t(e)}}},164(t,e,n){t=n.nmd(t);var r=n(273),o=n(691),i=e&&!e.nodeType&&e,c=i&&t&&!t.nodeType&&t,a=c&&c.exports===i?r.Buffer:void 0,u=(a?a.isBuffer:void 0)||o;t.exports=u},185(t){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},272(t,e,n){var r=n(370)(n(273),"Promise");t.exports=r},273(t,e,n){var r=n(716),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();t.exports=i},302(t,e,n){var r=n(36),o=n(185);t.exports=function(t){if(!o(t))return!1;var e=r(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},330(t){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},335(t,e,n){var r=n(613),o=Object.prototype,i=o.hasOwnProperty,c=o.toString,a=r?r.toStringTag:void 0;t.exports=function(t){var e=i.call(t,a),n=t[a];try{t[a]=void 0;var r=!0}catch(t){}var o=c.call(t);return r&&(e?t[a]=n:delete t[a]),o}},370(t,e,n){var r=n(991),o=n(404);t.exports=function(t,e){var n=o(t,e);return r(n)?n:void 0}},397(t){var e=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return e.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},404(t){t.exports=function(t,e){return null==t?void 0:t[e]}},413(t,e,n){t=n.nmd(t);var r=n(716),o=e&&!e.nodeType&&e,i=o&&t&&!t.nodeType&&t,c=i&&i.exports===o&&r.process,a=function(){try{return i&&i.require&&i.require("util").types||c&&c.binding&&c.binding("util")}catch(t){}}();t.exports=a},443(t,e,n){var r=n(370)(n(273),"Map");t.exports=r},474(t,e,n){var r=n(302),o=n(330);t.exports=function(t){return null!=t&&o(t.length)&&!r(t)}},477(t,e,n){var r=n(273)["__core-js_shared__"];t.exports=r},516(t,e,n){var r,o=n(477),i=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";t.exports=function(t){return!!i&&i in t}},571(t,e,n){var r=n(65),o=n(89),i=n(413),c=i&&i.isTypedArray,a=c?o(c):r;t.exports=a},577(t,e,n){var r=n(72),o=n(443),i=n(272),c=n(885),a=n(675),u=n(36),s=n(397),p="[object Map]",l="[object Promise]",f="[object Set]",h="[object WeakMap]",d="[object DataView]",y=s(r),b=s(o),v=s(i),m=s(c),g=s(a),j=u;(r&&j(new r(new ArrayBuffer(1)))!=d||o&&j(new o)!=p||i&&j(i.resolve())!=l||c&&j(new c)!=f||a&&j(new a)!=h)&&(j=function(t){var e=u(t),n="[object Object]"==e?t.constructor:void 0,r=n?s(n):"";if(r)switch(r){case y:return d;case b:return p;case v:return l;case m:return f;case g:return h}return e}),t.exports=j},584(t,e,n){var r=n(714),o=n(750),i=Object.prototype,c=i.hasOwnProperty,a=i.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(t){return o(t)&&c.call(t,"callee")&&!a.call(t,"callee")};t.exports=u},613(t,e,n){var r=n(273).Symbol;t.exports=r},659(t){t.exports=function(t,e){return function(n){return t(e(n))}}},675(t,e,n){var r=n(370)(n(273),"WeakMap");t.exports=r},691(t){t.exports=function(){return!1}},699(t){var e=Object.prototype;t.exports=function(t){var n=t&&t.constructor;return t===("function"==typeof n&&n.prototype||e)}},714(t,e,n){var r=n(36),o=n(750);t.exports=function(t){return o(t)&&"[object Arguments]"==r(t)}},716(t,e,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;t.exports=r},750(t){t.exports=function(t){return null!=t&&"object"==typeof t}},757(t,e,n){var r=n(804),o=n(577),i=n(584),c=n(957),a=n(474),u=n(164),s=n(699),p=n(571),l=Object.prototype.hasOwnProperty;t.exports=function(t){if(null==t)return!0;if(a(t)&&(c(t)||"string"==typeof t||"function"==typeof t.splice||u(t)||p(t)||i(t)))return!t.length;var e=o(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if(s(t))return!r(t).length;for(var n in t)if(l.call(t,n))return!1;return!0}},768(t){var e=function(t,n){return this instanceof e?t instanceof e?t:((t="string"==typeof t?this.select(t,n):t)&&t.nodeName&&(t=[t]),void(this.nodes=this.slice(t))):new e(t,n)};e.prototype={get length(){return this.nodes.length}},e.prototype.nodes=[],e.prototype.addClass=function(){return this.eacharg(arguments,function(t,e){t.classList.add(e)})},e.prototype.adjacent=function(t,n,r){return"number"==typeof n&&(n=0===n?[]:new Array(n).join().split(",").map(Number.call,Number)),this.each(function(o,i){var c=document.createDocumentFragment();e(n||{}).map(function(n,r){return"string"==typeof(r="function"==typeof t?t.call(this,n,r,o,i):t)?this.generate(r):e(r)}).each(function(t){this.isInPage(t)?c.appendChild(e(t).clone().first()):c.appendChild(t)}),r.call(this,o,c)})},e.prototype.after=function(t,e){return this.adjacent(t,e,function(t,e){t.parentNode.insertBefore(e,t.nextSibling)})},e.prototype.append=function(t,e){return this.adjacent(t,e,function(t,e){t.appendChild(e)})},e.prototype.args=function(t,e,n){return(t="string"!=typeof(t="function"==typeof t?t(e,n):t)?this.slice(t).map(this.str(e,n)):t).toString().split(/[\s,]+/).filter(function(t){return t.length})},e.prototype.array=function(t){var n=this;return this.nodes.reduce(function(r,o,i){var c;return t?(c="string"==typeof(c=(c=t.call(n,o,i))||!1)?e(c):c)instanceof e&&(c=c.nodes):c=o.innerHTML,r.concat(!1!==c?c:[])},[])},e.prototype.attr=function(t,e,n){return n=n?"data-":"",this.pairs(t,e,function(t,e){return t.getAttribute(n+e)},function(t,e,r){r?t.setAttribute(n+e,r):t.removeAttribute(n+e)})},e.prototype.before=function(t,e){return this.adjacent(t,e,function(t,e){t.parentNode.insertBefore(e,t)})},e.prototype.children=function(t){return this.map(function(t){return this.slice(t.children)}).filter(t)},e.prototype.clone=function(){return this.map(function(t,e){var n=t.cloneNode(!0),r=this.getAll(n);return this.getAll(t).each(function(t,e){for(var n in this.mirror)this.mirror[n]&&this.mirror[n](t,r.nodes[e])}),n})},e.prototype.getAll=function(t){return e([t].concat(e("*",t).nodes))},e.prototype.mirror={},e.prototype.mirror.events=function(t,n){if(t._e)for(var r in t._e)t._e[r].forEach(function(t){e(n).on(r,t.callback)})},e.prototype.mirror.select=function(t,n){e(t).is("select")&&(n.value=t.value)},e.prototype.mirror.textarea=function(t,n){e(t).is("textarea")&&(n.value=t.value)},e.prototype.closest=function(t){return this.map(function(n){do{if(e(n).is(t))return n}while((n=n.parentNode)&&n!==document)})},e.prototype.data=function(t,e){return this.attr(t,e,!0)},e.prototype.each=function(t){return this.nodes.forEach(t.bind(this)),this},e.prototype.eacharg=function(t,e){return this.each(function(n,r){this.args(t,n,r).forEach(function(t){e.call(this,n,t)},this)})},e.prototype.empty=function(){return this.each(function(t){for(;t.firstChild;)t.removeChild(t.firstChild)})},e.prototype.filter=function(t){var n=t instanceof e?function(e){return-1!==t.nodes.indexOf(e)}:"function"==typeof t?t:function(e){return e.matches=e.matches||e.msMatchesSelector||e.webkitMatchesSelector,e.matches(t||"*")};return e(this.nodes.filter(n))},e.prototype.find=function(t){return this.map(function(n){return e(t||"*",n)})},e.prototype.first=function(){return this.nodes[0]||!1},e.prototype.generate=function(t){return/^\s*<tr[> ]/.test(t)?e(document.createElement("table")).html(t).children().children().nodes:/^\s*<t(h|d)[> ]/.test(t)?e(document.createElement("table")).html(t).children().children().children().nodes:/^\s*</.test(t)?e(document.createElement("div")).html(t).children().nodes:document.createTextNode(t)},e.prototype.handle=function(){var t=this.slice(arguments).map(function(t){return"function"==typeof t?function(e){e.preventDefault(),t.apply(this,arguments)}:t},this);return this.on.apply(this,t)},e.prototype.hasClass=function(){return this.is("."+this.args(arguments).join("."))},e.prototype.html=function(t){return void 0===t?this.first().innerHTML||"":this.each(function(e){e.innerHTML=t})},e.prototype.is=function(t){return 0<this.filter(t).length},e.prototype.isInPage=function(t){return t!==document.body&&document.body.contains(t)},e.prototype.last=function(){return this.nodes[this.length-1]||!1},e.prototype.map=function(t){return t?e(this.array(t)).unique():this},e.prototype.not=function(t){return this.filter(function(n){return!e(n).is(t||!0)})},e.prototype.off=function(t,n,r){var o=null==n&&null==r,i=null,c=n;return"string"==typeof n&&(i=n,c=r),this.eacharg(t,function(t,n){e(t._e?t._e[n]:[]).each(function(e){(o||e.orig_callback===c&&e.selector===i)&&t.removeEventListener(n,e.callback)})})},e.prototype.on=function(t,n,r){function o(t,e){try{Object.defineProperty(t,"currentTarget",{value:e,configurable:!0})}catch(t){}}var i=null,c=n;function a(t){return n.apply(this,[t].concat(t.detail||[]))}return"string"==typeof n&&(i=n,c=r,n=function(t){var n=arguments;e(t.currentTarget).find(i).each(function(e){var i;e.contains(t.target)&&(i=t.currentTarget,o(t,e),r.apply(e,n),o(t,i))})}),this.eacharg(t,function(t,e){t.addEventListener(e,a),t._e=t._e||{},t._e[e]=t._e[e]||[],t._e[e].push({callback:a,orig_callback:c,selector:i})})},e.prototype.pairs=function(t,e,n,r){var o;return void 0!==e&&(o=t,(t={})[o]=e),"object"==typeof t?this.each(function(e,n){for(var o in t)"function"==typeof t[o]?r(e,o,t[o](e,n)):r(e,o,t[o])}):this.length?n(this.first(),t):""},e.prototype.param=function(t){return Object.keys(t).map(function(e){return this.uri(e)+"="+this.uri(t[e])}.bind(this)).join("&")},e.prototype.parent=function(t){return this.map(function(t){return t.parentNode}).filter(t)},e.prototype.prepend=function(t,e){return this.adjacent(t,e,function(t,e){t.insertBefore(e,t.firstChild)})},e.prototype.remove=function(){return this.each(function(t){t.parentNode&&t.parentNode.removeChild(t)})},e.prototype.removeClass=function(){return this.eacharg(arguments,function(t,e){t.classList.remove(e)})},e.prototype.replace=function(t,n){var r=[];return this.adjacent(t,n,function(t,e){r=r.concat(this.slice(e.children)),t.parentNode.replaceChild(e,t)}),e(r)},e.prototype.scroll=function(){var t=this.first();return t&&t.scrollIntoView({behavior:"smooth"}),this},e.prototype.select=function(t,n){return t=t.replace(/^\s*/,"").replace(/\s*$/,""),/^</.test(t)?e().generate(t):(n||document).querySelectorAll(t)},e.prototype.serialize=function(){var t=this;return this.slice(this.first().elements).reduce(function(n,r){return!r.name||r.disabled||"file"===r.type||/(checkbox|radio)/.test(r.type)&&!r.checked?n:"select-multiple"===r.type?(e(r.options).each(function(e){e.selected&&(n+="&"+t.uri(r.name)+"="+t.uri(e.value))}),n):n+"&"+t.uri(r.name)+"="+t.uri(r.value)},"").slice(1)},e.prototype.siblings=function(t){return this.parent().children(t).not(this)},e.prototype.size=function(){var t=this.first();return t?t.getBoundingClientRect():null},e.prototype.slice=function(t){return t&&0!==t.length&&"string"!=typeof t&&"[object Function]"!==t.toString()?t.length?[].slice.call(t.nodes||t):[t]:[]},e.prototype.str=function(t,e){return function(n){return"function"==typeof n?n.call(this,t,e):n.toString()}},e.prototype.text=function(t){return void 0===t?this.first().textContent||"":this.each(function(e){e.textContent=t})},e.prototype.toggleClass=function(t,e){return!!e===e?this[e?"addClass":"removeClass"](t):this.eacharg(t,function(t,e){t.classList.toggle(e)})},e.prototype.trigger=function(t){var e=this.slice(arguments).slice(1);return this.eacharg(t,function(t,n){var r,o={bubbles:!0,cancelable:!0,detail:e};try{r=new window.CustomEvent(n,o)}catch(t){(r=document.createEvent("CustomEvent")).initCustomEvent(n,!0,!0,e)}t.dispatchEvent(r)})},e.prototype.unique=function(){return e(this.nodes.reduce(function(t,e){return null!=e&&!1!==e&&-1===t.indexOf(e)?t.concat(e):t},[]))},e.prototype.uri=function(t){return encodeURIComponent(t).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A").replace(/%20/g,"+")},e.prototype.wrap=function(t){return this.map(function(n){return e(t).each(function(t){(function(t){for(;t.firstElementChild;)t=t.firstElementChild;return e(t)})(t).append(n.cloneNode(!0)),n.parentNode.replaceChild(t,n)})})},t.exports&&(t.exports=e,t.exports.u=e)},791(t){function e(t,e){t.onload=function(){this.onerror=this.onload=null,e(null,t)},t.onerror=function(){this.onerror=this.onload=null,e(new Error("Failed to load "+this.src),t)}}function n(t,e){t.onreadystatechange=function(){"complete"!=this.readyState&&"loaded"!=this.readyState||(this.onreadystatechange=null,e(null,t))}}t.exports=function(t,r,o){var i=document.head||document.getElementsByTagName("head")[0],c=document.createElement("script");"function"==typeof r&&(o=r,r={}),r=r||{},o=o||function(){},c.type=r.type||"text/javascript",c.charset=r.charset||"utf8",c.async=!("async"in r)||!!r.async,c.src=t,r.attrs&&function(t,e){for(var n in e)t.setAttribute(n,e[n])}(c,r.attrs),r.text&&(c.text=""+r.text),("onload"in c?e:n)(c,o),c.onload||e(c,o),i.appendChild(c)}},804(t,e,n){var r=n(699),o=n(958),i=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return o(t);var e=[];for(var n in Object(t))i.call(t,n)&&"constructor"!=n&&e.push(n);return e}},885(t,e,n){var r=n(370)(n(273),"Set");t.exports=r},957(t){var e=Array.isArray;t.exports=e},958(t,e,n){var r=n(659)(Object.keys,Object);t.exports=r},991(t,e,n){var r=n(302),o=n(516),i=n(185),c=n(397),a=/^\[object .+?Constructor\]$/,u=Function.prototype,s=Object.prototype,p=u.toString,l=s.hasOwnProperty,f=RegExp("^"+p.call(l).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!i(t)||o(t))&&(r(t)?f:a).test(c(t))}}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={id:r,loaded:!1,exports:{}};return t[r](i,i.exports,n),i.loaded=!0,i.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),(()=>{"use strict";function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(e){var n=function(e){if("object"!=t(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=t(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==t(n)?n:n+""}function o(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,r(o.key),o)}}function i(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function c(t){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},c(t)}function a(t,e){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},a(t,e)}function u(t,e,n){return(e=r(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var p=["fadeIn","fadeInLeft","fadeInDown","fadeInRight","fadeInUp","slideInLeft","slideInDown","slideInRight","slideInUp","zoomIn","zoomInLeft","zoomInDown","zoomInRight","zoomInUp","bounceIn","bounceInLeft","bounceInDown","bounceInRight","bounceInUp","rotateIn","rotateInDownLeft","rotateInDownRight","rotateInUpLeft","rotateInUpRight","bounce","flash","pulse","rubberBand","shake","headShake","swing","tada","wobble","jello","lightSpeedIn","rollIn"],l=["desktop","tablet","mobile"],f=n(757),h=n.n(f),d=function(){var t=((window.GutenverseConfig||window.GutenverseData||{}).settingsData||{}).editor_settings||{},e=t.tablet_breakpoint,n=void 0===e?1024:e,r=t.mobile_breakpoint;return{tabletBreakpoint:n,mobileBreakpoint:void 0===r?767:r}};function y(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function b(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?y(Object(n),!0).forEach(function(e){u(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var v=function(){return i(function t(n){e(this,t),n&&(this._elements=n,this.init())},[{key:"getAnimationClass",value:function(t){var e=null,n=[],r=[],o=d(),i=o.tabletBreakpoint,c=o.mobileBreakpoint;if(l.map(function(t){var e,r=p.map(function(e){return"".concat(t,"-").concat(e)});n.push.apply(n,function(t){if(Array.isArray(t))return s(t)}(e=r)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(e)||function(t,e){if(t){if("string"==typeof t)return s(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(t,e):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}),t.hasClass("animated")){n.map(function(e){t.hasClass(e)&&r.push(e)});var a=function(t){return r.filter(function(e){return e.includes(t)})},u=[];window.innerWidth<=c?u.push("mobile","tablet","desktop"):window.innerWidth>c&&window.innerWidth<=i?u.push("tablet","desktop"):window.innerWidth>c&&u.push("desktop");for(var f=0;f<u.length;f++){var y=a(u[f]);if(!h()(y)){e=y[0];break}}t.hasClass("guten-element-hide")&&h()(e)&&t.removeClass("guten-element-hide")}return{animationClass:e,animationClasses:r}}},{key:"playAnimation",value:function(t){var e=this.getAnimationClass(t),n=e.animationClass,r=e.animationClasses;n&&(r.map(function(e){return t.removeClass(e)}),t.addClass("__".concat(n)),t.removeClass("guten-element-hide"))}},{key:"playOnScreen",value:function(t,e){new IntersectionObserver(function(t){!0===t[0].isIntersecting&&e.map(function(t){return t.play()})},{threshold:[.5]}).observe(t)}},{key:"swiperBreakpoint",value:function(t){var e=d(),n=e.tabletBreakpoint,r=e.mobileBreakpoint,o=b({},t[768]),i=b({},t[1024]);return delete t[768],delete t[1024],t[parseInt(r)+1]=o,t[parseInt(n)+1]=i,t}}])}(),m=n(768),g=n.n(m),j=n(791),w=n.n(j);function x(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(x=function(){return!!t})()}var O=function(n){function r(){return e(this,r),n=this,i=arguments,o=c(o=r),function(e,n){if(n&&("object"==t(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(e)}(n,x()?Reflect.construct(o,i||[],c(n).constructor):o.apply(n,i));var n,o,i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&a(t,e)}(r,n),i(r,[{key:"init",value:function(){var t=this,e=this._elements,n=window.GutenverseFrontendConfig,r=n.framework_asset,o=n.framework_version;e.length>0&&w()(r+"js/ReactPlayer.standalone.js?ver="+o,function(n){n||e.map(function(e){t._renderVideo(e)}),window.addEventListener("resize",function(){e.map(function(e){t._calculateSize(e)})},!0)})}},{key:"_calculateSize",value:function(t){var e=g()(t).find(".guten-video-bg-wrapper");if(e.length){var n=g()(t).find(".guten-video-bg-wrapper > div"),r=g()(e).size(),o=Math.floor(.56*r.width),i=Math.floor(r.height/.56);o>r.height?n.attr("style","width: ".concat(r.width,"px; height: ").concat(o,"px")):n.attr("style","width: ".concat(i,"px; height: ").concat(r.height,"px"))}}},{key:"_renderVideo",value:function(e){var n=this,r=g()(e).data("property"),o=r?JSON.parse(r):null;o&&"object"===t(o)&&(renderReactPlayer(e,o),setTimeout(function(){n._calculateSize(e),g()(e).find(".guten-video-bg-wrapper").addClass("loaded")},1))}}])}(v),C=g()(".guten-video-background");C&&new O(C)})()})();