var responsivelyLazy=void 0!==responsivelyLazy?responsivelyLazy:function(){var y=!1,w=!0,a=null,l=null,d="undefined"!=typeof IntersectionObserver,u=!1,o=[],s=function(e){if(null===a)return!1;var t=e.getBoundingClientRect(),n=t.top,r=t.left,i=t.width,o=t.height;return n-500<l&&0<n+o&&r<a&&0<r+i},c=function(e,t){for(var n=e.length,r=t;r<n;r++){var i=!1,o=e[r],a=document.createElement("script"),l=o.getAttribute("type");null!==l&&a.setAttribute("type",l);var s=o.getAttribute("src");if(null!==s&&(a.setAttribute("src",s),(void 0===o.async||!1===o.async)&&r+1<n&&(i=!0,a.addEventListener("load",function(){c(e,r+1)}))),a.innerHTML=o.innerHTML,o.parentNode.insertBefore(a,o),o.parentNode.removeChild(o),i)break}},v=function(t,e){var n=e.getAttribute("data-flixsrcset");if(null!==n)if(0<(n=n.trim()).length){for(var r=[],i=(n=n.split(",")).length,o=0;o<i;o++){var a=n[o].trim();if(0!==a.length){var l=a.lastIndexOf(" ");if(-1===l)var s=a,d=999998;else s=a.substr(0,l),d=parseInt(a.substr(l+1,a.length-l-2),10);var u=!1;-1!==s.indexOf(".webp",s.length-5)?y&&(u=!0):u=!0,u&&r.push([s,d])}}r.sort(function(e,t){if(e[1]<t[1])return-1;if(e[1]>t[1])return 1;if(e[1]===t[1]){if(-1!==t[0].indexOf(".webp",t[0].length-5))return 1;if(-1!==e[0].indexOf(".webp",e[0].length-5))return-1}return 0}),n=r}else n=[];else n=[];var c=t.parentNode.offsetWidth,v=null;for(i=n.length,o=0;o<i;o++){var f=n[o];if(f[1]>=c){v=f;break}o==i-1&&(v=f)}null===v&&(v=[e.getAttribute("src"),999999]),void 0===t.responsivelyLazyLastSetOption&&(t.responsivelyLazyLastSetOption=["",0]);var A=(t.responsivelyLazyLastSetOption=v)[0];void 0===t.responsivelyLazyEventsAttached&&(t.responsivelyLazyEventsAttached=!0,e.addEventListener("load",function(){var e=t.getAttribute("data-onlazyload");null!==e&&new Function(e).bind(t)()},!1),e.addEventListener("error",function(){t.responsivelyLazyLastSetOption=["",0]},!1)),A===e.getAttribute("src")||A===e.getAttribute("srcset")?e.removeAttribute("srcset2"):w?e.setAttribute("srcset",A):e.setAttribute("src",A)},f=function(){a=window.innerWidth,l=window.innerHeight},A=function(e,t){if(-1!=location.href.search("flix-lazyqa")&&console.log("updateElement"),void 0!==window.flixJsCallbacks&&void 0!==window.flixJsCallbacks.override||void 0!==FlixjQ.fn&&void 0!==FlixjQ.fn.override){t=!0;-1!=location.href.search("flix-lazyqa")&&console.log("window.flixJsCallbacks.override")}if((-1===o.indexOf(e)||t)&&(s(e)||t)){var n=e.getAttribute("data-lazycontent");if(null!==n){o.push(e),u=!0,e.innerHTML=n;var r=e.querySelectorAll("script");return 0<r.length&&c(r,0),void(u=!1)}if("img"!==e.tagName.toLowerCase()){var i=e.querySelector("img");null===i||v(e,i)}else v(e,e)}},p=function(){for(var e=document.querySelectorAll("[data-flixsrcset]"),t=e.length,n=0;n<t;n++)A(e[n])};if(void 0!==window.addEventListener&&void 0!==document.querySelectorAll){f();var b=new Image;b.src="data:image/webp;base64,UklGRiQAAABXRUJQVlA4IBgAAAAwAQCdASoCAAEADMDOJaQAA3AA/uuuAAA=",b.onload=b.onerror=function(){y=2===b.width,w="srcset"in document.createElement("img");var e=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)},t=!0,n=function(){t&&(t=!1,p()),e.call(null,n)};if(n(),d)var r=function(){for(var e=document.querySelectorAll("[data-flixsrcset]"),t=e.length,n=0;n<t;n++){var r=e[n];void 0===r.responsivelyLazyObserverAttached&&(r.responsivelyLazyObserverAttached=!0,i.observe(r))}},i=new IntersectionObserver(function(e){for(var t in e){var n=e[t];0<n.intersectionRatio&&A(n.target)}}),o=null;var a=function(){d?(window.clearTimeout(o),o=window.setTimeout(function(){t=!0},300)):t=!0},l=function(){for(var e=document.querySelectorAll("[data-flixsrcset]"),t=e.length,n=0;n<t;n++)for(var r=e[n].parentNode;r;)void 0===r.responsivelyLazyScrollAttached&&(r.responsivelyLazyScrollAttached=!0,r.addEventListener("scroll",a)),r=r.parentNode},s=function(){(window.addEventListener("resize",function(){f(),a()}),window.addEventListener("scroll",a),window.addEventListener("load",a),d&&r(),l(),"undefined"!=typeof MutationObserver)&&new MutationObserver(function(){u||(d&&r(),l(),a())}).observe(document.querySelector("body"),{childList:!0,subtree:!0})};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",s):s()}}return{run:p,isVisible:s}}();