/** handles (scripts) :bp-livestamp | bp-nouveau | divi-button-hover-start | imagesloaded | extra-scripts | et-core-common */!function(t){"function"==typeof define&&define.amd?define(["jquery","moment"],t):t(jQuery,moment)}(function(o,m){function a(t,e){var a=t.data("livestampdata");"number"==typeof e&&(e*=1e3),t.removeAttr("data-livestamp").removeData("livestamp"),e=m(e),m.isMoment(e)&&!isNaN(+e)&&((a=o.extend({},{original:t.contents()},a)).moment=m(e),t.data("livestampdata",a).empty(),u.push(t[0]))}function t(){n||(i.update(),setTimeout(t,e))}var e=1e3,n=!1,u=o([]),i={update:function(){o("[data-livestamp]").each(function(){var t=o(this);a(t,t.data("livestamp"))});var i=[];u.each(function(){var t,e,a=o(this),n=a.data("livestampdata");void 0===n?i.push(this):m.isMoment(n.moment)&&(t=a.html())!=(n=n.moment.fromNow())&&(e=o.Event("change.livestamp"),a.trigger(e,[t,n]),e.isDefaultPrevented()||a.html(n))}),delete(u=u.not(i)).prevObject},pause:function(){n=!0},resume:function(){n=!1,t()},interval:function(t){if(void 0===t)return e;e=t}},r={add:function(t,e){return"number"==typeof e&&(e*=1e3),e=m(e),m.isMoment(e)&&!isNaN(+e)&&(t.each(function(){a(o(this),e)}),i.update()),t},destroy:function(a){return u=u.not(a),a.each(function(){var t=o(this),e=t.data("livestampdata");if(void 0===e)return a;t.html(e.original||"").removeData("livestampdata")}),a},isLivestamp:function(t){return void 0!==t.data("livestampdata")}};o.livestamp=i,o(function(){i.resume()}),o.fn.livestamp=function(t,e){return r[t]||(e=t,t="add"),r[t](this,e)}}) ;; window.wp=window.wp||{},window.bp=window.bp||{},function(s,c){"undefined"!=typeof BP_Nouveau&&(s.Nouveau={start:function(){this.setupGlobals(),this.prepareDocument(),this.initObjects(),this.setHeartBeat(),this.addListeners()},setupGlobals:function(){this.ajax_request=null,this.objects=c.map(BP_Nouveau.objects,function(e){return e}),this.objectNavParent=BP_Nouveau.object_nav_parent,this.heartbeat=wp.heartbeat||{},this.querystring=this.getLinkParams()},prepareDocument:function(){var a;c("body").hasClass("no-js")&&c("body").removeClass("no-js").addClass("js"),BP_Nouveau.warnings&&"undefined"!=typeof console&&console.warn&&c.each(BP_Nouveau.warnings,function(e,t){console.warn(t)}),c(".buddypress_object_nav .widget-title").length&&(a=c(".buddypress_object_nav .widget-title").html(),c("body").find('*:contains("'+a+'")').each(function(e,t){c(t).hasClass("widget-title")||a!==c(t).html()||c(t).is("a")||c(t).remove()}))},getStorage:function(e,t){e=(e=sessionStorage.getItem(e))?JSON.parse(e):{};return void 0!==t?e[t]||!1:e},setStorage:function(e,t,a){var s=this.getStorage(e);return void 0===a&&void 0!==s[t]?delete s[t]:s[t]=a,sessionStorage.setItem(e,JSON.stringify(s)),null!==sessionStorage.getItem(e)},getLinkParams:function(e,t){var e=e?-1!==e.indexOf("?")?"?"+e.split("?")[1]:"":document.location.search;return e?(e=e.replace(/(^\?)/,"").split("&").map(function(e){return this[(e=e.split("="))[0]]=e[1],this}.bind({}))[0],t?e[t]:e):null},urlDecode:function(e,t){var a=t||{amp:"&",lt:"<",gt:">",quot:'"',"#039":"'"};return decodeURIComponent(e.replace(/\+/g," ")).replace(/&([^;]+);/g,function(e,t){return a[t]||""})},ajax:function(e,t){this.ajax_request&&this.ajax_request.abort();t=c.extend({},s.Nouveau.getStorage("bp-"+t),{nonce:BP_Nouveau.nonces[t]},e);return void 0!==BP_Nouveau.customizer_settings&&(t.customized=BP_Nouveau.customizer_settings),this.ajax_request=c.post(BP_Nouveau.ajaxurl,t,"json"),this.ajax_request},inject:function(e,t,a){c(e).length&&t&&("append"===(a=a||"reset")?c(e).append(t):"prepend"===a?c(e).prepend(t):c(e).html(t),"undefined"==typeof bp_mentions&&void 0===s.mentions||c(".bp-suggestions").bp_mentions(s.mentions.users))},objectRequest:function(a){var e,s=this;if((a=c.extend({object:"",scope:null,filter:null,target:"#buddypress [data-bp-list]",search_terms:"",page:1,extras:null,caller:null,template:null,method:"reset"},a)).object&&a.target)return a.search_terms&&(a.search_terms=a.search_terms.replace(//g,">")),null!==a.scope&&this.setStorage("bp-"+a.object,"scope",a.scope),null!==a.filter&&this.setStorage("bp-"+a.object,"filter",a.filter),null!==a.extras&&this.setStorage("bp-"+a.object,"extras",a.extras),c(this.objectNavParent+" [data-bp-object]").each(function(){c(this).removeClass("selected loading")}),c(this.objectNavParent+' [data-bp-scope="'+a.scope+'"], #object-nav li.current').addClass("selected loading"),c('#buddypress [data-bp-filter="'+a.object+'"] option[value="'+a.filter+'"]').prop("selected",!0),"friends"===a.object||"friend_requests"===a.object||"group_members"===a.object?(a.template=a.object,a.object="members"):"group_requests"===a.object?(a.object="groups",a.template="group_requests"):"notifications"===a.object&&(a.object="members",a.template="member_notifications"),e=c.extend({action:a.object+"_filter"},a),this.ajax(e,a.object).done(function(e){var t;!1!==e.success&&((t=c(s.objectNavParent+' [data-bp-scope="'+a.scope+'"]')).removeClass("loading"),e.data&&e.data.totalItems&&e.data.navLabel&&t.find("a").first().html(e.data.navLabel+" ").append(c("").addClass("count").html(e.data.totalItems)),"reset"!==a.method?(s.inject(a.target,e.data.contents,a.method),c(a.target).trigger("bp_ajax_"+a.method,c.extend(a,{response:e.data}))):"pag-bottom"===a.caller&&c("#subnav").length?(t=c("#subnav").parent(),c("html,body").animate({scrollTop:t.offset().top},"slow",function(){c(a.target).fadeOut(100,function(){s.inject(this,e.data.contents,a.method),c(this).fadeIn(100,"swing",function(){c(a.target).trigger("bp_ajax_request",c.extend(a,{response:e.data}))})})})):c(a.target).fadeOut(100,function(){s.inject(this,e.data.contents,a.method),c(this).fadeIn(100,"swing",function(){c(a.target).trigger("bp_ajax_request",c.extend(a,{response:e.data}))})}))})},initObjects:function(){var a,s=this,r="all",n="",o=null,i=null;c.each(this.objects,function(e,t){void 0!==(a=s.getStorage("bp-"+t)).scope&&(r=a.scope),void 0!==a.extras&&"notifications"!==t&&(o=a.extras),c('#buddypress [data-bp-filter="'+t+'"]').length&&(void 0!==a.filter?(i=a.filter,c('#buddypress [data-bp-filter="'+t+'"] option[value="'+i+'"]').prop("selected",!0)):"-1"!==c('#buddypress [data-bp-filter="'+t+'"]').val()&&"0"!==c('#buddypress [data-bp-filter="'+t+'"]').val()&&(i=c('#buddypress [data-bp-filter="'+t+'"]').val())),c(this.objectNavParent+' [data-bp-object="'+t+'"]').length&&(c(this.objectNavParent+' [data-bp-object="'+t+'"]').each(function(){c(this).removeClass("selected")}),c(this.objectNavParent+' [data-bp-scope="'+t+'"], #object-nav li.current').addClass("selected")),null!==s.querystring&&(void 0!==s.querystring[t+"_search"]?n=s.querystring[t+"_search"]:void 0!==s.querystring.s&&(n=s.querystring.s),n)&&(n=s.urlDecode(n),c('#buddypress [data-bp-search="'+t+'"] input[type=search]').val(n)),c('#buddypress [data-bp-list="'+t+'"]').length&&(a={object:t,scope:r,filter:i,search_terms:n,extras:o},s.objectRequest(a))})},setHeartBeat:function(){void 0!==BP_Nouveau.pulse&&this.heartbeat&&(this.heartbeat.interval(Number(BP_Nouveau.pulse)),c.fn.extend({"heartbeat-send":function(){return this.bind("heartbeat-send.buddypress")}}),c.fn.extend({"heartbeat-tick":function(){return this.bind("heartbeat-tick.buddypress")}}))},addListeners:function(){c("[data-bp-disable-input]").on("change",this.toggleDisabledInput),c(document).on("heartbeat-send.buddypress",this.heartbeatSend),c(document).on("heartbeat-tick.buddypress",this.heartbeatTick),c(this.objectNavParent+" .bp-navs").on("click","a",this,this.scopeQuery),c("#buddypress [data-bp-filter]").on("change",this,this.filterQuery),c("#buddypress [data-bp-search]").on("submit","form",this,this.searchQuery),c("#buddypress [data-bp-search] form").on("search","input[type=search]",this.resetSearch),c("#buddypress [data-bp-list], #buddypress #item-header").on("click","[data-bp-btn-action]",this,this.buttonAction),c("#buddypress [data-bp-close]").on("click",this,this.closeNotice),c("#buddypress [data-bp-list]").on("click","[data-bp-pagination] a",this,this.paginateAction),BP_Nouveau.bpPasswordVerify&&BP_Nouveau.bpPasswordVerify.requiredPassStrength&&c("#pass1").on("input pwupdate",this.checkPassStrength)},toggleDisabledInput:function(e){var e=c(e.currentTarget),t="#"+e.data("bp-disable-input"),a=e.prop("checked");e.removeClass("enabled disabled"),a?(e.addClass("enabled"),c(t).prop("disabled",!1)):(c(t).prop("disabled",!0),e.addClass("disabled"))},heartbeatSend:function(e,t){c("#buddypress").trigger("bp_heartbeat_send",t)},heartbeatTick:function(e,t){c("#buddypress").trigger("bp_heartbeat_tick",t)},scopeQuery:function(e){var t,a,s,r=e.data,n=c(e.currentTarget).parent(),o="";return!n.hasClass("no-ajax")&&!c(e.currentTarget).hasClass("no-ajax")&&n.attr("data-bp-scope")&&(t=n.data("bp-scope"),a=n.data("bp-object"),t)&&a?(e.preventDefault(),s=c("#buddypress").find('[data-bp-filter="'+a+'"]').first().val(),c('#buddypress [data-bp-search="'+a+'"] input[type=search]').length&&(o=c('#buddypress [data-bp-search="'+a+'"] input[type=search]').val()),n.hasClass("dynamic")&&n.find("a span").html(""),void r.objectRequest({object:a,scope:t,filter:s,search_terms:o,page:1})):e},filterQuery:function(e){var t=e.data,a=c(e.target).data("bp-filter"),s="all",r=c(e.target).val(),n="";if(!a)return e;c(t.objectNavParent+" [data-bp-object].selected").length&&(s=c(t.objectNavParent+" [data-bp-object].selected").data("bp-scope")),c('#buddypress [data-bp-search="'+a+'"] input[type=search]').length&&(n=c('#buddypress [data-bp-search="'+a+'"] input[type=search]').val()),t.objectRequest({object:a,scope:s,filter:r,search_terms:n,page:1,template:null})},searchQuery:function(e){var t,a,s=e.data,r="all";if(c(e.delegateTarget).hasClass("no-ajax")||void 0===c(e.delegateTarget).data("bp-search"))return e;e.preventDefault(),t=c(e.delegateTarget).data("bp-search"),a=c("#buddypress").find('[data-bp-filter="'+t+'"]').first().val(),e=c(e.delegateTarget).find("input[type=search]").first().val(),c(s.objectNavParent+" [data-bp-object]").length&&(r=c(s.objectNavParent+' [data-bp-object="'+t+'"].selected').data("bp-scope")),s.objectRequest({object:t,scope:r,filter:a,search_terms:e,page:1,template:null})},showSearchSubmit:function(e){c(e.delegateTarget).find("[type=submit]").addClass("bp-show"),c("[type=submit]").hasClass("bp-hide")&&c("[type=submit]").removeClass("bp-hide")},resetSearch:function(e){c(e.target).val()?c(e.delegateTarget).find("[type=submit]").show():c(e.delegateTarget).submit()},buttonAction:function(e){var a=e.data,s=c(e.currentTarget),r=s.data("bp-btn-action"),t=s.data("bp-nonce"),n=s.closest("[data-bp-item-id]"),o=n.data("bp-item-id"),i=s.closest(".list-wrap"),d=n.data("bp-item-component"),p="";return r&&o&&d?(e.preventDefault(),!(void 0!==BP_Nouveau[r+"_confirm"]&&!1===window.confirm(BP_Nouveau[r+"_confirm"])||s.hasClass("pending"))&&(t=t||s.prop("href"),p=a.getLinkParams(t,"_wpnonce"),t={is_friend:"remove_friend",not_friends:"add_friend",pending:"withdraw_friendship",accept_friendship:"accept_friendship",reject_friendship:"reject_friendship"},"members"===d&&void 0!==t[r]&&(r=t[r],d="friends"),s.addClass("pending loading"),void a.ajax({action:d+"_"+r,item_id:o,_wpnonce:p},d).done(function(e){if(!1===e.success)i.prepend(e.data.feedback),s.removeClass("pending loading"),n.find(".bp-feedback").fadeOut(6e3);else{if("groups"===d&&void 0!==e.data.is_group&&e.data.is_group)return window.location.reload();var t;void 0!==e.data.is_user&&e.data.is_user?(s.parent().html(e.data.feedback),n.fadeOut(1500)):(c(a.objectNavParent+' [data-bp-scope="personal"]').length&&(t=Number(c(a.objectNavParent+' [data-bp-scope="personal"] span').html())||0,-1!==c.inArray(r,["leave_group","remove_friend"])?--t:-1!==c.inArray(r,["join_group"])&&(t+=1),t<0&&(t=0),c(a.objectNavParent+' [data-bp-scope="personal"] span').html(t)),s.parent().replaceWith(e.data.contents))}}))):e},closeNotice:function(e){var t=c(e.currentTarget);e.preventDefault(),"clear"===t.data("bp-close")&&(void 0!==c.cookie("bp-message")&&c.removeCookie("bp-message"),void 0!==c.cookie("bp-message-type"))&&c.removeCookie("bp-message-type"),t.closest(".bp-feedback").hasClass("bp-sitewide-notice")&&s.Nouveau.ajax({action:"messages_dismiss_sitewide_notice"},"messages"),t.closest(".bp-feedback").remove()},paginateAction:function(e){var t=e.data,a=c(e.currentTarget),s=null,r=null,n=null,o=null,i=a.closest("[data-bp-pagination]").data("bp-pagination")||null;if(null===i)return e;e.preventDefault(),null!==(e=c(e.delegateTarget).data("bp-list")||null)&&(void 0!==(d=t.getStorage("bp-"+e)).scope&&(s=d.scope),void 0!==d.filter&&(r=d.filter),void 0!==d.extras)&&(o=d.extras);var d={object:e,scope:s,filter:r,search_terms:n=c('#buddypress [data-bp-search="'+e+'"] input[type=search]').length?c('#buddypress [data-bp-search="'+e+'"] input[type=search]').val():n,extras:o,page:t.getLinkParams(a.prop("href"),i)||1};t.objectRequest(d)},checkPassStrength:function(e){var t=BP_Nouveau.bpPasswordVerify,a=parseInt(t.requiredPassStrength,10),s=c(e.currentTarget).val(),r=c("#pass2").val(),n=c(e.currentTarget).closest("form"),s="function"==typeof wp.passwordStrength.userInputDisallowedList?wp.passwordStrength.meter(s,wp.passwordStrength.userInputDisallowedList(),r):wp.passwordStrength.meter(s,wp.passwordStrength.userInputBlacklist(),r);a&&a<=4&&(r=c(n).find("#password-warning"),s

").prop("id","password-warning").addClass("description")),c(r).html(t.tooWeakPasswordWarning)):c(r).length&&c(r).remove(),c(n).find("#password-strength-score").length||c(n).prepend(c("").prop({id:"password-strength-score",type:"hidden",name:"_password_strength_score"})),c("#password-strength-score").val(s),s .header"),this.$main_nav=this.$container.find("#main-header"),this.main_nav_height=this.$main_nav.innerHeight(),this.$top_nav=this.$container.find("#top-header"),this.top_nav_height=this.$top_nav.innerHeight(),this.$content_area=this.$container.find("#main-content"),this.$wpadminbar=this.$body.find("#wpadminbar")},init:function(){this.cacheElements(),e.subscribe("et-window.resized",e.proxy(this.hasMainNavHeightChanged,this)),e.subscribe("et-window.resized",e.proxy(this.hasTopNavHeightChanged,this))},hasMainNavHeightChanged:function(){var t=this.$main_nav.innerHeight();t!==this.main_nav_height&&(this.main_nav_height=t,e.publish("et-main_nav.changed_height"))},hasTopNavHeightChanged:function(){var t=this.$top_nav.innerHeight();t!==this.top_nav_height&&(this.top_nav_height=t,e.publish("et-top_nav.changed_height"))}},e((function(){n.init()})),e(window).resize((function(){e.publish("et-window.resized")})),t.Elements=n}(ET_App,jQuery),function(t,e){var n;(n={addRule:function(t,e){this.maybeAddStyleElement(),this.elements[t]=e,this.render()},addStyleElement:function(){e("head").append('',i.appendChild(r.childNodes[1])}return e&&t.extend(n,e),this.each((function(){var e=['iframe[src*="player.vimeo.com"]','iframe[src*="youtube.com"]','iframe[src*="youtube-nocookie.com"]','iframe[src*="kickstarter.com"][src*="video.html"]',"object","embed"];n.customSelector&&e.push(n.customSelector);var i=".fitvidsignore";n.ignore&&(i=i+", "+n.ignore);var r=t(this).find(e.join(","));(r=(r=r.not("object object")).not(i)).each((function(){var e=t(this);if(!(e.parents(i).length>0||"embed"===this.tagName.toLowerCase()&&e.parent("object").length||e.parent(".fluid-width-video-wrapper").length)){e.css("height")||e.css("width")||!isNaN(e.attr("height"))&&!isNaN(e.attr("width"))||(e.attr("height",9),e.attr("width",16));var n=("object"===this.tagName.toLowerCase()||e.attr("height")&&!isNaN(parseInt(e.attr("height"),10))?parseInt(e.attr("height"),10):e.height())/(isNaN(parseInt(e.attr("width"),10))?e.width():parseInt(e.attr("width"),10));if(!e.attr("name")){var r="fitvid"+t.fn.fitVids._count;e.attr("name",r),t.fn.fitVids._count++}e.wrap('
').parent(".fluid-width-video-wrapper").css("padding-top",100*n+"%"),e.removeAttr("height").removeAttr("width")}}))}))},t.fn.fitVids._count=0}(window.jQuery||window.Zepto)},function(t,e){!function(){"use strict";function t(i){if(!i)throw new Error("No options passed to Waypoint constructor");if(!i.element)throw new Error("No element option passed to Waypoint constructor");if(!i.handler)throw new Error("No handler option passed to Waypoint constructor");this.key="waypoint-"+e,this.options=t.Adapter.extend({},t.defaults,i),this.element=this.options.element,this.adapter=new t.Adapter(this.element),this.callback=i.handler,this.axis=this.options.horizontal?"horizontal":"vertical",this.enabled=this.options.enabled,this.triggerPoint=null,this.group=t.Group.findOrCreate({name:this.options.group,axis:this.axis}),this.context=t.Context.findOrCreateByElement(this.options.context),t.offsetAliases[this.options.offset]&&(this.options.offset=t.offsetAliases[this.options.offset]),this.group.add(this),this.context.add(this),n[this.key]=this,e+=1}var e=0,n={};t.prototype.queueTrigger=function(t){this.group.queueTrigger(this,t)},t.prototype.trigger=function(t){this.enabled&&this.callback&&this.callback.apply(this,t)},t.prototype.destroy=function(){this.context.remove(this),this.group.remove(this),delete n[this.key]},t.prototype.disable=function(){return this.enabled=!1,this},t.prototype.enable=function(){return this.context.refresh(),this.enabled=!0,this},t.prototype.next=function(){return this.group.next(this)},t.prototype.previous=function(){return this.group.previous(this)},t.invokeAll=function(t){var e=[];for(var i in n)e.push(n[i]);for(var r=0,o=e.length;o>r;r++)e[r][t]()},t.destroyAll=function(){t.invokeAll("destroy")},t.disableAll=function(){t.invokeAll("disable")},t.enableAll=function(){t.invokeAll("enable")},t.refreshAll=function(){t.Context.refreshAll()},t.viewportHeight=function(){return window.innerHeight||document.documentElement.clientHeight},t.viewportWidth=function(){return document.documentElement.clientWidth},t.adapters=[],t.defaults={context:window,continuous:!0,enabled:!0,group:"default",horizontal:!1,offset:0},t.offsetAliases={"bottom-in-view":function(){return this.context.innerHeight()-this.adapter.outerHeight()},"right-in-view":function(){return this.context.innerWidth()-this.adapter.outerWidth()}},window.Waypoint=t}(),function(){"use strict";function t(t){window.setTimeout(t,1e3/60)}function e(t){this.element=t,this.Adapter=r.Adapter,this.adapter=new this.Adapter(t),this.key="waypoint-context-"+n,this.didScroll=!1,this.didResize=!1,this.oldScroll={x:this.adapter.scrollLeft(),y:this.adapter.scrollTop()},this.waypoints={vertical:{},horizontal:{}},t.waypointContextKey=this.key,i[t.waypointContextKey]=this,n+=1,this.createThrottledScrollHandler(),this.createThrottledResizeHandler()}var n=0,i={},r=window.Waypoint,o=window.onload;e.prototype.add=function(t){var e=t.options.horizontal?"horizontal":"vertical";this.waypoints[e][t.key]=t,this.refresh()},e.prototype.checkEmpty=function(){var t=this.Adapter.isEmptyObject(this.waypoints.horizontal),e=this.Adapter.isEmptyObject(this.waypoints.vertical);t&&e&&(this.adapter.off(".waypoints"),delete i[this.key])},e.prototype.createThrottledResizeHandler=function(){function t(){e.handleResize(),e.didResize=!1}var e=this;this.adapter.on("resize.waypoints",(function(){e.didResize||(e.didResize=!0,r.requestAnimationFrame(t))}))},e.prototype.createThrottledScrollHandler=function(){function t(){e.handleScroll(),e.didScroll=!1}var e=this;this.adapter.on("scroll.waypoints",(function(){(!e.didScroll||r.isTouch)&&(e.didScroll=!0,r.requestAnimationFrame(t))}))},e.prototype.handleResize=function(){r.Context.refreshAll()},e.prototype.handleScroll=function(){var t={},e={horizontal:{newScroll:this.adapter.scrollLeft(),oldScroll:this.oldScroll.x,forward:"right",backward:"left"},vertical:{newScroll:this.adapter.scrollTop(),oldScroll:this.oldScroll.y,forward:"down",backward:"up"}};for(var n in e){var i=e[n],r=i.newScroll>i.oldScroll?i.forward:i.backward;for(var o in this.waypoints[n]){var a=this.waypoints[n][o],s=i.oldScroll=a.triggerPoint;(s&&c||!s&&!c)&&(a.queueTrigger(r),t[a.group.id]=a.group)}}for(var l in t)t[l].flushTriggers();this.oldScroll={x:e.horizontal.newScroll,y:e.vertical.newScroll}},e.prototype.innerHeight=function(){return this.element==this.element.window?r.viewportHeight():this.adapter.innerHeight()},e.prototype.remove=function(t){delete this.waypoints[t.axis][t.key],this.checkEmpty()},e.prototype.innerWidth=function(){return this.element==this.element.window?r.viewportWidth():this.adapter.innerWidth()},e.prototype.destroy=function(){var t=[];for(var e in this.waypoints)for(var n in this.waypoints[e])t.push(this.waypoints[e][n]);for(var i=0,r=t.length;r>i;i++)t[i].destroy()},e.prototype.refresh=function(){var t,e=this.element==this.element.window,n=e?void 0:this.adapter.offset(),i={};for(var o in this.handleScroll(),t={horizontal:{contextOffset:e?0:n.left,contextScroll:e?0:this.oldScroll.x,contextDimension:this.innerWidth(),oldScroll:this.oldScroll.x,forward:"right",backward:"left",offsetProp:"left"},vertical:{contextOffset:e?0:n.top,contextScroll:e?0:this.oldScroll.y,contextDimension:this.innerHeight(),oldScroll:this.oldScroll.y,forward:"down",backward:"up",offsetProp:"top"}}){var a=t[o];for(var s in this.waypoints[o]){var c,l,u,d,f=this.waypoints[o][s],p=f.options.offset,h=f.triggerPoint,_=0,v=null==h;f.element!==f.element.window&&(_=f.adapter.offset()[a.offsetProp]),"function"==typeof p?p=p.apply(f):"string"==typeof p&&(p=parseFloat(p),f.options.offset.indexOf("%")>-1&&(p=Math.ceil(a.contextDimension*p/100))),c=a.contextScroll-a.contextOffset,f.triggerPoint=_+c-p,l=h=a.oldScroll,d=!l&&!u,!v&&(l&&u)?(f.queueTrigger(a.backward),i[f.group.id]=f.group):!v&&d?(f.queueTrigger(a.forward),i[f.group.id]=f.group):v&&a.oldScroll>=f.triggerPoint&&(f.queueTrigger(a.forward),i[f.group.id]=f.group)}}return r.requestAnimationFrame((function(){for(var t in i)i[t].flushTriggers()})),this},e.findOrCreateByElement=function(t){return e.findByElement(t)||new e(t)},e.refreshAll=function(){for(var t in i)i[t].refresh()},e.findByElement=function(t){return i[t.waypointContextKey]},window.onload=function(){o&&o(),e.refreshAll()},r.requestAnimationFrame=function(e){(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||t).call(window,e)},r.Context=e}(),function(){"use strict";function t(t,e){return t.triggerPoint-e.triggerPoint}function e(t,e){return e.triggerPoint-t.triggerPoint}function n(t){this.name=t.name,this.axis=t.axis,this.id=this.name+"-"+this.axis,this.waypoints=[],this.clearTriggerQueues(),i[this.axis][this.name]=this}var i={vertical:{},horizontal:{}},r=window.Waypoint;n.prototype.add=function(t){this.waypoints.push(t)},n.prototype.clearTriggerQueues=function(){this.triggerQueues={up:[],down:[],left:[],right:[]}},n.prototype.flushTriggers=function(){for(var n in this.triggerQueues){var i=this.triggerQueues[n],r="up"===n||"left"===n;i.sort(r?e:t);for(var o=0,a=i.length;a>o;o+=1){var s=i[o];(s.options.continuous||o===i.length-1)&&s.trigger([n])}}this.clearTriggerQueues()},n.prototype.next=function(e){this.waypoints.sort(t);var n=r.Adapter.inArray(e,this.waypoints);return n===this.waypoints.length-1?null:this.waypoints[n+1]},n.prototype.previous=function(e){this.waypoints.sort(t);var n=r.Adapter.inArray(e,this.waypoints);return n?this.waypoints[n-1]:null},n.prototype.queueTrigger=function(t,e){this.triggerQueues[e].push(t)},n.prototype.remove=function(t){var e=r.Adapter.inArray(t,this.waypoints);e>-1&&this.waypoints.splice(e,1)},n.prototype.first=function(){return this.waypoints[0]},n.prototype.last=function(){return this.waypoints[this.waypoints.length-1]},n.findOrCreate=function(t){return i[t.axis][t.name]||new n(t)},r.Group=n}(),function(){"use strict";function t(t){this.$element=e(t)}var e=window.jQuery,n=window.Waypoint;e.each(["innerHeight","innerWidth","off","offset","on","outerHeight","outerWidth","scrollLeft","scrollTop"],(function(e,n){t.prototype[n]=function(){var t=Array.prototype.slice.call(arguments);return this.$element[n].apply(this.$element,t)}})),e.each(["extend","inArray","isEmptyObject"],(function(n,i){t[i]=e[i]})),n.adapters.push({name:"jquery",Adapter:t}),n.Adapter=t}(),function(){"use strict";function t(t){return function(){var n=[],i=arguments[0];return t.isFunction(arguments[0])&&((i=t.extend({},arguments[1])).handler=arguments[0]),this.each((function(){var r=t.extend({},i,{element:this});"string"==typeof r.context&&(r.context=t(this).closest(r.context)[0]),n.push(new e(r))})),n}}var e=window.Waypoint;window.jQuery&&(window.jQuery.fn.waypoint=t(window.jQuery)),window.Zepto&&(window.Zepto.fn.waypoint=t(window.Zepto))}()},function(t,e,n){var i,r,o;r=[n(1)],void 0===(o="function"==typeof(i=function(t){var e,n,i,r,o,a,s="Close",c="BeforeClose",l="MarkupParse",u="Open",d="Change",f="mfp",p="."+f,h="mfp-ready",_="mfp-removing",v="mfp-prevent-close",m=function(){},g=!!window.jQuery,b=t(window),y=function(t,n){e.ev.on(f+t+p,n)},w=function(e,n,i,r){var o=document.createElement("div");return o.className="mfp-"+e,i&&(o.innerHTML=i),r?n&&n.appendChild(o):(o=t(o),n&&o.appendTo(n)),o},x=function(n,i){e.ev.triggerHandler(f+n,i),e.st.callbacks&&(n=n.charAt(0).toLowerCase()+n.slice(1),e.st.callbacks[n]&&e.st.callbacks[n].apply(e,t.isArray(i)?i:[i]))},C=function(n){return n===a&&e.currTemplate.closeBtn||(e.currTemplate.closeBtn=t(e.st.closeMarkup.replace("%title%",e.st.tClose)),a=n),e.currTemplate.closeBtn},k=function(){t.magnificPopup.instance||((e=new m).init(),t.magnificPopup.instance=e)};m.prototype={constructor:m,init:function(){var n=navigator.appVersion;e.isIE7=-1!==n.indexOf("MSIE 7."),e.isIE8=-1!==n.indexOf("MSIE 8."),e.isLowIE=e.isIE7||e.isIE8,e.isAndroid=/android/gi.test(n),e.isIOS=/iphone|ipad|ipod/gi.test(n),e.supportsTransition=function(){var t=document.createElement("p").style,e=["ms","O","Moz","Webkit"];if(void 0!==t.transition)return!0;for(;e.length;)if(e.pop()+"Transition"in t)return!0;return!1}(),e.probablyMobile=e.isAndroid||e.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),i=t(document),e.popupsCache={}},open:function(n){var r;if(!1===n.isObj){e.items=n.items.toArray(),e.index=0;var a,s=n.items;for(r=0;r(t||b.height())},_setFocus:function(){(e.st.focus?e.content.find(e.st.focus).eq(0):e.wrap).focus()},_onFocusIn:function(n){return n.target===e.wrap[0]||t.contains(e.wrap[0],n.target)?void 0:(e._setFocus(),!1)},_parseMarkup:function(e,n,i){var r;i.data&&(n=t.extend(i.data,n)),x(l,[e,n,i]),t.each(n,(function(t,n){if(void 0===n||!1===n)return!0;if((r=t.split("_")).length>1){var i=e.find(p+"-"+r[0]);if(i.length>0){var o=r[1];"replaceWith"===o?i[0]!==n[0]&&i.replaceWith(n):"img"===o?i.is("img")?i.attr("src",n):i.replaceWith(''):i.attr(r[1],n)}}else e.find(p+"-"+t).html(n)}))},_getScrollbarSize:function(){if(void 0===e.scrollbarSize){var t=document.createElement("div");t.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(t),e.scrollbarSize=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return e.scrollbarSize}},t.magnificPopup={instance:null,proto:m.prototype,modules:[],open:function(e,n){return k(),(e=e?t.extend(!0,{},e):{}).isObj=!0,e.index=n||0,this.instance.open(e)},close:function(){return t.magnificPopup.instance&&t.magnificPopup.instance.close()},registerModule:function(e,n){n.options&&(t.magnificPopup.defaults[e]=n.options),t.extend(this.proto,n.proto),this.modules.push(e)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'',tClose:"Close (Esc)",tLoading:"Loading...",autoFocusLast:!0}},t.fn.magnificPopup=function(n){k();var i=t(this);if("string"==typeof n)if("open"===n){var r,o=g?i.data("magnificPopup"):i[0].magnificPopup,a=parseInt(arguments[1],10)||0;o.items?r=o.items[a]:(r=i,o.delegate&&(r=r.find(o.delegate)),r=r.eq(a)),e._openClick({mfpEl:r},i,o)}else e.isOpen&&e[n].apply(e,Array.prototype.slice.call(arguments,1));else n=t.extend(!0,{},n),g?i.data("magnificPopup",n):i[0].magnificPopup=n,e.addGroup(i,n);return i};var j,O,S,E="inline",T=function(){S&&(O.after(S.addClass(j)).detach(),S=null)};t.magnificPopup.registerModule(E,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){e.types.push(E),y(s+"."+E,(function(){T()}))},getInline:function(n,i){if(T(),n.src){var r=e.st.inline,o=t(n.src);if(o.length){var a=o[0].parentNode;a&&a.tagName&&(O||(j=r.hiddenClass,O=w(j),j="mfp-"+j),S=o.after(O).detach().removeClass(j)),e.updateStatus("ready")}else e.updateStatus("error",r.tNotFound),o=t("
");return n.inlineElement=o,o}return e.updateStatus("ready"),e._parseMarkup(i,{},n),i}}});var A,I="ajax",M=function(){A&&t(document.body).removeClass(A)},F=function(){M(),e.req&&e.req.abort()};t.magnificPopup.registerModule(I,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'The content could not be loaded.'},proto:{initAjax:function(){e.types.push(I),A=e.st.ajax.cursor,y(s+"."+I,F),y("BeforeChange."+I,F)},getAjax:function(n){A&&t(document.body).addClass(A),e.updateStatus("loading");var i=t.extend({url:n.src,success:function(i,r,o){var a={data:i,xhr:o};x("ParseAjax",a),e.appendContent(t(a.data),I),n.finished=!0,M(),e._setFocus(),setTimeout((function(){e.wrap.addClass(h)}),16),e.updateStatus("ready"),x("AjaxContentAdded")},error:function(){M(),n.finished=n.loadError=!0,e.updateStatus("error",e.st.ajax.tError.replace("%url%",n.src))}},e.st.ajax.settings);return e.req=t.ajax(i),""}}});var P,z,L=function(n){if(n.data&&void 0!==n.data.title)return n.data.title;var i=e.st.image.titleSrc;if(i){if(t.isFunction(i))return i.call(e,n);if(n.el)return n.el.attr(i)||""}return""};t.magnificPopup.registerModule("image",{options:{markup:'
',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'The image could not be loaded.'},proto:{initImage:function(){var n=e.st.image,i=".image";e.types.push("image"),y(u+i,(function(){"image"===e.currItem.type&&n.cursor&&t(document.body).addClass(n.cursor)})),y(s+i,(function(){n.cursor&&t(document.body).removeClass(n.cursor),b.off("resize"+p)})),y("Resize"+i,e.resizeImage),e.isLowIE&&y("AfterChange",e.resizeImage)},resizeImage:function(){var t=e.currItem;if(t&&t.img&&e.st.image.verticalFit){var n=0;e.isLowIE&&(n=parseInt(t.img.css("padding-top"),10)+parseInt(t.img.css("padding-bottom"),10)),t.img.css("max-height",e.wH-n)}},_onImageHasSize:function(t){t.img&&(t.hasSize=!0,P&&clearInterval(P),t.isCheckingImgSize=!1,x("ImageHasSize",t),t.imgHidden&&(e.content&&e.content.removeClass("mfp-loading"),t.imgHidden=!1))},findImageSize:function(t){var n=0,i=t.img[0],r=function(o){P&&clearInterval(P),P=setInterval((function(){return i.naturalWidth>0?void e._onImageHasSize(t):(n>200&&clearInterval(P),void(3==++n?r(10):40===n?r(50):100===n&&r(500)))}),o)};r(1)},getImage:function(n,i){var r=0,o=function(){n&&(n.img[0].complete?(n.img.off(".mfploader"),n===e.currItem&&(e._onImageHasSize(n),e.updateStatus("ready")),n.hasSize=!0,n.loaded=!0,x("ImageLoadComplete")):200>++r?setTimeout(o,100):a())},a=function(){n&&(n.img.off(".mfploader"),n===e.currItem&&(e._onImageHasSize(n),e.updateStatus("error",s.tError.replace("%url%",n.src))),n.hasSize=!0,n.loaded=!0,n.loadError=!0)},s=e.st.image,c=i.find(".mfp-img");if(c.length){var l=document.createElement("img");l.className="mfp-img",n.el&&n.el.find("img").length&&(l.alt=n.el.find("img").attr("alt")),n.img=t(l).on("load.mfploader",o).on("error.mfploader",a),l.src=n.src,c.is("img")&&(n.img=n.img.clone()),(l=n.img[0]).naturalWidth>0?n.hasSize=!0:l.width||(n.hasSize=!1)}return e._parseMarkup(i,{title:L(n),img_replaceWith:n.img},n),e.resizeImage(),n.hasSize?(P&&clearInterval(P),n.loadError?(i.addClass("mfp-loading"),e.updateStatus("error",s.tError.replace("%url%",n.src))):(i.removeClass("mfp-loading"),e.updateStatus("ready")),i):(e.updateStatus("loading"),n.loading=!0,n.hasSize||(n.imgHidden=!0,i.addClass("mfp-loading"),e.findImageSize(n)),i)}}}),t.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(t){return t.is("img")?t:t.find("img")}},proto:{initZoom:function(){var t,n=e.st.zoom,i=".zoom";if(n.enabled&&e.supportsTransition){var r,o,a=n.duration,l=function(t){var e=t.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),i="all "+n.duration/1e3+"s "+n.easing,r={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},o="transition";return r["-webkit-"+o]=r["-moz-"+o]=r["-o-"+o]=r[o]=i,e.css(r),e},u=function(){e.content.css("visibility","visible")};y("BuildControls"+i,(function(){if(e._allowZoom()){if(clearTimeout(r),e.content.css("visibility","hidden"),!(t=e._getItemToZoom()))return void u();(o=l(t)).css(e._getOffset()),e.wrap.append(o),r=setTimeout((function(){o.css(e._getOffset(!0)),r=setTimeout((function(){u(),setTimeout((function(){o.remove(),t=o=null,x("ZoomAnimationEnded")}),16)}),a)}),16)}})),y(c+i,(function(){if(e._allowZoom()){if(clearTimeout(r),e.st.removalDelay=a,!t){if(!(t=e._getItemToZoom()))return;o=l(t)}o.css(e._getOffset(!0)),e.wrap.append(o),e.content.css("visibility","hidden"),setTimeout((function(){o.css(e._getOffset())}),16)}})),y(s+i,(function(){e._allowZoom()&&(u(),o&&o.remove(),t=null)}))}},_allowZoom:function(){return"image"===e.currItem.type},_getItemToZoom:function(){return!!e.currItem.hasSize&&e.currItem.img},_getOffset:function(n){var i,r=(i=n?e.currItem.img:e.st.zoom.opener(e.currItem.el||e.currItem)).offset(),o=parseInt(i.css("padding-top"),10),a=parseInt(i.css("padding-bottom"),10);r.top-=t(window).scrollTop()-o;var s={width:i.width(),height:(g?i.innerHeight():i[0].offsetHeight)-a-o};return void 0===z&&(z=void 0!==document.createElement("p").style.MozTransform),z?s["-moz-transform"]=s.transform="translate("+r.left+"px,"+r.top+"px)":(s.left=r.left,s.top=r.top),s}}});var R="iframe",D=function(t){if(e.currTemplate[R]){var n=e.currTemplate[R].find("iframe");n.length&&(t||(n[0].src="//about:blank"),e.isIE8&&n.css("display",t?"block":"none"))}};t.magnificPopup.registerModule(R,{options:{markup:'
',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){e.types.push(R),y("BeforeChange",(function(t,e,n){e!==n&&(e===R?D():n===R&&D(!0))})),y(s+"."+R,(function(){D()}))},getIframe:function(n,i){var r=n.src,o=e.st.iframe;t.each(o.patterns,(function(){return r.indexOf(this.index)>-1?(this.id&&(r="string"==typeof this.id?r.substr(r.lastIndexOf(this.id)+this.id.length,r.length):this.id.call(this,r)),r=this.src.replace("%id%",r),!1):void 0}));var a={};return o.srcAction&&(a[o.srcAction]=r),e._parseMarkup(i,a,n),e.updateStatus("ready"),i}}});var H=function(t){var n=e.items.length;return t>n-1?t-n:0>t?n+t:t},N=function(t,e,n){return t.replace(/%curr%/gi,e+1).replace(/%total%/gi,n)};t.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var n=e.st.gallery,r=".mfp-gallery",a=Boolean(t.fn.mfpFastClick);return e.direction=!0,!(!n||!n.enabled)&&(o+=" mfp-gallery",y(u+r,(function(){n.navigateByImgClick&&e.wrap.on("click"+r,".mfp-img",(function(){return e.items.length>1?(e.next(),!1):void 0})),i.on("keydown"+r,(function(t){37===t.keyCode?e.prev():39===t.keyCode&&e.next()}))})),y("UpdateStatus"+r,(function(t,n){n.text&&(n.text=N(n.text,e.currItem.index,e.items.length))})),y(l+r,(function(t,i,r,o){var a=e.items.length;r.counter=a>1?N(n.tCounter,o.index,a):""})),y("BuildControls"+r,(function(){if(e.items.length>1&&n.arrows&&!e.arrowLeft){var i=n.arrowMarkup,r=e.arrowLeft=t(i.replace(/%title%/gi,n.tPrev).replace(/%dir%/gi,"left")).addClass(v),o=e.arrowRight=t(i.replace(/%title%/gi,n.tNext).replace(/%dir%/gi,"right")).addClass(v),s=a?"mfpFastClick":"click";r[s]((function(){e.prev()})),o[s]((function(){e.next()})),e.isIE7&&(w("b",r[0],!1,!0),w("a",r[0],!1,!0),w("b",o[0],!1,!0),w("a",o[0],!1,!0)),e.container.append(r.add(o))}})),y(d+r,(function(){e._preloadTimeout&&clearTimeout(e._preloadTimeout),e._preloadTimeout=setTimeout((function(){e.preloadNearbyImages(),e._preloadTimeout=null}),16)})),void y(s+r,(function(){i.off(r),e.wrap.off("click"+r),e.arrowLeft&&a&&e.arrowLeft.add(e.arrowRight).destroyMfpFastClick(),e.arrowRight=e.arrowLeft=null})))},next:function(){e.direction=!0,e.index=H(e.index+1),e.updateItemHTML()},prev:function(){e.direction=!1,e.index=H(e.index-1),e.updateItemHTML()},goTo:function(t){e.direction=t>=e.index,e.index=t,e.updateItemHTML()},preloadNearbyImages:function(){var t,n=e.st.gallery.preload,i=Math.min(n[0],e.items.length),r=Math.min(n[1],e.items.length);for(t=1;t<=(e.direction?r:i);t++)e._preloadItem(e.index+t);for(t=1;t<=(e.direction?i:r);t++)e._preloadItem(e.index-t)},_preloadItem:function(n){if(n=H(n),!e.items[n].preloaded){var i=e.items[n];i.parsed||(i=e.parseEl(n)),x("LazyLoad",i),"image"===i.type&&(i.img=t('').on("load.mfploader",(function(){i.hasSize=!0})).on("error.mfploader",(function(){i.hasSize=!0,i.loadError=!0,x("LazyLoadError",i)})).attr("src",i.src)),i.preloaded=!0}}}});var W="retina";t.magnificPopup.registerModule(W,{options:{replaceSrc:function(t){return t.src.replace(/\.\w+$/,(function(t){return"@2x"+t}))},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var t=e.st.retina,n=t.ratio;(n=isNaN(n)?n():n)>1&&(y("ImageHasSize."+W,(function(t,e){e.img.css({"max-width":e.img[0].naturalWidth/n,width:"100%"})})),y("ElementParse."+W,(function(e,i){i.src=t.replaceSrc(i,n)})))}}}}),function(){var e="ontouchstart"in window,n=function(){b.off("touchmove"+i+" touchend"+i)},i=".mfpFastClick";t.fn.mfpFastClick=function(r){return t(this).each((function(){var o,a,s,c,l,u,d,f=t(this);e&&f.on("touchstart"+i,(function(t){l=!1,d=1,u=t.originalEvent?t.originalEvent.touches[0]:t.touches[0],s=u.clientX,c=u.clientY,b.on("touchmove"+i,(function(t){u=t.originalEvent?t.originalEvent.touches:t.touches,d=u.length,u=u[0],(Math.abs(u.clientX-s)>10||Math.abs(u.clientY-c)>10)&&(l=!0,n())})).on("touchend"+i,(function(t){n(),l||d>1||(o=!0,t.preventDefault(),clearTimeout(a),a=setTimeout((function(){o=!1}),1e3),r())}))})),f.on("click"+i,(function(){o||r()}))}))},t.fn.destroyMfpFastClick=function(){t(this).off("touchstart"+i+" click"+i),e&&b.off("touchmove"+i+" touchend"+i)}}(),k()})?i.apply(e,r):i)||(t.exports=o)},function(t,e){!function(t,e,n){var i,r="hashchange",o=document,a=t.event.special,s=o.documentMode,c="on"+r in e&&(void 0===s||s>7);function l(t){return"#"+(t=t||location.href).replace(/^[^#]*#?(.*)$/,"$1")}t.fn[r]=function(t){return t?this.bind(r,t):this.trigger(r)},t.fn[r].delay=50,a[r]=t.extend(a[r],{setup:function(){if(c)return!1;t(i.start)},teardown:function(){if(c)return!1;t(i.stop)}}),i=function(){var n,i,a,s={},u=l(),d=function(t){return t},f=d,p=d;function h(){var i=l(),o=p(u);i!==u?(f(u=i,o),t(e).trigger(r)):o!==u&&(location.href=location.href.replace(/#.*/,"")+o),n=setTimeout(h,t.fn[r].delay)}return s.start=function(){n||h()},s.stop=function(){n&&clearTimeout(n),n=void 0},void 0!==t.browser&&t.browser.msie&&!c&&(s.start=function(){i||(a=(a=t.fn[r].src)&&a+l(),i=t('