1/*! 2 @preserve 3 Colorbox 1.6.4 4 license: MIT 5 http://www.jacklmoore.com/colorbox 6 made jQuery v3 compatible for JIG 7*/ 8!function(c,s,l){var d,g,f,u,p,m,w,v,x,y,b,T,C,I,n,t,h,a,H,k,W,M,E,L,R,S,K,O,P,B,_,j,o,r={html:!1,photo:!1,iframe:!1,inline:!1,transition:"elastic",speed:300,fadeOut:300,width:!1,initialWidth:"600",innerWidth:!1,maxWidth:!1,height:!1,initialHeight:"450",innerHeight:!1,maxHeight:!1,scalePhotos:!0,scrolling:!0,opacity:.9,preloading:!0,className:!1,overlayClose:!0,escKey:!0,arrowKey:!0,top:!1,bottom:!1,left:!1,right:!1,fixed:!1,data:void 0,closeButton:!0,fastIframe:!0,open:!1,reposition:!0,loop:!0,slideshow:!1,slideshowAuto:!0,slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow",photoRegex:/\.(gif|png|jp(e|g|eg)|bmp|ico|webp|jxr|svg)((#|\?).*)?$/i,retinaImage:!1,retinaUrl:!1,retinaSuffix:"@2x.$1",current:"image {current} of {total}",previous:"previous",next:"next",close:"close",xhrError:"This content failed to load.",imgError:"This image failed to load.",returnFocus:!0,trapFocus:!0,onOpen:!1,onLoad:!1,onComplete:!1,onCleanup:!1,onClosed:!1,rel:function(){return this.rel},href:function(){return c(this).attr("href")},title:function(){return this.title},createImg:function(){var i=new Image,t=c(this).data("cbox-img-attrs");return"object"==typeof t&&c.each(t,function(t,e){i[t]=e}),i},createIframe:function(){var i=s.createElement("iframe"),t=c(this).data("cbox-iframe-attrs");return"object"==typeof t&&c.each(t,function(t,e){i[t]=e}),"frameBorder"in i&&(i.frameBorder=0),"allowTransparency"in i&&(i.allowTransparency="true"),i.name=(new Date).getTime(),i.allowFullscreen=!0,i}},D="colorbox",F="cbox",G=F+"Element",J=F+"_open",N=F+"_load",z=F+"_complete",e=F+"_cleanup",q=F+"_closed",A=F+"_purge",Q=c("<a/>"),U="div",$=0,V={};function X(t,e,i){var o=s.createElement(t);return e&&(o.id=F+e),i&&(o.style.cssText=i),c(o)}function Y(){return l.innerHeight?l.innerHeight:c(l).height()}function Z(t,i){i!==Object(i)&&(i={}),this.cache={},this.el=t,this.value=function(t){var e;return void 0===this.cache[t]&&(void 0!==(e=c(this.el).attr("data-cbox-"+t))?this.cache[t]=e:void 0!==i[t]?this.cache[t]=i[t]:void 0!==r[t]&&(this.cache[t]=r[t])),this.cache[t]},this.get=function(t){var e=this.value(t);return"function"==typeof e?e.call(this.el,this):e}}function tt(t){var e=x.length,i=(S+t)%e;return i<0?e+i:i}function et(t,e){return Math.round((/%/.test(t)?("x"===e?y.width():Y())/100:1)*parseInt(t,10))}function it(t,e){return t.get("photo")||t.get("photoRegex").test(e)}function ot(t,e){return t.get("retinaUrl")&&1<l.devicePixelRatio?e.replace(t.get("photoRegex"),t.get("retinaSuffix")):e}function nt(t){"contains"in g[0]&&!g[0].contains(t.target)&&t.target!==d[0]&&(t.stopPropagation(),g.focus())}function ht(t){ht.str!==t&&(g.add(d).removeClass(ht.str).addClass(t),ht.str=t)}function at(t){c(s).trigger(t),Q.triggerHandler(t)}var i,rt,st,lt,ct=(st=F+"Slideshow_",lt="click."+F,function(){i?W.get("slideshow")||(Q.off(e,pt),pt()):W.get("slideshow")&&x[1]&&(i=!0,Q.one(e,pt),(W.get("slideshowAuto")?ft:ut)(),t.show())});function dt(){clearTimeout(rt)}function gt(){(W.get("loop")||x[S+1])&&(dt(),rt=setTimeout(j.next,W.get("slideshowSpeed")))}function ft(){t.html(W.get("slideshowStop")).off(lt).one(lt,ut),Q.on(z,gt).on(N,dt),g.removeClass(st+"off").addClass(st+"on")}function ut(){dt(),Q.off(z,gt).off(N,dt),t.html(W.get("slideshowStart")).off(lt).one(lt,function(){j.next(),ft()}),g.removeClass(st+"on").addClass(st+"off")}function pt(){i=!1,t.hide(),dt(),Q.off(z,gt).off(N,dt),g.removeClass(st+"off "+st+"on")}function mt(t){var e,i,o,n,h,a,r;B||(h=c(t).data(D),W=new Z(t,h),r=W.get("rel"),S=0,r&&!1!==r&&"nofollow"!==r?(x=c("."+G).filter(function(){return new Z(this,c.data(this,D)).get("rel")===r}),-1===(S=x.index(W.el))&&(x=x.add(W.el),S=x.length-1)):x=c(W.el),O||(O=P=!0,ht(W.get("className")),g.css({visibility:"hidden",display:"block",opacity:""}),b=X(U,"LoadedContent","width:0; height:0; overflow:hidden; visibility:hidden"),u.css({width:"",height:""}).append(b),M=p.height()+v.height()+u.outerHeight(!0)-u.height(),E=m.width()+w.width()+u.outerWidth(!0)-u.width(),L=b.outerHeight(!0),R=b.outerWidth(!0),e=et(W.get("initialWidth"),"x"),i=et(W.get("initialHeight"),"y"),o=W.get("maxWidth"),n=W.get("maxHeight"),W.w=Math.max((!1!==o?Math.min(e,et(o,"x")):e)-R-E,0),W.h=Math.max((!1!==n?Math.min(i,et(n,"y")):i)-L-M,0),b.css({width:"",height:W.h}
8),j.position(),at(J),W.get("onOpen"),k.add(I).hide(),g.focus(),W.get("trapFocus")&&s.addEventListener&&(s.addEventListener("focus",nt,!0),Q.one(q,function(){s.removeEventListener("focus",nt,!0)})),W.get("returnFocus")&&Q.one(q,function(){c(W.el).focus()})),a=parseFloat(W.get("opacity")),d.css({opacity:a==a?a:"",cursor:W.get("overlayClose")?"pointer":"",visibility:"visible"}).show(),W.get("closeButton")?H.html(W.get("close")).appendTo(u):H.appendTo("<div/>"),function(){var e,t,i=j.prep,o=++$;K=!(P=!0),at(A),at(N),W.get("onLoad"),W.h=W.get("height")?et(W.get("height"),"y")-L-M:W.get("innerHeight")&&et(W.get("innerHeight"),"y"),W.w=W.get("width")?et(W.get("width"),"x")-R-E:W.get("innerWidth")&&et(W.get("innerWidth"),"x"),W.mw=W.w,W.mh=W.h,W.get("maxWidth")&&(W.mw=et(W.get("maxWidth"),"x")-R-E,W.mw=W.w&&W.w<W.mw?W.w:W.mw),W.get("maxHeight")&&(W.mh=et(W.get("maxHeight"),"y")-L-M,W.mh=W.h&&W.h<W.mh?W.h:W.mh);var n,h=W.get("href");_=setTimeout(function(){C.show()},100),W.get("inline")?(n=c(h).eq(0),t=c("<div>").hide().insertBefore(n),Q.one(A,function(){t.replaceWith(n)}),i(n)):W.get("iframe")?i(" "):W.get("html")?i(W.get("html")):it(W,h)?(h=ot(W,h),K=W.get("createImg"),c(K).addClass(F+"Photo").on("error."+F,function(){i(X(U,"Error").html(W.get("imgError")))}).one("load",function(){o===$&&setTimeout(function(){var t;W.get("retinaImage")&&1<l.devicePixelRatio&&(K.height=K.height/l.devicePixelRatio,K.width=K.width/l.devicePixelRatio),W.get("scalePhotos")&&(e=function(){K.height-=K.height*t,K.width-=K.width*t},W.mw&&K.width>W.mw&&(t=(K.width-W.mw)/K.width,e()),W.mh&&K.height>W.mh&&(t=(K.height-W.mh)/K.height,e())),W.h&&(K.style.marginTop=Math.max(W.mh-K.height,0)/2+"px"),x[1]&&(W.get("loop")||x[S+1])&&(K.style.cursor="pointer",c(K).on("click."+F,function(){j.next()})),K.style.width=K.width+"px",K.style.height=K.height+"px",i(K)},1)}),K.src=h):h&&T.load(h,W.get("data"),function(t,e){o===$&&i("error"===e?X(U,"Error").html(W.get("xhrError")):c(this).contents())})}())}function wt(){g||(o=!1,y=c(l),g=X(U).attr({id:D,class:"",role:"dialog",tabindex:"-1"}).hide(),d=X(U,"Overlay").hide(),C=c([X(U,"LoadingOverlay")[0],X(U,"LoadingGraphic")[0]]),f=X(U,"Wrapper"),u=X(U,"Content").append(I=X(U,"Title"),n=X(U,"Current"),a=c('<button type="button"/>').attr({id:F+"Previous"}),h=c('<button type="button"/>').attr({id:F+"Next"}),t=c('<button type="button"/>').attr({id:F+"Slideshow"}),C),H=c('<button type="button"/>').attr({id:F+"Close"}),f.append(X(U).append(X(U,"TopLeft"),p=X(U,"TopCenter"),X(U,"TopRight")),X(U,!1,"clear:left").append(m=X(U,"MiddleLeft"),u,w=X(U,"MiddleRight")),X(U,!1,"clear:left").append(X(U,"BottomLeft"),v=X(U,"BottomCenter"),X(U,"BottomRight"))).find("div div").css({float:"left"}),T=X(U,!1,"position:absolute; width:9999px; visibility:hidden; display:none; max-width:none;"),k=h.add(a).add(n).add(t)),s.body&&!g.parent().length&&c(s.body).append(d,g.append(f,T))}c[D]||(c(wt),(j=c.fn[D]=c[D]=function(e,t){var i=this;return e=e||{},"function"==typeof i&&(i=c("<a/>"),e.open=!0),i[0]&&(wt(),g&&(o||(o=!0,h.click(function(){j.next()}),a.click(function(){j.prev()}),H.click(function(){j.close()}),d.click(function(){W.get("overlayClose")&&j.close()}),c(s).on("keydown."+F,function(t){var e=t.keyCode;O&&W.get("escKey")&&27===e&&(t.preventDefault(),j.close()),O&&W.get("arrowKey")&&x[1]&&!t.altKey&&(37===e?(t.preventDefault(),a.click()):39===e&&(t.preventDefault(),h.click()))}),c(s).on("click."+F,"."+G,function(t){1<t.which||t.shiftKey||t.altKey||t.metaKey||t.ctrlKey||(t.preventDefault(),mt(this))})),1)&&(t&&(e.onComplete=t),i.each(function(){var t=c.data(this,D)||{};c.data(this,D,c.extend(t,e))}).addClass(G),new Z(i[0],e).get("open")&&mt(i[0]))),i}).position=function(e,t){var i,o,n,h,a=0,r=0,s=g.offset();function l(){p[0].style.width=v[0].style.width=u[0].style.width=parseInt(g[0].style.width,10)-E+"px",u[0].style.height=m[0].style.height=w[0].style.height=parseInt(g[0].style.height,10)-M+"px"}y.off("resize."+F),g.css({top:-9e4,left:-9e4}),o=y.scrollTop(),n=y.scrollLeft(),W.get("fixed")?(s.top-=o,s.left-=n,g.css({position:"fixed"})):(a=o,r=n,g.css({position:"absolute"})),!1!==W.get("right")?r+=Math.max(y.width()-W.w-R-E-et(W.get("right"),"x"),0):!1!==W.get("left")?r+=et(W.get("left"),"x"):r+=Math.round(Math.max(y.width()-W.w-R-E,0)/2),!1!==W.get("bottom")?a+=Math.max(Y()-W.h-L-M-et(W.get("bottom"),"y"),0):!1!==W.get("top")?a+=et(W.get("top"),"y"):a+=Math.round(Math.max(Y()-W.h-L-M,0)/2),g.css({top:s.top-c("html").position().top,left
8:s.left,visibility:"visible"}),f[0].style.width=f[0].style.height="9999px",i={width:W.w+R+E,height:W.h+L+M,top:a,left:r},e&&(h=0,c.each(i,function(t){i[t]===V[t]||(h=e)}),e=h),V=i,e||g.css(i),g.dequeue().animate(i,{duration:e||0,easing:"JIGeaseInOutQuad",complete:function(){l(),P=!1,f[0].style.width=W.w+R+E+"px",f[0].style.height=W.h+L+M+"px",W.get("reposition")&&setTimeout(function(){y.on("resize."+F,j.position)},1),"function"==typeof t&&t()},step:l})},j.resize=function(t){var e;O&&((t=t||{}).width&&(W.w=et(t.width,"x")-R-E),t.innerWidth&&(W.w=et(t.innerWidth,"x")),b.css({width:W.w}),t.height&&(W.h=et(t.height,"y")-L-M),t.innerHeight&&(W.h=et(t.innerHeight,"y")),t.innerHeight||t.height||(e=b.scrollTop(),b.css({height:"auto"}),W.h=b.height()),b.css({height:W.h}),e&&b.scrollTop(e),j.position("none"===W.get("transition")?0:W.get("speed")))},j.prep=function(t){var e,o;O&&(o="none"===W.get("transition")?0:W.get("speed"),b.remove(),(b=X(U,"LoadedContent").append(t)).hide().appendTo(T.show()).css({width:(W.w=W.w||b.width(),W.w=W.mw&&W.mw<W.w?W.mw:W.w,W.w),overflow:W.get("scrolling")?"auto":"hidden"}).css({height:(W.h=W.h||b.height(),W.h=W.mh&&W.mh<W.h?W.mh:W.h,W.h)}).prependTo(u),T.hide(),c(K).css({float:"none"}),ht(W.get("className")),e=function(){var t,e,i=x.length;O&&(e=function(){clearTimeout(_),C.hide(),at(z),W.get("onComplete")},I.html(W.get("title")).show(),b.show(),1<i?("string"==typeof W.get("current")&&n.html(W.get("current").replace("{current}",S+1).replace("{total}",i)).show(),h[W.get("loop")||S<i-1?"show":"hide"]().html(W.get("next")),a[W.get("loop")||S?"show":"hide"]().html(W.get("previous")),ct(),W.get("preloading")&&c.each([tt(-1),tt(1)],function(){var t=x[this],e=new Z(t,c.data(t,D)),i=e.get("href");i&&it(e,i)&&(i=ot(e,i),s.createElement("img").src=i)})):k.hide(),W.get("iframe")?(t=W.get("createIframe"),W.get("scrolling")||(t.scrolling="no"),c(t).attr({src:W.get("href"),class:F+"Iframe"}).one("load",e).appendTo(b),Q.one(A,function(){t.src="//about:blank"}),W.get("fastIframe")&&c(t).trigger("load")):e(),"fade"===W.get("transition")&&g.fadeTo(o,1,"JIGswing"))},"fade"===W.get("transition")?g.fadeTo(o,0,"JIGswing",function(){j.position(0,e)}):j.position(o,e))},j.next=function(){!P&&x[1]&&(W.get("loop")||x[S+1])&&(S=tt(1),mt(x[S]))},j.prev=function(){!P&&x[1]&&(W.get("loop")||S)&&(S=tt(-1),mt(x[S]))},j.close=function(){O&&!B&&(O=!(B=!0),at(e),W.get("onCleanup"),y.off("."+F),d.fadeTo(W.get("fadeOut")||0,0,"JIGswing"),g.stop().fadeTo(W.get("fadeOut")||0,0,"JIGswing",function(){g.hide(),d.hide(),at(A),b.remove(),setTimeout(function(){B=!1,at(q),W.get("onClosed")},1)}))},j.remove=function(){g&&(g.stop(),c[D].close(),g.stop(!1,!0).remove(),d.remove(),B=!1,g=null,c("."+G).removeData(D).removeClass(G),c(s).off("click."+F).off("keydown."+F))},j.element=function(){return c(W.el)},j.settings=r)}(jQuery,document,window);
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.