1/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */ 2if(typeof Object.create!=='function')Object.create=function(obj){function F(){};F.prototype=obj;return new F();};(function(jQuery,window,document,undefined){var ElevateZoom={init:function(options,elem){var self=this;self.elem=elem;self.jQueryelem=jQuery(elem);self.imageSrc=self.jQueryelem.data("zoom-image")?self.jQueryelem.data("zoom-image"):self.jQueryelem.attr("src");self.options=jQuery.extend({},jQuery.fn.elevateZoom.options,options);if(self.options.tint)self.options.lensColour="none",self.options.lensOpacity="1";if(self.options.zoomType=="inner")self.options.showLens=false;self.jQueryelem.parent().removeAttr('title').removeAttr('alt');self.zoomImage=self.imageSrc;self.refresh(1);jQuery('#'+self.options.gallery+' a').click(function(e){if(self.options.galleryActiveClass){jQuery('#'+self.options.gallery+' a').removeClass(self.options.galleryActiveClass);jQuery(this).addClass(self.options.galleryActiveClass);}e.preventDefault();if(jQuery(this).data("zoom-image"))self.zoomImagePre=jQuery(this).data("zoom-image");else self.zoomImagePre=jQuery(this).data("image");self.swaptheimage(jQuery(this).data("image"),self.zoomImagePre);return false;});},refresh:function(length){var self=this;setTimeout(function(){self.fetch(self.imageSrc);},length||self.options.refresh);},fetch:function(imgsrc){var self=this;var newImg=new Image();newImg.onload=function(){self.largeWidth=newImg.width;self.largeHeight=newImg.height;self.startZoom();self.currentImage=self.imageSrc;self.options.onZoomedImageLoaded(self.jQueryelem);};newImg.src=imgsrc;return;},startZoom:function(){var self=this;self.nzWidth=self.jQueryelem.width();self.nzHeight=self.jQueryelem.height();self.isWindowActive=false;self.isLensActive=false;self.isTintActive=false;self.overWindow=false;if(self.options.imageCrossfade){self.zoomWrap=self.jQueryelem.wrap('<div style="height:'+self.nzHeight+'px;width:'+self.nzWidth+'px;" class="zoomWrapper" />');self.jQueryelem.css('position','absolute');}self.zoomLock=1;self.scrollingLock=false;self.changeBgSize=false;self.currentZoomLevel=self.options.zoomLevel;self.nzOffset=self.jQueryelem.offset();self.widthRatio=(self.largeWidth/self.currentZoomLevel)/self.nzWidth;self.heightRatio=(self.largeHeight/self.currentZoomLevel)/self.nzHeight;if(self.options.zoomType=="window")self.zoomWindowStyle="overflow: hidden;"+"background-position: 0px 0px;text-align:center;"+"background-color: "+String(self.options.zoomWindowBgColour)+";width: "+String(self.options.zoomWindowWidth)+"px;"+"height: "+String(self.options.zoomWindowHeight)+"px;float: left;"+"background-size: "+self.largeWidth/self.currentZoomLevel+"px "+self.largeHeight/self.currentZoomLevel+"px;"+"display: none;z-index:100;"+"border: "+String(self.options.borderSize)+"px solid "+self.options.borderColour+";background-repeat: no-repeat;"+"position: absolute;";if(self.options.zoomType=="inner"){var borderWidth=self.jQueryelem.css("border-left-width");self.zoomWindowStyle="overflow: hidden;"+"margin-left: "+String(borderWidth)+";"+"margin-top: "+String(borderWidth)+";"+"background-position: 0px 0px;"+"width: "+String(self.nzWidth)+"px;"+"height: "+String(self.nzHeight)+"px;float: left;"+"display: none;"+"cursor:"+(self.options.cursor)+";"+"px solid "+self.options.borderColour+";background-repeat: no-repeat;"+"position: absolute;";}if(self.options.zoomType=="window"){if(self.nzHeight<self.options.zoomWindowWidth/self.widthRatio)lensHeight=self.nzHeight;else lensHeight=String((self.options.zoomWindowHeight/self.heightRatio));if(self.largeWidth<self.options.zoomWindowWidth)lensWidth=self.nzWidth;else lensWidth=(self.options.zoomWindowWidth/self.widthRatio);self.lensStyle="background-position: 0px 0px;width: "+String((self.options.zoomWindowWidth)/self.widthRatio)+"px;height: "+String((self.options.zoomWindowHeight)/self.heightRatio)+"px;float: right;display: none;"+"overflow: hidden;"+"z-index: 999;"+"-webkit-transform: translateZ(0);"+"opacity:"+(self.options.lensOpacity)+";filter: alpha(opacity = "+(self.options.lensOpacity*100)+"); zoom:1;"+"width:"+lensWidth+"px;"+"height:"+lensHeight+"px;"+"background-color:"+(self.options.lensColour)+";"+"cursor:"+(self.options.cursor)+";"+"border: "+(self.options.lensBorderSize)+"px"+" solid "+(self.options.lensBorderColour)+";background-repeat: no-repeat;position: absolute;";}self.tintStyle="display: block;"+"position: absolute;"+"background-color: "+self.options.tintColour+";"+"filter:alpha(opacity=0);"+"opacity: 0;"+"width: "+self.nzWidth+"px;"+"height: "+self.nzHeight+"px;";;self.lensRound='';if(self.options.zoomType=="lens")self.lensStyle="background-position: 0px 0px;"+"float: left;display: none;"+"border: "+String(self.options.borderSize)+"px solid "+self.options.borderColour+";"+"width:"+String(self.options.lensSize)+"px;"+"height:"+String(self.options.lensSize)+"px;"+"background-repeat: no-repeat;position: absolute;";
2if(self.options.lensShape=="round")self.lensRound="border-top-left-radius: "+String(self.options.lensSize/2+self.options.borderSize)+"px;"+"border-top-right-radius: "+String(self.options.lensSize/2+self.options.borderSize)+"px;"+"border-bottom-left-radius: "+String(self.options.lensSize/2+self.options.borderSize)+"px;"+"border-bottom-right-radius: "+String(self.options.lensSize/2+self.options.borderSize)+"px;";self.zoomContainer=jQuery('<div class="zoomContainer" style="-webkit-transform: translateZ(0);position:absolute;left:'+self.nzOffset.left+'px;top:'+self.nzOffset.top+'px;height:'+self.nzHeight+'px;width:'+self.nzWidth+'px;"></div>');jQuery('body').append(self.zoomContainer);if(self.options.containLensZoom&&self.options.zoomType=="lens")self.zoomContainer.css("overflow","hidden");if(self.options.zoomType!="inner"){self.zoomLens=jQuery("<div class='zoomLens' style='"+self.lensStyle+self.lensRound+"'> </div>").appendTo(self.zoomContainer).click(function(){self.jQueryelem.trigger('click');});if(self.options.tint){self.tintContainer=jQuery('<div/>').addClass('tintContainer');self.zoomTint=jQuery("<div class='zoomTint' style='"+self.tintStyle+"'></div>");self.zoomLens.wrap(self.tintContainer);self.zoomTintcss=self.zoomLens.after(self.zoomTint);self.zoomTintImage=jQuery('<img style="position: absolute; left: 0px; top: 0px; max-width: none; width: '+self.nzWidth+'px; height: '+self.nzHeight+'px;" src="'+self.imageSrc+'">').appendTo(self.zoomLens).click(function(){self.jQueryelem.trigger('click');});}}if(isNaN(self.options.zoomWindowPosition))self.zoomWindow=jQuery("<div style='z-index:999;left:"+(self.windowOffsetLeft)+"px;top:"+(self.windowOffsetTop)+"px;"+self.zoomWindowStyle+"' class='zoomWindow'> </div>").appendTo('body').click(function(){self.jQueryelem.trigger('click');});else self.zoomWindow=jQuery("<div style='z-index:999;left:"+(self.windowOffsetLeft)+"px;top:"+(self.windowOffsetTop)+"px;"+self.zoomWindowStyle+"' class='zoomWindow'> </div>").appendTo(self.zoomContainer).click(function(){self.jQueryelem.trigger('click');});self.zoomWindowContainer=jQuery('<div/>').addClass('zoomWindowContainer').css("width",self.options.zoomWindowWidth);self.zoomWindow.wrap(self.zoomWindowContainer);if(self.options.zoomType=="lens")self.zoomLens.css({backgroundImage:"url('"+self.imageSrc+"')"});if(self.options.zoomType=="window")self.zoomWindow.css({backgroundImage:"url('"+self.imageSrc+"')"});if(self.options.zoomType=="inner")self.zoomWindow.css({backgroundImage:"url('"+self.imageSrc+"')"});self.jQueryelem.bind('touchmove',function(e){e.preventDefault();var touch=e.originalEvent.touches[0]||e.originalEvent.changedTouches[0];self.setPosition(touch);});self.zoomContainer.bind('touchmove',function(e){if(self.options.zoomType=="inner")self.showHideWindow("show");e.preventDefault();var touch=e.originalEvent.touches[0]||e.originalEvent.changedTouches[0];self.setPosition(touch);});self.zoomContainer.bind('touchend',function(e){self.showHideWindow("hide");if(self.options.showLens)self.showHideLens("hide");if(self.options.tint&&self.options.zoomType!="inner")self.showHideTint("hide");});self.jQueryelem.bind('touchend',function(e){self.showHideWindow("hide");if(self.options.showLens)self.showHideLens("hide");if(self.options.tint&&self.options.zoomType!="inner")self.showHideTint("hide");});if(self.options.showLens){self.zoomLens.bind('touchmove',function(e){e.preventDefault();var touch=e.originalEvent.touches[0]||e.originalEvent.changedTouches[0];self.setPosition(touch);});self.zoomLens.bind('touchend',function(e){self.showHideWindow("hide");if(self.options.showLens)self.showHideLens("hide");if(self.options.tint&&self.options.zoomType!="inner")self.showHideTint("hide");});}self.jQueryelem.bind('mousemove',function(e){if(self.overWindow==false)self.setElements("show");if(self.lastX!==e.clientX||self.lastY!==e.clientY){self.setPosition(e);self.currentLoc=e;}self.lastX=e.clientX;self.lastY=e.clientY;});self.zoomContainer.bind('mousemove',function(e){if(self.overWindow==false)self.setElements("show");if(self.lastX!==e.clientX||self.lastY!==e.clientY){self.setPosition(e);self.currentLoc=e;}self.lastX=e.clientX;self.lastY=e.clientY;});if(self.options.zoomType!="inner")self.zoomLens.bind('mousemove',function(e){if(self.lastX!==e.clientX||self.lastY!==e.clientY){self.setPosition(e);self.currentLoc=e;}self.lastX=e.clientX;self.lastY=e.clientY;});if(self.options.tint&&self.options.zoomType!="inner")self.zoomTint.bind('mousemove',function(e){if(self.lastX!==e.clientX||self.lastY!==e.clientY){self.setPosition(e);self.currentLoc=e;}self.lastX=e.clientX;self.lastY=e.clientY;});if(self.options.zoomType=="inner")self.zoomWindow.bind('mousemove',function(e){if(self.lastX!==e.clientX||self.lastY!==e.clientY){self.setPosition(e);self.currentLoc=e;}self.lastX=e.clientX;self.lastY=e.clientY;});self.zoomContainer.add(self.jQueryelem).mouseenter(function(){if(self.overWindow==false)self.setElements("show");}).mouseleave(function(){if(!self.scrollLock)self.setElements("hide");});if(self.options.zoomType!="inner")self.zoomWindow.mouseenter(function(){self.overWindow=true;self.setElements("hide");}).mouseleave(function(){self.overWindow=false;});if(self.options.zoomLevel!=1){}if(self.options.minZoomLevel)self.minZoomLevel=self.options.minZoomLevel;else self.minZoomLevel=self.options.scrollZoomIncrement*2;if(self.options.scrollZoom)self.zoomContainer.add(self.jQueryelem).bind('mousewheel DOMMouseScroll MozMousePixelScroll',function(e){self.scrollLock=true;clearTimeout(jQuery.data(this,'timer'));jQuery.data(this,'timer',setTimeout(function(){self.scrollLock=false;},250));var theEvent=e.originalEvent.wheelDelta||e.originalEvent.detail*-1;e.stopImmediatePropagation();e.stopPropagation();e.preventDefault();if(theEvent/120>0){if(self.currentZoomLevel>=self.minZoomLevel)self.changeZoomLevel(self.currentZoomLevel-self.options.scrollZoomIncrement);}else if(self.options.maxZoomLevel){if(self.currentZoomLevel<=self.options.maxZoomLevel)self.changeZoomLevel(parseFloat(self.currentZoomLevel)+self.options.scrollZoomIncrement);}else self.changeZoomLevel(parseFloat(self.currentZoomLevel)+self.options.scrollZoomIncrement);return false;});},setElements:function(type){var self=this;if(!self.options.zoomEnabled)return false;if(type=="show")if(self.isWindowSet){if(self.options.zoomType=="inner")self.showHideWindow("show");if(self.options.zoomType=="window")self.showHideWindow("show");if(self.options.showLens)self.showHideLens("show");if(self.options.tint&&self.options.zoomType!="inner")self.showHideTint("show");}if(type=="hide"){if(self.options.zoomType=="window")self.showHideWindow("hide");if(!self.options.tint)self.showHideWindow("hide");if(self.options.showLens)self.showHideLens("hide");if(self.options.tint)self.showHideTint("hide");}},setPosition:function(e){var self=this;if(!self.options.zoomEnabled)return false;self.nzHeight=self.jQueryelem.height();self.nzWidth=self.jQueryelem.width();self.nzOffset=self.jQueryelem.offset();if(self.options.tint&&self.options.zoomType!="inner"){self.zoomTint.css({top:0});self.zoomTint.css({left:0});}if(self.options.responsive&&!self.options.scrollZoom)if(self.options.showLens){if(self.nzHeight<self.options.zoomWindowWidth/self.widthRatio)lensHeight=self.nzHeight;else lensHeight=String((self.options.zoomWindowHeight/self.heightRatio));if(self.largeWidth<self.options.zoomWindowWidth)lensWidth=self.nzWidth;else lensWidth=(self.options.zoomWindowWidth/self.widthRatio);self.widthRatio=self.largeWidth/self.nzWidth;self.heightRatio=self.largeHeight/self.nzHeight;if(self.options.zoomType!="lens"){if(self.nzHeight<self.options.zoomWindowWidth/self.widthRatio)lensHeight=self.nzHeight;else lensHeight=String((self.options.zoomWindowHeight/self.heightRatio));if(self.options.zoomWindowWidth<self.options.zoomWindowWidth)lensWidth=self.nzWidth;else lensWidth=(self.options.zoomWindowWidth/self.widthRatio);self.zoomLens.css('width',lensWidth);self.zoomLens.css('height',lensHeight);if(self.options.tint){self.zoomTintImage.css('width',self.nzWidth);self.zoomTintImage.css('height',self.nzHeight);}}if(self.options.zoomType=="lens")self.zoomLens.css({width:String(self.options.lensSize)+'px',height:String(self.options.lensSize)+'px'});}self.zoomContainer.css({top:self.nzOffset.top});self.zoomContainer.css({left:self.nzOffset.left});self.mouseLeft=parseInt(e.pageX-self.nzOffset.left);
2self.mouseTop=parseInt(e.pageY-self.nzOffset.top);if(self.options.zoomType=="window"){self.Etoppos=(self.mouseTop<(self.zoomLens.height()/2));self.Eboppos=(self.mouseTop>self.nzHeight-(self.zoomLens.height()/2)-(self.options.lensBorderSize*2));self.Eloppos=(self.mouseLeft<0+((self.zoomLens.width()/2)));self.Eroppos=(self.mouseLeft>(self.nzWidth-(self.zoomLens.width()/2)-(self.options.lensBorderSize*2)));}if(self.options.zoomType=="inner"){self.Etoppos=(self.mouseTop<((self.nzHeight/2)/self.heightRatio));self.Eboppos=(self.mouseTop>(self.nzHeight-((self.nzHeight/2)/self.heightRatio)));self.Eloppos=(self.mouseLeft<0+(((self.nzWidth/2)/self.widthRatio)));self.Eroppos=(self.mouseLeft>(self.nzWidth-(self.nzWidth/2)/self.widthRatio-(self.options.lensBorderSize*2)));}if(self.mouseLeft<=0||self.mouseTop<0||self.mouseLeft>self.nzWidth||self.mouseTop>self.nzHeight){self.setElements("hide");return;}else{if(self.options.showLens){self.lensLeftPos=String(self.mouseLeft-self.zoomLens.width()/2);self.lensTopPos=String(self.mouseTop-self.zoomLens.height()/2);}if(self.Etoppos)self.lensTopPos=0;if(self.Eloppos){self.windowLeftPos=0;self.lensLeftPos=0;self.tintpos=0;}if(self.options.zoomType=="window"){if(self.Eboppos)self.lensTopPos=Math.max((self.nzHeight)-self.zoomLens.height()-(self.options.lensBorderSize*2),0);if(self.Eroppos)self.lensLeftPos=(self.nzWidth-(self.zoomLens.width())-(self.options.lensBorderSize*2));}if(self.options.zoomType=="inner"){if(self.Eboppos)self.lensTopPos=Math.max(((self.nzHeight)-(self.options.lensBorderSize*2)),0);if(self.Eroppos)self.lensLeftPos=(self.nzWidth-(self.nzWidth)-(self.options.lensBorderSize*2));}if(self.options.zoomType=="lens"){self.windowLeftPos=String(((e.pageX-self.nzOffset.left)*self.widthRatio-self.zoomLens.width()/2)*(-1));self.windowTopPos=String(((e.pageY-self.nzOffset.top)*self.heightRatio-self.zoomLens.height()/2)*(-1));self.zoomLens.css({backgroundPosition:self.windowLeftPos+'px '+self.windowTopPos+'px'});if(self.changeBgSize){if(self.nzHeight>self.nzWidth){if(self.options.zoomType=="lens")self.zoomLens.css({"background-size":self.largeWidth/self.newvalueheight+'px '+self.largeHeight/self.newvalueheight+'px'});self.zoomWindow.css({"background-size":self.largeWidth/self.newvalueheight+'px '+self.largeHeight/self.newvalueheight+'px'});}else{if(self.options.zoomType=="lens")self.zoomLens.css({"background-size":self.largeWidth/self.newvaluewidth+'px '+self.largeHeight/self.newvaluewidth+'px'});self.zoomWindow.css({"background-size":self.largeWidth/self.newvaluewidth+'px '+self.largeHeight/self.newvaluewidth+'px'});}self.changeBgSize=false;}self.setWindowPostition(e);}if(self.options.tint&&self.options.zoomType!="inner")self.setTintPosition(e);if(self.options.zoomType=="window")self.setWindowPostition(e);if(self.options.zoomType=="inner")self.setWindowPostition(e);if(self.options.showLens){if(self.fullwidth&&self.options.zoomType!="lens")self.lensLeftPos=0;self.zoomLens.css({left:self.lensLeftPos+'px',top:self.lensTopPos+'px'});}}},showHideWindow:function(change){var self=this;if(change=="show")if(!self.isWindowActive){if(self.options.zoomWindowFadeIn)self.zoomWindow.stop(true,true,false).fadeIn(self.options.zoomWindowFadeIn);else self.zoomWindow.show();self.isWindowActive=true;}if(change=="hide")if(self.isWindowActive){if(self.options.zoomWindowFadeOut)self.zoomWindow.stop(true,true).fadeOut(self.options.zoomWindowFadeOut);else self.zoomWindow.hide();self.isWindowActive=false;}},showHideLens:function(change){var self=this;if(change=="show")if(!self.isLensActive){if(self.options.lensFadeIn)self.zoomLens.stop(true,true,false).fadeIn(self.options.lensFadeIn);else self.zoomLens.show();self.isLensActive=true;}if(change=="hide")if(self.isLensActive){if(self.options.lensFadeOut)self.zoomLens.stop(true,true).fadeOut(self.options.lensFadeOut);else self.zoomLens.hide();self.isLensActive=false;}},showHideTint:function(change){var self=this;if(change=="show")if(!self.isTintActive){if(self.options.zoomTintFadeIn)self.zoomTint.css({opacity:self.options.tintOpacity}).animate().stop(true,true).fadeIn("slow");else{self.zoomTint.css({opacity:self.options.tintOpacity}).animate();self.zoomTint.show();}self.isTintActive=true;}if(change=="hide")if(self.isTintActive){if(self.options.zoomTintFadeOut)self.zoomTint.stop(true,true).fadeOut(self.options.zoomTintFadeOut);else self.zoomTint.hide();self.isTintActive=false;}},setLensPostition:function(e){},setWindowPostition:function(e){var self=this;if(!isNaN(self.options.zoomWindowPosition))switch(self.options.zoomWindowPosition){case 1:self.windowOffsetTop=(self.options.zoomWindowOffety);self.windowOffsetLeft=(+self.nzWidth);break;case 2:if(self.options.zoomWindowHeight>self.nzHeight){self.windowOffsetTop=((self.options.zoomWindowHeight/2)-(self.nzHeight/2))*(-1);self.windowOffsetLeft=(self.nzWidth);}else{}break;case 3:self.windowOffsetTop=(self.nzHeight-self.zoomWindow.height()-(self.options.borderSize*2));self.windowOffsetLeft=(self.nzWidth);break;case 4:self.windowOffsetTop=(self.nzHeight);self.windowOffsetLeft=(self.nzWidth);break;case 5:self.windowOffsetTop=(self.nzHeight);self.windowOffsetLeft=(self.nzWidth-self.zoomWindow.width()-(self.options.borderSize*2));break;case 6:if(self.options.zoomWindowHeight>self.nzHeight){self.windowOffsetTop=(self.nzHeight);self.windowOffsetLeft=((self.options.zoomWindowWidth/2)-(self.nzWidth/2)+(self.options.borderSize*2))*(-1);}else{}break;case 7:self.windowOffsetTop=(self.nzHeight);self.windowOffsetLeft=0;break;case 8:self.windowOffsetTop=(self.nzHeight);self.windowOffsetLeft=(self.zoomWindow.width()+(self.options.borderSize*2))*(-1);break;case 9:self.windowOffsetTop=(self.nzHeight-self.zoomWindow.height()-(self.options.borderSize*2));self.windowOffsetLeft=(self.zoomWindow.width()+(self.options.borderSize*2))*(-1);break;case 10:if(self.options.zoomWindowHeight>self.nzHeight){self.windowOffsetTop=((self.options.zoomWindowHeight/2)-(self.nzHeight/2))*(-1);self.windowOffsetLeft=(self.zoomWindow.width()+(self.options.borderSize*2))*(-1);}else{}break;case 11:self.windowOffsetTop=(self.options.zoomWindowOffety);self.windowOffsetLeft=(self.zoomWindow.width()+(self.options.borderSize*2))*(-1);break;case 12:self.windowOffsetTop=(self.zoomWindow.height()+(self.options.borderSize*2))*(-1);self.windowOffsetLeft=(self.zoomWindow.width()+(self.options.borderSize*2))*(-1);break;case 13:self.windowOffsetTop=(self.zoomWindow.height()+(self.options.borderSize*2))*(-1);self.windowOffsetLeft=(0);break;case 14:if(self.options.zoomWindowHeight>self.nzHeight){self.windowOffsetTop=(self.zoomWindow.height()+(self.options.borderSize*2))*(-1);self.windowOffsetLeft=((self.options.zoomWindowWidth/2)-(self.nzWidth/2)+(self.options.borderSize*2))*(-1);}else{}break;case 15:self.windowOffsetTop=(self.zoomWindow.height()+(self.options.borderSize*2))*(-1);self.windowOffsetLeft=(self.nzWidth-self.zoomWindow.width()-(self.options.borderSize*2));break;case 16:self.windowOffsetTop=(self.zoomWindow.height()+(self.options.borderSize*2))*(-1);self.windowOffsetLeft=(self.nzWidth);break;default:self.windowOffsetTop=(self.options.zoomWindowOffety);self.windowOffsetLeft=(self.nzWidth);}else{self.externalContainer=jQuery('#'+self.options.zoomWindowPosition);self.externalContainerWidth=self.externalContainer.width();self.externalContainerHeight=self.externalContainer.height();self.externalContainerOffset=self.externalContainer.offset();self.windowOffsetTop=self.externalContainerOffset.top;self.windowOffsetLeft=self.externalContainerOffset.left;}self.isWindowSet=true;self.windowOffsetTop=self.windowOffsetTop+self.options.zoomWindowOffety;self.windowOffsetLeft=self.windowOffsetLeft+self.options.zoomWindowOffetx;self.zoomWindow.css({top:self.windowOffsetTop});self.zoomWindow.css({left:self.windowOffsetLeft});if(self.options.zoomType=="inner"){self.zoomWindow.css({top:0});self.zoomWindow.css({left:0});}self.windowLeftPos=String(((e.pageX-self.nzOffset.left)*self.widthRatio-self.zoomWindow.width()/2)*(-1));self.windowTopPos=String(((e.pageY-self.nzOffset.top)*self.heightRatio-self.zoomWindow.height()/2)*(-1));if(self.Etoppos)self.windowTopPos=0;if(self.Eloppos)self.windowLeftPos=0;if(self.Eboppos)self.windowTopPos=(self.largeHeight/self.currentZoomLevel-self.zoomWindow.height())*(-1);if(self.Eroppos)self.windowLeftPos=((self.largeWidth/self.currentZoomLevel-self.zoomWindow.width())*(-1));if(self.fullheight)self.windowTopPos=0;if(self.fullwidth)self.windowLeftPos=0;if(self.options.zoomType=="window"||self.options.zoomType=="inner"){if(self.zoomLock==1){if(self.widthRatio<=1)self.windowLeftPos=0;if(self.heightRatio<=1)self.windowTopPos=0;}if(self.largeHeight<self.options.zoomWindowHeight)self.windowTopPos=0;if(self.largeWidth<self.options.zoomWindowWidth)self.windowLeftPos=0;if(self.options.easing){if(!self.xp)self.xp=0;if(!self.yp)self.yp=0;if(!self.loop)self.loop=setInterval(function(){self.xp+=(self.windowLeftPos-self.xp)/self.options.easingAmou
2nt;self.yp+=(self.windowTopPos-self.yp)/self.options.easingAmount;if(self.scrollingLock){clearInterval(self.loop);self.xp=self.windowLeftPos;self.yp=self.windowTopPos;self.xp=((e.pageX-self.nzOffset.left)*self.widthRatio-self.zoomWindow.width()/2)*(-1);self.yp=(((e.pageY-self.nzOffset.top)*self.heightRatio-self.zoomWindow.height()/2)*(-1));if(self.changeBgSize){if(self.nzHeight>self.nzWidth){if(self.options.zoomType=="lens")self.zoomLens.css({"background-size":self.largeWidth/self.newvalueheight+'px '+self.largeHeight/self.newvalueheight+'px'});self.zoomWindow.css({"background-size":self.largeWidth/self.newvalueheight+'px '+self.largeHeight/self.newvalueheight+'px'});}else{if(self.options.zoomType!="lens")self.zoomLens.css({"background-size":self.largeWidth/self.newvaluewidth+'px '+self.largeHeight/self.newvalueheight+'px'});self.zoomWindow.css({"background-size":self.largeWidth/self.newvaluewidth+'px '+self.largeHeight/self.newvaluewidth+'px'});}self.changeBgSize=false;}self.zoomWindow.css({backgroundPosition:self.windowLeftPos+'px '+self.windowTopPos+'px'});self.scrollingLock=false;self.loop=false;}else{if(self.changeBgSize){if(self.nzHeight>self.nzWidth){if(self.options.zoomType=="lens")self.zoomLens.css({"background-size":self.largeWidth/self.newvalueheight+'px '+self.largeHeight/self.newvalueheight+'px'});self.zoomWindow.css({"background-size":self.largeWidth/self.newvalueheight+'px '+self.largeHeight/self.newvalueheight+'px'});}else{if(self.options.zoomType!="lens")self.zoomLens.css({"background-size":self.largeWidth/self.newvaluewidth+'px '+self.largeHeight/self.newvaluewidth+'px'});self.zoomWindow.css({"background-size":self.largeWidth/self.newvaluewidth+'px '+self.largeHeight/self.newvaluewidth+'px'});}self.changeBgSize=false;}self.zoomWindow.css({backgroundPosition:self.xp+'px '+self.yp+'px'});}},16);}else{if(self.changeBgSize){if(self.nzHeight>self.nzWidth){if(self.options.zoomType=="lens")self.zoomLens.css({"background-size":self.largeWidth/self.newvalueheight+'px '+self.largeHeight/self.newvalueheight+'px'});self.zoomWindow.css({"background-size":self.largeWidth/self.newvalueheight+'px '+self.largeHeight/self.newvalueheight+'px'});}else{if(self.options.zoomType=="lens")self.zoomLens.css({"background-size":self.largeWidth/self.newvaluewidth+'px '+self.largeHeight/self.newvaluewidth+'px'});if((self.largeHeight/self.newvaluewidth)<self.options.zoomWindowHeight)self.zoomWindow.css({"background-size":self.largeWidth/self.newvaluewidth+'px '+self.largeHeight/self.newvaluewidth+'px'});else self.zoomWindow.css({"background-size":self.largeWidth/self.newvalueheight+'px '+self.largeHeight/self.newvalueheight+'px'});}self.changeBgSize=false;}self.zoomWindow.css({backgroundPosition:self.windowLeftPos+'px '+self.windowTopPos+'px'});}}},setTintPosition:function(e){var self=this;self.nzOffset=self.jQueryelem.offset();self.tintpos=String(((e.pageX-self.nzOffset.left)-(self.zoomLens.width()/2))*(-1));self.tintposy=String(((e.pageY-self.nzOffset.top)-self.zoomLens.height()/2)*(-1));if(self.Etoppos)self.tintposy=0;if(self.Eloppos)self.tintpos=0;if(self.Eboppos)self.tintposy=(self.nzHeight-self.zoomLens.height()-(self.options.lensBorderSize*2))*(-1);if(self.Eroppos)self.tintpos=((self.nzWidth-self.zoomLens.width()-(self.options.lensBorderSize*2))*(-1));if(self.options.tint){if(self.fullheight)self.tintposy=0;if(self.fullwidth)self.tintpos=0;self.zoomTintImage.css({'left':self.tintpos+'px'});self.zoomTintImage.css({'top':self.tintposy+'px'});}},swaptheimage:function(smallimage,largeimage){var self=this;var newImg=new Image();if(self.options.loadingIcon){self.spinner=jQuery('<div style="background: url(\''+self.options.loadingIcon+'\') no-repeat center;height:'+self.nzHeight+'px;width:'+self.nzWidth+'px;z-index: 2000;position: absolute; background-position: center center;"></div>');self.jQueryelem.after(self.spinner);}self.options.onImageSwap(self.jQueryelem);newImg.onload=function(){self.largeWidth=newImg.width;self.largeHeight=newImg.height;self.zoomImage=largeimage;self.zoomWindow.css({"background-size":self.largeWidth+'px '+self.largeHeight+'px'});self.zoomWindow.css({"background-size":self.largeWidth+'px '+self.largeHeight+'px'});self.swapAction(smallimage,largeimage);return;};newImg.src=largeimage;},swapAction:function(smallimage,largeimage){var self=this;var newImg2=new Image();newImg2.onload=function(){self.nzHeight=newImg2.height;self.nzWidth=newImg2.width;self.options.onImageSwapComplete(self.jQueryelem);self.doneCallback();return;};newImg2.src=smallimage;self.currentZoomLevel=self.options.zoomLevel;self.options.maxZoomLevel=false;if(self.options.zoomType=="lens")self.zoomLens.css({backgroundImage:"url('"+largeimage+"')"});if(self.options.zoomType=="window")self.zoomWindow.css({backgroundImage:"url('"+largeimage+"')"});if(self.options.zoomType=="inner")self.zoomWindow.css({backgroundImage:"url('"+largeimage+"')"});self.currentImage=largeimage;if(self.options.imageCrossfade){var oldImg=self.jQueryelem;var newImg=oldImg.clone();self.jQueryelem.attr("src",smallimage);self.jQueryelem.after(newImg);
2newImg.stop(true).fadeOut(self.options.imageCrossfade,function(){jQuery(this).remove();});self.jQueryelem.width("auto").removeAttr("width");self.jQueryelem.height("auto").removeAttr("height");oldImg.fadeIn(self.options.imageCrossfade);if(self.options.tint&&self.options.zoomType!="inner"){var oldImgTint=self.zoomTintImage;var newImgTint=oldImgTint.clone();self.zoomTintImage.attr("src",largeimage);self.zoomTintImage.after(newImgTint);newImgTint.stop(true).fadeOut(self.options.imageCrossfade,function(){jQuery(this).remove();});oldImgTint.fadeIn(self.options.imageCrossfade);self.zoomTint.css({height:self.jQueryelem.height()});self.zoomTint.css({width:self.jQueryelem.width()});}self.zoomContainer.css("height",self.jQueryelem.height());self.zoomContainer.css("width",self.jQueryelem.width());if(self.options.zoomType=="inner")if(!self.options.constrainType){self.zoomWrap.parent().css("height",self.jQueryelem.height());self.zoomWrap.parent().css("width",self.jQueryelem.width());self.zoomWindow.css("height",self.jQueryelem.height());self.zoomWindow.css("width",self.jQueryelem.width());}if(self.options.imageCrossfade){self.zoomWrap.css("height",self.jQueryelem.height());self.zoomWrap.css("width",self.jQueryelem.width());}}else{self.jQueryelem.attr("src",smallimage);if(self.options.tint){self.zoomTintImage.attr("src",largeimage);self.zoomTintImage.attr("height",self.jQueryelem.height());self.zoomTintImage.css({height:self.jQueryelem.height()});self.zoomTint.css({height:self.jQueryelem.height()});}self.zoomContainer.css("height",self.jQueryelem.height());self.zoomContainer.css("width",self.jQueryelem.width());if(self.options.imageCrossfade){self.zoomWrap.css("height",self.jQueryelem.height());self.zoomWrap.css("width",self.jQueryelem.width());}}if(self.options.constrainType){if(self.options.constrainType=="height"){self.zoomContainer.css("height",self.options.constrainSize);self.zoomContainer.css("width","auto");if(self.options.imageCrossfade){self.zoomWrap.css("height",self.options.constrainSize);self.zoomWrap.css("width","auto");self.constwidth=self.zoomWrap.width();}else{self.jQueryelem.css("height",self.options.constrainSize);self.jQueryelem.css("width","auto");self.constwidth=self.jQueryelem.width();}if(self.options.zoomType=="inner"){self.zoomWrap.parent().css("height",self.options.constrainSize);self.zoomWrap.parent().css("width",self.constwidth);self.zoomWindow.css("height",self.options.constrainSize);self.zoomWindow.css("width",self.constwidth);}if(self.options.tint){self.tintContainer.css("height",self.options.constrainSize);self.tintContainer.css("width",self.constwidth);self.zoomTint.css("height",self.options.constrainSize);self.zoomTint.css("width",self.constwidth);self.zoomTintImage.css("height",self.options.constrainSize);self.zoomTintImage.css("width",self.constwidth);}}if(self.options.constrainType=="width"){self.zoomContainer.css("height","auto");self.zoomContainer.css("width",self.options.constrainSize);if(self.options.imageCrossfade){self.zoomWrap.css("height","auto");self.zoomWrap.css("width",self.options.constrainSize);self.constheight=self.zoomWrap.height();}else{self.jQueryelem.css("height","auto");self.jQueryelem.css("width",self.options.constrainSize);self.constheight=self.jQueryelem.height();}if(self.options.zoomType=="inner"){self.zoomWrap.parent().css("height",self.constheight);self.zoomWrap.parent().css("width",self.options.constrainSize);self.zoomWindow.css("height",self.constheight);self.zoomWindow.css("width",self.options.constrainSize);}if(self.options.tint){self.tintContainer.css("height",self.constheight);self.tintContainer.css("width",self.options.constrainSize);self.zoomTint.css("height",self.constheight);self.zoomTint.css("width",self.options.constrainSize);self.zoomTintImage.css("height",self.constheight);self.zoomTintImage.css("width",self.options.constrainSize);}}}},doneCallback:function(){var self=this;if(self.options.loadingIcon)self.spinner.hide();self.nzOffset=self.jQueryelem.offset();self.nzWidth=self.jQueryelem.width();self.nzHeight=self.jQueryelem.height();self.currentZoomLevel=self.options.zoomLevel;self.widthRatio=self.largeWidth/self.nzWidth;self.heightRatio=self.largeHeight/self.nzHeight;if(self.options.zoomType=="window"){if(self.nzHeight<self.options.zoomWindowWidth/self.widthRatio)lensHeight=self.nzHeight;else lensHeight=String((self.options.zoomWindowHeight/self.heightRatio));if(self.options.zoomWindowWidth<self.options.zoomWindowWidth)lensWidth=self.nzWidth;else lensWidth=(self.options.zoomWindowWidth/self.widthRatio);if(self.zoomLens){self.zoomLens.css('width',lensWidth);self.zoomLens.css('height',lensHeight);}}},getCurrentImage:function(){var self=this;return self.zoomImage;},getGalleryList:function(){var self=this;self.gallerylist=[];
2if(self.options.gallery)jQuery('#'+self.options.gallery+' a').each(function(){var img_src='';if(jQuery(this).data("zoom-image"))img_src=jQuery(this).data("zoom-image");else{if(jQuery(this).data("image"))img_src=jQuery(this).data("image");}if(img_src==self.zoomImage)self.gallerylist.unshift({href:''+img_src+'',title:jQuery(this).find('img').attr("title")});else self.gallerylist.push({href:''+img_src+'',title:jQuery(this).find('img').attr("title")});});else self.gallerylist.push({href:''+self.zoomImage+'',title:jQuery(this).find('img').attr("title")});return self.gallerylist;},changeZoomLevel:function(value){var self=this;self.scrollingLock=true;self.newvalue=parseFloat(value).toFixed(2);newvalue=parseFloat(value).toFixed(2);maxheightnewvalue=self.largeHeight/((self.options.zoomWindowHeight/self.nzHeight)*self.nzHeight);maxwidthtnewvalue=self.largeWidth/((self.options.zoomWindowWidth/self.nzWidth)*self.nzWidth);if(self.options.zoomType!="inner"){if(maxheightnewvalue<=newvalue){self.heightRatio=(self.largeHeight/maxheightnewvalue)/self.nzHeight;self.newvalueheight=maxheightnewvalue;self.fullheight=true;}else{self.heightRatio=(self.largeHeight/newvalue)/self.nzHeight;self.newvalueheight=newvalue;self.fullheight=false;}if(maxwidthtnewvalue<=newvalue){self.widthRatio=(self.largeWidth/maxwidthtnewvalue)/self.nzWidth;self.newvaluewidth=maxwidthtnewvalue;self.fullwidth=true;}else{self.widthRatio=(self.largeWidth/newvalue)/self.nzWidth;self.newvaluewidth=newvalue;self.fullwidth=false;}if(self.options.zoomType=="lens")if(maxheightnewvalue<=newvalue){self.fullwidth=true;self.newvaluewidth=maxheightnewvalue;}else{self.widthRatio=(self.largeWidth/newvalue)/self.nzWidth;self.newvaluewidth=newvalue;self.fullwidth=false;}}if(self.options.zoomType=="inner"){maxheightnewvalue=parseFloat(self.largeHeight/self.nzHeight).toFixed(2);maxwidthtnewvalue=parseFloat(self.largeWidth/self.nzWidth).toFixed(2);if(newvalue>maxheightnewvalue)newvalue=maxheightnewvalue;if(newvalue>maxwidthtnewvalue)newvalue=maxwidthtnewvalue;if(maxheightnewvalue<=newvalue){self.heightRatio=(self.largeHeight/newvalue)/self.nzHeight;if(newvalue>maxheightnewvalue)self.newvalueheight=maxheightnewvalue;else self.newvalueheight=newvalue;self.fullheight=true;}else{self.heightRatio=(self.largeHeight/newvalue)/self.nzHeight;if(newvalue>maxheightnewvalue)self.newvalueheight=maxheightnewvalue;else self.newvalueheight=newvalue;self.fullheight=false;}if(maxwidthtnewvalue<=newvalue){self.widthRatio=(self.largeWidth/newvalue)/self.nzWidth;if(newvalue>maxwidthtnewvalue)self.newvaluewidth=maxwidthtnewvalue;else self.newvaluewidth=newvalue;self.fullwidth=true;}else{self.widthRatio=(self.largeWidth/newvalue)/self.nzWidth;self.newvaluewidth=newvalue;self.fullwidth=false;}}scrcontinue=false;if(self.options.zoomType=="inner"){if(self.nzWidth>=self.nzHeight)if(self.newvaluewidth<=maxwidthtnewvalue)scrcontinue=true;else{scrcontinue=false;self.fullheight=true;self.fullwidth=true;}if(self.nzHeight>self.nzWidth)if(self.newvaluewidth<=maxwidthtnewvalue)scrcontinue=true;else{scrcontinue=false;self.fullheight=true;self.fullwidth=true;}}if(self.options.zoomType!="inner")scrcontinue=true;if(scrcontinue){self.zoomLock=0;self.changeZoom=true;if(((self.options.zoomWindowHeight)/self.heightRatio)<=self.nzHeight){self.currentZoomLevel=self.newvalueheight;if(self.options.zoomType!="lens"&&self.options.zoomType!="inner"){self.changeBgSize=true;self.zoomLens.css({height:String((self.options.zoomWindowHeight)/self.heightRatio)+'px'});}if(self.options.zoomType=="lens"||self.options.zoomType=="inner")self.changeBgSize=true;}if((self.options.zoomWindowWidth/self.widthRatio)<=self.nzWidth){if(self.options.zoomType!="inner")if(self.newvaluewidth>self.newvalueheight)self.currentZoomLevel=self.newvaluewidth;if(self.options.zoomType!="lens"&&self.options.zoomType!="inner"){self.changeBgSize=true;self.zoomLens.css({width:String((self.options.zoomWindowWidth)/self.widthRatio)+'px'});}if(self.options.zoomType=="lens"||self.options.zoomType=="inner")self.changeBgSize=true;}if(self.options.zoomType=="inner"){self.changeBgSize=true;if(self.nzWidth>self.nzHeight)self.currentZoomLevel=self.newvaluewidth;if(self.nzHeight>self.nzWidth)self.currentZoomLevel=self.newvaluewidth;}}self.setPosition(self.currentLoc);},closeAll:function(){if(self.zoomWindow)self.zoomWindow.hide();if(self.zoomLens)self.zoomLens.hide();if(self.zoomTint)self.zoomTint.hide();},changeState:function(value){var self=this;if(value=='enable')self.options.zoomEnabled=true;if(value=='disable')self.options.zoomEnabled=false;}};jQuery.fn.elevateZoom=function(options){return this.each(function(){var elevate=Object.create(ElevateZoom);elevate.init(options,this);jQuery.data(this,'elevateZoom',elevate);});};jQuery.fn.elevateZoom.options={zoomActivation:"hover",zoomEnabled:true,preloading:1,zoomLevel:1,scrollZoom:false,scrollZoomIncrement:0.1,minZoomLevel:false,maxZoomLevel:false,easing:false,easingAmou
2nt:12,lensSize:200,zoomWindowWidth:400,zoomWindowHeight:400,zoomWindowOffetx:0,zoomWindowOffety:0,zoomWindowPosition:1,zoomWindowBgColour:"#fff",lensFadeIn:false,lensFadeOut:false,debug:false,zoomWindowFadeIn:false,zoomWindowFadeOut:false,zoomWindowAlwaysShow:false,zoomTintFadeIn:false,zoomTintFadeOut:false,borderSize:4,showLens:true,borderColour:"#888",lensBorderSize:1,lensBorderColour:"#000",lensShape:"square",zoomType:"window",containLensZoom:false,lensColour:"white",lensOpacity:0.4,lenszoom:false,tint:false,tintColour:"#333",tintOpacity:0.4,gallery:false,galleryActiveClass:"zoomGalleryActive",imageCrossfade:false,constrainType:false,constrainSize:false,loadingIcon:false,cursor:"default",responsive:true,onComplete:jQuery.noop,onZoomedImageLoaded:function(){},onImageSwap:jQuery.noop,onImageSwapComplete:jQuery.noop};})(jQuery,window,document);; 3(function(Drupal,$){'use strict';Drupal.behaviors.imagezoom={attach:function(context,settings){$("#main-image").elevateZoom({zoomType:'lens',lensShape:'round',lensSize:250,scrollZoom:true,containLensZoom:true});}};})(Drupal,jQuery);; 4jQuery('.flexslider--thumbnails').flexslider({animation:"slide",slideshow:false,controlNav:false,sync:".flexslider--thumbnails-nav"});jQuery('.flexslider--thumbnails-nav').flexslider({animation:"slide",itemWidth:150,itemMargin:5,slideshow:false,controlNav:false,asNavFor:".flexslider--thumbnails"});(function(Drupal,$){'use strict';function normalizeA11yText(text){return $.trim(String(text||'').replace(/\s+/g,' '));}function getIframeDescriptor(src){src=String(src||'').toLowerCase();if(src.indexOf('youtube.com')!==-1||src.indexOf('youtu.be')!==-1||src.indexOf('vimeo.com')!==-1)return 'Video';if(src.indexOf('arcgis.com')!==-1||src.indexOf('webmaps.sandiego.gov')!==-1||src.indexOf('maps.google.')!==-1)return 'Map';if(src.indexOf('bibliocommons.com')!==-1)return 'Book list';if(src.indexOf('ctc.simsushare.com')!==-1)return 'Training simulation';if(src.indexOf('instagram.com')!==-1)return 'Instagram embed';if(src.indexOf('smartsheet.com')!==-1||src.indexOf('forms.office.com')!==-1||src.indexOf('constantcontact.com')!==-1)return 'Form';if(/\.pdf($|[?#])/.test(src))return 'Document';return 'Embedded content';}function getIframeContext($frame){var selectors='h1, h2, h3, h4, h5, h6, figcaption, .accordion__heading, .heading--trim, .heading--snug, .card__title, p';var $current=$frame;var level=0;while($current.length&&level<4){var $candidate=$current.prevAll(selectors).filter(function(){return normalizeA11yText($(this).text())!=='';}).first();if($candidate.length)return normalizeA11yText($candidate.text());$current=$current.parent();level++;}return normalizeA11yText($('h1').first().text());}function buildIframeTitle($frame){var descriptor=getIframeDescriptor($frame.attr('src'));var context=getIframeContext($frame);if(!context)return descriptor;if(context.toLowerCase().indexOf(descriptor.toLowerCase())!==-1)return context;return descriptor+': '+context;}Drupal.behaviors.instagramEmbedTitle={attach:function(context){$('iframe',context).each(function(){var $frame=$(this);if($frame.attr('title'))return;$frame.attr('title',buildIframeTitle($frame));});}};Drupal.behaviors.ariaHiddenFocus={attach:function(context){var focusableSelector='a, button, input, select, textarea, iframe, [tabindex]';function syncHidden(root){$(root).find('[aria-hidden]').each(function(){var $region=$(this);var hidden=$region.attr('aria-hidden')==='true';var $focusables=$region.find(focusableSelector).addBack(focusableSelector);$focusables.each(function(){var $el=$(this);if(hidden){if($el.attr('data-aria-hidden-tabindex')===undefined)$el.attr('data-aria-hidden-tabindex',$el.attr('tabindex')||'');$el.attr('tabindex','-1');}else{if($el.attr('data-aria-hidden-tabindex')!==undefined){var previous=$el.attr('data-aria-hidden-tabindex');if(previous==='')$el.removeAttr('tabindex');else $el.attr('tabindex',previous);$el.removeAttr('data-aria-hidden-tabindex');}}});});}syncHidden(context);if(window.MutationObserver&&!document.body.hasAttribute('data-aria-hidden-focus-init')){document.body.setAttribute('data-aria-hidden-focus-init','true');var observer=new MutationObserver(function(mutations){mutations.forEach(function(mutation){if(mutation.type==='attributes'&&mutation.attributeName==='aria-hidden')syncHidden(mutation.target);});});observer.observe(document.body,{subtree:true,attributes:true,attributeFilter:['aria-hidden']});}}};Drupal.behaviors.visionZeroCurrentNav={attach:function(context){var currentPath=window.location.pathname.replace(/\/+$/,'')||'/';$('#vznav a, .vz-home',context).each(function(){var $link=$(this);var href=$link.attr('href');if(!href||href.indexOf('/')!==0)return;var linkPath=href.replace(/\/+$/,'')||'/';if(linkPath===currentPath)$link.attr('aria-current','page');else $link.removeAttr('aria-current');});}};Drupal.behaviors.headerToolKeyboardFlow={attach:function(context){$('.header .search-bar input[type="submit"]',context).attr('tabindex','-1');$('#translate-modal',context).filter(function(){return !this.hasAttribute('data-header-tool-keyboard-flow');}).attr('data-header-tool-keyboard-flow','true').on('open.zf.reveal',function(){var modal=this;window.setTimeout(function(){var focusable=$(modal).find('a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not
4([tabindex="-1"])').filter(':visible').first();if(focusable.length)focusable.trigger('focus');},0);});$('#accessibility-icon[role="button"]',context).filter(function(){return !this.hasAttribute('data-header-accessibility-keyboard-flow');}).attr('data-header-accessibility-keyboard-flow','true').on('click',function(event){if(!this.hasAttribute('data-uw-trigger'))event.preventDefault();}).on('keydown',function(event){if(event.key===' '){event.preventDefault();$(this).trigger('click');}});}};})(Drupal,jQuery);; 5(function($,Drupal){function normalizeLabel(text){return (text||'').replace(/\s+/g,' ').trim();}function deriveLinkLabel($link){var textLabel=normalizeLabel($link.clone().find('img, i, svg').remove().end().text());if(textLabel)return textLabel;var attrLabel=normalizeLabel($link.attr('title'))||normalizeLabel($link.attr('aria-label'));if(attrLabel)return attrLabel;var $image=$link.find('img').first();if($image.length){var imageLabel=normalizeLabel($image.attr('alt'))||normalizeLabel($image.attr('title'));if(imageLabel)return imageLabel;}return '';}function derivePdfLabel($link,href){var label=deriveLinkLabel($link);if(label)return label;var cleanHref=(href||'').split('#')[0].split('?')[0];var basename=cleanHref.substring(cleanHref.lastIndexOf('/')+1);basename=normalizeLabel(decodeURIComponent(basename).replace(/\.pdf$/i,'').replace(/[-_]+/g,' '));return basename;}function deriveHrefLabel(href){if(!href)return '';var parser=document.createElement('a');parser.href=href;var hostname=(parser.hostname||'').replace(/^www\./,'');var pathParts=(parser.pathname||'').split('/').filter(Boolean);if(hostname==='www.instagram.com'||hostname==='instagram.com'){if(pathParts.length>0&&pathParts[0]!=='p')return 'View '+pathParts[0]+' on Instagram';return 'View on Instagram';}if(hostname==='www.youtube.com'||hostname==='youtube.com'||hostname==='youtu.be')return 'View on YouTube';if(hostname==='www.facebook.com'||hostname==='facebook.com')return 'View on Facebook';if(hostname==='twitter.com'||hostname==='x.com'||hostname==='www.x.com')return 'View on Twitter';if(hostname==='www.linkedin.com'||hostname==='linkedin.com')return 'View on LinkedIn';if(hostname.indexOf('nextdoor.com')!==-1)return 'View on Nextdoor';return '';}Drupal.behaviors.optimizeLinkProcessing={attach:function(context,settings){var currentHostname=window.location.hostname;var sandiegoDomains=/^(https?:\/\/|\/\/)?(www\.)?(sandiego\.gov|sandgov\.build)/;var insidesdDomains=/^(https?:\/\/|\/\/)?(www\.)?(insidesandiego\.org|insidesd\.build)/;var citynetDomains=/^(https?:\/\/|\/\/)?(citynet\.)(sandiego\.gov|build)/;var sdgov2DomainRegex=/^(https?:\/\/|\/\/)?sdgov2\.lndo\.site/;$('a',context).each(function(){var $link=$(this);var href=$link.attr('href');if(href){href=href.replace(sdgov2DomainRegex,'');if(href.endsWith('.pdf')){var currentText=derivePdfLabel($link,href);if(currentText)$link.attr('aria-label','PDF document: '+currentText);var $nextSibling=$link[0].nextSibling;if($nextSibling&&$nextSibling.nodeType===Node.TEXT_NODE){var textContent=$nextSibling.nodeValue;$nextSibling.nodeValue=textContent.replace(/\s*\([^\)]*PDF[^\)]*\)\s*/,' ');}}var $pdfIcon=$link.closest('span.file').find('img.file-icon[src$="application-pdf.png"]');if($pdfIcon.length)$pdfIcon.remove();if(currentHostname.match(sandiegoDomains))href=href.replace(sandiegoDomains,'');if(currentHostname.match(insidesdDomains))href=href.replace(insidesdDomains,'');if(currentHostname.match(citynetDomains))href=href.replace(citynetDomains,'');var cleanedHref=href.replace(/\/index(\.shtml)?(\/index(\.shtml)?)?(#[^\/]*)?$/,'');$link.attr('href',cleanedHref);if(!$link.attr('aria-label')){var derivedLabel=deriveLinkLabel($link);if(!derivedLabel)derivedLabel=deriveHrefLabel(cleanedHref);if(derivedLabel)$link.attr('aria-label',derivedLabel);}}});}};})(jQuery,Drupal);; 6;(function(factory){if(typeof define==='function'&&define.amd)define(['jquery'],factory);else if(typeof exports==='object')factory(require('jquery'));else factory(window.jQuery||window.Zepto);}(function($){var CLOSE_EVENT='Close',BEFORE_CLOSE_EVENT='BeforeClose',AFTER_CLOSE_EVENT='AfterClose',BEFORE_APPEND_EVENT='BeforeAppend',MARKUP_PARSE_EVENT='MarkupParse',OPEN_EVENT='Open',CHANGE_EVENT='Change',NS='mfp',EVENT_NS='.'+NS,READY_CLASS='mfp-ready',REMOVING_CLASS='mfp-removing',PREVENT_CLOSE_CLASS='mfp-prevent-close';var mfp,MagnificPopup=function(){},_isJQ=!!(window.jQuery),_prevStatus,_window=$(window),_document,_prevContentType,_wrapClasses,_currPopupType;var _mfpOn=function(name,f){mfp.ev.on(NS+name+EVENT_NS,f);},_getEl=function(className,appendTo,html,raw){var el=document.createElement('div');el.className='mfp-'+className;if(html)el.innerHTML=html;if(!raw){el=$(el);if(appendTo)el.appendTo(appendTo);}else{if(appendTo)appendTo.appendChild(el);}return el;},_mfpTrigger=function(e,data){mfp.ev.triggerHandler(NS+e,data);if(mfp.st.callbacks){e=e.charAt(0).toLowerCase()+e.slice(1);if(mfp.st.callbacks[e])mfp.st.callbacks[e].apply(mfp,$.isArray(data)?data:[data]);}},_getCloseBtn=function(type){if(type!==_currPopupType||!mfp.currTemplate.closeBtn){mfp.currTemplate.closeBtn=$(mfp.st.closeMarkup.replace('%title%',mfp.st.tClose));_currPopupType=type;}return mfp.currTemplate.closeBtn;},_checkInstance=function(){if(!$.magnificPopup.instance){mfp=new MagnificPopup();mfp.init();$.magnificPopup.instance=mfp;}},supportsTransitions=function(){var s=document.createElement('p').style,v=['ms','O','Moz','Webkit'];if(s['transition']!==undefined)return true;while(v.length)if(v.pop()+'Transition' in s)return true;return false;};MagnificPopup.prototype={constructor:MagnificPopup,init:function(){var appVersion=navigator.appVersion;mfp.isIE7=appVersion.indexOf("MSIE 7.")!==-1;mfp.isIE8=appVersion.indexOf("MSIE 8.")!==-1;mfp.isLowIE=mfp.isIE7||mfp.isIE8;mfp.isAndroid=(/android/gi).test(appVersion);mfp.isIOS=(/iphone|ipad|ipod/gi).test(appVersion);mfp.supportsTransition=supportsTransitions();mfp.probablyMobile=(mfp.isAndroid||mfp.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent));_document=$(document);mfp.popupsCache={};},open:function(data){var i;if(data.isObj===false){mfp.items=data.items.toArray();mfp.index=0;var items=data.items,item;for(i=0;i<items.length;i++){item=items[i];if(item.parsed)item=item.el[0];if(item===data.el[0]){mfp.index=i;break;}}}else{mfp.items=$.isArray(data.items)?data.items:[data.items];mfp.index=data.index||0;}if(mfp.isOpen){mfp.updateItemHTML();return;}mfp.types=[];_wrapClasses='';if(data.mainEl&&data.mainEl.length)mfp.ev=data.mainEl.eq(0);else mfp.ev=_document;if(data.key){if(!mfp.popupsCache[data.key])mfp.popupsCache[data.key]={};mfp.currTemplate=mfp.popupsCache[data.key];}else mfp.currTemplate={};mfp.st=$.extend(true,{},$.magnificPopup.defaults,data);mfp.fixedContentPos=mfp.st.fixedContentPos==='auto'?!mfp.probablyMobile:mfp.st.fixedContentPos;if(mfp.st.modal){mfp.st.closeOnContentClick=false;mfp.st.closeOnBgClick=false;mfp.st.showCloseBtn=false;mfp.st.enableEscapeKey=false;}if(!mfp.bgOverlay){mfp.bgOverlay=_getEl('bg').on('click'+EVENT_NS,function(){mfp.close();});mfp.wrap=_getEl('wrap').attr('tabindex',-1).on('click'+EVENT_NS,function(e){if(mfp._checkIfClose(e.target))mfp.close();});mfp.container=_getEl('container',mfp.wrap);}mfp.contentContainer=_getEl('content');if(mfp.st.preloader)mfp.preloader=_getEl('preloader',mfp.container,mfp.st.tLoading);var modules=$.magnificPopup.modules;for(i=0;i<modules.length;i++){var n=modules[i];n=n.charAt(0).toUpperCase()+n.slice(1);mfp['init'+n].call(mfp);}_mfpTrigger('BeforeOpen');if(mfp.st.showCloseBtn)if(!mfp.st.closeBtnInside)mfp.wrap.append(_getCloseBtn());else{_mfpOn(MARKUP_PARSE_EVENT,function(e,template,values,item){values.close_replaceWith=_getCloseBtn(item.type);});_wrapClasses+=' mfp-close-btn-in';}if(mfp.st.alignTop)_wrapClasses+=' mfp-align-top';if(mfp.fixedContentPos)mfp.wrap.css({overflow:mfp.st.overflowY,overflowX:'hidden',overflowY:mfp.st.overflowY});else mfp.wrap.css({top:_window.scrollTop(),position:'absolute'});if(mfp.st.fixedBgPos===false||(mfp.st.fixedBgPos==='auto'&&!mfp.fixedContentPos))mfp.bgOverlay.css({height:_document.height(),position:'absolute'});if(mfp.st.enableEscapeKey)_document.on('keyup'+EVENT_NS,function(e){if(e.keyCode===27)mfp.close();});_window.on('resize'+EVENT_NS,function(){mfp.updateSize();});if(!mfp.st.closeOnContentClick)_wrapClasses+=' mfp-auto-cursor';if(_wrapClasses)mfp.wrap.addClass(_wrapClasses);var windowHeight=mfp.wH=_window.height();var windowStyles={};if(mfp.fixedContentPos)if(mfp._hasScrollBar(windowHeight)){var s=mfp._getScrollbarSize();if(s)windowStyles.marginRight=s;}if(mfp.fixedContentPos)if(!mfp.isIE7)windowStyles.overflow='hidden';else $('body, html').css('overflow','hidden');var classesToadd=mfp.st.mainClass;if(mfp.isIE7)classesToadd+=' mfp-ie7';if(classesToadd)mfp._addClassToMFP(classesToadd);mfp.updateItemHTML();_mfpTrigger('BuildControls');$('html').css(windowStyles);
6mfp.bgOverlay.add(mfp.wrap).prependTo(mfp.st.prependTo||$(document.body));mfp._lastFocusedEl=document.activeElement;setTimeout(function(){if(mfp.content){mfp._addClassToMFP(READY_CLASS);mfp._setFocus();}else mfp.bgOverlay.addClass(READY_CLASS);_document.on('focusin'+EVENT_NS,mfp._onFocusIn);},16);mfp.isOpen=true;mfp.updateSize(windowHeight);_mfpTrigger(OPEN_EVENT);return data;},close:function(){if(!mfp.isOpen)return;_mfpTrigger(BEFORE_CLOSE_EVENT);mfp.isOpen=false;if(mfp.st.removalDelay&&!mfp.isLowIE&&mfp.supportsTransition){mfp._addClassToMFP(REMOVING_CLASS);setTimeout(function(){mfp._close();},mfp.st.removalDelay);}else mfp._close();},_close:function(){_mfpTrigger(CLOSE_EVENT);var classesToRemove=REMOVING_CLASS+' '+READY_CLASS+' ';mfp.bgOverlay.detach();mfp.wrap.detach();mfp.container.empty();if(mfp.st.mainClass)classesToRemove+=mfp.st.mainClass+' ';mfp._removeClassFromMFP(classesToRemove);if(mfp.fixedContentPos){var windowStyles={marginRight:''};if(mfp.isIE7)$('body, html').css('overflow','');else windowStyles.overflow='';$('html').css(windowStyles);}_document.off('keyup'+EVENT_NS+' focusin'+EVENT_NS);mfp.ev.off(EVENT_NS);mfp.wrap.attr('class','mfp-wrap').removeAttr('style');mfp.bgOverlay.attr('class','mfp-bg');mfp.container.attr('class','mfp-container');if(mfp.st.showCloseBtn&&(!mfp.st.closeBtnInside||mfp.currTemplate[mfp.currItem.type]===true))if(mfp.currTemplate.closeBtn)mfp.currTemplate.closeBtn.detach();if(mfp._lastFocusedEl)$(mfp._lastFocusedEl).focus();mfp.currItem=null;mfp.content=null;mfp.currTemplate=null;mfp.prevHeight=0;_mfpTrigger(AFTER_CLOSE_EVENT);},updateSize:function(winHeight){if(mfp.isIOS){var zoomLevel=document.documentElement.clientWidth/window.innerWidth;var height=window.innerHeight*zoomLevel;mfp.wrap.css('height',height);mfp.wH=height;}else mfp.wH=winHeight||_window.height();if(!mfp.fixedContentPos)mfp.wrap.css('height',mfp.wH);_mfpTrigger('Resize');},updateItemHTML:function(){var item=mfp.items[mfp.index];mfp.contentContainer.detach();if(mfp.content)mfp.content.detach();if(!item.parsed)item=mfp.parseEl(mfp.index);var type=item.type;_mfpTrigger('BeforeChange',[mfp.currItem?mfp.currItem.type:'',type]);mfp.currItem=item;if(!mfp.currTemplate[type]){var markup=mfp.st[type]?mfp.st[type].markup:false;_mfpTrigger('FirstMarkupParse',markup);if(markup)mfp.currTemplate[type]=$(markup);else mfp.currTemplate[type]=true;}if(_prevContentType&&_prevContentType!==item.type)mfp.container.removeClass('mfp-'+_prevContentType+'-holder');var newContent=mfp['get'+type.charAt(0).toUpperCase()+type.slice(1)](item,mfp.currTemplate[type]);mfp.appendContent(newContent,type);item.preloaded=true;_mfpTrigger(CHANGE_EVENT,item);_prevContentType=item.type;mfp.container.prepend(mfp.contentContainer);_mfpTrigger('AfterChange');},appendContent:function(newContent,type){mfp.content=newContent;if(newContent)if(mfp.st.showCloseBtn&&mfp.st.closeBtnInside&&mfp.currTemplate[type]===true){if(!mfp.content.find('.mfp-close').length)mfp.content.append(_getCloseBtn());}else mfp.content=newContent;else mfp.content='';_mfpTrigger(BEFORE_APPEND_EVENT);mfp.container.addClass('mfp-'+type+'-holder');mfp.contentContainer.append(mfp.content);},parseEl:function(index){var item=mfp.items[index],type;if(item.tagName)item={el:$(item)};else{type=item.type;item={data:item,src:item.src};}if(item.el){var types=mfp.types;for(var i=0;i<types.length;i++)if(item.el.hasClass('mfp-'+types[i])){type=types[i];break;}item.src=item.el.attr('data-mfp-src');if(!item.src)item.src=item.el.attr('href');}item.type=type||mfp.st.type||'inline';item.index=index;item.parsed=true;mfp.items[index]=item;_mfpTrigger('ElementParse',item);return mfp.items[index];},addGroup:function(el,options){var eHandler=function(e){e.mfpEl=this;mfp._openClick(e,el,options);};if(!options)options={};var eName='click.magnificPopup';options.mainEl=el;if(options.items){options.isObj=true;el.off(eName).on(eName,eHandler);}else{options.isObj=false;if(options.delegate)el.off(eName).on(eName,options.delegate,eHandler);else{options.items=el;el.off(eName).on(eName,eHandler);}}},_openClick:function(e,el,options){var midClick=options.midClick!==un
6defined?options.midClick:$.magnificPopup.defaults.midClick;if(!midClick&&(e.which===2||e.ctrlKey||e.metaKey))return;var disableOn=options.disableOn!==undefined?options.disableOn:$.magnificPopup.defaults.disableOn;if(disableOn)if($.isFunction(disableOn)){if(!disableOn.call(mfp))return true;}else{if(_window.width()<disableOn)return true;}if(e.type){e.preventDefault();if(mfp.isOpen)e.stopPropagation();}options.el=$(e.mfpEl);if(options.delegate)options.items=el.find(options.delegate);mfp.open(options);},updateStatus:function(status,text){if(mfp.preloader){if(_prevStatus!==status)mfp.container.removeClass('mfp-s-'+_prevStatus);if(!text&&status==='loading')text=mfp.st.tLoading;var data={status,text};_mfpTrigger('UpdateStatus',data);status=data.status;text=data.text;mfp.preloader.html(text);mfp.preloader.find('a').on('click',function(e){e.stopImmediatePropagation();});mfp.container.addClass('mfp-s-'+status);_prevStatus=status;}},_checkIfClose:function(target){if($(target).hasClass(PREVENT_CLOSE_CLASS))return;var closeOnContent=mfp.st.closeOnContentClick;var closeOnBg=mfp.st.closeOnBgClick;if(closeOnContent&&closeOnBg)return true;else{if(!mfp.content||$(target).hasClass('mfp-close')||(mfp.preloader&&target===mfp.preloader[0]))return true;if((target!==mfp.content[0]&&!$.contains(mfp.content[0],target))){if(closeOnBg)if($.contains(document,target))return true;}else{if(closeOnContent)return true;}}return false;},_addClassToMFP:function(cName){mfp.bgOverlay.addClass(cName);mfp.wrap.addClass(cName);},_removeClassFromMFP:function(cName){this.bgOverlay.removeClass(cName);mfp.wrap.removeClass(cName);},_hasScrollBar:function(winHeight){return ((mfp.isIE7?_document.height():document.body.scrollHeight)>(winHeight||_window.height()));},_setFocus:function(){(mfp.st.focus?mfp.content.find(mfp.st.focus).eq(0):mfp.wrap).focus();},_onFocusIn:function(e){if(e.target!==mfp.wrap[0]&&!$.contains(mfp.wrap[0],e.target)){mfp._setFocus();return false;}},_parseMarkup:function(template,values,item){var arr;if(item.data)values=$.extend(item.data,values);_mfpTrigger(MARKUP_PARSE_EVENT,[template,values,item]);$.each(values,function(key,value){if(value===undefined||value===false)return true;arr=key.split('_');if(arr.length>1){var el=template.find(EVENT_NS+'-'+arr[0]);if(el.length>0){var attr=arr[1];if(attr==='replaceWith'){if(el[0]!==value[0])el.replaceWith(value);}else if(attr==='img')if(el.is('img'))el.attr('src',value);else el.replaceWith('<img src="'+value+'" class="'+el.attr('class')+'" />');else el.attr(arr[1],value);}}else template.find(EVENT_NS+'-'+key).html(value);});},_getScrollbarSize:function(){if(mfp.scrollbarSize===undefined){var scrollDiv=document.createElement("div");scrollDiv.style.cssText='width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;';document.body.appendChild(scrollDiv);mfp.scrollbarSize=scrollDiv.offsetWidth-scrollDiv.clientWidth;document.body.removeChild(scrollDiv);}return mfp.scrollbarSize;}};$.magnificPopup={instance:null,proto:MagnificPopup.prototype,modules:[],open:function(options,index){_checkInstance();if(!options)options={};else options=$.extend(true,{},options);options.isObj=true;options.index=index||0;return this.instance.open(options);},close:function(){return $.magnificPopup.instance&&$.magnificPopup.instance.close();},registerModule:function(name,module){if(module.options)$.magnificPopup.defaults[name]=module.options;$.extend(this.proto,module.proto);this.modules.push(name);},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...'}};$.fn.magnificPopup=function(options){_checkInstance();var jqEl=$(this);if(typeof options==="string")if(options==='open'){var items,itemOpts=_isJQ?jqEl.data('magnificPopup'):jqEl[0].magnificPopup,index=parseInt(arguments[1],10)||0;if(itemOpts.items)items=itemOpts.items[index];else{items=jqEl;if(itemOpts.delegate)items=items.find(itemOpts.delegate);items=items.eq(index);}mfp._openClick({mfpEl:items},jqEl,itemOpts);}else{if(mfp.isOpen)mfp[options].apply(mfp,Array.prototype.slice.call(arguments,1
6));}else{options=$.extend(true,{},options);if(_isJQ)jqEl.data('magnificPopup',options);else jqEl[0].magnificPopup=options;mfp.addGroup(jqEl,options);}return jqEl;};var INLINE_NS='inline',_hiddenClass,_inlinePlaceholder,_lastInlineElement,_putInlineElementsBack=function(){if(_lastInlineElement){_inlinePlaceholder.after(_lastInlineElement.addClass(_hiddenClass)).detach();_lastInlineElement=null;}};$.magnificPopup.registerModule(INLINE_NS,{options:{hiddenClass:'hide',markup:'',tNotFound:'Content not found'},proto:{initInline:function(){mfp.types.push(INLINE_NS);_mfpOn(CLOSE_EVENT+'.'+INLINE_NS,function(){_putInlineElementsBack();});},getInline:function(item,template){_putInlineElementsBack();if(item.src){var inlineSt=mfp.st.inline,el=$(item.src);if(el.length){var parent=el[0].parentNode;if(parent&&parent.tagName){if(!_inlinePlaceholder){_hiddenClass=inlineSt.hiddenClass;_inlinePlaceholder=_getEl(_hiddenClass);_hiddenClass='mfp-'+_hiddenClass;}_lastInlineElement=el.after(_inlinePlaceholder).detach().removeClass(_hiddenClass);}mfp.updateStatus('ready');}else{mfp.updateStatus('error',inlineSt.tNotFound);el=$('<div>');}item.inlineElement=el;return el;}mfp.updateStatus('ready');mfp._parseMarkup(template,{},item);return template;}}});var AJAX_NS='ajax',_ajaxCur,_removeAjaxCursor=function(){if(_ajaxCur)$(document.body).removeClass(_ajaxCur);},_destroyAjaxRequest=function(){_removeAjaxCursor();if(mfp.req)mfp.req.abort();};$.magnificPopup.registerModule(AJAX_NS,{options:{settings:null,cursor:'mfp-ajax-cur',tError:'<a href="%url%">The content</a> could not be loaded.'},proto:{initAjax:function(){mfp.types.push(AJAX_NS);_ajaxCur=mfp.st.ajax.cursor;_mfpOn(CLOSE_EVENT+'.'+AJAX_NS,_destroyAjaxRequest);_mfpOn('BeforeChange.'+AJAX_NS,_destroyAjaxRequest);},getAjax:function(item){if(_ajaxCur)$(document.body).addClass(_ajaxCur);mfp.updateStatus('loading');var opts=$.extend({url:item.src,success:function(data,textStatus,jqXHR){var temp={data,xhr:jqXHR};_mfpTrigger('ParseAjax',temp);mfp.appendContent($(temp.data),AJAX_NS);item.finished=true;_removeAjaxCursor();mfp._setFocus();setTimeout(function(){mfp.wrap.addClass(READY_CLASS);},16);mfp.updateStatus('ready');_mfpTrigger('AjaxContentAdded');},error:function(){_removeAjaxCursor();item.finished=item.loadError=true;mfp.updateStatus('error',mfp.st.ajax.tError.replace('%url%',item.src));}},mfp.st.ajax.settings);mfp.req=$.ajax(opts);return '';}}});var _imgInterval,_getTitle=function(item){if(item.data&&item.data.title!==undefined)return item.data.title;var src=mfp.st.image.titleSrc;if(src)if($.isFunction(src))return src.call(mfp,item);else{if(item.el)return item.el.attr(src)||'';}return '';};$.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:true,tError:'<a href="%url%">The image</a> could not be loaded.'},proto:{initImage:function(){var imgSt=mfp.st.image,ns='.image';mfp.types.push('image');_mfpOn(OPEN_EVENT+ns,function(){if(mfp.currItem.type==='image'&&imgSt.cursor)$(document.body).addClass(imgSt.cursor);});_mfpOn(CLOSE_EVENT+ns,function(){if(imgSt.cursor)$(document.body).removeClass(imgSt.cursor);_window.off('resize'+EVENT_NS);});_mfpOn('Resize'+ns,mfp.resizeImage);if(mfp.isLowIE)_mfpOn('AfterChange',mfp.resizeImage);},resizeImage:function(){var item=mfp.currItem;if(!item||!item.img)return;if(mfp.st.image.verticalFit){var decr=0;if(mfp.isLowIE)decr=parseInt(item.img.css('padding-top'),10)+parseInt(item.img.css('padding-bottom'),10);item.img.css('max-height',mfp.wH-decr);}},_onImageHasSize:function(item){if(item.img){item.hasSize=true;if(_imgInterval)clearInterval(_imgInterval);item.isCheckingImgSize=false;_mfpTrigger('ImageHasSize',item);if(item.imgHidden){if(mfp.content)mfp.content.removeClass('mfp-loading');item.imgHidden=false;}}},findImageSize:function(item){var counter=0,img=item.img[0],mfpSetInterval=function(delay){if(_imgInterval)clearInterval(_imgInterval);
6_imgInterval=setInterval(function(){if(img.naturalWidth>0){mfp._onImageHasSize(item);return;}if(counter>200)clearInterval(_imgInterval);counter++;if(counter===3)mfpSetInterval(10);else if(counter===40)mfpSetInterval(50);else{if(counter===100)mfpSetInterval(500);}},delay);};mfpSetInterval(1);},getImage:function(item,template){var guard=0,onLoadComplete=function(){if(item)if(item.img[0].complete){item.img.off('.mfploader');if(item===mfp.currItem){mfp._onImageHasSize(item);mfp.updateStatus('ready');}item.hasSize=true;item.loaded=true;_mfpTrigger('ImageLoadComplete');}else{guard++;if(guard<200)setTimeout(onLoadComplete,100);else onLoadError();}},onLoadError=function(){if(item){item.img.off('.mfploader');if(item===mfp.currItem){mfp._onImageHasSize(item);mfp.updateStatus('error',imgSt.tError.replace('%url%',item.src));}item.hasSize=true;item.loaded=true;item.loadError=true;}},imgSt=mfp.st.image;var el=template.find('.mfp-img');if(el.length){var img=document.createElement('img');img.className='mfp-img';if(item.el&&item.el.find('img').length)img.alt=item.el.find('img').attr('alt');item.img=$(img).on('load.mfploader',onLoadComplete).on('error.mfploader',onLoadError);img.src=item.src;if(el.is('img'))item.img=item.img.clone();img=item.img[0];if(img.naturalWidth>0)item.hasSize=true;else{if(!img.width)item.hasSize=false;}}mfp._parseMarkup(template,{title:_getTitle(item),img_replaceWith:item.img},item);mfp.resizeImage();if(item.hasSize){if(_imgInterval)clearInterval(_imgInterval);if(item.loadError){template.addClass('mfp-loading');mfp.updateStatus('error',imgSt.tError.replace('%url%',item.src));}else{template.removeClass('mfp-loading');mfp.updateStatus('ready');}return template;}mfp.updateStatus('loading');item.loading=true;if(!item.hasSize){item.imgHidden=true;template.addClass('mfp-loading');mfp.findImageSize(item);}return template;}}});var hasMozTransform,getHasMozTransform=function(){if(hasMozTransform===undefined)hasMozTransform=document.createElement('p').style.MozTransform!==undefined;return hasMozTransform;};$.magnificPopup.registerModule('zoom',{options:{enabled:false,easing:'ease-in-out',duration:300,opener:function(element){return element.is('img')?element:element.find('img');}},proto:{initZoom:function(){var zoomSt=mfp.st.zoom,ns='.zoom',image;if(!zoomSt.enabled||!mfp.supportsTransition)return;var duration=zoomSt.duration,getElToAnimate=function(image){var newImg=image.clone().removeAttr('style').removeAttr('class').addClass('mfp-animated-image'),transition='all '+(zoomSt.duration/1000)+'s '+zoomSt.easing,cssObj={position:'fixed',zIndex:9999,left:0,top:0,'-webkit-backface-visibility':'hidden'},t='transition';cssObj['-webkit-'+t]=cssObj['-moz-'+t]=cssObj['-o-'+t]=cssObj[t]=transition;newImg.css(cssObj);return newImg;},showMainContent=function(){mfp.content.css('visibility','visible');},openTimeout,animatedImg;_mfpOn('BuildControls'+ns,function(){if(mfp._allowZoom()){clearTimeout(openTimeout);mfp.content.css('visibility','hidden');image=mfp._getItemToZoom();if(!image){showMainContent();return;}animatedImg=getElToAnimate(image);animatedImg.css(mfp._getOffset());mfp.wrap.append(animatedImg);openTimeout=setTimeout(function(){animatedImg.css(mfp._getOffset(true));openTimeout=setTimeout(function(){showMainContent();setTimeout(function(){animatedImg.remove();image=animatedImg=null;_mfpTrigger('ZoomAnimationEnded');},16);},duration);},16);}});_mfpOn(BEFORE_CLOSE_EVENT+ns,function(){if(mfp._allowZoom()){clearTimeout(openTimeout);mfp.st.removalDelay=duration;if(!image){image=mfp._getItemToZoom();if(!image)return;animatedImg=getElToAnimate(image);}animatedImg.css(mfp._getOffset(true));mfp.wrap.append(animatedImg);mfp.content.css('visibility','hidden');setTimeout(function(){animatedImg.css(mfp._getOffset());},16);}});_mfpOn(CLOSE_EVENT+ns,function(){if(mfp._allowZoom()){showMainContent();if(animatedImg)animatedImg.remove();image=null;}});},_allowZoom:function(){return mfp.currItem.type==='image';},_getItemToZoom:function(){if(mfp.currItem.hasSize)return mfp.currItem.img;else return false;},_getOffset:function(isLarge){var el;if(isLarge)el=mfp.currItem.img;else el=mfp.st.zoom.opener(mfp.currItem.el||mfp.currItem);var offset=el.offset();var paddingTop=parseInt(el.css('padding-top'),10);var paddingBottom=parseInt(el.css('padding-bottom'),10);offset.top-=($(window).scrollTop()-paddingTop);
6var obj={width:el.width(),height:(_isJQ?el.innerHeight():el[0].offsetHeight)-paddingBottom-paddingTop};if(getHasMozTransform())obj['-moz-transform']=obj['transform']='translate('+offset.left+'px,'+offset.top+'px)';else{obj.left=offset.left;obj.top=offset.top;}return obj;}}});var IFRAME_NS='iframe',_emptyPage='//about:blank',_fixIframeBugs=function(isShowing){if(mfp.currTemplate[IFRAME_NS]){var el=mfp.currTemplate[IFRAME_NS].find('iframe');if(el.length){if(!isShowing)el[0].src=_emptyPage;if(mfp.isIE8)el.css('display',isShowing?'block':'none');}}};$.magnificPopup.registerModule(IFRAME_NS,{options:{markup:'<div class="mfp-iframe-scaler">'+'<div class="mfp-close"></div>'+'<iframe class="mfp-iframe" src="//about:blank" title="Embedded media" 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(){mfp.types.push(IFRAME_NS);_mfpOn('BeforeChange',function(e,prevType,newType){if(prevType!==newType)if(prevType===IFRAME_NS)_fixIframeBugs();else{if(newType===IFRAME_NS)_fixIframeBugs(true);}});_mfpOn(CLOSE_EVENT+'.'+IFRAME_NS,function(){_fixIframeBugs();});},getIframe:function(item,template){var embedSrc=item.src;var iframeSt=mfp.st.iframe;$.each(iframeSt.patterns,function(){if(embedSrc.indexOf(this.index)>-1){if(this.id)if(typeof this.id==='string')embedSrc=embedSrc.substr(embedSrc.lastIndexOf(this.id)+this.id.length,embedSrc.length);else embedSrc=this.id.call(this,embedSrc);embedSrc=this.src.replace('%id%',embedSrc);return false;}});var dataObj={};if(iframeSt.srcAction)dataObj[iframeSt.srcAction]=embedSrc;mfp._parseMarkup(template,dataObj,item);if(item.iframeTitle)template.find('iframe').attr('title',item.iframeTitle);mfp.updateStatus('ready');return template;}}});var _getLoopedId=function(index){var numSlides=mfp.items.length;if(index>numSlides-1)return index-numSlides;else{if(index<0)return numSlides+index;}return index;},_replaceCurrTotal=function(text,curr,total){return text.replace(/%curr%/gi,curr+1).replace(/%total%/gi,total);};$.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 gSt=mfp.st.gallery,ns='.mfp-gallery',supportsFastClick=Boolean($.fn.mfpFastClick);mfp.direction=true;if(!gSt||!gSt.enabled)return false;_wrapClasses+=' mfp-gallery';_mfpOn(OPEN_EVENT+ns,function(){if(gSt.navigateByImgClick)mfp.wrap.on('click'+ns,'.mfp-img',function(){if(mfp.items.length>1){mfp.next();return false;}});_document.on('keydown'+ns,function(e){if(e.keyCode===37)mfp.prev();else{if(e.keyCode===39)mfp.next();}});});_mfpOn('UpdateStatus'+ns,function(e,data){if(data.text)data.text=_replaceCurrTotal(data.text,mfp.currItem.index,mfp.items.length);});_mfpOn(MARKUP_PARSE_EVENT+ns,function(e,element,values,item){var l=mfp.items.length;values.counter=l>1?_replaceCurrTotal(gSt.tCounter,item.index,l):'';});_mfpOn('BuildControls'+ns,function(){if(mfp.items.length>1&&gSt.arrows&&!mfp.arrowLeft){var markup=gSt.arrowMarkup,arrowLeft=mfp.arrowLeft=$(markup.replace(/%title%/gi,gSt.tPrev).replace(/%dir%/gi,'left')).addClass(PREVENT_CLOSE_CLASS),arrowRight=mfp.arrowRight=$(markup.replace(/%title%/gi,gSt.tNext).replace(/%dir%/gi,'right')).addClass(PREVENT_CLOSE_CLASS);var eName=supportsFastClick?'mfpFastClick':'click';arrowLeft[eName](function(){mfp.prev();});arrowRight[eName](function(){mfp.next();});if(mfp.isIE7){_getEl('b',arrowLeft[0],false,true);_getEl('a',arrowLeft[0],false,true);_getEl('b',arrowRight[0],false,true);_getEl('a',arrowRight[0],false,true);}mfp.container.append(arrowLeft.add(arrowRight));}});_mfpOn(CHANGE_EVENT+ns,function(){if(mfp._preloadTimeout)clearTimeout(mfp._preloadTimeout);mfp._preloadTimeout=setTimeout(function(){mfp.preloadNearbyImages();mfp._preloadTimeout=null;},16);});_mfpOn(CLOSE_EVENT+ns,function(){_document.off(ns);mfp.wrap.off('click'+ns);if(mfp.arrowLeft&&supportsFastClick)mfp.arrowLeft.add(mfp.arrowRight).destroyMfpFastClick();mfp.arrowRight=mfp.arrowLeft=null;});},next:function(){mfp.direction=true;mfp.index=_getLoopedId(mfp.index+1);mfp.updateItemHTML();},prev:function(){mfp.direction=false;mfp.index=_getLoopedId(mfp.index-1);mfp.updateItemHTML();},goTo:function(newIndex){mfp.direction=(newIndex>
6=mfp.index);mfp.index=newIndex;mfp.updateItemHTML();},preloadNearbyImages:function(){var p=mfp.st.gallery.preload,preloadBefore=Math.min(p[0],mfp.items.length),preloadAfter=Math.min(p[1],mfp.items.length),i;for(i=1;i<=(mfp.direction?preloadAfter:preloadBefore);i++)mfp._preloadItem(mfp.index+i);for(i=1;i<=(mfp.direction?preloadBefore:preloadAfter);i++)mfp._preloadItem(mfp.index-i);},_preloadItem:function(index){index=_getLoopedId(index);if(mfp.items[index].preloaded)return;var item=mfp.items[index];if(!item.parsed)item=mfp.parseEl(index);_mfpTrigger('LazyLoad',item);if(item.type==='image')item.img=$('<img class="mfp-img" />').on('load.mfploader',function(){item.hasSize=true;}).on('error.mfploader',function(){item.hasSize=true;item.loadError=true;_mfpTrigger('LazyLoadError',item);}).attr('src',item.src);item.preloaded=true;}}});var RETINA_NS='retina';$.magnificPopup.registerModule(RETINA_NS,{options:{replaceSrc:function(item){return item.src.replace(/\.\w+$/,function(m){return '@2x'+m;});},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var st=mfp.st.retina,ratio=st.ratio;ratio=!isNaN(ratio)?ratio:ratio();if(ratio>1){_mfpOn('ImageHasSize'+'.'+RETINA_NS,function(e,item){item.img.css({'max-width':item.img[0].naturalWidth/ratio,'width':'100%'});});_mfpOn('ElementParse'+'.'+RETINA_NS,function(e,item){item.src=st.replaceSrc(item,ratio);});}}}}});(function(){var ghostClickDelay=1000,supportsTouch='ontouchstart' in window,unbindTouchMove=function(){_window.off('touchmove'+ns+' touchend'+ns);},eName='mfpFastClick',ns='.'+eName;$.fn.mfpFastClick=function(callback){return $(this).each(function(){var elem=$(this),lock;if(supportsTouch){var timeout,startX,startY,pointerMoved,point,numPointers;elem.on('touchstart'+ns,function(e){pointerMoved=false;numPointers=1;point=e.originalEvent?e.originalEvent.touches[0]:e.touches[0];startX=point.clientX;startY=point.clientY;_window.on('touchmove'+ns,function(e){point=e.originalEvent?e.originalEvent.touches:e.touches;numPointers=point.length;point=point[0];if(Math.abs(point.clientX-startX)>10||Math.abs(point.clientY-startY)>10){pointerMoved=true;unbindTouchMove();}}).on('touchend'+ns,function(e){unbindTouchMove();if(pointerMoved||numPointers>1)return;lock=true;e.preventDefault();clearTimeout(timeout);timeout=setTimeout(function(){lock=false;},ghostClickDelay);callback();});});}elem.on('click'+ns,function(){if(!lock)callback();});});};$.fn.destroyMfpFastClick=function(){$(this).off('touchstart'+ns+' click'+ns);if(supportsTouch)_window.off('touchmove'+ns+' touchend'+ns);};})();_checkInstance();}));;
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.