!function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t("object"==typeof exports?require("jquery"):window.jQuery||window.Zepto)}(function(t){var e="Close",i="BeforeClose",n="AfterClose",r="BeforeAppend",o="MarkupParse",s="Open",a="Change",c="mfp",l="."+c,p="mfp-ready",u="mfp-removing",d="mfp-prevent-close",f,h=function(){},m=!!window.jQuery,g,v=t(window),y,w,b,C,k=function(t,e){f.ev.on(c+t+l,e)},I=function(e,i,n,r){var o=document.createElement("div");return o.className="mfp-"+e,n&&(o.innerHTML=n),r?i&&i.appendChild(o):(o=t(o),i&&o.appendTo(i)),o},x=function(e,i){f.ev.triggerHandler(c+e,i),f.st.callbacks&&(e=e.charAt(0).toLowerCase()+e.slice(1),f.st.callbacks[e]&&f.st.callbacks[e].apply(f,t.isArray(i)?i:[i]))},T=function(e){return e===C&&f.currTemplate.closeBtn||(f.currTemplate.closeBtn=t(f.st.closeMarkup.replace("%title%",f.st.tClose)),C=e),f.currTemplate.closeBtn},S=function(){t.magnificPopup.instance||(f=new h,f.init(),t.magnificPopup.instance=f)},E=function(){var t=document.createElement("p").style,e=["ms","O","Moz","Webkit"];if(void 0!==t.transition)return!0;for(;e.length;)if(e.pop()+"Transition"in t)return!0;return!1};h.prototype={constructor:h,init:function(){var e=navigator.appVersion;f.isLowIE=f.isIE8=document.all&&!document.addEventListener,f.isAndroid=/android/gi.test(e),f.isIOS=/iphone|ipad|ipod/gi.test(e),f.supportsTransition=E(),f.probablyMobile=f.isAndroid||f.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),y=t(document),f.popupsCache={}},open:function(e){var i;if(!1===e.isObj){f.items=e.items.toArray(),f.index=0;var n=e.items,r;for(i=0;i(t||v.height())},_setFocus:function(){(f.st.focus?f.content.find(f.st.focus).eq(0):f.wrap).focus()},_onFocusIn:function(e){if(e.target!==f.wrap[0]&&!t.contains(f.wrap[0],e.target))return f._setFocus(),!1},_parseMarkup:function(e,i,n){var r;n.data&&(i=t.extend(n.data,i)),x(o,[e,i,n]),t.each(i,function(i,n){if(void 0===n||!1===n)return!0;if(r=i.split("_"),r.length>1){var o=e.find(l+"-"+r[0]);if(o.length>0){var s=r[1];"replaceWith"===s?o[0]!==n[0]&&o.replaceWith(n):"img"===s?o.is("img")?o.attr("src",n):o.replaceWith(t("").attr("src",n).attr("class",o.attr("class"))):o.attr(r[1],n)}}else e.find(l+"-"+i).html(n)})},_getScrollbarSize:function(){if(void 0===f.scrollbarSize){var t=document.createElement("div");t.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(t),f.scrollbarSize=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return f.scrollbarSize}},t.magnificPopup={instance:null,proto:h.prototype,modules:[],open:function(e,i){return S(),e=e?t.extend(!0,{},e):{},e.isObj=!0,e.index=i||0,this.instance.open(e)},close:function(){return t.magnificPopup.instance&&t.magnificPopup.instance.close()},registerModule:function(e,i){i.options&&(t.magnificPopup.defaults[e]=i.options),t.extend(this.proto,i.proto),this.modules.push(e)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'',tClose:"Close (Esc)",tLoading:"Loading...",autoFocusLast:!0}},t.fn.magnificPopup=function(e){S();var i=t(this);if("string"==typeof e)if("open"===e){var n,r=m?i.data("magnificPopup"):i[0].magnificPopup,o=parseInt(arguments[1],10)||0;r.items?n=r.items[o]:(n=i,r.delegate&&(n=n.find(r.delegate)),n=n.eq(o)),f._openClick({mfpEl:n},i,r)}else f.isOpen&&f[e].apply(f,Array.prototype.slice.call(arguments,1));else e=t.extend(!0,{},e),m?i.data("magnificPopup",e):i[0].magnificPopup=e,f.addGroup(i,e);return i};var _="inline",P,z,O,M=function(){O&&(z.after(O.addClass(P)).detach(),O=null)};t.magnificPopup.registerModule(_,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){f.types.push(_),k(e+"."+_,function(){M()})},getInline:function(e,i){if(M(),e.src){var n=f.st.inline,r=t(e.src);if(r.length){var o=r[0].parentNode;o&&o.tagName&&(z||(P=n.hiddenClass,z=I(P),P="mfp-"+P),O=r.after(z).detach().removeClass(P)),f.updateStatus("ready")}else f.updateStatus("error",n.tNotFound),r=t("
");return e.inlineElement=r,r}return f.updateStatus("ready"),f._parseMarkup(i,{},e),i}}});var A="ajax",H,N=function(){H&&t(document.body).removeClass(H)},F=function(){N(),f.req&&f.req.abort()};t.magnificPopup.registerModule(A,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'The content could not be loaded.'},proto:{initAjax:function(){f.types.push(A),H=f.st.ajax.cursor,k(e+"."+A,F),k("BeforeChange."+A,F)},getAjax:function(e){H&&t(document.body).addClass(H),f.updateStatus("loading");var i=t.extend({url:e.src,success:function(i,n,r){var o={data:i,xhr:r};x("ParseAjax",o),f.appendContent(t(o.data),A),e.finished=!0,N(),f._setFocus(),setTimeout(function(){f.wrap.addClass(p)},16),f.updateStatus("ready"),x("AjaxContentAdded")},error:function(){N(),e.finished=e.loadError=!0,f.updateStatus("error",f.st.ajax.tError.replace("%url%",e.src))}},f.st.ajax.settings);return f.req=t.ajax(i),""}}});var j,W=function(e){if(e.data&&void 0!==e.data.title)return e.data.title;var i=f.st.image.titleSrc;if(i){if(t.isFunction(i))return i.call(f,e);if(e.el)return e.el.attr(i)||""}return""};t.magnificPopup.registerModule("image",{options:{markup:'
',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'The image could not be loaded.'},proto:{initImage:function(){var i=f.st.image,n=".image";f.types.push("image"),k(s+n,function(){"image"===f.currItem.type&&i.cursor&&t(document.body).addClass(i.cursor)}),k(e+n,function(){i.cursor&&t(document.body).removeClass(i.cursor),v.off("resize"+l)}),k("Resize"+n,f.resizeImage),f.isLowIE&&k("AfterChange",f.resizeImage)},resizeImage:function(){var t=f.currItem;if(t&&t.img&&f.st.image.verticalFit){var e=0;f.isLowIE&&(e=parseInt(t.img.css("padding-top"),10)+parseInt(t.img.css("padding-bottom"),10)),t.img.css("max-height",f.wH-e)}},_onImageHasSize:function(t){t.img&&(t.hasSize=!0,j&&clearInterval(j),t.isCheckingImgSize=!1,x("ImageHasSize",t),t.imgHidden&&(f.content&&f.content.removeClass("mfp-loading"),t.imgHidden=!1))},findImageSize:function(t){var e=0,i=t.img[0],n=function(r){j&&clearInterval(j),j=setInterval(function(){if(i.naturalWidth>0)return void f._onImageHasSize(t);e>200&&clearInterval(j),e++,3===e?n(10):40===e?n(50):100===e&&n(500)},r)};n(1)},getImage:function(e,i){var n=0,r=function(){e&&(e.img[0].complete?(e.img.off(".mfploader"),e===f.currItem&&(f._onImageHasSize(e),f.updateStatus("ready")),e.hasSize=!0,e.loaded=!0,x("ImageLoadComplete")):(n++,n<200?setTimeout(r,100):o()))},o=function(){e&&(e.img.off(".mfploader"),e===f.currItem&&(f._onImageHasSize(e),f.updateStatus("error",s.tError.replace("%url%",e.src))),e.hasSize=!0,e.loaded=!0,e.loadError=!0)},s=f.st.image,a=i.find(".mfp-img");if(a.length){var c=document.createElement("img");c.className="mfp-img",e.el&&e.el.find("img").length&&(c.alt=e.el.find("img").attr("alt")),e.img=t(c).on("load.mfploader",r).on("error.mfploader",o),c.src=e.src,a.is("img")&&(e.img=e.img.clone()),c=e.img[0],c.naturalWidth>0?e.hasSize=!0:c.width||(e.hasSize=!1)}return f._parseMarkup(i,{title:W(e),img_replaceWith:e.img},e),f.resizeImage(),e.hasSize?(j&&clearInterval(j),e.loadError?(i.addClass("mfp-loading"),f.updateStatus("error",s.tError.replace("%url%",e.src))):(i.removeClass("mfp-loading"),f.updateStatus("ready")),i):(f.updateStatus("loading"),e.loading=!0,e.hasSize||(e.imgHidden=!0,i.addClass("mfp-loading"),f.findImageSize(e)),i)}}});var L,B=function(){return void 0===L&&(L=void 0!==document.createElement("p").style.MozTransform),L};t.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(t){return t.is("img")?t:t.find("img")}},proto:{initZoom:function(){var t=f.st.zoom,n=".zoom",r;if(t.enabled&&f.supportsTransition){var o=t.duration,s=function(e){var i=e.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),n="all "+t.duration/1e3+"s "+t.easing,r={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},o="transition";return r["-webkit-"+o]=r["-moz-"+o]=r["-o-"+o]=r[o]=n,i.css(r),i},a=function(){f.content.css("visibility","visible")},c,l;k("BuildControls"+n,function(){if(f._allowZoom()){if(clearTimeout(c),f.content.css("visibility","hidden"),r=f._getItemToZoom(),!r)return void a();l=s(r),l.css(f._getOffset()),f.wrap.append(l),c=setTimeout(function(){l.css(f._getOffset(!0)),c=setTimeout(function(){a(),setTimeout(function(){l.remove(),r=l=null,x("ZoomAnimationEnded")},16)},o)},16)}}),k(i+n,function(){if(f._allowZoom()){if(clearTimeout(c),f.st.removalDelay=o,!r){if(!(r=f._getItemToZoom()))return;l=s(r)}l.css(f._getOffset(!0)),f.wrap.append(l),f.content.css("visibility","hidden"),setTimeout(function(){l.css(f._getOffset())},16)}}),k(e+n,function(){f._allowZoom()&&(a(),l&&l.remove(),r=null)})}},_allowZoom:function(){return"image"===f.currItem.type},_getItemToZoom:function(){return!!f.currItem.hasSize&&f.currItem.img},_getOffset:function(e){var i;i=e?f.currItem.img:f.st.zoom.opener(f.currItem.el||f.currItem);var n=i.offset(),r=parseInt(i.css("padding-top"),10),o=parseInt(i.css("padding-bottom"),10);n.top-=t(window).scrollTop()-r;var s={width:i.width(),height:(m?i.innerHeight():i[0].offsetHeight)-o-r};return B()?s["-moz-transform"]=s.transform="translate("+n.left+"px,"+n.top+"px)":(s.left=n.left,s.top=n.top),s}}});var q="iframe",D="//about:blank",U=function(t){if(f.currTemplate[q]){var e=f.currTemplate[q].find("iframe");e.length&&(t||(e[0].src=D),f.isIE8&&e.css("display",t?"block":"none"))}};t.magnificPopup.registerModule(q,{options:{markup:'
',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(){f.types.push(q),k("BeforeChange",function(t,e,i){e!==i&&(e===q?U():i===q&&U(!0))}),k(e+"."+q,function(){U()})},getIframe:function(e,i){var n=e.src,r=f.st.iframe;t.each(r.patterns,function(){if(n.indexOf(this.index)>-1)return this.id&&(n="string"==typeof this.id?n.substr(n.lastIndexOf(this.id)+this.id.length,n.length):this.id.call(this,n)),n=this.src.replace("%id%",n),!1});var o={};return r.srcAction&&(o[r.srcAction]=n),f._parseMarkup(i,o,e),f.updateStatus("ready"),i}}});var R=function(t){var e=f.items.length;return t>e-1?t-e:t<0?e+t:t},Q=function(t,e,i){return t.replace(/%curr%/gi,e+1).replace(/%total%/gi,i)};t.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var i=f.st.gallery,n=".mfp-gallery";if(f.direction=!0,!i||!i.enabled)return!1;b+=" mfp-gallery",k(s+n,function(){i.navigateByImgClick&&f.wrap.on("click"+n,".mfp-img",function(){if(f.items.length>1)return f.next(),!1}),y.on("keydown"+n,function(t){37===t.keyCode?f.prev():39===t.keyCode&&f.next()})}),k("UpdateStatus"+n,function(t,e){e.text&&(e.text=Q(e.text,f.currItem.index,f.items.length))}),k(o+n,function(t,e,n,r){var o=f.items.length;n.counter=o>1?Q(i.tCounter,r.index,o):""}),k("BuildControls"+n,function(){if(f.items.length>1&&i.arrows&&!f.arrowLeft){var e=i.arrowMarkup,n=f.arrowLeft=t(e.replace(/%title%/gi,i.tPrev).replace(/%dir%/gi,"left")).addClass(d),r=f.arrowRight=t(e.replace(/%title%/gi,i.tNext).replace(/%dir%/gi,"right")).addClass(d);n.click(function(){f.prev()}),r.click(function(){f.next()}),f.container.append(n.add(r))}}),k(a+n,function(){f._preloadTimeout&&clearTimeout(f._preloadTimeout),f._preloadTimeout=setTimeout(function(){f.preloadNearbyImages(),f._preloadTimeout=null},16)}),k(e+n,function(){y.off(n),f.wrap.off("click"+n),f.arrowRight=f.arrowLeft=null})},next:function(){f.direction=!0,f.index=R(f.index+1),f.updateItemHTML()},prev:function(){f.direction=!1,f.index=R(f.index-1),f.updateItemHTML()},goTo:function(t){f.direction=t>=f.index,f.index=t,f.updateItemHTML()},preloadNearbyImages:function(){var t=f.st.gallery.preload,e=Math.min(t[0],f.items.length),i=Math.min(t[1],f.items.length),n;for(n=1;n<=(f.direction?i:e);n++)f._preloadItem(f.index+n);for(n=1;n<=(f.direction?e:i);n++)f._preloadItem(f.index-n)},_preloadItem:function(e){if(e=R(e),!f.items[e].preloaded){var i=f.items[e];i.parsed||(i=f.parseEl(e)),x("LazyLoad",i),"image"===i.type&&(i.img=t('').on("load.mfploader",function(){i.hasSize=!0}).on("error.mfploader",function(){i.hasSize=!0,i.loadError=!0,x("LazyLoadError",i)}).attr("src",i.src)),i.preloaded=!0}}}});var Y="retina";t.magnificPopup.registerModule(Y,{options:{replaceSrc:function(t){return t.src.replace(/\.\w+$/,function(t){return"@2x"+t})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var t=f.st.retina,e=t.ratio;(e=isNaN(e)?e():e)>1&&(k("ImageHasSize."+Y,function(t,i){i.img.css({"max-width":i.img[0].naturalWidth/e,width:"100%"})}),k("ElementParse."+Y,function(i,n){n.src=t.replaceSrc(n,e)}))}}}}),S()}),function($,t){"use strict";var e=function(){var t={bcClass:"sf-breadcrumb",menuClass:"sf-js-enabled",anchorClass:"sf-with-ul",menuArrowClass:"sf-arrows"},e=function(){var t=/^(?![\w\W]*Windows Phone)[\w\W]*(iPhone|iPad|iPod)/i.test(navigator.userAgent);return t&&$("html").css("cursor","pointer").on("click",$.noop),t}(),i=function(){var t=document.documentElement.style;return"behavior"in t&&"fill"in t&&/iemobile/i.test(navigator.userAgent)}(),n=function(e,i,n){var r=t.menuClass,o;i.cssArrows&&(r+=" "+t.menuArrowClass),o=n?"addClass":"removeClass",e[o](r)},r=function(e,i){return e.find("li."+i.pathClass).slice(0,i.pathLevels).addClass(i.hoverClass+" "+t.bcClass).filter(function(){return $(this).children(i.popUpSelector).hide().show().length}).removeClass(i.pathClass)},o=function(e,i){var n=i?"addClass":"removeClass";e.children("a")[n](t.anchorClass)},s=function(t){var e=t.css("ms-touch-action"),i=t.css("touch-action");i=i||e,i="pan-y"===i?"auto":"pan-y",t.css({"ms-touch-action":i,"touch-action":i})},a=function(e){return e.closest("."+t.menuClass)},c=function(t){return a(t).data("sfOptions")},l=function(){var t=$(this),e=c(t);clearTimeout(e.sfTimer),t.siblings().ktsuperfish("hide").end().ktsuperfish("show")},p=function(t){t.retainPath=$.inArray(this[0],t.$path)>-1,this.ktsuperfish("hide"),this.parents("."+t.hoverClass).length||(t.onIdle.call(a(this)),t.$path.length&&$.proxy(l,t.$path)())},u=function(){var t=$(this),i=c(t);e?$.proxy(p,t,i)():(clearTimeout(i.sfTimer),i.sfTimer=setTimeout($.proxy(p,t,i),i.delay))},d=function(t){var e=$(this),i=c(e),n=e.siblings(t.data.popUpSelector);return!1===i.onHandleTouch.call(n)?this:void(n.length>0&&n.is(":hidden")&&(e.one("click.ktsuperfish",!1),"MSPointerDown"===t.type||"pointerdown"===t.type?e.trigger("focus"):$.proxy(l,e.parent("li"))()))},f=function(t,n){var r="li:has("+n.popUpSelector+")";$.fn.hoverIntent&&!n.disableHI?t.hoverIntent(l,u,r):t.on("mouseenter.ktsuperfish",r,l).on("mouseleave.ktsuperfish",r,u);var o="MSPointerDown.ktsuperfish";e||(o+=" touchend.ktsuperfish"),i&&(o+=" mousedown.ktsuperfish"),t.on("focusin.ktsuperfish","li",l).on("focusout.ktsuperfish","li",u).on(o,"a",n,d)};return{hide:function(t){if(this.length){var e=this,i=c(e);if(!i)return this;var n=!0===i.retainPath?i.$path:"",r=e.find("li."+i.hoverClass).add(this).not(n).removeClass(i.hoverClass).children(i.popUpSelector),o=i.speedOut;if(t&&(r.show(),o=0),i.retainPath=!1,!1===i.onBeforeHide.call(r))return this;r.stop(!0,!0).animate(i.animationOut,o,function(){var t=$(this);i.onHide.call(t)})}return this},show:function(){var t=c(this);if(!t)return this;var e=this.addClass(t.hoverClass),i=e.children(t.popUpSelector);return!1===t.onBeforeShow.call(i)?this:(i.stop(!0,!0).animate(t.animation,t.speed,function(){t.onShow.call(i)}),this)},destroy:function(){return this.each(function(){var e=$(this),i=e.data("sfOptions"),r;return!!i&&(r=e.find(i.popUpSelector).parent("li"),clearTimeout(i.sfTimer),n(e,i),o(r),s(e),e.off(".ktsuperfish").off(".hoverIntent"),r.children(i.popUpSelector).attr("style",function(t,e){return e.replace(/display[^;]+;?/g,"")}),i.$path.removeClass(i.hoverClass+" "+t.bcClass).addClass(i.pathClass),e.find("."+i.hoverClass).removeClass(i.hoverClass),i.onDestroy.call(e),void e.removeData("sfOptions"))})},init:function(e){return this.each(function(){var i=$(this);if(i.data("sfOptions"))return!1;var a=$.extend({},$.fn.ktsuperfish.defaults,e),c=i.find(a.popUpSelector).parent("li");a.$path=r(i,a),i.data("sfOptions",a),n(i,a,!0),o(c,!0),s(i),f(i,a),c.not("."+t.bcClass).ktsuperfish("hide",!0),a.onInit.call(this)})}}}();$.fn.ktsuperfish=function(t,i){return e[t]?e[t].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof t&&t?$.error("Method "+t+" does not exist on jQuery.fn.ktsuperfish"):e.init.apply(this,arguments)},$.fn.ktsuperfish.defaults={popUpSelector:"ul,.sf-mega",hoverClass:"sfHover",pathClass:"overrideThisToUse",pathLevels:1,delay:800,animation:{opacity:"show"},animationOut:{opacity:"hide"},speed:"normal",speedOut:"fast",cssArrows:!0,disableHI:!1,onInit:$.noop,onBeforeShow:$.noop,onShow:$.noop,onBeforeHide:$.noop,onHide:$.noop,onIdle:$.noop,onDestroy:$.noop,onHandleTouch:$.noop}}(jQuery,window),function(t){"use strict";t.fn.fitVids=function(e){var i={customSelector:null,ignore:null};if(!document.getElementById("fit-vids-style")){var n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("div");r.innerHTML='

x

",n.appendChild(r.childNodes[1])}return e&&t.extend(i,e),this.each(function(){var e=['iframe[src*="player.vimeo.com"]','iframe[src*="youtube.com"]','iframe[src*="youtube-nocookie.com"]','iframe[src*="kickstarter.com"][src*="video.html"]',"object","embed"];i.customSelector&&e.push(i.customSelector);var n=".fitvidsignore";i.ignore&&(n=n+", "+i.ignore);var r=t(this).find(e.join(","));r=r.not("object object"),r=r.not(n),r.each(function(){var e=t(this);if(!(e.parents(n).length>0||"embed"===this.tagName.toLowerCase()&&e.parent("object").length||e.parent(".fluid-width-video-wrapper").length)){e.css("height")||e.css("width")||!isNaN(e.attr("height"))&&!isNaN(e.attr("width"))||(e.attr("height",9),e.attr("width",16));var i="object"===this.tagName.toLowerCase()||e.attr("height")&&!isNaN(parseInt(e.attr("height"),10))?parseInt(e.attr("height"),10):e.height(),r=isNaN(parseInt(e.attr("width"),10))?e.width():parseInt(e.attr("width"),10),o=i/r;if(!e.attr("name")){var s="fitvid"+t.fn.fitVids._count;e.attr("name",s),t.fn.fitVids._count++}e.wrap('
').parent(".fluid-width-video-wrapper").css("padding-top",100*o+"%"),e.removeAttr("height").removeAttr("width")}})})},t.fn.fitVids._count=0}(window.jQuery||window.Zepto),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof exports?module.exports=t(require("jquery")):t(jQuery)}(function(t){var e="waitForImages";t.waitForImages={hasImageProperties:["backgroundImage","listStyleImage","borderImage","borderCornerImage","cursor"],hasImageAttributes:["srcset"]},t.expr[":"]["has-src"]=function(e){return t(e).is('img[src][src!=""]')},t.expr[":"].uncached=function(e){return!!t(e).is(":has-src")&&!e.complete},t.fn.waitForImages=function(){var i,n,r,o=0,s=0,a=t.Deferred();if(t.isPlainObject(arguments[0])?(r=arguments[0].waitForAll,n=arguments[0].each,i=arguments[0].finished):1===arguments.length&&"boolean"===t.type(arguments[0])?r=arguments[0]:(i=arguments[0],n=arguments[1],r=arguments[2]),i=i||t.noop,n=n||t.noop,r=!!r,!t.isFunction(i)||!t.isFunction(n))throw new TypeError("An invalid callback was supplied.");return this.each(function(){var c=t(this),l=[],p=t.waitForImages.hasImageProperties||[],u=t.waitForImages.hasImageAttributes||[],d=/url\(\s*(['"]?)(.*?)\1\s*\)/g;r?c.find("*").addBack().each(function(){var e=t(this);e.is("img:has-src")&&!e.is("[srcset]")&&l.push({src:e.attr("src"),element:e[0]}),t.each(p,function(t,i){var n,r=e.css(i);if(!r)return!0;for(;n=d.exec(r);)l.push({src:n[2],element:e[0]})}),t.each(u,function(t,i){return!e.attr(i)||void l.push({src:e.attr("src"),srcset:e.attr("srcset"),element:e[0]})})}):c.find("img:has-src").each(function(){l.push({src:this.src,element:this})}),o=l.length,s=0,0===o&&(i.call(c[0]),a.resolveWith(c[0])),t.each(l,function(r,l){var p=new Image,u="load."+e+" error."+e;t(p).one(u,function e(r){var p=[s,o,"load"==r.type];if(s++,n.apply(l.element,p),a.notifyWith(l.element,p),t(this).off(u,e),s==o)return i.call(c[0]),a.resolveWith(c[0]),!1}),l.srcset&&(p.srcset=l.srcset),p.src=l.src})}),a.promise()}}),function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):"undefined"!=typeof module&&module.exports?module.exports=t(require("jquery")):t(jQuery)}(function($){var t=-1,e=-1,i=function(t){return parseFloat(t)||0},n=function(t){var e=1,n=$(t),r=null,o=[];return n.each(function(){var t=$(this),e=t.offset().top-i(t.css("margin-top")),n=o.length>0?o[o.length-1]:null;null===n?o.push(t):Math.floor(Math.abs(r-e))<=1?o[o.length-1]=n.add(t):o.push(t),r=e}),o},r=function(t){var e={byRow:!0,property:"height",target:null,remove:!1};return"object"==typeof t?$.extend(e,t):("boolean"==typeof t?e.byRow=t:"remove"===t&&(e.remove=!0),e)},o=$.fn.matchHeight=function(t){var e=r(t);if(e.remove){var i=this;return this.css(e.property,""),$.each(o._groups,function(t,e){e.elements=e.elements.not(i)}),this}return this.length<=1&&!e.target?this:(o._groups.push({elements:this,options:e}),o._apply(this,e),this)};o.version="master",o._groups=[],o._throttle=80,o._maintainScroll=!1,o._beforeUpdate=null,o._afterUpdate=null,o._rows=n,o._parse=i,o._parseOptions=r,o._apply=function(t,e){var s=r(e),a=$(t),c=[a],l=$(window).scrollTop(),p=$("html").outerHeight(!0),u=a.parents().filter(":hidden");return u.each(function(){var t=$(this);t.data("style-cache",t.attr("style"))}),u.css("display","block"),s.byRow&&!s.target&&(a.each(function(){var t=$(this),e=t.css("display");"inline-block"!==e&&"flex"!==e&&"inline-flex"!==e&&(e="block"),t.data("style-cache",t.attr("style")),t.css({display:e,"padding-top":"0","padding-bottom":"0","margin-top":"0","margin-bottom":"0","border-top-width":"0","border-bottom-width":"0",height:"100px",overflow:"hidden"})}),c=n(a),a.each(function(){var t=$(this);t.attr("style",t.data("style-cache")||"")})),$.each(c,function(t,e){var n=$(e),r=0;if(s.target)r=s.target.outerHeight(!1);else{if(s.byRow&&n.length<=1)return void n.css(s.property,"");n.each(function(){var t=$(this),e=t.attr("style"),i=t.css("display");"inline-block"!==i&&"flex"!==i&&"inline-flex"!==i&&(i="block");var n={display:i};n[s.property]="",t.css(n),t.outerHeight(!1)>r&&(r=t.outerHeight(!1)),e?t.attr("style",e):t.css("display","")})}n.each(function(){var t=$(this),e=0;s.target&&t.is(s.target)||("border-box"!==t.css("box-sizing")&&(e+=i(t.css("border-top-width"))+i(t.css("border-bottom-width")),e+=i(t.css("padding-top"))+i(t.css("padding-bottom"))),t.css(s.property,r-e+"px"))})}),u.each(function(){var t=$(this);t.attr("style",t.data("style-cache")||null)}),o._maintainScroll&&$(window).scrollTop(l/p*$("html").outerHeight(!0)),this},o._applyDataApi=function(){var t={};$("[data-match-height], [data-mh]").each(function(){var e=$(this),i=e.attr("data-mh")||e.attr("data-match-height");t[i]=i in t?t[i].add(e):e}),$.each(t,function(){this.matchHeight(!0)})};var s=function(t){o._beforeUpdate&&o._beforeUpdate(t,o._groups),$.each(o._groups,function(){o._apply(this.elements,this.options)}),o._afterUpdate&&o._afterUpdate(t,o._groups)};o._update=function(i,n){if(n&&"resize"===n.type){var r=$(window).width();if(r===t)return;t=r}i?-1===e&&(e=setTimeout(function(){s(n),e=-1},o._throttle)):s(n)},$(o._applyDataApi),$(window).bind("load",function(t){o._update(!1,t)}),$(window).bind("resize orientationchange",function(t){o._update(!0,t)})}),function($){"use strict";var t=function(t,e){this.el=$(t),this.options=$.extend({},$.fn.typed.defaults,e),this.isInput=this.el.is("input"),this.attr=this.options.attr,this.showCursor=!this.isInput&&this.options.showCursor,this.elContent=this.attr?this.el.attr(this.attr):this.el.text(),this.contentType=this.options.contentType,this.typeSpeed=this.options.typeSpeed,this.startDelay=this.options.startDelay,this.backSpeed=this.options.backSpeed,this.backDelay=this.options.backDelay,this.stringsElement=this.options.stringsElement,this.strings=this.options.strings,this.strPos=0,this.arrayPos=0,this.stopNum=0,this.loop=this.options.loop,this.loopCount=this.options.loopCount,this.curLoop=0,this.stop=!1,this.cursorChar=this.options.cursorChar,this.shuffle=this.options.shuffle,this.sequence=[],this.build()};t.prototype={constructor:t,init:function(){var t=this;t.timeout=setTimeout(function(){ for(var e=0;e'+this.cursorChar+""),this.el.after(this.cursor)),this.stringsElement){t.strings=[],this.stringsElement.hide();var e=this.stringsElement.find("p");$.each(e,function(e,i){t.strings.push($(i).html())})}this.init()},typewrite:function(t,e){if(!0!==this.stop){var i=Math.round(70*Math.random())+this.typeSpeed,n=this;n.timeout=setTimeout(function(){var i=0,r=t.substr(e);if("^"===r.charAt(0)){var o=1;/^\^\d+/.test(r)&&(r=/\d+/.exec(r)[0],o+=r.length,i=parseInt(r)),t=t.substring(0,e)+t.substring(e+o)}if("html"===n.contentType){var s=t.substr(e).charAt(0);if("<"===s||"&"===s){var a="",c="";for(c="<"===s?">":";";t.substr(e).charAt(0)!==c;)a+=t.substr(e).charAt(0),e++;e++,a+=c}}n.timeout=setTimeout(function(){if(e===t.length){if(n.options.onStringTyped(n.arrayPos),n.arrayPos===n.strings.length-1&&(n.options.callback(),n.curLoop++,!1===n.loop||n.curLoop===n.loopCount))return;n.timeout=setTimeout(function(){n.backspace(t,e)},n.backDelay)}else{0===e&&n.options.preStringTyped(n.arrayPos);var i=t.substr(0,e+1);n.attr?n.el.attr(n.attr,i):n.isInput?n.el.val(i):"html"===n.contentType?n.el.html(i):n.el.text(i),e++,n.typewrite(t,e)}},i)},i)}},backspace:function(t,e){if(!0!==this.stop){var i=Math.round(70*Math.random())+this.backSpeed,n=this;n.timeout=setTimeout(function(){if("html"===n.contentType&&">"===t.substr(e).charAt(0)){for(var i="";"<"!==t.substr(e).charAt(0);)i-=t.substr(e).charAt(0),e--;e--,i+="<"}var r=t.substr(0,e);n.attr?n.el.attr(n.attr,r):n.isInput?n.el.val(r):"html"===n.contentType?n.el.html(r):n.el.text(r),e>n.stopNum?(e--,n.backspace(t,e)):e<=n.stopNum&&(n.arrayPos++,n.arrayPos===n.strings.length?(n.arrayPos=0,n.shuffle&&(n.sequence=n.shuffleArray(n.sequence)),n.init()):n.typewrite(n.strings[n.sequence[n.arrayPos]],e))},i)}},shuffleArray:function(t){var e,i,n=t.length;if(n)for(;--n;)i=Math.floor(Math.random()*(n+1)),e=t[i],t[i]=t[n],t[n]=e;return t},reset:function(){var t=this;clearInterval(t.timeout);var e=this.el.attr("id");this.el.after(''),this.el.remove(),void 0!==this.cursor&&this.cursor.remove(),t.options.resetCallback()}},$.fn.typed=function(e){return this.each(function(){var i=$(this),n=i.data("typed"),r="object"==typeof e&&e;n||i.data("typed",n=new t(this,r)),"string"==typeof e&&n[e]()})},$.fn.typed.defaults={strings:["These are the default values...","You know what you should do?","Use your own!","Have a great day!"],stringsElement:null,typeSpeed:0,startDelay:0,backSpeed:0,shuffle:!1,backDelay:500,loop:!1,loopCount:!1,showCursor:!0,cursorChar:"|",attr:null,contentType:"html",callback:function(){},preStringTyped:function(){},onStringTyped:function(){},resetCallback:function(){}}}(window.jQuery),function($){$.fn.appear=function(t,e){var i=$.extend({data:void 0,one:!0,accX:0,accY:0},e);return this.each(function(){var e=$(this);if(e.appeared=!1,!t)return void e.trigger("appear",i.data);var n=$(window),r=function(){if(!e.is(":visible"))return void(e.appeared=!1);var t=n.scrollLeft(),r=n.scrollTop(),o=e.offset(),s=o.left,a=o.top,c=i.accX,l=i.accY,p=e.height(),u=n.height(),d=e.width(),f=n.width();a+p+l>=r&&a<=r+u+l&&s+d+c>=t&&s<=t+f+c?e.appeared||e.trigger("appear",i.data):e.appeared=!1},o=function(){if(e.appeared=!0,i.one){n.unbind("scroll",r);var o=$.inArray(r,$.fn.appear.checks);o>=0&&$.fn.appear.checks.splice(o,1)}t.apply(this,arguments)};i.one?e.one("appear",i.data,o):e.bind("appear",i.data,o),n.scroll(r),$.fn.appear.checks.push(r),r()})},$.extend($.fn.appear,{checks:[],timeout:null,checkAll:function(){var t=$.fn.appear.checks.length;if(t>0)for(;t--;)$.fn.appear.checks[t]()},run:function(){$.fn.appear.timeout&&clearTimeout($.fn.appear.timeout),$.fn.appear.timeout=setTimeout($.fn.appear.checkAll,20)}}),$.each(["append","prepend","after","before","attr","removeAttr","addClass","removeClass","toggleClass","remove","css","show","hide"],function(t,e){var i=$.fn[e];i&&($.fn[e]=function(){var t=i.apply(this,arguments);return $.fn.appear.run(),t})})}(jQuery),function(t){var e,i,n=t.event;e=n.special.debouncedresize={setup:function(){t(this).on("resize",e.handler)},teardown:function(){t(this).off("resize",e.handler)},handler:function(t,r){var o=this,s=arguments,a=function(){t.type="debouncedresize",n.dispatch.apply(o,s)};i&&clearTimeout(i),r?a():i=setTimeout(a,e.threshold)},threshold:150}}(jQuery),function($){$.fn.kt_fitText=function(t,e){var i=t||1,n=$.extend({minFontSize:Number.NEGATIVE_INFINITY,maxFontSize:Number.POSITIVE_INFINITY,minWidth:Number.NEGATIVE_INFINITY,maxWidth:Number.POSITIVE_INFINITY},e);return this.each(function(){var t=$(this),e=function(){var e=t.width();n.maxWidth>e&&n.minWidthe?t.css("font-size",n.minFontSize):t.css("font-size",n.maxFontSize)};e(),$(window).on("resize.fittext orientationchange.fittext",e)})}}(jQuery),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof module&&module.exports?module.exports=t(require("jquery")):t(jQuery)}(function($){var t=Array.prototype.slice,e=Array.prototype.splice,i={topSpacing:0,bottomSpacing:0,className:"is-sticky",wrapperClassName:"sticky-wrapper",center:!1,getWidthFrom:"",widthFromWrapper:!0,responsiveWidth:!1,zIndex:"auto"},n=$(window),r=$(document),o=[],s=n.height(),a=function(){for(var t=n.scrollTop(),e=r.height(),i=e-s,a=t>i?i-t:0,c=0,l=o.length;cu||null===p.currentTop&&u=f.offset().top+f.outerHeight()&&p.stickyElement.offset().top<=p.topSpacing?p.stickyElement.css("position","absolute").css("top","").css("bottom",0).css("z-index",""):p.stickyElement.css("position","fixed").css("top",u).css("bottom","").css("z-index",p.zIndex)}}},c=function(){s=n.height();for(var t=0,e=o.length;t
").attr("id",s).addClass(e.wrapperClassName);n.wrapAll(function(){if(0==$(this).parent("#"+s).length)return a});var c=n.parent();e.center&&c.css({width:n.outerWidth(),marginLeft:"auto",marginRight:"auto"}),"right"===n.css("float")&&n.css({float:"none"}).parent().css({float:"right"}),e.stickyElement=n,e.stickyWrapper=c,e.currentTop=null,o.push(e),l.setWrapperHeight(this),l.setupChangeListeners(this)})},setWrapperHeight:function(t){var e=$(t),i=e.parent();i&&i.css("height",e.outerHeight())},setupChangeListeners:function(t){window.MutationObserver?new window.MutationObserver(function(e){(e[0].addedNodes.length||e[0].removedNodes.length)&&l.setWrapperHeight(t)}).observe(t,{subtree:!0,childList:!0}):window.addEventListener?(t.addEventListener("DOMNodeInserted",function(){l.setWrapperHeight(t)},!1),t.addEventListener("DOMNodeRemoved",function(){l.setWrapperHeight(t)},!1)):window.attachEvent&&(t.attachEvent("onDOMNodeInserted",function(){l.setWrapperHeight(t)}),t.attachEvent("onDOMNodeRemoved",function(){l.setWrapperHeight(t)}))},update:a,unstick:function(t){return this.each(function(){for(var t=this,i=$(t),n=-1,r=o.length;r-- >0;)o[r].stickyElement.get(0)===t&&(e.call(o,r,1),n=r);-1!==n&&(i.unwrap(),i.css({width:"",position:"",top:"",float:"","z-index":""}))})}};window.addEventListener?(window.addEventListener("scroll",a,!1),window.addEventListener("resize",c,!1)):window.attachEvent&&(window.attachEvent("onscroll",a),window.attachEvent("onresize",c)),$.fn.sticky=function(e){return l[e]?l[e].apply(this,t.call(arguments,1)):"object"!=typeof e&&e?void $.error("Method "+e+" does not exist on jQuery.sticky"):l.init.apply(this,arguments)},$.fn.unstick=function(e){return l[e]?l[e].apply(this,t.call(arguments,1)):"object"!=typeof e&&e?void $.error("Method "+e+" does not exist on jQuery.sticky"):l.unstick.apply(this,arguments)},$(function(){setTimeout(a,0)})});