;var MonsterInsights=function(){var e=[],i='',r=!1;this.setLastClicked=function(t,n,i){t=typeof t!=='undefined'?t:[];n=typeof n!=='undefined'?n:[];i=typeof i!=='undefined'?i:!1;e.valuesArray=t;e.fieldsArray=n};this.getLastClicked=function(){return e};this.setInternalAsOutboundCategory=function(e){i=e};this.getInternalAsOutboundCategory=function(){return i};this.sendEvent=function(e,t,n){b(e,t,n,[])};function d(){if(window.monsterinsights_debug_mode){return!0}
else{return!1}};function v(e,t,n){var l={};for(var i in e){if(!e.hasOwnProperty(i)){continue};if(t&&t.indexOf(i)===-1){continue};if(n&&n.indexOf(i)>-1){continue};l[i]=e[i]};return l};function y(e,t,n){if(!monsterinsights_frontend.v4_id||e!=='event'){return};var i=n.event_category||'',a=['event_name','event_category','event_label','value',],l=v(n,null,a);l.action=t;l.send_to=monsterinsights_frontend.v4_id;let hitType=i.replace('-','_');if(i.indexOf('outbound-link')!==-1){hitType='click'}
else if(i==='download'){hitType='file_download'};__gtagTracker(e,hitType,l)};function l(t,i,l,a){t=typeof t!=='undefined'?t:'event';i=typeof i!=='undefined'?i:'';a=typeof a!=='undefined'?a:[];l=typeof l!=='undefined'?l:{};y(t,i,l);e.valuesArray=a;e.fieldsArray=l;e.fieldsArray.event_action=i;e.tracked=!0;n('Tracked: '+a.type);n(e)};function b(t,i,l,a){t=typeof t!=='undefined'?t:'event';i=typeof i!=='undefined'?i:'';a=typeof a!=='undefined'?a:[];l=typeof l!=='undefined'?l:{};__gtagTracker(t,i,l);e.valuesArray=a;e.fieldsArray=l;e.fieldsArray.event_action=i;e.tracked=!0;n('Tracked: '+a.type);n(e)};function t(t){t=typeof t!=='undefined'?t:[];e.valuesArray=t;e.fieldsArray=[];e.tracked=!1;n('Not Tracked: '+t.exit);n(e)};function n(e){if(d()){console.dir(e)}};function o(e){return e.replace(/^\s+|\s+$/gm,'')};function u(){var n=0,e=document.domain,i=e.split('.'),t='_gd'+(new Date()).getTime();while(n<(i.length-1)&&document.cookie.indexOf(t+'='+t)==-1){e=i.slice(-1-(++n)).join('.');document.cookie=t+'='+t+';domain='+e+';'};document.cookie=t+'=;expires=Thu, 01 Jan 1970 00:00:01 GMT;domain='+e+';';return e};function c(e){e=e.toString();e=e.substring(0,(e.indexOf('#')==-1)?e.length:e.indexOf('#'));e=e.substring(0,(e.indexOf('?')==-1)?e.length:e.indexOf('?'));e=e.substring(e.lastIndexOf('/')+1,e.length);if(e.length>0&&e.indexOf('.')!==-1){e=e.substring(e.lastIndexOf('.')+1);return e}
else{return''}};function x(e){return e.which==1||e.which==2||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey};function h(){var e=[];if(typeof monsterinsights_frontend.download_extensions=='string'){e=monsterinsights_frontend.download_extensions.split(',')};return e};function g(){var e=[];if(typeof monsterinsights_frontend.inbound_paths=='string'){e=JSON.parse(monsterinsights_frontend.inbound_paths)};return e};function w(e){if(e.which==1){return'event.which=1'}
else if(e.which==2){return'event.which=2'}
else if(e.metaKey){return'metaKey'}
else if(e.ctrlKey){return'ctrlKey'}
else if(e.shiftKey){return'shiftKey'}
else if(e.altKey){return'altKey'}
else{return''}};function A(e){var f=h(),l=g(),t='unknown',d=e.href,p=c(e.href),k=u(),r=e.hostname,a=e.protocol,m=e.pathname;d=d.toString();var s,v,y=e.getAttribute('data-vars-ga-category');if(y){return y};if(d.match(/^javascript\:/i)){t='internal'}
else if(a&&a.length>0&&(o(a)=='tel'||o(a)=='tel:')){t='tel'}
else if(a&&a.length>0&&(o(a)=='mailto'||o(a)=='mailto:')){t='mailto'}
else if(r&&k&&r.length>0&&k.length>0&&!r.endsWith('.'+k)&&r!==k){t='external'}
else if(m&&JSON.stringify(l)!='{}'&&m.length>0){var b=l.length;for(var n=0;n<b;n++){if(l[n].path&&l[n].label&&l[n].path.length>0&&l[n].label.length>0&&m.startsWith(l[n].path)){t='internal-as-outbound';i='outbound-link-'+l[n].label;break}}}
else if(r&&window.monsterinsights_experimental_mode&&r.length>0&&document.domain.length>0&&r!==document.domain){t='cross-hostname'};if(p&&(t==='unknown'||'external'===t)&&f.length>0&&p.length>0){for(s=0,v=f.length;s<v;++s){if(f[s].length>0&&(d.endsWith(f[s])||f[s]==p)){t='download';break}}};if(t==='unknown'){t='internal'};return t};function T(e,t){var n=(e.target&&!e.target.match(/^_(self|parent|top)$/i))?e.target:!1;if(t.ctrlKey||t.shiftKey||t.metaKey||t.which==2){n='_blank'};return n};function k(e){if(e.getAttribute('data-vars-ga-label')&&e.getAttribute('data-vars-ga-label').replace(/\n/ig,'')){return e.getAttribute('data-vars-ga-label').replace(/\n/ig,'')}
else if(e.title&&e.title.replace(/\n/ig,'')){return e.title.replace(/\n/ig,'')}
else if(e.innerText&&e.innerText.replace(/\n/ig,'')){return e.innerText.replace(/\n/ig,'')}
else if(e.getAttribute('aria-label')&&e.getAttribute('aria-label').replace(/\n/ig,'')){return e.getAttribute('aria-label').replace(/\n/ig,'')}
else if(e.alt&&e.alt.replace(/\n/ig,'')){return e.alt.replace(/\n/ig,'')}
else if(e.textContent&&e.textContent.replace(/\n/ig,'')){return e.textContent.replace(/\n/ig,'')}
else if(e.firstChild&&e.firstChild.tagName=='IMG'){return e.firstChild.src}
else{return undefined}};function O(e){var i=e.children,l=0,a,n;for(var t=0;t<i.length;t++){a=i[t];n=k(a);if(n){return n};if(l==99){return undefined};l++};return undefined};function p(n){var a=n.srcElement||n.target,e=[],m;e.el=a;e.click_type=w(n);if('undefined'===typeof __gtagTracker||!x(n)){e.exit='loaded';t(e);return}
while(a&&(typeof a.tagName=='undefined'||a.tagName.toLowerCase()!='a'||!a.href)){a=a.parentNode};if(a&&a.href&&!a.hasAttribute('xlink:href')){var p=a.href,M=c(a.href),N=h(),S=g(),D=monsterinsights_frontend.home_url,L=u(),o=A(a),K=T(a,n),y=a.getAttribute('data-vars-ga-action'),f=a.getAttribute('data-vars-ga-label');e.el=a;e.el_href=a.href;e.el_protocol=a.protocol;e.el_hostname=a.hostname;e.el_port=a.port;e.el_pathname=a.pathname;e.el_search=a.search;e.el_hash=a.hash;e.el_host=a.host;e.el_classes=a.getAttribute('class');e.el_id=a.id;e.debug_mode=d();e.download_extensions=N;e.inbound_paths=S;e.home_url=D;e.link=p;e.extension=M;e.type=o;e.target=K;e.title=k(a);if(!e.label&&!e.title){e.title=O(a)};if(o!=='internal'&&o!=='javascript'){var b=!1,v=function(){if(b){return};s();b=!0;if(a.attributes.download){var e=document.createElement('a');e.href=a.href;e.download=a.download;e.click()}
else{window.location.href=p}},E=function(){e.exit='external';t(e)},C=function(){e.exit='internal-as-outbound';t(e)},I=function(){e.exit='cross-hostname';t(e)};if(K||o=='mailto'||o=='tel'){if(o=='download'){m={event_category:'download',event_label:f||e.title,file_extension:e.extension,file_name:e.link.replace(/^.*\//g,''),link_text:f||e.title,link_url:p,link_type:'download',link_domain:e.el_hostname,link_classes:e.el_classes,link_id:e.el_id,}}
else if(o=='tel'){m={event_category:'tel',event_label:f||e.title.replace('tel:',''),tel_number:p.replace('tel:',''),link_text:f||e.title,link_url:p,link_type:'tel',link_classes:e.el_classes,link_id:e.el_id,}}
else if(o=='mailto'){m={event_category:'mailto',event_label:f||e.title.replace('mailto:',''),email_address:p.replace('mailto:',''),link_text:f||e.title.replace('mailto:',''),link_url:p,link_type:'mailto',link_classes:e.el_classes,link_id:e.el_id,}}
else if(o=='internal-as-outbound'){m={event_category:i,event_label:f||e.title,event_name:'click',is_affiliate_link:!0,affiliate_label:i.replace('outbound-link-',''),link_text:f||e.title,link_url:p,link_type:'affiliate',link_domain:e.el_hostname,link_classes:e.el_classes,link_id:e.el_id,outbound:!0,}}
else if(o=='external'){m={event_category:'outbound-link',event_label:f||e.title,is_affiliate_link:!1,link_text:f||e.title,link_url:p,link_type:'outbound',link_domain:e.el_hostname,link_classes:e.el_classes,link_id:e.el_id,outbound:!0,}}
else if(o=='cross-hostname'){m={event_category:'cross-hostname',event_label:f||e.title,link_text:f||e.title,link_url:p,link_domain:e.el_hostname,link_classes:e.el_classes,link_id:e.el_id,}};if(m){l('event',y||p,m,e)}
else{if(o&&o!='internal'){m={event_category:o,event_label:f||e.title,link_text:f||e.title,link_url:p,link_type:'internal',link_domain:e.el_hostname,link_classes:e.el_classes,link_id:e.el_id,};l('event',y||p,m,e)}
else{e.exit='type';t(e)}}}
else{if(o!='cross-hostname'&&o!='external'&&o!='internal-as-outbound'){if(!n.defaultPrevented){if(n.preventDefault){n.preventDefault()}
else{n.returnValue=!1}}};if(o=='download'){m={event_category:'download',event_label:f||e.title,event_callback:v,file_extension:e.extension,file_name:e.link.replace(/^.*\//g,''),link_text:f||e.title,link_url:p,link_type:'download',link_domain:e.el_hostname,link_classes:e.el_classes,link_id:e.el_id,};l('event',y||p,m,e)}
else if(o=='internal-as-outbound'){r=!0;window.onbeforeunload=function(t){if(!n.defaultPrevented){if(n.preventDefault){n.preventDefault()}
else{n.returnValue=!1}};m={event_category:i,event_label:f||e.title,event_callback:v,is_affiliate_link:!0,affiliate_label:i.replace('outbound-link-',''),link_text:f||e.title,link_url:p,link_type:'affiliate',link_domain:e.el_hostname,link_classes:e.el_classes,link_id:e.el_id,outbound:!0,};if(navigator.sendBeacon){m.transport='beacon'};l('event',y||p,m,e);setTimeout(v,1000)}}
else if(o=='external'){r=!0;window.onbeforeunload=function(t){m={event_category:'outbound-link',event_label:f||e.title,event_callback:v,is_affiliate_link:!1,link_text:f||e.title,link_url:p,link_type:'outbound',link_domain:e.el_hostname,link_classes:e.el_classes,link_id:e.el_id,outbound:!0,};if(navigator.sendBeacon){m.transport='beacon'};l('event',y||p,m,e)}}
else if(o=='cross-hostname'){r=!0;window.onbeforeunload=function(t){if(!n.defaultPrevented){if(n.preventDefault){n.preventDefault()}
else{n.returnValue=!1}};m={event_category:'cross-hostname',event_label:f||e.title,event_callback:v,link_text:f||e.title,link_url:p,link_domain:e.el_hostname,link_classes:e.el_classes,link_id:e.el_id,};if(navigator.sendBeacon){m.transport='beacon'};l('event',y||p,m,e);setTimeout(v,1000)}}
else{if(o&&o!=='internal'){m={event_category:o,event_label:f||e.title,event_callback:v,link_text:f||e.title,link_url:p,link_type:'internal',link_domain:e.el_hostname,link_classes:e.el_classes,link_id:e.el_id,};l('event',y||p,m,e)}
else{e.exit='type';t(e)}};if(o!='external'&&o!='cross-hostname'&&o!='internal-as-outbound'){setTimeout(v,1000)}
else{if(o=='external'){setTimeout(E,1100)}
else if(o=='cross-hostname'){setTimeout(I,1100)}
else{setTimeout(C,1100)}};setTimeout(s,100)}}
else{s();e.exit='internal';t(e)}}
else{e.exit='notlink';t(e)}};var f=window.location.hash;function m(){if(monsterinsights_frontend.hash_tracking==='true'&&f!=window.location.hash&&monsterinsights_frontend.v4_id){f=window.location.hash;__gtagTracker('config',monsterinsights_frontend.v4_id,{page_path:location.pathname+location.search+location.hash,});n('Hash change to: '+location.pathname+location.search+location.hash)}
else{n('Hash change to (untracked): '+location.pathname+location.search+location.hash)}};function s(){if(r){window.onbeforeunload=null}};var a=window;if(a.addEventListener){a.addEventListener('load',function(){document.body.addEventListener('click',p,!1)},!1);window.addEventListener('hashchange',m,!1)}
else{if(a.attachEvent){a.attachEvent('onload',function(){document.body.attachEvent('onclick',p)});window.attachEvent('onhashchange',m)}};if(typeof String.prototype.endsWith!=='function'){String.prototype.endsWith=function(e){return this.indexOf(e,this.length-e.length)!==-1}};if(typeof String.prototype.startsWith!=='function'){String.prototype.startsWith=function(e){return this.indexOf(e)===0}};if(typeof Array.prototype.lastIndexOf!=='function'){Array.prototype.lastIndexOf=function(e){'use strict';if(this===void 0||this===null){throw new TypeError()};var t,n,l=Object(this),i=l.length>>>0;if(i===0){return-1};t=i-1;if(arguments.length>1){t=Number(arguments[1]);if(t!=t){t=0}
else if(t!=0&&t!=(1/0)&&t!=-(1/0)){t=(t>0||-1)*Math.floor(Math.abs(t))}};for(n=t>=0?Math.min(t,i-1):i-Math.abs(t);n>=0;n--){if(n in l&&l[n]===e){return n}};return-1}}},MonsterInsightsObject=new MonsterInsights();
!function(){if("function"==typeof window.CustomEvent)return!1;function e(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n}e.prototype=window.Event.prototype,window.CustomEvent=e}(),function(){var e=function(e){return RegExp("(^| )"+e+"( |$)")},t=function(e,t,n){for(var i=0;i<e.length;i++)t.call(n,e[i])};function n(e){this.element=e}n.prototype={add:function(){t(arguments,function(e){this.contains(e)||(this.element.className+=this.element.className.length>0?" "+e:e)},this)},remove:function(){t(arguments,function(t){this.element.className=this.element.className.replace(e(t),"")},this)},toggle:function(e){return this.contains(e)?(this.remove(e),!1):(this.add(e),!0)},contains:function(t){return e(t).test(this.element.className)},replace:function(e,t){this.remove(e),this.add(t)}},"classList"in Element.prototype||Object.defineProperty(Element.prototype,"classList",{get:function(){return new n(this)}}),window.DOMTokenList&&null==DOMTokenList.prototype.replace&&(DOMTokenList.prototype.replace=n.prototype.replace)}(),function(e,t,n){var i=new function(){this.cookiesAccepted=null,this.noticeContainer=null,this.setStatus=function(n){var i=this,o="",s="",c=new Date,a=new Date;cnArgs.onScroll&&e.removeEventListener("scroll",this.handleScroll),"accept"===n?(n="true",a.setTime(parseInt(c.getTime())+1e3*parseInt(cnArgs.cookieTime))):(n="false",a.setTime(parseInt(c.getTime())+1e3*parseInt(cnArgs.cookieTimeRejected))),cnArgs.globalCookie&&(o=this.getDomain(t.location.hostname)),"localhost"===t.location.hostname&&(s=t.location.pathname.split("/")[1]);var r="";"https:"===t.location.protocol&&(r=";secure"),t.cookie=cnArgs.cookieName+"="+n+";expires="+a.toUTCString()+";path=/"+s+";domain="+o+r,this.cookiesAccepted="true"===n;var d=new CustomEvent("setCookieNotice",{detail:{value:n,time:c,expires:a,data:cnArgs}});if(t.dispatchEvent(d),this.setBodyClass(["cookies-set","true"===n?"cookies-accepted":"cookies-refused"]),this.hideCookieNotice(),"automatic"===cnArgs.revokeCookiesOpt&&(this.noticeContainer.addEventListener("animationend",function e(){i.noticeContainer.removeEventListener("animationend",e),i.showRevokeNotice()}),this.noticeContainer.addEventListener("webkitAnimationEnd",function e(){i.noticeContainer.removeEventListener("webkitAnimationEnd",e),i.showRevokeNotice()})),cnArgs.redirection&&("true"===n&&null===this.cookiesAccepted||n!==this.cookiesAccepted&&null!==this.cookiesAccepted)){var l=e.location.protocol+"//",h=e.location.host+"/"+e.location.pathname;cnArgs.cache?(l=l+h.replace("//","/")+(""===e.location.search?"?":e.location.search+"&")+"cn-reloaded=1"+e.location.hash,e.location.href=l):(l=l+h.replace("//","/")+e.location.search+e.location.hash,e.location.reload(!0));return}},this.getDomain=function(e){RegExp(/https?:\/\//).test(e)||(e="http://"+e);var t=new URL(e).hostname.split(".");return t.slice(0).slice(-(4===t.length?3:2)).join(".")},this.getStatus=function(e){var n=("; "+t.cookie).split("; cookie_notice_accepted=");if(2!==n.length)return null;var i=n.pop().split(";").shift();return e?"true"===i:i},this.showCookieNotice=function(){var e=this,n=new CustomEvent("showCookieNotice",{detail:{data:cnArgs}});t.dispatchEvent(n),this.noticeContainer.classList.remove("cookie-notice-hidden"),this.noticeContainer.classList.add("cn-animated"),this.noticeContainer.classList.add("cookie-notice-visible"),this.noticeContainer.addEventListener("animationend",function t(){e.noticeContainer.removeEventListener("animationend",t),e.noticeContainer.classList.remove("cn-animated")}),this.noticeContainer.addEventListener("webkitAnimationEnd",function t(){e.noticeContainer.removeEventListener("webkitAnimationEnd",t),e.noticeContainer.classList.remove("cn-animated")})},this.hideCookieNotice=function(){var e=this,n=new CustomEvent("hideCookieNotice",{detail:{data:cnArgs}});t.dispatchEvent(n),this.noticeContainer.classList.add("cn-animated"),this.noticeContainer.classList.remove("cookie-notice-visible"),this.noticeContainer.addEventListener("animationend",function t(){e.noticeContainer.removeEventListener("animationend",t),e.noticeContainer.classList.remove("cn-animated"),e.noticeContainer.classList.add("cookie-notice-hidden")}),this.noticeContainer.addEventListener("webkitAnimationEnd",function t(){e.noticeContainer.removeEventListener("webkitAnimationEnd",t),e.noticeContainer.classList.remove("cn-animated"),e.noticeContainer.classList.add("cookie-notice-hidden")})},this.showRevokeNotice=function(){var e=this,n=new CustomEvent("showRevokeNotice",{detail:{data:cnArgs}});t.dispatchEvent(n),this.noticeContainer.classList.remove("cookie-revoke-hidden"),this.noticeContainer.classList.add("cn-animated"),this.noticeContainer.classList.add("cookie-revoke-visible"),this.noticeContainer.addEventListener("animationend",function t(){e.noticeContainer.removeEventListener("animationend",t),e.noticeContainer.classList.remove("cn-animated")}),this.noticeContainer.addEventListener("webkitAnimationEnd",function t(){e.noticeContainer.removeEventListener("webkitAnimationEnd",t),e.noticeContainer.classList.remove("cn-animated")})},this.hideRevokeNotice=function(){var e=this,n=new CustomEvent("hideRevokeNotice",{detail:{data:cnArgs}});t.dispatchEvent(n),this.noticeContainer.classList.add("cn-animated"),this.noticeContainer.classList.remove("cookie-revoke-visible"),this.noticeContainer.addEventListener("animationend",function t(){e.noticeContainer.removeEventListener("animationend",t),e.noticeContainer.classList.remove("cn-animated"),e.noticeContainer.classList.add("cookie-revoke-hidden")}),this.noticeContainer.addEventListener("webkitAnimationEnd",function t(){e.noticeContainer.removeEventListener("webkitAnimationEnd",t),e.noticeContainer.classList.remove("cn-animated"),e.noticeContainer.classList.add("cookie-revoke-hidden")})},this.setBodyClass=function(e){t.body.classList.remove("cookies-revoke"),t.body.classList.remove("cookies-accepted"),t.body.classList.remove("cookies-refused"),t.body.classList.remove("cookies-set"),t.body.classList.remove("cookies-not-set");for(var n=0;n<e.length;n++)t.body.classList.add(e[n])},this.handleScroll=function(){(e.pageYOffset||(t.documentElement||t.body.parentNode||t.body).scrollTop)>parseInt(cnArgs.onScrollOffset)&&this.setStatus("accept")},this.getClosest=function(e,n){for(Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(e){for(var t=(this.document||this.ownerDocument).querySelectorAll(e),n=t.length;--n>=0&&t.item(n)!==this;);return n>-1});e&&e!==t;e=e.parentNode)if(e.matches(n))return e;return null},this.inIframe=function(){try{return e.self!==e.top}catch(t){return!0}},this.init=function(){var n=this;if(!0!==this.inIframe()&&(this.cookiesAccepted=this.getStatus(!0),this.noticeContainer=t.getElementById("cookie-notice"),this.noticeContainer)){var i=t.getElementsByClassName("cn-set-cookie"),o=t.getElementsByClassName("cn-revoke-cookie"),s=t.getElementById("cn-close-notice");this.noticeContainer.classList.add("cn-effect-"+cnArgs.hideEffect),null===this.cookiesAccepted?(cnArgs.onScroll&&e.addEventListener("scroll",function(e){n.handleScroll()}),cnArgs.onClick&&e.addEventListener("click",function(e){null===n.getClosest(e.target,"#cookie-notice")&&n.setStatus("accept")},!0),this.setBodyClass(["cookies-not-set"]),this.showCookieNotice()):(this.setBodyClass(["cookies-set",!0===this.cookiesAccepted?"cookies-accepted":"cookies-refused"]),cnArgs.revokeCookies&&"automatic"===cnArgs.revokeCookiesOpt&&this.showRevokeNotice());for(var c=0;c<i.length;c++)i[c].addEventListener("click",function(e){e.preventDefault(),e.stopPropagation(),n.setStatus(this.dataset.cookieSet)});null!==s&&s.addEventListener("click",function(e){e.preventDefault(),e.stopPropagation(),n.setStatus("reject")});for(var c=0;c<o.length;c++)o[c].addEventListener("click",function(e){e.preventDefault(),n.noticeContainer.classList.contains("cookie-revoke-visible")?(n.hideRevokeNotice(),n.noticeContainer.addEventListener("animationend",function e(){n.noticeContainer.removeEventListener("animationend",e),n.showCookieNotice()}),n.noticeContainer.addEventListener("webkitAnimationEnd",function e(){n.noticeContainer.removeEventListener("webkitAnimationEnd",e),n.showCookieNotice()})):n.noticeContainer.classList.contains("cookie-notice-hidden")&&n.noticeContainer.classList.contains("cookie-revoke-hidden")&&n.showCookieNotice()})}}};e.addEventListener("load",function(){i.init()},!1)}(window,document,void 0);
/*! jQuery Migrate v3.4.1 | (c) OpenJS Foundation and other contributors | jquery.org/license */
"undefined"==typeof jQuery.migrateMute&&(jQuery.migrateMute=!0),function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],function(e){return t(e,window)}):"object"==typeof module&&module.exports?module.exports=t(require("jquery"),window):t(jQuery,window)}(function(s,n){"use strict";function e(e){return 0<=function(e,t){for(var r=/^(\d+)\.(\d+)\.(\d+)/,n=r.exec(e)||[],o=r.exec(t)||[],a=1;a<=3;a++){if(+o[a]<+n[a])return 1;if(+n[a]<+o[a])return-1}return 0}(s.fn.jquery,e)}s.migrateVersion="3.4.1";var t=Object.create(null);s.migrateDisablePatches=function(){for(var e=0;e<arguments.length;e++)t[arguments[e]]=!0},s.migrateEnablePatches=function(){for(var e=0;e<arguments.length;e++)delete t[arguments[e]]},s.migrateIsPatchEnabled=function(e){return!t[e]},n.console&&n.console.log&&(s&&e("3.0.0")&&!e("5.0.0")||n.console.log("JQMIGRATE: jQuery 3.x-4.x REQUIRED"),s.migrateWarnings&&n.console.log("JQMIGRATE: Migrate plugin loaded multiple times"),n.console.log("JQMIGRATE: Migrate is installed"+(s.migrateMute?"":" with logging active")+", version "+s.migrateVersion));var o={};function u(e,t){var r=n.console;!s.migrateIsPatchEnabled(e)||s.migrateDeduplicateWarnings&&o[t]||(o[t]=!0,s.migrateWarnings.push(t+" ["+e+"]"),r&&r.warn&&!s.migrateMute&&(r.warn("JQMIGRATE: "+t),s.migrateTrace&&r.trace&&r.trace()))}function r(e,t,r,n,o){Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){return u(n,o),r},set:function(e){u(n,o),r=e}})}function a(e,t,r,n,o){var a=e[t];e[t]=function(){return o&&u(n,o),(s.migrateIsPatchEnabled(n)?r:a||s.noop).apply(this,arguments)}}function c(e,t,r,n,o){if(!o)throw new Error("No warning message provided");return a(e,t,r,n,o),0}function i(e,t,r,n){return a(e,t,r,n),0}s.migrateDeduplicateWarnings=!0,s.migrateWarnings=[],void 0===s.migrateTrace&&(s.migrateTrace=!0),s.migrateReset=function(){o={},s.migrateWarnings.length=0},"BackCompat"===n.document.compatMode&&u("quirks","jQuery is not compatible with Quirks Mode");var d,l,p,f={},m=s.fn.init,y=s.find,h=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/,g=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/g,v=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;for(d in i(s.fn,"init",function(e){var t=Array.prototype.slice.call(arguments);return s.migrateIsPatchEnabled("selector-empty-id")&&"string"==typeof e&&"#"===e&&(u("selector-empty-id","jQuery( '#' ) is not a valid selector"),t[0]=[]),m.apply(this,t)},"selector-empty-id"),s.fn.init.prototype=s.fn,i(s,"find",function(t){var r=Array.prototype.slice.call(arguments);if("string"==typeof t&&h.test(t))try{n.document.querySelector(t)}catch(e){t=t.replace(g,function(e,t,r,n){return"["+t+r+'"'+n+'"]'});try{n.document.querySelector(t),u("selector-hash","Attribute selector with '#' must be quoted: "+r[0]),r[0]=t}catch(e){u("selector-hash","Attribute selector with '#' was not fixed: "+r[0])}}return y.apply(this,r)},"selector-hash"),y)Object.prototype.hasOwnProperty.call(y,d)&&(s.find[d]=y[d]);c(s.fn,"size",function(){return this.length},"size","jQuery.fn.size() is deprecated and removed; use the .length property"),c(s,"parseJSON",function(){return JSON.parse.apply(null,arguments)},"parseJSON","jQuery.parseJSON is deprecated; use JSON.parse"),c(s,"holdReady",s.holdReady,"holdReady","jQuery.holdReady is deprecated"),c(s,"unique",s.uniqueSort,"unique","jQuery.unique is deprecated; use jQuery.uniqueSort"),r(s.expr,"filters",s.expr.pseudos,"expr-pre-pseudos","jQuery.expr.filters is deprecated; use jQuery.expr.pseudos"),r(s.expr,":",s.expr.pseudos,"expr-pre-pseudos","jQuery.expr[':'] is deprecated; use jQuery.expr.pseudos"),e("3.1.1")&&c(s,"trim",function(e){return null==e?"":(e+"").replace(v,"$1")},"trim","jQuery.trim is deprecated; use String.prototype.trim"),e("3.2.0")&&(c(s,"nodeName",function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},"nodeName","jQuery.nodeName is deprecated"),c(s,"isArray",Array.isArray,"isArray","jQuery.isArray is deprecated; use Array.isArray")),e("3.3.0")&&(c(s,"isNumeric",function(e){var t=typeof e;return("number"==t||"string"==t)&&!isNaN(e-parseFloat(e))},"isNumeric","jQuery.isNumeric() is deprecated"),s.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){f["[object "+t+"]"]=t.toLowerCase()}),c(s,"type",function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?f[Object.prototype.toString.call(e)]||"object":typeof e},"type","jQuery.type is deprecated"),c(s,"isFunction",function(e){return"function"==typeof e},"isFunction","jQuery.isFunction() is deprecated"),c(s,"isWindow",function(e){return null!=e&&e===e.window},"isWindow","jQuery.isWindow() is deprecated")),s.ajax&&(l=s.ajax,p=/(=)\?(?=&|$)|\?\?/,i(s,"ajax",function(){var e=l.apply(this,arguments);return e.promise&&(c(e,"success",e.done,"jqXHR-methods","jQXHR.success is deprecated and removed"),c(e,"error",e.fail,"jqXHR-methods","jQXHR.error is deprecated and removed"),c(e,"complete",e.always,"jqXHR-methods","jQXHR.complete is deprecated and removed")),e},"jqXHR-methods"),e("4.0.0")||s.ajaxPrefilter("+json",function(e){!1!==e.jsonp&&(p.test(e.url)||"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&p.test(e.data))&&u("jsonp-promotion","JSON-to-JSONP auto-promotion is deprecated")}));var j=s.fn.removeAttr,b=s.fn.toggleClass,w=/\S+/g;function x(e){return e.replace(/-([a-z])/g,function(e,t){return t.toUpperCase()})}i(s.fn,"removeAttr",function(e){var r=this,n=!1;return s.each(e.match(w),function(e,t){s.expr.match.bool.test(t)&&r.each(function(){if(!1!==s(this).prop(t))return!(n=!0)}),n&&(u("removeAttr-bool","jQuery.fn.removeAttr no longer sets boolean properties: "+t),r.prop(t,!1))}),j.apply(this,arguments)},"removeAttr-bool"),i(s.fn,"toggleClass",function(t){return void 0!==t&&"boolean"!=typeof t?b.apply(this,arguments):(u("toggleClass-bool","jQuery.fn.toggleClass( boolean ) is deprecated"),this.each(function(){var e=this.getAttribute&&this.getAttribute("class")||"";e&&s.data(this,"__className__",e),this.setAttribute&&this.setAttribute("class",!e&&!1!==t&&s.data(this,"__className__")||"")}))},"toggleClass-bool");var Q,A,R=!1,C=/^[a-z]/,N=/^(?:Border(?:Top|Right|Bottom|Left)?(?:Width|)|(?:Margin|Padding)?(?:Top|Right|Bottom|Left)?|(?:Min|Max)?(?:Width|Height))$/;s.swap&&s.each(["height","width","reliableMarginRight"],function(e,t){var r=s.cssHooks[t]&&s.cssHooks[t].get;r&&(s.cssHooks[t].get=function(){var e;return R=!0,e=r.apply(this,arguments),R=!1,e})}),i(s,"swap",function(e,t,r,n){var o,a,i={};for(a in R||u("swap","jQuery.swap() is undocumented and deprecated"),t)i[a]=e.style[a],e.style[a]=t[a];for(a in o=r.apply(e,n||[]),t)e.style[a]=i[a];return o},"swap"),e("3.4.0")&&"undefined"!=typeof Proxy&&(s.cssProps=new Proxy(s.cssProps||{},{set:function(){return u("cssProps","jQuery.cssProps is deprecated"),Reflect.set.apply(this,arguments)}})),e("4.0.0")?(A={animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},"undefined"!=typeof Proxy?s.cssNumber=new Proxy(A,{get:function(){return u("css-number","jQuery.cssNumber is deprecated"),Reflect.get.apply(this,arguments)},set:function(){return u("css-number","jQuery.cssNumber is deprecated"),Reflect.set.apply(this,arguments)}}):s.cssNumber=A):A=s.cssNumber,Q=s.fn.css,i(s.fn,"css",function(e,t){var r,n,o=this;return e&&"object"==typeof e&&!Array.isArray(e)?(s.each(e,function(e,t){s.fn.css.call(o,e,t)}),this):("number"==typeof t&&(r=x(e),n=r,C.test(n)&&N.test(n[0].toUpperCase()+n.slice(1))||A[r]||u("css-number",'Number-typed values are deprecated for jQuery.fn.css( "'+e+'", value )')),Q.apply(this,arguments))},"css-number");var S,P,k,H,E=s.data;i(s,"data",function(e,t,r){var n,o,a;if(t&&"object"==typeof t&&2===arguments.length){for(a in n=s.hasData(e)&&E.call(this,e),o={},t)a!==x(a)?(u("data-camelCase","jQuery.data() always sets/gets camelCased names: "+a),n[a]=t[a]):o[a]=t[a];return E.call(this,e,o),t}return t&&"string"==typeof t&&t!==x(t)&&(n=s.hasData(e)&&E.call(this,e))&&t in n?(u("data-camelCase","jQuery.data() always sets/gets camelCased names: "+t),2<arguments.length&&(n[t]=r),n[t]):E.apply(this,arguments)},"data-camelCase"),s.fx&&(k=s.Tween.prototype.run,H=function(e){return e},i(s.Tween.prototype,"run",function(){1<s.easing[this.easing].length&&(u("easing-one-arg","'jQuery.easing."+this.easing.toString()+"' should use only one argument"),s.easing[this.easing]=H),k.apply(this,arguments)},"easing-one-arg"),S=s.fx.interval,P="jQuery.fx.interval is deprecated",n.requestAnimationFrame&&Object.defineProperty(s.fx,"interval",{configurable:!0,enumerable:!0,get:function(){return n.document.hidden||u("fx-interval",P),s.migrateIsPatchEnabled("fx-interval")&&void 0===S?13:S},set:function(e){u("fx-interval",P),S=e}}));var M=s.fn.load,q=s.event.add,O=s.event.fix;s.event.props=[],s.event.fixHooks={},r(s.event.props,"concat",s.event.props.concat,"event-old-patch","jQuery.event.props.concat() is deprecated and removed"),i(s.event,"fix",function(e){var t,r=e.type,n=this.fixHooks[r],o=s.event.props;if(o.length){u("event-old-patch","jQuery.event.props are deprecated and removed: "+o.join());while(o.length)s.event.addProp(o.pop())}if(n&&!n._migrated_&&(n._migrated_=!0,u("event-old-patch","jQuery.event.fixHooks are deprecated and removed: "+r),(o=n.props)&&o.length))while(o.length)s.event.addProp(o.pop());return t=O.call(this,e),n&&n.filter?n.filter(t,e):t},"event-old-patch"),i(s.event,"add",function(e,t){return e===n&&"load"===t&&"complete"===n.document.readyState&&u("load-after-event","jQuery(window).on('load'...) called after load event occurred"),q.apply(this,arguments)},"load-after-event"),s.each(["load","unload","error"],function(e,t){i(s.fn,t,function(){var e=Array.prototype.slice.call(arguments,0);return"load"===t&&"string"==typeof e[0]?M.apply(this,e):(u("shorthand-removed-v3","jQuery.fn."+t+"() is deprecated"),e.splice(0,0,t),arguments.length?this.on.apply(this,e):(this.triggerHandler.apply(this,e),this))},"shorthand-removed-v3")}),s.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,r){c(s.fn,r,function(e,t){return 0<arguments.length?this.on(r,null,e,t):this.trigger(r)},"shorthand-deprecated-v3","jQuery.fn."+r+"() event shorthand is deprecated")}),s(function(){s(n.document).triggerHandler("ready")}),s.event.special.ready={setup:function(){this===n.document&&u("ready-event","'ready' event is deprecated")}},c(s.fn,"bind",function(e,t,r){return this.on(e,null,t,r)},"pre-on-methods","jQuery.fn.bind() is deprecated"),c(s.fn,"unbind",function(e,t){return this.off(e,null,t)},"pre-on-methods","jQuery.fn.unbind() is deprecated"),c(s.fn,"delegate",function(e,t,r,n){return this.on(t,e,r,n)},"pre-on-methods","jQuery.fn.delegate() is deprecated"),c(s.fn,"undelegate",function(e,t,r){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",r)},"pre-on-methods","jQuery.fn.undelegate() is deprecated"),c(s.fn,"hover",function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)},"pre-on-methods","jQuery.fn.hover() is deprecated");function T(e){var t=n.document.implementation.createHTMLDocument("");return t.body.innerHTML=e,t.body&&t.body.innerHTML}var F=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi;s.UNSAFE_restoreLegacyHtmlPrefilter=function(){s.migrateEnablePatches("self-closed-tags")},i(s,"htmlPrefilter",function(e){var t,r;return(r=(t=e).replace(F,"<$1></$2>"))!==t&&T(t)!==T(r)&&u("self-closed-tags","HTML tags must be properly nested and closed: "+t),e.replace(F,"<$1></$2>")},"self-closed-tags"),s.migrateDisablePatches("self-closed-tags");var D,W,_,I=s.fn.offset;return i(s.fn,"offset",function(){var e=this[0];return!e||e.nodeType&&e.getBoundingClientRect?I.apply(this,arguments):(u("offset-valid-elem","jQuery.fn.offset() requires a valid DOM element"),arguments.length?this:void 0)},"offset-valid-elem"),s.ajax&&(D=s.param,i(s,"param",function(e,t){var r=s.ajaxSettings&&s.ajaxSettings.traditional;return void 0===t&&r&&(u("param-ajax-traditional","jQuery.param() no longer uses jQuery.ajaxSettings.traditional"),t=r),D.call(this,e,t)},"param-ajax-traditional")),c(s.fn,"andSelf",s.fn.addBack,"andSelf","jQuery.fn.andSelf() is deprecated and removed, use jQuery.fn.addBack()"),s.Deferred&&(W=s.Deferred,_=[["resolve","done",s.Callbacks("once memory"),s.Callbacks("once memory"),"resolved"],["reject","fail",s.Callbacks("once memory"),s.Callbacks("once memory"),"rejected"],["notify","progress",s.Callbacks("memory"),s.Callbacks("memory")]],i(s,"Deferred",function(e){var a=W(),i=a.promise();function t(){var o=arguments;return s.Deferred(function(n){s.each(_,function(e,t){var r="function"==typeof o[e]&&o[e];a[t[1]](function(){var e=r&&r.apply(this,arguments);e&&"function"==typeof e.promise?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[t[0]+"With"](this===i?n.promise():this,r?[e]:arguments)})}),o=null}).promise()}return c(a,"pipe",t,"deferred-pipe","deferred.pipe() is deprecated"),c(i,"pipe",t,"deferred-pipe","deferred.pipe() is deprecated"),e&&e.call(a,a),a},"deferred-pipe"),s.Deferred.exceptionHook=W.exceptionHook),s});
!function(e,t){"function"==typeof define&&define.amd?define(t):"object"==typeof exports?module.exports=t():e.ScrollMagic=t()}(this,function(){"use strict";var e=function(){n.log(2,"(COMPATIBILITY NOTICE) -> As of ScrollMagic 2.0.0 you need to use 'new ScrollMagic.Controller()' to create a new controller instance. Use 'new ScrollMagic.Scene()' to instance a scene.")};e.version="2.0.5",window.addEventListener("mousewheel",function(){});var t="data-scrollmagic-pin-spacer";e.Controller=function(o){var s,r,a="ScrollMagic.Controller",l="FORWARD",c="REVERSE",d="PAUSED",u=i.defaults,p=this,h=n.extend({},u,o),f=[],m=!1,g=0,v=d,y=!0,w=0,b=!0,S=function(){for(var t in h)u.hasOwnProperty(t)||(A(2,'WARNING: Unknown option "'+t+'"'),delete h[t]);if(h.container=n.get.elements(h.container)[0],!h.container)throw A(1,"ERROR creating object "+a+": No valid scroll container supplied"),a+" init failed.";y=h.container===window||h.container===document.body||!document.body.contains(h.container),y&&(h.container=window),w=C(),h.container.addEventListener("resize",$),h.container.addEventListener("scroll",$),h.refreshInterval=parseInt(h.refreshInterval)||u.refreshInterval,k(),A(3,"added new "+a+" controller (v"+e.version+")")},k=function(){h.refreshInterval>0&&(r=window.setTimeout(P,h.refreshInterval))},x=function(){return h.vertical?n.get.scrollTop(h.container):n.get.scrollLeft(h.container)},C=function(){return h.vertical?n.get.height(h.container):n.get.width(h.container)},T=this._setScrollPos=function(e){h.vertical?y?window.scrollTo(n.get.scrollLeft(),e):h.container.scrollTop=e:y?window.scrollTo(e,n.get.scrollTop()):h.container.scrollLeft=e},E=function(){if(b&&m){var e=n.type.Array(m)?m:f.slice(0);m=!1;var t=g;g=p.scrollPos();var i=g-t;0!==i&&(v=i>0?l:c),v===c&&e.reverse(),e.forEach(function(t,i){A(3,"updating Scene "+(i+1)+"/"+e.length+" ("+f.length+" total)"),t.update(!0)}),0===e.length&&h.loglevel>=3&&A(3,"updating 0 Scenes (nothing added to controller)")}},I=function(){s=n.rAF(E)},$=function(e){A(3,"event fired causing an update:",e.type),"resize"==e.type&&(w=C(),v=d),m!==!0&&(m=!0,I())},P=function(){if(!y&&w!=C()){var e;try{e=new Event("resize",{bubbles:!1,cancelable:!1})}catch(t){e=document.createEvent("Event"),e.initEvent("resize",!1,!1)}h.container.dispatchEvent(e)}f.forEach(function(e,t){e.refresh()}),k()},A=this._log=function(e,t){h.loglevel>=e&&(Array.prototype.splice.call(arguments,1,0,"("+a+") ->"),n.log.apply(window,arguments))};this._options=h;var O=function(e){if(e.length<=1)return e;var t=e.slice(0);return t.sort(function(e,t){return e.scrollOffset()>t.scrollOffset()?1:-1}),t};return this.addScene=function(t){if(n.type.Array(t))t.forEach(function(e,t){p.addScene(e)});else if(t instanceof e.Scene){if(t.controller()!==p)t.addTo(p);else if(f.indexOf(t)<0){f.push(t),f=O(f),t.on("shift.controller_sort",function(){f=O(f)});for(var i in h.globalSceneOptions)t[i]&&t[i].call(t,h.globalSceneOptions[i]);A(3,"adding Scene (now "+f.length+" total)")}}else A(1,"ERROR: invalid argument supplied for '.addScene()'");return p},this.removeScene=function(e){if(n.type.Array(e))e.forEach(function(e,t){p.removeScene(e)});else{var t=f.indexOf(e);t>-1&&(e.off("shift.controller_sort"),f.splice(t,1),A(3,"removing Scene (now "+f.length+" left)"),e.remove())}return p},this.updateScene=function(t,i){return n.type.Array(t)?t.forEach(function(e,t){p.updateScene(e,i)}):i?t.update(!0):m!==!0&&t instanceof e.Scene&&(m=m||[],m.indexOf(t)==-1&&m.push(t),m=O(m),I()),p},this.update=function(e){return $({type:"resize"}),e&&E(),p},this.scrollTo=function(i,o){if(n.type.Number(i))T.call(h.container,i,o);else if(i instanceof e.Scene)i.controller()===p?p.scrollTo(i.scrollOffset(),o):A(2,"scrollTo(): The supplied scene does not belong to this controller. Scroll cancelled.",i);else if(n.type.Function(i))T=i;else{var s=n.get.elements(i)[0];if(s){for(;s.parentNode.hasAttribute(t);)s=s.parentNode;var r=h.vertical?"top":"left",a=n.get.offset(h.container),l=n.get.offset(s);y||(a[r]-=p.scrollPos()),p.scrollTo(l[r]-a[r],o)}else A(2,"scrollTo(): The supplied argument is invalid. Scroll cancelled.",i)}return p},this.scrollPos=function(e){return arguments.length?(n.type.Function(e)?x=e:A(2,"Provided value for method 'scrollPos' is not a function. To change the current scroll position use 'scrollTo()'."),p):x.call(p)},this.info=function(e){var t={size:w,vertical:h.vertical,scrollPos:g,scrollDirection:v,container:h.container,isDocument:y};return arguments.length?void 0!==t[e]?t[e]:void A(1,'ERROR: option "'+e+'" is not available'):t},this.loglevel=function(e){return arguments.length?(h.loglevel!=e&&(h.loglevel=e),p):h.loglevel},this.enabled=function(e){return arguments.length?(b!=e&&(b=!!e,p.updateScene(f,!0)),p):b},this.destroy=function(e){window.clearTimeout(r);for(var t=f.length;t--;)f[t].destroy(e);return h.container.removeEventListener("resize",$),h.container.removeEventListener("scroll",$),n.cAF(s),A(3,"destroyed "+a+" (reset: "+(e?"true":"false")+")"),null},S(),p};var i={defaults:{container:window,vertical:!0,globalSceneOptions:{},loglevel:2,refreshInterval:100}};e.Controller.addOption=function(e,t){i.defaults[e]=t},e.Controller.extend=function(t){var i=this;e.Controller=function(){return i.apply(this,arguments),this.$super=n.extend({},this),t.apply(this,arguments)||this},n.extend(e.Controller,i),e.Controller.prototype=i.prototype,e.Controller.prototype.constructor=e.Controller},e.Scene=function(i){var s,r,a="ScrollMagic.Scene",l="BEFORE",c="DURING",d="AFTER",u=o.defaults,p=this,h=n.extend({},u,i),f=l,m=0,g={start:0,end:0},v=0,y=!0,w=function(){for(var e in h)u.hasOwnProperty(e)||(S(2,'WARNING: Unknown option "'+e+'"'),delete h[e]);for(var t in u)P(t);I()},b={};this.on=function(e,t){return n.type.Function(t)?(e=e.trim().split(" "),e.forEach(function(e){var i=e.split("."),o=i[0],n=i[1];"*"!=o&&(b[o]||(b[o]=[]),b[o].push({namespace:n||"",callback:t}))})):S(1,"ERROR when calling '.on()': Supplied callback for '"+e+"' is not a valid function!"),p},this.off=function(e,t){return e?(e=e.trim().split(" "),e.forEach(function(e,i){var o=e.split("."),n=o[0],s=o[1]||"",r="*"===n?Object.keys(b):[n];r.forEach(function(e){for(var i=b[e]||[],o=i.length;o--;){var n=i[o];!n||s!==n.namespace&&"*"!==s||t&&t!=n.callback||i.splice(o,1)}i.length||delete b[e]})}),p):(S(1,"ERROR: Invalid event name supplied."),p)},this.trigger=function(t,i){if(t){var o=t.trim().split("."),n=o[0],s=o[1],r=b[n];S(3,"event fired:",n,i?"->":"",i||""),r&&r.forEach(function(t,o){s&&s!==t.namespace||t.callback.call(p,new e.Event(n,t.namespace,p,i))})}else S(1,"ERROR: Invalid event name supplied.");return p},p.on("change.internal",function(e){"loglevel"!==e.what&&"tweenChanges"!==e.what&&("triggerElement"===e.what?C():"reverse"===e.what&&p.update())}).on("shift.internal",function(e){k(),p.update()});var S=this._log=function(e,t){h.loglevel>=e&&(Array.prototype.splice.call(arguments,1,0,"("+a+") ->"),n.log.apply(window,arguments))};this.addTo=function(t){return t instanceof e.Controller?r!=t&&(r&&r.removeScene(p),r=t,I(),x(!0),C(!0),k(),r.info("container").addEventListener("resize",T),t.addScene(p),p.trigger("add",{controller:r}),S(3,"added "+a+" to controller"),p.update()):S(1,"ERROR: supplied argument of 'addTo()' is not a valid ScrollMagic Controller"),p},this.enabled=function(e){return arguments.length?(y!=e&&(y=!!e,p.update(!0)),p):y},this.remove=function(){if(r){r.info("container").removeEventListener("resize",T);var e=r;r=void 0,e.removeScene(p),p.trigger("remove"),S(3,"removed "+a+" from controller")}return p},this.destroy=function(e){return p.trigger("destroy",{reset:e}),p.remove(),p.off("*.*"),S(3,"destroyed "+a+" (reset: "+(e?"true":"false")+")"),null},this.update=function(e){if(r)if(e)if(r.enabled()&&y){var t,i=r.info("scrollPos");t=h.duration>0?(i-g.start)/(g.end-g.start):i>=g.start?1:0,p.trigger("update",{startPos:g.start,endPos:g.end,scrollPos:i}),p.progress(t)}else A&&f===c&&L(!0);else r.updateScene(p,!1);return p},this.refresh=function(){return x(),C(),p},this.progress=function(e){if(arguments.length){var t=!1,i=f,o=r?r.info("scrollDirection"):"PAUSED",n=h.reverse||e>=m;if(0===h.duration?(t=m!=e,m=e<1&&n?0:1,f=0===m?l:c):e<0&&f!==l&&n?(m=0,f=l,t=!0):e>=0&&e<1&&n?(m=e,f=c,t=!0):e>=1&&f!==d?(m=1,f=d,t=!0):f!==c||n||L(),t){var s={progress:m,state:f,scrollDirection:o},a=f!=i,u=function(e){p.trigger(e,s)};a&&i!==c&&(u("enter"),u(i===l?"start":"end")),u("progress"),a&&f!==c&&(u(f===l?"start":"end"),u("leave"))}return p}return m};var k=function(){g={start:v+h.offset},r&&h.triggerElement&&(g.start-=r.info("size")*h.triggerHook),g.end=g.start+h.duration},x=function(e){if(s){var t="duration";$(t,s.call(p))&&!e&&(p.trigger("change",{what:t,newval:h[t]}),p.trigger("shift",{reason:t}))}},C=function(e){var i=0,o=h.triggerElement;if(r&&o){for(var s=r.info(),a=n.get.offset(s.container),l=s.vertical?"top":"left";o.parentNode.hasAttribute(t);)o=o.parentNode;var c=n.get.offset(o);s.isDocument||(a[l]-=r.scrollPos()),i=c[l]-a[l]}var d=i!=v;v=i,d&&!e&&p.trigger("shift",{reason:"triggerElementPosition"})},T=function(e){h.triggerHook>0&&p.trigger("shift",{reason:"containerResize"})},E=n.extend(o.validate,{duration:function(e){if(n.type.String(e)&&e.match(/^(\.|\d)*\d+%$/)){var t=parseFloat(e)/100;e=function(){return r?r.info("size")*t:0}}if(n.type.Function(e)){s=e;try{e=parseFloat(s())}catch(i){e=-1}}if(e=parseFloat(e),!n.type.Number(e)||e<0)throw s?(s=void 0,['Invalid return value of supplied function for option "duration":',e]):['Invalid value for option "duration":',e];return e}}),I=function(e){e=arguments.length?[e]:Object.keys(E),e.forEach(function(e,t){var i;if(E[e])try{i=E[e](h[e])}catch(o){i=u[e];var s=n.type.String(o)?[o]:o;n.type.Array(s)?(s[0]="ERROR: "+s[0],s.unshift(1),S.apply(this,s)):S(1,"ERROR: Problem executing validation callback for option '"+e+"':",o.message)}finally{h[e]=i}})},$=function(e,t){var i=!1,o=h[e];return h[e]!=t&&(h[e]=t,I(e),i=o!=h[e]),i},P=function(e){p[e]||(p[e]=function(t){return arguments.length?("duration"===e&&(s=void 0),$(e,t)&&(p.trigger("change",{what:e,newval:h[e]}),o.shifts.indexOf(e)>-1&&p.trigger("shift",{reason:e})),p):h[e]})};this.controller=function(){return r},this.state=function(){return f},this.scrollOffset=function(){return g.start},this.triggerPosition=function(){var e=h.offset;return r&&(e+=h.triggerElement?v:r.info("size")*p.triggerHook()),e};var A,O;p.on("shift.internal",function(e){var t="duration"===e.reason;(f===d&&t||f===c&&0===h.duration)&&L(),t&&z()}).on("progress.internal",function(e){L()}).on("add.internal",function(e){z()}).on("destroy.internal",function(e){p.removePin(e.reset)});var L=function(e){if(A&&r){var t=r.info(),i=O.spacer.firstChild;if(e||f!==c){var o={position:O.inFlow?"relative":"absolute",top:0,left:0},s=n.css(i,"position")!=o.position;O.pushFollowers?h.duration>0&&(f===d&&0===parseFloat(n.css(O.spacer,"padding-top"))?s=!0:f===l&&0===parseFloat(n.css(O.spacer,"padding-bottom"))&&(s=!0)):o[t.vertical?"top":"left"]=h.duration*m,n.css(i,o),s&&z()}else{"fixed"!=n.css(i,"position")&&(n.css(i,{position:"fixed"}),z());var a=n.get.offset(O.spacer,!0),u=h.reverse||0===h.duration?t.scrollPos-g.start:Math.round(m*h.duration*10)/10;a[t.vertical?"top":"left"]+=u,n.css(O.spacer.firstChild,{top:a.top,left:a.left})}}},z=function(){if(A&&r&&O.inFlow){var e=f===c,t=r.info("vertical"),i=O.spacer.firstChild,o=n.isMarginCollapseType(n.css(O.spacer,"display")),s={};O.relSize.width||O.relSize.autoFullWidth?e?n.css(A,{width:n.get.width(O.spacer)}):n.css(A,{width:"100%"}):(s["min-width"]=n.get.width(t?A:i,!0,!0),s.width=e?s["min-width"]:"auto"),O.relSize.height?e?n.css(A,{height:n.get.height(O.spacer)-(O.pushFollowers?h.duration:0)}):n.css(A,{height:"100%"}):(s["min-height"]=n.get.height(t?i:A,!0,!o),s.height=e?s["min-height"]:"auto"),O.pushFollowers&&(s["padding"+(t?"Top":"Left")]=h.duration*m,s["padding"+(t?"Bottom":"Right")]=h.duration*(1-m)),n.css(O.spacer,s)}},H=function(){r&&A&&f===c&&!r.info("isDocument")&&L()},M=function(){r&&A&&f===c&&((O.relSize.width||O.relSize.autoFullWidth)&&n.get.width(window)!=n.get.width(O.spacer.parentNode)||O.relSize.height&&n.get.height(window)!=n.get.height(O.spacer.parentNode))&&z()},j=function(e){r&&A&&f===c&&!r.info("isDocument")&&(e.preventDefault(),r._setScrollPos(r.info("scrollPos")-((e.wheelDelta||e[r.info("vertical")?"wheelDeltaY":"wheelDeltaX"])/3||30*-e.detail)))};this.setPin=function(e,i){var o={pushFollowers:!0,spacerClass:"scrollmagic-pin-spacer"};if(i=n.extend({},o,i),e=n.get.elements(e)[0],!e)return S(1,"ERROR calling method 'setPin()': Invalid pin element supplied."),p;if("fixed"===n.css(e,"position"))return S(1,"ERROR calling method 'setPin()': Pin does not work with elements that are positioned 'fixed'."),p;if(A){if(A===e)return p;p.removePin()}A=e;var s=A.parentNode.style.display,r=["top","left","bottom","right","margin","marginLeft","marginRight","marginTop","marginBottom"];A.parentNode.style.display="none";var a="absolute"!=n.css(A,"position"),l=n.css(A,r.concat(["display"])),c=n.css(A,["width","height"]);A.parentNode.style.display=s,!a&&i.pushFollowers&&(S(2,"WARNING: If the pinned element is positioned absolutely pushFollowers will be disabled."),i.pushFollowers=!1),window.setTimeout(function(){A&&0===h.duration&&i.pushFollowers&&S(2,"WARNING: pushFollowers =",!0,"has no effect, when scene duration is 0.")},0);var d=A.parentNode.insertBefore(document.createElement("div"),A),u=n.extend(l,{position:a?"relative":"absolute",boxSizing:"content-box",mozBoxSizing:"content-box",webkitBoxSizing:"content-box"});if(a||n.extend(u,n.css(A,["width","height"])),n.css(d,u),d.setAttribute(t,""),n.addClass(d,i.spacerClass),O={spacer:d,relSize:{width:"%"===c.width.slice(-1),height:"%"===c.height.slice(-1),autoFullWidth:"auto"===c.width&&a&&n.isMarginCollapseType(l.display)},pushFollowers:i.pushFollowers,inFlow:a},!A.___origStyle){A.___origStyle={};var f=A.style,m=r.concat(["width","height","position","boxSizing","mozBoxSizing","webkitBoxSizing"]);m.forEach(function(e){A.___origStyle[e]=f[e]||""})}return O.relSize.width&&n.css(d,{width:c.width}),O.relSize.height&&n.css(d,{height:c.height}),d.appendChild(A),n.css(A,{position:a?"relative":"absolute",margin:"auto",top:"auto",left:"auto",bottom:"auto",right:"auto"}),(O.relSize.width||O.relSize.autoFullWidth)&&n.css(A,{boxSizing:"border-box",mozBoxSizing:"border-box",webkitBoxSizing:"border-box"}),window.addEventListener("scroll",H),window.addEventListener("resize",H),window.addEventListener("resize",M),A.addEventListener("mousewheel",j),A.addEventListener("DOMMouseScroll",j),S(3,"added pin"),L(),p},this.removePin=function(e){if(A){if(f===c&&L(!0),e||!r){var i=O.spacer.firstChild;if(i.hasAttribute(t)){var o=O.spacer.style,s=["margin","marginLeft","marginRight","marginTop","marginBottom"];margins={},s.forEach(function(e){margins[e]=o[e]||""}),n.css(i,margins)}O.spacer.parentNode.insertBefore(i,O.spacer),O.spacer.parentNode.removeChild(O.spacer),A.parentNode.hasAttribute(t)||(n.css(A,A.___origStyle),delete A.___origStyle)}window.removeEventListener("scroll",H),window.removeEventListener("resize",H),window.removeEventListener("resize",M),A.removeEventListener("mousewheel",j),A.removeEventListener("DOMMouseScroll",j),A=void 0,S(3,"removed pin (reset: "+(e?"true":"false")+")")}return p};var _,D=[];return p.on("destroy.internal",function(e){p.removeClassToggle(e.reset)}),this.setClassToggle=function(e,t){var i=n.get.elements(e);return 0!==i.length&&n.type.String(t)?(D.length>0&&p.removeClassToggle(),_=t,D=i,p.on("enter.internal_class leave.internal_class",function(e){var t="enter"===e.type?n.addClass:n.removeClass;D.forEach(function(e,i){t(e,_)})}),p):(S(1,"ERROR calling method 'setClassToggle()': Invalid "+(0===i.length?"element":"classes")+" supplied."),p)},this.removeClassToggle=function(e){return e&&D.forEach(function(e,t){n.removeClass(e,_)}),p.off("start.internal_class end.internal_class"),_=void 0,D=[],p},w(),p};var o={defaults:{duration:0,offset:0,triggerElement:void 0,triggerHook:.5,reverse:!0,loglevel:2},validate:{offset:function(e){if(e=parseFloat(e),!n.type.Number(e))throw['Invalid value for option "offset":',e];return e},triggerElement:function(e){if(e=e||void 0){var t=n.get.elements(e)[0];if(!t)throw['Element defined in option "triggerElement" was not found:',e];e=t}return e},triggerHook:function(e){var t={onCenter:.5,onEnter:1,onLeave:0};if(n.type.Number(e))e=Math.max(0,Math.min(parseFloat(e),1));else{if(!(e in t))throw['Invalid value for option "triggerHook": ',e];e=t[e]}return e},reverse:function(e){return!!e},loglevel:function(e){if(e=parseInt(e),!n.type.Number(e)||e<0||e>3)throw['Invalid value for option "loglevel":',e];return e}},shifts:["duration","offset","triggerHook"]};e.Scene.addOption=function(t,i,n,s){t in o.defaults?e._util.log(1,"[static] ScrollMagic.Scene -> Cannot add Scene option '"+t+"', because it already exists."):(o.defaults[t]=i,o.validate[t]=n,s&&o.shifts.push(t))},e.Scene.extend=function(t){var i=this;e.Scene=function(){return i.apply(this,arguments),this.$super=n.extend({},this),t.apply(this,arguments)||this},n.extend(e.Scene,i),e.Scene.prototype=i.prototype,e.Scene.prototype.constructor=e.Scene},e.Event=function(e,t,i,o){o=o||{};for(var n in o)this[n]=o[n];return this.type=e,this.target=this.currentTarget=i,this.namespace=t||"",this.timeStamp=this.timestamp=Date.now(),this};var n=e._util=function(e){var t,i={},o=function(e){return parseFloat(e)||0},n=function(t){return t.currentStyle?t.currentStyle:e.getComputedStyle(t)},s=function(t,i,s,r){if(i=i===document?e:i,i===e)r=!1;else if(!f.DomElement(i))return 0;t=t.charAt(0).toUpperCase()+t.substr(1).toLowerCase();var a=(s?i["offset"+t]||i["outer"+t]:i["client"+t]||i["inner"+t])||0;if(s&&r){var l=n(i);a+="Height"===t?o(l.marginTop)+o(l.marginBottom):o(l.marginLeft)+o(l.marginRight)}return a},r=function(e){return e.replace(/^[^a-z]+([a-z])/g,"$1").replace(/-([a-z])/g,function(e){return e[1].toUpperCase()})};i.extend=function(e){for(e=e||{},t=1;t<arguments.length;t++)if(arguments[t])for(var i in arguments[t])arguments[t].hasOwnProperty(i)&&(e[i]=arguments[t][i]);return e},i.isMarginCollapseType=function(e){return["block","flex","list-item","table","-webkit-box"].indexOf(e)>-1};var a=0,l=["ms","moz","webkit","o"],c=e.requestAnimationFrame,d=e.cancelAnimationFrame;for(t=0;!c&&t<l.length;++t)c=e[l[t]+"RequestAnimationFrame"],d=e[l[t]+"CancelAnimationFrame"]||e[l[t]+"CancelRequestAnimationFrame"];c||(c=function(t){var i=(new Date).getTime(),o=Math.max(0,16-(i-a)),n=e.setTimeout(function(){t(i+o)},o);return a=i+o,n}),d||(d=function(t){e.clearTimeout(t)}),i.rAF=c.bind(e),i.cAF=d.bind(e);var u=["error","warn","log"],p=e.console||{};for(p.log=p.log||function(){},t=0;t<u.length;t++){var h=u[t];p[h]||(p[h]=p.log)}i.log=function(e){(e>u.length||e<=0)&&(e=u.length);var t=new Date,i=("0"+t.getHours()).slice(-2)+":"+("0"+t.getMinutes()).slice(-2)+":"+("0"+t.getSeconds()).slice(-2)+":"+("00"+t.getMilliseconds()).slice(-3),o=u[e-1],n=Array.prototype.splice.call(arguments,1),s=Function.prototype.bind.call(p[o],p);n.unshift(i),s.apply(p,n)};var f=i.type=function(e){return Object.prototype.toString.call(e).replace(/^\[object (.+)\]$/,"$1").toLowerCase()};f.String=function(e){return"string"===f(e)},f.Function=function(e){return"function"===f(e)},f.Array=function(e){return Array.isArray(e)},f.Number=function(e){return!f.Array(e)&&e-parseFloat(e)+1>=0},f.DomElement=function(e){return"object"==typeof HTMLElement?e instanceof HTMLElement:e&&"object"==typeof e&&null!==e&&1===e.nodeType&&"string"==typeof e.nodeName};var m=i.get={};return m.elements=function(t){var i=[];if(f.String(t))try{t=document.querySelectorAll(t)}catch(o){return i}if("nodelist"===f(t)||f.Array(t))for(var n=0,s=i.length=t.length;n<s;n++){var r=t[n];i[n]=f.DomElement(r)?r:m.elements(r)}else(f.DomElement(t)||t===document||t===e)&&(i=[t]);return i},m.scrollTop=function(t){return t&&"number"==typeof t.scrollTop?t.scrollTop:e.pageYOffset||0},m.scrollLeft=function(t){return t&&"number"==typeof t.scrollLeft?t.scrollLeft:e.pageXOffset||0},m.width=function(e,t,i){return s("width",e,t,i)},m.height=function(e,t,i){return s("height",e,t,i)},m.offset=function(e,t){var i={top:0,left:0};if(e&&e.getBoundingClientRect){var o=e.getBoundingClientRect();i.top=o.top,i.left=o.left,t||(i.top+=m.scrollTop(),i.left+=m.scrollLeft())}return i},i.addClass=function(e,t){t&&(e.classList?e.classList.add(t):e.className+=" "+t)},i.removeClass=function(e,t){t&&(e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(^|\\b)"+t.split(" ").join("|")+"(\\b|$)","gi")," "))},i.css=function(e,t){if(f.String(t))return n(e)[r(t)];if(f.Array(t)){var i={},o=n(e);return t.forEach(function(e,t){i[e]=o[r(e)]}),i}for(var s in t){var a=t[s];a==parseFloat(a)&&(a+="px"),e.style[r(s)]=a}},i}(window||{});return e.Scene.prototype.addIndicators=function(){return e._util.log(1,"(ScrollMagic.Scene) -> ERROR calling addIndicators() due to missing Plugin 'debug.addIndicators'. Please make sure to include plugins/debug.addIndicators.js"),this},e.Scene.prototype.removeIndicators=function(){return e._util.log(1,"(ScrollMagic.Scene) -> ERROR calling removeIndicators() due to missing Plugin 'debug.addIndicators'. Please make sure to include plugins/debug.addIndicators.js"),this},e.Scene.prototype.setTween=function(){return e._util.log(1,"(ScrollMagic.Scene) -> ERROR calling setTween() due to missing Plugin 'animation.gsap'. Please make sure to include plugins/animation.gsap.js"),this},e.Scene.prototype.removeTween=function(){return e._util.log(1,"(ScrollMagic.Scene) -> ERROR calling removeTween() due to missing Plugin 'animation.gsap'. Please make sure to include plugins/animation.gsap.js"),this},e.Scene.prototype.setVelocity=function(){return e._util.log(1,"(ScrollMagic.Scene) -> ERROR calling setVelocity() due to missing Plugin 'animation.velocity'. Please make sure to include plugins/animation.velocity.js"),this},e.Scene.prototype.removeVelocity=function(){return e._util.log(1,"(ScrollMagic.Scene) -> ERROR calling removeVelocity() due to missing Plugin 'animation.velocity'. Please make sure to include plugins/animation.velocity.js"),this},e}),function(e,t){"function"==typeof define&&define.amd?define(t):"object"==typeof exports?module.exports=t():e.Blazy=t()}(this,function(){function e(e){var i=e._util;i.elements=l(e.options),i.count=i.elements.length,i.destroyed&&(i.destroyed=!1,e.options.container&&p(e.options.container,function(e){d(e,"scroll",i.validateT)}),d(window,"resize",i.saveViewportOffsetT),d(window,"resize",i.validateT),d(window,"scroll",i.validateT)),t(e)}function t(e){for(var t=e._util,o=0;o<t.count;o++){var n,s=t.elements[o],a=s;n=e.options;var l=a.getBoundingClientRect();n.container&&v&&(a=a.closest(n.containerClass))?(a=a.getBoundingClientRect(),n=!!i(a,m)&&i(l,{top:a.top-n.offset,right:a.right+n.offset,bottom:a.bottom+n.offset,left:a.left-n.offset})):n=i(l,m),(n||r(s,e.options.successClass))&&(e.load(s),t.elements.splice(o,1),t.count--,o--)}0===t.count&&e.destroy()}function i(e,t){return e.right>=t.left&&e.bottom>=t.top&&e.left<=t.right&&e.top<=t.bottom}function o(e,t,i){if(!r(e,i.successClass)&&(t||i.loadInvisible||0<e.offsetWidth&&0<e.offsetHeight))if(t=e.getAttribute(f)||e.getAttribute(i.src)){t=t.split(i.separator);var o=t[g&&1<t.length?1:0],l=e.getAttribute(i.srcset),c="img"===e.nodeName.toLowerCase(),h=(t=e.parentNode)&&"picture"===t.nodeName.toLowerCase();if(c||void 0===e.src){var m=new Image,v=function(){i.error&&i.error(e,"invalid"),a(e,i.errorClass),u(m,"error",v),u(m,"load",y)},y=function(){c?h||s(e,o,l):e.style.backgroundImage='url("'+o+'")',n(e,i),u(m,"load",y),u(m,"error",v)};h&&(m=e,p(t.getElementsByTagName("source"),function(e){var t=i.srcset,o=e.getAttribute(t);o&&(e.setAttribute("srcset",o),e.removeAttribute(t))})),d(m,"error",v),d(m,"load",y),s(m,o,l)}else e.src=o,n(e,i)}else"video"===e.nodeName.toLowerCase()?(p(e.getElementsByTagName("source"),function(e){var t=i.src,o=e.getAttribute(t);o&&(e.setAttribute("src",o),e.removeAttribute(t))}),e.load(),n(e,i)):(i.error&&i.error(e,"missing"),a(e,i.errorClass))}function n(e,t){a(e,t.successClass),t.success&&t.success(e),e.removeAttribute(t.src),e.removeAttribute(t.srcset),p(t.breakpoints,function(t){e.removeAttribute(t.src)})}function s(e,t,i){i&&e.setAttribute("srcset",i),e.src=t}function r(e,t){return-1!==(" "+e.className+" ").indexOf(" "+t+" ")}function a(e,t){r(e,t)||(e.className+=" "+t)}function l(e){var t=[];e=e.root.querySelectorAll(e.selector);for(var i=e.length;i--;t.unshift(e[i]));return t}function c(e){m.bottom=(window.innerHeight||document.documentElement.clientHeight)+e,m.right=(window.innerWidth||document.documentElement.clientWidth)+e}function d(e,t,i){e.attachEvent?e.attachEvent&&e.attachEvent("on"+t,i):e.addEventListener(t,i,{capture:!1,passive:!0})}function u(e,t,i){e.detachEvent?e.detachEvent&&e.detachEvent("on"+t,i):e.removeEventListener(t,i,{capture:!1,passive:!0})}function p(e,t){if(e&&t)for(var i=e.length,o=0;o<i&&!1!==t(e[o],o);o++);}function h(e,t,i){var o=0;return function(){var n=+new Date;n-o<t||(o=n,e.apply(i,arguments))}}var f,m,g,v;return function(i){if(!document.querySelectorAll){var n=document.createStyleSheet();document.querySelectorAll=function(e,t,i,o,s){for(s=document.all,t=[],e=e.replace(/\[for\b/gi,"[htmlFor").split(","),i=e.length;i--;){for(n.addRule(e[i],"k:v"),o=s.length;o--;)s[o].currentStyle.k&&t.push(s[o]);n.removeRule(0)}return t}}var s=this,r=s._util={};r.elements=[],r.destroyed=!0,s.options=i||{},s.options.error=s.options.error||!1,s.options.offset=s.options.offset||100,s.options.root=s.options.root||document,s.options.success=s.options.success||!1,s.options.selector=s.options.selector||".b-lazy",s.options.separator=s.options.separator||"|",s.options.containerClass=s.options.container,s.options.container=!!s.options.containerClass&&document.querySelectorAll(s.options.containerClass),s.options.errorClass=s.options.errorClass||"b-error",s.options.breakpoints=s.options.breakpoints||!1,s.options.loadInvisible=s.options.loadInvisible||!1,s.options.successClass=s.options.successClass||"b-loaded",s.options.validateDelay=s.options.validateDelay||25,s.options.saveViewportOffsetDelay=s.options.saveViewportOffsetDelay||50,s.options.srcset=s.options.srcset||"data-srcset",s.options.src=f=s.options.src||"data-src",v=Element.prototype.closest,g=1<window.devicePixelRatio,m={},m.top=0-s.options.offset,m.left=0-s.options.offset,s.revalidate=function(){e(s)},s.load=function(e,t){var i=this.options;void 0===e.length?o(e,t,i):p(e,function(e){o(e,t,i)})},s.destroy=function(){var e=this._util;this.options.container&&p(this.options.container,function(t){u(t,"scroll",e.validateT)}),u(window,"scroll",e.validateT),u(window,"resize",e.validateT),u(window,"resize",e.saveViewportOffsetT),e.count=0,e.elements.length=0,e.destroyed=!0},r.validateT=h(function(){t(s)},s.options.validateDelay,s),r.saveViewportOffsetT=h(function(){c(s.options.offset)},s.options.saveViewportOffsetDelay,s),c(s.options.offset),p(s.options.breakpoints,function(e){if(e.width>=window.screen.width)return f=e.src,!1}),setTimeout(function(){e(s)})}}),function(e,t){function i(){var e=m.elements;return"string"==typeof e?e.split(" "):e}function o(e){var t=f[e[p]];return t||(t={},h++,e[p]=h,f[h]=t),t}function n(e,i,n){return i||(i=t),l?i.createElement(e):(n||(n=o(i)),i=n.cache[e]?n.cache[e].cloneNode():u.test(e)?(n.cache[e]=n.createElem(e)).cloneNode():n.createElem(e),i.canHaveChildren&&!d.test(e)?n.frag.appendChild(i):i)}function s(e,t){t.cache||(t.cache={},t.createElem=e.createElement,t.createFrag=e.createDocumentFragment,t.frag=t.createFrag()),e.createElement=function(i){return m.shivMethods?n(i,e,t):t.createElem(i)},e.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+i().join().replace(/\w+/g,function(e){return t.createElem(e),t.frag.createElement(e),'c("'+e+'")'})+");return n}")(m,t.frag)}function r(e){e||(e=t);var i=o(e);if(m.shivCSS&&!a&&!i.hasCSS){var n,r=e;n=r.createElement("p"),r=r.getElementsByTagName("head")[0]||r.documentElement,n.innerHTML="x<style>article,aside,figcaption,figure,footer,header,hgroup,nav,section{display:block}mark{background:#FF0;color:#000}</style>",n=r.insertBefore(n.lastChild,r.firstChild),i.hasCSS=!!n}return l||s(e,i),e}var a,l,c=e.html5||{},d=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,u=/^<|^(?:a|b|button|code|div|fieldset|form|h1|h2|h3|h4|h5|h6|i|iframe|img|input|label|li|link|ol|option|p|param|q|script|select|span|strong|style|table|tbody|td|textarea|tfoot|th|thead|tr|ul)$/i,p="_html5shiv",h=0,f={};!function(){try{var e=t.createElement("a");e.innerHTML="<xyz></xyz>",a="hidden"in e;var i;if(!(i=1==e.childNodes.length)){t.createElement("a");var o=t.createDocumentFragment();i="undefined"==typeof o.cloneNode||"undefined"==typeof o.createDocumentFragment||"undefined"==typeof o.createElement}l=i}catch(n){l=a=!0}}();var m={elements:c.elements||"abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video",shivCSS:!1!==c.shivCSS,supportsUnknownElements:l,shivMethods:!1!==c.shivMethods,type:"default",shivDocument:r,createElement:n,createDocumentFragment:function(e,n){if(e||(e=t),l)return e.createDocumentFragment();for(var n=n||o(e),s=n.frag.cloneNode(),r=0,a=i(),c=a.length;r<c;r++)s.createElement(a[r]);return s}};e.html5=m,r(t)}(this,document),function(e,t){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",t):"object"==typeof module&&module.exports?module.exports=t():e.EvEmitter=t()}("undefined"!=typeof window?window:this,function(){function e(){}var t=e.prototype;return t.on=function(e,t){if(e&&t){var i=this._events=this._events||{},o=i[e]=i[e]||[];return o.indexOf(t)==-1&&o.push(t),this}},t.once=function(e,t){if(e&&t){this.on(e,t);var i=this._onceEvents=this._onceEvents||{},o=i[e]=i[e]||{};return o[t]=!0,this}},t.off=function(e,t){var i=this._events&&this._events[e];if(i&&i.length){var o=i.indexOf(t);return o!=-1&&i.splice(o,1),this}},t.emitEvent=function(e,t){var i=this._events&&this._events[e];if(i&&i.length){var o=0,n=i[o];t=t||[];for(var s=this._onceEvents&&this._onceEvents[e];n;){var r=s&&s[n];r&&(this.off(e,n),delete s[n]),n.apply(this,t),o+=r?0:1,n=i[o]}return this}},e}),function(e,t){"use strict";"function"==typeof define&&define.amd?define(["ev-emitter/ev-emitter"],function(i){return t(e,i)}):"object"==typeof module&&module.exports?module.exports=t(e,require("ev-emitter")):e.imagesLoaded=t(e,e.EvEmitter)}(window,function(e,t){function i(e,t){for(var i in t)e[i]=t[i];return e}function o(e){var t=[];if(Array.isArray(e))t=e;else if("number"==typeof e.length)for(var i=0;i<e.length;i++)t.push(e[i]);else t.push(e);return t}function n(e,t,s){return this instanceof n?("string"==typeof e&&(e=document.querySelectorAll(e)),this.elements=o(e),this.options=i({},this.options),"function"==typeof t?s=t:i(this.options,t),s&&this.on("always",s),this.getImages(),a&&(this.jqDeferred=new a.Deferred),void setTimeout(function(){this.check()}.bind(this))):new n(e,t,s)}function s(e){this.img=e}function r(e,t){this.url=e,this.element=t,this.img=new Image}var a=e.jQuery,l=e.console;n.prototype=Object.create(t.prototype),n.prototype.options={},n.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},n.prototype.addElementImages=function(e){"IMG"==e.nodeName&&this.addImage(e),this.options.background===!0&&this.addElementBackgroundImages(e);var t=e.nodeType;if(t&&c[t]){for(var i=e.querySelectorAll("img"),o=0;o<i.length;o++){var n=i[o];this.addImage(n)}if("string"==typeof this.options.background){var s=e.querySelectorAll(this.options.background);for(o=0;o<s.length;o++){var r=s[o];this.addElementBackgroundImages(r)}}}};var c={1:!0,9:!0,11:!0};return n.prototype.addElementBackgroundImages=function(e){var t=getComputedStyle(e);if(t)for(var i=/url\((['"])?(.*?)\1\)/gi,o=i.exec(t.backgroundImage);null!==o;){
var n=o&&o[2];n&&this.addBackground(n,e),o=i.exec(t.backgroundImage)}},n.prototype.addImage=function(e){var t=new s(e);this.images.push(t)},n.prototype.addBackground=function(e,t){var i=new r(e,t);this.images.push(i)},n.prototype.check=function(){function e(e,i,o){setTimeout(function(){t.progress(e,i,o)})}var t=this;return this.progressedCount=0,this.hasAnyBroken=!1,this.images.length?void this.images.forEach(function(t){t.once("progress",e),t.check()}):void this.complete()},n.prototype.progress=function(e,t,i){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!e.isLoaded,this.emitEvent("progress",[this,e,t]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,e),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&l&&l.log("progress: "+i,e,t)},n.prototype.complete=function(){var e=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(e,[this]),this.emitEvent("always",[this]),this.jqDeferred){var t=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[t](this)}},s.prototype=Object.create(t.prototype),s.prototype.check=function(){var e=this.getIsImageComplete();return e?void this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),void(this.proxyImage.src=this.img.src))},s.prototype.getIsImageComplete=function(){return this.img.complete&&void 0!==this.img.naturalWidth},s.prototype.confirm=function(e,t){this.isLoaded=e,this.emitEvent("progress",[this,this.img,t])},s.prototype.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},s.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},s.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},s.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},r.prototype=Object.create(s.prototype),r.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url;var e=this.getIsImageComplete();e&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},r.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},r.prototype.confirm=function(e,t){this.isLoaded=e,this.emitEvent("progress",[this,this.element,t])},n.makeJQueryPlugin=function(t){t=t||e.jQuery,t&&(a=t,a.fn.imagesLoaded=function(e,t){var i=new n(this,e,t);return i.jqDeferred.promise(a(this))})},n.makeJQueryPlugin(),n}),!function(e,t){"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(i){return t(e,i)}):"object"==typeof module&&module.exports?module.exports=t(e,require("jquery")):e.jQueryBridget=t(e,e.jQuery)}(window,function(e,t){"use strict";function i(i,s,a){function l(e,t,o){var n,s="$()."+i+'("'+t+'")';return e.each(function(e,l){var c=a.data(l,i);if(!c)return void r(i+" not initialized. Cannot call methods, i.e. "+s);var d=c[t];if(!d||"_"==t.charAt(0))return void r(s+" is not a valid method");var u=d.apply(c,o);n=void 0===n?u:n}),void 0!==n?n:e}function c(e,t){e.each(function(e,o){var n=a.data(o,i);n?(n.option(t),n._init()):(n=new s(o,t),a.data(o,i,n))})}a=a||t||e.jQuery,a&&(s.prototype.option||(s.prototype.option=function(e){a.isPlainObject(e)&&(this.options=a.extend(!0,this.options,e))}),a.fn[i]=function(e){if("string"==typeof e){var t=n.call(arguments,1);return l(this,e,t)}return c(this,e),this},o(a))}function o(e){!e||e&&e.bridget||(e.bridget=i)}var n=Array.prototype.slice,s=e.console,r="undefined"==typeof s?function(){}:function(e){s.error(e)};return o(t||e.jQuery),i}),function(e,t){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",t):"object"==typeof module&&module.exports?module.exports=t():e.EvEmitter=t()}("undefined"!=typeof window?window:this,function(){function e(){}var t=e.prototype;return t.on=function(e,t){if(e&&t){var i=this._events=this._events||{},o=i[e]=i[e]||[];return o.indexOf(t)==-1&&o.push(t),this}},t.once=function(e,t){if(e&&t){this.on(e,t);var i=this._onceEvents=this._onceEvents||{},o=i[e]=i[e]||{};return o[t]=!0,this}},t.off=function(e,t){var i=this._events&&this._events[e];if(i&&i.length){var o=i.indexOf(t);return o!=-1&&i.splice(o,1),this}},t.emitEvent=function(e,t){var i=this._events&&this._events[e];if(i&&i.length){i=i.slice(0),t=t||[];for(var o=this._onceEvents&&this._onceEvents[e],n=0;n<i.length;n++){var s=i[n],r=o&&o[s];r&&(this.off(e,s),delete o[s]),s.apply(this,t)}return this}},t.allOff=function(){delete this._events,delete this._onceEvents},e}),function(e,t){"use strict";"function"==typeof define&&define.amd?define("desandro-matches-selector/matches-selector",t):"object"==typeof module&&module.exports?module.exports=t():e.matchesSelector=t()}(window,function(){"use strict";var e=function(){var e=window.Element.prototype;if(e.matches)return"matches";if(e.matchesSelector)return"matchesSelector";for(var t=["webkit","moz","ms","o"],i=0;i<t.length;i++){var o=t[i],n=o+"MatchesSelector";if(e[n])return n}}();return function(t,i){return t[e](i)}}),function(e,t){"function"==typeof define&&define.amd?define("fizzy-ui-utils/utils",["desandro-matches-selector/matches-selector"],function(i){return t(e,i)}):"object"==typeof module&&module.exports?module.exports=t(e,require("desandro-matches-selector")):e.fizzyUIUtils=t(e,e.matchesSelector)}(window,function(e,t){var i={};i.extend=function(e,t){for(var i in t)e[i]=t[i];return e},i.modulo=function(e,t){return(e%t+t)%t};var o=Array.prototype.slice;i.makeArray=function(e){if(Array.isArray(e))return e;if(null===e||void 0===e)return[];var t="object"==typeof e&&"number"==typeof e.length;return t?o.call(e):[e]},i.removeFrom=function(e,t){var i=e.indexOf(t);i!=-1&&e.splice(i,1)},i.getParent=function(e,i){for(;e.parentNode&&e!=document.body;)if(e=e.parentNode,t(e,i))return e},i.getQueryElement=function(e){return"string"==typeof e?document.querySelector(e):e},i.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},i.filterFindElements=function(e,o){e=i.makeArray(e);var n=[];return e.forEach(function(e){if(e instanceof HTMLElement){if(!o)return void n.push(e);t(e,o)&&n.push(e);for(var i=e.querySelectorAll(o),s=0;s<i.length;s++)n.push(i[s])}}),n},i.debounceMethod=function(e,t,i){i=i||100;var o=e.prototype[t],n=t+"Timeout";e.prototype[t]=function(){var e=this[n];clearTimeout(e);var t=arguments,s=this;this[n]=setTimeout(function(){o.apply(s,t),delete s[n]},i)}},i.docReady=function(e){var t=document.readyState;"complete"==t||"interactive"==t?setTimeout(e):document.addEventListener("DOMContentLoaded",e)},i.toDashed=function(e){return e.replace(/(.)([A-Z])/g,function(e,t,i){return t+"-"+i}).toLowerCase()};var n=e.console;return i.htmlInit=function(t,o){i.docReady(function(){var s=i.toDashed(o),r="data-"+s,a=document.querySelectorAll("["+r+"]"),l=document.querySelectorAll(".js-"+s),c=i.makeArray(a).concat(i.makeArray(l)),d=r+"-options",u=e.jQuery;c.forEach(function(e){var i,s=e.getAttribute(r)||e.getAttribute(d);try{i=s&&JSON.parse(s)}catch(a){return void(n&&n.error("Error parsing "+r+" on "+e.className+": "+a))}var l=new t(e,i);u&&u.data(e,o,l)})})},i}),function(e,t){"function"==typeof define&&define.amd?define("infinite-scroll/js/core",["ev-emitter/ev-emitter","fizzy-ui-utils/utils"],function(i,o){return t(e,i,o)}):"object"==typeof module&&module.exports?module.exports=t(e,require("ev-emitter"),require("fizzy-ui-utils")):e.InfiniteScroll=t(e,e.EvEmitter,e.fizzyUIUtils)}(window,function(e,t,i){function o(e,t){var r=i.getQueryElement(e);if(!r)return void console.error("Bad element for InfiniteScroll: "+(r||e));if(e=r,e.infiniteScrollGUID){var a=s[e.infiniteScrollGUID];return a.option(t),a}this.element=e,this.options=i.extend({},o.defaults),this.option(t),n&&(this.$element=n(this.element)),this.create()}var n=e.jQuery,s={};o.defaults={},o.create={},o.destroy={};var r=o.prototype;i.extend(r,t.prototype);var a=0;r.create=function(){var e=this.guid=++a;this.element.infiniteScrollGUID=e,s[e]=this,this.pageIndex=1,this.loadCount=0,this.updateGetPath();var t=this.getPath&&this.getPath();if(!t)return void console.error("Disabling InfiniteScroll");this.updateGetAbsolutePath(),this.log("initialized",[this.element.className]),this.callOnInit();for(var i in o.create)o.create[i].call(this)},r.option=function(e){i.extend(this.options,e)},r.callOnInit=function(){var e=this.options.onInit;e&&e.call(this,this)},r.dispatchEvent=function(e,t,i){this.log(e,i);var o=t?[t].concat(i):i;if(this.emitEvent(e,o),n&&this.$element){e+=".infiniteScroll";var s=e;if(t){var r=n.Event(t);r.type=e,s=r}this.$element.trigger(s,i)}};var l={initialized:function(e){return"on "+e},request:function(e){return"URL: "+e},load:function(e,t){return(e.title||"")+". URL: "+t},error:function(e,t){return e+". URL: "+t},append:function(e,t,i){return i.length+" items. URL: "+t},last:function(e,t){return"URL: "+t},history:function(e,t){return"URL: "+t},pageIndex:function(e,t){return"current page determined to be: "+e+" from "+t}};r.log=function(e,t){if(this.options.debug){var i="[InfiniteScroll] "+e,o=l[e];o&&(i+=". "+o.apply(this,t)),console.log(i)}},r.updateMeasurements=function(){this.windowHeight=e.innerHeight;var t=this.element.getBoundingClientRect();this.top=t.top+e.pageYOffset},r.updateScroller=function(){var t=this.options.elementScroll;if(!t)return void(this.scroller=e);if(this.scroller=t===!0?this.element:i.getQueryElement(t),!this.scroller)throw"Unable to find elementScroll: "+t},r.updateGetPath=function(){var e=this.options.path;if(!e)return void console.error("InfiniteScroll path option required. Set as: "+e);var t=typeof e;if("function"==t)return void(this.getPath=e);var i="string"==t&&e.match("{{#}}");return i?void this.updateGetPathTemplate(e):void this.updateGetPathSelector(e)},r.updateGetPathTemplate=function(e){this.getPath=function(){var t=this.pageIndex+1;return e.replace("{{#}}",t)}.bind(this);var t=e.replace("{{#}}","(\\d\\d?\\d?)"),i=new RegExp(t),o=location.href.match(i);o&&(this.pageIndex=parseInt(o[1],10),this.log("pageIndex",[this.pageIndex,"template string"]))};var c=[/^(.*?\/?page\/?)(\d\d?\d?)(.*?$)/,/^(.*?\/?\?page=)(\d\d?\d?)(.*?$)/,/(.*?)(\d\d?\d?)(?!.*\d)(.*?$)/];return r.updateGetPathSelector=function(e){var t=document.querySelector(e);if(!t)return void console.error("Bad InfiniteScroll path option. Next link not found: "+e);for(var i,o,n=t.getAttribute("href"),s=0;n&&s<c.length;s++){o=c[s];var r=n.match(o);if(r){i=r.slice(1);break}}return i?(this.isPathSelector=!0,this.getPath=function(){var e=this.pageIndex+1;return i[0]+e+i[2]}.bind(this),this.pageIndex=parseInt(i[1],10)-1,void this.log("pageIndex",[this.pageIndex,"next link"])):void console.error("InfiniteScroll unable to parse next link href: "+n)},r.updateGetAbsolutePath=function(){var e=this.getPath(),t=e.match(/^http/)||e.match(/^\//);if(t)return void(this.getAbsolutePath=this.getPath);var i=location.pathname,o=i.substring(0,i.lastIndexOf("/"));this.getAbsolutePath=function(){return o+"/"+this.getPath()}},o.create.hideNav=function(){var e=i.getQueryElement(this.options.hideNav);e&&(e.style.display="none",this.nav=e)},o.destroy.hideNav=function(){this.nav&&(this.nav.style.display="")},r.destroy=function(){this.allOff();for(var e in o.destroy)o.destroy[e].call(this);delete this.element.infiniteScrollGUID,delete s[this.guid],n&&this.$element&&n.removeData(this.element,"infiniteScroll")},o.throttle=function(e,t){t=t||200;var i,o;return function(){var n=+new Date,s=arguments,r=function(){i=n,e.apply(this,s)}.bind(this);i&&n<i+t?(clearTimeout(o),o=setTimeout(r,t)):r()}},o.data=function(e){e=i.getQueryElement(e);var t=e&&e.infiniteScrollGUID;return t&&s[t]},o.setJQuery=function(e){n=e},i.htmlInit(o,"infinite-scroll"),r._init=function(){},n&&n.bridget&&n.bridget("infiniteScroll",o),o}),function(e,t){"function"==typeof define&&define.amd?define("infinite-scroll/js/page-load",["./core"],function(i){return t(e,i)}):"object"==typeof module&&module.exports?module.exports=t(e,require("./core")):t(e,e.InfiniteScroll)}(window,function(e,t){function i(e){for(var t=document.createDocumentFragment(),i=0;e&&i<e.length;i++)t.appendChild(e[i]);return t}function o(e){for(var t=e.querySelectorAll("script"),i=0;i<t.length;i++){var o=t[i],s=document.createElement("script");n(o,s),s.innerHTML=o.innerHTML,o.parentNode.replaceChild(s,o)}}function n(e,t){for(var i=e.attributes,o=0;o<i.length;o++){var n=i[o];t.setAttribute(n.name,n.value)}}function s(e,t,i,o){var n=new XMLHttpRequest;n.open("GET",e,!0),n.responseType=t||"",n.setRequestHeader("X-Requested-With","XMLHttpRequest"),n.onload=function(){if(200==n.status)i(n.response);else{var e=new Error(n.statusText);o(e)}},n.onerror=function(){var t=new Error("Network error requesting "+e);o(t)},n.send()}var r=t.prototype;return t.defaults.loadOnScroll=!0,t.defaults.checkLastPage=!0,t.defaults.responseType="document",t.create.pageLoad=function(){this.canLoad=!0,this.on("scrollThreshold",this.onScrollThresholdLoad),this.on("load",this.checkLastPage),this.options.outlayer&&this.on("append",this.onAppendOutlayer)},r.onScrollThresholdLoad=function(){this.options.loadOnScroll&&this.loadNextPage()},r.loadNextPage=function(){if(!this.isLoading&&this.canLoad){var e=this.getAbsolutePath();this.isLoading=!0;var t=function(t){this.onPageLoad(t,e)}.bind(this),i=function(t){this.onPageError(t,e)}.bind(this);s(e,this.options.responseType,t,i),this.dispatchEvent("request",null,[e])}},r.onPageLoad=function(e,t){return this.options.append||(this.isLoading=!1),this.pageIndex++,this.loadCount++,this.dispatchEvent("load",null,[e,t]),this.appendNextPage(e,t),e},r.appendNextPage=function(e,t){var o=this.options.append,n="document"==this.options.responseType;if(n&&o){var s=e.querySelectorAll(o),r=i(s),a=function(){this.appendItems(s,r),this.isLoading=!1,this.dispatchEvent("append",null,[e,t,s])}.bind(this);this.options.outlayer?this.appendOutlayerItems(r,a):a()}},r.appendItems=function(e,t){e&&e.length&&(t=t||i(e),o(t),this.element.appendChild(t))},r.appendOutlayerItems=function(i,o){var n=t.imagesLoaded||e.imagesLoaded;return n?void n(i,o):(console.error("[InfiniteScroll] imagesLoaded required for outlayer option"),void(this.isLoading=!1))},r.onAppendOutlayer=function(e,t,i){this.options.outlayer.appended(i)},r.checkLastPage=function(e,t){var i=this.options.checkLastPage;if(i){var o=this.options.path;if("function"==typeof o){var n=this.getPath();if(!n)return void this.lastPageReached(e,t)}var s;if("string"==typeof i?s=i:this.isPathSelector&&(s=o),s&&e.querySelector){var r=e.querySelector(s);r||this.lastPageReached(e,t)}}},r.lastPageReached=function(e,t){this.canLoad=!1,this.dispatchEvent("last",null,[e,t])},r.onPageError=function(e,t){return this.isLoading=!1,this.canLoad=!1,this.dispatchEvent("error",null,[e,t]),e},t.create.prefill=function(){if(this.options.prefill){var e=this.options.append;if(!e)return void console.error("append option required for prefill. Set as :"+e);this.updateMeasurements(),this.updateScroller(),this.isPrefilling=!0,this.on("append",this.prefill),this.once("error",this.stopPrefill),this.once("last",this.stopPrefill),this.prefill()}},r.prefill=function(){var e=this.getPrefillDistance();this.isPrefilling=e>=0,this.isPrefilling?(this.log("prefill"),this.loadNextPage()):this.stopPrefill()},r.getPrefillDistance=function(){return this.options.elementScroll?this.scroller.clientHeight-this.scroller.scrollHeight:this.windowHeight-this.element.clientHeight},r.stopPrefill=function(){this.log("stopPrefill"),this.off("append",this.prefill)},t}),function(e,t){"function"==typeof define&&define.amd?define("infinite-scroll/js/scroll-watch",["./core","fizzy-ui-utils/utils"],function(i,o){return t(e,i,o)}):"object"==typeof module&&module.exports?module.exports=t(e,require("./core"),require("fizzy-ui-utils")):t(e,e.InfiniteScroll,e.fizzyUIUtils)}(window,function(e,t,i){var o=t.prototype;return t.defaults.scrollThreshold=400,t.create.scrollWatch=function(){this.pageScrollHandler=this.onPageScroll.bind(this),this.resizeHandler=this.onResize.bind(this);var e=this.options.scrollThreshold,t=e||0===e;t&&this.enableScrollWatch()},t.destroy.scrollWatch=function(){this.disableScrollWatch()},o.enableScrollWatch=function(){this.isScrollWatching||(this.isScrollWatching=!0,this.updateMeasurements(),this.updateScroller(),this.on("last",this.disableScrollWatch),this.bindScrollWatchEvents(!0))},o.disableScrollWatch=function(){this.isScrollWatching&&(this.bindScrollWatchEvents(!1),delete this.isScrollWatching)},o.bindScrollWatchEvents=function(t){var i=t?"addEventListener":"removeEventListener";this.scroller[i]("scroll",this.pageScrollHandler),e[i]("resize",this.resizeHandler)},o.onPageScroll=t.throttle(function(){var e=this.getBottomDistance();e<=this.options.scrollThreshold&&this.dispatchEvent("scrollThreshold")}),o.getBottomDistance=function(){return this.options.elementScroll?this.getElementBottomDistance():this.getWindowBottomDistance()},o.getWindowBottomDistance=function(){var t=this.top+this.element.clientHeight,i=e.pageYOffset+this.windowHeight;return t-i},o.getElementBottomDistance=function(){var e=this.scroller.scrollHeight,t=this.scroller.scrollTop+this.scroller.clientHeight;return e-t},o.onResize=function(){this.updateMeasurements()},i.debounceMethod(t,"onResize",150),t}),function(e,t){"function"==typeof define&&define.amd?define("infinite-scroll/js/history",["./core","fizzy-ui-utils/utils"],function(i,o){return t(e,i,o)}):"object"==typeof module&&module.exports?module.exports=t(e,require("./core"),require("fizzy-ui-utils")):t(e,e.InfiniteScroll,e.fizzyUIUtils)}(window,function(e,t,i){var o=t.prototype;t.defaults.history="replace";var n=document.createElement("a");return t.create.history=function(){if(this.options.history){n.href=this.getAbsolutePath();var e=n.origin||n.protocol+"//"+n.host,t=e==location.origin;return t?void(this.options.append?this.createHistoryAppend():this.createHistoryPageLoad()):void console.error("[InfiniteScroll] cannot set history with different origin: "+n.origin+" on "+location.origin+" . History behavior disabled.")}},o.createHistoryAppend=function(){this.updateMeasurements(),this.updateScroller(),this.scrollPages=[{top:0,path:location.href,title:document.title}],this.scrollPageIndex=0,this.scrollHistoryHandler=this.onScrollHistory.bind(this),this.unloadHandler=this.onUnload.bind(this),this.scroller.addEventListener("scroll",this.scrollHistoryHandler),this.on("append",this.onAppendHistory),this.bindHistoryAppendEvents(!0)},o.bindHistoryAppendEvents=function(t){var i=t?"addEventListener":"removeEventListener";this.scroller[i]("scroll",this.scrollHistoryHandler),e[i]("unload",this.unloadHandler)},o.createHistoryPageLoad=function(){this.on("load",this.onPageLoadHistory)},t.destroy.history=o.destroyHistory=function(){var e=this.options.history&&this.options.append;e&&this.bindHistoryAppendEvents(!1)},o.onAppendHistory=function(e,t,i){if(i&&i.length){var o=i[0],s=this.getElementScrollY(o);n.href=t,this.scrollPages.push({top:s,path:n.href,title:e.title})}},o.getElementScrollY=function(e){return this.options.elementScroll?this.getElementElementScrollY(e):this.getElementWindowScrollY(e)},o.getElementWindowScrollY=function(t){var i=t.getBoundingClientRect();return i.top+e.pageYOffset},o.getElementElementScrollY=function(e){return e.offsetTop-this.top},o.onScrollHistory=function(){for(var e,t,i=this.getScrollViewY(),o=0;o<this.scrollPages.length;o++){var n=this.scrollPages[o];if(n.top>=i)break;e=o,t=n}e!=this.scrollPageIndex&&(this.scrollPageIndex=e,this.setHistory(t.title,t.path))},i.debounceMethod(t,"onScrollHistory",150),o.getScrollViewY=function(){return this.options.elementScroll?this.scroller.scrollTop+this.scroller.clientHeight/2:e.pageYOffset+this.windowHeight/2},o.setHistory=function(e,t){var i=this.options.history,o=i&&history[i+"State"];o&&(history[i+"State"](null,e,t),this.options.historyTitle&&(document.title=e),this.dispatchEvent("history",null,[e,t]))},o.onUnload=function(){var t=this.scrollPageIndex;if(0!==t){var i=this.scrollPages[t],o=e.pageYOffset-i.top+this.top;this.destroyHistory(),scrollTo(0,o)}},o.onPageLoadHistory=function(e,t){this.setHistory(e.title,t)},t}),function(e,t){"function"==typeof define&&define.amd?define("infinite-scroll/js/button",["./core","fizzy-ui-utils/utils"],function(i,o){return t(e,i,o)}):"object"==typeof module&&module.exports?module.exports=t(e,require("./core"),require("fizzy-ui-utils")):t(e,e.InfiniteScroll,e.fizzyUIUtils)}(window,function(e,t,i){function o(e,t){this.element=e,this.infScroll=t,this.clickHandler=this.onClick.bind(this),this.element.addEventListener("click",this.clickHandler),t.on("request",this.disable.bind(this)),t.on("load",this.enable.bind(this)),t.on("error",this.hide.bind(this)),t.on("last",this.hide.bind(this))}return t.create.button=function(){var e=i.getQueryElement(this.options.button);if(e)return void(this.button=new o(e,this))},t.destroy.button=function(){this.button&&this.button.destroy()},o.prototype.onClick=function(e){e.preventDefault(),this.infScroll.loadNextPage()},o.prototype.enable=function(){this.element.removeAttribute("disabled")},o.prototype.disable=function(){this.element.disabled="disabled"},o.prototype.hide=function(){this.element.style.display="none"},o.prototype.destroy=function(){this.element.removeEventListener("click",this.clickHandler)},t.Button=o,t}),function(e,t){"function"==typeof define&&define.amd?define("infinite-scroll/js/status",["./core","fizzy-ui-utils/utils"],function(i,o){return t(e,i,o)}):"object"==typeof module&&module.exports?module.exports=t(e,require("./core"),require("fizzy-ui-utils")):t(e,e.InfiniteScroll,e.fizzyUIUtils)}(window,function(e,t,i){function o(e){s(e,"none")}function n(e){s(e,"block")}function s(e,t){e&&(e.style.display=t)}var r=t.prototype;return t.create.status=function(){var e=i.getQueryElement(this.options.status);e&&(this.statusElement=e,this.statusEventElements={request:e.querySelector(".infinite-scroll-request"),error:e.querySelector(".infinite-scroll-error"),last:e.querySelector(".infinite-scroll-last")},this.on("request",this.showRequestStatus),this.on("error",this.showErrorStatus),this.on("last",this.showLastStatus),this.bindHideStatus("on"))},r.bindHideStatus=function(e){var t=this.options.append?"append":"load";this[e](t,this.hideAllStatus)},r.showRequestStatus=function(){this.showStatus("request")},r.showErrorStatus=function(){this.showStatus("error")},r.showLastStatus=function(){this.showStatus("last"),this.bindHideStatus("off")},r.showStatus=function(e){n(this.statusElement),this.hideStatusEventElements();var t=this.statusEventElements[e];n(t)},r.hideAllStatus=function(){o(this.statusElement),this.hideStatusEventElements()},r.hideStatusEventElements=function(){for(var e in this.statusEventElements){var t=this.statusEventElements[e];o(t)}},t}),function(e,t){"function"==typeof define&&define.amd?define(["infinite-scroll/js/core","infinite-scroll/js/page-load","infinite-scroll/js/scroll-watch","infinite-scroll/js/history","infinite-scroll/js/button","infinite-scroll/js/status"],t):"object"==typeof module&&module.exports&&(module.exports=t(require("./core"),require("./page-load"),require("./scroll-watch"),require("./history"),require("./button"),require("./status")))}(window,function(e){return e}),function(e,t){"use strict";"function"==typeof define&&define.amd?define("imagesloaded/imagesloaded",["ev-emitter/ev-emitter"],function(i){return t(e,i)}):"object"==typeof module&&module.exports?module.exports=t(e,require("ev-emitter")):e.imagesLoaded=t(e,e.EvEmitter)}("undefined"!=typeof window?window:this,function(e,t){function i(e,t){for(var i in t)e[i]=t[i];return e}function o(e){if(Array.isArray(e))return e;var t="object"==typeof e&&"number"==typeof e.length;return t?c.call(e):[e]}function n(e,t,s){if(!(this instanceof n))return new n(e,t,s);var r=e;return"string"==typeof e&&(r=document.querySelectorAll(e)),r?(this.elements=o(r),this.options=i({},this.options),"function"==typeof t?s=t:i(this.options,t),s&&this.on("always",s),this.getImages(),a&&(this.jqDeferred=new a.Deferred),void setTimeout(this.check.bind(this))):void l.error("Bad element for imagesLoaded "+(r||e))}function s(e){this.img=e}function r(e,t){this.url=e,this.element=t,this.img=new Image}var a=e.jQuery,l=e.console,c=Array.prototype.slice;n.prototype=Object.create(t.prototype),n.prototype.options={},n.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},n.prototype.addElementImages=function(e){"IMG"==e.nodeName&&this.addImage(e),this.options.background===!0&&this.addElementBackgroundImages(e);var t=e.nodeType;if(t&&d[t]){for(var i=e.querySelectorAll("img"),o=0;o<i.length;o++){var n=i[o];this.addImage(n)}if("string"==typeof this.options.background){var s=e.querySelectorAll(this.options.background);for(o=0;o<s.length;o++){var r=s[o];this.addElementBackgroundImages(r)}}}};var d={1:!0,9:!0,11:!0};return n.prototype.addElementBackgroundImages=function(e){var t=getComputedStyle(e);if(t)for(var i=/url\((['"])?(.*?)\1\)/gi,o=i.exec(t.backgroundImage);null!==o;){var n=o&&o[2];n&&this.addBackground(n,e),o=i.exec(t.backgroundImage)}},n.prototype.addImage=function(e){var t=new s(e);this.images.push(t)},n.prototype.addBackground=function(e,t){var i=new r(e,t);this.images.push(i)},n.prototype.check=function(){function e(e,i,o){setTimeout(function(){t.progress(e,i,o)})}var t=this;return this.progressedCount=0,this.hasAnyBroken=!1,this.images.length?void this.images.forEach(function(t){t.once("progress",e),t.check()}):void this.complete()},n.prototype.progress=function(e,t,i){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!e.isLoaded,this.emitEvent("progress",[this,e,t]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,e),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&l&&l.log("progress: "+i,e,t)},n.prototype.complete=function(){var e=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(e,[this]),this.emitEvent("always",[this]),this.jqDeferred){var t=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[t](this)}},s.prototype=Object.create(t.prototype),s.prototype.check=function(){var e=this.getIsImageComplete();return e?void this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),void(this.proxyImage.src=this.img.src))},s.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},s.prototype.confirm=function(e,t){this.isLoaded=e,this.emitEvent("progress",[this,this.img,t])},s.prototype.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},s.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},s.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},s.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},r.prototype=Object.create(s.prototype),r.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url;var e=this.getIsImageComplete();e&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},r.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},r.prototype.confirm=function(e,t){this.isLoaded=e,this.emitEvent("progress",[this,this.element,t])},n.makeJQueryPlugin=function(t){t=t||e.jQuery,t&&(a=t,a.fn.imagesLoaded=function(e,t){var i=new n(this,e,t);return i.jqDeferred.promise(a(this))})},n.makeJQueryPlugin(),n}),function(e){jQuery.fn.cols=function(t){function o(e,t){var i=[],o=0,n=e.length;for(closest_divisible_num=n;closest_divisible_num%2!=0;)closest_divisible_num++;for(chunk_size=closest_divisible_num/t;o<n;)i.push(e.slice(o,o+=chunk_size));return i}function n(e){html="";for(var t=0;t<e.length;t++)html+="<li>"+e[t]+"</li>";return html}e(this).each(function(){cur_class=e(this).attr("class"),void 0==cur_class?cur_class="":cur_class="class='"+cur_class+"' ";var s=new Array;for(e(this).find("li").each(function(){s.push(e(this).html())}),array_chunks=o(s,t),new_html="",i=0;i<t;i++)new_html=new_html+"<ul "+cur_class+">"+n(array_chunks[i])+"</ul>";e(this).replaceWith(new_html)})}}(jQuery),function(e){var t="columnizer-original-dom";e.fn.columnize=function(o){function n(t){for(i=0;i<a.length;i++)t.is("table")&&(0==t.children("tfoot").length&&t.hasClass(a[i].tableID)&&e(a[i].tfoot).clone().prependTo(t),0==t.children("thead").length&&t.hasClass(a[i].tableID)&&e(a[i].thead).clone().prependTo(t)),t.find("table ."+a[i].tableID).each(function(){0==e(this).children("tfoot").length&&e(a[i].tfoot).clone().prependTo(this),0==e(this).children("thead").length&&e(a[i].thead).clone().prependTo(this)})}function s(e,t){try{e.append(t)}catch(i){e[0].appendChild(t[0])}}this.each(function(){var i=e(this);i.data(t,i.clone(!0,!0))}),this.cols=[],this.offset=0,this.before=[],this.lastOther=0,this.prevMax=0,this.debug=0,this.setColumnStart=null,this.elipsisText="";var r={width:400,columns:!1,buildOnce:!1,overflow:!1,doneFunc:function(){},target:!1,ignoreImageLoading:!0,columnFloat:"left",lastNeverTallest:!1,accuracy:!1,precise:!1,manualBreaks:!1,disableSingle:!1,cssClassPrefix:"",elipsisText:"...",debug:0};o=e.extend(r,o);var a=new Array;return e("table").each(function(){e(this).hasClass("tableSaved")||(e(this).addClass("tableSaved"),e(this).addClass("tableID-"+a.length),a.push({tableID:"tableID-"+a.length,thead:e(this).find("thead:first").clone(),tfoot:e(this).find("tfoot:first").clone()}))}),"string"==typeof o.width&&(o.width=parseInt(o.width,10),isNaN(o.width)&&(o.width=r.width)),"function"==typeof o.setColumnStart&&(this.setColumnStart=o.setColumnStart),"string"==typeof o.elipsisText&&(this.elipsisText=o.elipsisText),o.debug&&(this.debug=o.debug),o.setWidth||(o.precise?o.setWidth=function(e){return 100/e}:o.setWidth=function(e){return Math.floor(100/e)}),this.each(function(){function t(e,t){var i=t?".":"";return g.length?i+g+"-"+e:i+e}function i(i,n,r,a){for(;(m||r.height()<a)&&n[0].childNodes.length;){var l=n[0].childNodes[0];if(e(l).find(t("columnbreak",!0)).length)return;if(e(l).hasClass(t("columnbreak")))return;s(i,e(l))}if(0!==i[0].childNodes.length){var c=i[0].childNodes,d=c[c.length-1];i[0].removeChild(d);var u=e(d);if(3==u[0].nodeType){var p=u[0].nodeValue,h=o.width/18;o.accuracy&&(h=o.accuracy);for(var f,g=null;r.height()<a&&p.length;){var v=p.indexOf(" ",h);f=v!=-1?p.substring(0,v):p,g=document.createTextNode(f),s(i,e(g)),p=p.length>h&&v!=-1?p.substring(v):""}if(r.height()>=a&&null!==g&&(i[0].removeChild(g),p=g.nodeValue+p),!p.length)return!1;u[0].nodeValue=p}return n.contents().length?n.prepend(u):s(n,u),3==u[0].nodeType}}function a(e,o,r,l){if(e.contents(":last").find(t("columnbreak",!0)).length)return void n(o);if(e.contents(":last").hasClass(t("columnbreak")))return void n(o);if(o.contents().length){var c=o.contents(":first");if("undefined"==typeof c.get(0)||1!=c.get(0).nodeType)return;var d=c.clone(!0);if(c.hasClass(t("columnbreak")))s(e,d),c.remove();else if(m)s(e,d),c.remove();else if(1==d.get(0).nodeType&&!d.hasClass(t("dontend")))if(s(e,d),d.is("img")&&r.height()<l+20)c.remove();else if(c.hasClass(t("dontsplit"))&&r.height()<l+20)c.remove();else if(d.is("img")||c.hasClass(t("dontsplit")))d.remove();else{if(d.empty(),i(d,c,r,l))c.addClass(t("split"));else{if(c.addClass(t("split")),"OL"==c.get(0).tagName){
var u=d.get(0).childElementCount+d.get(0).start;c.attr("start",u+1)}c.children().length&&a(d,c,r,l)}if(0===d.get(0).childNodes.length)d.remove(),c.removeClass(t("split"));else if(1==d.get(0).childNodes.length){var p=d.get(0).childNodes[0];if(3==p.nodeType){var h=/\S/,f=p.nodeValue;h.test(f)||(d.remove(),c.removeClass(t("split")))}}}}n(o)}function l(){if(!u.data("columnized")||1!=u.children().length){if(u.data("columnized",!0),u.data("columnizing",!0),u.empty(),u.append(e("<div class='"+t("first")+" "+t("last")+" "+t("column")+" ' style='width:100%; float: "+o.columnFloat+";'></div>")),$col=u.children().eq(u.children().length-1),$destroyable=h.clone(!0),o.overflow){for(targetHeight=o.overflow.height,i($col,$destroyable,$col,targetHeight),$destroyable.contents().find(":first-child").hasClass(t("dontend"))||a($col,$destroyable,$col,targetHeight);$col.contents(":last").length&&c($col.contents(":last").get(0));){var n=$col.contents(":last");n.remove(),$destroyable.prepend(n)}for(var r="",l=document.createElement("DIV");$destroyable[0].childNodes.length>0;){var d=$destroyable[0].childNodes[0];if(d.attributes)for(var p=0;p<d.attributes.length;p++)0===d.attributes[p].nodeName.indexOf("jQuery")&&d.removeAttribute(d.attributes[p].nodeName);l.innerHTML="",l.appendChild($destroyable[0].childNodes[0]),r+=l.innerHTML}var f=e(o.overflow.id)[0];f.innerHTML=r}else s($col,$destroyable.contents());u.data("columnizing",!1),o.overflow&&o.overflow.doneFunc&&o.overflow.doneFunc(),o.doneFunc()}}function c(i){return 3==i.nodeType?!!/^\s+$/.test(i.nodeValue)&&(!!i.previousSibling&&c(i.previousSibling)):1==i.nodeType&&(!!e(i).hasClass(t("dontend"))||0!==i.childNodes.length&&c(i.childNodes[i.childNodes.length-1]))}function d(){if(v=0,f!=u.width()){f=u.width();var n=Math.round(u.width()/o.width),r=o.width,d=o.height;if(o.columns&&(n=o.columns),m&&(n=h.find(t("columnbreak",!0)).length+1,r=!1),n<=1&&!o.disableSingle)return l();if(!u.data("columnizing")){u.data("columnized",!0),u.data("columnizing",!0),u.empty(),u.append(e("<div style='width:"+o.setWidth(n)+"%; float: "+o.columnFloat+";'></div>")),x=u.children(":last"),s(x,h.clone()),p=x.height(),u.empty();var g=p/n,y=3,w=!1;o.overflow?(y=1,g=o.overflow.height):d&&r&&(y=1,g=d,w=!0);for(var b=0;b<y&&b<20;b++){u.empty();var S,k,x,C;try{S=h.clone(!0)}catch(T){S=h.clone()}S.css("visibility","hidden");for(var E=0;E<n;E++)k=0===E?t("first"):"",k+=" "+t("column"),k=E==n-1?t("last")+" "+k:k,u.append(e("<div class='"+k+"' style='width:"+o.setWidth(n)+"%; float: "+o.columnFloat+";'></div>"));for(E=0;E<n-(o.overflow?0:1)||w&&S.contents().length;){for(u.children().length<=E&&u.append(e("<div class='"+k+"' style='width:"+o.setWidth(n)+"%; float: "+o.columnFloat+";'></div>")),x=u.children().eq(E),w&&x.width(r+"px"),i(x,S,x,g),a(x,S,x,g);x.contents(":last").length&&c(x.contents(":last").get(0));)C=x.contents(":last"),C.remove(),S.prepend(C);E++,0===x.contents().length&&S.contents().length?x.append(S.contents(":first")):E!=n-(o.overflow?0:1)||o.overflow||S.find(t("columnbreak",!0)).length&&n++}if(o.overflow&&!w){var I=!1,$=document.all&&navigator.appVersion.indexOf("MSIE 7.")!=-1;if(I||$){for(var P="",A=document.createElement("DIV");S[0].childNodes.length>0;){var O=S[0].childNodes[0];for(E=0;E<O.attributes.length;E++)0===O.attributes[E].nodeName.indexOf("jQuery")&&O.removeAttribute(O.attributes[E].nodeName);A.innerHTML="",A.appendChild(S[0].childNodes[0]),P+=A.innerHTML}var L=e(o.overflow.id)[0];L.innerHTML=P}else e(o.overflow.id).empty().append(S.contents().clone(!0))}else if(w)u.children().each(function(e){x=u.children().eq(e),x.width(r+"px"),0===e?x.addClass(t("first")):e==u.children().length-1?x.addClass(t("last")):(x.removeClass(t("first")),x.removeClass(t("last")))}),u.width(u.children().length*r+"px");else{x=u.children().eq(u.children().length-1),S.contents().each(function(){x.append(e(this))});var z=(x.height(),0),H=1e7,M=0,j=!1,_=0;u.children().each(function(e){return function(i){var o=e.children().eq(i),n=o.children(":last").find(t("columnbreak",!0)).length;if(!n){var s=o.height();j=!1,z+=s,s>M&&(M=s,j=!0),s<H&&(H=s),_++}}}(u));var D=z/_;0===z?b=y:o.lastNeverTallest&&j?(v+=5,g+=30,b==y-1&&y++):M-H>30?g=D+30:Math.abs(D-g)>20?g=D:b=y}u.append(e("<br style='clear:both;'>"))}u.find(t("column",!0)).find(":first"+t("removeiffirst",!0)).remove(),u.find(t("column",!0)).find(":last"+t("removeiflast",!0)).remove(),u.find(t("split",!0)).find(":first"+t("removeiffirst",!0)).remove(),u.find(t("split",!0)).find(":last"+t("removeiflast",!0)).remove(),u.data("columnizing",!1),o.overflow&&o.overflow.doneFunc(),o.doneFunc()}}}var u=e(o.target?o.target:this),p=e(this).height(),h=e("<div></div>"),f=0,m=o.manualBreaks,g=r.cssClassPrefix;"string"==typeof o.cssClassPrefix&&(g=o.cssClassPrefix);var v=0;if(s(h,e(this).contents().clone(!0)),!o.ignoreImageLoading&&!o.target&&!u.data("imageLoaded")&&(u.data("imageLoaded",!0),e(this).find("img").length>0)){var y=function(e,t){return function(){e.data("firstImageLoaded")||(e.data("firstImageLoaded","true"),s(e.empty(),t.children().clone(!0)),e.columnize(o))}}(e(this),h);return e(this).find("img").one("load",y),void e(this).find("img").one("abort",y)}u.empty(),d(),o.buildOnce||e(window).resize(function(){o.buildOnce||(u.data("timeout")&&clearTimeout(u.data("timeout")),u.data("timeout",setTimeout(d,200)))})})},e.fn.uncolumnize=function(){this.each(function(){var i,o=e(this);(i=o.data(t))&&o.replaceWith(i)})},e.fn.renumberByJS=function(t,i,o,n){if(this.setList=function(t,i,o){var n,s=this.before.parents();if(n=e(t[this.offset-1]).find(">*"),n.last()[0].tagName!=o.toUpperCase())return this.debug&&console.log("Last item in previous column, isn't a list..."),0;n=n.length;var r=1;if(r=this.lastOther<=0?this.before.children().length+1:e(s[this.lastOther]).children().length+1,e(t[this.offset]).find(o+":first li.split").length){var a=e(t[this.offset-1]).find(o+":last li:last");if(""===this.elipsisText||e(t[this.offset-1]).find(o+":last ~ div").length||e(t[this.offset-1]).find(o+":last ~ p").length);else if(0==e(a).find("ul, ol, dl").length){var l=a.last().text(),c=l.length;";"==l.substring(c-1)?l.substring(c-4)!=this.elipsisText+";"&&(l=l.substring(0,c-1)+this.elipsisText+";"):l.substring(c-3)!=this.elipsisText&&(l+=this.elipsisText),a.last().text(l)}0==e(t[this.offset]).find(o+":first >li.split >"+o).length&&r--}if(1==n&&(r+=this.prevMax),this.nest>1){this.debug&&console.log("Supposed to be a nested list...decr"),r--;var d=e(t[this.offset-1]).find(o+":first li.split:first");d.length>0&&(this.debug&&console.log("Previous column started with a split item, so that count is one less than expected"),r--),d=e(t[this.offset]).find(o+":first li:first").clone(),d.children().remove(),e.trim(d.text()).length>0&&(this.debug&&console.log("If that was a complete list in the previous column, don't decr."),r++,0==e(t[this.offset-1]).find(">"+o+":last ").children().length&&(this.debug&&console.log("unless that was empty, in which case revert"),r--))}else{var d=e(t[this.offset]).find(o+":first li:first "+o+".split li.split");d.length>0&&(this.debug&&console.log("[Nested] Column started with a split item, so that count is one less than expected"),r--)}return this.debug&&console.log("Setting the start value to "+r+" ("+this.prevMax+")"),r>0&&("function"==typeof this.setColumnStart?this.setColumnStart(i,r):i.attr("start",r)),0},"undefined"==typeof o&&(o=!1),"undefined"==typeof n&&(n=!1),!o&&!n)throw"renumberByJS(): Bad param, must pass an id or a class";var s="";this.prevMax=1,s=n?"."+n:"#"+o;var r=t.toLowerCase(),a=t.toUpperCase();for(this.cols=e(s),this.debug&&console.log("There are "+this.cols.length+" items, looking for "+r),this.before=e(this.cols[0]).find(r+":last"),this.prevMax=this.before.children().length,this.offset=1;this.offset<this.cols.length;this.offset++)if(this.debug&&console.log("iterating "+this.offset+"...[of "+this.cols.length+"]"),this.offset%i!=0){if(this.before=e(this.cols[this.offset-1]).find(r+":last"),this.before.length){this.debug&&console.log("Have some "+t+" elements in the previous column");var l=e(this.cols[this.offset]).find(r+":first"),c=e(this.cols[this.offset]).find("*:first");if(c[0]!==l[0])continue;var d=this.before.parents();this.lastOther=0;for(var u=!1;this.lastOther<d.length;this.lastOther++)if(d[this.lastOther].tagName!=a&&"LI"!=d[this.lastOther].tagName){u=!0,this.lastOther--;break}this.nest=1,e(this.cols[this.offset]).find(">"+r+":first li "+r+":first").length&&(this.nest=2),this.setList(this.cols,l,r),this.lastOther--,l=e(this.cols[this.offset]).find(r+":first li "+r+":first"),l.length&&(this.before=e(this.cols[this.offset-1]).find(">"+r+":last li "+r+":last"),this.prevMax=0,this.nest=1,this.setList(this.cols,l,r));var p=e(this.cols[this.offset-1]).find(">"+r+":last");this.prevMax=p.children().length}}else this.debug&&console.log("First column (in theory..)"),this.prevMax=1;return 0}}(jQuery),function(e){"use strict";e.fn.fitVids=function(t){var i={customSelector:null};if(!document.getElementById("fit-vids-style")){var o=document.createElement("div"),n=document.getElementsByTagName("base")[0]||document.getElementsByTagName("script")[0],s="&shy;<style>.fluid-width-video-wrapper{width:100%;position:relative;padding:0;}.fluid-width-video-wrapper iframe,.fluid-width-video-wrapper object,.fluid-width-video-wrapper embed {position:absolute;top:0;left:0;width:100%;height:100%;}</style>";o.className="fit-vids-style",o.id="fit-vids-style",o.style.display="none",o.innerHTML=s,n.parentNode.insertBefore(o,n)}return t&&e.extend(i,t),this.each(function(){var t=["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&&t.push(i.customSelector);var o=e(this).find(t.join(","));o=o.not("object object"),o.each(function(){var t=e(this);if(!("embed"===this.tagName.toLowerCase()&&t.parent("object").length||t.parent(".fluid-width-video-wrapper").length)){var i="object"===this.tagName.toLowerCase()||t.attr("height")&&!isNaN(parseInt(t.attr("height"),10))?parseInt(t.attr("height"),10):t.height(),o=isNaN(parseInt(t.attr("width"),10))?t.width():parseInt(t.attr("width"),10),n=i/o;if(!t.attr("id")){var s="fitvid"+Math.floor(999999*Math.random());t.attr("id",s)}t.wrap('<div class="fluid-width-video-wrapper"></div>').parent(".fluid-width-video-wrapper").css("padding-top",100*n+"%"),t.removeAttr("height").removeAttr("width")}})})}}(window.jQuery||window.Zepto),!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e("object"==typeof exports?require("jquery"):window.jQuery||window.Zepto)}(function(e){var t,i,o,n,s,r,a="Close",l="BeforeClose",c="AfterClose",d="BeforeAppend",u="MarkupParse",p="Open",h="Change",f="mfp",m="."+f,g="mfp-ready",v="mfp-removing",y="mfp-prevent-close",w=function(){},b=!!window.jQuery,S=e(window),k=function(e,i){t.ev.on(f+e+m,i)},x=function(t,i,o,n){var s=document.createElement("div");return s.className="mfp-"+t,o&&(s.innerHTML=o),n?i&&i.appendChild(s):(s=e(s),i&&s.appendTo(i)),s},C=function(i,o){t.ev.triggerHandler(f+i,o),t.st.callbacks&&(i=i.charAt(0).toLowerCase()+i.slice(1),t.st.callbacks[i]&&t.st.callbacks[i].apply(t,e.isArray(o)?o:[o]))},T=function(i){return i===r&&t.currTemplate.closeBtn||(t.currTemplate.closeBtn=e(t.st.closeMarkup.replace("%title%",t.st.tClose)),r=i),t.currTemplate.closeBtn},E=function(){e.magnificPopup.instance||(t=new w,t.init(),e.magnificPopup.instance=t)},I=function(){var e=document.createElement("p").style,t=["ms","O","Moz","Webkit"];if(void 0!==e.transition)return!0;for(;t.length;)if(t.pop()+"Transition"in e)return!0;return!1};w.prototype={constructor:w,init:function(){var i=navigator.appVersion;t.isLowIE=t.isIE8=document.all&&!document.addEventListener,t.isAndroid=/android/gi.test(i),t.isIOS=/iphone|ipad|ipod/gi.test(i),t.supportsTransition=I(),t.probablyMobile=t.isAndroid||t.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),o=e(document),t.popupsCache={}},open:function(i){var n;if(i.isObj===!1){t.items=i.items.toArray(),t.index=0;var r,a=i.items;for(n=0;n<a.length;n++)if(r=a[n],r.parsed&&(r=r.el[0]),r===i.el[0]){t.index=n;break}}else t.items=e.isArray(i.items)?i.items:[i.items],t.index=i.index||0;if(t.isOpen)return void t.updateItemHTML();t.types=[],s="",i.mainEl&&i.mainEl.length?t.ev=i.mainEl.eq(0):t.ev=o,i.key?(t.popupsCache[i.key]||(t.popupsCache[i.key]={}),t.currTemplate=t.popupsCache[i.key]):t.currTemplate={},t.st=e.extend(!0,{},e.magnificPopup.defaults,i),t.fixedContentPos="auto"===t.st.fixedContentPos?!t.probablyMobile:t.st.fixedContentPos,t.st.modal&&(t.st.closeOnContentClick=!1,t.st.closeOnBgClick=!1,t.st.showCloseBtn=!1,t.st.enableEscapeKey=!1),t.bgOverlay||(t.bgOverlay=x("bg").on("click"+m,function(){t.close()}),t.wrap=x("wrap").attr("tabindex",-1).on("click"+m,function(e){t._checkIfClose(e.target)&&t.close()}),t.container=x("container",t.wrap)),t.contentContainer=x("content"),t.st.preloader&&(t.preloader=x("preloader",t.container,t.st.tLoading));var l=e.magnificPopup.modules;for(n=0;n<l.length;n++){var c=l[n];c=c.charAt(0).toUpperCase()+c.slice(1),t["init"+c].call(t)}C("BeforeOpen"),t.st.showCloseBtn&&(t.st.closeBtnInside?(k(u,function(e,t,i,o){i.close_replaceWith=T(o.type)}),s+=" mfp-close-btn-in"):t.wrap.append(T())),t.st.alignTop&&(s+=" mfp-align-top"),t.fixedContentPos?t.wrap.css({overflow:t.st.overflowY,overflowX:"hidden",overflowY:t.st.overflowY}):t.wrap.css({top:S.scrollTop(),position:"absolute"}),(t.st.fixedBgPos===!1||"auto"===t.st.fixedBgPos&&!t.fixedContentPos)&&t.bgOverlay.css({height:o.height(),position:"absolute"}),t.st.enableEscapeKey&&o.on("keyup"+m,function(e){27===e.keyCode&&t.close()}),S.on("resize"+m,function(){t.updateSize()}),t.st.closeOnContentClick||(s+=" mfp-auto-cursor"),s&&t.wrap.addClass(s);var d=t.wH=S.height(),h={};if(t.fixedContentPos&&t._hasScrollBar(d)){var f=t._getScrollbarSize();f&&(h.marginRight=f)}t.fixedContentPos&&(t.isIE7?e("body, html").css("overflow","hidden"):h.overflow="hidden");var v=t.st.mainClass;return t.isIE7&&(v+=" mfp-ie7"),v&&t._addClassToMFP(v),t.updateItemHTML(),C("BuildControls"),e("html").css(h),t.bgOverlay.add(t.wrap).prependTo(t.st.prependTo||e(document.body)),t._lastFocusedEl=document.activeElement,setTimeout(function(){t.content?(t._addClassToMFP(g),t._setFocus()):t.bgOverlay.addClass(g),o.on("focusin"+m,t._onFocusIn)},16),t.isOpen=!0,t.updateSize(d),C(p),i},close:function(){t.isOpen&&(C(l),t.isOpen=!1,t.st.removalDelay&&!t.isLowIE&&t.supportsTransition?(t._addClassToMFP(v),setTimeout(function(){t._close()},t.st.removalDelay)):t._close())},_close:function(){C(a);var i=v+" "+g+" ";if(t.bgOverlay.detach(),t.wrap.detach(),t.container.empty(),t.st.mainClass&&(i+=t.st.mainClass+" "),t._removeClassFromMFP(i),t.fixedContentPos){var n={marginRight:""};t.isIE7?e("body, html").css("overflow",""):n.overflow="",e("html").css(n)}o.off("keyup"+m+" focusin"+m),t.ev.off(m),t.wrap.attr("class","mfp-wrap").removeAttr("style"),t.bgOverlay.attr("class","mfp-bg"),t.container.attr("class","mfp-container"),!t.st.showCloseBtn||t.st.closeBtnInside&&t.currTemplate[t.currItem.type]!==!0||t.currTemplate.closeBtn&&t.currTemplate.closeBtn.detach(),t.st.autoFocusLast&&t._lastFocusedEl&&e(t._lastFocusedEl).focus(),t.currItem=null,t.content=null,t.currTemplate=null,t.prevHeight=0,C(c)},updateSize:function(e){if(t.isIOS){var i=document.documentElement.clientWidth/window.innerWidth,o=window.innerHeight*i;t.wrap.css("height",o),t.wH=o}else t.wH=e||S.height();t.fixedContentPos||t.wrap.css("height",t.wH),C("Resize")},updateItemHTML:function(){var i=t.items[t.index];t.contentContainer.detach(),t.content&&t.content.detach(),i.parsed||(i=t.parseEl(t.index));var o=i.type;if(C("BeforeChange",[t.currItem?t.currItem.type:"",o]),t.currItem=i,!t.currTemplate[o]){var s=!!t.st[o]&&t.st[o].markup;C("FirstMarkupParse",s),s?t.currTemplate[o]=e(s):t.currTemplate[o]=!0}n&&n!==i.type&&t.container.removeClass("mfp-"+n+"-holder");var r=t["get"+o.charAt(0).toUpperCase()+o.slice(1)](i,t.currTemplate[o]);t.appendContent(r,o),i.preloaded=!0,C(h,i),n=i.type,t.container.prepend(t.contentContainer),C("AfterChange")},appendContent:function(e,i){t.content=e,e?t.st.showCloseBtn&&t.st.closeBtnInside&&t.currTemplate[i]===!0?t.content.find(".mfp-close").length||t.content.append(T()):t.content=e:t.content="",C(d),t.container.addClass("mfp-"+i+"-holder"),t.contentContainer.append(t.content)},parseEl:function(i){var o,n=t.items[i];if(n.tagName?n={el:e(n)}:(o=n.type,n={data:n,src:n.src}),n.el){for(var s=t.types,r=0;r<s.length;r++)if(n.el.hasClass("mfp-"+s[r])){o=s[r];break}n.src=n.el.attr("data-mfp-src"),n.src||(n.src=n.el.attr("href"))}return n.type=o||t.st.type||"inline",n.index=i,n.parsed=!0,t.items[i]=n,C("ElementParse",n),t.items[i]},addGroup:function(e,i){var o=function(o){o.mfpEl=this,t._openClick(o,e,i)};i||(i={});var n="click.magnificPopup";i.mainEl=e,i.items?(i.isObj=!0,e.off(n).on(n,o)):(i.isObj=!1,i.delegate?e.off(n).on(n,i.delegate,o):(i.items=e,e.off(n).on(n,o)))},_openClick:function(i,o,n){var s=void 0!==n.midClick?n.midClick:e.magnificPopup.defaults.midClick;if(s||!(2===i.which||i.ctrlKey||i.metaKey||i.altKey||i.shiftKey)){var r=void 0!==n.disableOn?n.disableOn:e.magnificPopup.defaults.disableOn;if(r)if(e.isFunction(r)){if(!r.call(t))return!0}else if(S.width()<r)return!0;i.type&&(i.preventDefault(),t.isOpen&&i.stopPropagation()),n.el=e(i.mfpEl),n.delegate&&(n.items=o.find(n.delegate)),t.open(n)}},updateStatus:function(e,o){if(t.preloader){i!==e&&t.container.removeClass("mfp-s-"+i),o||"loading"!==e||(o=t.st.tLoading);var n={status:e,text:o};C("UpdateStatus",n),e=n.status,o=n.text,t.preloader.html(o),t.preloader.find("a").on("click",function(e){e.stopImmediatePropagation()}),t.container.addClass("mfp-s-"+e),i=e}},_checkIfClose:function(i){if(!e(i).hasClass(y)){var o=t.st.closeOnContentClick,n=t.st.closeOnBgClick;if(o&&n)return!0;if(!t.content||e(i).hasClass("mfp-close")||t.preloader&&i===t.preloader[0])return!0;if(i===t.content[0]||e.contains(t.content[0],i)){if(o)return!0}else if(n&&e.contains(document,i))return!0;return!1}},_addClassToMFP:function(e){t.bgOverlay.addClass(e),t.wrap.addClass(e)},_removeClassFromMFP:function(e){this.bgOverlay.removeClass(e),t.wrap.removeClass(e)},_hasScrollBar:function(e){return(t.isIE7?o.height():document.body.scrollHeight)>(e||S.height())},_setFocus:function(){(t.st.focus?t.content.find(t.st.focus).eq(0):t.wrap).focus()},_onFocusIn:function(i){return i.target===t.wrap[0]||e.contains(t.wrap[0],i.target)?void 0:(t._setFocus(),!1)},_parseMarkup:function(t,i,o){var n;o.data&&(i=e.extend(o.data,i)),C(u,[t,i,o]),e.each(i,function(i,o){if(void 0===o||o===!1)return!0;if(n=i.split("_"),n.length>1){var s=t.find(m+"-"+n[0]);if(s.length>0){var r=n[1];"replaceWith"===r?s[0]!==o[0]&&s.replaceWith(o):"img"===r?s.is("img")?s.attr("src",o):s.replaceWith(e("<img>").attr("src",o).attr("class",s.attr("class"))):s.attr(n[1],o)}}else t.find(m+"-"+i).html(o)})},_getScrollbarSize:function(){if(void 0===t.scrollbarSize){var e=document.createElement("div");e.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(e),t.scrollbarSize=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return t.scrollbarSize}},e.magnificPopup={instance:null,proto:w.prototype,modules:[],open:function(t,i){return E(),t=t?e.extend(!0,{},t):{},t.isObj=!0,t.index=i||0,this.instance.open(t)},close:function(){return e.magnificPopup.instance&&e.magnificPopup.instance.close()},registerModule:function(t,i){i.options&&(e.magnificPopup.defaults[t]=i.options),e.extend(this.proto,i.proto),this.modules.push(t)},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:'<button title="%title%" type="button" class="mfp-close">&#215;</button>',tClose:"Close (Esc)",tLoading:"Loading...",autoFocusLast:!0}},e.fn.magnificPopup=function(i){E();var o=e(this);if("string"==typeof i)if("open"===i){var n,s=b?o.data("magnificPopup"):o[0].magnificPopup,r=parseInt(arguments[1],10)||0;s.items?n=s.items[r]:(n=o,s.delegate&&(n=n.find(s.delegate)),n=n.eq(r)),t._openClick({mfpEl:n},o,s)}else t.isOpen&&t[i].apply(t,Array.prototype.slice.call(arguments,1));else i=e.extend(!0,{},i),b?o.data("magnificPopup",i):o[0].magnificPopup=i,t.addGroup(o,i);return o};var $,P,A,O="inline",L=function(){A&&(P.after(A.addClass($)).detach(),A=null)};e.magnificPopup.registerModule(O,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){t.types.push(O),k(a+"."+O,function(){L()})},getInline:function(i,o){if(L(),i.src){var n=t.st.inline,s=e(i.src);if(s.length){var r=s[0].parentNode;r&&r.tagName&&(P||($=n.hiddenClass,P=x($),$="mfp-"+$),A=s.after(P).detach().removeClass($)),t.updateStatus("ready")}else t.updateStatus("error",n.tNotFound),s=e("<div>");return i.inlineElement=s,s}return t.updateStatus("ready"),t._parseMarkup(o,{},i),o}}});var z,H="ajax",M=function(){z&&e(document.body).removeClass(z)},j=function(){M(),t.req&&t.req.abort()};e.magnificPopup.registerModule(H,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'<a href="%url%">The content</a> could not be loaded.'},proto:{initAjax:function(){t.types.push(H),z=t.st.ajax.cursor,k(a+"."+H,j),k("BeforeChange."+H,j)},getAjax:function(i){z&&e(document.body).addClass(z),t.updateStatus("loading");var o=e.extend({url:i.src,success:function(o,n,s){var r={data:o,xhr:s};C("ParseAjax",r),t.appendContent(e(r.data),H),i.finished=!0,M(),t._setFocus(),setTimeout(function(){t.wrap.addClass(g)},16),t.updateStatus("ready"),C("AjaxContentAdded")},error:function(){M(),i.finished=i.loadError=!0,t.updateStatus("error",t.st.ajax.tError.replace("%url%",i.src))}},t.st.ajax.settings);return t.req=e.ajax(o),""}}});var _,D=function(i){if(i.data&&void 0!==i.data.title)return i.data.title;var o=t.st.image.titleSrc;if(o){if(e.isFunction(o))return o.call(t,i);if(i.el)return i.el.attr(o)||""}return""};e.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'<a href="%url%">The image</a> could not be loaded.'},proto:{initImage:function(){var i=t.st.image,o=".image";t.types.push("image"),k(p+o,function(){"image"===t.currItem.type&&i.cursor&&e(document.body).addClass(i.cursor)}),k(a+o,function(){i.cursor&&e(document.body).removeClass(i.cursor),S.off("resize"+m)}),k("Resize"+o,t.resizeImage),t.isLowIE&&k("AfterChange",t.resizeImage)},resizeImage:function(){var e=t.currItem;if(e&&e.img&&t.st.image.verticalFit){var i=0;t.isLowIE&&(i=parseInt(e.img.css("padding-top"),10)+parseInt(e.img.css("padding-bottom"),10)),e.img.css("max-height",t.wH-i)}},_onImageHasSize:function(e){e.img&&(e.hasSize=!0,_&&clearInterval(_),e.isCheckingImgSize=!1,C("ImageHasSize",e),e.imgHidden&&(t.content&&t.content.removeClass("mfp-loading"),e.imgHidden=!1))},findImageSize:function(e){var i=0,o=e.img[0],n=function(s){_&&clearInterval(_),_=setInterval(function(){return o.naturalWidth>0?void t._onImageHasSize(e):(i>200&&clearInterval(_),i++,void(3===i?n(10):40===i?n(50):100===i&&n(500)))},s)};n(1)},getImage:function(i,o){var n=0,s=function(){i&&(i.img[0].complete?(i.img.off(".mfploader"),i===t.currItem&&(t._onImageHasSize(i),t.updateStatus("ready")),i.hasSize=!0,i.loaded=!0,C("ImageLoadComplete")):(n++,200>n?setTimeout(s,100):r()))},r=function(){i&&(i.img.off(".mfploader"),i===t.currItem&&(t._onImageHasSize(i),t.updateStatus("error",a.tError.replace("%url%",i.src))),i.hasSize=!0,i.loaded=!0,i.loadError=!0)},a=t.st.image,l=o.find(".mfp-img");if(l.length){var c=document.createElement("img");c.className="mfp-img",i.el&&i.el.find("img").length&&(c.alt=i.el.find("img").attr("alt")),i.img=e(c).on("load.mfploader",s).on("error.mfploader",r),c.src=i.src,l.is("img")&&(i.img=i.img.clone()),c=i.img[0],c.naturalWidth>0?i.hasSize=!0:c.width||(i.hasSize=!1)}return t._parseMarkup(o,{title:D(i),img_replaceWith:i.img},i),t.resizeImage(),i.hasSize?(_&&clearInterval(_),i.loadError?(o.addClass("mfp-loading"),t.updateStatus("error",a.tError.replace("%url%",i.src))):(o.removeClass("mfp-loading"),t.updateStatus("ready")),o):(t.updateStatus("loading"),i.loading=!0,i.hasSize||(i.imgHidden=!0,o.addClass("mfp-loading"),t.findImageSize(i)),o)}}});var N,R=function(){return void 0===N&&(N=void 0!==document.createElement("p").style.MozTransform),N};e.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(e){return e.is("img")?e:e.find("img")}},proto:{initZoom:function(){var e,i=t.st.zoom,o=".zoom";if(i.enabled&&t.supportsTransition){var n,s,r=i.duration,c=function(e){var t=e.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),o="all "+i.duration/1e3+"s "+i.easing,n={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},s="transition";return n["-webkit-"+s]=n["-moz-"+s]=n["-o-"+s]=n[s]=o,t.css(n),t},d=function(){t.content.css("visibility","visible")};k("BuildControls"+o,function(){if(t._allowZoom()){if(clearTimeout(n),t.content.css("visibility","hidden"),e=t._getItemToZoom(),!e)return void d();s=c(e),s.css(t._getOffset()),t.wrap.append(s),n=setTimeout(function(){s.css(t._getOffset(!0)),n=setTimeout(function(){d(),setTimeout(function(){s.remove(),e=s=null,C("ZoomAnimationEnded")},16)},r)},16)}}),k(l+o,function(){if(t._allowZoom()){if(clearTimeout(n),t.st.removalDelay=r,!e){if(e=t._getItemToZoom(),!e)return;s=c(e)}s.css(t._getOffset(!0)),t.wrap.append(s),t.content.css("visibility","hidden"),setTimeout(function(){s.css(t._getOffset())},16)}}),k(a+o,function(){t._allowZoom()&&(d(),s&&s.remove(),e=null)})}},_allowZoom:function(){return"image"===t.currItem.type},_getItemToZoom:function(){return!!t.currItem.hasSize&&t.currItem.img},_getOffset:function(i){var o;o=i?t.currItem.img:t.st.zoom.opener(t.currItem.el||t.currItem);var n=o.offset(),s=parseInt(o.css("padding-top"),10),r=parseInt(o.css("padding-bottom"),10);n.top-=e(window).scrollTop()-s;var a={width:o.width(),height:(b?o.innerHeight():o[0].offsetHeight)-r-s};return R()?a["-moz-transform"]=a.transform="translate("+n.left+"px,"+n.top+"px)":(a.left=n.left,a.top=n.top),a}}});var q="iframe",B="//about:blank",F=function(e){if(t.currTemplate[q]){var i=t.currTemplate[q].find("iframe");i.length&&(e||(i[0].src=B),t.isIE8&&i.css("display",e?"block":"none"))}};e.magnificPopup.registerModule(q,{options:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe></div>',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){t.types.push(q),k("BeforeChange",function(e,t,i){t!==i&&(t===q?F():i===q&&F(!0))}),k(a+"."+q,function(){F()})},getIframe:function(i,o){var n=i.src,s=t.st.iframe;e.each(s.patterns,function(){return n.indexOf(this.index)>-1?(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):void 0});var r={};return s.srcAction&&(r[s.srcAction]=n),t._parseMarkup(o,r,i),t.updateStatus("ready"),o}}});var W=function(e){var i=t.items.length;return e>i-1?e-i:0>e?i+e:e},V=function(e,t,i){return e.replace(/%curr%/gi,t+1).replace(/%total%/gi,i)};e.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>',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=t.st.gallery,n=".mfp-gallery";return t.direction=!0,!(!i||!i.enabled)&&(s+=" mfp-gallery",k(p+n,function(){i.navigateByImgClick&&t.wrap.on("click"+n,".mfp-img",function(){return t.items.length>1?(t.next(),!1):void 0}),o.on("keydown"+n,function(e){37===e.keyCode?t.prev():39===e.keyCode&&t.next()})}),k("UpdateStatus"+n,function(e,i){i.text&&(i.text=V(i.text,t.currItem.index,t.items.length))}),k(u+n,function(e,o,n,s){var r=t.items.length;n.counter=r>1?V(i.tCounter,s.index,r):""}),k("BuildControls"+n,function(){if(t.items.length>1&&i.arrows&&!t.arrowLeft){var o=i.arrowMarkup,n=t.arrowLeft=e(o.replace(/%title%/gi,i.tPrev).replace(/%dir%/gi,"left")).addClass(y),s=t.arrowRight=e(o.replace(/%title%/gi,i.tNext).replace(/%dir%/gi,"right")).addClass(y);n.click(function(){t.prev()}),s.click(function(){t.next()}),t.container.append(n.add(s))}}),k(h+n,function(){t._preloadTimeout&&clearTimeout(t._preloadTimeout),t._preloadTimeout=setTimeout(function(){t.preloadNearbyImages(),t._preloadTimeout=null},16)}),void k(a+n,function(){o.off(n),t.wrap.off("click"+n),t.arrowRight=t.arrowLeft=null}))},next:function(){t.direction=!0,t.index=W(t.index+1),t.updateItemHTML()},prev:function(){t.direction=!1,t.index=W(t.index-1),t.updateItemHTML()},goTo:function(e){t.direction=e>=t.index,t.index=e,t.updateItemHTML()},preloadNearbyImages:function(){var e,i=t.st.gallery.preload,o=Math.min(i[0],t.items.length),n=Math.min(i[1],t.items.length);for(e=1;e<=(t.direction?n:o);e++)t._preloadItem(t.index+e);for(e=1;e<=(t.direction?o:n);e++)t._preloadItem(t.index-e)},_preloadItem:function(i){if(i=W(i),!t.items[i].preloaded){var o=t.items[i];o.parsed||(o=t.parseEl(i)),C("LazyLoad",o),"image"===o.type&&(o.img=e('<img class="mfp-img" />').on("load.mfploader",function(){o.hasSize=!0}).on("error.mfploader",function(){o.hasSize=!0,o.loadError=!0,C("LazyLoadError",o)}).attr("src",o.src)),o.preloaded=!0}}}});var U="retina";e.magnificPopup.registerModule(U,{options:{replaceSrc:function(e){return e.src.replace(/\.\w+$/,function(e){return"@2x"+e})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var e=t.st.retina,i=e.ratio;i=isNaN(i)?i():i,i>1&&(k("ImageHasSize."+U,function(e,t){t.img.css({"max-width":t.img[0].naturalWidth/i,width:"100%"})}),k("ElementParse."+U,function(t,o){o.src=e.replaceSrc(o,i)}))}}}}),E()}),function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):"undefined"!=typeof module&&module.exports?module.exports=e(require("jquery")):e(jQuery)}(function(e){var t=-1,i=-1,o=function(e){return parseFloat(e)||0},n=function(t){var i=1,n=e(t),s=null,r=[];return n.each(function(){var t=e(this),n=t.offset().top-o(t.css("margin-top")),a=r.length>0?r[r.length-1]:null;null===a?r.push(t):Math.floor(Math.abs(s-n))<=i?r[r.length-1]=a.add(t):r.push(t),s=n}),r},s=function(t){var i={byRow:!0,property:"height",target:null,remove:!1};return"object"==typeof t?e.extend(i,t):("boolean"==typeof t?i.byRow=t:"remove"===t&&(i.remove=!0),i)},r=e.fn.matchHeight=function(t){var i=s(t);if(i.remove){var o=this;return this.css(i.property,""),e.each(r._groups,function(e,t){t.elements=t.elements.not(o)}),this}return this.length<=1&&!i.target?this:(r._groups.push({elements:this,options:i}),r._apply(this,i),this)};r.version="master",r._groups=[],r._throttle=80,r._maintainScroll=!1,r._beforeUpdate=null,r._afterUpdate=null,r._rows=n,r._parse=o,r._parseOptions=s,r._apply=function(t,i){var a=s(i),l=e(t),c=[l],d=e(window).scrollTop(),u=e("html").outerHeight(!0),p=l.parents().filter(":hidden");return p.each(function(){var t=e(this);t.data("style-cache",t.attr("style"))}),p.css("display","block"),a.byRow&&!a.target&&(l.each(function(){var t=e(this),i=t.css("display");"inline-block"!==i&&"flex"!==i&&"inline-flex"!==i&&(i="block"),
t.data("style-cache",t.attr("style")),t.css({display:i,"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(l),l.each(function(){var t=e(this);t.attr("style",t.data("style-cache")||"")})),e.each(c,function(t,i){var n=e(i),s=0;if(a.target)s=a.target.outerHeight(!1);else{if(a.byRow&&n.length<=1)return void n.css(a.property,"");n.each(function(){var t=e(this),i=t.attr("style"),o=t.css("display");"inline-block"!==o&&"flex"!==o&&"inline-flex"!==o&&(o="block");var n={display:o};n[a.property]="",t.css(n),t.outerHeight(!1)>s&&(s=t.outerHeight(!1)),i?t.attr("style",i):t.css("display","")})}n.each(function(){var t=e(this),i=0;a.target&&t.is(a.target)||("border-box"!==t.css("box-sizing")&&(i+=o(t.css("border-top-width"))+o(t.css("border-bottom-width")),i+=o(t.css("padding-top"))+o(t.css("padding-bottom"))),t.css(a.property,s-i+"px"))})}),p.each(function(){var t=e(this);t.attr("style",t.data("style-cache")||null)}),r._maintainScroll&&e(window).scrollTop(d/u*e("html").outerHeight(!0)),this},r._applyDataApi=function(){var t={};e("[data-match-height], [data-mh]").each(function(){var i=e(this),o=i.attr("data-mh")||i.attr("data-match-height");o in t?t[o]=t[o].add(i):t[o]=i}),e.each(t,function(){this.matchHeight(!0)})};var a=function(t){r._beforeUpdate&&r._beforeUpdate(t,r._groups),e.each(r._groups,function(){r._apply(this.elements,this.options)}),r._afterUpdate&&r._afterUpdate(t,r._groups)};r._update=function(o,n){if(n&&"resize"===n.type){var s=e(window).width();if(s===t)return;t=s}o?i===-1&&(i=setTimeout(function(){a(n),i=-1},r._throttle)):a(n)},e(r._applyDataApi),e(window).bind("load",function(e){r._update(!1,e)}),e(window).bind("resize orientationchange",function(e){r._update(!0,e)})}),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof module&&module.exports?module.exports=function(t,i){return void 0===i&&(i="undefined"!=typeof window?require("jquery"):require("jquery")(t)),e(i),i}:e(jQuery)}(function(e){"use strict";var t=e(document),i=e(window),o="selectric",n="Input Items Open Disabled TempShow HideSelect Wrapper Focus Hover Responsive Above Below Scroll Group GroupLabel",s=".sl",r=["a","e","i","o","u","n","c","y"],a=[/[\xE0-\xE5]/g,/[\xE8-\xEB]/g,/[\xEC-\xEF]/g,/[\xF2-\xF6]/g,/[\xF9-\xFC]/g,/[\xF1]/g,/[\xE7]/g,/[\xFD-\xFF]/g],l=function(t,i){var o=this;o.element=t,o.$element=e(t),o.state={multiple:!!o.$element.attr("multiple"),enabled:!1,opened:!1,currValue:-1,selectedIdx:-1,highlightedIdx:-1},o.eventTriggers={open:o.open,close:o.close,destroy:o.destroy,refresh:o.refresh,init:o.init},o.init(i)};l.prototype={utils:{isMobile:function(){return/android|ip(hone|od|ad)/i.test(navigator.userAgent)},escapeRegExp:function(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")},replaceDiacritics:function(e){for(var t=a.length;t--;)e=e.toLowerCase().replace(a[t],r[t]);return e},format:function(e){var t=arguments;return(""+e).replace(/\{(?:(\d+)|(\w+))\}/g,function(e,i,o){return o&&t[1]?t[1][o]:t[i]})},nextEnabledItem:function(e,t){for(;e[t=(t+1)%e.length].disabled;);return t},previousEnabledItem:function(e,t){for(;e[t=(t>0?t:e.length)-1].disabled;);return t},toDash:function(e){return e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()},triggerCallback:function(t,i){var n=i.element,s=i.options["on"+t],r=[n].concat([].slice.call(arguments).slice(1));e.isFunction(s)&&s.apply(n,r),e(n).trigger(o+"-"+this.toDash(t),r)},arrayToClassname:function(t){var i=e.grep(t,function(e){return!!e});return e.trim(i.join(" "))}},init:function(t){var i=this;if(i.options=e.extend(!0,{},e.fn[o].defaults,i.options,t),i.utils.triggerCallback("BeforeInit",i),i.destroy(!0),i.options.disableOnMobile&&i.utils.isMobile())return void(i.disableOnMobile=!0);i.classes=i.getClassNames();var n=e("<input/>",{"class":i.classes.input,readonly:i.utils.isMobile()}),s=e("<div/>",{"class":i.classes.items,tabindex:-1}),r=e("<div/>",{"class":i.classes.scroll}),a=e("<div/>",{"class":i.classes.prefix,html:i.options.arrowButtonMarkup}),l=e("<span/>",{"class":"label"}),c=i.$element.wrap("<div/>").parent().append(a.prepend(l),s,n),d=e("<div/>",{"class":i.classes.hideselect});i.elements={input:n,items:s,itemsScroll:r,wrapper:a,label:l,outerWrapper:c},i.options.nativeOnMobile&&i.utils.isMobile()&&(i.elements.input=void 0,d.addClass(i.classes.prefix+"-is-native"),i.$element.on("change",function(){i.refresh()})),i.$element.on(i.eventTriggers).wrap(d),i.originalTabindex=i.$element.prop("tabindex"),i.$element.prop("tabindex",-1),i.populate(),i.activate(),i.utils.triggerCallback("Init",i)},activate:function(){var e=this,t=e.elements.items.closest(":visible").children(":hidden").addClass(e.classes.tempshow),i=e.$element.width();t.removeClass(e.classes.tempshow),e.utils.triggerCallback("BeforeActivate",e),e.elements.outerWrapper.prop("class",e.utils.arrayToClassname([e.classes.wrapper,e.$element.prop("class").replace(/\S+/g,e.classes.prefix+"-$&"),e.options.responsive?e.classes.responsive:""])),e.options.inheritOriginalWidth&&i>0&&e.elements.outerWrapper.width(i),e.unbindEvents(),e.$element.prop("disabled")?(e.elements.outerWrapper.addClass(e.classes.disabled),e.elements.input&&e.elements.input.prop("disabled",!0)):(e.state.enabled=!0,e.elements.outerWrapper.removeClass(e.classes.disabled),e.$li=e.elements.items.removeAttr("style").find("li"),e.bindEvents()),e.utils.triggerCallback("Activate",e)},getClassNames:function(){var t=this,i=t.options.customClass,o={};return e.each(n.split(" "),function(e,n){var s=i.prefix+n;o[n.toLowerCase()]=i.camelCase?s:t.utils.toDash(s)}),o.prefix=i.prefix,o},setLabel:function(){var t=this,i=t.options.labelBuilder;if(t.state.multiple){var o=e.isArray(t.state.currValue)?t.state.currValue:[t.state.currValue];o=0===o.length?[0]:o;var n=e.map(o,function(i){return e.grep(t.lookupItems,function(e){return e.index===i})[0]});n=e.grep(n,function(t){return n.length>1||0===n.length?""!==e.trim(t.value):t}),n=e.map(n,function(o){return e.isFunction(i)?i(o):t.utils.format(i,o)}),t.options.multiple.maxLabelEntries&&(n.length>=t.options.multiple.maxLabelEntries+1?(n=n.slice(0,t.options.multiple.maxLabelEntries),n.push(e.isFunction(i)?i({text:"..."}):t.utils.format(i,{text:"..."}))):n.slice(n.length-1)),t.elements.label.html(n.join(t.options.multiple.separator))}else{var s=t.lookupItems[t.state.currValue];t.elements.label.html(e.isFunction(i)?i(s):t.utils.format(i,s))}},populate:function(){var t=this,i=t.$element.children(),o=t.$element.find("option"),n=o.filter(":selected"),s=o.index(n),r=0,a=t.state.multiple?[]:0;n.length>1&&t.state.multiple&&(s=[],n.each(function(){s.push(e(this).index())})),t.state.currValue=~s?s:a,t.state.selectedIdx=t.state.currValue,t.state.highlightedIdx=t.state.currValue,t.items=[],t.lookupItems=[],i.length&&(i.each(function(i){var o=e(this);if(o.is("optgroup")){var n={element:o,label:o.prop("label"),groupDisabled:o.prop("disabled"),items:[]};o.children().each(function(i){var o=e(this);n.items[i]=t.getItemData(r,o,n.groupDisabled||o.prop("disabled")),t.lookupItems[r]=n.items[i],r++}),t.items[i]=n}else t.items[i]=t.getItemData(r,o,o.prop("disabled")),t.lookupItems[r]=t.items[i],r++}),t.setLabel(),t.elements.items.append(t.elements.itemsScroll.html(t.getItemsMarkup(t.items))))},getItemData:function(t,i,o){var n=this;return{index:t,element:i,value:i.val(),className:i.prop("class"),text:i.html(),slug:e.trim(n.utils.replaceDiacritics(i.html())),alt:i.attr("data-alt"),selected:i.prop("selected"),disabled:o}},getItemsMarkup:function(t){var i=this,o="<ul>";return e.isFunction(i.options.listBuilder)&&i.options.listBuilder&&(t=i.options.listBuilder(t)),e.each(t,function(t,n){void 0!==n.label?(o+=i.utils.format('<ul class="{1}"><li class="{2}">{3}</li>',i.utils.arrayToClassname([i.classes.group,n.groupDisabled?"disabled":"",n.element.prop("class")]),i.classes.grouplabel,n.element.prop("label")),e.each(n.items,function(e,t){o+=i.getItemMarkup(t.index,t)}),o+="</ul>"):o+=i.getItemMarkup(n.index,n)}),o+"</ul>"},getItemMarkup:function(t,i){var o=this,n=o.options.optionsItemBuilder,s={value:i.value,text:i.text,slug:i.slug,index:i.index};return o.utils.format('<li data-index="{1}" class="{2}">{3}</li>',t,o.utils.arrayToClassname([i.className,t===o.items.length-1?"last":"",i.disabled?"disabled":"",i.selected?"selected":""]),e.isFunction(n)?o.utils.format(n(i,this.$element,t),i):o.utils.format(n,s))},unbindEvents:function(){var e=this;e.elements.wrapper.add(e.$element).add(e.elements.outerWrapper).add(e.elements.input).off(s)},bindEvents:function(){var t=this;t.elements.outerWrapper.on("mouseenter"+s+" mouseleave"+s,function(i){e(this).toggleClass(t.classes.hover,"mouseenter"===i.type),t.options.openOnHover&&(clearTimeout(t.closeTimer),"mouseleave"===i.type?t.closeTimer=setTimeout(e.proxy(t.close,t),t.options.hoverIntentTimeout):t.open())}),t.elements.wrapper.on("click"+s,function(e){t.state.opened?t.close():t.open(e)}),t.options.nativeOnMobile&&t.utils.isMobile()||(t.$element.on("focus"+s,function(){t.elements.input.focus()}),t.elements.input.prop({tabindex:t.originalTabindex,disabled:!1}).on("keydown"+s,e.proxy(t.handleKeys,t)).on("focusin"+s,function(e){t.elements.outerWrapper.addClass(t.classes.focus),t.elements.input.one("blur",function(){t.elements.input.blur()}),t.options.openOnFocus&&!t.state.opened&&t.open(e)}).on("focusout"+s,function(){t.elements.outerWrapper.removeClass(t.classes.focus)}).on("input propertychange",function(){var i=t.elements.input.val(),o=new RegExp("^"+t.utils.escapeRegExp(i),"i");clearTimeout(t.resetStr),t.resetStr=setTimeout(function(){t.elements.input.val("")},t.options.keySearchTimeout),i.length&&e.each(t.items,function(e,i){if(!i.disabled){if(o.test(i.text)||o.test(i.slug))return void t.highlight(e);if(i.alt)for(var n=i.alt.split("|"),s=0;s<n.length&&n[s];s++)if(o.test(n[s].trim()))return void t.highlight(e)}})})),t.$li.on({mousedown:function(e){e.preventDefault(),e.stopPropagation()},click:function(){return t.select(e(this).data("index")),!1}})},handleKeys:function(t){var i=this,o=t.which,n=i.options.keys,s=e.inArray(o,n.previous)>-1,r=e.inArray(o,n.next)>-1,a=e.inArray(o,n.select)>-1,l=e.inArray(o,n.open)>-1,c=i.state.highlightedIdx,d=s&&0===c||r&&c+1===i.items.length,u=0;if(13!==o&&32!==o||t.preventDefault(),s||r){if(!i.options.allowWrap&&d)return;s&&(u=i.utils.previousEnabledItem(i.lookupItems,c)),r&&(u=i.utils.nextEnabledItem(i.lookupItems,c)),i.highlight(u)}return a&&i.state.opened?(i.select(c),void(i.state.multiple&&i.options.multiple.keepMenuOpen||i.close())):void(l&&!i.state.opened&&i.open())},refresh:function(){var e=this;e.populate(),e.activate(),e.utils.triggerCallback("Refresh",e)},setOptionsDimensions:function(){var e=this,t=e.elements.items.closest(":visible").children(":hidden").addClass(e.classes.tempshow),i=e.options.maxHeight,o=e.elements.items.outerWidth(),n=e.elements.wrapper.outerWidth()-(o-e.elements.items.width());!e.options.expandToItemText||n>o?e.finalWidth=n:(e.elements.items.css("overflow","scroll"),e.elements.outerWrapper.width(9e4),e.finalWidth=e.elements.items.width(),e.elements.items.css("overflow",""),e.elements.outerWrapper.width("")),e.elements.items.width(e.finalWidth).height()>i&&e.elements.items.height(i),t.removeClass(e.classes.tempshow)},isInViewport:function(){var e=this;if(e.options.forceRenderAbove===!0)e.elements.outerWrapper.addClass(e.classes.above);else if(e.options.forceRenderBelow===!0)e.elements.outerWrapper.addClass(e.classes.below);else{var t=i.scrollTop(),o=i.height(),n=e.elements.outerWrapper.offset().top,s=e.elements.outerWrapper.outerHeight(),r=n+s+e.itemsHeight<=t+o,a=n-e.itemsHeight>t,l=!r&&a,c=!l;e.elements.outerWrapper.toggleClass(e.classes.above,l),e.elements.outerWrapper.toggleClass(e.classes.below,c)}},detectItemVisibility:function(t){var i=this,o=i.$li.filter("[data-index]");i.state.multiple&&(t=e.isArray(t)&&0===t.length?0:t,t=e.isArray(t)?Math.min.apply(Math,t):t);var n=o.eq(t).outerHeight(),s=o[t].offsetTop,r=i.elements.itemsScroll.scrollTop(),a=s+2*n;i.elements.itemsScroll.scrollTop(a>r+i.itemsHeight?a-i.itemsHeight:s-n<r?s-n:r)},open:function(i){var n=this;return(!n.options.nativeOnMobile||!n.utils.isMobile())&&(n.utils.triggerCallback("BeforeOpen",n),i&&(i.preventDefault(),n.options.stopPropagation&&i.stopPropagation()),void(n.state.enabled&&(n.setOptionsDimensions(),e("."+n.classes.hideselect,"."+n.classes.open).children()[o]("close"),n.state.opened=!0,n.itemsHeight=n.elements.items.outerHeight(),n.itemsInnerHeight=n.elements.items.height(),n.elements.outerWrapper.addClass(n.classes.open),n.elements.input.val(""),i&&"focusin"!==i.type&&n.elements.input.focus(),setTimeout(function(){t.on("click"+s,e.proxy(n.close,n)).on("scroll"+s,e.proxy(n.isInViewport,n))},1),n.isInViewport(),n.options.preventWindowScroll&&t.on("mousewheel"+s+" DOMMouseScroll"+s,"."+n.classes.scroll,function(t){var i=t.originalEvent,o=e(this).scrollTop(),s=0;"detail"in i&&(s=i.detail*-1),"wheelDelta"in i&&(s=i.wheelDelta),"wheelDeltaY"in i&&(s=i.wheelDeltaY),"deltaY"in i&&(s=i.deltaY*-1),(o===this.scrollHeight-n.itemsInnerHeight&&s<0||0===o&&s>0)&&t.preventDefault()}),n.detectItemVisibility(n.state.selectedIdx),n.highlight(n.state.multiple?-1:n.state.selectedIdx),n.utils.triggerCallback("Open",n))))},close:function(){var e=this;e.utils.triggerCallback("BeforeClose",e),t.off(s),e.elements.outerWrapper.removeClass(e.classes.open),e.state.opened=!1,e.utils.triggerCallback("Close",e)},change:function(){var t=this;t.utils.triggerCallback("BeforeChange",t),t.state.multiple?(e.each(t.lookupItems,function(e){t.lookupItems[e].selected=!1,t.$element.find("option").prop("selected",!1)}),e.each(t.state.selectedIdx,function(e,i){t.lookupItems[i].selected=!0,t.$element.find("option").eq(i).prop("selected",!0)}),t.state.currValue=t.state.selectedIdx,t.setLabel(),t.utils.triggerCallback("Change",t)):t.state.currValue!==t.state.selectedIdx&&(t.$element.prop("selectedIndex",t.state.currValue=t.state.selectedIdx).data("value",t.lookupItems[t.state.selectedIdx].text),t.setLabel(),t.utils.triggerCallback("Change",t))},highlight:function(e){var t=this,i=t.$li.filter("[data-index]").removeClass("highlighted");t.utils.triggerCallback("BeforeHighlight",t),void 0===e||e===-1||t.lookupItems[e].disabled||(i.eq(t.state.highlightedIdx=e).addClass("highlighted"),t.detectItemVisibility(e),t.utils.triggerCallback("Highlight",t))},select:function(t){var i=this,o=i.$li.filter("[data-index]");if(i.utils.triggerCallback("BeforeSelect",i,t),void 0!==t&&t!==-1&&!i.lookupItems[t].disabled){if(i.state.multiple){i.state.selectedIdx=e.isArray(i.state.selectedIdx)?i.state.selectedIdx:[i.state.selectedIdx];var n=e.inArray(t,i.state.selectedIdx);n!==-1?i.state.selectedIdx.splice(n,1):i.state.selectedIdx.push(t),o.removeClass("selected").filter(function(t){return e.inArray(t,i.state.selectedIdx)!==-1}).addClass("selected")}else o.removeClass("selected").eq(i.state.selectedIdx=t).addClass("selected");i.state.multiple&&i.options.multiple.keepMenuOpen||i.close(),i.change(),i.utils.triggerCallback("Select",i,t)}},destroy:function(e){var t=this;t.state&&t.state.enabled&&(t.elements.items.add(t.elements.wrapper).add(t.elements.input).remove(),e||t.$element.removeData(o).removeData("value"),t.$element.prop("tabindex",t.originalTabindex).off(s).off(t.eventTriggers).unwrap().unwrap(),t.state.enabled=!1)}},e.fn[o]=function(t){return this.each(function(){var i=e.data(this,o);i&&!i.disableOnMobile?"string"==typeof t&&i[t]?i[t]():i.init(t):e.data(this,o,new l(this,t))})},e.fn[o].defaults={onChange:function(t){e(t).change()},maxHeight:300,keySearchTimeout:500,arrowButtonMarkup:'<b class="button">&#x25be;</b>',disableOnMobile:!1,nativeOnMobile:!0,openOnFocus:!0,openOnHover:!1,hoverIntentTimeout:500,expandToItemText:!1,responsive:!1,preventWindowScroll:!0,inheritOriginalWidth:!1,allowWrap:!0,forceRenderAbove:!1,forceRenderBelow:!1,stopPropagation:!0,optionsItemBuilder:"{text}",labelBuilder:"{text}",listBuilder:!1,keys:{previous:[37,38],next:[39,40],select:[9,13,27],open:[13,32,37,38,39,40],close:[9,27]},customClass:{prefix:o,camelCase:!1},multiple:{separator:", ",keepMenuOpen:!0,maxLabelEntries:!1}}}),function(e){"use strict";e.picturefill=function(){for(var t=e.document.getElementsByTagName("span"),i=0,o=t.length;i<o;i++)if(null!==t[i].getAttribute("data-picture")){for(var n=t[i].getElementsByTagName("span"),s=[],r=0,a=n.length;r<a;r++){var l=n[r].getAttribute("data-media");(!l||e.matchMedia&&e.matchMedia(l).matches)&&s.push(n[r])}var c=t[i].getElementsByTagName("img")[0];if(s.length){var d=s.pop();if(c&&"NOSCRIPT"!==c.parentNode.nodeName){if(d===c.parentNode)continue}else c=e.document.createElement("img"),c.alt=t[i].getAttribute("data-alt");c.src=d.getAttribute("data-src"),d.appendChild(c),c.removeAttribute("width"),c.removeAttribute("height")}else c&&c.parentNode.removeChild(c)}},e.addEventListener?(e.addEventListener("resize",e.picturefill,!1),e.addEventListener("DOMContentLoaded",function(){e.picturefill(),e.removeEventListener("load",e.picturefill,!1)},!1),e.addEventListener("load",e.picturefill,!1)):e.attachEvent&&e.attachEvent("onload",e.picturefill)}(this),!function(e){"use strict";e.matchMedia=e.matchMedia||function(e){var t,i=e.documentElement,o=i.firstElementChild||i.firstChild,n=e.createElement("body"),s=e.createElement("div");return s.id="mq-test-1",s.style.cssText="position:absolute;top:-100em",n.style.background="none",n.appendChild(s),function(e){return s.innerHTML='&shy;<style media="'+e+'"> #mq-test-1 { width: 42px; }</style>',i.insertBefore(n,o),t=42===s.offsetWidth,i.removeChild(n),{matches:t,media:e}}}(e.document)}(this),function(e){"use strict";function t(){S(!0)}var i={};e.respond=i,i.update=function(){};var o=[],n=function(){var t=!1;try{t=new e.XMLHttpRequest}catch(i){t=new e.ActiveXObject("Microsoft.XMLHTTP")}return function(){return t}}(),s=function(e,t){var i=n();i&&(i.open("GET",e,!0),i.onreadystatechange=function(){4!==i.readyState||200!==i.status&&304!==i.status||t(i.responseText)},4!==i.readyState&&i.send(null))},r=function(e){return e.replace(i.regex.minmaxwh,"").match(i.regex.other)};if(i.ajax=s,i.queue=o,i.unsupportedmq=r,i.regex={media:/@media[^\{]+\{([^\{\}]*\{[^\}\{]*\})+/gi,keyframes:/@(?:\-(?:o|moz|webkit)\-)?keyframes[^\{]+\{(?:[^\{\}]*\{[^\}\{]*\})+[^\}]*\}/gi,comments:/\/\*[^*]*\*+([^\/][^*]*\*+)*\//gi,urls:/(url\()['"]?([^\/\)'"][^:\)'"]+)['"]?(\))/g,findStyles:/@media *([^\{]+)\{([\S\s]+?)$/,only:/(only\s+)?([a-zA-Z]+)\s?/,minw:/\(\s*min\-width\s*:\s*(\s*[0-9\.]+)(px|em)\s*\)/,maxw:/\(\s*max\-width\s*:\s*(\s*[0-9\.]+)(px|em)\s*\)/,minmaxwh:/\(\s*m(in|ax)\-(height|width)\s*:\s*(\s*[0-9\.]+)(px|em)\s*\)/gi,other:/\([^\)]*\)/g},i.mediaQueriesSupported=e.matchMedia&&null!==e.matchMedia("only all")&&e.matchMedia("only all").matches,!i.mediaQueriesSupported){var a,l,c,d=e.document,u=d.documentElement,p=[],h=[],f=[],m={},g=30,v=d.getElementsByTagName("head")[0]||u,y=d.getElementsByTagName("base")[0],w=v.getElementsByTagName("link"),b=function(){var e,t=d.createElement("div"),i=d.body,o=u.style.fontSize,n=i&&i.style.fontSize,s=!1;return t.style.cssText="position:absolute;font-size:1em;width:1em",i||(i=s=d.createElement("body"),i.style.background="none"),u.style.fontSize="100%",i.style.fontSize="100%",i.appendChild(t),s&&u.insertBefore(i,u.firstChild),e=t.offsetWidth,s?u.removeChild(i):i.removeChild(t),u.style.fontSize=o,n&&(i.style.fontSize=n),e=c=parseFloat(e)},S=function(t){var i="clientWidth",o=u[i],n="CSS1Compat"===d.compatMode&&o||d.body[i]||o,s={},r=w[w.length-1],m=(new Date).getTime();if(t&&a&&g>m-a)return e.clearTimeout(l),void(l=e.setTimeout(S,g));a=m;for(var y in p)if(p.hasOwnProperty(y)){var k=p[y],x=k.minw,C=k.maxw,T=null===x,E=null===C,I="em";x&&(x=parseFloat(x)*(x.indexOf(I)>-1?c||b():1)),C&&(C=parseFloat(C)*(C.indexOf(I)>-1?c||b():1)),k.hasquery&&(T&&E||!(T||n>=x)||!(E||C>=n))||(s[k.media]||(s[k.media]=[]),s[k.media].push(h[k.rules]))}for(var $ in f)f.hasOwnProperty($)&&f[$]&&f[$].parentNode===v&&v.removeChild(f[$]);f.length=0;for(var P in s)if(s.hasOwnProperty(P)){var A=d.createElement("style"),O=s[P].join("\n");A.type="text/css",A.media=P,v.insertBefore(A,r.nextSibling),A.styleSheet?A.styleSheet.cssText=O:A.appendChild(d.createTextNode(O)),f.push(A)}},k=function(e,t,o){var n=e.replace(i.regex.comments,"").replace(i.regex.keyframes,"").match(i.regex.media),s=n&&n.length||0;t=t.substring(0,t.lastIndexOf("/"));var a=function(e){return e.replace(i.regex.urls,"$1"+t+"$2$3")},l=!s&&o;t.length&&(t+="/"),l&&(s=1);for(var c=0;s>c;c++){var d,u,f,m;l?(d=o,h.push(a(e))):(d=n[c].match(i.regex.findStyles)&&RegExp.$1,h.push(RegExp.$2&&a(RegExp.$2))),f=d.split(","),m=f.length;for(var g=0;m>g;g++)u=f[g],r(u)||p.push({media:u.split("(")[0].match(i.regex.only)&&RegExp.$2||"all",rules:h.length-1,hasquery:u.indexOf("(")>-1,minw:u.match(i.regex.minw)&&parseFloat(RegExp.$1)+(RegExp.$2||""),maxw:u.match(i.regex.maxw)&&parseFloat(RegExp.$1)+(RegExp.$2||"")})}S()},x=function(){if(o.length){var t=o.shift();s(t.href,function(i){k(i,t.href,t.media),m[t.href]=!0,e.setTimeout(function(){x()},0)})}},C=function(){for(var t=0;t<w.length;t++){var i=w[t],n=i.href,s=i.media,r=i.rel&&"stylesheet"===i.rel.toLowerCase();n&&r&&!m[n]&&(i.styleSheet&&i.styleSheet.rawCssText?(k(i.styleSheet.rawCssText,n,s),m[n]=!0):(!/^([a-zA-Z:]*\/\/)/.test(n)&&!y||n.replace(RegExp.$1,"").split("/")[0]===e.location.host)&&("//"===n.substring(0,2)&&(n=e.location.protocol+n),o.push({href:n,media:s})))}x()};C(),i.update=C,i.getEmValue=b,e.addEventListener?e.addEventListener("resize",t,!1):e.attachEvent&&e.attachEvent("onresize",t)}}(this),function(e,t){"use strict";var i=function(e){this.elem=e};i.init=function(){var e,o=t.querySelectorAll(".sharer"),n=o.length;for(e=0;e<n;e++)o[e].addEventListener("click",i.add)},i.add=function(e){var t=e.currentTarget||e.srcElement,o=new i(t);o.share()},i.prototype={constructor:i,getValue:function(e,t){t=void 0===t?"":t;var i=this.elem.getAttribute("data-"+e);return void 0===i||null===i?t:i},share:function(){var e=this.getValue("sharer").toLowerCase(),t={facebook:{shareUrl:"https://www.facebook.com/sharer/sharer.php",params:{u:this.getValue("url")}},googleplus:{shareUrl:"https://plus.google.com/share",params:{url:this.getValue("url")}},linkedin:{shareUrl:"https://www.linkedin.com/shareArticle",params:{url:this.getValue("url"),mini:!0}},twitter:{shareUrl:"https://twitter.com/intent/tweet/",params:{text:this.getValue("title"),url:this.getValue("url"),hashtags:this.getValue("hashtags"),via:this.getValue("via")}},email:{shareUrl:"mailto:"+this.getValue("to"),params:{subject:this.getValue("subject"),body:this.getValue("title")+"\n"+this.getValue("url")},isLink:!0},whatsapp:{shareUrl:"whatsapp://send",params:{text:this.getValue("title")+" "+this.getValue("url")},isLink:!0},telegram:{shareUrl:"tg://msg_url",params:{text:this.getValue("title")+" "+this.getValue("url")},isLink:!0},viber:{shareUrl:"viber://forward",params:{text:this.getValue("title")+" "+this.getValue("url")},isLink:!0},line:{shareUrl:"http://line.me/R/msg/text/?"+encodeURIComponent(this.getValue("title")+" "+this.getValue("url")),isLink:!0},pinterest:{shareUrl:"https://www.pinterest.com/pin/create/button/",params:{url:this.getValue("url"),media:this.getValue("image"),description:this.getValue("description")}},tumblr:{shareUrl:"http://tumblr.com/widgets/share/tool",params:{canonicalUrl:this.getValue("url"),content:this.getValue("url"),posttype:"link",title:this.getValue("title"),caption:this.getValue("caption"),tags:this.getValue("tags")}},hackernews:{shareUrl:"https://news.ycombinator.com/submitlink",params:{u:this.getValue("url"),t:this.getValue("title")}},reddit:{shareUrl:"https://www.reddit.com/submit",params:{url:this.getValue("url")}},vk:{shareUrl:"http://vk.com/share.php",params:{url:this.getValue("url"),title:this.getValue("title"),description:this.getValue("caption"),image:this.getValue("image")}},xing:{shareUrl:"https://www.xing.com/app/user",params:{op:"share",url:this.getValue("url"),title:this.getValue("title")}},buffer:{shareUrl:"https://buffer.com/add",params:{url:this.getValue("url"),title:this.getValue("title"),via:this.getValue("via"),picture:this.getValue("picture")}},instapaper:{shareUrl:"http://www.instapaper.com/edit",params:{url:this.getValue("url"),title:this.getValue("title"),description:this.getValue("description")}},pocket:{shareUrl:"https://getpocket.com/save",params:{url:this.getValue("url")}},digg:{shareUrl:"http://www.digg.com/submit",params:{url:this.getValue("url")}},stumbleupon:{shareUrl:"http://www.stumbleupon.com/submit",params:{url:this.getValue("url"),title:this.getValue("title")}},flipboard:{shareUrl:"https://share.flipboard.com/bookmarklet/popout",params:{v:2,title:this.getValue("title"),url:this.getValue("url"),t:Date.now()}},weibo:{shareUrl:"http://service.weibo.com/share/share.php",params:{url:this.getValue("url"),title:this.getValue("title"),pic:this.getValue("image"),appkey:this.getValue("appkey"),ralateUid:this.getValue("ralateuid"),language:"zh_cn"}},renren:{shareUrl:"http://share.renren.com/share/buttonshare",params:{link:this.getValue("url")}},myspace:{shareUrl:"https://myspace.com/post",params:{u:this.getValue("url"),t:this.getValue("title"),c:this.getValue("description")}},blogger:{shareUrl:"https://www.blogger.com/blog-this.g",params:{u:this.getValue("url"),n:this.getValue("title"),t:this.getValue("description")}},baidu:{shareUrl:"http://cang.baidu.com/do/add",params:{it:this.getValue("title"),iu:this.getValue("url")}},douban:{shareUrl:"https://www.douban.com/share/service",params:{name:this.getValue("title"),href:this.getValue("url"),image:this.getValue("image")}},okru:{shareUrl:"https://connect.ok.ru/dk",params:{"st.cmd":"WidgetSharePreview","st.shareUrl":this.getValue("url"),title:this.getValue("title")}},mailru:{shareUrl:"http://connect.mail.ru/share",params:{share_url:this.getValue("url"),linkname:this.getValue("title"),linknote:this.getValue("description"),type:"page"}}},i=t[e];return i&&(i.width=this.getValue("width"),i.height=this.getValue("height")),void 0!==i&&this.urlSharer(i)},urlSharer:function(t){var i,o=t.params||{},n=Object.keys(o),s=n.length>0?"?":"";for(i=0;i<n.length;i++)"?"!==s&&(s+="&"),o[n[i]]&&(s+=n[i]+"="+encodeURIComponent(o[n[i]]));if(t.shareUrl+=s,t.isLink)e.location.href=t.shareUrl;else{var r=t.width||600,a=t.height||480,l=e.innerWidth/2-r/2+e.screenX,c=e.innerHeight/2-a/2+e.screenY,d="scrollbars=no, width="+r+", height="+a+", top="+c+", left="+l,u=e.open(t.shareUrl,"",d);e.focus&&u.focus()}}},"complete"===t.readyState||"loading"!==t.readyState?i.init():t.addEventListener("DOMContentLoaded",i.init),e.addEventListener("page:load",i.init),e.Sharer=i}(window,document),!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):"undefined"!=typeof exports?module.exports=e(require("jquery")):e(jQuery)}(function(e){"use strict";var t=window.Slick||{};t=function(){function t(t,o){var n,s=this;s.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:e(t),appendDots:e(t),arrows:!0,asNavFor:null,prevArrow:'<button type="button" data-role="none" class="slick-prev" aria-label="Previous" tabindex="0" role="button">Previous</button>',nextArrow:'<button type="button" data-role="none" class="slick-next" aria-label="Next" tabindex="0" role="button">Next</button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(e,t){return'<button type="button" data-role="none" role="button" aria-required="false" tabindex="0">'+(t+1)+"</button>"},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",mobileFirst:!1,pauseOnHover:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3},s.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},e.extend(s,s.initials),s.activeBreakpoint=null,s.animType=null,s.animProp=null,s.breakpoints=[],s.breakpointSettings=[],s.cssTransitions=!1,s.hidden="hidden",s.paused=!1,s.positionProp=null,s.respondTo=null,s.rowCount=1,s.shouldClick=!0,s.$slider=e(t),s.$slidesCache=null,s.transformType=null,s.transitionType=null,s.visibilityChange="visibilitychange",s.windowWidth=0,s.windowTimer=null,n=e(t).data("slick")||{},s.options=e.extend({},s.defaults,n,o),s.currentSlide=s.options.initialSlide,s.originalSettings=s.options,"undefined"!=typeof document.mozHidden?(s.hidden="mozHidden",s.visibilityChange="mozvisibilitychange"):"undefined"!=typeof document.webkitHidden&&(s.hidden="webkitHidden",s.visibilityChange="webkitvisibilitychange"),s.autoPlay=e.proxy(s.autoPlay,s),s.autoPlayClear=e.proxy(s.autoPlayClear,s),s.changeSlide=e.proxy(s.changeSlide,s),s.clickHandler=e.proxy(s.clickHandler,s),s.selectHandler=e.proxy(s.selectHandler,s),s.setPosition=e.proxy(s.setPosition,s),s.swipeHandler=e.proxy(s.swipeHandler,s),s.dragHandler=e.proxy(s.dragHandler,s),s.keyHandler=e.proxy(s.keyHandler,s),s.autoPlayIterator=e.proxy(s.autoPlayIterator,s),s.instanceUid=i++,s.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,s.registerBreakpoints(),s.init(!0),s.checkResponsive(!0)}var i=0;return t}(),t.prototype.addSlide=t.prototype.slickAdd=function(t,i,o){var n=this;if("boolean"==typeof i)o=i,i=null;else if(0>i||i>=n.slideCount)return!1;n.unload(),"number"==typeof i?0===i&&0===n.$slides.length?e(t).appendTo(n.$slideTrack):o?e(t).insertBefore(n.$slides.eq(i)):e(t).insertAfter(n.$slides.eq(i)):o===!0?e(t).prependTo(n.$slideTrack):e(t).appendTo(n.$slideTrack),n.$slides=n.$slideTrack.children(this.options.slide),n.$slideTrack.children(this.options.slide).detach(),n.$slideTrack.append(n.$slides),n.$slides.each(function(t,i){e(i).attr("data-slick-index",t)}),n.$slidesCache=n.$slides,n.reinit()},t.prototype.animateHeight=function(){var e=this;if(1===e.options.slidesToShow&&e.options.adaptiveHeight===!0&&e.options.vertical===!1){var t=e.$slides.eq(e.currentSlide).outerHeight(!0);e.$list.animate({height:t},e.options.speed)}},t.prototype.animateSlide=function(t,i){var o={},n=this;n.animateHeight(),n.options.rtl===!0&&n.options.vertical===!1&&(t=-t),n.transformsEnabled===!1?n.options.vertical===!1?n.$slideTrack.animate({left:t},n.options.speed,n.options.easing,i):n.$slideTrack.animate({top:t},n.options.speed,n.options.easing,i):n.cssTransitions===!1?(n.options.rtl===!0&&(n.currentLeft=-n.currentLeft),e({animStart:n.currentLeft}).animate({animStart:t},{duration:n.options.speed,easing:n.options.easing,step:function(e){e=Math.ceil(e),n.options.vertical===!1?(o[n.animType]="translate("+e+"px, 0px)",n.$slideTrack.css(o)):(o[n.animType]="translate(0px,"+e+"px)",n.$slideTrack.css(o))},complete:function(){i&&i.call()}})):(n.applyTransition(),t=Math.ceil(t),o[n.animType]=n.options.vertical===!1?"translate3d("+t+"px, 0px, 0px)":"translate3d(0px,"+t+"px, 0px)",n.$slideTrack.css(o),i&&setTimeout(function(){n.disableTransition(),i.call()},n.options.speed))},t.prototype.asNavFor=function(t){var i=this,o=i.options.asNavFor;o&&null!==o&&(o=e(o).not(i.$slider)),null!==o&&"object"==typeof o&&o.each(function(){var i=e(this).slick("getSlick");i.unslicked||i.slideHandler(t,!0)})},t.prototype.applyTransition=function(e){var t=this,i={};i[t.transitionType]=t.options.fade===!1?t.transformType+" "+t.options.speed+"ms "+t.options.cssEase:"opacity "+t.options.speed+"ms "+t.options.cssEase,t.options.fade===!1?t.$slideTrack.css(i):t.$slides.eq(e).css(i)},t.prototype.autoPlay=function(){var e=this;e.autoPlayTimer&&clearInterval(e.autoPlayTimer),
e.slideCount>e.options.slidesToShow&&e.paused!==!0&&(e.autoPlayTimer=setInterval(e.autoPlayIterator,e.options.autoplaySpeed))},t.prototype.autoPlayClear=function(){var e=this;e.autoPlayTimer&&clearInterval(e.autoPlayTimer)},t.prototype.autoPlayIterator=function(){var e=this;e.options.infinite===!1?1===e.direction?(e.currentSlide+1===e.slideCount-1&&(e.direction=0),e.slideHandler(e.currentSlide+e.options.slidesToScroll)):(0===e.currentSlide-1&&(e.direction=1),e.slideHandler(e.currentSlide-e.options.slidesToScroll)):e.slideHandler(e.currentSlide+e.options.slidesToScroll)},t.prototype.buildArrows=function(){var t=this;t.options.arrows===!0&&(t.$prevArrow=e(t.options.prevArrow).addClass("slick-arrow"),t.$nextArrow=e(t.options.nextArrow).addClass("slick-arrow"),t.slideCount>t.options.slidesToShow?(t.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),t.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.prependTo(t.options.appendArrows),t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.appendTo(t.options.appendArrows),t.options.infinite!==!0&&t.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):t.$prevArrow.add(t.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))},t.prototype.buildDots=function(){var t,i,o=this;if(o.options.dots===!0&&o.slideCount>o.options.slidesToShow){for(i='<ul class="'+o.options.dotsClass+'">',t=0;t<=o.getDotCount();t+=1)i+="<li>"+o.options.customPaging.call(this,o,t)+"</li>";i+="</ul>",o.$dots=e(i).appendTo(o.options.appendDots),o.$dots.find("li").first().addClass("slick-active").attr("aria-hidden","false")}},t.prototype.buildOut=function(){var t=this;t.$slides=t.$slider.children(t.options.slide+":not(.slick-cloned)").addClass("slick-slide"),t.slideCount=t.$slides.length,t.$slides.each(function(t,i){e(i).attr("data-slick-index",t).data("originalStyling",e(i).attr("style")||"")}),t.$slidesCache=t.$slides,t.$slider.addClass("slick-slider"),t.$slideTrack=0===t.slideCount?e('<div class="slick-track"/>').appendTo(t.$slider):t.$slides.wrapAll('<div class="slick-track"/>').parent(),t.$list=t.$slideTrack.wrap('<div aria-live="polite" class="slick-list"/>').parent(),t.$slideTrack.css("opacity",0),(t.options.centerMode===!0||t.options.swipeToSlide===!0)&&(t.options.slidesToScroll=1),e("img[data-lazy]",t.$slider).not("[src]").addClass("slick-loading"),t.setupInfinite(),t.buildArrows(),t.buildDots(),t.updateDots(),t.setSlideClasses("number"==typeof t.currentSlide?t.currentSlide:0),t.options.draggable===!0&&t.$list.addClass("draggable")},t.prototype.buildRows=function(){var e,t,i,o,n,s,r,a=this;if(o=document.createDocumentFragment(),s=a.$slider.children(),a.options.rows>1){for(r=a.options.slidesPerRow*a.options.rows,n=Math.ceil(s.length/r),e=0;n>e;e++){var l=document.createElement("div");for(t=0;t<a.options.rows;t++){var c=document.createElement("div");for(i=0;i<a.options.slidesPerRow;i++){var d=e*r+(t*a.options.slidesPerRow+i);s.get(d)&&c.appendChild(s.get(d))}l.appendChild(c)}o.appendChild(l)}a.$slider.html(o),a.$slider.children().children().children().css({width:100/a.options.slidesPerRow+"%",display:"inline-block"})}},t.prototype.checkResponsive=function(t,i){var o,n,s,r=this,a=!1,l=r.$slider.width(),c=window.innerWidth||e(window).width();if("window"===r.respondTo?s=c:"slider"===r.respondTo?s=l:"min"===r.respondTo&&(s=Math.min(c,l)),r.options.responsive&&r.options.responsive.length&&null!==r.options.responsive){n=null;for(o in r.breakpoints)r.breakpoints.hasOwnProperty(o)&&(r.originalSettings.mobileFirst===!1?s<r.breakpoints[o]&&(n=r.breakpoints[o]):s>r.breakpoints[o]&&(n=r.breakpoints[o]));null!==n?null!==r.activeBreakpoint?(n!==r.activeBreakpoint||i)&&(r.activeBreakpoint=n,"unslick"===r.breakpointSettings[n]?r.unslick(n):(r.options=e.extend({},r.originalSettings,r.breakpointSettings[n]),t===!0&&(r.currentSlide=r.options.initialSlide),r.refresh(t)),a=n):(r.activeBreakpoint=n,"unslick"===r.breakpointSettings[n]?r.unslick(n):(r.options=e.extend({},r.originalSettings,r.breakpointSettings[n]),t===!0&&(r.currentSlide=r.options.initialSlide),r.refresh(t)),a=n):null!==r.activeBreakpoint&&(r.activeBreakpoint=null,r.options=r.originalSettings,t===!0&&(r.currentSlide=r.options.initialSlide),r.refresh(t),a=n),t||a===!1||r.$slider.trigger("breakpoint",[r,a])}},t.prototype.changeSlide=function(t,i){var o,n,s,r=this,a=e(t.target);switch(a.is("a")&&t.preventDefault(),a.is("li")||(a=a.closest("li")),s=0!==r.slideCount%r.options.slidesToScroll,o=s?0:(r.slideCount-r.currentSlide)%r.options.slidesToScroll,t.data.message){case"previous":n=0===o?r.options.slidesToScroll:r.options.slidesToShow-o,r.slideCount>r.options.slidesToShow&&r.slideHandler(r.currentSlide-n,!1,i);break;case"next":n=0===o?r.options.slidesToScroll:o,r.slideCount>r.options.slidesToShow&&r.slideHandler(r.currentSlide+n,!1,i);break;case"index":var l=0===t.data.index?0:t.data.index||a.index()*r.options.slidesToScroll;r.slideHandler(r.checkNavigable(l),!1,i),a.children().trigger("focus");break;default:return}},t.prototype.checkNavigable=function(e){var t,i,o=this;if(t=o.getNavigableIndexes(),i=0,e>t[t.length-1])e=t[t.length-1];else for(var n in t){if(e<t[n]){e=i;break}i=t[n]}return e},t.prototype.cleanUpEvents=function(){var t=this;t.options.dots&&null!==t.$dots&&(e("li",t.$dots).off("click.slick",t.changeSlide),t.options.pauseOnDotsHover===!0&&t.options.autoplay===!0&&e("li",t.$dots).off("mouseenter.slick",e.proxy(t.setPaused,t,!0)).off("mouseleave.slick",e.proxy(t.setPaused,t,!1))),t.options.arrows===!0&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow&&t.$prevArrow.off("click.slick",t.changeSlide),t.$nextArrow&&t.$nextArrow.off("click.slick",t.changeSlide)),t.$list.off("touchstart.slick mousedown.slick",t.swipeHandler),t.$list.off("touchmove.slick mousemove.slick",t.swipeHandler),t.$list.off("touchend.slick mouseup.slick",t.swipeHandler),t.$list.off("touchcancel.slick mouseleave.slick",t.swipeHandler),t.$list.off("click.slick",t.clickHandler),e(document).off(t.visibilityChange,t.visibility),t.$list.off("mouseenter.slick",e.proxy(t.setPaused,t,!0)),t.$list.off("mouseleave.slick",e.proxy(t.setPaused,t,!1)),t.options.accessibility===!0&&t.$list.off("keydown.slick",t.keyHandler),t.options.focusOnSelect===!0&&e(t.$slideTrack).children().off("click.slick",t.selectHandler),e(window).off("orientationchange.slick.slick-"+t.instanceUid,t.orientationChange),e(window).off("resize.slick.slick-"+t.instanceUid,t.resize),e("[draggable!=true]",t.$slideTrack).off("dragstart",t.preventDefault),e(window).off("load.slick.slick-"+t.instanceUid,t.setPosition),e(document).off("ready.slick.slick-"+t.instanceUid,t.setPosition)},t.prototype.cleanUpRows=function(){var e,t=this;t.options.rows>1&&(e=t.$slides.children().children(),e.removeAttr("style"),t.$slider.html(e))},t.prototype.clickHandler=function(e){var t=this;t.shouldClick===!1&&(e.stopImmediatePropagation(),e.stopPropagation(),e.preventDefault())},t.prototype.destroy=function(t){var i=this;i.autoPlayClear(),i.touchObject={},i.cleanUpEvents(),e(".slick-cloned",i.$slider).detach(),i.$dots&&i.$dots.remove(),i.options.arrows===!0&&(i.$prevArrow&&i.$prevArrow.length&&(i.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),i.htmlExpr.test(i.options.prevArrow)&&i.$prevArrow.remove()),i.$nextArrow&&i.$nextArrow.length&&(i.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),i.htmlExpr.test(i.options.nextArrow)&&i.$nextArrow.remove())),i.$slides&&(i.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each(function(){e(this).attr("style",e(this).data("originalStyling"))}),i.$slideTrack.children(this.options.slide).detach(),i.$slideTrack.detach(),i.$list.detach(),i.$slider.append(i.$slides)),i.cleanUpRows(),i.$slider.removeClass("slick-slider"),i.$slider.removeClass("slick-initialized"),i.unslicked=!0,t||i.$slider.trigger("destroy",[i])},t.prototype.disableTransition=function(e){var t=this,i={};i[t.transitionType]="",t.options.fade===!1?t.$slideTrack.css(i):t.$slides.eq(e).css(i)},t.prototype.fadeSlide=function(e,t){var i=this;i.cssTransitions===!1?(i.$slides.eq(e).css({zIndex:i.options.zIndex}),i.$slides.eq(e).animate({opacity:1},i.options.speed,i.options.easing,t)):(i.applyTransition(e),i.$slides.eq(e).css({opacity:1,zIndex:i.options.zIndex}),t&&setTimeout(function(){i.disableTransition(e),t.call()},i.options.speed))},t.prototype.fadeSlideOut=function(e){var t=this;t.cssTransitions===!1?t.$slides.eq(e).animate({opacity:0,zIndex:t.options.zIndex-2},t.options.speed,t.options.easing):(t.applyTransition(e),t.$slides.eq(e).css({opacity:0,zIndex:t.options.zIndex-2}))},t.prototype.filterSlides=t.prototype.slickFilter=function(e){var t=this;null!==e&&(t.unload(),t.$slideTrack.children(this.options.slide).detach(),t.$slidesCache.filter(e).appendTo(t.$slideTrack),t.reinit())},t.prototype.getCurrent=t.prototype.slickCurrentSlide=function(){var e=this;return e.currentSlide},t.prototype.getDotCount=function(){var e=this,t=0,i=0,o=0;if(e.options.infinite===!0)for(;t<e.slideCount;)++o,t=i+e.options.slidesToShow,i+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;else if(e.options.centerMode===!0)o=e.slideCount;else for(;t<e.slideCount;)++o,t=i+e.options.slidesToShow,i+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;return o-1},t.prototype.getLeft=function(e){var t,i,o,n=this,s=0;return n.slideOffset=0,i=n.$slides.first().outerHeight(!0),n.options.infinite===!0?(n.slideCount>n.options.slidesToShow&&(n.slideOffset=-1*n.slideWidth*n.options.slidesToShow,s=-1*i*n.options.slidesToShow),0!==n.slideCount%n.options.slidesToScroll&&e+n.options.slidesToScroll>n.slideCount&&n.slideCount>n.options.slidesToShow&&(e>n.slideCount?(n.slideOffset=-1*(n.options.slidesToShow-(e-n.slideCount))*n.slideWidth,s=-1*(n.options.slidesToShow-(e-n.slideCount))*i):(n.slideOffset=-1*n.slideCount%n.options.slidesToScroll*n.slideWidth,s=-1*n.slideCount%n.options.slidesToScroll*i))):e+n.options.slidesToShow>n.slideCount&&(n.slideOffset=(e+n.options.slidesToShow-n.slideCount)*n.slideWidth,s=(e+n.options.slidesToShow-n.slideCount)*i),n.slideCount<=n.options.slidesToShow&&(n.slideOffset=0,s=0),n.options.centerMode===!0&&n.options.infinite===!0?n.slideOffset+=n.slideWidth*Math.floor(n.options.slidesToShow/2)-n.slideWidth:n.options.centerMode===!0&&(n.slideOffset=0,n.slideOffset+=n.slideWidth*Math.floor(n.options.slidesToShow/2)),t=n.options.vertical===!1?-1*e*n.slideWidth+n.slideOffset:-1*e*i+s,n.options.variableWidth===!0&&(o=n.slideCount<=n.options.slidesToShow||n.options.infinite===!1?n.$slideTrack.children(".slick-slide").eq(e):n.$slideTrack.children(".slick-slide").eq(e+n.options.slidesToShow),t=o[0]?-1*o[0].offsetLeft:0,n.options.centerMode===!0&&(o=n.options.infinite===!1?n.$slideTrack.children(".slick-slide").eq(e):n.$slideTrack.children(".slick-slide").eq(e+n.options.slidesToShow+1),t=o[0]?-1*o[0].offsetLeft:0,t+=(n.$list.width()-o.outerWidth())/2)),t},t.prototype.getOption=t.prototype.slickGetOption=function(e){var t=this;return t.options[e]},t.prototype.getNavigableIndexes=function(){var e,t=this,i=0,o=0,n=[];for(t.options.infinite===!1?e=t.slideCount:(i=-1*t.options.slidesToScroll,o=-1*t.options.slidesToScroll,e=2*t.slideCount);e>i;)n.push(i),i=o+t.options.slidesToScroll,o+=t.options.slidesToScroll<=t.options.slidesToShow?t.options.slidesToScroll:t.options.slidesToShow;return n},t.prototype.getSlick=function(){return this},t.prototype.getSlideCount=function(){var t,i,o,n=this;return o=n.options.centerMode===!0?n.slideWidth*Math.floor(n.options.slidesToShow/2):0,n.options.swipeToSlide===!0?(n.$slideTrack.find(".slick-slide").each(function(t,s){return s.offsetLeft-o+e(s).outerWidth()/2>-1*n.swipeLeft?(i=s,!1):void 0}),t=Math.abs(e(i).attr("data-slick-index")-n.currentSlide)||1):n.options.slidesToScroll},t.prototype.goTo=t.prototype.slickGoTo=function(e,t){var i=this;i.changeSlide({data:{message:"index",index:parseInt(e)}},t)},t.prototype.init=function(t){var i=this;e(i.$slider).hasClass("slick-initialized")||(e(i.$slider).addClass("slick-initialized"),i.buildRows(),i.buildOut(),i.setProps(),i.startLoad(),i.loadSlider(),i.initializeEvents(),i.updateArrows(),i.updateDots()),t&&i.$slider.trigger("init",[i]),i.options.accessibility===!0&&i.initADA()},t.prototype.initArrowEvents=function(){var e=this;e.options.arrows===!0&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow.on("click.slick",{message:"previous"},e.changeSlide),e.$nextArrow.on("click.slick",{message:"next"},e.changeSlide))},t.prototype.initDotEvents=function(){var t=this;t.options.dots===!0&&t.slideCount>t.options.slidesToShow&&e("li",t.$dots).on("click.slick",{message:"index"},t.changeSlide),t.options.dots===!0&&t.options.pauseOnDotsHover===!0&&t.options.autoplay===!0&&e("li",t.$dots).on("mouseenter.slick",e.proxy(t.setPaused,t,!0)).on("mouseleave.slick",e.proxy(t.setPaused,t,!1))},t.prototype.initializeEvents=function(){var t=this;t.initArrowEvents(),t.initDotEvents(),t.$list.on("touchstart.slick mousedown.slick",{action:"start"},t.swipeHandler),t.$list.on("touchmove.slick mousemove.slick",{action:"move"},t.swipeHandler),t.$list.on("touchend.slick mouseup.slick",{action:"end"},t.swipeHandler),t.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},t.swipeHandler),t.$list.on("click.slick",t.clickHandler),e(document).on(t.visibilityChange,e.proxy(t.visibility,t)),t.$list.on("mouseenter.slick",e.proxy(t.setPaused,t,!0)),t.$list.on("mouseleave.slick",e.proxy(t.setPaused,t,!1)),t.options.accessibility===!0&&t.$list.on("keydown.slick",t.keyHandler),t.options.focusOnSelect===!0&&e(t.$slideTrack).children().on("click.slick",t.selectHandler),e(window).on("orientationchange.slick.slick-"+t.instanceUid,e.proxy(t.orientationChange,t)),e(window).on("resize.slick.slick-"+t.instanceUid,e.proxy(t.resize,t)),e("[draggable!=true]",t.$slideTrack).on("dragstart",t.preventDefault),e(window).on("load.slick.slick-"+t.instanceUid,t.setPosition),e(document).on("ready.slick.slick-"+t.instanceUid,t.setPosition)},t.prototype.initUI=function(){var e=this;e.options.arrows===!0&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow.show(),e.$nextArrow.show()),e.options.dots===!0&&e.slideCount>e.options.slidesToShow&&e.$dots.show(),e.options.autoplay===!0&&e.autoPlay()},t.prototype.keyHandler=function(e){var t=this;e.target.tagName.match("TEXTAREA|INPUT|SELECT")||(37===e.keyCode&&t.options.accessibility===!0?t.changeSlide({data:{message:"previous"}}):39===e.keyCode&&t.options.accessibility===!0&&t.changeSlide({data:{message:"next"}}))},t.prototype.lazyLoad=function(){function t(t){e("img[data-lazy]",t).each(function(){var t=e(this),i=e(this).attr("data-lazy"),o=document.createElement("img");o.onload=function(){t.animate({opacity:0},100,function(){t.attr("src",i).animate({opacity:1},200,function(){t.removeAttr("data-lazy").removeClass("slick-loading")})})},o.src=i})}var i,o,n,s,r=this;r.options.centerMode===!0?r.options.infinite===!0?(n=r.currentSlide+(r.options.slidesToShow/2+1),s=n+r.options.slidesToShow+2):(n=Math.max(0,r.currentSlide-(r.options.slidesToShow/2+1)),s=2+(r.options.slidesToShow/2+1)+r.currentSlide):(n=r.options.infinite?r.options.slidesToShow+r.currentSlide:r.currentSlide,s=n+r.options.slidesToShow,r.options.fade===!0&&(n>0&&n--,s<=r.slideCount&&s++)),i=r.$slider.find(".slick-slide").slice(n,s),t(i),r.slideCount<=r.options.slidesToShow?(o=r.$slider.find(".slick-slide"),t(o)):r.currentSlide>=r.slideCount-r.options.slidesToShow?(o=r.$slider.find(".slick-cloned").slice(0,r.options.slidesToShow),t(o)):0===r.currentSlide&&(o=r.$slider.find(".slick-cloned").slice(-1*r.options.slidesToShow),t(o))},t.prototype.loadSlider=function(){var e=this;e.setPosition(),e.$slideTrack.css({opacity:1}),e.$slider.removeClass("slick-loading"),e.initUI(),"progressive"===e.options.lazyLoad&&e.progressiveLazyLoad()},t.prototype.next=t.prototype.slickNext=function(){var e=this;e.changeSlide({data:{message:"next"}})},t.prototype.orientationChange=function(){var e=this;e.checkResponsive(),e.setPosition()},t.prototype.pause=t.prototype.slickPause=function(){var e=this;e.autoPlayClear(),e.paused=!0},t.prototype.play=t.prototype.slickPlay=function(){var e=this;e.paused=!1,e.autoPlay()},t.prototype.postSlide=function(e){var t=this;t.$slider.trigger("afterChange",[t,e]),t.animating=!1,t.setPosition(),t.swipeLeft=null,t.options.autoplay===!0&&t.paused===!1&&t.autoPlay(),t.options.accessibility===!0&&t.initADA()},t.prototype.prev=t.prototype.slickPrev=function(){var e=this;e.changeSlide({data:{message:"previous"}})},t.prototype.preventDefault=function(e){e.preventDefault()},t.prototype.progressiveLazyLoad=function(){var t,i,o=this;t=e("img[data-lazy]",o.$slider).length,t>0&&(i=e("img[data-lazy]",o.$slider).first(),i.attr("src",i.attr("data-lazy")).removeClass("slick-loading").load(function(){i.removeAttr("data-lazy"),o.progressiveLazyLoad(),o.options.adaptiveHeight===!0&&o.setPosition()}).error(function(){i.removeAttr("data-lazy"),o.progressiveLazyLoad()}))},t.prototype.refresh=function(t){var i=this,o=i.currentSlide;i.destroy(!0),e.extend(i,i.initials,{currentSlide:o}),i.init(),t||i.changeSlide({data:{message:"index",index:o}},!1)},t.prototype.registerBreakpoints=function(){var t,i,o,n=this,s=n.options.responsive||null;if("array"===e.type(s)&&s.length){n.respondTo=n.options.respondTo||"window";for(t in s)if(o=n.breakpoints.length-1,i=s[t].breakpoint,s.hasOwnProperty(t)){for(;o>=0;)n.breakpoints[o]&&n.breakpoints[o]===i&&n.breakpoints.splice(o,1),o--;n.breakpoints.push(i),n.breakpointSettings[i]=s[t].settings}n.breakpoints.sort(function(e,t){return n.options.mobileFirst?e-t:t-e})}},t.prototype.reinit=function(){var t=this;t.$slides=t.$slideTrack.children(t.options.slide).addClass("slick-slide"),t.slideCount=t.$slides.length,t.currentSlide>=t.slideCount&&0!==t.currentSlide&&(t.currentSlide=t.currentSlide-t.options.slidesToScroll),t.slideCount<=t.options.slidesToShow&&(t.currentSlide=0),t.registerBreakpoints(),t.setProps(),t.setupInfinite(),t.buildArrows(),t.updateArrows(),t.initArrowEvents(),t.buildDots(),t.updateDots(),t.initDotEvents(),t.checkResponsive(!1,!0),t.options.focusOnSelect===!0&&e(t.$slideTrack).children().on("click.slick",t.selectHandler),t.setSlideClasses(0),t.setPosition(),t.$slider.trigger("reInit",[t]),t.options.autoplay===!0&&t.focusHandler()},t.prototype.resize=function(){var t=this;e(window).width()!==t.windowWidth&&(clearTimeout(t.windowDelay),t.windowDelay=window.setTimeout(function(){t.windowWidth=e(window).width(),t.checkResponsive(),t.unslicked||t.setPosition()},50))},t.prototype.removeSlide=t.prototype.slickRemove=function(e,t,i){var o=this;return"boolean"==typeof e?(t=e,e=t===!0?0:o.slideCount-1):e=t===!0?--e:e,!(o.slideCount<1||0>e||e>o.slideCount-1)&&(o.unload(),i===!0?o.$slideTrack.children().remove():o.$slideTrack.children(this.options.slide).eq(e).remove(),o.$slides=o.$slideTrack.children(this.options.slide),o.$slideTrack.children(this.options.slide).detach(),o.$slideTrack.append(o.$slides),o.$slidesCache=o.$slides,void o.reinit())},t.prototype.setCSS=function(e){var t,i,o=this,n={};o.options.rtl===!0&&(e=-e),t="left"==o.positionProp?Math.ceil(e)+"px":"0px",i="top"==o.positionProp?Math.ceil(e)+"px":"0px",n[o.positionProp]=e,o.transformsEnabled===!1?o.$slideTrack.css(n):(n={},o.cssTransitions===!1?(n[o.animType]="translate("+t+", "+i+")",o.$slideTrack.css(n)):(n[o.animType]="translate3d("+t+", "+i+", 0px)",o.$slideTrack.css(n)))},t.prototype.setDimensions=function(){var e=this;e.options.vertical===!1?e.options.centerMode===!0&&e.$list.css({padding:"0px "+e.options.centerPadding}):(e.$list.height(e.$slides.first().outerHeight(!0)*e.options.slidesToShow),e.options.centerMode===!0&&e.$list.css({padding:e.options.centerPadding+" 0px"})),e.listWidth=e.$list.width(),e.listHeight=e.$list.height(),e.options.vertical===!1&&e.options.variableWidth===!1?(e.slideWidth=Math.ceil(e.listWidth/e.options.slidesToShow),e.$slideTrack.width(Math.ceil(e.slideWidth*e.$slideTrack.children(".slick-slide").length))):e.options.variableWidth===!0?e.$slideTrack.width(5e3*e.slideCount):(e.slideWidth=Math.ceil(e.listWidth),e.$slideTrack.height(Math.ceil(e.$slides.first().outerHeight(!0)*e.$slideTrack.children(".slick-slide").length)));var t=e.$slides.first().outerWidth(!0)-e.$slides.first().width();e.options.variableWidth===!1&&e.$slideTrack.children(".slick-slide").width(e.slideWidth-t)},t.prototype.setFade=function(){var t,i=this;i.$slides.each(function(o,n){t=-1*i.slideWidth*o,i.options.rtl===!0?e(n).css({position:"relative",right:t,top:0,zIndex:i.options.zIndex-2,opacity:0}):e(n).css({position:"relative",left:t,top:0,zIndex:i.options.zIndex-2,opacity:0})}),i.$slides.eq(i.currentSlide).css({zIndex:i.options.zIndex-1,opacity:1})},t.prototype.setHeight=function(){var e=this;if(1===e.options.slidesToShow&&e.options.adaptiveHeight===!0&&e.options.vertical===!1){var t=e.$slides.eq(e.currentSlide).outerHeight(!0);e.$list.css("height",t)}},t.prototype.setOption=t.prototype.slickSetOption=function(t,i,o){var n,s,r=this;if("responsive"===t&&"array"===e.type(i))for(s in i)if("array"!==e.type(r.options.responsive))r.options.responsive=[i[s]];else{for(n=r.options.responsive.length-1;n>=0;)r.options.responsive[n].breakpoint===i[s].breakpoint&&r.options.responsive.splice(n,1),n--;r.options.responsive.push(i[s])}else r.options[t]=i;o===!0&&(r.unload(),r.reinit())},t.prototype.setPosition=function(){var e=this;e.setDimensions(),e.setHeight(),e.options.fade===!1?e.setCSS(e.getLeft(e.currentSlide)):e.setFade(),e.$slider.trigger("setPosition",[e])},t.prototype.setProps=function(){var e=this,t=document.body.style;e.positionProp=e.options.vertical===!0?"top":"left","top"===e.positionProp?e.$slider.addClass("slick-vertical"):e.$slider.removeClass("slick-vertical"),(void 0!==t.WebkitTransition||void 0!==t.MozTransition||void 0!==t.msTransition)&&e.options.useCSS===!0&&(e.cssTransitions=!0),e.options.fade&&("number"==typeof e.options.zIndex?e.options.zIndex<3&&(e.options.zIndex=3):e.options.zIndex=e.defaults.zIndex),void 0!==t.OTransform&&(e.animType="OTransform",e.transformType="-o-transform",e.transitionType="OTransition",void 0===t.perspectiveProperty&&void 0===t.webkitPerspective&&(e.animType=!1)),void 0!==t.MozTransform&&(e.animType="MozTransform",e.transformType="-moz-transform",e.transitionType="MozTransition",void 0===t.perspectiveProperty&&void 0===t.MozPerspective&&(e.animType=!1)),void 0!==t.webkitTransform&&(e.animType="webkitTransform",e.transformType="-webkit-transform",e.transitionType="webkitTransition",void 0===t.perspectiveProperty&&void 0===t.webkitPerspective&&(e.animType=!1)),void 0!==t.msTransform&&(e.animType="msTransform",e.transformType="-ms-transform",e.transitionType="msTransition",void 0===t.msTransform&&(e.animType=!1)),void 0!==t.transform&&e.animType!==!1&&(e.animType="transform",e.transformType="transform",e.transitionType="transition"),e.transformsEnabled=null!==e.animType&&e.animType!==!1},t.prototype.setSlideClasses=function(e){var t,i,o,n,s=this;i=s.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true"),s.$slides.eq(e).addClass("slick-current"),s.options.centerMode===!0?(t=Math.floor(s.options.slidesToShow/2),s.options.infinite===!0&&(e>=t&&e<=s.slideCount-1-t?s.$slides.slice(e-t,e+t+1).addClass("slick-active").attr("aria-hidden","false"):(o=s.options.slidesToShow+e,i.slice(o-t+1,o+t+2).addClass("slick-active").attr("aria-hidden","false")),0===e?i.eq(i.length-1-s.options.slidesToShow).addClass("slick-center"):e===s.slideCount-1&&i.eq(s.options.slidesToShow).addClass("slick-center")),s.$slides.eq(e).addClass("slick-center")):e>=0&&e<=s.slideCount-s.options.slidesToShow?s.$slides.slice(e,e+s.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):i.length<=s.options.slidesToShow?i.addClass("slick-active").attr("aria-hidden","false"):(n=s.slideCount%s.options.slidesToShow,o=s.options.infinite===!0?s.options.slidesToShow+e:e,s.options.slidesToShow==s.options.slidesToScroll&&s.slideCount-e<s.options.slidesToShow?i.slice(o-(s.options.slidesToShow-n),o+n).addClass("slick-active").attr("aria-hidden","false"):i.slice(o,o+s.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false")),"ondemand"===s.options.lazyLoad&&s.lazyLoad()},t.prototype.setupInfinite=function(){var t,i,o,n=this;if(n.options.fade===!0&&(n.options.centerMode=!1),n.options.infinite===!0&&n.options.fade===!1&&(i=null,n.slideCount>n.options.slidesToShow)){for(o=n.options.centerMode===!0?n.options.slidesToShow+1:n.options.slidesToShow,t=n.slideCount;t>n.slideCount-o;t-=1)i=t-1,e(n.$slides[i]).clone(!0).attr("id","").attr("data-slick-index",i-n.slideCount).prependTo(n.$slideTrack).addClass("slick-cloned");for(t=0;o>t;t+=1)i=t,e(n.$slides[i]).clone(!0).attr("id","").attr("data-slick-index",i+n.slideCount).appendTo(n.$slideTrack).addClass("slick-cloned");n.$slideTrack.find(".slick-cloned").find("[id]").each(function(){e(this).attr("id","")})}},t.prototype.setPaused=function(e){var t=this;t.options.autoplay===!0&&t.options.pauseOnHover===!0&&(t.paused=e,e?t.autoPlayClear():t.autoPlay())},t.prototype.selectHandler=function(t){var i=this,o=e(t.target).is(".slick-slide")?e(t.target):e(t.target).parents(".slick-slide"),n=parseInt(o.attr("data-slick-index"));return n||(n=0),i.slideCount<=i.options.slidesToShow?(i.setSlideClasses(n),void i.asNavFor(n)):void i.slideHandler(n)},t.prototype.slideHandler=function(e,t,i){var o,n,s,r,a=null,l=this;return t=t||!1,l.animating===!0&&l.options.waitForAnimate===!0||l.options.fade===!0&&l.currentSlide===e||l.slideCount<=l.options.slidesToShow?void 0:(t===!1&&l.asNavFor(e),o=e,a=l.getLeft(o),r=l.getLeft(l.currentSlide),l.currentLeft=null===l.swipeLeft?r:l.swipeLeft,l.options.infinite===!1&&l.options.centerMode===!1&&(0>e||e>l.getDotCount()*l.options.slidesToScroll)?void(l.options.fade===!1&&(o=l.currentSlide,i!==!0?l.animateSlide(r,function(){l.postSlide(o)}):l.postSlide(o))):l.options.infinite===!1&&l.options.centerMode===!0&&(0>e||e>l.slideCount-l.options.slidesToScroll)?void(l.options.fade===!1&&(o=l.currentSlide,i!==!0?l.animateSlide(r,function(){l.postSlide(o)}):l.postSlide(o))):(l.options.autoplay===!0&&clearInterval(l.autoPlayTimer),n=0>o?0!==l.slideCount%l.options.slidesToScroll?l.slideCount-l.slideCount%l.options.slidesToScroll:l.slideCount+o:o>=l.slideCount?0!==l.slideCount%l.options.slidesToScroll?0:o-l.slideCount:o,l.animating=!0,l.$slider.trigger("beforeChange",[l,l.currentSlide,n]),s=l.currentSlide,l.currentSlide=n,l.setSlideClasses(l.currentSlide),l.updateDots(),l.updateArrows(),l.options.fade===!0?(i!==!0?(l.fadeSlideOut(s),l.fadeSlide(n,function(){l.postSlide(n)})):l.postSlide(n),void l.animateHeight()):void(i!==!0?l.animateSlide(a,function(){l.postSlide(n)}):l.postSlide(n))))},t.prototype.startLoad=function(){var e=this;e.options.arrows===!0&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow.hide(),e.$nextArrow.hide()),e.options.dots===!0&&e.slideCount>e.options.slidesToShow&&e.$dots.hide(),e.$slider.addClass("slick-loading")},t.prototype.swipeDirection=function(){var e,t,i,o,n=this;return e=n.touchObject.startX-n.touchObject.curX,t=n.touchObject.startY-n.touchObject.curY,i=Math.atan2(t,e),o=Math.round(180*i/Math.PI),0>o&&(o=360-Math.abs(o)),45>=o&&o>=0?n.options.rtl===!1?"left":"right":360>=o&&o>=315?n.options.rtl===!1?"left":"right":o>=135&&225>=o?n.options.rtl===!1?"right":"left":n.options.verticalSwiping===!0?o>=35&&135>=o?"left":"right":"vertical"},t.prototype.swipeEnd=function(){var e,t=this;if(t.dragging=!1,t.shouldClick=!(t.touchObject.swipeLength>10),void 0===t.touchObject.curX)return!1;if(t.touchObject.edgeHit===!0&&t.$slider.trigger("edge",[t,t.swipeDirection()]),t.touchObject.swipeLength>=t.touchObject.minSwipe)switch(t.swipeDirection()){case"left":e=t.options.swipeToSlide?t.checkNavigable(t.currentSlide+t.getSlideCount()):t.currentSlide+t.getSlideCount(),t.slideHandler(e),t.currentDirection=0,t.touchObject={},t.$slider.trigger("swipe",[t,"left"]);break;case"right":e=t.options.swipeToSlide?t.checkNavigable(t.currentSlide-t.getSlideCount()):t.currentSlide-t.getSlideCount(),t.slideHandler(e),t.currentDirection=1,t.touchObject={},t.$slider.trigger("swipe",[t,"right"])}else t.touchObject.startX!==t.touchObject.curX&&(t.slideHandler(t.currentSlide),t.touchObject={})},t.prototype.swipeHandler=function(e){var t=this;if(!(t.options.swipe===!1||"ontouchend"in document&&t.options.swipe===!1||t.options.draggable===!1&&-1!==e.type.indexOf("mouse")))switch(t.touchObject.fingerCount=e.originalEvent&&void 0!==e.originalEvent.touches?e.originalEvent.touches.length:1,t.touchObject.minSwipe=t.listWidth/t.options.touchThreshold,t.options.verticalSwiping===!0&&(t.touchObject.minSwipe=t.listHeight/t.options.touchThreshold),e.data.action){case"start":t.swipeStart(e);break;case"move":t.swipeMove(e);break;case"end":t.swipeEnd(e)}},t.prototype.swipeMove=function(e){var t,i,o,n,s,r=this;return s=void 0!==e.originalEvent?e.originalEvent.touches:null,!(!r.dragging||s&&1!==s.length)&&(t=r.getLeft(r.currentSlide),r.touchObject.curX=void 0!==s?s[0].pageX:e.clientX,r.touchObject.curY=void 0!==s?s[0].pageY:e.clientY,r.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(r.touchObject.curX-r.touchObject.startX,2))),r.options.verticalSwiping===!0&&(r.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(r.touchObject.curY-r.touchObject.startY,2)))),i=r.swipeDirection(),"vertical"!==i?(void 0!==e.originalEvent&&r.touchObject.swipeLength>4&&e.preventDefault(),n=(r.options.rtl===!1?1:-1)*(r.touchObject.curX>r.touchObject.startX?1:-1),r.options.verticalSwiping===!0&&(n=r.touchObject.curY>r.touchObject.startY?1:-1),o=r.touchObject.swipeLength,r.touchObject.edgeHit=!1,r.options.infinite===!1&&(0===r.currentSlide&&"right"===i||r.currentSlide>=r.getDotCount()&&"left"===i)&&(o=r.touchObject.swipeLength*r.options.edgeFriction,r.touchObject.edgeHit=!0),r.swipeLeft=r.options.vertical===!1?t+o*n:t+o*(r.$list.height()/r.listWidth)*n,r.options.verticalSwiping===!0&&(r.swipeLeft=t+o*n),r.options.fade!==!0&&r.options.touchMove!==!1&&(r.animating===!0?(r.swipeLeft=null,!1):void r.setCSS(r.swipeLeft))):void 0)},t.prototype.swipeStart=function(e){var t,i=this;return 1!==i.touchObject.fingerCount||i.slideCount<=i.options.slidesToShow?(i.touchObject={},!1):(void 0!==e.originalEvent&&void 0!==e.originalEvent.touches&&(t=e.originalEvent.touches[0]),i.touchObject.startX=i.touchObject.curX=void 0!==t?t.pageX:e.clientX,i.touchObject.startY=i.touchObject.curY=void 0!==t?t.pageY:e.clientY,void(i.dragging=!0))},t.prototype.unfilterSlides=t.prototype.slickUnfilter=function(){var e=this;null!==e.$slidesCache&&(e.unload(),e.$slideTrack.children(this.options.slide).detach(),e.$slidesCache.appendTo(e.$slideTrack),e.reinit())},t.prototype.unload=function(){var t=this;e(".slick-cloned",t.$slider).remove(),t.$dots&&t.$dots.remove(),t.$prevArrow&&t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.remove(),t.$nextArrow&&t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.remove(),t.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")},t.prototype.unslick=function(e){var t=this;t.$slider.trigger("unslick",[t,e]),t.destroy()},t.prototype.updateArrows=function(){var e,t=this;e=Math.floor(t.options.slidesToShow/2),t.options.arrows===!0&&t.slideCount>t.options.slidesToShow&&!t.options.infinite&&(t.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),t.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),0===t.currentSlide?(t.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),t.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):t.currentSlide>=t.slideCount-t.options.slidesToShow&&t.options.centerMode===!1?(t.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),
t.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")):t.currentSlide>=t.slideCount-1&&t.options.centerMode===!0&&(t.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),t.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))},t.prototype.updateDots=function(){var e=this;null!==e.$dots&&(e.$dots.find("li").removeClass("slick-active").attr("aria-hidden","true"),e.$dots.find("li").eq(Math.floor(e.currentSlide/e.options.slidesToScroll)).addClass("slick-active").attr("aria-hidden","false"))},t.prototype.visibility=function(){var e=this;document[e.hidden]?(e.paused=!0,e.autoPlayClear()):e.options.autoplay===!0&&(e.paused=!1,e.autoPlay())},t.prototype.initADA=function(){var t=this;t.$slides.add(t.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),t.$slideTrack.attr("role","listbox"),t.$slides.not(t.$slideTrack.find(".slick-cloned")).each(function(i){e(this).attr({role:"option","aria-describedby":"slick-slide"+t.instanceUid+i})}),null!==t.$dots&&t.$dots.attr("role","tablist").find("li").each(function(i){e(this).attr({role:"presentation","aria-selected":"false","aria-controls":"navigation"+t.instanceUid+i,id:"slick-slide"+t.instanceUid+i})}).first().attr("aria-selected","true").end().find("button").attr("role","button").end().closest("div").attr("role","toolbar"),t.activateADA()},t.prototype.activateADA=function(){var e=this,t=e.$slider.find("*").is(":focus");e.$slideTrack.find(".slick-active").attr({"aria-hidden":"false",tabindex:"0"}).find("a, input, button, select").attr({tabindex:"0"}),t&&e.$slideTrack.find(".slick-active").focus()},t.prototype.focusHandler=function(){var t=this;t.$slider.on("focus.slick blur.slick","*",function(i){i.stopImmediatePropagation();var o=e(this);setTimeout(function(){t.isPlay&&(o.is(":focus")?(t.autoPlayClear(),t.paused=!0):(t.paused=!1,t.autoPlay()))},0)})},e.fn.slick=function(){var e,i=this,o=arguments[0],n=Array.prototype.slice.call(arguments,1),s=i.length,r=0;for(r;s>r;r++)if("object"==typeof o||"undefined"==typeof o?i[r].slick=new t(i[r],o):e=i[r].slick[o].apply(i[r].slick,n),"undefined"!=typeof e)return e;return i}}),function(e,t){"use strict";var i=function(){var i={bcClass:"sf-breadcrumb",menuClass:"sf-js-enabled",anchorClass:"sf-with-ul",menuArrowClass:"sf-arrows"},o=function(){var t=/^(?![\w\W]*Windows Phone)[\w\W]*(iPhone|iPad|iPod)/i.test(navigator.userAgent);return t&&e("html").css("cursor","pointer").on("click",e.noop),t}(),n=function(){var e=document.documentElement.style;return"behavior"in e&&"fill"in e&&/iemobile/i.test(navigator.userAgent)}(),s=function(){return!!t.PointerEvent}(),r=function(e,t,o){var n,s=i.menuClass;t.cssArrows&&(s+=" "+i.menuArrowClass),n=o?"addClass":"removeClass",e[n](s)},a=function(t,o){return t.find("li."+o.pathClass).slice(0,o.pathLevels).addClass(o.hoverClass+" "+i.bcClass).filter(function(){return e(this).children(o.popUpSelector).hide().show().length}).removeClass(o.pathClass)},l=function(e,t){var o=t?"addClass":"removeClass";e.children("a")[o](i.anchorClass)},c=function(e){var t=e.css("ms-touch-action"),i=e.css("touch-action");i=i||t,i="pan-y"===i?"auto":"pan-y",e.css({"ms-touch-action":i,"touch-action":i})},d=function(e){return e.closest("."+i.menuClass)},u=function(e){return d(e).data("sfOptions")},p=function(){var t=e(this),i=u(t);clearTimeout(i.sfTimer),t.siblings().superfish("hide").end().superfish("show")},h=function(t){t.retainPath=e.inArray(this[0],t.$path)>-1,this.superfish("hide"),this.parents("."+t.hoverClass).length||(t.onIdle.call(d(this)),t.$path.length&&e.proxy(p,t.$path)())},f=function(){var t=e(this),i=u(t);o?e.proxy(h,t,i)():(clearTimeout(i.sfTimer),i.sfTimer=setTimeout(e.proxy(h,t,i),i.delay))},m=function(t){var i=e(this),o=u(i),n=i.siblings(t.data.popUpSelector);return o.onHandleTouch.call(n)===!1?this:void(n.length>0&&n.is(":hidden")&&(i.one("click.superfish",!1),"MSPointerDown"===t.type||"pointerdown"===t.type?i.trigger("focus"):e.proxy(p,i.parent("li"))()))},g=function(t,i){var r="li:has("+i.popUpSelector+")";e.fn.hoverIntent&&!i.disableHI?t.hoverIntent(p,f,r):t.on("mouseenter.superfish",r,p).on("mouseleave.superfish",r,f);var a="MSPointerDown.superfish";s&&(a="pointerdown.superfish"),o||(a+=" touchend.superfish"),n&&(a+=" mousedown.superfish"),t.on("focusin.superfish","li",p).on("focusout.superfish","li",f).on(a,"a",i,m)};return{hide:function(t){if(this.length){var i=this,o=u(i);if(!o)return this;var n=o.retainPath===!0?o.$path:"",s=i.find("li."+o.hoverClass).add(this).not(n).removeClass(o.hoverClass).children(o.popUpSelector),r=o.speedOut;if(t&&(s.show(),r=0),o.retainPath=!1,o.onBeforeHide.call(s)===!1)return this;s.stop(!0,!0).animate(o.animationOut,r,function(){var t=e(this);o.onHide.call(t)})}return this},show:function(){var e=u(this);if(!e)return this;var t=this.addClass(e.hoverClass),i=t.children(e.popUpSelector);return e.onBeforeShow.call(i)===!1?this:(i.stop(!0,!0).animate(e.animation,e.speed,function(){e.onShow.call(i)}),this)},destroy:function(){return this.each(function(){var t,o=e(this),n=o.data("sfOptions");return!!n&&(t=o.find(n.popUpSelector).parent("li"),clearTimeout(n.sfTimer),r(o,n),l(t),c(o),o.off(".superfish").off(".hoverIntent"),t.children(n.popUpSelector).attr("style",function(e,t){return t.replace(/display[^;]+;?/g,"")}),n.$path.removeClass(n.hoverClass+" "+i.bcClass).addClass(n.pathClass),o.find("."+n.hoverClass).removeClass(n.hoverClass),n.onDestroy.call(o),void o.removeData("sfOptions"))})},init:function(t){return this.each(function(){var o=e(this);if(o.data("sfOptions"))return!1;var n=e.extend({},e.fn.superfish.defaults,t),s=o.find(n.popUpSelector).parent("li");n.$path=a(o,n),o.data("sfOptions",n),r(o,n,!0),l(s,!0),c(o),g(o,n),s.not("."+i.bcClass).superfish("hide",!0),n.onInit.call(this)})}}}();e.fn.superfish=function(t,o){return i[t]?i[t].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof t&&t?e.error("Method "+t+" does not exist on jQuery.fn.superfish"):i.init.apply(this,arguments)},e.fn.superfish.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:e.noop,onBeforeShow:e.noop,onShow:e.noop,onBeforeHide:e.noop,onHide:e.noop,onIdle:e.noop,onDestroy:e.noop,onHandleTouch:e.noop}}(jQuery,window);
jQuery(document).ready(function(e){function t(){if(e("body").scrollTop(0),i=new ScrollMagic.Controller,e(".key").length&&!Modernizr.touchevents){var t=e(".pathway").height(),n=e(".key").height(),a=t-n;new ScrollMagic.Scene({triggerElement:"#trigger-key",triggerHook:0,duration:a}).setPin(".key").setClassToggle(".key","key--sticky").addTo(i)}e("body").hasClass("page-template-page-section-circle")&&e(".section__circle").each(function(t,n){var a=e(this),o=a.parent(".section").height(),s=a.height(),r=o-s;new ScrollMagic.Scene({triggerElement:n,triggerHook:0,duration:r}).on("enter",function(e){console.log(r)}).setPin(n).addTo(i)})}var n=!1,i=null,a=1199;e(window).width()<a&&(n=!0),n||t(),e(window).resize(function(){var n=e(window).width();n<a?null!==i&&void 0!==i&&(i=i.destroy(!0)):n>=a&&(null!==i&&void 0!==i||t())})}),function(e){e(document).ready(function(){var t='<a class="slick-arrow--previous"><i class="icon icon-caret-left"></i></a>',n='<a class="slick-arrow--next"><i class="icon icon-caret-right"></i></a>';e(".js-slick-single").slick({slidesToShow:1,slidesToScroll:1,infinite:!0,arrows:!0,prevArrow:t,nextArrow:n,dots:!0,speed:600,cssEase:"ease-in-out",lazyLoad:"ondemand",autoplay:!0,autoplaySpeed:4e3}),e(".js-slick-single img").load(function(){e(this).addClass("slick-loaded"),e(this).prev(".spinner").fadeOut().remove()}),e(".js-nav-toggle").click(function(t){t.preventDefault(),e("#search-offscreen").hasClass("is-active")?e("#search-offscreen").removeClass("is-active"):(e(this).toggleClass("hamburger--active"),e(".offscreen").toggleClass("offscreen--active"),e("body").toggleClass("body--offscreen-active"))}),e(".offscreen .nav--primary").superfish(),e('.nav-mobile a[href*="#"]').click(function(t){e(".js-nav-toggle").trigger("click")}),e(".js-link-anchor, .js-link-anchor a").click(function(){if(location.pathname.replace(/^\//,"")==this.pathname.replace(/^\//,"")&&location.hostname==this.hostname){var t=e(this.hash);if(t=t.length?t:e("[name="+this.hash.slice(1)+"]"),t.length)return e("html, body").animate({scrollTop:t.offset().top},1e3),!1}}),e(window).width()>1200&&(e(".header__nav .menu-item-mega").each(function(){e(this).find(".sub-menu").wrap('<div class="mega-menu"><div class="wrap wrap--large"></div></div>')}),e(".header__nav .mega-menu .sub-menu").each(function(){var t=e(this).find("li").length,n=Math.ceil(t/4);e(this).find("li").each(function(t){e(this).attr("data-count",t),t%n==0&&e(this).addClass("break")}),e(this).find(".break").each(function(){var t=e(this);e("<ul class='sub-menu'>").insertAfter(t.parent()).append(t.nextAll().andSelf())})}),e(".header__nav .mega-menu .sub-menu").each(function(){var t=e(this);0==t.children().length&&t.remove()})),e('a[href*="'+theme_vars.home_url+'/study/"],a[href*="'+theme_vars.home_url+'/job-outcome/"]').each(function(){e(this).addClass("js-magnific-ajax")}),e(".js-magnific-popup").magnificPopup({type:"inline",closeBtnInside:!0,closeMarkup:'<button title="%title%" type="button" class="mfp-close"></button>',midClick:!0}),e(".js-magnific-video").magnificPopup({type:"inline",midClick:!0,callbacks:{open:function(){e(this.content).find("video")[0].play();var t=e(this.content).find("video")[0].player;t.setPlayerSize(),t.setControlsSize()},close:function(){e(this.content).find("video")[0].load()}}}),e(".js-magnific-ajax").magnificPopup({type:"ajax",closeBtnInside:!0,closeOnContentClick:!1,closeOnBgClick:!1,tLoading:'<div class="spinner"></div>'}),e(".pod__item").hover(function(){e(this).find(".button").addClass("is-active")},function(){e(this).find(".button").removeClass("is-active")}),e(".js-accordion-toggle").click(function(t){t.preventDefault();var n=e(this).data("target"),i=e(this).data("group");e(this).parent().hasClass("accordion__item--open")?(e('.accordion[data-group="'+i+'"] .accordion__item').removeClass("accordion__item--open"),e('.accordion[data-group="'+i+'"] .accordion__item__content').slideUp(),e(this).parent().removeClass("accordion__item--open"),e("#"+n).slideUp()):(e('.accordion[data-group="'+i+'"] .accordion__item').removeClass("accordion__item--open"),e('.accordion[data-group="'+i+'"] .accordion__item__content').slideUp(),e(this).parent().addClass("accordion__item--open"),e("#"+n).slideDown())}),e(".accordion").each(function(){var t=e(this).find(".accordion__item__heading:first");t.trigger("click")}),e(".js-fitvids").fitVids();var i=new Blazy({selector:".b-lazy",loadInvisible:!0,offset:200,success:function(t){e(t).parent("div").find(".spinner").fadeOut().remove()}});e(".js-search-toggle").click(function(t){t.preventDefault();var n=e(this).attr("href");e(this).data("transition","fade")?e(n).addClass("is-active").fadeIn():e(n).addClass("is-active"),e(n).find("#s").focus()}),e(".js-search-close").click(function(t){t.preventDefault();var n=e(this).attr("href");e(this).data("transition","fade")?e(n).removeClass("is-active").fadeOut():e(n).removeClass("is-active")}),e(document).on("facetwp-loaded",function(){i.revalidate(),e(".facetwp-template").addClass("facetwp-template--loaded"),e(".js-match-height").matchHeight()}),e(document).on("facetwp-refresh",function(){e(".facetwp-template").removeClass("facetwp-template--loaded"),e(".fs-label").append('<div class="spinner spinner--dark spinner--small spinner--inline"></div>')})}),e(window).load(function(){e(".list--two-col").each(function(){var t=0;e(this).find("li").each(function(){e(this).height()>t&&(t=e(this).height())}),e(this).find("li").height(t)}),e(window).width<=767&&e("list--two-col li").removeAttr("style")}),e(document).bind("gform_post_render",function(){var t=e(".ginput_container_select select"),n=e(".gfield_checkbox li label"),i=e(".gfield_radio li label"),a=e(".ginput_container_date input");t.each(function(){e(this).parent().hasClass("custom-select")||e(this).wrap('<div class="custom-select"></div>')}),n.each(function(){e(this).prev(".custom-checkbox").length&&e(this).prepend('<span class="custom-checkbox"></span>')}),i.each(function(){e(this).prev(".custom-radio").length&&e(this).prepend('<span class="custom-radio"></span>')}),a.each(function(){e(this).parent().hasClass("custom-datepicker")||e(this).wrap('<div class="custom-datepicker"></div>')})}),e(window).load(function(){e(".js-match-height").matchHeight(),e(".gfield").matchHeight({property:"min-height"})})}(jQuery),!function(e,t,n){function i(e,t){return typeof e===t}function a(){var e,t,n,a,o,s,r;for(var c in b)if(b.hasOwnProperty(c)){if(e=[],t=b[c],t.name&&(e.push(t.name.toLowerCase()),t.options&&t.options.aliases&&t.options.aliases.length))for(n=0;n<t.options.aliases.length;n++)e.push(t.options.aliases[n].toLowerCase());for(a=i(t.fn,"function")?t.fn():t.fn,o=0;o<e.length;o++)s=e[o],r=s.split("."),1===r.length?T[r[0]]=a:(!T[r[0]]||T[r[0]]instanceof Boolean||(T[r[0]]=new Boolean(T[r[0]])),T[r[0]][r[1]]=a),C.push((a?"":"no-")+r.join("-"))}}function o(t,n,i){var a;if("getComputedStyle"in e){a=getComputedStyle.call(e,t,n);var o=e.console;if(null!==a)i&&(a=a.getPropertyValue(i));else if(o){var s=o.error?"error":"log";o[s].call(o,"getComputedStyle returning null, its possible modernizr test results are inaccurate")}}else a=!n&&t.currentStyle&&t.currentStyle[i];return a}function s(e){var t=j.className,n=T._config.classPrefix||"";if(P&&(t=t.baseVal),T._config.enableJSClass){var i=new RegExp("(^|\\s)"+n+"no-js(\\s|$)");t=t.replace(i,"$1"+n+"js$2")}T._config.enableClasses&&(t+=" "+n+e.join(" "+n),P?j.className.baseVal=t:j.className=t)}function r(){return"function"!=typeof t.createElement?t.createElement(arguments[0]):P?t.createElementNS.call(t,"http://www.w3.org/2000/svg",arguments[0]):t.createElement.apply(t,arguments)}function c(e,t){return e-1===t||e===t||e+1===t}function l(e){return e.replace(/([a-z])-([a-z])/g,function(e,t,n){return t+n.toUpperCase()}).replace(/^-/,"")}function d(e,t){if("object"==typeof e)for(var n in e)E(e,n)&&d(n,e[n]);else{e=e.toLowerCase();var i=e.split("."),a=T[i[0]];if(2==i.length&&(a=a[i[1]]),"undefined"!=typeof a)return T;t="function"==typeof t?t():t,1==i.length?T[i[0]]=t:(!T[i[0]]||T[i[0]]instanceof Boolean||(T[i[0]]=new Boolean(T[i[0]])),T[i[0]][i[1]]=t),s([(t&&0!=t?"":"no-")+i.join("-")]),T._trigger(e,t)}return T}function u(){var e=t.body;return e||(e=r(P?"svg":"body"),e.fake=!0),e}function f(e,n,i,a){var o,s,c,l,d="modernizr",f=r("div"),p=u();if(parseInt(i,10))for(;i--;)c=r("div"),c.id=a?a[i]:d+(i+1),f.appendChild(c);return o=r("style"),o.type="text/css",o.id="s"+d,(p.fake?p:f).appendChild(o),p.appendChild(f),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(t.createTextNode(e)),f.id=d,p.fake&&(p.style.background="",p.style.overflow="hidden",l=j.style.overflow,j.style.overflow="hidden",j.appendChild(p)),s=n(f,e),p.fake?(p.parentNode.removeChild(p),j.style.overflow=l,j.offsetHeight):f.parentNode.removeChild(f),!!s}function p(e,t){return!!~(""+e).indexOf(t)}function h(e,t){return function(){return e.apply(t,arguments)}}function g(e,t,n){var a;for(var o in e)if(e[o]in t)return n===!1?e[o]:(a=t[e[o]],i(a,"function")?h(a,n||t):a);return!1}function m(e){return e.replace(/([A-Z])/g,function(e,t){return"-"+t.toLowerCase()}).replace(/^ms-/,"-ms-")}function v(t,i){var a=t.length;if("CSS"in e&&"supports"in e.CSS){for(;a--;)if(e.CSS.supports(m(t[a]),i))return!0;return!1}if("CSSSupportsRule"in e){for(var s=[];a--;)s.push("("+m(t[a])+":"+i+")");return s=s.join(" or "),f("@supports ("+s+") { #modernizr { position: absolute; } }",function(e){return"absolute"==o(e,null,"position")})}return n}function y(e,t,a,o){function s(){d&&(delete M.style,delete M.modElem)}if(o=!i(o,"undefined")&&o,!i(a,"undefined")){var c=v(e,a);if(!i(c,"undefined"))return c}for(var d,u,f,h,g,m=["modernizr","tspan","samp"];!M.style&&m.length;)d=!0,M.modElem=r(m.shift()),M.style=M.modElem.style;for(f=e.length,u=0;f>u;u++)if(h=e[u],g=M.style[h],p(h,"-")&&(h=l(h)),M.style[h]!==n){if(o||i(a,"undefined"))return s(),"pfx"!=t||h;try{M.style[h]=a}catch(y){}if(M.style[h]!=g)return s(),"pfx"!=t||h}return s(),!1}function w(e,t,n,a,o){var s=e.charAt(0).toUpperCase()+e.slice(1),r=(e+" "+O.join(s+" ")+s).split(" ");return i(t,"string")||i(t,"undefined")?y(r,t,a,o):(r=(e+" "+$.join(s+" ")+s).split(" "),g(r,t,n))}function _(e,t,i){return w(e,n,n,t,i)}var C=[],b=[],k={_version:"3.6.0",_config:{classPrefix:"",enableClasses:!0,enableJSClass:!0,usePrefixes:!0},_q:[],on:function(e,t){var n=this;setTimeout(function(){t(n[e])},0)},addTest:function(e,t,n){b.push({name:e,fn:t,options:n})},addAsyncTest:function(e){b.push({name:null,fn:e})}},T=function(){};T.prototype=k,T=new T,T.addTest("cookies",function(){try{t.cookie="cookietest=1";var e=-1!=t.cookie.indexOf("cookietest=");return t.cookie="cookietest=1; expires=Thu, 01-Jan-1970 00:00:01 GMT",e}catch(n){return!1}}),T.addTest("ie8compat",!e.addEventListener&&!!t.documentMode&&7===t.documentMode),T.addTest("svg",!!t.createElementNS&&!!t.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect);var S="CSS"in e&&"supports"in e.CSS,x="supportsCSS"in e;T.addTest("supports",S||x);var j=t.documentElement,P="svg"===j.nodeName.toLowerCase(),z=k._config.usePrefixes?" -webkit- -moz- -o- -ms- ".split(" "):["",""];k._prefixes=z,T.addTest("video",function(){var e=r("video"),t=!1;try{t=!!e.canPlayType,t&&(t=new Boolean(t),t.ogg=e.canPlayType('video/ogg; codecs="theora"').replace(/^no$/,""),t.h264=e.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/^no$/,""),t.webm=e.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,""),t.vp9=e.canPlayType('video/webm; codecs="vp9"').replace(/^no$/,""),t.hls=e.canPlayType('application/x-mpegURL; codecs="avc1.42E01E"').replace(/^no$/,""))}catch(n){}return t}),T.addTest("csscalc",function(){var e="width:",t="calc(10px);",n=r("a");return n.style.cssText=e+z.join(t+e),!!n.style.length}),T.addTest("cssgradients",function(){for(var e,t="background-image:",n="gradient(linear,left top,right bottom,from(#9f9),to(white));",i="",a=0,o=z.length-1;o>a;a++)e=0===a?"to ":"",i+=t+z[a]+"linear-gradient("+e+"left top, #9f9, white);";T._config.usePrefixes&&(i+=t+"-webkit-"+n);var s=r("a"),c=s.style;return c.cssText=i,(""+c.backgroundImage).indexOf("gradient")>-1}),T.addTest("audio",function(){var e=r("audio"),t=!1;try{t=!!e.canPlayType,t&&(t=new Boolean(t),t.ogg=e.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),t.mp3=e.canPlayType('audio/mpeg; codecs="mp3"').replace(/^no$/,""),t.opus=e.canPlayType('audio/ogg; codecs="opus"')||e.canPlayType('audio/webm; codecs="opus"').replace(/^no$/,""),t.wav=e.canPlayType('audio/wav; codecs="1"').replace(/^no$/,""),t.m4a=(e.canPlayType("audio/x-m4a;")||e.canPlayType("audio/aac;")).replace(/^no$/,""))}catch(n){}return t}),T.addTest("canvas",function(){var e=r("canvas");return!(!e.getContext||!e.getContext("2d"))});var E;!function(){var e={}.hasOwnProperty;E=i(e,"undefined")||i(e.call,"undefined")?function(e,t){return t in e&&i(e.constructor.prototype[t],"undefined")}:function(t,n){return e.call(t,n)}}(),k._l={},k.on=function(e,t){this._l[e]||(this._l[e]=[]),this._l[e].push(t),T.hasOwnProperty(e)&&setTimeout(function(){T._trigger(e,T[e])},0)},k._trigger=function(e,t){if(this._l[e]){var n=this._l[e];setTimeout(function(){var e,i;for(e=0;e<n.length;e++)(i=n[e])(t)},0),delete this._l[e]}},T._q.push(function(){k.addTest=d}),T.addTest("svgasimg",t.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Image","1.1"));var B=k.testStyles=f;T.addTest("touchevents",function(){var n;if("ontouchstart"in e||e.DocumentTouch&&t instanceof DocumentTouch)n=!0;else{var i=["@media (",z.join("touch-enabled),("),"heartz",")","{#modernizr{top:9px;position:absolute}}"].join("");B(i,function(e){n=9===e.offsetTop})}return n}),B("#modernizr { height: 50vh; }",function(t){var n=parseInt(e.innerHeight/2,10),i=parseInt(o(t,null,"height"),10);T.addTest("cssvhunit",c(i,n))});var L="Moz O ms Webkit",O=k._config.usePrefixes?L.split(" "):[];k._cssomPrefixes=O;var R=function(t){var i,a=z.length,o=e.CSSRule;if("undefined"==typeof o)return n;if(!t)return!1;if(t=t.replace(/^@/,""),i=t.replace(/-/g,"_").toUpperCase()+"_RULE",i in o)return"@"+t;for(var s=0;a>s;s++){var r=z[s],c=r.toUpperCase()+"_"+i;if(c in o)return"@-"+r.toLowerCase()+"-"+t}return!1};k.atRule=R;var $=k._config.usePrefixes?L.toLowerCase().split(" "):[];k._domPrefixes=$;var A={elem:r("modernizr")};T._q.push(function(){delete A.elem});var M={style:A.elem.style};T._q.unshift(function(){delete M.style}),k.testAllProps=w;var I=k.prefixed=function(e,t,n){return 0===e.indexOf("@")?R(e):(-1!=e.indexOf("-")&&(e=l(e)),t?w(e,t,n):w(e,"pfx"))};T.addTest("objectfit",!!I("objectFit"),{aliases:["object-fit"]}),k.testAllProps=_,T.addTest("cssanimations",_("animationName","a",!0)),T.addTest("backgroundsize",_("backgroundSize","100%",!0)),function(){T.addTest("csscolumns",function(){var e=!1,t=_("columnCount");try{e=!!t,e&&(e=new Boolean(e))}catch(n){}return e});for(var e,t,n=["Width","Span","Fill","Gap","Rule","RuleColor","RuleStyle","RuleWidth","BreakBefore","BreakAfter","BreakInside"],i=0;i<n.length;i++)e=n[i].toLowerCase(),t=_("column"+n[i]),("breakbefore"===e||"breakafter"===e||"breakinside"==e)&&(t=t||_(n[i])),T.addTest("csscolumns."+e,t)}(),T.addTest("cssgridlegacy",_("grid-columns","10px",!0)),T.addTest("cssgrid",_("grid-template-rows","none",!0)),T.addTest("flexbox",_("flexBasis","1px",!0)),T.addTest("inlinesvg",function(){var e=r("div");return e.innerHTML="<svg/>","http://www.w3.org/2000/svg"==("undefined"!=typeof SVGRect&&e.firstChild&&e.firstChild.namespaceURI)}),a(),s(C),delete k.addTest,delete k.addAsyncTest;for(var N=0;N<T._q.length;N++)T._q[N]();e.Modernizr=T}(window,document);