function initPlugins(e){jQuery(".js-background").background(),jQuery(".js-carousel").carousel(),jQuery(".js-equalize").equalize(),jQuery(".js-navigation").navigation(),jQuery(".js-swap").swap(),jQuery(".js-tabs").tabs(),"site"==e&&jQuery(".js-checkpoint, [data-checkpoint-animation]").checkpoint({offset:100,reverse:!0})}!function(e){var t,i,a,n,s,r,o,l=navigator.userAgent;e.HTMLPictureElement&&/ecko/.test(l)&&l.match(/rv\:(\d+)/)&&RegExp.$1<45&&addEventListener("resize",(i=document.createElement("source"),a=function(e){var t,a,n=e.parentNode;"PICTURE"===n.nodeName.toUpperCase()?(t=i.cloneNode(),n.insertBefore(t,n.firstElementChild),setTimeout(function(){n.removeChild(t)})):(!e._pfLastSize||e.offsetWidth>e._pfLastSize)&&(e._pfLastSize=e.offsetWidth,a=e.sizes,e.sizes+=",100vw",setTimeout(function(){e.sizes=a}))},n=function(){var e,t=document.querySelectorAll("picture > img, img[srcset][sizes]");for(e=0;e<t.length;e++)a(t[e])},s=function(){clearTimeout(t),t=setTimeout(n,99)},r=e.matchMedia&&matchMedia("(orientation: landscape)"),o=function(){s(),r&&r.addListener&&r.addListener(s)},i.srcset="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",/^[c|i]|d$/.test(document.readyState||"")?o():document.addEventListener("DOMContentLoaded",o),s))}(window),function(e,s,c){"use strict";function d(e){return" "===e||"\t"===e||"\n"===e||"\f"===e||"\r"===e}function x(e,t){return e.res-t.res}function A(e,t){var a,n,i;if(e&&t)for(i=j.parseSet(t),e=j.makeUrl(e),a=0;a<i.length;a++)if(e===j.makeUrl(i[a].url)){n=i[a];break}return n}s.createElement("picture");var i,u,l,n,r,t,a,o,p,f,h,m,g,v,w,b,y,$,C,k,T,P,j={},M=!1,_=function(){},I=s.createElement("img"),S=I.getAttribute,E=I.setAttribute,W=I.removeAttribute,z=s.documentElement,q={},D={algorithm:""},G="data-pfsrc",O=G+"set",L=navigator.userAgent,R=/rident/.test(L)||/ecko/.test(L)&&L.match(/rv\:(\d+)/)&&35<RegExp.$1,Y="currentSrc",X=/\s+\+?\d+(e\d+)?w/,H=/(\([^)]+\))?\s*(.+)/,F=e.picturefillCFG,Q="font-size:100%!important;",U=!0,N={},B={},V=e.devicePixelRatio,K={px:1,in:96},J=s.createElement("a"),Z=!1,ee=/^[ \t\n\r\u000c]+/,te=/^[, \t\n\r\u000c]+/,ae=/^[^ \t\n\r\u000c]+/,ne=/[,]+$/,ie=/^\d+$/,se=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,re=function(e,t,a,n){e.addEventListener?e.addEventListener(t,a,n||!1):e.attachEvent&&e.attachEvent("on"+t,a)},oe=function(t){var a={};return function(e){return e in a||(a[e]=t(e)),a[e]}},le=(n=/^([\d\.]+)(em|vw|px)$/,r=oe(function(e){return"return "+function(){for(var e=arguments,t=0,a=e[0];++t in e;)a=a.replace(e[t],e[++t]);return a}((e||"").toLowerCase(),/\band\b/g,"&&",/,/g,"||",/min-([a-z-\s]+):/g,"e.$1>=",/max-([a-z-\s]+):/g,"e.$1<=",/calc([^)]+)/g,"($1)",/(\d+[\.]*[\d]*)([a-z]+)/g,"($1 * e.$2)",/^(?!(e.[a-z]|[0-9\.&=|><\+\-\*\(\)\/])).*/gi,"")+";"}),function(e,t){var a;if(!(e in N))if(N[e]=!1,t&&(a=e.match(n)))N[e]=a[1]*K[a[2]];else try{N[e]=new Function("e",r(e))(K)}catch(e){}return N[e]}),ce=function(e,t){return e.w?(e.cWidth=j.calcListLength(t||"100vw"),e.res=e.w/e.cWidth):e.res=e.d,e},de=function(e){if(M){var t,a,n,i=e||{};if(i.elements&&1===i.elements.nodeType&&("IMG"===i.elements.nodeName.toUpperCase()?i.elements=[i.elements]:(i.context=i.elements,i.elements=null)),n=(t=i.elements||j.qsa(i.context||s,i.reevaluate||i.reselect?j.sel:j.selShort)).length){for(j.setupRun(i),Z=!0,a=0;a<n;a++)j.fillImg(t[a],i);j.teardownRun(i)}}};e.console&&console.warn,Y in I||(Y="src"),q["image/jpeg"]=!0,q["image/gif"]=!0,q["image/png"]=!0,q["image/svg+xml"]=s.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Image","1.1"),j.ns=("pf"+(new Date).getTime()).substr(0,9),j.supSrcset="srcset"in I,j.supSizes="sizes"in I,j.supPicture=!!e.HTMLPictureElement,j.supSrcset&&j.supPicture&&!j.supSizes&&(C=s.createElement("img"),I.srcset="data:,a",C.src="data:,a",j.supSrcset=I.complete===C.complete,j.supPicture=j.supSrcset&&j.supPicture),j.supSrcset&&!j.supSizes?(b="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",y=s.createElement("img"),$=function(){2===y.width&&(j.supSizes=!0),u=j.supSrcset&&!j.supSizes,M=!0,setTimeout(de)},y.onload=$,y.onerror=$,y.setAttribute("sizes","9px"),y.srcset=b+" 1w,data:image/gif;base64,R0lGODlhAgABAPAAAP///wAAACH5BAAAAAAALAAAAAACAAEAAAICBAoAOw== 9w",y.src=b):M=!0,j.selShort="picture>img,img[srcset]",j.sel=j.selShort,j.cfg=D,j.DPR=V||1,j.u=K,j.types=q,j.setSize=_,j.makeUrl=oe(function(e){return J.href=e,J.href}),j.qsa=function(e,t){return"querySelector"in e?e.querySelectorAll(t):[]},j.matchesMedia=function(){return e.matchMedia&&(matchMedia("(min-width: 0.1em)")||{}).matches?j.matchesMedia=function(e){return!e||matchMedia(e).matches}:j.matchesMedia=j.mMQ,j.matchesMedia.apply(this,arguments)},j.mMQ=function(e){return!e||le(e)},j.calcLength=function(e){var t=le(e,!0)||!1;return t<0&&(t=!1),t},j.supportsType=function(e){return!e||q[e]},j.parseSize=oe(function(e){var t=(e||"").match(H);return{media:t&&t[1],length:t&&t[2]}}),j.parseSet=function(e){return e.cands||(e.cands=function(n,u){function e(e){var t,a=e.exec(n.substring(l));return a?(t=a[0],l+=t.length,t):void 0}function t(){var e,t,a,n,i,s,r,o,l,c=!1,d={};for(n=0;n<f.length;n++)s=(i=f[n])[i.length-1],r=i.substring(0,i.length-1),o=parseInt(r,10),l=parseFloat(r),ie.test(r)&&"w"===s?((e||t)&&(c=!0),0===o?c=!0:e=o):se.test(r)&&"x"===s?((e||t||a)&&(c=!0),l<0?c=!0:t=l):ie.test(r)&&"h"===s?((a||t)&&(c=!0),0===o?c=!0:a=o):c=!0;c||(d.url=p,e&&(d.w=e),t&&(d.d=t),a&&(d.h=a),a||t||e||(d.d=1),1===d.d&&(u.has1x=!0),d.set=u,h.push(d))}function a(){for(e(ee),i="",s="in descriptor";;){if(r=n.charAt(l),"in descriptor"===s)if(d(r))i&&(f.push(i),i="",s="after descriptor");else{if(","===r)return l+=1,i&&f.push(i),void t();if("("===r)i+=r,s="in parens";else{if(""===r)return i&&f.push(i),void t();i+=r}}else if("in parens"===s)if(")"===r)i+=r,s="in descriptor";else{if(""===r)return f.push(i),void t();i+=r}else if("after descriptor"===s)if(d(r));else{if(""===r)return void t();s="in descriptor",l-=1}l+=1}}for(var p,f,i,s,r,o=n.length,l=0,h=[];;){if(e(te),o<=l)return h;p=e(ae),f=[],","===p.slice(-1)?(p=p.replace(ne,""),t()):a()}}(e.srcset,e)),e.cands},j.getEmValue=function(){var e;if(!i&&(e=s.body)){var t=s.createElement("div"),a=z.style.cssText,n=e.style.cssText;t.style.cssText="position:absolute;left:0;visibility:hidden;display:block;padding:0;border:none;font-size:1em;width:1em;overflow:hidden;clip:rect(0px, 0px, 0px, 0px)",z.style.cssText=Q,e.style.cssText=Q,e.appendChild(t),i=t.offsetWidth,e.removeChild(t),i=parseFloat(i,10),z.style.cssText=a,e.style.cssText=n}return i||16},j.calcListLength=function(e){if(!(e in B)||D.uT){var t=j.calcLength(function(e){var t,a,n,i,s,r,o,l=/^(?:[+-]?[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?(?:ch|cm|em|ex|in|mm|pc|pt|px|rem|vh|vmin|vmax|vw)$/i,c=/^calc\((?:[0-9a-z \.\+\-\*\/\(\)]+)\)$/i;for(n=(a=function(e){function t(){i&&(s.push(i),i="")}function a(){s[0]&&(r.push(s),s=[])}for(var n,i="",s=[],r=[],o=0,l=0,c=!1;;){if(""===(n=e.charAt(l)))return t(),a(),r;if(c){if("*"===n&&"/"===e[l+1]){c=!1,l+=2,t();continue}l+=1}else{if(d(n)){if(e.charAt(l-1)&&d(e.charAt(l-1))||!i){l+=1;continue}if(0===o){t(),l+=1;continue}n=" "}else if("("===n)o+=1;else if(")"===n)o-=1;else{if(","===n){t(),a(),l+=1;continue}if("/"===n&&"*"===e.charAt(l+1)){c=!0,l+=2;continue}}i+=n,l+=1}}}(e)).length,t=0;t<n;t++)if(s=(i=a[t])[i.length-1],o=s,l.test(o)&&0<=parseFloat(o)||c.test(o)||"0"===o||"-0"===o||"+0"===o){if(r=s,i.pop(),0===i.length)return r;if(i=i.join(" "),j.matchesMedia(i))return r}return"100vw"}(e));B[e]=t||K.width}return B[e]},j.setRes=function(e){var t;if(e)for(var a=0,n=(t=j.parseSet(e)).length;a<n;a++)ce(t[a],e.sizes);return t},j.setRes.res=ce,j.applySetCandidate=function(e,t){if(e.length){var a,n,i,s,r,o,l,c,d,u=t[j.ns],p=j.DPR;if(o=u.curSrc||t[Y],(l=u.curCan||(b=t,y=o,!($=e[0].set)&&y&&($=($=b[j.ns].sets)&&$[$.length-1]),(C=A(y,$))&&(y=j.makeUrl(y),b[j.ns].curSrc=y,(b[j.ns].curCan=C).res||ce(C,C.set.sizes)),C))&&l.set===e[0].set&&((d=R&&!t.complete&&l.res-.1>p)||(l.cached=!0,l.res>=p&&(r=l))),!r)for(e.sort(x),r=e[(s=e.length)-1],n=0;n<s;n++)if((a=e[n]).res>=p){r=e[i=n-1]&&(d||o!==j.makeUrl(a.url))&&(f=e[i].res,h=a.res,m=p,g=e[i].cached,w=v=void 0,m<("saveData"===D.algorithm?2.7<f?m+1:(w=(h-m)*(v=Math.pow(f-.6,1.5)),g&&(w+=.1*v),f+w):1<m?Math.sqrt(f*h):f))?e[i]:a;break}r&&(c=j.makeUrl(r.url),u.curSrc=c,u.curCan=r,c!==o&&j.setSrc(t,r),j.setSize(t))}var f,h,m,g,v,w,b,y,$,C},j.setSrc=function(e,t){var a;e.src=t.url,"image/svg+xml"===t.set.type&&(a=e.style.width,e.style.width=e.offsetWidth+1+"px",e.offsetWidth+1&&(e.style.width=a))},j.getSet=function(e){var t,a,n,i=!1,s=e[j.ns].sets;for(t=0;t<s.length&&!i;t++)if((a=s[t]).srcset&&j.matchesMedia(a.media)&&(n=j.supportsType(a.type))){"pending"===n&&(a=n),i=a;break}return i},j.parseSets=function(e,t,a){var n,i,s,r,o=t&&"PICTURE"===t.nodeName.toUpperCase(),l=e[j.ns];(l.src===c||a.src)&&(l.src=S.call(e,"src"),l.src?E.call(e,G,l.src):W.call(e,G)),(l.srcset===c||a.srcset||!j.supSrcset||e.srcset)&&(n=S.call(e,"srcset"),l.srcset=n,r=!0),l.sets=[],o&&(l.pic=!0,function(e,t){var a,n,i,s,r=e.getElementsByTagName("source");for(a=0,n=r.length;a<n;a++)(i=r[a])[j.ns]=!0,(s=i.getAttribute("srcset"))&&t.push({srcset:s,media:i.getAttribute("media"),type:i.getAttribute("type"),sizes:i.getAttribute("sizes")})}(t,l.sets)),l.srcset?(i={srcset:l.srcset,sizes:S.call(e,"sizes")},l.sets.push(i),(s=(u||l.src)&&X.test(l.srcset||""))||!l.src||A(l.src,i)||i.has1x||(i.srcset+=", "+l.src,i.cands.push({url:l.src,d:1,set:i}))):l.src&&l.sets.push({srcset:l.src,sizes:null}),l.curCan=null,l.curSrc=c,l.supported=!(o||i&&!j.supSrcset||s&&!j.supSizes),r&&j.supSrcset&&!l.supported&&(n?(E.call(e,O,n),e.srcset=""):W.call(e,O)),l.supported&&!l.srcset&&(!l.src&&e.src||e.src!==j.makeUrl(l.src))&&(null===l.src?e.removeAttribute("src"):e.src=l.src),l.parsed=!0},j.fillImg=function(e,t){var a,n,i,s,r,o=t.reselect||t.reevaluate;e[j.ns]||(e[j.ns]={}),a=e[j.ns],(o||a.evaled!==l)&&((!a.parsed||t.reevaluate)&&j.parseSets(e,e.parentNode,t),a.supported?a.evaled=l:(n=e,s=j.getSet(n),r=!1,"pending"!==s&&(r=l,s&&(i=j.setRes(s),j.applySetCandidate(i,n))),n[j.ns].evaled=r))},j.setupRun=function(){(!Z||U||V!==e.devicePixelRatio)&&(U=!1,V=e.devicePixelRatio,N={},B={},j.DPR=V||1,K.width=Math.max(e.innerWidth||0,z.clientWidth),K.height=Math.max(e.innerHeight||0,z.clientHeight),K.vw=K.width/100,K.vh=K.height/100,l=[K.height,K.width,V].join("-"),K.em=j.getEmValue(),K.rem=K.em)},j.supPicture?(de=_,j.fillImg=_):(m=e.attachEvent?/d$|^c/:/d$|^c|^i/,g=function(){var e=s.readyState||"";v=setTimeout(g,"loading"===e?200:999),s.body&&(j.fillImgs(),(t=t||m.test(e))&&clearTimeout(v))},v=setTimeout(g,s.body?9:99),w=z.clientHeight,re(e,"resize",(a=function(){U=Math.max(e.innerWidth||0,z.clientWidth)!==K.width||z.clientHeight!==w,w=z.clientHeight,U&&j.fillImgs()},o=99,h=function(){var e=new Date-f;e<o?p=setTimeout(h,o-e):(p=null,a())},function(){f=new Date,p||(p=setTimeout(h,o))})),re(s,"readystatechange",g)),j.picturefill=de,j.fillImgs=de,j.teardownRun=_,de._=j,e.picturefillCFG={pf:j,push:function(e){var t=e.shift();"function"==typeof j[t]?j[t].apply(j,e):(D[t]=e[0],Z&&j.fillImgs({reselect:!0}))}};for(;F&&F.length;)e.picturefillCFG.push(F.shift());e.picturefill=de,"object"==typeof module&&"object"==typeof module.exports?module.exports=de:"function"==typeof define&&define.amd&&define("picturefill",function(){return de}),j.supPicture||(q["image/webp"]=(k="image/webp",T="data:image/webp;base64,UklGRkoAAABXRUJQVlA4WAoAAAAQAAAAAAAAAAAAQUxQSAwAAAABBxAR/Q9ERP8DAABWUDggGAAAADABAJ0BKgEAAQADADQlpAADcAD++/1QAA==",(P=new e.Image).onerror=function(){q[k]=!1,de()},P.onload=function(){q[k]=1===P.width,de()},P.src=T,"pending"))}(window,document),document.createElement("picture"),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e(jQuery)}(function(m){"use strict";var t,a,n,e="undefined"!=typeof window?window:this,i=e.document,s=function(){this.Version="1.4.18",this.Plugins={},this.DontConflict=!1,this.Conflicts={fn:{}},this.ResizeHandlers=[],this.RAFHandlers=[],this.window=e,this.$window=m(e),this.document=i,this.$document=m(i),this.$body=null,this.windowWidth=0,this.windowHeight=0,this.fallbackWidth=1024,this.fallbackHeight=768,this.userAgent=window.navigator.userAgent||window.navigator.vendor||window.opera,this.isFirefox=/Firefox/i.test(this.userAgent),this.isChrome=/Chrome/i.test(this.userAgent),this.isSafari=/Safari/i.test(this.userAgent)&&!this.isChrome,this.isMobile=/Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(this.userAgent),this.isIEMobile=/IEMobile/i.test(this.userAgent),this.isFirefoxMobile=this.isFirefox&&this.isMobile,this.transform=null,this.transition=null,this.support={file:!!(window.File&&window.FileList&&window.FileReader),history:!!(window.history&&window.history.pushState&&window.history.replaceState),matchMedia:!(!window.matchMedia&&!window.msMatchMedia),pointer:!!window.PointerEvent,raf:!(!window.requestAnimationFrame||!window.cancelAnimationFrame),touch:!!("ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch),transition:!1,transform:!1}},r={killEvent:function(e,t){try{e.preventDefault(),e.stopPropagation(),t&&e.stopImmediatePropagation()}catch(e){}},killGesture:function(e){try{e.preventDefault()}catch(e){}},lockViewport:function(e){f[e]=!0,m.isEmptyObject(f)||h||(t.length?t.attr("content",n):t=m("head").append('<meta name="viewport" content="'+n+'">'),l.$body.on(d.gestureChange,r.killGesture).on(d.gestureStart,r.killGesture).on(d.gestureEnd,r.killGesture),h=!0)},unlockViewport:function(e){"undefined"!==m.type(f[e])&&delete f[e],m.isEmptyObject(f)&&h&&(t.length&&(a?t.attr("content",a):t.remove()),l.$body.off(d.gestureChange).off(d.gestureStart).off(d.gestureEnd),h=!1)},startTimer:function(e,t,a,n){return r.clearTimer(e),n?setInterval(a,t):setTimeout(a,t)},clearTimer:function(e,t){e&&(t?clearInterval(e):clearTimeout(e),e=null)},sortAsc:function(e,t){return parseInt(e,10)-parseInt(t,10)},sortDesc:function(e,t){return parseInt(t,10)-parseInt(e,10)},decodeEntities:function(e){var t=l.document.createElement("textarea");return t.innerHTML=e,t.value},parseQueryString:function(e){for(var t={},a=e.slice(e.indexOf("?")+1).split("&"),n=0;n<a.length;n++){var i=a[n].split("=");t[i[0]]=i[1]}return t}},l=new s,o=m.Deferred(),c={base:"{ns}",element:"{ns}-element"},d={namespace:".{ns}",beforeUnload:"beforeunload.{ns}",blur:"blur.{ns}",change:"change.{ns}",click:"click.{ns}",dblClick:"dblclick.{ns}",drag:"drag.{ns}",dragEnd:"dragend.{ns}",dragEnter:"dragenter.{ns}",dragLeave:"dragleave.{ns}",dragOver:"dragover.{ns}",dragStart:"dragstart.{ns}",drop:"drop.{ns}",error:"error.{ns}",focus:"focus.{ns}",focusIn:"focusin.{ns}",focusOut:"focusout.{ns}",gestureChange:"gesturechange.{ns}",gestureStart:"gesturestart.{ns}",gestureEnd:"gestureend.{ns}",input:"input.{ns}",keyDown:"keydown.{ns}",keyPress:"keypress.{ns}",keyUp:"keyup.{ns}",load:"load.{ns}",mouseDown:"mousedown.{ns}",mouseEnter:"mouseenter.{ns}",mouseLeave:"mouseleave.{ns}",mouseMove:"mousemove.{ns}",mouseOut:"mouseout.{ns}",mouseOver:"mouseover.{ns}",mouseUp:"mouseup.{ns}",panStart:"panstart.{ns}",pan:"pan.{ns}",panEnd:"panend.{ns}",resize:"resize.{ns}",scaleStart:"scalestart.{ns}",scaleEnd:"scaleend.{ns}",scale:"scale.{ns}",scroll:"scroll.{ns}",select:"select.{ns}",swipe:"swipe.{ns}",touchCancel:"touchcancel.{ns}",touchEnd:"touchend.{ns}",touchLeave:"touchleave.{ns}",touchMove:"touchmove.{ns}",touchStart:"touchstart.{ns}"},u=null,p=20,f=[],h=!1;function g(e,t,a,n){var i,s={raw:{}};for(i in n=n||{})n.hasOwnProperty(i)&&("classes"===e?(s.raw[n[i]]=t+"-"+n[i],s[n[i]]="."+t+"-"+n[i]):(s.raw[i]=n[i],s[i]=n[i]+"."+t));for(i in a)a.hasOwnProperty(i)&&("classes"===e?(s.raw[i]=a[i].replace(/{ns}/g,t),s[i]=a[i].replace(/{ns}/g,"."+t)):(s.raw[i]=a[i].replace(/.{ns}/g,""),s[i]=a[i].replace(/{ns}/g,t)));return s}function v(){l.windowWidth=l.$window.width(),l.windowHeight=l.$window.height(),u=r.startTimer(u,p,w)}function w(){for(var e in l.ResizeHandlers)l.ResizeHandlers.hasOwnProperty(e)&&l.ResizeHandlers[e].callback.call(window,l.windowWidth,l.windowHeight)}function b(e,t){return parseInt(e.priority)-parseInt(t.priority)}return s.prototype.NoConflict=function(){for(var e in l.DontConflict=!0,l.Plugins)l.Plugins.hasOwnProperty(e)&&(m[e]=l.Conflicts[e],m.fn[e]=l.Conflicts.fn[e])},s.prototype.Ready=function(e){"complete"===l.document.readyState||"loading"!==l.document.readyState&&!l.document.documentElement.doScroll?e():l.document.addEventListener("DOMContentLoaded",e)},s.prototype.Plugin=function(e,t){return l.Plugins[e]=function(u,p){var e="fs-"+u,f="fs"+u.replace(/(^|\s)([a-z])/g,function(e,t,a){return t+a.toUpperCase()});function h(e){return e.data(f)}return p.initialized=!1,p.priority=p.priority||10,p.classes=g("classes",e,c,p.classes),p.events=g("events",u,d,p.events),p.functions=m.extend({getData:h,iterate:function(e){for(var t=Array.prototype.slice.call(arguments,1),a=0,n=this.length;a<n;a++){var i=this.eq(a),s=h(i)||{};"undefined"!==m.type(s.$el)&&e.apply(i,[s].concat(t))}return this}},r,p.functions),p.methods=m.extend(!0,{_construct:m.noop,_postConstruct:m.noop,_destruct:m.noop,_resize:!1,destroy:function(e){p.functions.iterate.apply(this,[p.methods._destruct].concat(Array.prototype.slice.call(arguments,1))),this.removeClass(p.classes.raw.element).removeData(f)}},p.methods),p.utilities=m.extend(!0,{_initialize:!1,_delegate:!1,defaults:function(e){p.defaults=m.extend(!0,p.defaults,e||{})}},p.utilities),p.widget&&(l.Conflicts.fn[u]=m.fn[u],m.fn[f]=function(e){if(this instanceof m){var t=p.methods[e];if("object"===m.type(e)||!e)return function(e){var t,a,n,i="object"===m.type(e),s=Array.prototype.slice.call(arguments,i?1:0),r=m();for(e=m.extend(!0,{},p.defaults||{},i?e:{}),a=0,n=this.length;a<n;a++)if(!h(t=this.eq(a))){p.guid++;var o="__"+p.guid,l=p.classes.raw.base+o,c=t.data(u+"-options"),d=m.extend(!0,{$el:t,guid:o,numGuid:p.guid,rawGuid:l,dotGuid:"."+l},e,"object"===m.type(c)?c:{});t.addClass(p.classes.raw.element).data(f,d),p.methods._construct.apply(t,[d].concat(s)),r=r.add(t)}for(a=0,n=r.length;a<n;a++)t=r.eq(a),p.methods._postConstruct.apply(t,[h(t)]);return this}.apply(this,arguments);if(t&&0!==e.indexOf("_")){var a=[t].concat(Array.prototype.slice.call(arguments,1));return p.functions.iterate.apply(this,a)}return this}},l.DontConflict||(m.fn[u]=m.fn[f])),l.Conflicts[u]=m[u],m[f]=p.utilities._delegate||function(e){var t=p.utilities[e]||p.utilities._initialize||!1;if(t){var a=Array.prototype.slice.call(arguments,"object"===m.type(e)?0:1);return t.apply(window,a)}},l.DontConflict||(m[u]=m[f]),p.namespace=u,p.namespaceClean=f,p.guid=0,p.methods._resize&&(l.ResizeHandlers.push({namespace:u,priority:p.priority,callback:p.methods._resize}),l.ResizeHandlers.sort(b)),p.methods._raf&&(l.RAFHandlers.push({namespace:u,priority:p.priority,callback:p.methods._raf}),l.RAFHandlers.sort(b)),p}(e,t),l.Plugins[e]},l.$window.on("resize.fs",v),v(),function e(){if(l.support.raf)for(var t in l.window.requestAnimationFrame(e),l.RAFHandlers)l.RAFHandlers.hasOwnProperty(t)&&l.RAFHandlers[t].callback.call(window)}(),l.Ready(function(){l.$body=m("body"),m("html").addClass(l.support.touch?"touchevents":"no-touchevents"),t=m('meta[name="viewport"]'),a=!!t.length&&t.attr("content"),n="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0",o.resolve()}),d.clickTouchStart=d.click+" "+d.touchStart,function(){var e,t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"otransitionend",transition:"transitionend"},a=["transition","-webkit-transition"],n={transform:"transform",MozTransform:"-moz-transform",OTransform:"-o-transform",msTransform:"-ms-transform",webkitTransform:"-webkit-transform"},i="transitionend",s="",r="",o=document.createElement("div");for(e in t)if(t.hasOwnProperty(e)&&e in o.style){i=t[e],l.support.transition=!0;break}for(e in d.transitionEnd=i+".{ns}",a)if(a.hasOwnProperty(e)&&a[e]in o.style){s=a[e];break}for(e in l.transition=s,n)if(n.hasOwnProperty(e)&&n[e]in o.style){l.support.transform=!0,r=n[e];break}l.transform=r}(),window.Formstone=l}),function(e){"function"==typeof define&&define.amd?define(["jquery","./core","./transition"],e):e(jQuery,Formstone)}(function(c,n){"use strict";function e(){(A=x.scrollTop()+n.windowHeight)<0&&(A=0),$.iterate.call(T,o)}function t(){k=c(w.base),T=c(w.lazy),$.iterate.call(T,r)}function a(e){if(e.visible){var t=e.source;e.source=null,i(e,t,!0)}}function i(e,t,a){if(t!==e.source&&e.visible){if(e.source=t,e.responsive=!1,e.isYouTube=!1,"object"===c.type(t)&&"string"===c.type(t.video)){var n=t.video.match(/(?:youtube\.com\/(?:[^\/]+\/.+\/|(?:v|e(?:mbed)?)\/|.*[?&]v=)|youtu\.be\/)([^"&?\/ ]{11})/i);n&&1<=n.length&&(e.isYouTube=!0,e.videoId=n[1])}var i=!e.isYouTube&&"object"===c.type(t)&&(t.hasOwnProperty("mp4")||t.hasOwnProperty("ogg")||t.hasOwnProperty("webm"));if(e.video=e.isYouTube||i,e.playing=!1,e.isYouTube)e.playerReady=!1,e.posterLoaded=!1,p(e,t,a);else if("object"===c.type(t)&&t.hasOwnProperty("poster"))!function(t,e,a){t.source&&t.source.poster&&(u(t,t.source.poster,!0,!0),a=!1);var n='<div class="'+[b.media,b.video,!0!==a?b.animated:""].join(" ")+'" aria-hidden="true">';n+="<video playsinline",t.loop&&(n+=" loop");t.mute&&(n+=" muted");t.autoPlay&&(n+=" autoplay");n+=">",t.source.webm&&(n+='<source src="'+t.source.webm+'" type="video/webm" />');t.source.mp4&&(n+='<source src="'+t.source.mp4+'" type="video/mp4" />');t.source.ogg&&(n+='<source src="'+t.source.ogg+'" type="video/ogg" />');n+="</video>";var i=c(n+="</div>");i.find("video").one(y.loadedMetaData,function(e){i.fsTransition({property:"opacity"},function(){f(t)}).css({opacity:1}),m(t),t.$el.trigger(y.loaded),t.autoPlay&&h(t)}),t.$container.append(i)}(e,0,a);else{var s=t;if("object"===c.type(t)){var r,o=[],l=[];for(r in t)t.hasOwnProperty(r)&&l.push(r);for(r in l.sort($.sortAsc),l)l.hasOwnProperty(r)&&o.push({width:parseInt(l[r]),url:t[l[r]],mq:C.matchMedia("(min-width: "+parseInt(l[r])+"px)")});e.responsive=!0,e.sources=o,s=d(e)}u(e,s,!1,a)}}else e.$el.trigger(y.loaded)}function d(e){var t=e.source;if(e.responsive)for(var a in t=e.sources[0].url,e.sources)e.sources.hasOwnProperty(a)&&(n.support.matchMedia?e.sources[a].mq.matches&&(t=e.sources[a].url):e.sources[a].width<n.fallbackWidth&&(t=e.sources[a].url));return t}function u(e,t,a,n){var i=[b.media,b.image,!0!==n?b.animated:""].join(" "),s=c('<div class="'+i+'" aria-hidden="true"><img alt="'+e.alt+'"></div>'),r=s.find("img"),o=t;r.one(y.load,function(){P&&s.addClass(b.native).css({backgroundImage:"url('"+o+"')"}),s.fsTransition({property:"opacity"},function(){a||f(e)}).css({opacity:1}),m(e),a&&!n||e.$el.trigger(y.loaded)}).one(y.error,e,l).attr("src",o),e.responsive&&s.addClass(b.responsive),e.$container.append(s),(r[0].complete||4===r[0].readyState)&&r.trigger(y.load),e.currentSource=o}function p(t,e,a){if(!t.videoId){var n=e.match(/^.*(?:youtu.be\/|v\/|e\/|u\/\w+\/|embed\/|v=)([^#\&\?]*).*/);t.videoId=n[1]}if(t.posterLoaded||(t.source.poster||(t.source.poster="//img.youtube.com/vi/"+t.videoId+"/0.jpg"),t.posterLoaded=!0,u(t,t.source.poster,!0,a),a=!1),c("script[src*='youtube.com/iframe_api']").length||c("head").append('<script src="//www.youtube.com/iframe_api"><\/script>'),j){var i=t.guid+"_"+t.youTubeGuid++,s='<div class="'+[b.media,b.embed,!0!==a?b.animated:""].join(" ")+'" aria-hidden="true">';s+='<div id="'+i+'"></div>';var r=c(s+="</div>"),o=c.extend(!0,{},{controls:0,rel:0,showinfo:0,wmode:"transparent",enablejsapi:1,version:3,playerapiid:i,loop:t.loop?1:0,autoplay:1,mute:1,origin:C.location.protocol+"//"+C.location.host},t.youtubeOptions);o.autoplay=1,t.$container.append(r),t.player&&(t.oldPlayer=t.player,t.player=null),t.player=new C.YT.Player(i,{videoId:t.videoId,playerVars:o,events:{onReady:function(e){t.playerReady=!0,t.mute&&t.player.mute(),t.autoPlay?t.player.playVideo():t.player.pauseVideo()},onStateChange:function(e){t.playing||e.data!==C.YT.PlayerState.PLAYING?t.loop&&t.playing&&e.data===C.YT.PlayerState.ENDED&&t.player.playVideo():(t.playing=!0,r.fsTransition({property:"opacity"},function(){f(t)}).css({opacity:1}),m(t),t.$el.trigger(y.loaded)),t.$el.find(w.embed).addClass(b.ready)},onPlaybackQualityChange:function(e){},onPlaybackRateChange:function(e){},onError:function(e){l({data:t})},onApiChange:function(e){}}}),m(t)}else M.push({data:t,source:e})}function f(e){var t=e.$container.find(w.media);1<=t.length&&(t.not(":last").remove(),e.oldPlayer=null)}function l(e){e.data.$el.trigger(y.error)}function h(e){if(e.video&&!e.playing)if(e.isYouTube)e.playerReady?e.player.playVideo():e.autoPlay=!0;else{var t=e.$container.find("video");t.length&&t[0].play(),e.playing=!0}}function s(e){if(e.visible)if(e.responsive){var t=d(e);t!==e.currentSource?u(e,t,!1,!0):m(e)}else m(e)}function m(e){for(var t=e.$container.find(w.media),a=0,n=t.length;a<n;a++){var i=t.eq(a),s=e.isYouTube?"iframe":i.find("video").length?"video":"img",r=i.find(s);if(r.length&&("img"!==s||!P)){var o=e.$el.outerWidth(),l=e.$el.outerHeight(),c=g(e,r);e.width=c.width,e.height=c.height,e.left=0,e.top=0;var d=e.isYouTube?e.embedRatio:e.width/e.height;e.height=l,e.width=e.height*d,e.width<o&&(e.width=o,e.height=e.width/d),e.left=-(e.width-o)/2,e.top=-(e.height-l)/2,i.css({height:e.height,width:e.width,left:e.left,top:e.top})}}}function r(e){e.scrollTop=e.$el.offset().top}function o(e){!e.visible&&e.scrollTop<A+e.lazyEdge&&(e.visible=!0,a(e))}function g(e,t){if(e.isYouTube)return{height:500,width:500/e.embedRatio};if(t.is("img")){var a=t[0];if("undefined"!==c.type(a.naturalHeight))return{height:a.naturalHeight,width:a.naturalWidth};var n=new Image;return n.src=a.src,{height:n.height,width:n.width}}return{height:t[0].videoHeight,width:t[0].videoWidth}}var v=n.Plugin("background",{widget:!0,defaults:{alt:"",autoPlay:!0,customClass:"",embedRatio:1.777777,lazy:!1,lazyEdge:100,loop:!0,mute:!0,source:null,youtubeOptions:{}},classes:["container","media","animated","responsive","native","fixed","ready","lazy"],events:{loaded:"loaded",ready:"ready",loadedMetaData:"loadedmetadata"},methods:{_construct:function(e){e.youTubeGuid=0,e.$container=c('<div class="'+b.container+'"></div>').appendTo(this),e.thisClasses=[b.base,e.customClass],e.visible=!0,e.lazy&&(e.visible=!1,e.thisClasses.push(b.lazy)),this.addClass(e.thisClasses.join(" ")),t(),e.lazy?(r(e),o(e)):a(e)},_destruct:function(e){e.$container.remove(),this.removeClass(e.thisClasses.join(" ")).off(y.namespace),t()},_resize:function(){$.iterate.call(k,s),$.iterate.call(T,r),$.iterate.call(T,o)},play:h,pause:function(e){if(e.video&&e.playing){if(e.isYouTube)e.playerReady?e.player.pauseVideo():e.autoPlay=!1;else{var t=e.$container.find("video");t.length&&t[0].pause()}e.playing=!1}},mute:function(e){if(e.video)if(e.isYouTube&&e.playerReady)e.player.mute();else{var t=e.$container.find("video");t.length&&(t[0].muted=!0)}e.mute=!0},unmute:function(e){if(e.video){if(e.isYouTube&&e.playerReady)e.player.unMute();else{var t=e.$container.find("video");t.length&&(t[0].muted=!1)}e.playing=!0}e.mute=!1},resize:m,load:i,unload:function(e){var t=e.$container.find(w.media);1<=t.length&&t.fsTransition({property:"opacity"},function(){t.remove(),delete e.source}).css({opacity:0})}}}),w=v.classes,b=w.raw,y=v.events,$=v.functions,C=n.window,x=n.$window,A=0,k=[],T=[],P="backgroundSize"in n.document.documentElement.style,j=!1,M=[];n.Ready(function(){e(),x.on("scroll",e)}),C.onYouTubeIframeAPIReady=function(){for(var e in j=!0,M)M.hasOwnProperty(e)&&p(M[e].data,M[e].source);M=[]}}),function(e){"function"==typeof define&&define.amd?define(["jquery","./core","./mediaquery","./touch"],e):e(jQuery,Formstone)}(function(p,f){"use strict";function u(){z=p(I.base)}function h(e){e.enabled&&(W.clearTimer(e.autoTimer),e.enabled=!1,e.$subordinate.off(E.update),this.removeClass([S.enabled,S.animated].join(" ")).off(E.namespace),e.$canister.fsTouch("destroy").off(E.namespace).attr("style","").css(D,"none"),e.$items.css({width:"",height:""}).removeClass([S.visible,I.item_previous,I.item_next].join(" ")),e.$images.off(E.namespace),e.$controlItems.off(E.namespace),e.$pagination.html("").off(E.namespace),w(e),e.useMargin?e.$canister.css({marginLeft:""}):e.$canister.css(q,""),e.index=0)}function m(e){e.enabled||(e.enabled=!0,this.addClass(S.enabled),e.$controlItems.on(E.click,e,r),e.$pagination.on(E.click,I.page,e,o),e.$items.on(E.click,e,x),e.$subordinate.on(E.update,e,k),k({data:e},0),e.touchEvents&&e.$canister.fsTouch({axis:"x",pan:!0,swipe:!0}).on(E.panStart,e,l).on(E.pan,e,c).on(E.panEnd,e,d).on(E.swipe,e,$).on(E.focusIn,e,A).css(D,""),g(e),e.$images.on(E.load,e,s),e.autoAdvance&&(e.autoTimer=W.startTimer(e.autoTimer,e.autoTime,function(){!function(e){var t=e.index+1;t>=e.pageCount&&(t=0);v(e,t)}(e)},!0)),a.call(this,e))}function a(e){if(e.enabled){var t,a,n,i,s;if(e.count=e.$items.length,e.count<1)return w(e),void e.$canister.css({height:""});if(this.removeClass(S.animated),e.containerWidth=e.$container.outerWidth(!1),e.visible=function(e){var t=1;{if(e.single)return t;if("array"===p.type(e.show))for(var a in e.show)e.show.hasOwnProperty(a)&&(f.support.matchMedia?e.show[a].mq.matches&&(t=e.show[a].count):e.show[a].width<f.fallbackWidth&&(t=e.show[a].count));else t=e.show}return e.fill&&e.count<t?e.count:t}(e),e.perPage=e.paged?1:e.visible,e.itemMarginLeft=parseInt(e.$items.eq(0).css("marginLeft")),e.itemMarginRight=parseInt(e.$items.eq(0).css("marginRight")),e.itemMargin=e.itemMarginLeft+e.itemMarginRight,isNaN(e.itemMargin)&&(e.itemMargin=0),e.itemWidth=(e.containerWidth-e.itemMargin*(e.visible-1))/e.visible,e.itemHeight=0,e.pageWidth=e.paged?e.itemWidth:e.containerWidth,e.matchWidth)e.canisterWidth=e.single?e.containerWidth:(e.itemWidth+e.itemMargin)*e.count;else for(e.canisterWidth=0,e.$canister.css({width:1e6}),t=0;t<e.count;t++)e.canisterWidth+=e.$items.eq(t).outerWidth(!0);e.$canister.css({width:e.canisterWidth,height:""}),e.$items.css({width:e.matchWidth?e.itemWidth:"",height:""}).removeClass([S.visible,S.item_previous,S.item_next].join(" ")),e.pages=[],e.items=[];var r,o=0,l=0,c=0;for(i=n=0,a=p(),t=0;t<e.count;t++)r=e.$items.eq(t),o=e.matchWidth?e.itemWidth+e.itemMargin:r.outerWidth(!0),l=r.outerHeight(),c=r.position().left,e.items.push({$el:r,width:o,left:e.rtl?c-(e.canisterWidth-o):c}),(a.length&&n+o>e.containerWidth+e.itemMargin||e.paged&&0<t)&&(s=(e.rtl?a.eq(a.length-1):a.eq(0)).position().left,e.pages.push({left:e.rtl?s-(e.canisterWidth-n):s,height:i,width:n,$items:a}),a=p(),n=i=0),a=a.add(r),n+=o,o,i<l&&(i=l),i>e.itemHeight&&(e.itemHeight=i);e.rtl?a.eq(a.length-1):a.eq(0),s=e.canisterWidth-e.containerWidth-(e.rtl?e.itemMarginLeft:e.itemMarginRight),e.pages.push({left:e.rtl?-s:s,height:i,width:n,$items:a}),e.pageCount=e.pages.length,e.paged&&(e.pageCount-=e.count%e.visible),e.pageCount<=0&&(e.pageCount=1),e.maxMove=-e.pages[e.pageCount-1].left,e.autoHeight?e.$canister.css({height:e.pages[0].height}):e.matchHeight&&e.$items.css({height:e.itemHeight});var d="";for(t=0;t<e.pageCount;t++)d+='<button type="button" class="'+S.page+'">'+(t+1)+"</button>";e.$pagination.html(d),e.pageCount<=1?w(e):((u=e).$controls.addClass(S.visible),u.$controlItems.addClass(S.visible),u.$pagination.addClass(S.visible),y(u,u.$controlItems)),e.$paginationItems=e.$pagination.find(I.page),v(e,e.index,!1),setTimeout(function(){e.$el.addClass(S.animated)},5)}var u}function g(e){e.$items=e.$canister.children().not(":hidden").addClass(S.item),e.$images=e.$canister.find("img"),e.totalImages=e.$images.length}function t(e,t){e.$images.off(E.namespace),!1!==t&&e.$canister.html(t),e.index=0,g(e),a.call(this,e)}function e(e,t,a,n,i){e.enabled&&(n||W.clearTimer(e.autoTimer),void 0===i&&(i=!0),v(e,t-1,i,a,n))}function n(e){var t=e.index-1;e.infinite&&t<0&&(t=e.pageCount-1),v(e,t)}function i(e){var t=e.index+1;e.infinite&&t>=e.pageCount&&(t=0),v(e,t)}function s(e){var t=e.data;t.resizeTimer=W.startTimer(t.resizeTimer,1,function(){a.call(t.$el,t)})}function r(e){W.killEvent(e);var t=e.data,a=t.index+(p(e.currentTarget).hasClass(S.control_next)?1:-1);W.clearTimer(t.autoTimer),v(t,a)}function o(e){W.killEvent(e);var t=e.data,a=t.$paginationItems.index(p(e.currentTarget));W.clearTimer(t.autoTimer),v(t,a)}function v(e,t,a,n,i){if(t<0&&(t=e.infinite?e.pageCount-1:0),t>=e.pageCount&&(t=e.infinite?0:e.pageCount-1),!(e.count<1)){if(e.pages[t]&&(e.leftPosition=-e.pages[t].left),e.leftPosition=T(e,e.leftPosition),e.useMargin?e.$canister.css({marginLeft:e.leftPosition}):!1===a?(e.$canister.css(D,"none").css(q,"translateX("+e.leftPosition+"px)"),setTimeout(function(){e.$canister.css(D,"")},5)):e.$canister.css(q,"translateX("+e.leftPosition+"px)"),e.$items.removeClass([S.visible,S.item_previous,S.item_next].join(" ")),e.single)for(var s=0,r=e.pages.length;s<r;s++)s===t?e.pages[s].$items.addClass(S.visible).attr("aria-hidden","false"):e.pages[s].$items.not(e.pages[t].$items).addClass(s<t?S.item_previous:S.item_next).attr("aria-hidden","true");else for(s=0;s<e.count;s++){var o=e.rtl?-1:1,l=e.leftPosition*o+e.items[s].left*o,c=l+e.items[s].width,d=e.containerWidth+e.itemMargin+1;-1<=l&&c<=d?e.items[s].$el.addClass(S.visible).attr("aria-hidden","false"):l<0?e.items[s].$el.addClass(S.item_previous).attr("aria-hidden","false"):e.items[s].$el.addClass(S.item_next).attr("aria-hidden","false")}var u;e.autoHeight&&e.$canister.css({height:e.pages[t].height}),!1!==a&&!0!==n&&t!==e.index&&(e.infinite||-1<t&&t<e.pageCount)&&e.$el.trigger(E.update,[t]),e.index=t,e.linked&&!0!==i&&p(e.linked).not(e.$el)[_]("jumpPage",e.index+1,!0,!0),(u=e).$paginationItems.removeClass(S.active).eq(u.index).addClass(S.active),u.infinite?(u.$controlItems.addClass(S.visible),y(u,u.$controlItems)):u.pageCount<1?(u.$controlItems.removeClass(S.visible),b(u,u.$controlItems)):(u.$controlItems.addClass(S.visible),y(u,u.$controlItems),u.index<=0?(u.$controlPrevious.removeClass(S.visible),b(u,u.$controlPrevious)):(u.index>=u.pageCount-1||!u.single&&u.leftPosition===u.maxMove)&&(u.$controlNext.removeClass(S.visible),b(u,u.$controlNext)))}}function w(e){e.$controls.removeClass(S.visible),e.$controlItems.removeClass(S.visible),e.$pagination.removeClass(S.visible),b(e,e.$controlItems)}function b(e,t){e.customControls||t.prop("disabled",!0)}function y(e,t){e.customControls||t.prop("disabled",!1)}function l(e,t){var a=e.data;if(W.clearTimer(a.autoTimer),!a.single){if(a.useMargin)a.leftPosition=parseInt(a.$canister.css("marginLeft"));else{var n=a.$canister.css(q).split(",");a.leftPosition=parseInt(n[4])}if(a.$canister.css(D,"none").css("will-change","transform"),c(e),a.linked&&!0!==t){var i=e.deltaX/a.pageWidth;a.rtl&&(i*=-1),p(a.linked).not(a.$el)[_]("panStart",i)}}a.isTouching=!0}function c(e,t){var a=e.data;if(!a.single&&(a.touchLeft=T(a,a.leftPosition+e.deltaX),a.useMargin?a.$canister.css({marginLeft:a.touchLeft}):a.$canister.css(q,"translateX("+a.touchLeft+"px)"),a.linked&&!0!==t)){var n=e.deltaX/a.pageWidth;a.rtl&&(n*=-1),p(a.linked).not(a.$el)[_]("pan",n)}}function d(e,t){var a=e.data,n=Math.abs(e.deltaX),i=P(a,e),s=!1;if(a.didPan=!1,0==i)s=a.index;else{if(!a.single){var r,o,l=Math.abs(a.touchLeft),c=!1,d=a.rtl?"right":"left";if(e.directionX===d)for(r=0,o=a.pages.length;r<o;r++)c=a.pages[r],l>Math.abs(c.left)+20&&(s=r+1);else for(r=a.pages.length-1,o=0;o<=r;r--)c=a.pages[r],l<Math.abs(c.left)&&(s=r-1)}!1===s&&(s=n<50?a.index:a.index+i)}s!==a.index&&(a.didPan=!0),a.linked&&!0!==t&&p(a.linked).not(a.$el)[_]("panEnd",s),C(a,s)}function $(e,t){var a=e.data,n=P(a,e),i=a.index+n;a.linked&&!0!==t&&p(a.linked).not(a.$el)[_]("swipe",e.directionX),C(a,i)}function C(e,t){e.$canister.css(D,"").css("will-change",""),v(e,t),e.isTouching=!1}function x(e){var t=e.data,a=p(e.currentTarget);if(!t.didPan&&(a.trigger(E.itemClick),t.controller)){var n=t.$items.index(a);k(e,n),t.$subordinate[_]("jumpPage",n+1,!0)}}function A(e){var t=e.data;if(t.enabled&&!t.isTouching){W.clearTimer(t.autoTimer),t.$container.scrollLeft(0);var a,n=p(e.target);n.hasClass(S.item)?a=n:n.parents(I.item).length&&(a=n.parents(I.item).eq(0));for(var i=0;i<t.pageCount;i++)if(t.pages[i].$items.is(a)){v(t,i);break}}}function k(e,t){var a=e.data;if(a.controller){var n=a.$items.eq(t);a.$items.removeClass(S.active),n.addClass(S.active);for(var i=0;i<a.pageCount;i++)if(a.pages[i].$items.is(n)){v(a,i,!0,!0);break}}}function T(e,t){return isNaN(t)?t=0:e.rtl?(t>e.maxMove&&(t=e.maxMove),t<0&&(t=0)):(t<e.maxMove&&(t=e.maxMove),0<t&&(t=0)),t}function P(e,t){return Math.abs(t.deltaX)<Math.abs(t.deltaY)?0:e.rtl?"right"===t.directionX?1:-1:"left"===t.directionX?1:-1}var j=f.Plugin("carousel",{widget:!0,defaults:{autoAdvance:!1,autoHeight:!1,autoTime:8e3,contained:!0,controls:!0,customClass:"",fill:!1,infinite:!1,labels:{next:"Next",previous:"Previous",controls:"Carousel {guid} Controls",pagination:"Carousel {guid} Pagination"},matchHeight:!1,matchWidth:!0,maxWidth:1/0,minWidth:"0px",paged:!1,pagination:!0,rtl:!1,show:1,single:!1,theme:"fs-light",touch:!0,useMargin:!1},classes:["ltr","rtl","viewport","wrapper","container","canister","item","item_previous","item_next","controls","controls_custom","control","control_previous","control_next","pagination","page","animated","enabled","visible","active","auto_height","contained","single"],events:{itemClick:"itemClick",update:"update"},methods:{_construct:function(e){var t;e.didPan=!1,e.carouselClasses=[S.base,e.theme,e.customClass,e.rtl?S.rtl:S.ltr],e.maxWidth=e.maxWidth===1/0?"100000px":e.maxWidth,e.mq="(min-width:"+e.minWidth+") and (max-width:"+e.maxWidth+")",e.customControls="object"===p.type(e.controls)&&e.controls.previous&&e.controls.next,e.customPagination="string"===p.type(e.pagination),e.id=this.attr("id"),e.id?e.ariaId=e.id:(e.ariaId=e.rawGuid,this.attr("id",e.ariaId)),f.support.transform||(e.useMargin=!0);var a="",n="",i=[S.control,S.control_previous].join(" "),s=[S.control,S.control_next].join(" ");e.controls&&!e.customControls&&(e.labels.controls=e.labels.controls.replace("{guid}",e.numGuid),a+='<div class="'+S.controls+'" aria-label="'+e.labels.controls+'" aria-controls="'+e.ariaId+'">',a+='<button type="button" class="'+i+'" aria-label="'+e.labels.previous+'">'+e.labels.previous+"</button>",a+='<button type="button" class="'+s+'" aria-label="'+e.labels.next+'">'+e.labels.next+"</button>",a+="</div>"),e.pagination&&!e.customPagination&&(e.labels.pagination=e.labels.pagination.replace("{guid}",e.numGuid),n+='<div class="'+S.pagination+'" aria-label="'+e.labels.pagination+'" aria-controls="'+e.ariaId+'" role="navigation">',n+="</div>"),e.autoHeight&&e.carouselClasses.push(S.auto_height),e.contained&&e.carouselClasses.push(S.contained),e.single&&e.carouselClasses.push(S.single),this.addClass(e.carouselClasses.join(" ")).wrapInner('<div class="'+S.wrapper+'" aria-live="polite"><div class="'+S.container+'"><div class="'+S.canister+'"></div></div></div>').append(a).wrapInner('<div class="'+S.viewport+'"></div>').append(n),e.$viewport=this.find(I.viewport).eq(0),e.$container=this.find(I.container).eq(0),e.$canister=this.find(I.canister).eq(0),e.$pagination=this.find(I.pagination).eq(0),e.$controlPrevious=e.$controlNext=p(""),e.customControls?(e.$controls=p(e.controls.container).addClass([S.controls,S.controls_custom].join(" ")),e.$controlPrevious=p(e.controls.previous).addClass(i),e.$controlNext=p(e.controls.next).addClass(s)):(e.$controls=this.find(I.controls).eq(0),e.$controlPrevious=e.$controls.find(I.control_previous),e.$controlNext=e.$controls.find(I.control_next)),e.$controlItems=e.$controlPrevious.add(e.$controlNext),e.customPagination&&(e.$pagination=p(e.pagination).addClass([S.pagination])),e.$paginationItems=e.$pagination.find(I.page),e.index=0,e.enabled=!1,e.leftPosition=0,e.autoTimer=null,e.resizeTimer=null;var r=this.data(M+"-linked");e.linked=!!r&&"[data-"+M+'-linked="'+r+'"]',e.linked&&(e.paged=!0);var o=this.data(M+"-controller-for")||"";if(e.$subordinate=p(o),e.$subordinate.length&&(e.controller=!0),"object"===p.type(e.show)){var l=e.show,c=[],d=[];for(t in l)l.hasOwnProperty(t)&&d.push(t);for(t in d.sort(W.sortAsc),d)d.hasOwnProperty(t)&&c.push({width:parseInt(d[t]),count:l[d[t]],mq:window.matchMedia("(min-width: "+parseInt(d[t])+"px)")});e.show=c}g(e),p.fsMediaquery("bind",e.rawGuid,e.mq,{enter:function(){m.call(e.$el,e)},leave:function(){h.call(e.$el,e)}}),u(),e.carouselClasses.push(S.enabled),e.carouselClasses.push(S.animated)},_destruct:function(e){W.clearTimer(e.autoTimer),W.clearTimer(e.resizeTimer),h.call(this,e),p.fsMediaquery("unbind",e.rawGuid),e.id!==e.ariaId&&this.removeAttr("id"),e.$controlItems.removeClass([I.control,S.control_previous,I.control_next,I.visible].join(" ")).off(E.namespace),y(e,e.$controlItems),e.$images.off(E.namespace),e.$canister.fsTouch("destroy"),e.$items.removeClass([S.item,S.visible,I.item_previous,I.item_next].join(" ")).unwrap().unwrap().unwrap().unwrap(),e.controls&&!e.customControls&&e.$controls.remove(),e.customControls&&e.$controls.removeClass([S.controls,S.controls_custom,S.visible].join(" ")),e.pagination&&!e.customPagination&&e.$pagination.remove(),e.customPagination&&e.$pagination.html("").removeClass([S.pagination,S.visible].join(" ")),this.removeClass(e.carouselClasses.join(" ")),u()},_resize:function(e){W.iterate.call(z,a)},disable:h,enable:m,jump:e,previous:n,next:i,jumpPage:e,previousPage:n,nextPage:i,jumpItem:function(e,t,a,n,i){if(e.enabled){W.clearTimer(e.autoTimer);var s=e.$items.eq(t-1);void 0===i&&(i=!0);for(var r=0;r<e.pageCount;r++)if(e.pages[r].$items.is(s)){v(e,r,i,a,n);break}}},reset:function(e){e.enabled&&t.call(this,e,!1)},resize:a,update:t,panStart:function(e,t){if(W.clearTimer(e.autoTimer),!e.single){if(e.rtl&&(t*=-1),e.useMargin)e.leftPosition=parseInt(e.$canister.css("marginLeft"));else{var a=e.$canister.css(q).split(",");e.leftPosition=parseInt(a[4])}e.$canister.css(D,"none"),c({data:e,deltaX:e.pageWidth*t},!0)}e.isTouching=!0},pan:function(e,t){if(!e.single){e.rtl&&(t*=-1);var a=e.pageWidth*t;e.touchLeft=T(e,e.leftPosition+a),e.useMargin?e.$canister.css({marginLeft:e.touchLeft}):e.$canister.css(q,"translateX("+e.touchLeft+"px)")}},panEnd:function(e,t){C(e,t)},swipe:function(e,t){$({data:e,directionX:t},!0)}}}),M=j.namespace,_=j.namespaceClean,I=j.classes,S=I.raw,E=j.events,W=j.functions,z=[],q=f.transform,D=f.transition}),function(e){"function"==typeof define&&define.amd?define(["jquery","./core"],e):e(jQuery,Formstone)}(function(d,e){"use strict";function i(e,t,a){var n=!1,i=new Date;a.expires&&"number"===d.type(a.expires)&&(i.setTime(i.getTime()+a.expires),n=i.toGMTString());var s=a.domain?"; domain="+a.domain:"",r=n?"; expires="+n:"",o=n?"; max-age="+a.expires/1e3:"",l=a.path?"; path="+a.path:"",c=a.secure?"; secure":"";u.cookie=e+"="+t+r+o+s+l+c}e.Plugin("cookie",{utilities:{_delegate:function(e,t,a){if("object"===d.type(e))s=d.extend(s,e);else if(a=d.extend({},s,a||{}),"undefined"!==d.type(e)){if("undefined"===d.type(t))return function(e){for(var t=e+"=",a=u.cookie.split(";"),n=0;n<a.length;n++){for(var i=a[n];" "===i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(t))return i.substring(t.length,i.length)}return null}(e);null===t?(n=a,i(e,"",d.extend({},n,{expires:-6048e5}))):i(e,t,a)}var n;return null}}});var s={domain:null,expires:6048e5,path:null,secure:null},u=e.document}),function(e){"function"==typeof define&&define.amd?define(["jquery","./core"],e):e(jQuery,Formstone)}(function(o,e){"use strict";function t(){f=p.height(),u.iterate.call(g,l)}function a(){g=o(r.base),t()}function n(e){if(e.hasParent){var t=e.$parent.scrollTop();t!==e.parentScroll&&(i(e),e.parentScroll=t)}}function l(e){if(e.initialized){switch(e.parentHeight=e.hasParent?e.$parent.outerHeight(!1):f,e.windowIntersect){case"top":e.windowCheck=0-e.offset;break;case"middle":case"center":e.windowCheck=e.parentHeight/2-e.offset;break;case"bottom":e.windowCheck=e.parentHeight-e.offset}switch(e.elOffset=e.$target.offset(),e.elIntersect){case"top":e.elCheck=e.elOffset.top;break;case"middle":e.elCheck=e.elOffset.top+e.$target.outerHeight()/2;break;case"bottom":e.elCheck=e.elOffset.top+e.$target.outerHeight()}if(e.hasParent){var t=e.$parent.offset();e.elCheck-=t.top}i(e)}}function i(e){e.initialized&&(e.windowCheck+(e.hasParent?e.parentScroll:h)>=e.elCheck?(e.active||e.$el.trigger(d.activate),e.active=!0,e.$el.addClass(c.active)):e.reverse&&(e.active&&e.$el.trigger(d.deactivate),e.active=!1,e.$el.removeClass(c.active)))}var s=e.Plugin("checkpoint",{widget:!0,defaults:{intersect:"bottom-top",offset:0,reverse:!1},classes:["active"],events:{activate:"activate",deactivate:"deactivate"},methods:{_construct:function(e){e.initialized=!1;var t=o(e.$el.data("checkpoint-parent")),a=o(e.$el.data("checkpoint-container")),n=e.$el.data("checkpoint-intersect"),i=e.$el.data("checkpoint-offset");n&&(e.intersect=n),i&&(e.offset=i);var s=e.intersect.split("-");e.windowIntersect=s[0],e.elIntersect=s[1],e.visible=!1,e.$target=a.length?a:e.$el,e.hasParent=0<t.length,e.$parent=t;var r=e.$target.find("img");r.length&&r.on(d.load,e,l),e.$el.addClass(c.base),e.initialized=!0},_postConstruct:function(e){a(),t()},_destruct:function(e){e.$el.removeClass(c.base),a()},_resize:t,_raf:function(){(h=p.scrollTop())<0&&(h=0),h!==m&&(u.iterate.call(g,i),m=h),u.iterate.call(g,n)},resize:l}}),r=(s.namespace,s.classes),c=r.raw,d=s.events,u=s.functions,p=(e.window,e.$window),f=0,h=0,m=0,g=[]}),function(e){"function"==typeof define&&define.amd?define(["jquery","./core","./mediaquery"],e):e(jQuery,Formstone)}(function(t,e){"use strict";function a(){c=t(r.element)}function n(e){if(e.data&&(e=e.data),e.enabled)for(var t,a,n,i=0;i<e.target.length;i++){a=t=0,(n=e.$el.find(e.target[i])).css(e.property,"");for(var s=0;s<n.length;s++)t<(a=n.eq(s)[e.type]())&&(t=a);n.css(e.property,t)}}function i(e){for(var t=0;t<e.target.length;t++)e.$el.find(e.target[t]).css(e.property,"");e.$el.find("img").off(o.namespace)}var s=e.Plugin("equalize",{widget:!0,priority:5,defaults:{maxWidth:1/0,minWidth:"0px",property:"height",target:null},methods:{_construct:function(e){e.maxWidth=e.maxWidth===1/0?"100000px":e.maxWidth,e.mq="(min-width:"+e.minWidth+") and (max-width:"+e.maxWidth+")",e.type="height"===e.property?"outerHeight":"outerWidth",e.target?t.isArray(e.target)||(e.target=[e.target]):e.target=["> *"],a(),t.fsMediaquery("bind",e.rawGuid,e.mq,{enter:function(){(function(e){if(!e.enabled){e.enabled=!0;var t=e.$el.find("img");t.length&&t.on(o.load,e,n),n(e)}}).call(e.$el,e)},leave:function(){(function(e){e.enabled&&(e.enabled=!1,i(e))}).call(e.$el,e)}})},_destruct:function(e){i(e),t.fsMediaquery("unbind",e.rawGuid),a()},_resize:function(e){l.iterate.call(c,n)},resize:n}}),r=s.classes,o=(r.raw,s.events),l=s.functions,c=[]}),function(e){"function"==typeof define&&define.amd?define(["jquery","./core"],e):e(jQuery,Formstone)}(function(s,e){"use strict";function r(){!function(){for(var e in i={unit:o.unit},m)if(m.hasOwnProperty(e))for(var t in h[e])if(h[e].hasOwnProperty(t)){var a="Infinity"===t?1/0:parseInt(t,10),n=-1<e.indexOf("max");h[e][t].matches&&(n?(!i[e]||a<i[e])&&(i[e]=a):(!i[e]||a>i[e])&&(i[e]=a))}}(),a.trigger(d.mqChange,[i])}function l(e){var t=c(e.media),a=f[t],n=e.matches,i=n?d.enter:d.leave;if(a&&(a.active||!a.active&&n)){for(var s in a[i])a[i].hasOwnProperty(s)&&a[i][s].apply(a.mq);a.active=!0}}function c(e){return e.replace(/[^a-z0-9\s]/gi,"").replace(/[_\s]/g,"").replace(/^\s+|\s+$/g,"")}var t=e.Plugin("mediaquery",{utilities:{_initialize:function(e){for(var t in e=e||{},m)m.hasOwnProperty(t)&&(o[t]=e[t]?s.merge(e[t],o[t]):o[t]);for(var a in(o=s.extend(o,e)).minWidth.sort(p.sortDesc),o.maxWidth.sort(p.sortAsc),o.minHeight.sort(p.sortDesc),o.maxHeight.sort(p.sortAsc),m)if(m.hasOwnProperty(a))for(var n in h[a]={},o[a])if(o[a].hasOwnProperty(n)){var i=window.matchMedia("("+m[a]+": "+(o[a][n]===1/0?1e5:o[a][n])+o.unit+")");i.addListener(r),h[a][o[a][n]]=i}r()},state:function(){return i},bind:function(e,t,a){var n=u.matchMedia(t),i=c(n.media);for(var s in f[i]||(f[i]={mq:n,active:!0,enter:{},leave:{}},f[i].mq.addListener(l)),a)a.hasOwnProperty(s)&&f[i].hasOwnProperty(s)&&(f[i][s][e]=a[s]);var r=f[i],o=n.matches;o&&r[d.enter].hasOwnProperty(e)?(r[d.enter][e].apply(n),r.active=!0):!o&&r[d.leave].hasOwnProperty(e)&&(r[d.leave][e].apply(n),r.active=!1)},unbind:function(e,t){if(e)if(t){var a=c(t);f[a]&&(f[a].enter[e]&&delete f[a].enter[e],f[a].leave[e]&&delete f[a].leave[e])}else for(var n in f)f.hasOwnProperty(n)&&(f[n].enter[e]&&delete f[n].enter[e],f[n].leave[e]&&delete f[n].leave[e])}},events:{mqChange:"mqchange"}}),o={minWidth:[0],maxWidth:[1/0],minHeight:[0],maxHeight:[1/0],unit:"px"},d=s.extend(t.events,{enter:"enter",leave:"leave"}),a=e.$window,u=a[0],p=t.functions,i=null,f=[],h={},m={minWidth:"min-width",maxWidth:"max-width",minHeight:"min-height",maxHeight:"max-height"}}),function(e){"function"==typeof define&&define.amd?define(["jquery","./core","./mediaquery","./swap"],e):e(jQuery,Formstone)}(function(s,e){"use strict";function a(e){e.$handle.fsSwap("deactivate")}function r(e){e.data.$handle.addClass(m.focus)}function o(e){e.data.$handle.removeClass(m.focus)}function l(e){var t=e.data;13!==e.keyCode&&32!==e.keyCode||(v.killEvent(e),t.$handle.trigger(g.raw.click))}function c(e){if(!e.originalEvent){var t=e.data;t.open||(t.$el.trigger(g.open).attr("aria-hidden",!1),t.$content.addClass(t.contentClassesOpen).one(g.click,function(){a(t)}),t.$handle.attr("aria-expanded",!0),t.label&&t.$handle.html(t.labels.open),t.isToggle||w.addClass(m.lock),t.open=!0,t.$nav.focus())}}function d(e){if(!e.originalEvent){var t=e.data;t.open&&(t.$el.trigger(g.close).attr("aria-hidden",!0),t.$content.removeClass(t.contentClassesOpen).off(g.namespace),t.$handle.attr("aria-expanded",!1),t.label&&t.$handle.html(t.labels.closed),n(t),t.open=!1,t.$el.focus())}}function u(e){var t=e.data;t.$el.attr("aria-hidden",!0),t.$handle.attr("aria-controls",t.ariaId).attr("aria-expanded",!1),t.$content.addClass(m.enabled),setTimeout(function(){t.$animate.addClass(m.animated)},0),t.label&&t.$handle.html(t.labels.closed)}function p(e){var t=e.data;t.$el.removeAttr("aria-hidden"),t.$handle.removeAttr("aria-controls").removeAttr("aria-expanded"),t.$content.removeClass(m.enabled,m.animated),t.$animate.removeClass(m.animated),i(t),n(t)}function n(e){e.isToggle||w.removeClass(m.lock)}function i(e){if(e.label)if(1<e.$handle.length)for(var t=0,a=e.$handle.length;t<a;t++)e.$handle.eq(t).html(e.originalLabel[t]);else e.$handle.html(e.originalLabel)}var t=e.Plugin("navigation",{widget:!0,defaults:{customClass:"",gravity:"left",label:!0,labels:{closed:"Menu",open:"Close"},maxWidth:"980px",theme:"fs-light",type:"toggle"},classes:["handle","nav","content","animated","enabled","focus","open","toggle","push","reveal","overlay","left","right","lock"],events:{open:"open",close:"close"},methods:{_construct:function(e){e.handleGuid=m.handle+e.guid,e.isToggle="toggle"===e.type,e.open=!1,e.isToggle&&(e.gravity="");var t=m.base,a=[t,e.type].join("-"),n=e.gravity?[a,e.gravity].join("-"):"",i=[e.rawGuid,e.theme,e.customClass].join(" ");e.handle=this.data(f+"-handle"),e.content=this.data(f+"-content"),e.handleClasses=[m.handle,m.handle.replace(t,a),n?m.handle.replace(t,n):"",e.handleGuid,i].join(" "),e.thisClasses=[m.nav.replace(t,a),n?m.nav.replace(t,n):"",i],e.contentClasses=[m.content.replace(t,a),i].join(" "),e.contentClassesOpen=[n?m.content.replace(t,n):"",m.open].join(" "),e.$nav=this.addClass(e.thisClasses.join(" ")).attr("role","navigation"),e.$handle=s(e.handle).addClass(e.handleClasses),e.$content=s(e.content).addClass(e.contentClasses),e.$animate=s().add(e.$nav).add(e.$content),function(e){if(e.label)if(1<e.$handle.length){e.originalLabel=[];for(var t=0,a=e.$handle.length;t<a;t++)e.originalLabel[t]=e.$handle.eq(t).html()}else e.originalLabel=e.$handle.html()}(e),e.navTabIndex=e.$nav.attr("tabindex"),e.$nav.attr("tabindex",-1),e.id=this.attr("id"),e.id?e.ariaId=e.id:(e.ariaId=e.rawGuid,this.attr("id",e.ariaId)),e.$handle.attr("data-swap-target",e.dotGuid).attr("data-swap-linked",e.handleGuid).attr("data-swap-group",m.base).attr("tabindex",0).on("activate.swap"+e.dotGuid,e,c).on("deactivate.swap"+e.dotGuid,e,d).on("enable.swap"+e.dotGuid,e,u).on("disable.swap"+e.dotGuid,e,p).on(g.focus+e.dotGuid,e,r).on(g.blur+e.dotGuid,e,o).fsSwap({maxWidth:e.maxWidth,classes:{target:e.dotGuid,enabled:h.enabled,active:h.open,raw:{target:e.rawGuid,enabled:m.enabled,active:m.open}}}),e.$handle.is("a, button")||e.$handle.on(g.keyPress+e.dotGuid,e,l)},_destruct:function(e){e.$content.removeClass([e.contentClasses,e.contentClassesOpen].join(" ")).off(g.namespace),e.$handle.removeAttr("aria-controls").removeAttr("aria-expanded").removeAttr("data-swap-target").removeData("swap-target").removeAttr("data-swap-linked").removeAttr("data-swap-group").removeData("swap-linked").removeData("tabindex").removeClass(e.handleClasses).off(e.dotGuid).html(e.originalLabel).fsSwap("destroy"),e.$nav.attr("tabindex",e.navTabIndex),i(e),n(e),this.removeAttr("aria-hidden").removeClass(e.thisClasses.join(" ")).off(g.namespace),this.attr("id")===e.rawGuid&&this.removeAttr("id")},open:function(e){e.$handle.fsSwap("activate")},close:a,enable:function(e){e.$handle.fsSwap("enable")},disable:function(e){e.$handle.fsSwap("disable")}}}),f=t.namespace,h=t.classes,m=h.raw,g=t.events,v=t.functions,w=null;e.Ready(function(){w=s("html, body")})}),function(e){"function"==typeof define&&define.amd?define(["jquery","./core","./mediaquery"],e):e(jQuery,Formstone)}(function(n,e){"use strict";function a(e,t){if(e.enabled&&!e.active){e.group&&!t&&n(e.group).not(e.$el).not(e.linked)[o.namespaceClean]("deactivate",!0);var a=e.group?n(e.group).index(e.$el):null;e.$swaps.addClass(e.classes.raw.active),t||e.linked&&n(e.linked).not(e.$el)[o.namespaceClean]("activate",!0),this.trigger(d.activate,[a]),e.active=!0}}function i(e,t){e.enabled&&e.active&&(e.$swaps.removeClass(e.classes.raw.active),t||e.linked&&n(e.linked).not(e.$el)[o.namespaceClean]("deactivate",!0),this.trigger(d.deactivate),e.active=!1)}function t(e,t){e.enabled||(e.enabled=!0,e.$swaps.addClass(e.classes.raw.enabled),t||n(e.linked).not(e.$el)[o.namespaceClean]("enable"),this.trigger(d.enable),e.onEnable?(e.active=!1,a.call(this,e)):(e.active=!0,i.call(this,e)))}function s(e,t){e.enabled&&(e.enabled=!1,e.$swaps.removeClass([e.classes.raw.enabled,e.classes.raw.active].join(" ")),t||n(e.linked).not(e.$el)[o.namespaceClean]("disable"),this.trigger(d.disable))}function r(e){u.killEvent(e);var t=e.data;t.active&&t.collapse?i.call(t.$el,t):a.call(t.$el,t)}var o=e.Plugin("swap",{widget:!0,defaults:{collapse:!0,maxWidth:1/0},classes:["target","enabled","active"],events:{activate:"activate",deactivate:"deactivate",enable:"enable",disable:"disable"},methods:{_construct:function(e){e.enabled=!1,e.active=!1,e.classes=n.extend(!0,{},c,e.classes),e.target=this.data(l+"-target"),e.$target=n(e.target).addClass(e.classes.raw.target),e.mq="(max-width:"+(e.maxWidth===1/0?"100000px":e.maxWidth)+")";var t=this.data(l+"-linked");e.linked=!!t&&"[data-"+l+'-linked="'+t+'"]';var a=this.data(l+"-group");e.group=!!a&&"[data-"+l+'-group="'+a+'"]',e.$swaps=n().add(this).add(e.$target),this.on(d.click+e.dotGuid,e,r)},_postConstruct:function(e){e.collapse||!e.group||n(e.group).filter("[data-"+l+"-active]").length||n(e.group).eq(0).attr("data-"+l+"-active","true"),e.onEnable=this.data(l+"-active")||!1,n.fsMediaquery("bind",e.rawGuid,e.mq,{enter:function(){t.call(e.$el,e,!0)},leave:function(){s.call(e.$el,e,!0)}})},_destruct:function(e){n.fsMediaquery("unbind",e.rawGuid),e.$swaps.removeClass([e.classes.raw.enabled,e.classes.raw.active].join(" ")).off(d.namespace)},activate:a,deactivate:i,enable:t,disable:s}}),l=o.namespace,c=o.classes,d=o.events,u=o.functions}),function(e){"function"==typeof define&&define.amd?define(["jquery","./core","./mediaquery","./swap"],e):e(jQuery,Formstone)}(function(i,s){"use strict";function r(e){if(!e.originalEvent){var t=e.data;t.$el.attr("aria-selected",!0).trigger(n.update,[0]),t.$mobileTab.addClass(u.active),t.$content.attr("aria-hidden",!1).addClass(u.active)}}function o(e){if(!e.originalEvent){var t=e.data;t.$el.attr("aria-selected",!1),t.$mobileTab.removeClass(u.active),t.$content.attr("aria-hidden",!0).removeClass(u.active)}}function l(e){var t=e.data;t.$el.attr("aria-controls",t.ariaContentId),t.$mobileTab.addClass(u.enabled),t.$content.attr("aria-labelledby",t.ariaId).addClass(u.enabled)}function c(e){var t=e.data;t.$el.removeAttr("aria-controls").removeAttr("aria-selected"),t.$mobileTab.removeClass(u.enabled),t.$content.removeAttr("aria-labelledby").removeAttr("aria-hidden").removeClass(u.enabled)}function t(e){e.data.$el.fsSwap("activate")}var e=s.Plugin("tabs",{widget:!0,defaults:{customClass:"",maxWidth:1/0,mobileMaxWidth:"740px",theme:"fs-light"},classes:["tab","tab_mobile","mobile","content","enabled","active"],events:{update:"update"},methods:{_construct:function(e){e.mq="(max-width:"+(e.mobileMaxWidth===1/0?"100000px":e.mobileMaxWidth)+")",e.content=this.attr("href"),e.group=this.data(d+"-group"),e.elementClasses=[u.tab,e.rawGuid,e.theme,e.customClass],e.mobileTabClasses=[u.tab,u.tab_mobile,e.rawGuid,e.theme,e.customClass],e.contentClasses=[u.content,e.rawGuid,e.theme,e.customClass],e.$mobileTab=i('<button type="button" class="'+e.mobileTabClasses.join(" ")+'" aria-hidden="true">'+this.html()+"</button>"),e.$content=i(e.content).addClass(e.contentClasses.join(" ")),e.$content.before(e.$mobileTab).attr("role","tabpanel"),this.attr("role","tab"),e.id=this.attr("id"),e.id?e.ariaId=e.id:(e.ariaId=e.rawGuid,this.attr("id",e.ariaId)),e.contentId=e.$content.attr("id"),e.contentGuid=e.rawGuid+"_content",e.contentId?e.ariacontentId=e.contentId:(e.ariaContentId=e.contentGuid,e.$content.attr("id",e.ariaContentId));var t=s.window.location.hash,a=!1,n=!1;t.length&&(a=0<this.filter("[href*='"+t+"']").length,n=e.group&&0<i("[data-"+d+'-group="'+e.group+'"]').filter("[href*='"+t+"']").length),a?this.attr("data-swap-active","true"):n?this.removeAttr("data-swap-active").removeData("data-swap-active"):"true"===this.attr("data-tabs-active")&&this.attr("data-swap-active","true"),this.attr("data-swap-target",e.content).attr("data-swap-group",e.group).addClass(e.elementClasses.join(" ")).on("activate.swap"+e.dotGuid,e,r).on("deactivate.swap"+e.dotGuid,e,o).on("enable.swap"+e.dotGuid,e,l).on("disable.swap"+e.dotGuid,e,c)},_postConstruct:function(e){this.fsSwap({maxWidth:e.maxWidth,classes:{target:e.dotGuid,enabled:a.enabled,active:a.active,raw:{target:e.rawGuid,enabled:u.enabled,active:u.active}},collapse:!1}),e.$mobileTab.on("click"+e.dotGuid,e,t),i.fsMediaquery("bind",e.rawGuid,e.mq,{enter:function(){(function(e){e.$el.addClass(u.mobile),e.$mobileTab.addClass(u.mobile),e.$content.addClass(u.mobile)}).call(e.$el,e)},leave:function(){(function(e){e.$el.removeClass(u.mobile),e.$mobileTab.removeClass(u.mobile),e.$content.removeClass(u.mobile)}).call(e.$el,e)}})},_destruct:function(e){i.fsMediaquery("unbind",e.rawGuid),e.$mobileTab.off(n.namespace).remove(),e.elementClasses.push(u.mobile),e.contentClasses.push(u.mobile),e.$content.removeAttr("aria-labelledby").removeAttr("aria-hidden").removeAttr("role").removeClass(e.contentClasses.join(" ")),e.$content.attr("id")===e.contentGuid&&e.$content.removeAttr("id"),this.removeAttr("aria-controls").removeAttr("aria-selected").removeAttr("data-swap-active").removeData("data-swap-active").removeAttr("data-swap-target").removeData("data-swap-target").removeAttr("data-swap-group").removeData("data-swap-group").removeAttr("role").removeClass(e.elementClasses.join(" ")).off(n.namespace).fsSwap("destroy"),this.attr("id")===e.rawGuid&&this.removeAttr("id")},activate:function(e){this.fsSwap("activate")},enable:function(e){this.fsSwap("enable")},disable:function(e){this.fsSwap("disable")}}}),d=e.namespace,a=e.classes,u=a.raw,n=e.events;e.functions}),function(e){"function"==typeof define&&define.amd?define(["jquery","./core"],e):e(jQuery,Formstone)}(function(g,s){"use strict";function r(e){e.preventManipulation&&e.preventManipulation();var t=e.data,a=e.originalEvent;if(a.type.match(/(up|end|cancel)$/i))h(e);else{if(a.pointerId){var n=!1;for(var i in t.touches)t.touches[i].id===a.pointerId&&(n=!0,t.touches[i].pageX=a.pageX,t.touches[i].pageY=a.pageY);n||t.touches.push({id:a.pointerId,pageX:a.pageX,pageY:a.pageY})}else t.touches=a.touches;a.type.match(/(down|start)$/i)?v(e):a.type.match(/move$/i)&&o(e)}}function v(e){var t=e.data,a="undefined"!==g.type(t.touches)&&t.touches.length?t.touches[0]:null;a&&t.$el.off($.mouseDown),t.touching||(t.startE=e.originalEvent,t.startX=a?a.pageX:e.pageX,t.startY=a?a.pageY:e.pageY,t.startT=(new Date).getTime(),t.scaleD=1,t.passedAxis=!1),t.$links&&t.$links.off($.click);var n=b(t.scale?$.scaleStart:$.panStart,e,t.startX,t.startY,t.scaleD,0,0,"","");if(t.scale&&t.touches&&2<=t.touches.length){var i=t.touches;t.pinch={startX:m(i[0].pageX,i[1].pageX),startY:m(i[0].pageY,i[1].pageY),startD:y(i[1].pageX-i[0].pageX,i[1].pageY-i[0].pageY)},n.pageX=t.startX=t.pinch.startX,n.pageY=t.startY=t.pinch.startY}t.touching||(t.touching=!0,t.pan&&!a&&x.on($.mouseMove,t,o).on($.mouseUp,t,h),s.support.pointer?x.on([$.pointerMove,$.pointerUp,$.pointerCancel].join(" "),t,r):x.on([$.touchMove,$.touchEnd,$.touchCancel].join(" "),t,r),t.$el.trigger(n))}function o(e){var t=e.data,a="undefined"!==g.type(t.touches)&&t.touches.length?t.touches[0]:null,n=a?a.pageX:e.pageX,i=a?a.pageY:e.pageY,s=n-t.startX,r=i-t.startY,o=0<s?"right":"left",l=0<r?"down":"up",c=Math.abs(s)>t.threshold,d=Math.abs(r)>t.threshold;if(!t.passedAxis&&t.axis&&(t.axisX&&d||t.axisY&&c))h(e);else{!t.passedAxis&&(!t.axis||t.axis&&t.axisX&&c||t.axisY&&d)&&(t.passedAxis=!0),t.passedAxis&&(C.killEvent(e),C.killEvent(t.startE));var u=!0,p=b(t.scale?$.scale:$.pan,e,n,i,t.scaleD,s,r,o,l);if(t.scale)if(t.touches&&2<=t.touches.length){var f=t.touches;t.pinch.endX=m(f[0].pageX,f[1].pageX),t.pinch.endY=m(f[0].pageY,f[1].pageY),t.pinch.endD=y(f[1].pageX-f[0].pageX,f[1].pageY-f[0].pageY),t.scaleD=t.pinch.endD/t.pinch.startD,p.pageX=t.pinch.endX,p.pageY=t.pinch.endY,p.scale=t.scaleD,p.deltaX=t.pinch.endX-t.pinch.startX,p.deltaY=t.pinch.endY-t.pinch.startY}else t.pan||(u=!1);u&&t.$el.trigger(p)}}function h(e){var t=e.data,a="undefined"!==g.type(t.touches)&&t.touches.length?t.touches[0]:null,n=a?a.pageX:e.pageX,i=a?a.pageY:e.pageY,s=n-t.startX,r=i-t.startY,o=(new Date).getTime(),l=t.scale?$.scaleEnd:$.panEnd,c=0<s?"right":"left",d=0<r?"down":"up",u=1<Math.abs(s),p=1<Math.abs(r);if(t.swipe&&o-t.startT<t.time&&Math.abs(s)>t.threshold&&(l=$.swipe),t.axis&&(t.axisX&&p||t.axisY&&u)||u||p){t.$links=t.$el.find("a");for(var f=0,h=t.$links.length;f<h;f++)w(t.$links.eq(f),t)}var m=b(l,e,n,i,t.scaleD,s,r,c,d);x.off([$.touchMove,$.touchEnd,$.touchCancel,$.mouseMove,$.mouseUp,$.pointerMove,$.pointerUp,$.pointerCancel].join(" ")),t.$el.trigger(m),t.touches=[],t.scale,a&&(t.touchTimer=C.startTimer(t.touchTimer,5,function(){t.$el.on($.mouseDown,t,v)})),t.touching=!1}function w(e,t){e.on($.click,t,n);var a=g._data(e[0],"events").click;a.unshift(a.pop())}function n(e){C.killEvent(e,!0),e.data.$links.off($.click)}function b(e,t,a,n,i,s,r,o,l){return g.Event(e,{originalEvent:t,bubbles:!0,pageX:a,pageY:n,scale:i,deltaX:s,deltaY:r,directionX:o,directionY:l})}function m(e,t){return(e+t)/2}function y(e,t){return Math.sqrt(e*e+t*t)}function a(e,t){e.css({"-ms-touch-action":t,"touch-action":t})}var e=!s.window.PointerEvent,t=s.Plugin("touch",{widget:!0,defaults:{axis:!1,pan:!1,scale:!1,swipe:!1,threshold:10,time:50},methods:{_construct:function(e){if(e.touches=[],e.touching=!1,this.on($.dragStart,C.killEvent),e.swipe&&(e.pan=!0),e.scale&&(e.axis=!1),e.axisX="x"===e.axis,e.axisY="y"===e.axis,s.support.pointer){var t="";!e.axis||e.axisX&&e.axisY?t="none":(e.axisX&&(t+=" pan-y"),e.axisY&&(t+=" pan-x")),a(this,t),this.on($.pointerDown,e,r)}else this.on($.touchStart,e,r).on($.mouseDown,e,v)},_destruct:function(e){this.off($.namespace),a(this,"")}},events:{pointerDown:e?"MSPointerDown":"pointerdown",pointerUp:e?"MSPointerUp":"pointerup",pointerMove:e?"MSPointerMove":"pointermove",pointerCancel:e?"MSPointerCancel":"pointercancel"}}),$=t.events,C=t.functions,x=s.$window;$.pan="pan",$.panStart="panstart",$.panEnd="panend",$.scale="scale",$.scaleStart="scalestart",$.scaleEnd="scaleend",$.swipe="swipe"}),function(e){"function"==typeof define&&define.amd?define(["jquery","./core"],e):e(jQuery,Formstone)}(function(o,i){"use strict";function s(e){e.stopPropagation(),e.preventDefault();var t=e.data,a=e.originalEvent,n=t.target?t.$target:t.$el;t.property&&a.propertyName!==t.property||!o(a.target).is(n)||r(t)}function r(e){e.always||e.$el[t.namespaceClean]("destroy"),e.callback.apply(e.$el)}function l(e){var t,a,n,i={};if(e instanceof o&&(e=e[0]),u.getComputedStyle)for(var s=0,r=(t=u.getComputedStyle(e,null)).length;s<r;s++)a=t[s],n=t.getPropertyValue(a),i[a]=n;else if(e.currentStyle)for(a in t=e.currentStyle)i[a]=t[a];return i}var t=i.Plugin("transition",{widget:!0,defaults:{always:!1,property:null,target:null},methods:{_construct:function(a,e){if(e){a.$target=this.find(a.target),a.$check=a.target?a.$target:this,a.callback=e,a.styles=l(a.$check),a.timer=null;var t=a.$check.css(i.transition+"-duration"),n=parseFloat(t);i.support.transition&&t&&n?this.on(c.transitionEnd,a,s):a.timer=d.startTimer(a.timer,50,function(){var e,t;t=l((e=a).$check),function(e,t){if(o.type(e)!==o.type(t))return!1;for(var a in e){if(!e.hasOwnProperty(a))return!1;if(!e.hasOwnProperty(a)||!t.hasOwnProperty(a)||e[a]!==t[a])return!1}return!0}(e.styles,t)||r(e),e.styles=t},!0)}},_destruct:function(e){d.clearTimer(e.timer,!0),this.off(c.namespace)},resolve:r}}),c=t.events,d=t.functions,u=i.window}),function(s){function e(e){var t=s(e.delegateTarget)[0].hash;s(t).length&&(e.preventDefault(),e.stopPropagation(),function(e){var t=s(e);if(t.length){var a=t.offset();n=a.top,i=980<=s(window).width()?120:100,s("html, body").animate({scrollTop:n-i})}var n,i}(t),s(document).trigger("scroll_to"))}s(document).ready(function(){s('.js-scroll_to, a[href*="#"]').not(".js-no_scroll_to").on("click",e)})}(jQuery),function(r){Formstone.Ready(function(){r(window).on("scroll",function(){0<r(window).scrollTop()?r("body").addClass("scrolled"):r("body").removeClass("scrolled")}).trigger("scroll"),r(".nav_tray .menu > .menu-item-has-children > a").each(function(e){var t=r(this),a=t.parent("li").hasClass("current-menu-ancestor")||t.parent("li").hasClass("current_page_item"),n="",i="js-nav_toggle_"+e;n+='<span class="toggle_handle js-swap',a&&(i+=" fs-swap-active",n+=" fs-swap-active"),n+='" data-swap-target=".js-nav_toggle_'+e+'"',a&&(n+=' data-swap-active="true"'),n+="></span>",t.append(n).next("ul").addClass(i)}),r(".eo-fullcalendar").length?r(".js-filter").on("change",function(){r(".eo-fullcalendar").fullCalendar("refetchEvents")}):r(".js-filter").on("change",function(){r(this).parents(".js-filter_form").submit()}),r(".js-jump_filter").on("change",function(){var e=r(this).val();""==e&&(e=r(this).parents(".js-filter_form").attr("action")),window.location.href=e}),initPlugins("site"),r(".js-toggle_lines").each(function(){$parent=r(this),$items=$parent.find(".js-toggle_line"),$handle=$parent.find(".js-toggle_handle"),5<$items.length&&$handle.swap()}),r(".wp-block-acfab-region").find("table").wrap('<div class="table_wrapper"><div class="table_wrapper_inner"></div></div>'),r(".js-back_button").on("click",function(e){1<history.length&&(e.preventDefault(),history.back())}),"undefined"!=typeof wp&&wp.hooks.addFilter("eventorganiser.fullcalendar_request",function(e,t,a,n,i){var s=[];return r('.js-filter[name*="topic"]').each(function(){s.push(r(this).val())}),console.log(s),e.topic=s,e}),r(window).trigger("resize")})}(jQuery);