vendor: 16,605 bytes, lines 1-4
1/*! Magnific Popup - v1.1.0 - 2016-02-20 2* http://dimsemenov.com/plugins/magnific-popup/ 3* Copyright (c) 2016 Dmitry Semenov; */ 4(function(a){if(typeof define==="function"&&define.amd){define(["jquery"],a);}else{if(typeof exports==="object"){a(require("jquery"));}else{a(window.jQuery||window.Zepto);}}}(function(g){var y="Close",n="BeforeClose",b="AfterClose",h="BeforeAppend",x="MarkupParse",c="Open",F="Change",B="mfp",d="."+B,G="mfp-ready",s="mfp-removing",j="mfp-prevent-close";var u,f=function(){},k=!!(window.jQuery),I,A=g(window),E,D,z,l;var p=function(J,K){u.ev.on(B+J+d,K);},o=function(N,K,L,J){var M=document.createElement("div");M.className="mfp-"+N;if(L){M.innerHTML=L;}if(!J){M=g(M);if(K){M.appendTo(K);}}else{if(K){K.appendChild(M);}}return M;},a=function(K,J){u.ev.triggerHandler(B+K,J);if(u.st.callbacks){K=K.charAt(0).toLowerCase()+K.slice(1);if(u.st.callbacks[K]){u.st.callbacks[K].apply(u,g.isArray(J)?J:[J]);}}},r=function(J){if(J!==l||!u.currTemplate.closeBtn){u.currTemplate.closeBtn=g(u.st.closeMarkup.replace("%title%",u.st.tClose));l=J;}return u.currTemplate.closeBtn;},m=function(){if(!g.magnificPopup.instance){u=new f();u.init();g.magnificPopup.instance=u;}},t=function(){var K=document.createElement("p").style,J=["ms","O","Moz","Webkit"];if(K.transition!==undefined){return true;}while(J.length){if(J.pop()+"Transition" in K){return true;}}return false;};f.prototype={constructor:f,init:function(){var J=navigator.appVersion;u.isLowIE=u.isIE8=document.all&&!document.addEventListener;u.isAndroid=(/android/gi).test(J);u.isIOS=(/iphone|ipad|ipod/gi).test(J);u.supportsTransition=t();u.probablyMobile=(u.isAndroid||u.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent));E=g(document);u.popupsCache={};},open:function(O){var P;if(O.isObj===false){u.items=O.items.toArray();u.index=0;var Q=O.items,R;for(P=0;P<Q.length;P++){R=Q[P];if(R.parsed){R=R.el[0];}if(R===O.el[0]){u.index=P;break;}}}else{u.items=g.isArray(O.items)?O.items:[O.items];u.index=O.index||0;}if(u.isOpen){u.updateItemHTML();return;}u.types=[];z="";if(O.mainEl&&O.mainEl.length){u.ev=O.mainEl.eq(0);}else{u.ev=E;}if(O.key){if(!u.popupsCache[O.key]){u.popupsCache[O.key]={};}u.currTemplate=u.popupsCache[O.key];}else{u.currTemplate={};}u.st=g.extend(true,{},g.magnificPopup.defaults,O);u.fixedContentPos=u.st.fixedContentPos==="auto"?!u.probablyMobile:u.st.fixedContentPos;if(u.st.modal){u.st.closeOnContentClick=false;u.st.closeOnBgClick=false;u.st.showCloseBtn=false;u.st.enableEscapeKey=false;}if(!u.bgOverlay){u.bgOverlay=o("bg").on("click"+d,function(){u.close();});u.wrap=o("wrap").attr("tabindex",-1).on("click"+d,function(T){if(u._checkIfClose(T.target)){u.close();}});u.container=o("container",u.wrap);}u.contentContainer=o("content");if(u.st.preloader){u.preloader=o("preloader",u.container,u.st.tLoading);}var N=g.magnificPopup.modules;for(P=0;P<N.length;P++){var M=N[P];M=M.charAt(0).toUpperCase()+M.slice(1);u["init"+M].call(u);}a("BeforeOpen");if(u.st.showCloseBtn){if(!u.st.closeBtnInside){u.wrap.append(r());}else{p(x,function(W,U,T,V){T.close_replaceWith=r(V.type);});z+=" mfp-close-btn-in";}}if(u.st.alignTop){z+=" mfp-align-top";}if(u.fixedContentPos){u.wrap.css({overflow:u.st.overflowY,overflowX:"hidden",overflowY:u.st.overflowY});}else{u.wrap.css({top:A.scrollTop(),position:"absolute"});}if(u.st.fixedBgPos===false||(u.st.fixedBgPos==="auto"&&!u.fixedContentPos)){u.bgOverlay.css({height:E.height(),position:"absolute"});}if(u.st.enableEscapeKey){E.on("keyup"+d,function(T){if(T.keyCode===27){u.close();}});}A.on("resize"+d,function(){u.updateSize();});if(!u.st.closeOnContentClick){z+=" mfp-auto-cursor";}if(z){u.wrap.addClass(z);}var J=u.wH=A.height();var L={};if(u.fixedContentPos){if(u._hasScrollBar(J)){var S=u._getScrollbarSize();if(S){L.marginRight=S;}}}if(u.fixedContentPos){if(!u.isIE7){L.overflow="hidden";}else{g("body, html").css("overflow","hidden");}}var K=u.st.mainClass;if(u.isIE7){K+=" mfp-ie7";}if(K){u._addClassToMFP(K);}u.updateItemHTML();a("BuildControls");g("html").css(L);u.bgOverlay.add(u.wrap).prependTo(u.st.prependTo||g(document.body));u._lastFocusedEl=document.activeElement;setTimeout(function(){if(u.content){u._addClassToMFP(G);u._setFocus();}else{u.bgOverlay.addClass(G);}E.on("focusin"+d,u._onFocusIn);},16);u.isOpen=true;u.updateSize(J);a(c);return O;},close:function(){if(!u.isOpen){return;}a(n);u.isOpen=false;if(u.st.removalDelay&&!u.isLowIE&&u.supportsTransition){u._addClassToMFP(s);setTimeout(function(){u._close();},u.st.removalDelay);}else{u._close();}},_close:function(){a(y);var J=s+" "+G+" ";u.bgOverlay.detach();u.wrap.detach();u.container.empty();if(u.st.mainClass){J+=u.st.mainClass+" ";}u._removeClassFromMFP(J);if(u.fixedContentPos){var K={marginRight:""};if(u.isIE7){g("body, html").css("overflow","");}else{K.overflow="";}g("html").css(K);}E.off("keyup"+d+" focusin"+d);u.ev.off(d);u.wrap.attr("class","mfp-wrap").removeAttr("style");u.bgOverlay.attr("class","mfp-bg");u.container.attr("class","mfp-container");if(u.st.showCloseBtn&&(!u.st.closeBtnInside||u.currTemplate[u.currItem.type]===true)){if(u.currTemplate.closeBtn){u.currTemplate.closeBtn.detach();}}if(u.st.autoFocusLast&&u._lastFocusedEl){g(u._lastFocusedEl).focus();}u.currItem=null;u.content=null;u.currTemplate=null;u.prevHeight=0;a(b);},updateSize:function(K){if(u.isIOS){var L=document.documentElement.clientWidth/window.innerWidth;var J=window.innerHeight*L;u.wrap.css("height",J);u.wH=J;}else{u.wH=K||A.height();}if(!u.fixedContentPos){u.wrap.css("height",u.wH);}a("Resize");},updateItemHTML:function(){var M=u.items[u.index];u.contentContainer.detach();if(u.content){u.content.detach();}if(!M.parsed){M=u.parseEl(u.index);}var L=M.type;a("BeforeChange",[u.currItem?u.currItem.type:"",L]);u.currItem=M;if(!u.currTemplate[L]){var K=u.st[L]?u.st[L].markup:false;a("FirstMarkupParse",K);if(K){u.currTemplate[L]=g(K);}else{u.currTemplate[L]=true;}}if(D&&D!==M.type){u.container.removeClass("mfp-"+D+"-holder");}var J=u["get"+L.charAt(0).toUpperCase()+L.slice(1)](M,u.currTemplate[L]);u.appendContent(J,L);M.preloaded=true;a(F,M);D=M.type;u.container.prepend(u.contentContainer);a("AfterChange");},appendContent:function(J,K){u.content=J;if(J){if(u.st.showCloseBtn&&u.st.closeBtnInside&&u.currTemplate[K]===true){if(!u.content.find(".mfp-close").length){u.content.append(r());}}else{u.content=J;}}else{u.content="";}a(h);u.container.addClass("mfp-"+K+"-holder");u.contentContainer.append(u.content);},parseEl:function(J){var N=u.items[J],M;if(N.tagName){N={el:g(N)};}else{M=N.type;N={data:N,src:N.src};}if(N.el){var L=u.types;for(var K=0;K<L.length;K++){if(N.el.hasClass("mfp-"+L[K])){M=L[K];break;}}N.src=N.el.attr("data-mfp-src");if(!N.src){N.src=N.el.attr("href");}}N.type=M||u.st.type||"inline";N.index=J;N.parsed=true;u.items[J]=N;a("ElementParse",N);return u.items[J];},addGroup:function(L,K){var M=function(N){N.mfpEl=this;u._openClick(N,L,K);};if(!K){K={};}var J="click.magnificPopup";K.mainEl=L;if(K.items){K.isObj=true;L.off(J).on(J,M);}else{K.isObj=false;if(K.delegate){L.off(J).on(J,K.delegate,M);}else{K.items=L;L.off(J).on(J,M);}}},_openClick:function(N,L,J){var K=J.midClick!==undefined?J.midClick:g.magnificPopup.defaults.midClick;if(!K&&(N.which===2||N.ctrlKey||N.metaKey||N.altKey||N.shiftKey)){return;}var M=J.disableOn!==undefined?J.disableOn:g.magnificPopup.defaults.disableOn;if(M){if(g.isFunction(M)){if(!M.call(u)){return true;}}else{if(A.width()<M){return true;}}}if(N.type){N.preventDefault();if(u.isOpen){N.stopPropagation();}}J.el=g(N.mfpEl);if(J.delegate){J.items=L.find(J.delegate);}u.open(J);},updateStatus:function(J,L){if(u.preloader){if(I!==J){u.container.removeClass("mfp-s-"+I);}if(!L&&J==="loading"){L=u.st.tLoading;}var K={status:J,text:L};a("UpdateStatus",K);J=K.status;L=K.text;u.preloader.html(L);u.preloader.find("a").on("click",function(M){M.stopImmediatePropagation();});u.container.addClass("mfp-s-"+J);I=J;}},_checkIfClose:function(L){if(g(L).hasClass(j)){return;}var J=u.st.closeOnContentClick;var K=u.st.closeOnBgClick;if(J&&K){return true;}else{if(!u.content||g(L).hasClass("mfp-close")||(u.preloader&&L===u.preloader[0])){return true;}if((L!==u.content[0]&&!g.contains(u.content[0],L))){if(K){if(g.contains(document,L)){return true;}}}else{if(J){return true;}}}return false;},_addClassToMFP:function(J){u.bgOverlay.addClass(J);u.wrap.addClass(J);},_removeClassFromMFP:function(J){this.bgOverlay.removeClass(J);u.wrap.removeClass(J);},_hasScrollBar:function(J){return((u.isIE7?E.height():document.body.scrollHeight)>(J||A.height()));},_setFocus:function(){(u.st.focus?u.content.find(u.st.focus).eq(0):u.wrap).focus();},_onFocusIn:function(J){if(J.target!==u.wrap[0]&&!g.contains(u.wrap[0],J.target)){u._setFocus();return false;}},_parseMarkup:function(L,K,M){var J;if(M.data){K=g.extend(M.data,K);}a(x,[L,K,M]);g.each(K,function(O,Q){if(Q===undefined||Q===false){return true;}J=O.split("_");if(J.length>1){var P=L.find(d+"-"+J[0]);if(P.length>0){var N=J[1];if(N==="replaceWith"){if(P[0]!==Q[0]){P.replaceWith(Q);}}else{if(N==="img"){if(P.is("img")){P.attr("src",Q);}else{P.replaceWith(g("<img>").attr("src",Q).attr("class",P.attr("class")));}}else{P.attr(J[1],Q);}}}}else{L.find(d+"-"+O).html(Q);}});},_getScrollbarSize:function(){if(u.scrollbarSize===undefined){var J=document.createElement("div");J.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;";document.body.appendChild(J);u.scrollbarSize=J.offsetWidth-J.clientWidth;document.body.removeChild(J);}return u.scrollbarSize;}};g.magnificPopup={instance:null,proto:f.prototype,modules:[],open:function(K,J){m();if(!K){K={};}else{K=g.extend(true,{},K);}K.isObj=true;K.index=J||0;return this.instance.open(K);},close:function(){return g.magnificPopup.instance&&g.magnificPopup.instance.close();},registerModule:function(J,K){if(K.options){g.magnificPopup.defaults[J]=K.options;}g.extend(this.proto,K.proto);this.modules.push(J);},defaults:{disableOn:0,key:null,midClick:false,mainClass:"",preloader:true,focus:"",closeOnContentClick:false,closeOnBgClick:true,closeBtnInside:true,showCloseBtn:true,enableEscapeKey:true,modal:false,alignTop:false,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:true}};g.fn.magnificPopup=function(L){m();var M=g(this);if(typeof L==="string"){if(L==="open"){var J,N=k?M.data("magnificPopup"):M[0].magnificPopup,K=parseInt(arguments[1],10)||0;if(N.items){J=N.items[K];}else{J=M;if(N.delegate){J=J.find(N.delegate);}J=J.eq(K);}u._openClick({mfpEl:J},M,N);}else{if(u.isOpen){u[L].apply(u,Array.prototype.slice.call(arguments,1));}}}else{L=g.extend(true,{},L);if(k){M.data("magnificPopup",L);}else{M[0].magnificPopup=L;}u.addGroup(M,L);}return M;};var C,e=function(){if(C===undefined){C=document.createElement("p").style.MozTransform!==undefined;}return C;};g.magnificPopup.registerModule("zoom",{options:{enabled:false,easing:"ease-in-out",duration:300,opener:function(J){return J.is("img")?J:J.find("img");}},proto:{initZoom:function(){var K=u.st.zoom,N=".zoom",Q;if(!K.enabled||!u.supportsTransition){return;}var P=K.duration,O=function(T){var S=T.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),U="all "+(K.duration/1000)+"s "+K.easing,V={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},R="transition";V["-webkit-"+R]=V["-moz-"+R]=V["-o-"+R]=V[R]=U;S.css(V);return S;},J=function(){u.content.css("visibility","visible");},L,M;p("BuildControls"+N,function(){if(u._allowZoom()){clearTimeout(L);u.content.css("visibility","hidden");Q=u._getItemToZoom();if(!Q){J();return;}M=O(Q);M.css(u._getOffset());u.wrap.append(M);L=setTimeout(function(){M.css(u._getOffset(true));L=setTimeout(function(){J();setTimeout(function(){M.remove();Q=M=null;a("ZoomAnimationEnded");},16);},P);},16);}});p(n+N,function(){if(u._allowZoom()){clearTimeout(L);u.st.removalDelay=P;if(!Q){Q=u._getItemToZoom();if(!Q){return;}M=O(Q);}M.css(u._getOffset(true));u.wrap.append(M);u.content.css("visibility","hidden");setTimeout(function(){M.css(u._getOffset());},16);}});p(y+N,function(){if(u._allowZoom()){J();if(M){M.remove();}Q=null;}});},_allowZoom:function(){return u.currItem.type==="image";},_getItemToZoom:function(){if(u.currItem.hasSize){return u.currItem.img;}else{return false;}},_getOffset:function(L){var J;if(L){J=u.currItem.img;}else{J=u.st.zoom.opener(u.currItem.el||u.currItem);}var O=J.offset();var K=parseInt(J.css("padding-top"),10);var N=parseInt(J.css("padding-bottom"),10);O.top-=(g(window).scrollTop()-K);var M={width:J.width(),height:(k?J.innerHeight():J[0].offsetHeight)-N-K};if(e()){M["-moz-transform"]=M.transform="translate("+O.left+"px,"+O.top+"px)";}else{M.left=O.left;M.top=O.top;}return M;}}});var v="iframe",q="//about:blank",w=function(J){if(u.currTemplate[v]){var K=u.currTemplate[v].find("iframe");if(K.length){if(!J){K[0].src=q;}if(u.isIE8){K.css("display",J?"block":"none");}}}};g.magnificPopup.registerModule(v,{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(){u.types.push(v);p("BeforeChange",function(L,J,K){if(J!==K){if(J===v){w();}else{if(K===v){w(true);}}}});p(y+"."+v,function(){w();});},getIframe:function(N,M){var J=N.src;var L=u.st.iframe;g.each(L.patterns,function(){if(J.indexOf(this.index)>-1){if(this.id){if(typeof this.id==="string"){J=J.substr(J.lastIndexOf(this.id)+this.id.length,J.length);}else{J=this.id.call(this,J);}}J=this.src.replace("%id%",J);return false;}});var K={};if(L.srcAction){K[L.srcAction]=J;}u._parseMarkup(M,K,N);u.updateStatus("ready");return M;}}});var H=function(J){var K=u.items.length;if(J>K-1){return J-K;}else{if(J<0){return K+J;}}return J;},i=function(L,K,J){return L.replace(/%curr%/gi,K+1).replace(/%total%/gi,J);};g.magnificPopup.registerModule("gallery",{options:{enabled:false,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>',preload:[0,2],navigateByImgClick:true,arrows:true,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var J=u.st.gallery,K=".mfp-gallery";u.direction=true;if(!J||!J.enabled){return false;}z+=" mfp-gallery";p(c+K,function(){if(J.navigateByImgClick){u.wrap.on("click"+K,".mfp-img",function(){if(u.items.length>1){u.next();return false;}});}E.on("keydown"+K,function(L){if(L.keyCode===37){u.prev();}else{if(L.keyCode===39){u.next();}}});});p("UpdateStatus"+K,function(M,L){if(L.text){L.text=i(L.text,u.currItem.index,u.items.length);}});p(x+K,function(P,N,M,O){var L=u.items.length;M.counter=L>1?i(J.tCounter,O.index,L):"";});p("BuildControls"+K,function(){if(u.items.length>1&&J.arrows&&!u.arrowLeft){var M=J.arrowMarkup,N=u.arrowLeft=g(M.replace(/%title%/gi,J.tPrev).replace(/%dir%/gi,"left")).addClass(j),L=u.arrowRight=g(M.replace(/%title%/gi,J.tNext).replace(/%dir%/gi,"right")).addClass(j);N.click(function(){u.prev();});L.click(function(){u.next();});u.container.append(N.add(L));}});p(F+K,function(){if(u._preloadTimeout){clearTimeout(u._preloadTimeout);}u._preloadTimeout=setTimeout(function(){u.preloadNearbyImages();u._preloadTimeout=null;},16);});p(y+K,function(){E.off(K);u.wrap.off("click"+K);u.arrowRight=u.arrowLeft=null;});},next:function(){u.direction=true;u.index=H(u.index+1);u.updateItemHTML();},prev:function(){u.direction=false;u.index=H(u.index-1);u.updateItemHTML();},goTo:function(J){u.direction=(J>=u.index);u.index=J;u.updateItemHTML();},preloadNearbyImages:function(){var M=u.st.gallery.preload,K=Math.min(M[0],u.items.length),L=Math.min(M[1],u.items.length),J;for(J=1;J<=(u.direction?L:K);J++){u._preloadItem(u.index+J);}for(J=1;J<=(u.direction?K:L);J++){u._preloadItem(u.index-J);}},_preloadItem:function(J){J=H(J);if(u.items[J].preloaded){return;}var K=u.items[J];if(!K.parsed){K=u.parseEl(J);}a("LazyLoad",K);if(K.type==="image"){K.img=g('<img class="mfp-img" />').on("load.mfploader",function(){K.hasSize=true;}).on("error.mfploader",function(){K.hasSize=true;K.loadError=true;a("LazyLoadError",K);}).attr("src",K.src);}K.preloaded=true;}}});m();}));
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.