vendor: 4,785 bytes, line 1
1!function(i,n,E,p){"use strict";function h(e){return e&&e.hasOwnProperty&&e instanceof E}function R(e){return f(e)&&0<e.indexOf("%")}function j(e,t){var i=parseInt(e,10)||0;return t&&R(e)&&(i=H.getViewport()[t]/100*i),Math.ceil(i)}function P(e,t){return j(e,t)+"px"}var o=E("html"),a=E(i),c=E(n),H=E.fancybox=function(){H.open.apply(this,arguments)},r=navigator.userAgent.match(/msie/i),s=null,d=n.createTouch!==p,f=function(e){return e&&"string"===E.type(e)};E.extend(H,{version:"2.1.5",defaults:{padding:15,margin:20,width:800,height:600,minWidth:100,minHeight:100,maxWidth:9999,maxHeight:9999,pixelRatio:1,autoSize:!0,autoHeight:!1,autoWidth:!1,autoResize:!0,autoCenter:!d,fitToView:!0,aspectRatio:!1,topRatio:.5,leftRatio:.5,scrolling:"auto",wrapCSS:"",arrows:!0,closeBtn:!0,closeClick:!1,nextClick:!1,mouseWheel:!0,autoPlay:!1,playSpeed:3e3,preload:3,modal:!1,loop:!0,ajax:{dataType:"html",headers:{"X-fancyBox":!0}},iframe:{scrolling:"auto",preload:!0},swf:{wmode:"transparent",allowfullscreen:"true",allowscriptaccess:"always"},keys:{next:{13:"left",34:"up",39:"left",40:"up"},prev:{8:"right",33:"down",37:"right",38:"down"},close:[27],play:[32],toggle:[70]},direction:{next:"left",prev:"right"},scrollOutside:!0,index:0,type:null,href:null,content:null,title:null,tpl:{wrap:'<div class="fancybox-wrap" tabIndex="-1"><div class="fancybox-skin"><div class="fancybox-outer"><div class="fancybox-inner"></div></div></div></div>',image:'<img class="fancybox-image" src="{href}" alt="" />',iframe:'<iframe id="fancybox-frame{rnd}" name="fancybox-frame{rnd}" class="fancybox-iframe" frameborder="0" vspace="0" hspace="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen'+(r?' allowtransparency="true"':"")+"></iframe>",error:'<p class="fancybox-error">The requested content cannot be loaded.<br/>Please try again later.</p>',closeBtn:'<a title="Close" class="fancybox-item fancybox-close" href="javascript:;"></a>',next:'<a title="Next" class="fancybox-nav fancybox-next" href="javascript:;"><span></span></a>',prev:'<a title="Previous" class="fancybox-nav fancybox-prev" href="javascript:;"><span></span></a>'},openEffect:"fade",openSpeed:250,openEasing:"swing",openOpacity:!0,openMethod:"zoomIn",closeEffect:"fade",closeSpeed:250,closeEasing:"swing",closeOpacity:!0,closeMethod:"zoomOut",nextEffect:"elastic",nextSpeed:250,nextEasing:"swing",nextMethod:"changeIn",prevEffect:"elastic",prevSpeed:250,prevEasing:"swing",prevMethod:"changeOut",helpers:{overlay:!0,title:!0},onCancel:E.noop,beforeLoad:E.noop,afterLoad:E.noop,beforeShow:E.noop,afterShow:E.noop,beforeChange:E.noop,beforeClose:E.noop,afterClose:E.noop},group:{},opts:{},previous:null,coming:null,current:null,isActive:!1,isOpen:!1,isOpened:!1,wrap:null,skin:null,outer:null,inner:null,player:{timer:null,isActive:!1},ajaxLoad:null,imgPreload:null,transitions:{},helpers:{},open:function(c,d){if(c&&(E.isPlainObject(d)||(d={}),!1!==H.close(!0)))return E.isArray(c)||(c=h(c)?E(c).get():[c]),E.each(c,function(e,t){var i,n,o,a,r,s,l={};"object"===E.type(t)&&(t.nodeType&&(t=E(t)),h(t)?(l={href:t.data("fancybox-href")||t.attr("href"),title:t.data("fancybox-title")||t.attr("title"),isDom:!0,element:t},E.metadata&&E.extend(!0,l,t.metadata())):l=t),i=d.href||l.href||(f(t)?t:null),n=d.title!==p?d.title:l.title||"",!(a=(o=d.content||l.content)?"html":d.type||l.type)&&l.isDom&&(a=(a=t.data("fancybox-type"))||((r=t.prop("class").match(/fancybox\.(\w+)/))?r[1]:null)),f(i)&&(a||(H.isImage(i)?a="image":H.isSWF(i)?a="swf":"#"===i.charAt(0)?a="inline":f(t)&&(a="html",o=t)),"ajax"===a&&(i=(r=i.split(/\s+/,2)).shift(),s=r.shift())),o||("inline"===a?i?o=E(f(i)?i.replace(/.*(?=#[^\s]+$)/,""):i):l.isDom&&(o=t):"html"===a?o=i:a||i||!l.isDom||(a="inline",o=t)),E.extend(l,{href:i,type:a,content:o,title:n,selector:s}),c[e]=l}),H.opts=E.extend(!0,{},H.defaults,d),d.keys!==p&&(H.opts.keys=!!d.keys&&E.extend({},H.defaults.keys,d.keys)),H.group=c,H._start(H.opts.index)},cancel:function(){var e=H.coming;e&&!1!==H.trigger("onCancel")&&(H.hideLoading(),H.ajaxLoad&&H.ajaxLoad.abort(),H.ajaxLoad=null,H.imgPreload&&(H.imgPreload.onload=H.imgPreload.onerror=null),e.wrap&&e.wrap.stop(!0,!0).trigger("onReset").remove(),H.coming=null,H.current||H._afterZoomOut(e))},close:function(e){H.cancel(),!1!==H.trigger("beforeClose")&&(H.unbindEvents(),H.isActive&&(H.isOpen&&!0!==e?(H.isOpen=H.isOpened=!1,H.isClosing=!0,E(".fancybox-item, .fancybox-nav").remove(),H.wrap.stop(!0,!0).removeClass("fancybox-opened"),H.transitions[H.current.closeMethod]()):(E(".fancybox-wrap").stop(!0).trigger("onReset").remove(),H._afterZoomOut())))},play:function(e){function t(){n(),H.current&&H.player.isActive&&(H.player.timer=setTimeout(H.next,H.current.playSpeed))}function i(){n(),c.unbind(".player"),H.player.isActive=!1,H.trigger("onPlayEnd")}
vendor: 5,955 bytes, line 1
1var n=function(){clearTimeout(H.player.timer)};!0===e||!H.player.isActive&&!1!==e?H.current&&(H.current.loop||H.current.index<H.group.length-1)&&(H.player.isActive=!0,c.bind({"onCancel.player beforeClose.player":i,"onUpdate.player":t,"beforeLoad.player":n}),t(),H.trigger("onPlayStart")):i()},next:function(e){var t=H.current;t&&(f(e)||(e=t.direction.next),H.jumpto(t.index+1,e,"next"))},prev:function(e){var t=H.current;t&&(f(e)||(e=t.direction.prev),H.jumpto(t.index-1,e,"prev"))},jumpto:function(e,t,i){var n=H.current;n&&(e=j(e),H.direction=t||n.direction[e>=n.index?"next":"prev"],H.router=i||"jumpto",n.loop&&(e<0&&(e=n.group.length+e%n.group.length),e%=n.group.length),n.group[e]!==p&&(H.cancel(),H._start(e)))},reposition:function(e,t){var i=H.current,n=i?i.wrap:null;n&&(t=H._getPosition(t),e&&"scroll"===e.type?(delete t.position,n.stop(!0,!0).animate(t,200)):(n.css(t),i.pos=E.extend({},i.dim,t)))},update:function(t){var i=t&&t.type,n=!i||"orientationchange"===i;n&&(clearTimeout(s),s=null),H.isOpen&&!s&&(s=setTimeout(function(){var e=H.current;e&&!H.isClosing&&(H.wrap.removeClass("fancybox-tmp"),(n||"load"===i||"resize"===i&&e.autoResize)&&H._setDimension(),"scroll"===i&&e.canShrink||H.reposition(t),H.trigger("onUpdate"),s=null)},n&&!d?0:300))},toggle:function(e){H.isOpen&&(H.current.fitToView="boolean"===E.type(e)?e:!H.current.fitToView,d&&(H.wrap.removeAttr("style").addClass("fancybox-tmp"),H.trigger("onUpdate")),H.update())},hideLoading:function(){c.unbind(".loading"),E("#fancybox-loading").remove()},showLoading:function(){var e,t;H.hideLoading(),e=E('<div id="fancybox-loading"><div></div></div>').click(H.cancel).appendTo("body"),c.bind("keydown.loading",function(e){27===(e.which||e.keyCode)&&(e.preventDefault(),H.cancel())}),H.defaults.fixed||(t=H.getViewport(),e.css({position:"absolute",top:.5*t.h+t.y,left:.5*t.w+t.x}))},getViewport:function(){var e=H.current&&H.current.locked||!1,t={x:a.scrollLeft(),y:a.scrollTop()};return e?(t.w=e[0].clientWidth,t.h=e[0].clientHeight):(t.w=d&&i.innerWidth?i.innerWidth:a.width(),t.h=d&&i.innerHeight?i.innerHeight:a.height()),t},unbindEvents:function(){H.wrap&&h(H.wrap)&&H.wrap.unbind(".fb"),c.unbind(".fb"),a.unbind(".fb")},bindEvents:function(){var t,l=H.current;l&&(a.bind("orientationchange.fb"+(d?"":" resize.fb")+(l.autoCenter&&!l.locked?" scroll.fb":""),H.update),(t=l.keys)&&c.bind("keydown.fb",function(i){var n=i.which||i.keyCode,e=i.target||i.srcElement;if(27===n&&H.coming)return!1;i.ctrlKey||i.altKey||i.shiftKey||i.metaKey||e&&(e.type||E(e).is("[contenteditable]"))||E.each(t,function(e,t){return 1<l.group.length&&t[n]!==p?(H[e](t[n]),i.preventDefault(),!1):-1<E.inArray(n,t)?(H[e](),i.preventDefault(),!1):void 0})}),E.fn.mousewheel&&l.mouseWheel&&H.wrap.bind("mousewheel.fb",function(e,t,i,n){for(var o,a=e.target||null,r=E(a),s=!1;r.length&&!(s||r.is(".fancybox-skin")||r.is(".fancybox-wrap"));)s=(o=r[0])&&!(o.style.overflow&&"hidden"===o.style.overflow)&&(o.clientWidth&&o.scrollWidth>o.clientWidth||o.clientHeight&&o.scrollHeight>o.clientHeight),r=E(r).parent();0===t||s||1<H.group.length&&!l.canShrink&&(0<n||0<i?H.prev(0<n?"down":"left"):(n<0||i<0)&&H.next(n<0?"up":"right"),e.preventDefault())}))},trigger:function(i,e){var t,n=e||H.coming||H.current;if(n){if(!1===(t=E.isFunction(n[i])?n[i].apply(n,Array.prototype.slice.call(arguments,1)):t))return!1;n.helpers&&E.each(n.helpers,function(e,t){t&&H.helpers[e]&&E.isFunction(H.helpers[e][i])&&H.helpers[e][i](E.extend(!0,{},H.helpers[e].defaults,t),n)}),c.trigger(i)}},isImage:function(e){return f(e)&&e.match(/(^data:image\/.*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg)((\?|#).*)?$)/i)},isSWF:function(e){return f(e)&&e.match(/\.(swf)((\?|#).*)?$/i)},_start:function(e){var t,i,n={};if(e=j(e),!(t=H.group[e]||null))return!1;if(t=(n=E.extend(!0,{},H.opts,t)).margin,i=n.padding,"number"===E.type(t)&&(n.margin=[t,t,t,t]),"number"===E.type(i)&&(n.padding=[i,i,i,i]),n.modal&&E.extend(!0,n,{closeBtn:!1,closeClick:!1,nextClick:!1,arrows:!1,mouseWheel:!1,keys:null,helpers:{overlay:{closeClick:!1}}}),n.autoSize&&(n.autoWidth=n.autoHeight=!0),"auto"===n.width&&(n.autoWidth=!0),"auto"===n.height&&(n.autoHeight=!0),n.group=H.group,n.index=e,H.coming=n,!1===H.trigger("beforeLoad"))H.coming=null;else{if(t=n.type,i=n.href,!t)return H.coming=null,!(!H.current||!H.router||"jumpto"===H.router)&&(H.current.index=e,H[H.router](H.direction));if(H.isActive=!0,"image"!==t&&"swf"!==t||(n.autoHeight=n.autoWidth=!1,n.scrolling="visible"),"image"===t&&(n.aspectRatio=!0),"iframe"===t&&d&&(n.scrolling="scroll"),n.wrap=E(n.tpl.wrap).addClass("fancybox-"+(d?"mobile":"desktop")+" fancybox-type-"+t+" fancybox-tmp "+n.wrapCSS).appendTo(n.parent||"body"),E.extend(n,{skin:E(".fancybox-skin",n.wrap),outer:E(".fancybox-outer",n.wrap),inner:E(".fancybox-inner",n.wrap)}),E.each(["Top","Right","Bottom","Left"],function(e,t){n.skin.css("padding"+t,P(n.padding[e]))}),H.trigger("onReady"),"inline"===t||"html"===t){if(!n.content||!n.content.length)return H._error("content")}else if(!i)return H._error("href");"image"===t?H._loadImage():"ajax"===t?H._loadAjax():"iframe"===t?H._loadIframe():H._afterLoad()}},_error:function(e){E.extend(H.coming,{type:"html",autoWidth:!0,autoHeight:!0,minWidth:0,minHeight:0,scrolling:"no",hasError:e,content:H.coming.tpl.error}),H._afterLoad()},_loadImage:function(){var e=H.imgPreload=new Image;e.onload=function(){this.onload=this.onerror=null,H.coming.width=this.width/H.opts.pixelRatio,H.coming.height=this.height/H.opts.pixelRatio,H._afterLoad()},e.onerror=function(){this.onload=this.onerror=null,H._error("image")},e.src=H.coming.href,!0!==e.complete&&H.showLoading()},_loadAjax:function(){var i=H.coming;H.showLoading(),H.ajaxLoad=E.ajax(E.extend({},i.ajax,{url:i.href,error:function(e,t){H.coming&&"abort"!==t?H._error("ajax",e):H.hideLoading()},success:function(e,t){"success"===t&&(i.content=e,H._afterLoad())}}))},_loadIframe:function(){var e=H.coming,t=E(e.tpl.iframe.replace(/\{rnd\}
1/g,(new Date).getTime())).attr("scrolling",d?"auto":e.iframe.scrolling).attr("src",e.href);E(e.wrap).bind("onReset",function(){try{E(this).find("iframe").hide().attr("src","//about:blank").end().empty()}catch(e){}}),e.iframe.preload&&(H.showLoading(),t.one("load",function(){E(this).data("ready",1),d||E(this).bind("load.fb",H.update),E(this).parents(".fancybox-wrap").width("100%").removeClass("fancybox-tmp").show(),H._afterLoad()})),e.content=t.appendTo(e.inner),e.iframe.preload||H._afterLoad()},_preloadImages:function(){for(var e,t=H.group,i=H.current,n=t.length,o=i.preload?Math.min(i.preload,n-1):0,a=1;a<=o;a+=1)"image"===(e=t[(i.index+a)%n]).type&&e.href&&((new Image).src=e.href)},_afterLoad:function(){var e,i,t,n,o,a=H.coming,r=H.current,s="fancybox-placeholder";if(H.hideLoading(),a&&!1!==H.isActive){if(!1===H.trigger("afterLoad",a,r))return a.wrap.stop(!0).trigger("onReset").remove(),void(H.coming=null);switch(r&&(H.trigger("beforeChange",r),r.wrap.stop(!0).removeClass("fancybox-opened").find(".fancybox-item, .fancybox-nav").remove()),H.unbindEvents(),i=(e=a).content,t=a.type,a=a.scrolling,E.extend(H,{wrap:e.wrap,skin:e.skin,outer:e.outer,inner:e.inner,current:e,previous:r}),n=e.href,t){case"inline":case"ajax":case"html":e.selector?i=E("<div>").html(i).find(e.selector):h(i)&&(i.data(s)||i.data(s,E('<div class="'+s+'"></div>').insertAfter(i).hide()),i=i.show().detach(),e.wrap.bind("onReset",function(){E(this).find(i).length&&i.hide().replaceAll(i.data(s)).data(s,!1)}));break;case"image":i=e.tpl.image.replace("{href}",n);break;case"swf":i='<object id="fancybox-swf" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="100%" height="100%"><param name="movie" value="'+n+'"></param>',o="",E.each(e.swf,function(e,t){i+='<param name="'+e+'" value="'+t+'"></param>',o+=" "+e+'="'+t+'"'}),i+='<embed src="'+n+'" type="application/x-shockwave-flash" width="100%" height="100%"'+o+"></embed></object>"}h(i)&&i.parent().is(e.inner)||e.inner.append(i),H.trigger("beforeShow"),e.inner.css("overflow","yes"===a?"scroll":"no"===a?"hidden":a),H._setDimension(),H.reposition(),H.isOpen=!1,H.coming=null,H.bindEvents(),H.isOpened?r.prevMethod&&H.transitions[r.prevMethod]():E(".fancybox-wrap").not(e.wrap).stop(!0).trigger("onReset").remove(),H.transitions[H.isOpened?e.nextMethod:e.openMethod](),H._preloadImages()}},_setDimension:function(){var e,t,i,n,o,a,r,s,l,c,d,p,h,f,u=H.getViewport(),g=0,m=H.wrap,y=H.skin,x=H.inner,v=H.current,w=v.width,b=v.height,k=v.minWidth,C=v.minHeight,O=v.maxWidth,W=v.maxHeight,_=v.scrolling,S=v.scrollOutside?v.scrollbarWidth:0,T=v.margin,L=j(T[1]+T[3]),T=j(T[0]+T[2]);if(m.add(y).add(x).width("auto").height("auto").removeClass("fancybox-tmp"),i=L+(e=j(y.outerWidth(!0)-y.width())),n=T+(t=j(y.outerHeight(!0)-y.height())),o=R(w)?(u.w-i)*j(w)/100:w,a=R(b)?(u.h-n)*j(b)/100:b,"iframe"===v.type){if(h=v.content,v.autoHeight&&1===h.data("ready"))try{h[0].contentWindow.document.location&&(x.width(o).height(9999),f=h.contents().find("body"),S&&f.css("overflow-x","hidden"),a=f.outerHeight(!0))}catch(e){}}else(v.autoWidth||v.autoHeight)&&(x.addClass("fancybox-tmp"),v.autoWidth||x.width(o),v.autoHeight||x.height(a),v.autoWidth&&(o=x.width()),v.autoHeight&&(a=x.height()),x.removeClass("fancybox-tmp"));if(w=j(o),b=j(a),s=o/a,k=j(R(k)?j(k,"w")-i:k),O=j(R(O)?j(O,"w")-i:O),C=j(R(C)?j(C,"h")-n:C),f=O,r=W=j(R(W)?j(W,"h")-n:W),v.fitToView&&(O=Math.min(u.w-i,O),W=Math.min(u.h-n,W)),d=u.w-L,p=u.h-T,v.aspectRatio?(b=(w=W<(b=O<w?j((w=O)/s):b)?j((b=W)*s):w)<k?j((w=k)/s):b)<C&&(w=j((b=C)*s)):(w=Math.max(k,Math.min(w,O)),v.autoHeight&&"iframe"!==v.type&&(x.width(w),b=x.height()),b=Math.max(C,Math.min(b,W))),v.fitToView)if(x.width(w).height(b),m.width(w+e),l=m.width(),c=m.height(),v.aspectRatio)for(;(d<l||p<c)&&k<w&&C<b&&!(19<g++);)b=Math.max(C,Math.min(W,b-10)),(w=j(b*s))<k&&(b=j((w=k)/s)),O<w&&(b=j((w=O)/s)),x.width(w).height(b),m.width(w+e),l=m.width(),c=m.height();else w=Math.max(k,Math.min(w,w-(l-d))),b=Math.max(C,Math.min(b,b-(c-p)));S&&"auto"===_&&b<a&&w+e+S<d&&(w+=S),x.width(w).height(b),m.width(w+e),l=m.width(),c=m.height(),i=(d<l||p<c)&&k<w&&C<b,n=v.aspectRatio?w<f&&b<r&&w<o&&b<a:(w<f||b<r)&&(w<o||b<a),E.extend(v,{dim:{width:P(l),height:P(c)},origWidth:o,origHeight:a,canShrink:i,canExpand:n,wPadding:e,hPadding:t,wrapSpace:c-y.outerHeight(!0),skinSpace:y.height()-b}),!h&&v.autoHeight&&C<b&&b<W&&!n&&x.height("auto")},_getPosition:function(e){var t=H.current,i=H.getViewport(),n=t.margin,o=H.wrap.width()+n[1]+n[3],a=H.wrap.height()+n[0]+n[2],n={position:"absolute",top:n[0],left:n[3]};return t.autoCenter&&t.fixed&&!e&&a<=i.h&&o<=i.w?n.position="fixed":t.locked||(n.top+=i.y,n.left+=i.x),n.top=P(Math.max(n.top,n.top+(i.h-a)*t.topRatio)),n.left=P(Math.max(n.left,n.left+(i.w-o)*t.leftRatio)),n},_afterZoomIn:function(){var t=H.current;t&&(H.isOpen=H.isOpened=!0,H.wrap.css("overflow","visible").addClass("fancybox-opened"),H.update(),(t.closeClick||t.nextClick&&1<H.group.length)&&H.inner.css("cursor","pointer").bind("click.fb",function(e){E(e.target).is("a")||E(e.target).parent().is("a")||(e.preventDefault(),H[t.closeClick?"close"
vendor: 4,841 bytes, line 1
1:"next"]())}),t.closeBtn&&E(t.tpl.closeBtn).appendTo(H.skin).bind("click.fb",function(e){e.preventDefault(),H.close()}),t.arrows&&1<H.group.length&&((t.loop||0<t.index)&&E(t.tpl.prev).appendTo(H.outer).bind("click.fb",H.prev),(t.loop||t.index<H.group.length-1)&&E(t.tpl.next).appendTo(H.outer).bind("click.fb",H.next)),H.trigger("afterShow"),t.loop||t.index!==t.group.length-1?H.opts.autoPlay&&!H.player.isActive&&(H.opts.autoPlay=!1,H.play()):H.play(!1))},_afterZoomOut:function(e){e=e||H.current,E(".fancybox-wrap").trigger("onReset").remove(),E.extend(H,{group:{},opts:{},router:!1,current:null,isActive:!1,isOpened:!1,isOpen:!1,isClosing:!1,wrap:null,skin:null,outer:null,inner:null}),H.trigger("afterClose",e)}}),H.transitions={getOrigPosition:function(){var e=H.current,t=e.element,i=e.orig,n={},o=50,a=50,r=e.hPadding,s=e.wPadding,l=H.getViewport();return!i&&e.isDom&&t.is(":visible")&&!(i=t.find("img:first")).length&&(i=t),h(i)?(n=i.offset(),i.is("img")&&(o=i.outerWidth(),a=i.outerHeight())):(n.top=l.y+(l.h-a)*e.topRatio,n.left=l.x+(l.w-o)*e.leftRatio),"fixed"!==H.wrap.css("position")&&!e.locked||(n.top-=l.y,n.left-=l.x),n={top:P(n.top-r*e.topRatio),left:P(n.left-s*e.leftRatio),width:P(o+s),height:P(a+r)}},step:function(e,t){var i=t.prop,n=H.current,o=n.wrapSpace,a=n.skinSpace;"width"!==i&&"height"!==i||(t=t.end===t.start?1:(e-t.start)/(t.end-t.start),H.isClosing&&(t=1-t),e=e-("width"===i?n.wPadding:n.hPadding),H.skin[i](j("width"===i?e:e-o*t)),H.inner[i](j("width"===i?e:e-o*t-a*t)))},zoomIn:function(){var e=H.current,t=e.pos,i=e.openEffect,n="elastic"===i,o=E.extend({opacity:1},t);delete o.position,n?(t=this.getOrigPosition(),e.openOpacity&&(t.opacity=.1)):"fade"===i&&(t.opacity=.1),H.wrap.css(t).animate(o,{duration:"none"===i?0:e.openSpeed,easing:e.openEasing,step:n?this.step:null,complete:H._afterZoomIn})},zoomOut:function(){var e=H.current,t=e.closeEffect,i="elastic"===t,n={opacity:.1};i&&(n=this.getOrigPosition(),e.closeOpacity&&(n.opacity=.1)),H.wrap.animate(n,{duration:"none"===t?0:e.closeSpeed,easing:e.closeEasing,step:i?this.step:null,complete:H._afterZoomOut})},changeIn:function(){var e,t=H.current,i=t.nextEffect,n=t.pos,o={opacity:1},a=H.direction;n.opacity=.1,"elastic"===i&&(e="down"===a||"up"===a?"top":"left","down"===a||"right"===a?(n[e]=P(j(n[e])-200),o[e]="+=200px"):(n[e]=P(j(n[e])+200),o[e]="-=200px")),"none"===i?H._afterZoomIn():H.wrap.css(n).animate(o,{duration:t.nextSpeed,easing:t.nextEasing,complete:H._afterZoomIn})},changeOut:function(){var e=H.previous,t=e.prevEffect,i={opacity:.1},n=H.direction;"elastic"===t&&(i["down"===n||"up"===n?"top":"left"]=("up"===n||"left"===n?"-":"+")+"=200px"),e.wrap.animate(i,{duration:"none"===t?0:e.prevSpeed,easing:e.prevEasing,complete:function(){E(this).trigger("onReset").remove()}})}},H.helpers.overlay={defaults:{closeClick:!0,speedOut:200,showEarly:!0,css:{},locked:!d,fixed:!0},overlay:null,fixed:!1,el:E("html"),create:function(e){e=E.extend({},this.defaults,e),this.overlay&&this.close(),this.overlay=E('<div class="fancybox-overlay"></div>').appendTo((H.coming||e).parent),this.fixed=!1,e.fixed&&H.defaults.fixed&&(this.overlay.addClass("fancybox-overlay-fixed"),this.fixed=!0)},open:function(e){var t=this;e=E.extend({},this.defaults,e),this.overlay?this.overlay.unbind(".overlay").width("auto").height("auto"):this.create(e),this.fixed||(a.bind("resize.overlay",E.proxy(this.update,this)),this.update()),e.closeClick&&this.overlay.bind("click.overlay",function(e){if(E(e.target).hasClass("fancybox-overlay"))return(H.isActive?H:t).close(),!1}),this.overlay.css(e.css).show()},close:function(){var e,t;a.unbind("resize.overlay"),this.el.hasClass("fancybox-lock")&&(E(".fancybox-margin").removeClass("fancybox-margin"),e=a.scrollTop(),t=a.scrollLeft(),this.el.removeClass("fancybox-lock"),a.scrollTop(e).scrollLeft(t)),E(".fancybox-overlay").remove().hide(),E.extend(this,{overlay:null,fixed:!1})},update:function(){var e,t="100%";this.overlay.width(t).height("100%"),r?(e=Math.max(n.documentElement.offsetWidth,n.body.offsetWidth),c.width()>e&&(t=c.width())):c.width()>a.width()&&(t=c.width()),this.overlay.width(t).height(c.height())},onReady:function(e,t){var i=this.overlay;E(".fancybox-overlay").stop(!0,!0),i||this.create(e),e.locked&&this.fixed&&t.fixed&&(i||(this.margin=c.height()>a.height()&&E("html").css("margin-right").replace("px","")),t.locked=this.overlay.append(t.wrap),t.fixed=!1),!0===e.showEarly&&this.beforeShow.apply(this,arguments)},beforeShow:function(e,t){var i;t.locked&&(!1!==this.margin&&(E("*").filter(function(){return"fixed"===E(this).css("position")&&!E(this).hasClass("fancybox-overlay")&&!E(this).hasClass("fancybox-wrap")}).addClass("fancybox-margin"),this.el.addClass("fancybox-margin")),t=a.scrollTop(),i=a.scrollLeft(),this.el.addClass("fancybox-lock"),a.scrollTop(t).scrollLeft(i)),this.open(e)}
vendor: 2,127 bytes, line 1
1,onUpdate:function(){this.fixed||this.update()},afterClose:function(e){this.overlay&&!H.coming&&this.overlay.fadeOut(e.speedOut,E.proxy(this.close,this))}},H.helpers.title={defaults:{type:"float",position:"bottom"},beforeShow:function(e){var t,i,n=H.current,o=n.title,a=e.type;if(E.isFunction(o)&&(o=o.call(n.element,n)),f(o)&&""!==E.trim(o)){switch(t=E('<div class="fancybox-title fancybox-title-'+a+'-wrap">'+o+"</div>"),a){case"inside":i=H.skin;break;case"outside":i=H.wrap;break;case"over":i=H.inner;break;default:i=H.skin,t.appendTo("body"),r&&t.width(t.width()),t.wrapInner('<span class="child"></span>'),H.current.margin[2]+=Math.abs(j(t.css("margin-bottom")))}t["top"===e.position?"prependTo":"appendTo"](i)}}},E.fn.fancybox=function(a){function e(e){var t,i,n=E(this).blur(),o=l;e.ctrlKey||e.altKey||e.shiftKey||e.metaKey||n.is(".fancybox-wrap")||(t=a.groupAttr||"data-fancybox-group",(i=n.attr(t))||(t="rel",i=n.get(0)[t]),i&&""!==i&&"nofollow"!==i&&(o=(n=(n=s.length?E(s):r).filter("["+t+'="'+i+'"]')).index(this)),a.index=o,!1!==H.open(n,a)&&e.preventDefault())}var r=E(this),s=this.selector||"",l=(a=a||{}).index||0;return s&&!1!==a.live?c.undelegate(s,"click.fb-start").delegate(s+":not('.fancybox-item, .fancybox-nav')","click.fb-start",e):r.unbind("click.fb-start").bind("click.fb-start",e),this.filter("[data-fancybox-start=1]").trigger("click"),this},c.ready(function(){var e,t;E.scrollbarWidth===p&&(E.scrollbarWidth=function(){var e=E('<div style="width:50px;height:50px;overflow:auto"><div/></div>').appendTo("body"),t=e.children(),t=t.innerWidth()-t.height(99).innerWidth();return e.remove(),t}),E.support.fixedPosition===p&&(E.support.fixedPosition=(e=E('<div style="position:fixed;top:20px;"></div>').appendTo("body"),t=20===e[0].offsetTop||15===e[0].offsetTop,e.remove(),t)),E.extend(H.defaults,{scrollbarWidth:E.scrollbarWidth(),fixed:E.support.fixedPosition,parent:E("body")}),e=E(i).width(),o.addClass("fancybox-lock-test"),t=E(i).width(),o.removeClass("fancybox-lock-test"),E("<style type='text/css'>.fancybox-margin{margin-right:"+(t-e)+"px;}</style>").appendTo("head")})}(window,document,jQuery);
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.