bluepoolbermagui.com.au
Open in
urlscan Pro
27.54.88.193
Public Scan
URL:
https://bluepoolbermagui.com.au/wp-content/themes/themify-ultra/themify/js/lightbox.min.js?version=3.2.9
Submission: On November 26 via api from US — Scanned from AU
Submission: On November 26 via api from US — Scanned from AU
Form analysis
0 forms found in the DOMText Content
/*v1.1.0*/ ;!function(b){"function"==typeof define&&define.amd?define(["jquery"],b):b("object"==typeof exports?require("jquery"):window.jQuery||window.Zepto)}(function(aQ){var aP,aO,aN,aM,aL,aK,aJ="Close",aI="BeforeClose",aH="AfterClose",aG="BeforeAppend",aF="MarkupParse",aE="Open",aD="Change",aC="mfp",aB="."+aC,aA="mfp-ready",az="mfp-removing",ay="mfp-prevent-close",ax=function(){},aw=!!window.jQuery,av=aQ(window),au=function(b,d){aP.ev.on(aC+b+aB,d)},at=function(a,j,i,h){var g=document.createElement("div");return g.className="mfp-"+a,i&&(g.innerHTML=i),h?j&&j.appendChild(g):(g=aQ(g),j&&g.appendTo(j)),g},ar=function(b,a){aP.ev.triggerHandler(aC+b,a),aP.st.callbacks&&(b=b.charAt(0).toLowerCase()+b.slice(1),aP.st.callbacks[b]&&aP.st.callbacks[b].apply(aP,aQ.isArray(a)?a:[a]))},aq=function(a){return a===aK&&aP.currTemplate.closeBtn||(aP.currTemplate.closeBtn=aQ(aP.st.closeMarkup.replace("%title%",aP.st.tClose)),aK=a),aP.currTemplate.closeBtn},ap=function(){aQ.magnificPopup.instance||(aP=new ax,aP.init(),aQ.magnificPopup.instance=aP)},ao=function(){var d=document.createElement("p").style,c=["ms","O","Moz","Webkit"];if(void 0!==d.transition){return !0}for(;c.length;){if(c.pop()+"Transition" in d){return !0}}return !1};ax.prototype={constructor:ax,init:function(){var a=navigator.appVersion;aP.isLowIE=aP.isIE8=document.all&&!document.addEventListener,aP.isAndroid=/android/gi.test(a),aP.isIOS=/iphone|ipad|ipod/gi.test(a),aP.supportsTransition=ao(),aP.probablyMobile=aP.isAndroid||aP.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),aN=aQ(document),aP.popupsCache={}},open:function(t){var s;if(t.isObj===!1){aP.items=t.items.toArray(),aP.index=0;var q,p=t.items;for(s=0;s<p.length;s++){if(q=p[s],q.parsed&&(q=q.el[0]),q===t.el[0]){aP.index=s;break}}}else{aP.items=aQ.isArray(t.items)?t.items:[t.items],aP.index=t.index||0}if(aP.isOpen){return void aP.updateItemHTML()}aP.types=[],aL="",t.mainEl&&t.mainEl.length?aP.ev=t.mainEl.eq(0):aP.ev=aN,t.key?(aP.popupsCache[t.key]||(aP.popupsCache[t.key]={}),aP.currTemplate=aP.popupsCache[t.key]):aP.currTemplate={},aP.st=aQ.extend(!0,{},aQ.magnificPopup.defaults,t),aP.fixedContentPos="auto"===aP.st.fixedContentPos?!aP.probablyMobile:aP.st.fixedContentPos,aP.st.modal&&(aP.st.closeOnContentClick=!1,aP.st.closeOnBgClick=!1,aP.st.showCloseBtn=!1,aP.st.enableEscapeKey=!1),aP.bgOverlay||(aP.bgOverlay=at("bg").on("click"+aB,function(){aP.close()}),aP.wrap=at("wrap").attr("tabindex",-1).on("click"+aB,function(c){aP._checkIfClose(c.target)&&aP.close()}),aP.container=at("container",aP.wrap)),aP.contentContainer=at("content"),aP.st.preloader&&(aP.preloader=at("preloader",aP.container,aP.st.tLoading));var m=aQ.magnificPopup.modules;for(s=0;s<m.length;s++){var l=m[s];l=l.charAt(0).toUpperCase()+l.slice(1),aP["init"+l].call(aP)}ar("BeforeOpen"),aP.st.showCloseBtn&&(aP.st.closeBtnInside?(au(aF,function(g,e,i,h){i.close_replaceWith=aq(h.type)}),aL+=" mfp-close-btn-in"):aP.wrap.append(aq())),aP.st.alignTop&&(aL+=" mfp-align-top"),aP.fixedContentPos?aP.wrap.css({overflow:aP.st.overflowY,overflowX:"hidden",overflowY:aP.st.overflowY}):aP.wrap.css({top:av.scrollTop(),position:"absolute"}),(aP.st.fixedBgPos===!1||"auto"===aP.st.fixedBgPos&&!aP.fixedContentPos)&&aP.bgOverlay.css({height:aN.height(),position:"absolute"}),aP.st.enableEscapeKey&&aN.on("keyup"+aB,function(c){27===c.keyCode&&aP.close()}),av.on("resize"+aB,function(){aP.updateSize()}),aP.st.closeOnContentClick||(aL+=" mfp-auto-cursor"),aL&&aP.wrap.addClass(aL);var f=aP.wH=av.height(),d={};if(aP.fixedContentPos&&aP._hasScrollBar(f)){var b=aP._getScrollbarSize();b&&(d.marginRight=b)}aP.fixedContentPos&&(aP.isIE7?aQ("body, html").css("overflow","hidden"):d.overflow="hidden");var a=aP.st.mainClass;return aP.isIE7&&(a+=" mfp-ie7"),a&&aP._addClassToMFP(a),aP.updateItemHTML(),ar("BuildControls"),aQ("html").css(d),aP.bgOverlay.add(aP.wrap).prependTo(aP.st.prependTo||aQ(document.body)),aP._lastFocusedEl=document.activeElement,setTimeout(function(){aP.content?(aP._addClassToMFP(aA),aP._setFocus()):aP.bgOverlay.addClass(aA),aN.on("focusin"+aB,aP._onFocusIn)},16),aP.isOpen=!0,aP.updateSize(f),ar(aE),t},close:function(){aP.isOpen&&(ar(aI),aP.isOpen=!1,aP.st.removalDelay&&!aP.isLowIE&&aP.supportsTransition?(aP._addClassToMFP(az),setTimeout(function(){aP._close()},aP.st.removalDelay)):aP._close())},_close:function(){ar(aJ);var b=az+" "+aA+" ";if(aP.bgOverlay.detach(),aP.wrap.detach(),aP.container.empty(),aP.st.mainClass&&(b+=aP.st.mainClass+" "),aP._removeClassFromMFP(b),aP.fixedContentPos){var a={marginRight:""};aP.isIE7?aQ("body, html").css("overflow",""):a.overflow="",aQ("html").css(a)}aN.off("keyup"+aB+" focusin"+aB),aP.ev.off(aB),aP.wrap.attr("class","mfp-wrap").removeAttr("style"),aP.bgOverlay.attr("class","mfp-bg"),aP.container.attr("class","mfp-container"),!aP.st.showCloseBtn||aP.st.closeBtnInside&&aP.currTemplate[aP.currItem.type]!==!0||aP.currTemplate.closeBtn&&aP.currTemplate.closeBtn.detach(),aP.st.autoFocusLast&&aP._lastFocusedEl&&aQ(aP._lastFocusedEl).focus(),aP.currItem=null,aP.content=null,aP.currTemplate=null,aP.prevHeight=0,ar(aH)},updateSize:function(b){if(aP.isIOS){var f=document.documentElement.clientWidth/window.innerWidth,e=window.innerHeight*f;aP.wrap.css("height",e),aP.wH=e}else{aP.wH=b||av.height()}aP.fixedContentPos||aP.wrap.css("height",aP.wH),ar("Resize")},updateItemHTML:function(){var h=aP.items[aP.index];aP.contentContainer.detach(),aP.content&&aP.content.detach(),h.parsed||(h=aP.parseEl(aP.index));var e=h.type;if(ar("BeforeChange",[aP.currItem?aP.currItem.type:"",e]),aP.currItem=h,!aP.currTemplate[e]){var b=aP.st[e]?aP.st[e].markup:!1;ar("FirstMarkupParse",b),b?aP.currTemplate[e]=aQ(b):aP.currTemplate[e]=!0}aM&&aM!==h.type&&aP.container.removeClass("mfp-"+aM+"-holder");var a=aP["get"+e.charAt(0).toUpperCase()+e.slice(1)](h,aP.currTemplate[e]);aP.appendContent(a,e),h.preloaded=!0,ar(aD,h),aM=h.type,aP.container.prepend(aP.contentContainer),ar("AfterChange")},appendContent:function(b,d){aP.content=b,b?aP.st.showCloseBtn&&aP.st.closeBtnInside&&aP.currTemplate[d]===!0?aP.content.find(".mfp-close").length||aP.content.append(aq()):aP.content=b:aP.content="",ar(aG),aP.container.addClass("mfp-"+d+"-holder"),aP.contentContainer.append(aP.content)},parseEl:function(j){var i,h=aP.items[j];if(h.tagName?h={el:aQ(h)}:(i=h.type,h={data:h,src:h.src}),h.el){for(var b=aP.types,a=0;a<b.length;a++){if(h.el.hasClass("mfp-"+b[a])){i=b[a];break}}h.src=h.el.attr("data-mfp-src"),h.src||(h.src=h.el.attr("href"))}return h.type=i||aP.st.type||"inline",h.index=j,h.parsed=!0,aP.items[j]=h,ar("ElementParse",h),aP.items[j]},addGroup:function(b,h){var g=function(a){a.mfpEl=this,aP._openClick(a,b,h)};h||(h={});var f="click.magnificPopup";h.mainEl=b,h.items?(h.isObj=!0,b.off(f).on(f,g)):(h.isObj=!1,h.delegate?b.off(f).on(f,h.delegate,g):(h.items=b,b.off(f).on(f,g)))},_openClick:function(j,i,h){var b=void 0!==h.midClick?h.midClick:aQ.magnificPopup.defaults.midClick;if(b||!(2===j.which||j.ctrlKey||j.metaKey||j.altKey||j.shiftKey)){var a=void 0!==h.disableOn?h.disableOn:aQ.magnificPopup.defaults.disableOn;if(a){if(aQ.isFunction(a)){if(!a.call(aP)){return !0}}else{if(av.width()<a){return !0}}}j.type&&(j.preventDefault(),aP.isOpen&&j.stopPropagation()),h.el=aQ(j.mfpEl),h.delegate&&(h.items=i.find(h.delegate)),aP.open(h)}},updateStatus:function(b,f){if(aP.preloader){aO!==b&&aP.container.removeClass("mfp-s-"+aO),f||"loading"!==b||(f=aP.st.tLoading);var c={status:b,text:f};ar("UpdateStatus",c),b=c.status,f=c.text,aP.preloader.html(f),aP.preloader.find("a").on("click",function(d){d.stopImmediatePropagation()}),aP.container.addClass("mfp-s-"+b),aO=b}},_checkIfClose:function(f){if(!aQ(f).hasClass(ay)){var b=aP.st.closeOnContentClick,a=aP.st.closeOnBgClick;if(b&&a){return !0}if(!aP.content||aQ(f).hasClass("mfp-close")||aP.preloader&&f===aP.preloader[0]){return !0}if(f===aP.content[0]||aQ.contains(aP.content[0],f)){if(b){return !0}}else{if(a&&aQ.contains(document,f)){return !0}}return !1}},_addClassToMFP:function(b){aP.bgOverlay.addClass(b),aP.wrap.addClass(b)},_removeClassFromMFP:function(b){this.bgOverlay.removeClass(b),aP.wrap.removeClass(b)},_hasScrollBar:function(b){return(aP.isIE7?aN.height():document.body.scrollHeight)>(b||av.height())},_setFocus:function(){(aP.st.focus?aP.content.find(aP.st.focus).eq(0):aP.wrap).focus()},_onFocusIn:function(a){return a.target===aP.wrap[0]||aQ.contains(aP.wrap[0],a.target)?void 0:(aP._setFocus(),!1)},_parseMarkup:function(a,h,g){var f;g.data&&(h=aQ.extend(g.data,h)),ar(aF,[a,h,g]),aQ.each(h,function(j,i){if(void 0===i||i===!1){return !0}if(f=j.split("_"),f.length>1){var e=a.find(aB+"-"+f[0]);if(e.length>0){var b=f[1];"replaceWith"===b?e[0]!==i[0]&&e.replaceWith(i):"img"===b?e.is("img")?e.attr("src",i):e.replaceWith(aQ("<img>").attr("src",i).attr("class",e.attr("class"))):e.attr(f[1],i)}}else{a.find(aB+"-"+j).html(i)}})},_getScrollbarSize:function(){if(void 0===aP.scrollbarSize){var b=document.createElement("div");b.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(b),aP.scrollbarSize=b.offsetWidth-b.clientWidth,document.body.removeChild(b)}return aP.scrollbarSize}},aQ.magnificPopup={instance:null,proto:ax.prototype,modules:[],open:function(a,d){return ap(),a=a?aQ.extend(!0,{},a):{},a.isObj=!0,a.index=d||0,this.instance.open(a)},close:function(){return aQ.magnificPopup.instance&&aQ.magnificPopup.instance.close()},registerModule:function(a,d){d.options&&(aQ.magnificPopup.defaults[a]=d.options),aQ.extend(this.proto,d.proto),this.modules.push(a)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close">×</button>',tClose:"Close (Esc)",tLoading:"Loading...",autoFocusLast:!0}},aQ.fn.magnificPopup=function(j){ap();var i=aQ(this);if("string"==typeof j){if("open"===j){var h,b=aw?i.data("magnificPopup"):i[0].magnificPopup,a=parseInt(arguments[1],10)||0;b.items?h=b.items[a]:(h=i,b.delegate&&(h=h.find(b.delegate)),h=h.eq(a)),aP._openClick({mfpEl:h},i,b)}else{aP.isOpen&&aP[j].apply(aP,Array.prototype.slice.call(arguments,1))}}else{j=aQ.extend(!0,{},j),aw?i.data("magnificPopup",j):i[0].magnificPopup=j,aP.addGroup(i,j)}return i};var an,am,al,ak="inline",aj=function(){al&&(am.after(al.addClass(an)).detach(),al=null)};aQ.magnificPopup.registerModule(ak,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){aP.types.push(ak),au(aJ+"."+ak,function(){aj()})},getInline:function(j,i){if(aj(),j.src){var h=aP.st.inline,b=aQ(j.src);if(b.length){var a=b[0].parentNode;a&&a.tagName&&(am||(an=h.hiddenClass,am=at(an),an="mfp-"+an),al=b.after(am).detach().removeClass(an)),aP.updateStatus("ready")}else{aP.updateStatus("error",h.tNotFound),b=aQ("<div>")}return j.inlineElement=b,b}return aP.updateStatus("ready"),aP._parseMarkup(i,{},j),i}}});var ai,ah="ajax",ag=function(){ai&&aQ(document.body).removeClass(ai)},af=function(){ag(),aP.req&&aP.req.abort()};aQ.magnificPopup.registerModule(ah,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'<a href="%url%">The content</a> could not be loaded.'},proto:{initAjax:function(){aP.types.push(ah),ai=aP.st.ajax.cursor,au(aJ+"."+ah,af),au("BeforeChange."+ah,af)},getAjax:function(b){ai&&aQ(document.body).addClass(ai),aP.updateStatus("loading");var a=aQ.extend({url:b.src,success:function(j,i,h){var c={data:j,xhr:h};ar("ParseAjax",c),aP.appendContent(aQ(c.data),ah),b.finished=!0,ag(),aP._setFocus(),setTimeout(function(){aP.wrap.addClass(aA)},16),aP.updateStatus("ready"),ar("AjaxContentAdded")},error:function(){ag(),b.finished=b.loadError=!0,aP.updateStatus("error",aP.st.ajax.tError.replace("%url%",b.src))}},aP.st.ajax.settings);return aP.req=aQ.ajax(a),""}}});var ae,ad=function(b){if(b.data&&void 0!==b.data.title){return b.data.title}var a=aP.st.image.titleSrc;if(a){if(aQ.isFunction(a)){return a.call(aP,b)}if(b.el){return b.el.attr(a)||""}}return""};aQ.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'<a href="%url%">The image</a> could not be loaded.'},proto:{initImage:function(){var b=aP.st.image,a=".image";aP.types.push("image"),au(aE+a,function(){"image"===aP.currItem.type&&b.cursor&&aQ(document.body).addClass(b.cursor)}),au(aJ+a,function(){b.cursor&&aQ(document.body).removeClass(b.cursor),av.off("resize"+aB)}),au("Resize"+a,aP.resizeImage),aP.isLowIE&&au("AfterChange",aP.resizeImage)},resizeImage:function(){var b=aP.currItem;if(b&&b.img&&aP.st.image.verticalFit){var d=0;aP.isLowIE&&(d=parseInt(b.img.css("padding-top"),10)+parseInt(b.img.css("padding-bottom"),10)),b.img.css("max-height",aP.wH-d)}},_onImageHasSize:function(b){b.img&&(b.hasSize=!0,ae&&clearInterval(ae),b.isCheckingImgSize=!1,ar("ImageHasSize",b),b.imgHidden&&(aP.content&&aP.content.removeClass("mfp-loading"),b.imgHidden=!1))},findImageSize:function(b){var h=0,g=b.img[0],f=function(a){ae&&clearInterval(ae),ae=setInterval(function(){return g.naturalWidth>0?void aP._onImageHasSize(b):(h>200&&clearInterval(ae),h++,void (3===h?f(10):40===h?f(50):100===h&&f(500)))},a)};f(1)},getImage:function(p,o){var n=0,m=function(){p&&(p.img[0].complete?(p.img.off(".mfploader"),p===aP.currItem&&(aP._onImageHasSize(p),aP.updateStatus("ready")),p.hasSize=!0,p.loaded=!0,ar("ImageLoadComplete")):(n++,200>n?setTimeout(m,100):l()))},l=function(){p&&(p.img.off(".mfploader"),p===aP.currItem&&(aP._onImageHasSize(p),aP.updateStatus("error",k.tError.replace("%url%",p.src))),p.hasSize=!0,p.loaded=!0,p.loadError=!0)},k=aP.st.image,b=o.find(".mfp-img");if(b.length){var a=document.createElement("img");a.className="mfp-img",p.el&&p.el.find("img").length&&(a.alt=p.el.find("img").attr("alt")),p.img=aQ(a).on("load.mfploader",m).on("error.mfploader",l),a.src=p.src,b.is("img")&&(p.img=p.img.clone()),a=p.img[0],a.naturalWidth>0?p.hasSize=!0:a.width||(p.hasSize=!1)}return aP._parseMarkup(o,{title:ad(p),img_replaceWith:p.img},p),aP.resizeImage(),p.hasSize?(ae&&clearInterval(ae),p.loadError?(o.addClass("mfp-loading"),aP.updateStatus("error",k.tError.replace("%url%",p.src))):(o.removeClass("mfp-loading"),aP.updateStatus("ready")),o):(aP.updateStatus("loading"),p.loading=!0,p.hasSize||(p.imgHidden=!0,o.addClass("mfp-loading"),aP.findImageSize(p)),o)}}});var ac,ab=function(){return void 0===ac&&(ac=void 0!==document.createElement("p").style.MozTransform),ac};aQ.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(b){return b.is("img")?b:b.find("img")}},proto:{initZoom:function(){var b,p=aP.st.zoom,o=".zoom";if(p.enabled&&aP.supportsTransition){var n,m,l=p.duration,i=function(g){var c=g.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),q="all "+p.duration/1000+"s "+p.easing,k={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},j="transition";return k["-webkit-"+j]=k["-moz-"+j]=k["-o-"+j]=k[j]=q,c.css(k),c},h=function(){aP.content.css("visibility","visible")};au("BuildControls"+o,function(){if(aP._allowZoom()){if(clearTimeout(n),aP.content.css("visibility","hidden"),b=aP._getItemToZoom(),!b){return void h()}m=i(b),m.css(aP._getOffset()),aP.wrap.append(m),n=setTimeout(function(){m.css(aP._getOffset(!0)),n=setTimeout(function(){h(),setTimeout(function(){m.remove(),b=m=null,ar("ZoomAnimationEnded")},16)},l)},16)}}),au(aI+o,function(){if(aP._allowZoom()){if(clearTimeout(n),aP.st.removalDelay=l,!b){if(b=aP._getItemToZoom(),!b){return}m=i(b)}m.css(aP._getOffset(!0)),aP.wrap.append(m),aP.content.css("visibility","hidden"),setTimeout(function(){m.css(aP._getOffset())},16)}}),au(aJ+o,function(){aP._allowZoom()&&(h(),m&&m.remove(),b=null)})}},_allowZoom:function(){return"image"===aP.currItem.type},_getItemToZoom:function(){return aP.currItem.hasSize?aP.currItem.img:!1},_getOffset:function(l){var k;k=l?aP.currItem.img:aP.st.zoom.opener(aP.currItem.el||aP.currItem);var j=k.offset(),i=parseInt(k.css("padding-top"),10),b=parseInt(k.css("padding-bottom"),10);j.top-=aQ(window).scrollTop()-i;var a={width:k.width(),height:(aw?k.innerHeight():k[0].offsetHeight)-b-i};return ab()?a["-moz-transform"]=a.transform="translate("+j.left+"px,"+j.top+"px)":(a.left=j.left,a.top=j.top),a}}});var aa="iframe",Z="//about:blank",Y=function(b){if(aP.currTemplate[aa]){var d=aP.currTemplate[aa].find("iframe");d.length&&(b||(d[0].src=Z),aP.isIE8&&d.css("display",b?"block":"none"))}};aQ.magnificPopup.registerModule(aa,{options:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe></div>',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){aP.types.push(aa),au("BeforeChange",function(e,d,f){d!==f&&(d===aa?Y():f===aa&&Y(!0))}),au(aJ+"."+aa,function(){Y()})},getIframe:function(j,i){var h=j.src,b=aP.st.iframe;aQ.each(b.patterns,function(){return h.indexOf(this.index)>-1?(this.id&&(h="string"==typeof this.id?h.substr(h.lastIndexOf(this.id)+this.id.length,h.length):this.id.call(this,h)),h=this.src.replace("%id%",h),!1):void 0});var a={};return b.srcAction&&(a[b.srcAction]=h),aP._parseMarkup(i,a,j),aP.updateStatus("ready"),i}}});var X=function(b){var d=aP.items.length;return b>d-1?b-d:0>b?d+b:b},W=function(e,d,f){return e.replace(/%curr%/gi,d+1).replace(/%total%/gi,f)};aQ.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var b=aP.st.gallery,a=".mfp-gallery";return aP.direction=!0,b&&b.enabled?(aL+=" mfp-gallery",au(aE+a,function(){b.navigateByImgClick&&aP.wrap.on("click"+a,".mfp-img",function(){return aP.items.length>1?(aP.next(),!1):void 0}),aN.on("keydown"+a,function(c){37===c.keyCode?aP.prev():39===c.keyCode&&aP.next()})}),au("UpdateStatus"+a,function(d,e){e.text&&(e.text=W(e.text,aP.currItem.index,aP.items.length))}),au(aF+a,function(c,k,j,i){var h=aP.items.length;j.counter=h>1?W(b.tCounter,i.index,h):""}),au("BuildControls"+a,function(){if(aP.items.length>1&&b.arrows&&!aP.arrowLeft){var h=b.arrowMarkup,g=aP.arrowLeft=aQ(h.replace(/%title%/gi,b.tPrev).replace(/%dir%/gi,"left")).addClass(ay),c=aP.arrowRight=aQ(h.replace(/%title%/gi,b.tNext).replace(/%dir%/gi,"right")).addClass(ay);g.click(function(){aP.prev()}),c.click(function(){aP.next()}),aP.container.append(g.add(c))}}),au(aD+a,function(){aP._preloadTimeout&&clearTimeout(aP._preloadTimeout),aP._preloadTimeout=setTimeout(function(){aP.preloadNearbyImages(),aP._preloadTimeout=null},16)}),void au(aJ+a,function(){aN.off(a),aP.wrap.off("click"+a),aP.arrowRight=aP.arrowLeft=null})):!1},next:function(){aP.direction=!0,aP.index=X(aP.index+1),aP.updateItemHTML()},prev:function(){aP.direction=!1,aP.index=X(aP.index-1),aP.updateItemHTML()},goTo:function(b){aP.direction=b>=aP.index,aP.index=b,aP.updateItemHTML()},preloadNearbyImages:function(){var b,h=aP.st.gallery.preload,g=Math.min(h[0],aP.items.length),f=Math.min(h[1],aP.items.length);for(b=1;b<=(aP.direction?f:g);b++){aP._preloadItem(aP.index+b)}for(b=1;b<=(aP.direction?g:f);b++){aP._preloadItem(aP.index-b)}},_preloadItem:function(b){if(b=X(b),!aP.items[b].preloaded){var a=aP.items[b];a.parsed||(a=aP.parseEl(b)),ar("LazyLoad",a),"image"===a.type&&(a.img=aQ('<img class="mfp-img" />').on("load.mfploader",function(){a.hasSize=!0}).on("error.mfploader",function(){a.hasSize=!0,a.loadError=!0,ar("LazyLoadError",a)}).attr("src",a.src)),a.preloaded=!0}}}});var V="retina";aQ.magnificPopup.registerModule(V,{options:{replaceSrc:function(b){return b.src.replace(/\.\w+$/,function(c){return"@2x"+c})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var b=aP.st.retina,d=b.ratio;d=isNaN(d)?d():d,d>1&&(au("ImageHasSize."+V,function(e,c){c.img.css({"max-width":c.img[0].naturalWidth/d,width:"100%"})}),au("ElementParse."+V,function(a,c){c.src=b.replaceSrc(c,d)}))}}}}),ap()});