text: (window.MIP=window.MIP||[]).push({name:"mip-lightbox",func:function(){define("mip-lightbox/mip-lightbox",["require","customElement","fixed-element","util"],function(t){function e(){var t=this;t.open=!1,t.id=this.element.id,p.css(t.element,{position:"fixed","z-index":10001,top:0,right:0,left:0,transition:"opacity 0.1s ease-in"}),n.call(t),t.addEventAction("close",function(e){s.call(t,e)}),t.addEventAction("open",function(e){r.call(t,e)}),t.addEventAction("toggle",function(e){o.call(t,e)})}function i(){var t=this,e=t.element.getAttribute("autoclosetime"),i=t.element.querySelector(".mip-lightbox-seconds");if(Number(e)&&i){var n=Math.abs(Math.ceil(e));i.innerHTML=n,this.interval=setInterval(function(){if(n-=1,i.innerHTML=n,n<=0)t.open=!1,c.call(t),p.css(t.element,{display:"none"})},1e3)}}function n(){var t=this,e=[],i=0;const n=t.element.childNodes;for(i=0;i<n.length;i++)if(1===n[i].nodeType)e.push(n[i]);for(t.container=document.createElement("div"),t.applyFillContent(t.container),t.element.appendChild(t.container),i=0;i<e.length;i++)t.container.appendChild(e[i])}function o(t){a.call(this)?s.call(this,t):r.call(this,t)}function r(t){var e=this;if(!e.open)d.hideFixedLayer(d._fixedLayer),t.preventDefault(),new f(e.element,{preventY:!0}),e.open=!0,p.css(e.element,{display:"block"}),l.call(e),i.call(e)}function s(t){var e=this;if(e.open)d.showFixedLayer(d._fixedLayer),t.preventDefault(),e.open=!1,c.call(e),p.css(e.element,{display:"none"}),p.css(document.body,{overflow:"auto"})}function a(){return this.open}function l(){var t=this;if(!t.maskElement){const e=document.createElement("div");e.id="MIP-LLIGTBOX-MASK",e.setAttribute("on","tap:"+t.id+".close"),e.style.display="block",t.element.parentNode.appendChild(e),e.addEventListener("touchmove",function(t){t.preventDefault()},!1),t.maskElement=e}p.css(t.maskElement,{display:"block"})}function c(){if(this.maskElement)p.css(this.maskElement,{display:"none"}),clearInterval(this.interval)}var u=t("customElement").create(),d=t("fixed-element"),p=t("util"),f=p.Gesture;return u.prototype.build=e,u.prototype.detachedCallback=function(){clearInterval(this.interval)},u}),define("mip-lightbox",["mip-lightbox/mip-lightbox"],function(t){return t}),function(){function t(t,e){t.registerMipElement("mip-lightbox",e,"mip-lightbox{color:#fff}mip-lightbox a{color:#fff !important}#MIP-LLIGTBOX-MASK{position:fixed !important;top:0 !important;left:0 !important;width:100% !important;height:100% !important;background-image:none !important;background:rgba(0,0,0,0.8);z-index:10000 !important;display:none}.mip-lightbox-countdown{position:absolute;top:5px;right:5px}")}if(window.MIP)require(["mip-lightbox"],function(e){t(window.MIP,e)});else require(["mip","mip-lightbox"],t)}()}});