diff --git a/js/foundation.min.js b/js/foundation.min.js index dd7ae59..f7bf180 100644 --- a/js/foundation.min.js +++ b/js/foundation.min.js @@ -10,6 +10,17 @@ // using an anonymous function to redefine the $ shorthand name. // See http://docs.jquery.com/Using_jQuery_with_Other_Libraries // and http://zeptojs.com/ -var libFuncName=null;if(typeof jQuery=="undefined"&&typeof Zepto=="undefined"&&typeof $=="function")libFuncName=$;else if(typeof jQuery=="function")libFuncName=jQuery;else{if(typeof Zepto!="function")throw new TypeError;libFuncName=Zepto}(function(e,t,n,r){"use strict";t.matchMedia=t.matchMedia||function(e,t){var n,r=e.documentElement,i=r.firstElementChild||r.firstChild,s=e.createElement("body"),o=e.createElement("div");return o.id="mq-test-1",o.style.cssText="position:absolute;top:-100em",s.style.background="none",s.appendChild(o),function(e){return o.innerHTML='­',r.insertBefore(s,i),n=o.offsetWidth===42,r.removeChild(s),{matches:n,media:e}}}(n),Array.prototype.filter||(Array.prototype.filter=function(e){if(this==null)throw new TypeError;var t=Object(this),n=t.length>>>0;if(typeof e!="function")return;var r=[],i=arguments[1];for(var s=0;s>>0;if(n===0)return-1;var r=0;arguments.length>1&&(r=Number(arguments[1]),r!=r?r=0:r!=0&&r!=Infinity&&r!=-Infinity&&(r=(r>0||-1)*Math.floor(Math.abs(r))));if(r>=n)return-1;var i=r>=0?r:Math.max(n-Math.abs(r),0);for(;i0)for(var l=u.length-1;l>=0;l--)f.push(this.init_lib(u[l],a))}else{/reflow/i.test(n)&&(a[1]="reflow");for(var c in this.libs)f.push(this.init_lib(c,a))}return typeof n=="function"&&a.unshift(n),this.response_obj(f,a)},response_obj:function(e,t){for(var n=0,r=t.length;n=0;r--)this.lib_methods.hasOwnProperty(n[r])&&(this.libs[e.name][n[r]]=this.lib_methods[n[r]])},random_str:function(e){var t="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split("");e||(e=Math.floor(Math.random()*t.length));var n="";for(var r=0;r=0;r--)i=s[r].split(":"),/true/i.test(i[1])&&(i[1]=!0),/false/i.test(i[1])&&(i[1]=!1),u(i[1])&&(i[1]=parseInt(i[1],10)),i.length===2&&i[0].length>0&&(n[a(i[0])]=a(i[1]));return n},delay:function(e,t){return setTimeout(e,t)},scrollTo:function(n,r,i){if(i<0)return;var s=r-e(t).scrollTop(),o=s/i*10;this.scrollToTimerCache=setTimeout(function(){isNaN(parseInt(o,10))||(t.scrollTo(0,e(t).scrollTop()+o),this.scrollTo(n,r,i-10))}.bind(this),10)},scrollLeft:function(e){if(!e.length)return;return"scrollLeft"in e[0]?e[0].scrollLeft:e[0].pageXOffset},empty:function(e){if(e.length&&e.length>0)return!1;if(e.length&&e.length===0)return!0;for(var t in e)if(hasOwnProperty.call(e,t))return!1;return!0}},fix_outer:function(e){e.outerHeight=function(e,t){return typeof Zepto=="function"?e.height():typeof t!="undefined"?e.outerHeight(t):e.outerHeight()},e.outerWidth=function(e,t){return typeof Zepto=="function"?e.width():typeof t!="undefined"?e.outerWidth(t):e.outerWidth()}},error:function(e){return e.name+" "+e.message+"; "+e.more},off:function(){return e(this.scope).off(".fndtn"),e(t).off(".fndtn"),!0},zj:e},e.fn.foundation=function(){var e=Array.prototype.slice.call(arguments,0);return this.each(function(){return Foundation.init.apply(Foundation,[this].concat(e)),this})}})(libFuncName,this,this.document),function(e,t,n,r){"use strict";Foundation.libs.interchange={name:"interchange",version:"4.2.4",cache:{},images_loaded:!1,settings:{load_attr:"interchange",named_queries:{"default":"only screen and (min-width: 1px)",small:"only screen and (min-width: 768px)",medium:"only screen and (min-width: 1280px)",large:"only screen and (min-width: 1440px)",landscape:"only screen and (orientation: landscape)",portrait:"only screen and (orientation: portrait)",retina:"only screen and (-webkit-min-device-pixel-ratio: 2),only screen and (min--moz-device-pixel-ratio: 2),only screen and (-o-min-device-pixel-ratio: 2/1),only screen and (min-device-pixel-ratio: 2),only screen and (min-resolution: 192dpi),only screen and (min-resolution: 2dppx)"},directives:{replace:function(e,t){if(/IMG/.test(e[0].nodeName)){var n=e[0].src;if((new RegExp(t,"i")).test(n))return;return e[0].src=t,e.trigger("replace",[e[0].src,n])}}}},init:function(t,n,r){return Foundation.inherit(this,"throttle"),typeof n=="object"&&e.extend(!0,this.settings,n),this.events(),this.images(),typeof n!="string"?this.settings.init:this[n].call(this,r)},events:function(){var n=this;e(t).on("resize.fndtn.interchange",n.throttle(function(){n.resize.call(n)},50))},resize:function(){var t=this.cache;if(!this.images_loaded){setTimeout(e.proxy(this.resize,this),50);return}for(var n in t)if(t.hasOwnProperty(n)){var r=this.results(n,t[n]);r&&this.settings.directives[r.scenario[1]](r.el,r.scenario[0])}},results:function(t,n){var r=n.length;if(r>0){var i=e('[data-uuid="'+t+'"]');for(var s=r-1;s>=0;s--){var o,u=n[s][2];this.settings.named_queries.hasOwnProperty(u)?o=matchMedia(this.settings.named_queries[u]):o=matchMedia(u);if(o.matches)return{el:i,scenario:n[s]}}}return!1},images:function(e){return typeof this.cached_images=="undefined"||e?this.update_images():this.cached_images},update_images:function(){var t=n.getElementsByTagName("img"),r=t.length,i=0,s="data-"+this.settings.load_attr;this.cached_images=[],this.images_loaded=!1;for(var o=r-1;o>=0;o--)this.loaded(e(t[o]),function(e){i++;if(e){var t=e.getAttribute(s)||"";t.length>0&&this.cached_images.push(e)}i===r&&(this.images_loaded=!0,this.enhance())}.bind(this));return"deferred"},loaded:function(e,t){function n(){t(e[0])}function r(){this.one("load",n);if(/MSIE (\d+\.\d+);/.test(navigator.userAgent)){var e=this.attr("src"),t=e.match(/\?/)?"&":"?";t+="random="+(new Date).getTime(),this.attr("src",e+t)}}if(!e.attr("src")){n();return}e[0].complete||e[0].readyState===4?n():r.call(e)},enhance:function(){var n=this.images().length;for(var r=n-1;r>=0;r--)this._object(e(this.images()[r]));return e(t).trigger("resize")},parse_params:function(e,t,n){return[this.trim(e),this.convert_directive(t),this.trim(n)]},convert_directive:function(e){var t=this.trim(e);return t.length>0?t:"replace"},_object:function(e){var t=this.parse_data_attr(e),n=[],r=t.length;if(r>0)for(var i=r-1;i>=0;i--){var s=t[i].split(/\((.*?)(\))$/);if(s.length>1){var o=s[0].split(","),u=this.parse_params(o[0],o[1],s[1]);n.push(u)}}return this.store(e,n)},uuid:function(e){function n(){return((1+Math.random())*65536|0).toString(16).substring(1)}var t=e||"-";return n()+n()+t+n()+t+n()+t+n()+t+n()+n()+n()},store:function(e,t){var n=this.uuid(),r=e.data("uuid");return r?this.cache[r]:(e.attr("data-uuid",n),this.cache[n]=t)},trim:function(t){return typeof t=="string"?e.trim(t):t},parse_data_attr:function(e){var t=e.data(this.settings.load_attr).split(/\[(.*?)\]/),n=t.length,r=[];for(var i=n-1;i>=0;i--)t[i].replace(/[\W\d]+/,"").length>4&&r.push(t[i]);return r},reflow:function(){this.images(!0)}}}(Foundation.zj,this,this.document),function(e,t,n,r){"use strict";Foundation.libs.abide={name:"abide",version:"4.3.0",settings:{live_validate:!0,focus_on_invalid:!0,timeout:1e3,patterns:{alpha:/[a-zA-Z]+/,alpha_numeric:/[a-zA-Z0-9]+/,integer:/-?\d+/,number:/-?(?:\d+|\d{1,3}(?:,\d{3})+)?(?:\.\d+)?/,password:/(?=^.{8,}$)((?=.*\d)|(?=.*\W+))(?![.\n])(?=.*[A-Z])(?=.*[a-z]).*$/,card:/^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11})$/,cvv:/^([0-9]){3,4}$/,email:/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,url:/(https?|ftp|file|ssh):\/\/(((([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-zA-Z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-zA-Z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-zA-Z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-zA-Z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-zA-Z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-zA-Z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?/,domain:/^([a-zA-Z0-9]([a-zA-Z0-9\-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,6}$/,datetime:/([0-2][0-9]{3})\-([0-1][0-9])\-([0-3][0-9])T([0-5][0-9])\:([0-5][0-9])\:([0-5][0-9])(Z|([\-\+]([0-1][0-9])\:00))/,date:/(?:19|20)[0-9]{2}-(?:(?:0[1-9]|1[0-2])-(?:0[1-9]|1[0-9]|2[0-9])|(?:(?!02)(?:0[1-9]|1[0-2])-(?:30))|(?:(?:0[13578]|1[02])-31))/,time:/(0[0-9]|1[0-9]|2[0-3])(:[0-5][0-9]){2}/,dateISO:/\d{4}[\/\-]\d{1,2}[\/\-]\d{1,2}/,month_day_year:/(0[1-9]|1[012])[- \/.](0[1-9]|[12][0-9]|3[01])[- \/.](19|20)\d\d/,color:/^#?([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/}},timer:null,init:function(t,n,r){typeof n=="object"&&e.extend(!0,this.settings,n);if(typeof n=="string")return this[n].call(this,r);this.settings.init||this.events()},events:function(){var t=this,n=e("form[data-abide]",this.scope).attr("novalidate","novalidate");n.on("submit validate",function(n){return t.validate(e(this).find("input, textarea, select").get(),n)}),this.settings.init=!0;if(!this.settings.live_validate)return;n.find("input, textarea, select").on("blur change",function(e){t.validate([this],e)}).on("keydown",function(e){clearTimeout(t.timer),t.timer=setTimeout(function(){t.validate([this],e)}.bind(this),t.settings.timeout)})},validate:function(t,n){var r=this.parse_patterns(t),i=r.length,s=e(t[0]).closest("form");while(i--)if(!r[i]&&/submit/.test(n.type))return this.settings.focus_on_invalid&&t[i].focus(),s.trigger("invalid"),e(t[i]).closest("form").attr("data-invalid",""),!1;return/submit/.test(n.type)&&s.trigger("valid"),s.removeAttr("data-invalid"),!0},parse_patterns:function(e){var t=e.length,n=[];for(var r=t-1;r>=0;r--)n.push(this.pattern(e[r]));return this.check_validation_and_apply_styles(n)},pattern:function(e){var t=e.getAttribute("type"),n=typeof e.getAttribute("required")=="string";if(this.settings.patterns.hasOwnProperty(t))return[e,this.settings.patterns[t],n];var r=e.getAttribute("pattern")||"";return this.settings.patterns.hasOwnProperty(r)&&r.length>0?[e,this.settings.patterns[r],n]:r.length>0?[e,new RegExp(r),n]:(r=/.*/,[e,r,n])},check_validation_and_apply_styles:function(t){var n=t.length,r=[];for(var i=n-1;i>=0;i--){var s=t[i][0],o=t[i][2],u=s.value,a=s.type==="radio",f=o?s.value.length>0:!0;a&&o?r.push(this.valid_radio(s,o)):t[i][1].test(u)&&f||!o&&s.value.length<1?(e(s).removeAttr("data-invalid").parent().removeClass("error"),r.push(!0)):(e(s).attr("data-invalid","").parent().addClass("error"),r.push(!1))}return r},valid_radio:function(t,r){var i=t.getAttribute("name"),s=n.getElementsByName(i),o=s.length,u=!1;for(var a=0;a0&&(e(t.target).is("[data-dropdown-content]")||e.contains(n.first()[0],t.target))){t.stopPropagation();return}r.close.call(r,e("[data-dropdown-content]"))}),e(t).on("resize.fndtn.dropdown",r.throttle(function(){r.resize.call(r)},50)).trigger("resize"),this.settings.init=!0},close:function(t){var n=this;t.each(function(){e(this).hasClass(n.settings.activeClass)&&(e(this).css(Foundation.rtl?"right":"left","-99999px").removeClass(n.settings.activeClass),e(this).trigger("closed"))})},open:function(e,t){this.css(e.addClass(this.settings.activeClass),t),e.trigger("opened")},toggle:function(t){var n=e("#"+t.data("dropdown"));this.close.call(this,e("[data-dropdown-content]").not(n)),n.hasClass(this.settings.activeClass)?this.close.call(this,n):(this.close.call(this,e("[data-dropdown-content]")),this.open.call(this,n,t))},resize:function(){var t=e("[data-dropdown-content].open"),n=e("[data-dropdown='"+t.attr("id")+"']");t.length&&n.length&&this.css(t,n)},css:function(n,r){var i=n.offsetParent(),s=r.offset();s.top-=i.offset().top,s.left-=i.offset().left;if(this.small())n.css({position:"absolute",width:"95%",left:"2.5%","max-width":"none",top:s.top+this.outerHeight(r)});else{if(!Foundation.rtl&&e(t).width()>this.outerWidth(n)+r.offset().left){var o=s.left;n.hasClass("right")&&n.removeClass("right")}else{n.hasClass("right")||n.addClass("right");var o=s.left-(this.outerWidth(n)-this.outerWidth(r))}n.attr("style","").css({position:"absolute",top:s.top+this.outerHeight(r),left:o})}return n},small:function(){return e(t).width()<768||e("html").hasClass("lt-ie9")},off:function(){e(this.scope).off(".fndtn.dropdown"),e("html, body").off(".fndtn.dropdown"),e(t).off(".fndtn.dropdown"),e("[data-dropdown-content]").off(".fndtn.dropdown"),this.settings.init=!1},reflow:function(){}}}(Foundation.zj,this,this.document),function(e,t,n){function f(e){var t={},r=/^jQuery\d+$/;return n.each(e.attributes,function(e,n){n.specified&&!r.test(n.name)&&(t[n.name]=n.value)}),t}function l(e,r){var i=this,s=n(i);if(i.value==s.attr("placeholder")&&s.hasClass("placeholder"))if(s.data("placeholder-password")){s=s.hide().next().show().attr("id",s.removeAttr("id").data("placeholder-id"));if(e===!0)return s[0].value=r;s.focus()}else i.value="",s.removeClass("placeholder"),i==t.activeElement&&i.select()}function c(){var e,t=this,r=n(t),i=r,s=this.id;if(t.value==""){if(t.type=="password"){if(!r.data("placeholder-textinput")){try{e=r.clone().attr({type:"text"})}catch(o){e=n("").attr(n.extend(f(this),{type:"text"}))}e.removeAttr("name").data({"placeholder-password":!0,"placeholder-id":s}).bind("focus.placeholder",l),r.data({"placeholder-textinput":e,"placeholder-id":s}).before(e)}r=r.removeAttr("id").hide().prev().attr("id",s).show()}r.addClass("placeholder"),r[0].value=r.attr("placeholder")}else r.removeClass("placeholder")}var r="placeholder"in t.createElement("input"),i="placeholder"in t.createElement("textarea"),s=n.fn,o=n.valHooks,u,a;r&&i?(a=s.placeholder=function(){return this},a.input=a.textarea=!0):(a=s.placeholder=function(){var e=this;return e.filter((r?"textarea":":input")+"[placeholder]").not(".placeholder").bind({"focus.placeholder":l,"blur.placeholder":c}).data("placeholder-enabled",!0).trigger("blur.placeholder"),e},a.input=r,a.textarea=i,u={get:function(e){var t=n(e);return t.data("placeholder-enabled")&&t.hasClass("placeholder")?"":e.value},set:function(e,r){var i=n(e);return i.data("placeholder-enabled")?(r==""?(e.value=r,e!=t.activeElement&&c.call(e)):i.hasClass("placeholder")?l.call(e,!0,r)||(e.value=r):e.value=r,i):e.value=r}},r||(o.input=u),i||(o.textarea=u),n(function(){n(t).delegate("form","submit.placeholder",function(){var e=n(".placeholder",this).each(l);setTimeout(function(){e.each(c)},10)})}),n(e).bind("beforeunload.placeholder",function(){n(".placeholder").each(function(){this.value=""})}))}(this,document,Foundation.zj),function(e,t,n,r){"use strict";Foundation.libs.placeholder={name:"placeholder",version:"4.2.2",init:function(n,r,i){this.scope=n||this.scope,typeof r!="string"&&(t.onload=function(){e("input, textarea").placeholder()})}}}(Foundation.zj,this,this.document),function(e,t,n,r){"use strict";Foundation.libs.forms={name:"forms",version:"4.3.1",cache:{},settings:{disable_class:"no-custom",last_combo:null},init:function(t,n,r){return typeof n=="object"&&e.extend(!0,this.settings,n),typeof n!="string"?(this.settings.init||this.events(),this.assemble(),this.settings.init):this[n].call(this,r)},assemble:function(){e('form.custom input[type="radio"]',e(this.scope)).not('[data-customforms="disabled"]').not("."+this.settings.disable_class).each(this.append_custom_markup),e('form.custom input[type="checkbox"]',e(this.scope)).not('[data-customforms="disabled"]').not("."+this.settings.disable_class).each(this.append_custom_markup),e("form.custom select",e(this.scope)).not('[data-customforms="disabled"]').not("."+this.settings.disable_class).not("[multiple=multiple]").each(this.append_custom_select)},events:function(){var r=this;e(this.scope).on("click.fndtn.forms","form.custom span.custom.checkbox",function(t){t.preventDefault(),t.stopPropagation(),r.toggle_checkbox(e(this))}).on("click.fndtn.forms","form.custom span.custom.radio",function(t){t.preventDefault(),t.stopPropagation(),r.toggle_radio(e(this))}).on("change.fndtn.forms","form.custom select",function(t,n){if(e(this).is('[data-customforms="disabled"]'))return;r.refresh_custom_select(e(this),n)}).on("click.fndtn.forms","form.custom label",function(t){if(e(t.target).is("label")){var n=e("#"+r.escape(e(this).attr("for"))).not('[data-customforms="disabled"]'),i,s;n.length!==0&&(n.attr("type")==="checkbox"?(t.preventDefault(),i=e(this).find("span.custom.checkbox"),i.length===0&&(i=n.add(this).siblings("span.custom.checkbox").first()),r.toggle_checkbox(i)):n.attr("type")==="radio"&&(t.preventDefault(),s=e(this).find("span.custom.radio"),s.length===0&&(s=n.add(this).siblings("span.custom.radio").first()),r.toggle_radio(s)))}}).on("mousedown.fndtn.forms","form.custom div.custom.dropdown",function(){return!1}).on("click.fndtn.forms","form.custom div.custom.dropdown a.current, form.custom div.custom.dropdown a.selector",function(t){var n=e(this),s=n.closest("div.custom.dropdown"),o=i(s,"select");s.hasClass("open")||e(r.scope).trigger("click"),t.preventDefault();if(!1===o.is(":disabled"))return s.toggleClass("open"),s.hasClass("open")?e(r.scope).on("click.fndtn.forms.customdropdown",function(){s.removeClass("open"),e(r.scope).off(".fndtn.forms.customdropdown")}):e(r.scope).on(".fndtn.forms.customdropdown"),!1}).on("click.fndtn.forms touchend.fndtn.forms","form.custom div.custom.dropdown li",function(t){var r=e(this),s=r.closest("div.custom.dropdown"),o=i(s,"select"),u=0;t.preventDefault(),t.stopPropagation();if(!e(this).hasClass("disabled")){e("div.dropdown").not(s).removeClass("open");var a=r.closest("ul").find("li.selected");a.removeClass("selected"),r.addClass("selected"),s.removeClass("open").find("a.current").text(r.text()),r.closest("ul").find("li").each(function(e){r[0]===this&&(u=e)}),o[0].selectedIndex=u,o.data("prevalue",a.html());if(typeof n.createEvent!="undefined"){var f=n.createEvent("HTMLEvents");f.initEvent("change",!0,!0),o[0].dispatchEvent(f)}else o[0].fireEvent("onchange")}}),e(t).on("keydown",function(t){var r=n.activeElement,i=Foundation.libs.forms,s=e(".custom.dropdown.open");if(s.length>0){t.preventDefault(),t.which===13&&s.find("li.selected").trigger("click"),t.which===27&&s.removeClass("open");if(t.which>=65&&t.which<=90){var o=i.go_to(s,t.which),u=s.find("li.selected");o&&(u.removeClass("selected"),i.scrollTo(o.addClass("selected"),300))}if(t.which===38){var u=s.find("li.selected"),a=u.prev(":not(.disabled)");a.length>0&&(a.parent()[0].scrollTop=a.parent().scrollTop()-i.outerHeight(a),u.removeClass("selected"),a.addClass("selected"))}else if(t.which===40){var u=s.find("li.selected"),o=u.next(":not(.disabled)");o.length>0&&(o.parent()[0].scrollTop=o.parent().scrollTop()+i.outerHeight(o),u.removeClass("selected"),o.addClass("selected"))}}}),this.settings.init=!0},go_to:function(e,t){var n=e.find("li"),r=n.length;if(r>0)for(var i=0;i').insertAfter(r)),s.toggleClass("checked",r.is(":checked")),s.toggleClass("disabled",r.is(":disabled"))},append_custom_select:function(t,n){var r=Foundation.libs.forms,i=e(n),s=i.next("div.custom.dropdown"),o=s.find("ul"),u=s.find(".current"),a=s.find(".selector"),f=i.find("option"),l=f.filter(":selected"),c=i.attr("class")?i.attr("class").split(" "):[],h=0,p="",d,v=!1;if(s.length===0){var m=i.hasClass("small")?"small":i.hasClass("medium")?"medium":i.hasClass("large")?"large":i.hasClass("expand")?"expand":"";s=e('
    '),a=s.find(".selector"),o=s.find("ul"),p=f.map(function(){var t=e(this).attr("class")?e(this).attr("class"):"";return"
  • "+e(this).html()+"
  • "}).get().join(""),o.append(p),v=s.prepend(''+l.html()+"").find(".current"),i.after(s).addClass("hidden-field")}else p=f.map(function(){return"
  • "+e(this).html()+"
  • "}).get().join(""),o.html("").append(p);r.assign_id(i,s),s.toggleClass("disabled",i.is(":disabled")),d=o.find("li"),r.cache[s.data("id")]=d.length,f.each(function(t){this.selected&&(d.eq(t).addClass("selected"),v&&v.html(e(this).html())),e(this).is(":disabled")&&d.eq(t).addClass("disabled")});if(!s.is(".small, .medium, .large, .expand")){s.addClass("open");var r=Foundation.libs.forms;r.hidden_fix.adjust(o),h=r.outerWidth(d)>h?r.outerWidth(d):h,Foundation.libs.forms.hidden_fix.reset(),s.removeClass("open")}},assign_id:function(e,t){var n=[+(new Date),Foundation.random_str(5)].join("-");e.attr("data-id",n),t.attr("data-id",n)},refresh_custom_select:function(t,n){var r=this,i=0,s=t.next(),o=t.find("option"),u=s.find("li");if(u.length!==this.cache[s.data("id")]||n)s.find("ul").html(""),o.each(function(){var t=e("
  • "+e(this).html()+"
  • ");s.find("ul").append(t)}),o.each(function(t){this.selected&&(s.find("li").eq(t).addClass("selected"),s.find(".current").html(e(this).html())),e(this).is(":disabled")&&s.find("li").eq(t).addClass("disabled")}),s.removeAttr("style").find("ul").removeAttr("style"),s.find("li").each(function(){s.addClass("open"),r.outerWidth(e(this))>i&&(i=r.outerWidth(e(this))),s.removeClass("open")}),u=s.find("li"),this.cache[s.data("id")]=u.length},toggle_checkbox:function(e){var t=e.prev(),n=t[0];!1===t.is(":disabled")&&(n.checked=n.checked?!1:!0,e.toggleClass("checked"),t.trigger("change"))},toggle_radio:function(e){var t=e.prev(),n=t.closest("form.custom"),r=t[0];!1===t.is(":disabled")&&(n.find('input[type="radio"][name="'+this.escape(t.attr("name"))+'"]').next().not(e).removeClass("checked"),e.hasClass("checked")||e.toggleClass("checked"),r.checked=e.hasClass("checked"),t.trigger("change"))},escape:function(e){return e?e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):""},hidden_fix:{tmp:[],hidden:null,adjust:function(t){var n=this;n.hidden=t.parents(),n.hidden=n.hidden.add(t).filter(":hidden"),n.hidden.each(function(){var t=e(this);n.tmp.push(t.attr("style")),t.css({visibility:"hidden",display:"block"})})},reset:function(){var t=this;t.hidden.each(function(n){var i=e(this),s=t.tmp[n];s===r?i.removeAttr("style"):i.attr("style",s)}),t.tmp=[],t.hidden=null}},off:function(){e(this.scope).off(".fndtn.forms")},reflow:function(){}};var i=function(t,n){var t=t.prev();while(t.length){if(t.is(n))return t;t=t.prev()}return e()}}(Foundation.zj,this,this.document),function(e,t,n,r){"use strict";Foundation.libs.alerts={name:"alerts",version:"4.2.2",settings:{speed:300,callback:function(){}},init:function(t,n,r){return this.scope=t||this.scope,typeof n=="object"&&e.extend(!0,this.settings,n),typeof n!="string"?(this.settings.init||this.events(),this.settings.init):this[n].call(this,r)},events:function(){var t=this;e(this.scope).on("click.fndtn.alerts","[data-alert] a.close",function(n){n.preventDefault(),e(this).closest("[data-alert]").fadeOut(t.speed,function(){e(this).remove(),t.settings.callback()})}),this.settings.init=!0},off:function(){e(this.scope).off(".fndtn.alerts")},reflow:function(){}}}(Foundation.zj,this,this.document),function(e,t,n,r){"use strict";Foundation.libs.magellan={name:"magellan",version:"4.2.2",settings:{activeClass:"active",threshold:0},init:function(t,n,r){return this.scope=t||this.scope,Foundation.inherit(this,"data_options"),typeof n=="object"&&e.extend(!0,this.settings,n),typeof n!="string"?(this.settings.init||(this.fixed_magellan=e("[data-magellan-expedition]"),this.set_threshold(),this.last_destination=e("[data-magellan-destination]").last(),this.events()),this.settings.init):this[n].call(this,r)},events:function(){var n=this;e(this.scope).on("arrival.fndtn.magellan","[data-magellan-arrival]",function(t){var r=e(this),i=r.closest("[data-magellan-expedition]"),s=i.attr("data-magellan-active-class")||n.settings.activeClass;r.closest("[data-magellan-expedition]").find("[data-magellan-arrival]").not(r).removeClass(s),r.addClass(s)}),this.fixed_magellan.on("update-position.fndtn.magellan",function(){var t=e(this)}).trigger("update-position"),e(t).on("resize.fndtn.magellan",function(){this.fixed_magellan.trigger("update-position")}.bind(this)).on("scroll.fndtn.magellan",function(){var r=e(t).scrollTop();n.fixed_magellan.each(function(){var t=e(this);typeof t.data("magellan-top-offset")=="undefined"&&t.data("magellan-top-offset",t.offset().top),typeof t.data("magellan-fixed-position")=="undefined"&&t.data("magellan-fixed-position",!1);var i=r+n.settings.threshold>t.data("magellan-top-offset"),s=t.attr("data-magellan-top-offset");t.data("magellan-fixed-position")!=i&&(t.data("magellan-fixed-position",i),i?(t.addClass("fixed"),t.css({position:"fixed",top:0})):(t.removeClass("fixed"),t.css({position:"",top:""})),i&&typeof s!="undefined"&&s!=0&&t.css({position:"fixed",top:s+"px"}))})}),this.last_destination.length>0&&e(t).on("scroll.fndtn.magellan",function(r){var i=e(t).scrollTop(),s=i+e(t).height(),o=Math.ceil(n.last_destination.offset().top);e("[data-magellan-destination]").each(function(){var t=e(this),r=t.attr("data-magellan-destination"),u=t.offset().top-i;u<=n.settings.threshold&&e("[data-magellan-arrival='"+r+"']").trigger("arrival"),s>=e(n.scope).height()&&o>i&&o0?this.outerHeight(this.fixed_magellan,!0):0)},off:function(){e(this.scope).off(".fndtn.magellan")},reflow:function(){}}}(Foundation.zj,this,this.document),function(e,t,n,r){"use strict";Foundation.libs.reveal={name:"reveal",version:"4.2.2",locked:!1,settings:{animation:"fadeAndPop",animationSpeed:250,closeOnBackgroundClick:!0,closeOnEsc:!0,dismissModalClass:"close-reveal-modal",bgClass:"reveal-modal-bg",open:function(){},opened:function(){},close:function(){},closed:function(){},bg:e(".reveal-modal-bg"),css:{open:{opacity:0,visibility:"visible",display:"block"},close:{opacity:1,visibility:"hidden",display:"none"}}},init:function(t,n,r){return Foundation.inherit(this,"data_options delay"),typeof n=="object"?e.extend(!0,this.settings,n):typeof r!="undefined"&&e.extend(!0,this.settings,r),typeof n!="string"?(this.events(),this.settings.init):this[n].call(this,r)},events:function(){var t=this;return e(this.scope).off(".fndtn.reveal").on("click.fndtn.reveal","[data-reveal-id]",function(n){n.preventDefault();if(!t.locked){var r=e(this),i=r.data("reveal-ajax");t.locked=!0;if(typeof i=="undefined")t.open.call(t,r);else{var s=i===!0?r.attr("href"):i;t.open.call(t,r,{url:s})}}}).on("click.fndtn.reveal",this.close_targets(),function(n){n.preventDefault();if(!t.locked){var r=e.extend({},t.settings,t.data_options(e(".reveal-modal.open")));if(e(n.target)[0]===e("."+r.bgClass)[0]&&!r.closeOnBackgroundClick)return;t.locked=!0,t.close.call(t,e(this).closest(".reveal-modal"))}}).on("open.fndtn.reveal",".reveal-modal",this.settings.open).on("opened.fndtn.reveal",".reveal-modal",this.settings.opened).on("opened.fndtn.reveal",".reveal-modal",this.open_video).on("close.fndtn.reveal",".reveal-modal",this.settings.close).on("closed.fndtn.reveal",".reveal-modal",this.settings.closed).on("closed.fndtn.reveal",".reveal-modal",this.close_video),e("body").bind("keyup.reveal",function(n){var r=e(".reveal-modal.open"),i=e.extend({},t.settings,t.data_options(r));n.which===27&&i.closeOnEsc&&r.foundation("reveal","close")}),!0},open:function(t,n){if(t)if(typeof t.selector!="undefined")var r=e("#"+t.data("reveal-id"));else{ -var r=e(this.scope);n=t}else var r=e(this.scope);if(!r.hasClass("open")){var i=e(".reveal-modal.open");typeof r.data("css-top")=="undefined"&&r.data("css-top",parseInt(r.css("top"),10)).data("offset",this.cache_offset(r)),r.trigger("open"),i.length<1&&this.toggle_bg(r);if(typeof n=="undefined"||!n.url)this.hide(i,this.settings.css.close),this.show(r,this.settings.css.open);else{var s=this,o=typeof n.success!="undefined"?n.success:null;e.extend(n,{success:function(t,n,u){e.isFunction(o)&&o(t,n,u),r.html(t),e(r).foundation("section","reflow"),s.hide(i,s.settings.css.close),s.show(r,s.settings.css.open)}}),e.ajax(n)}}},close:function(t){var t=t&&t.length?t:e(this.scope),n=e(".reveal-modal.open");n.length>0&&(this.locked=!0,t.trigger("close"),this.toggle_bg(t),this.hide(n,this.settings.css.close))},close_targets:function(){var e="."+this.settings.dismissModalClass;return this.settings.closeOnBackgroundClick?e+", ."+this.settings.bgClass:e},toggle_bg:function(t){e(".reveal-modal-bg").length===0&&(this.settings.bg=e("
    ",{"class":this.settings.bgClass}).appendTo("body")),this.settings.bg.filter(":visible").length>0?this.hide(this.settings.bg):this.show(this.settings.bg)},show:function(n,r){if(r){if(/pop/i.test(this.settings.animation)){r.top=e(t).scrollTop()-n.data("offset")+"px";var i={top:e(t).scrollTop()+n.data("css-top")+"px",opacity:1};return this.delay(function(){return n.css(r).animate(i,this.settings.animationSpeed,"linear",function(){this.locked=!1,n.trigger("opened")}.bind(this)).addClass("open")}.bind(this),this.settings.animationSpeed/2)}if(/fade/i.test(this.settings.animation)){var i={opacity:1};return this.delay(function(){return n.css(r).animate(i,this.settings.animationSpeed,"linear",function(){this.locked=!1,n.trigger("opened")}.bind(this)).addClass("open")}.bind(this),this.settings.animationSpeed/2)}return n.css(r).show().css({opacity:1}).addClass("open").trigger("opened")}return/fade/i.test(this.settings.animation)?n.fadeIn(this.settings.animationSpeed/2):n.show()},hide:function(n,r){if(r){if(/pop/i.test(this.settings.animation)){var i={top:-e(t).scrollTop()-n.data("offset")+"px",opacity:0};return this.delay(function(){return n.animate(i,this.settings.animationSpeed,"linear",function(){this.locked=!1,n.css(r).trigger("closed")}.bind(this)).removeClass("open")}.bind(this),this.settings.animationSpeed/2)}if(/fade/i.test(this.settings.animation)){var i={opacity:0};return this.delay(function(){return n.animate(i,this.settings.animationSpeed,"linear",function(){this.locked=!1,n.css(r).trigger("closed")}.bind(this)).removeClass("open")}.bind(this),this.settings.animationSpeed/2)}return n.hide().css(r).removeClass("open").trigger("closed")}return/fade/i.test(this.settings.animation)?n.fadeOut(this.settings.animationSpeed/2):n.hide()},close_video:function(t){var n=e(this).find(".flex-video"),r=n.find("iframe");r.length>0&&(r.attr("data-src",r[0].src),r.attr("src","about:blank"),n.hide())},open_video:function(t){var n=e(this).find(".flex-video"),i=n.find("iframe");if(i.length>0){var s=i.attr("data-src");if(typeof s=="string")i[0].src=i.attr("data-src");else{var o=i[0].src;i[0].src=r,i[0].src=o}n.show()}},cache_offset:function(e){var t=e.show().height()+parseInt(e.css("top"),10);return e.hide(),t},off:function(){e(this.scope).off(".fndtn.reveal")},reflow:function(){}}}(Foundation.zj,this,this.document),function(e,t,n,r){"use strict";Foundation.libs.tooltips={name:"tooltips",version:"4.2.2",settings:{selector:".has-tip",additionalInheritableClasses:[],tooltipClass:".tooltip",appendTo:"body","disable-for-touch":!1,tipTemplate:function(e,t){return''+t+''}},cache:{},init:function(t,n,r){Foundation.inherit(this,"data_options");var i=this;typeof n=="object"?e.extend(!0,this.settings,n):typeof r!="undefined"&&e.extend(!0,this.settings,r);if(typeof n=="string")return this[n].call(this,r);Modernizr.touch?e(this.scope).on("click.fndtn.tooltip touchstart.fndtn.tooltip touchend.fndtn.tooltip","[data-tooltip]",function(t){var n=e.extend({},i.settings,i.data_options(e(this)));n["disable-for-touch"]||(t.preventDefault(),e(n.tooltipClass).hide(),i.showOrCreateTip(e(this)))}).on("click.fndtn.tooltip touchstart.fndtn.tooltip touchend.fndtn.tooltip",this.settings.tooltipClass,function(t){t.preventDefault(),e(this).fadeOut(150)}):e(this.scope).on("mouseenter.fndtn.tooltip mouseleave.fndtn.tooltip","[data-tooltip]",function(t){var n=e(this);/enter|over/i.test(t.type)?i.showOrCreateTip(n):(t.type==="mouseout"||t.type==="mouseleave")&&i.hide(n)})},showOrCreateTip:function(e){var t=this.getTip(e);return t&&t.length>0?this.show(e):this.create(e)},getTip:function(t){var n=this.selector(t),r=null;return n&&(r=e('span[data-selector="'+n+'"]'+this.settings.tooltipClass)),typeof r=="object"?r:!1},selector:function(e){var t=e.attr("id"),n=e.attr("data-tooltip")||e.attr("data-selector");return(t&&t.length<1||!t)&&typeof n!="string"&&(n="tooltip"+Math.random().toString(36).substring(7),e.attr("data-selector",n)),t&&t.length>0?t:n},create:function(t){var n=e(this.settings.tipTemplate(this.selector(t),e("
    ").html(t.attr("title")).html())),r=this.inheritable_classes(t);n.addClass(r).appendTo(this.settings.appendTo),Modernizr.touch&&n.append('tap to close '),t.removeAttr("title").attr("title",""),this.show(t)},reposition:function(n,r,i){var s,o,u,a,f,l;r.css("visibility","hidden").show(),s=n.data("width"),o=r.children(".nub"),u=this.outerHeight(o),a=this.outerHeight(o),l=function(e,t,n,r,i,s){return e.css({top:t?t:"auto",bottom:r?r:"auto",left:i?i:"auto",right:n?n:"auto",width:s?s:"auto"}).end()},l(r,n.offset().top+this.outerHeight(n)+10,"auto","auto",n.offset().left,s);if(e(t).width()<767)l(r,n.offset().top+this.outerHeight(n)+10,"auto","auto",12.5,e(this.scope).width()),r.addClass("tip-override"),l(o,-u,"auto","auto",n.offset().left);else{var c=n.offset().left;Foundation.rtl&&(c=n.offset().left+n.offset().width-this.outerWidth(r)),l(r,n.offset().top+this.outerHeight(n)+10,"auto","auto",c,s),r.removeClass("tip-override"),i&&i.indexOf("tip-top")>-1?l(r,n.offset().top-this.outerHeight(r),"auto","auto",c,s).removeClass("tip-override"):i&&i.indexOf("tip-left")>-1?l(r,n.offset().top+this.outerHeight(n)/2-u*2.5,"auto","auto",n.offset().left-this.outerWidth(r)-u,s).removeClass("tip-override"):i&&i.indexOf("tip-right")>-1&&l(r,n.offset().top+this.outerHeight(n)/2-u*2.5,"auto","auto",n.offset().left+this.outerWidth(n)+u,s).removeClass("tip-override")}r.css("visibility","visible").hide()},inheritable_classes:function(t){var n=["tip-top","tip-left","tip-bottom","tip-right","noradius"].concat(this.settings.additionalInheritableClasses),r=t.attr("class"),i=r?e.map(r.split(" "),function(t,r){if(e.inArray(t,n)!==-1)return t}).join(" "):"";return e.trim(i)},show:function(e){var t=this.getTip(e);this.reposition(e,t,e.attr("class")),t.fadeIn(150)},hide:function(e){var t=this.getTip(e);t.fadeOut(150)},reload:function(){var t=e(this);return t.data("fndtn-tooltips")?t.foundationTooltips("destroy").foundationTooltips("init"):t.foundationTooltips("init")},off:function(){e(this.scope).off(".fndtn.tooltip"),e(this.settings.tooltipClass).each(function(t){e("[data-tooltip]").get(t).attr("title",e(this).text())}).remove()},reflow:function(){}}}(Foundation.zj,this,this.document),function(e,t,n,r){"use strict";Foundation.libs.clearing={name:"clearing",version:"4.3.1",settings:{templates:{viewing:'×'},close_selectors:".clearing-close",init:!1,locked:!1},init:function(t,n,r){var i=this;return Foundation.inherit(this,"set_data get_data remove_data throttle data_options"),typeof n=="object"&&(r=e.extend(!0,this.settings,n)),typeof n!="string"?(e(this.scope).find("ul[data-clearing]").each(function(){var t=e(this),n=n||{},r=t.find("li"),s=i.get_data(t);!s&&r.length>0&&(n.$parent=t.parent(),i.set_data(t,e.extend({},i.settings,n,i.data_options(t))),i.assemble(t.find("li")),i.settings.init||i.events().swipe_events())}),this.settings.init):this[n].call(this,r)},events:function(){var n=this;return e(this.scope).on("click.fndtn.clearing","ul[data-clearing] li",function(t,r,i){var r=r||e(this),i=i||r,s=r.next("li"),o=n.get_data(r.parent()),u=e(t.target);t.preventDefault(),o||n.init(),i.hasClass("visible")&&r[0]===i[0]&&s.length>0&&n.is_open(r)&&(i=s,u=i.find("img")),n.open(u,r,i),n.update_paddles(i)}).on("click.fndtn.clearing",".clearing-main-next",function(e){this.nav(e,"next")}.bind(this)).on("click.fndtn.clearing",".clearing-main-prev",function(e){this.nav(e,"prev")}.bind(this)).on("click.fndtn.clearing",this.settings.close_selectors,function(e){Foundation.libs.clearing.close(e,this)}).on("keydown.fndtn.clearing",function(e){this.keydown(e)}.bind(this)),e(t).on("resize.fndtn.clearing",function(){this.resize()}.bind(this)),this.settings.init=!0,this},swipe_events:function(){var t=this;e(this.scope).on("touchstart.fndtn.clearing",".visible-img",function(t){t.touches||(t=t.originalEvent);var n={start_page_x:t.touches[0].pageX,start_page_y:t.touches[0].pageY,start_time:(new Date).getTime(),delta_x:0,is_scrolling:r};e(this).data("swipe-transition",n),t.stopPropagation()}).on("touchmove.fndtn.clearing",".visible-img",function(n){n.touches||(n=n.originalEvent);if(n.touches.length>1||n.scale&&n.scale!==1)return;var r=e(this).data("swipe-transition");typeof r=="undefined"&&(r={}),r.delta_x=n.touches[0].pageX-r.start_page_x,typeof r.is_scrolling=="undefined"&&(r.is_scrolling=!!(r.is_scrolling||Math.abs(r.delta_x)
    ');var r=e("#foundationClearingHolder"),i=this.get_data(n),s=n.detach(),o={grid:'",viewing:i.templates.viewing},u='
    '+o.viewing+o.grid+"
    ";return r.after(u).remove()},open:function(e,t,n){var r=n.closest(".clearing-assembled"),i=r.find("div").first(),s=i.find(".visible-img"),o=s.find("img").not(e);this.locked()||(o.attr("src",this.load(e)).css("visibility","hidden"),this.loaded(o,function(){o.css("visibility","visible"),r.addClass("clearing-blackout"),i.addClass("clearing-container"),s.show(),this.fix_height(n).caption(s.find(".clearing-caption"),e).center(o).shift(t,n,function(){n.siblings().removeClass("visible"),n.addClass("visible")})}.bind(this)))},close:function(t,n){t.preventDefault();var r=function(e){return/blackout/.test(e.selector)?e:e.closest(".clearing-blackout")}(e(n)),i,s;return n===t.target&&r&&(i=r.find("div").first(),s=i.find(".visible-img"),this.settings.prev_index=0,r.find("ul[data-clearing]").attr("style","").closest(".clearing-blackout").removeClass("clearing-blackout"),i.removeClass("clearing-container"),s.hide()),!1},is_open:function(e){return e.parent().attr("style").length>0},keydown:function(t){var n=e(".clearing-blackout").find("ul[data-clearing]");t.which===39&&this.go(n,"next"),t.which===37&&this.go(n,"prev"),t.which===27&&e("a.clearing-close").trigger("click")},nav:function(t,n){var r=e(".clearing-blackout").find("ul[data-clearing]");t.preventDefault(),this.go(r,n)},resize:function(){var t=e(".clearing-blackout .visible-img").find("img");t.length&&this.center(t)},fix_height:function(t){var n=t.parent().children(),r=this;return n.each(function(){var t=e(this),n=t.find("img");t.height()>r.outerHeight(n)&&t.addClass("fix-height")}).closest("ul").width(n.length*100+"%"),this},update_paddles:function(e){var t=e.closest(".carousel").siblings(".visible-img");e.next().length>0?t.find(".clearing-main-next").removeClass("disabled"):t.find(".clearing-main-next").addClass("disabled"),e.prev().length>0?t.find(".clearing-main-prev").removeClass("disabled"):t.find(".clearing-main-prev").addClass("disabled")},center:function(e){return this.rtl?e.css({marginRight:-(this.outerWidth(e)/2),marginTop:-(this.outerHeight(e)/2)}):e.css({marginLeft:-(this.outerWidth(e)/2),marginTop:-(this.outerHeight(e)/2)}),this},load:function(e){if(e[0].nodeName==="A")var t=e.attr("href");else var t=e.parent().attr("href");return this.preload(e),t?t:e.attr("src")},preload:function(e){this.img(e.closest("li").next()).img(e.closest("li").prev())},loaded:function(e,t){function n(){t()}function r(){this.one("load",n);if(/MSIE (\d+\.\d+);/.test(navigator.userAgent)){var e=this.attr("src"),t=e.match(/\?/)?"&":"?";t+="random="+(new Date).getTime(),this.attr("src",e+t)}}if(!e.attr("src")){n();return}e[0].complete||e[0].readyState===4?n():r.call(e)},img:function(e){if(e.length){var t=new Image,n=e.find("a");n.length?t.src=n.attr("href"):t.src=e.find("img").attr("src")}return this},caption:function(e,t){var n=t.data("caption");return n?e.html(n).show():e.text("").hide(),this},go:function(e,t){var n=e.find(".visible"),r=n[t]();r.length&&r.find("img").trigger("click",[n,r])},shift:function(e,t,n){var r=t.parent(),i=this.settings.prev_index||t.index(),s=this.direction(r,e,t),o=parseInt(r.css("left"),10),u=this.outerWidth(t),a;t.index()!==i&&!/skip/.test(s)?/left/.test(s)?(this.lock(),r.animate({left:o+u},300,this.unlock())):/right/.test(s)&&(this.lock(),r.animate({left:o-u},300,this.unlock())):/skip/.test(s)&&(a=t.index()-this.settings.up_count,this.lock(),a>0?r.animate({left:-(a*u)},300,this.unlock()):r.animate({left:0},300,this.unlock())),n()},direction:function(t,n,r){var i=t.find("li"),s=this.outerWidth(i)+this.outerWidth(i)/4,o=Math.floor(this.outerWidth(e(".clearing-container"))/s)-1,u=i.index(r),a;return this.settings.up_count=o,this.adjacent(this.settings.prev_index,u)?u>o&&u>this.settings.prev_index?a="right":u>o-1&&u<=this.settings.prev_index?a="left":a=!1:a="skip",this.settings.prev_index=u,a},adjacent:function(e,t){for(var n=t+1;n>=t-1;n--)if(n===e)return!0;return!1},lock:function(){this.settings.locked=!0},unlock:function(){this.settings.locked=!1},locked:function(){return this.settings.locked},outerHTML:function(e){return e.outerHTML||(new XMLSerializer).serializeToString(e)},off:function(){e(this.scope).off(".fndtn.clearing"),e(t).off(".fndtn.clearing"),this.remove_data(),this.settings.init=!1},reflow:function(){this.init()}}}(Foundation.zj,this,this.document),function(e,t,n){function i(e){return e}function s(e){return decodeURIComponent(e.replace(r," "))}var r=/\+/g,o=e.cookie=function(r,u,a){if(u!==n){a=e.extend({},o.defaults,a),u===null&&(a.expires=-1);if(typeof a.expires=="number"){var f=a.expires,l=a.expires=new Date;l.setDate(l.getDate()+f)}return u=o.json?JSON.stringify(u):String(u),t.cookie=[encodeURIComponent(r),"=",o.raw?u:encodeURIComponent(u),a.expires?"; expires="+a.expires.toUTCString():"",a.path?"; path="+a.path:"",a.domain?"; domain="+a.domain:"",a.secure?"; secure":""].join("")}var c=o.raw?i:s,h=t.cookie.split("; ");for(var p=0,d=h.length;p×',timer:'
    ',tip:'
    ',wrapper:'
    ',button:'',modal:'
    ',expose:'
    ',exposeCover:'
    '},exposeAddClass:""},settings:{},init:function(t,n,r){return this.scope=t||this.scope,Foundation.inherit(this,"throttle data_options scrollTo scrollLeft delay"),typeof n=="object"?e.extend(!0,this.settings,this.defaults,n):e.extend(!0,this.settings,this.defaults,r),typeof n!="string"?(this.settings.init||this.events(),this.settings.init):this[n].call(this,r)},events:function(){var n=this;e(this.scope).on("click.joyride",".joyride-next-tip, .joyride-modal-bg",function(e){e.preventDefault(),this.settings.$li.next().length<1?this.end():this.settings.timer>0?(clearTimeout(this.settings.automate),this.hide(),this.show(),this.startTimer()):(this.hide(),this.show())}.bind(this)).on("click.joyride",".joyride-close-tip",function(e){e.preventDefault(),this.end()}.bind(this)),e(t).on("resize.fndtn.joyride",n.throttle(function(){if(e("[data-joyride]").length>0&&n.settings.$next_tip){if(n.settings.exposed.length>0){var t=e(n.settings.exposed);t.each(function(){var t=e(this);n.un_expose(t),n.expose(t)})}n.is_phone()?n.pos_phone():n.pos_default(!1,!0)}},100)),this.settings.init=!0},start:function(){var t=this,n=e(this.scope).find("[data-joyride]"),r=["timer","scrollSpeed","startOffset","tipAnimationFadeSpeed","cookieExpires"],i=r.length;this.settings.init||this.init(),this.settings.$content_el=n,this.settings.$body=e(this.settings.tipContainer),this.settings.body_offset=e(this.settings.tipContainer).position(),this.settings.$tip_content=this.settings.$content_el.find("> li"),this.settings.paused=!1,this.settings.attempts=0,this.settings.tipLocationPatterns={top:["bottom"],bottom:[],left:["right","top","bottom"],right:["left","top","bottom"]},typeof e.cookie!="function"&&(this.settings.cookieMonster=!1);if(!this.settings.cookieMonster||this.settings.cookieMonster&&e.cookie(this.settings.cookieName)===null)this.settings.$tip_content.each(function(n){var s=e(this);e.extend(!0,t.settings,t.data_options(s));for(var o=i-1;o>=0;o--)t.settings[r[o]]=parseInt(t.settings[r[o]],10);t.create({$li:s,index:n})}),!this.settings.startTimerOnClick&&this.settings.timer>0?(this.show("init"),this.startTimer()):this.show("init")},resume:function(){this.set_li(),this.show()},tip_template:function(t){var n,r;return t.tip_class=t.tip_class||"",n=e(this.settings.template.tip).addClass(t.tip_class),r=e.trim(e(t.li).html())+this.button_text(t.button_text)+this.settings.template.link+this.timer_instance(t.index),n.append(e(this.settings.template.wrapper)),n.first().attr("data-index",t.index),e(".joyride-content-wrapper",n).append(r),n[0]},timer_instance:function(t){var n;return t===0&&this.settings.startTimerOnClick&&this.settings.timer>0||this.settings.timer===0?n="":n=this.outerHTML(e(this.settings.template.timer)[0]),n},button_text:function(t){return this.settings.nextButton?(t=e.trim(t)||"Next",t=this.outerHTML(e(this.settings.template.button).append(t)[0])):t="",t},create:function(t){var n=t.$li.attr("data-button")||t.$li.attr("data-text"),r=t.$li.attr("class"),i=e(this.tip_template({tip_class:r,index:t.index,button_text:n,li:t.$li}));e(this.settings.tipContainer).append(i)},show:function(t){var n=null;this.settings.$li===r||e.inArray(this.settings.$li.index(),this.settings.pauseAfter)===-1?(this.settings.paused?this.settings.paused=!1:this.set_li(t),this.settings.attempts=0,this.settings.$li.length&&this.settings.$target.length>0?(t&&(this.settings.preRideCallback(this.settings.$li.index(),this.settings.$next_tip),this.settings.modal&&this.show_modal()),this.settings.preStepCallback(this.settings.$li.index(),this.settings.$next_tip),this.settings.modal&&this.settings.expose&&this.expose(),this.settings.tipSettings=e.extend(this.settings,this.data_options(this.settings.$li)),this.settings.timer=parseInt(this.settings.timer,10),this.settings.tipSettings.tipLocationPattern=this.settings.tipLocationPatterns[this.settings.tipSettings.tipLocation],/body/i.test(this.settings.$target.selector)||this.scroll_to(),this.is_phone()?this.pos_phone(!0):this.pos_default(!0),n=this.settings.$next_tip.find(".joyride-timer-indicator"),/pop/i.test(this.settings.tipAnimation)?(n.width(0),this.settings.timer>0?(this.settings.$next_tip.show(),this.delay(function(){n.animate({width:n.parent().width()},this.settings.timer,"linear")}.bind(this),this.settings.tipAnimationFadeSpeed)):this.settings.$next_tip.show()):/fade/i.test(this.settings.tipAnimation)&&(n.width(0),this.settings.timer>0?(this.settings.$next_tip.fadeIn(this.settings.tipAnimationFadeSpeed).show(),this.delay(function(){n.animate({width:n.parent().width()},this.settings.timer,"linear")}.bind(this),this.settings.tipAnimationFadeSpeed)):this.settings.$next_tip.fadeIn(this.settings.tipAnimationFadeSpeed)),this.settings.$current_tip=this.settings.$next_tip):this.settings.$li&&this.settings.$target.length<1?this.show():this.end()):this.settings.paused=!0},is_phone:function(){return Modernizr?Modernizr.mq("only screen and (max-width: 767px)")||e(".lt-ie9").length>0:this.settings.$window.width()<767},hide:function(){this.settings.modal&&this.settings.expose&&this.un_expose(),this.settings.modal||e(".joyride-modal-bg").hide(),this.settings.$current_tip.css("visibility","hidden"),setTimeout(e.proxy(function(){this.hide(),this.css("visibility","visible")},this.settings.$current_tip),0),this.settings.postStepCallback(this.settings.$li.index(),this.settings.$current_tip)},set_li:function(e){e?(this.settings.$li=this.settings.$tip_content.eq(this.settings.startOffset),this.set_next_tip(),this.settings.$current_tip=this.settings.$next_tip):(this.settings.$li=this.settings.$li.next(),this.set_next_tip()),this.set_target()},set_next_tip:function(){this.settings.$next_tip=e(".joyride-tip-guide[data-index='"+this.settings.$li.index()+"']"),this.settings.$next_tip.data("closed","")},set_target:function(){var t=this.settings.$li.attr("data-class"),r=this.settings.$li.attr("data-id"),i=function(){return r?e(n.getElementById(r)):t?e("."+t).first():e("body")};this.settings.$target=i()},scroll_to:function(){var n,r;n=e(t).height()/2,r=Math.ceil(this.settings.$target.offset().top-n+this.outerHeight(this.settings.$next_tip)),r>0&&this.scrollTo(e("html, body"),r,this.settings.scrollSpeed)},paused:function(){return e.inArray(this.settings.$li.index()+1,this.settings.pauseAfter)===-1},restart:function(){this.hide(),this.settings.$li=r,this.show("init")},pos_default:function(n,r){var i=Math.ceil(e(t).height()/2),s=this.settings.$next_tip.offset(),o=this.settings.$next_tip.find(".joyride-nub"),u=Math.ceil(this.outerWidth(o)/2),a=Math.ceil(this.outerHeight(o)/2),f=n||!1;f&&(this.settings.$next_tip.css("visibility","hidden"),this.settings.$next_tip.show()),typeof r=="undefined"&&(r=!1);if(!/body/i.test(this.settings.$target.selector)){if(this.bottom()){var l=this.settings.$target.offset().left;Foundation.rtl&&(l=this.settings.$target.offset().width-this.settings.$next_tip.width()+l),this.settings.$next_tip.css({top:this.settings.$target.offset().top+a+this.outerHeight(this.settings.$target),left:l}),this.nub_position(o,this.settings.tipSettings.nubPosition,"top")}else if(this.top()){var l=this.settings.$target.offset().left;Foundation.rtl&&(l=this.settings.$target.offset().width-this.settings.$next_tip.width()+l),this.settings.$next_tip.css({top:this.settings.$target.offset().top-this.outerHeight(this.settings.$next_tip)-a,left:l}),this.nub_position(o,this.settings.tipSettings.nubPosition,"bottom")}else this.right()?(this.settings.$next_tip.css({top:this.settings.$target.offset().top,left:this.outerWidth(this.settings.$target)+this.settings.$target.offset().left+u}),this.nub_position(o,this.settings.tipSettings.nubPosition,"left")):this.left()&&(this.settings.$next_tip.css({top:this.settings.$target.offset().top,left:this.settings.$target.offset().left-this.outerWidth(this.settings.$next_tip)-u}),this.nub_position(o,this.settings.tipSettings.nubPosition,"right"));!this.visible(this.corners(this.settings.$next_tip))&&this.settings.attempts0&&arguments[0]instanceof e)i=arguments[0];else{if(!this.settings.$target||!!/body/i.test(this.settings.$target.selector))return!1;i=this.settings.$target}if(i.length<1)return t.console&&console.error("element not valid",i),!1;n=e(this.settings.template.expose),this.settings.$body.append(n),n.css({top:i.offset().top,left:i.offset().left,width:this.outerWidth(i,!0),height:this.outerHeight(i,!0)}),r=e(this.settings.template.exposeCover),s={zIndex:i.css("z-index"),position:i.css("position")},o=i.attr("class")==null?"":i.attr("class"),i.css("z-index",parseInt(n.css("z-index"))+1),s.position=="static"&&i.css("position","relative"),i.data("expose-css",s),i.data("orig-class",o),i.attr("class",o+" "+this.settings.exposeAddClass),r.css({top:i.offset().top,left:i.offset().left,width:this.outerWidth(i,!0),height:this.outerHeight(i,!0)}),this.settings.$body.append(r),n.addClass(u),r.addClass(u),i.data("expose",u),this.settings.postExposeCallback(this.settings.$li.index(),this.settings.$next_tip,i),this.add_exposed(i)},un_expose:function(){var n,r,i,s,o,u=!1;if(arguments.length>0&&arguments[0]instanceof e)r=arguments[0];else{if(!this.settings.$target||!!/body/i.test(this.settings.$target.selector))return!1;r=this.settings.$target}if(r.length<1)return t.console&&console.error("element not valid",r),!1;n=r.data("expose"),i=e("."+n),arguments.length>1&&(u=arguments[1]),u===!0?e(".joyride-expose-wrapper,.joyride-expose-cover").remove():i.remove(),s=r.data("expose-css"),s.zIndex=="auto"?r.css("z-index",""):r.css("z-index",s.zIndex),s.position!=r.css("position")&&(s.position=="static"?r.css("position",""):r.css("position",s.position)),o=r.data("orig-class"),r.attr("class",o),r.removeData("orig-classes"),r.removeData("expose"),r.removeData("expose-z-index"),this.remove_exposed(r)},add_exposed:function(t){this.settings.exposed=this.settings.exposed||[],t instanceof e||typeof t=="object"?this.settings.exposed.push(t[0]):typeof t=="string"&&this.settings.exposed.push(t)},remove_exposed:function(t){var n,r;t instanceof e?n=t[0]:typeof t=="string"&&(n=t),this.settings.exposed=this.settings.exposed||[],r=this.settings.exposed.length;for(var i=0;ia&&(a=u),[n.offset().topn.offset().left]},visible:function(e){var t=e.length;while(t--)if(e[t])return!1;return!0},nub_position:function(e,t,n){t==="auto"?e.addClass(n):e.addClass(t)},startTimer:function(){this.settings.$li.length?this.settings.automate=setTimeout(function(){this.hide(),this.show(),this.startTimer()}.bind(this),this.settings.timer):clearTimeout(this.settings.automate)},end:function(){this.settings.cookieMonster&&e.cookie(this.settings.cookieName,"ridden",{expires:this.settings.cookieExpires,domain:this.settings.cookieDomain}),this.settings.timer>0&&clearTimeout(this.settings.automate),this.settings.modal&&this.settings.expose&&this.un_expose(),this.settings.$next_tip.data("closed",!0),e(".joyride-modal-bg").hide(),this.settings.$current_tip.hide(),this.settings.postStepCallback(this.settings.$li.index(),this.settings.$current_tip),this.settings.postRideCallback(this.settings.$li.index(),this.settings.$current_tip),e(".joyride-tip-guide").remove()},outerHTML:function(e){return e.outerHTML||(new XMLSerializer).serializeToString(e)},off:function(){e(this.scope).off(".joyride"),e(t).off(".joyride"),e(".joyride-close-tip, .joyride-next-tip, .joyride-modal-bg").off(".joyride"),e(".joyride-tip-guide, .joyride-modal-bg").remove(),clearTimeout(this.settings.automate),this.settings={}},reflow:function(){}}}(Foundation.zj,this,this.document),function(e,t,n,r){"use strict";var i=function(){},s=function(i,s){if(i.hasClass(s.slides_container_class))return this;var f=this,l,c=i,h,p,d,v=0,m,g,y=!1,b=!1;c.children().first().addClass(s.active_slide_class),f.update_slide_number=function(t){s.slide_number&&(h.find("span:first").text(parseInt(t)+1),h.find("span:last").text(c.children().length)),s.bullets&&(p.children().removeClass(s.bullets_active_class),e(p.children().get(t)).addClass(s.bullets_active_class))},f.build_markup=function(){c.wrap('
    '),l=c.parent(),c.addClass(s.slides_container_class),s.navigation_arrows&&(l.append(e("").addClass(s.prev_class).append("")),l.append(e("").addClass(s.next_class).append(""))),s.timer&&(d=e("
    ").addClass(s.timer_container_class),d.append(""),d.append(e("
    ").addClass(s.timer_progress_class)),d.addClass(s.timer_paused_class),l.append(d)),s.slide_number&&(h=e("
    ").addClass(s.slide_number_class),h.append(" of "),l.append(h)),s.bullets&&(p=e("
      ").addClass(s.bullets_container_class),l.append(p),c.children().each(function(t,n){var r=e("
    1. ").attr("data-orbit-slide",t);p.append(r)})),s.stack_on_small&&l.addClass(s.stack_on_small_class),f.update_slide_number(0)},f._goto=function(t,n){if(t===v)return!1;typeof g=="object"&&g.restart();var r=c.children(),i="next";y=!0,t=r.length?t=0:t<0&&(t=r.length-1);var o=e(r.get(v)),u=e(r.get(t));o.css("zIndex",2),u.css("zIndex",4).addClass("active"),c.trigger("orbit:before-slide-change"),s.before_slide_change();var a=function(){var e=function(){v=t,y=!1,n===!0&&(g=f.create_timer(),g.start()),f.update_slide_number(v),c.trigger("orbit:after-slide-change",[{slide_number:v,total_slides:r.length}]),s.after_slide_change(v,r.length)};c.height()!=u.height()?c.animate({height:u.height()},250,"linear",e):e()};if(r.length===1)return a(),!1;var l=function(){i==="next"&&m.next(o,u,a),i==="prev"&&m.prev(o,u,a)};u.height()>c.height()?c.animate({height:u.height()},250,"linear",l):l()}, -f.next=function(e){e.stopImmediatePropagation(),e.preventDefault(),f._goto(v+1)},f.prev=function(e){e.stopImmediatePropagation(),e.preventDefault(),f._goto(v-1)},f.link_custom=function(t){t.preventDefault();var n=e(this).attr("data-orbit-link");if(typeof n=="string"&&(n=e.trim(n))!=""){var r=l.find("[data-orbit-slide="+n+"]");r.index()!=-1&&f._goto(r.index())}},f.link_bullet=function(t){var n=e(this).attr("data-orbit-slide");typeof n=="string"&&(n=e.trim(n))!=""&&f._goto(n)},f.timer_callback=function(){f._goto(v+1,!0)},f.compute_dimensions=function(){var t=e(c.children().get(v)),n=t.height();s.variable_height||c.children().each(function(){e(this).height()>n&&(n=e(this).height())}),c.height(n)},f.create_timer=function(){var e=new o(l.find("."+s.timer_container_class),s,f.timer_callback);return e},f.stop_timer=function(){typeof g=="object"&&g.stop()},f.toggle_timer=function(){var e=l.find("."+s.timer_container_class);e.hasClass(s.timer_paused_class)?(typeof g=="undefined"&&(g=f.create_timer()),g.start()):typeof g=="object"&&g.stop()},f.init=function(){f.build_markup(),s.timer&&(g=f.create_timer(),g.start()),m=new a(c),s.animation==="slide"&&(m=new u(c)),l.on("click","."+s.next_class,f.next),l.on("click","."+s.prev_class,f.prev),l.on("click","[data-orbit-slide]",f.link_bullet),l.on("click",f.toggle_timer),l.on("touchstart.fndtn.orbit",function(e){e.touches||(e=e.originalEvent);var t={start_page_x:e.touches[0].pageX,start_page_y:e.touches[0].pageY,start_time:(new Date).getTime(),delta_x:0,is_scrolling:r};l.data("swipe-transition",t),e.stopPropagation()}).on("touchmove.fndtn.orbit",function(e){e.touches||(e=e.originalEvent);if(e.touches.length>1||e.scale&&e.scale!==1)return;var t=l.data("swipe-transition");typeof t=="undefined"&&(t={}),t.delta_x=e.touches[0].pageX-t.start_page_x,typeof t.is_scrolling=="undefined"&&(t.is_scrolling=!!(t.is_scrolling||Math.abs(t.delta_x)"+l+">"+u[c];i.push(p+" a"),i.push(p)}}e(r.scope).on("click.fndtn.section",i.join(","),function(t){var n=e(this).closest(r.settings.title_selector);r.close_navs(n),n.siblings(r.settings.content_selector).length>0&&r.toggle_active.call(n[0],t)}),e(t).on("resize.fndtn.section",r.throttle(function(){r.resize()},30)).on("hashchange.fndtn.section",r.set_active_from_hash),e(n).on("click.fndtn.section",function(t){if(t.isPropagationStopped&&t.isPropagationStopped())return;if(t.target===n)return;r.close_navs(e(t.target).closest(r.settings.title_selector))}),e(t).triggerHandler("resize.fndtn.section"),e(t).triggerHandler("hashchange.fndtn.section")},close_navs:function(t){var n=Foundation.libs.section,r=e(n.settings.nav_selector).filter(function(){return!e.extend({},n.settings,n.data_options(e(this))).one_up});if(t.length>0){var i=t.parent().parent();if(n.is_horizontal_nav(i)||n.is_vertical_nav(i))r=r.filter(function(){return this!==i[0]})}r.children(n.settings.region_selector).removeClass(n.settings.active_class)},toggle_active:function(t){var n=e(this),r=Foundation.libs.section,i=n.parent(),s=n.siblings(r.settings.content_selector),o=i.parent(),u=e.extend({},r.settings,r.data_options(o)),a=o.children(r.settings.region_selector).filter("."+r.settings.active_class);!u.deep_linking&&s.length>0&&t.preventDefault(),t.stopPropagation(),i.hasClass(r.settings.active_class)?!u.one_up&&(r.small(o)||r.is_vertical_nav(o)||r.is_horizontal_nav(o)||r.is_accordion(o))&&i.removeClass(r.settings.active_class):(a.removeClass(r.settings.active_class),i.addClass(r.settings.active_class),r.resize(i.find(r.settings.section_selector).not("["+r.settings.resized_data_attr+"]"),!0)),u.callback(o)},check_resize_timer:null,resize:function(t,r){var i=Foundation.libs.section,s=i.small(e(n)),o=function(e,t){return!i.is_accordion(e)&&!e.is("["+i.settings.resized_data_attr+"]")&&(!s||i.is_horizontal_tabs(e))&&t===(e.css("display")==="none"||!e.parent().is(":visible"))};t=t||e(i.settings.section_selector),clearTimeout(i.check_resize_timer),s||t.removeAttr(i.settings.small_style_data_attr),t.filter(function(){return o(e(this),!1)}).each(function(){var t=e(this),n=t.children(i.settings.region_selector),s=n.children(i.settings.title_selector),o=n.children(i.settings.content_selector),u=0;if(r&&t.children(i.settings.region_selector).filter("."+i.settings.active_class).length==0){var a=e.extend({},i.settings,i.data_options(t));!a.deep_linking&&(a.one_up||!i.is_horizontal_nav(t)&&!i.is_vertical_nav(t)&&!i.is_accordion(t))&&n.filter(":visible").first().addClass(i.settings.active_class)}if(i.is_horizontal_tabs(t)||i.is_auto(t)){var f=0;s.each(function(){var t=e(this);if(t.is(":visible")){t.css(i.rtl?"right":"left",f);var n=parseInt(t.css("border-"+(i.rtl?"left":"right")+"-width"),10);n.toString()==="Nan"&&(n=0),f+=i.outerWidth(t)-n,u=Math.max(u,i.outerHeight(t))}}),s.css("height",u),n.each(function(){var t=e(this),n=t.children(i.settings.content_selector),r=parseInt(n.css("border-top-width"),10);r.toString()==="Nan"&&(r=0),t.css("padding-top",u-r)}),t.css("min-height",u)}else if(i.is_horizontal_nav(t)){var l=!0;s.each(function(){u=Math.max(u,i.outerHeight(e(this)))}),n.each(function(){var n=e(this);n.css("margin-left","-"+(l?t:n.children(i.settings.title_selector)).css("border-left-width")),l=!1}),n.css("margin-top","-"+t.css("border-top-width")),s.css("height",u),o.css("top",u),t.css("min-height",u)}else if(i.is_vertical_tabs(t)){var c=0;s.each(function(){var t=e(this);if(t.is(":visible")){t.css("top",c);var n=parseInt(t.css("border-top-width"),10);n.toString()==="Nan"&&(n=0),c+=i.outerHeight(t)-n}}),o.css("min-height",c+1)}else if(i.is_vertical_nav(t)){var h=0,p=!0;s.each(function(){h=Math.max(h,i.outerWidth(e(this)))}),n.each(function(){var n=e(this);n.css("margin-top","-"+(p?t:n.children(i.settings.title_selector)).css("border-top-width")),p=!1}),s.css("width",h),o.css(i.rtl?"right":"left",h),t.css("width",h)}t.attr(i.settings.resized_data_attr,!0)}),e(i.settings.section_selector).filter(function(){return o(e(this),!0)}).length>0&&(i.check_resize_timer=setTimeout(function(){i.resize(t.filter(function(){return o(e(this),!1)}),!0)},700)),s&&t.attr(i.settings.small_style_data_attr,!0)},is_vertical_nav:function(e){return/vertical-nav/i.test(e.data("section"))},is_horizontal_nav:function(e){return/horizontal-nav/i.test(e.data("section"))},is_accordion:function(e){return/accordion/i.test(e.data("section"))},is_horizontal_tabs:function(e){return/^tabs$/i.test(e.data("section"))},is_vertical_tabs:function(e){return/vertical-tabs/i.test(e.data("section"))},is_auto:function(e){var t=e.data("section");return t===""||/auto/i.test(t)},set_active_from_hash:function(){var n=Foundation.libs.section,r=t.location.hash.substring(1),i=e(n.settings.section_selector);i.each(function(){var t=e(this),i=e.extend({},n.settings,n.data_options(t)),s=t.children(n.settings.region_selector),o=i.deep_linking&&r.length>0,u=!1;s.each(function(){var t=e(this);if(u)t.removeClass(n.settings.active_class);else if(o){var i=t.children(n.settings.content_selector).data("slug");i&&(new RegExp(i,"i")).test(r)?(t.hasClass(n.settings.active_class)||t.addClass(n.settings.active_class),u=!0):t.removeClass(n.settings.active_class)}else t.hasClass(n.settings.active_class)&&(u=!0)}),!u&&!i.deep_linking&&(i.one_up||!n.is_horizontal_nav(t)&&!n.is_vertical_nav(t)&&!n.is_accordion(t))&&s.filter(":visible").first().addClass(n.settings.active_class)})},reflow:function(){var t=Foundation.libs.section;e(t.settings.section_selector).removeAttr(t.settings.resized_data_attr),t.throttle(function(){t.resize()},30)()},small:function(t){var n=e.extend({},this.settings,this.data_options(t));return this.is_horizontal_tabs(t)?!1:t&&this.is_accordion(t)?!0:e("html").hasClass("lt-ie9")?!0:e("html").hasClass("ie8compat")?!0:e(this.scope).width()").insertAfter(s.settings.$topbar);s.settings.breakPoint=n.width(),n.remove(),s.assemble(),s.settings.is_hover&&s.settings.$topbar.find(".has-dropdown").addClass("not-click"),s.settings.$topbar.parent().hasClass("fixed")&&e("body").css("padding-top",s.outerHeight(s.settings.$topbar))}),s.settings.init||this.events(),this.settings.init):this[r].call(this,i)},timer:null,events:function(){var n=this,r=this.outerHeight(e(".top-bar, [data-topbar]"));e(this.scope).off(".fndtn.topbar").on("click.fndtn.topbar",".top-bar .toggle-topbar, [data-topbar] .toggle-topbar",function(i){var s=e(this).closest(".top-bar, [data-topbar]"),o=s.find("section, .section"),u=s.children("ul").first();i.preventDefault(),n.breakpoint()&&(n.rtl?(o.css({right:"0%"}),o.find(">.name").css({right:"100%"})):(o.css({left:"0%"}),o.find(">.name").css({left:"100%"})),o.find("li.moved").removeClass("moved"),s.data("index",0),s.toggleClass("expanded").css("height","")),s.hasClass("expanded")?s.parent().hasClass("fixed")&&(s.parent().removeClass("fixed"),s.addClass("fixed"),e("body").css("padding-top","0"),n.settings.scrolltop&&t.scrollTo(0,0)):s.hasClass("fixed")&&(s.parent().addClass("fixed"),s.removeClass("fixed"),e("body").css("padding-top",r))}).on("click.fndtn.topbar",".top-bar li.has-dropdown",function(t){if(n.breakpoint())return;var r=e(this),i=e(t.target),s=r.closest("[data-topbar], .top-bar"),o=s.data("topbar");if(n.settings.is_hover&&!Modernizr.touch)return;t.stopImmediatePropagation(),i[0].nodeName==="A"&&i.parent().hasClass("has-dropdown")&&t.preventDefault(),r.hasClass("hover")?r.removeClass("hover").find("li").removeClass("hover"):r.addClass("hover")}).on("click.fndtn.topbar",".top-bar .has-dropdown>a, [data-topbar] .has-dropdown>a",function(t){if(n.breakpoint()){t.preventDefault();var r=e(this),i=r.closest(".top-bar, [data-topbar]"),s=i.find("section, .section"),o=i.children("ul").first(),u=r.next(".dropdown").outerHeight(),a=r.closest("li");i.data("index",i.data("index")+1),a.addClass("moved"),n.rtl?(s.css({right:-(100*i.data("index"))+"%"}),s.find(">.name").css({right:100*i.data("index")+"%"})):(s.css({left:-(100*i.data("index"))+"%"}),s.find(">.name").css({left:100*i.data("index")+"%"})),i.css("height",n.outerHeight(r.siblings("ul"),!0)+n.height(o))}}),e(t).on("resize.fndtn.topbar",function(){n.breakpoint()||e(".top-bar, [data-topbar]").css("height","").removeClass("expanded").find("li").removeClass("hover")}.bind(this)),e("body").on("click.fndtn.topbar",function(t){var n=e(t.target).closest("[data-topbar], .top-bar");if(n.length>0)return;e(".top-bar li, [data-topbar] li").removeClass("hover")}),e(this.scope).on("click.fndtn",".top-bar .has-dropdown .back, [data-topbar] .has-dropdown .back",function(t){t.preventDefault();var r=e(this),i=r.closest(".top-bar, [data-topbar]"),s=i.children("ul").first(),o=i.find("section, .section"),u=r.closest("li.moved"),a=u.parent();i.data("index",i.data("index")-1),n.rtl?(o.css({right:-(100*i.data("index"))+"%"}),o.find(">.name").css({right:100*i.data("index")+"%"})):(o.css({left:-(100*i.data("index"))+"%"}),o.find(">.name").css({left:100*i.data("index")+"%"})),i.data("index")===0?i.css("height",""):i.css("height",n.outerHeight(a,!0)+n.height(s)),setTimeout(function(){u.removeClass("moved")},300)})},breakpoint:function(){return e(n).width()<=this.settings.breakPoint||e("html").hasClass("lt-ie9")},assemble:function(){var t=this;this.settings.$section.detach(),this.settings.$section.find(".has-dropdown>a").each(function(){var n=e(this),r=n.siblings(".dropdown"),i=n.attr("href");if(t.settings.mobile_show_parent_link&&i&&i.length>1)var s=e('
    2. '+n.text()+"
    3. ");else var s=e('
    4. ');t.settings.custom_back_text==1?s.find("h5>a").html("« "+t.settings.back_text):s.find("h5>a").html("« "+n.html()),r.prepend(s)}),this.settings.$section.appendTo(this.settings.$topbar),this.sticky()},height:function(t){var n=0,r=this;return t.find("> li").each(function(){n+=r.outerHeight(e(this),!0)}),n},sticky:function(){var n="."+this.settings.stickyClass;if(e(n).length>0){var r=e(n).length?e(n).offset().top:0,i=e(t),s=this.outerHeight(e(".top-bar")),o;e(t).resize(function(){clearTimeout(o),o=setTimeout(function(){r=e(n).offset().top},105)}),i.scroll(function(){i.scrollTop()>r?(e(n).addClass("fixed"),e("body").css("padding-top",s)):i.scrollTop()<=r&&(e(n).removeClass("fixed"),e("body").css("padding-top","0"))})}},off:function(){e(this.scope).off(".fndtn.topbar"),e(t).off(".fndtn.topbar")},reflow:function(){}}}(Foundation.zj,this,this.document); +var libFuncName = null; if (typeof jQuery == "undefined" && typeof Zepto == "undefined" && typeof $ == "function") libFuncName = $; else if (typeof jQuery == "function") libFuncName = jQuery; else { if (typeof Zepto != "function") throw new TypeError; libFuncName = Zepto } (function (e, t, n, r) { "use strict"; t.matchMedia = t.matchMedia || function (e, t) { var n, r = e.documentElement, i = r.firstElementChild || r.firstChild, s = e.createElement("body"), o = e.createElement("div"); return o.id = "mq-test-1", o.style.cssText = "position:absolute;top:-100em", s.style.background = "none", s.appendChild(o), function (e) { return o.innerHTML = '­', r.insertBefore(s, i), n = o.offsetWidth === 42, r.removeChild(s), { matches: n, media: e } } }(n), Array.prototype.filter || (Array.prototype.filter = function (e) { if (this == null) throw new TypeError; var t = Object(this), n = t.length >>> 0; if (typeof e != "function") return; var r = [], i = arguments[1]; for (var s = 0; s < n; s++)if (s in t) { var o = t[s]; e && e.call(i, o, s, t) && r.push(o) } return r }), Function.prototype.bind || (Function.prototype.bind = function (e) { if (typeof this != "function") throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable"); var t = Array.prototype.slice.call(arguments, 1), n = this, r = function () { }, i = function () { return n.apply(this instanceof r && e ? this : e, t.concat(Array.prototype.slice.call(arguments))) }; return r.prototype = this.prototype, i.prototype = new r, i }), Array.prototype.indexOf || (Array.prototype.indexOf = function (e) { if (this == null) throw new TypeError; var t = Object(this), n = t.length >>> 0; if (n === 0) return -1; var r = 0; arguments.length > 1 && (r = Number(arguments[1]), r != r ? r = 0 : r != 0 && r != Infinity && r != -Infinity && (r = (r > 0 || -1) * Math.floor(Math.abs(r)))); if (r >= n) return -1; var i = r >= 0 ? r : Math.max(n - Math.abs(r), 0); for (; i < n; i++)if (i in t && t[i] === e) return i; return -1 }), e.fn.stop = e.fn.stop || function () { return this }, t.Foundation = { name: "Foundation", version: "4.3.1", cache: {}, init: function (t, n, r, i, s, o) { var u, a = [t, r, i, s], f = [], o = o || !1; o && (this.nc = o), this.rtl = /rtl/i.test(e("html").attr("dir")), this.scope = t || this.scope; if (n && typeof n == "string" && !/reflow/i.test(n)) { if (/off/i.test(n)) return this.off(); u = n.split(" "); if (u.length > 0) for (var l = u.length - 1; l >= 0; l--)f.push(this.init_lib(u[l], a)) } else { /reflow/i.test(n) && (a[1] = "reflow"); for (var c in this.libs) f.push(this.init_lib(c, a)) } return typeof n == "function" && a.unshift(n), this.response_obj(f, a) }, response_obj: function (e, t) { for (var n = 0, r = t.length; n < r; n++)if (typeof t[n] == "function") return t[n]({ errors: e.filter(function (e) { if (typeof e == "string") return e }) }); return e }, init_lib: function (e, t) { return this.trap(function () { return this.libs.hasOwnProperty(e) ? (this.patch(this.libs[e]), this.libs[e].init.apply(this.libs[e], t)) : function () { } }.bind(this), e) }, trap: function (e, t) { if (!this.nc) try { return e() } catch (n) { return this.error({ name: t, message: "could not be initialized", more: n.name + " " + n.message }) } return e() }, patch: function (e) { this.fix_outer(e), e.scope = this.scope, e.rtl = this.rtl }, inherit: function (e, t) { var n = t.split(" "); for (var r = n.length - 1; r >= 0; r--)this.lib_methods.hasOwnProperty(n[r]) && (this.libs[e.name][n[r]] = this.lib_methods[n[r]]) }, random_str: function (e) { var t = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""); e || (e = Math.floor(Math.random() * t.length)); var n = ""; for (var r = 0; r < e; r++)n += t[Math.floor(Math.random() * t.length)]; return n }, libs: {}, lib_methods: { set_data: function (e, t) { var n = [this.name, +(new Date), Foundation.random_str(5)].join("-"); return Foundation.cache[n] = t, e.attr("data-" + this.name + "-id", n), t }, get_data: function (e) { return Foundation.cache[e.attr("data-" + this.name + "-id")] }, remove_data: function (t) { t ? (delete Foundation.cache[t.attr("data-" + this.name + "-id")], t.attr("data-" + this.name + "-id", "")) : e("[data-" + this.name + "-id]").each(function () { delete Foundation.cache[e(this).attr("data-" + this.name + "-id")], e(this).attr("data-" + this.name + "-id", "") }) }, throttle: function (e, t) { var n = null; return function () { var r = this, i = arguments; clearTimeout(n), n = setTimeout(function () { e.apply(r, i) }, t) } }, data_options: function (t) { function u(e) { return !isNaN(e - 0) && e !== null && e !== "" && e !== !1 && e !== !0 } function a(t) { return typeof t == "string" ? e.trim(t) : t } var n = {}, r, i, s = (t.attr("data-options") || ":").split(";"), o = s.length; for (r = o - 1; r >= 0; r--)i = s[r].split(":"), /true/i.test(i[1]) && (i[1] = !0), /false/i.test(i[1]) && (i[1] = !1), u(i[1]) && (i[1] = parseInt(i[1], 10)), i.length === 2 && i[0].length > 0 && (n[a(i[0])] = a(i[1])); return n }, delay: function (e, t) { return setTimeout(e, t) }, scrollTo: function (n, r, i) { if (i < 0) return; var s = r - e(t).scrollTop(), o = s / i * 10; this.scrollToTimerCache = setTimeout(function () { isNaN(parseInt(o, 10)) || (t.scrollTo(0, e(t).scrollTop() + o), this.scrollTo(n, r, i - 10)) }.bind(this), 10) }, scrollLeft: function (e) { if (!e.length) return; return "scrollLeft" in e[0] ? e[0].scrollLeft : e[0].pageXOffset }, empty: function (e) { if (e.length && e.length > 0) return !1; if (e.length && e.length === 0) return !0; for (var t in e) if (hasOwnProperty.call(e, t)) return !1; return !0 } }, fix_outer: function (e) { e.outerHeight = function (e, t) { return typeof Zepto == "function" ? e.height() : typeof t != "undefined" ? e.outerHeight(t) : e.outerHeight() }, e.outerWidth = function (e, t) { return typeof Zepto == "function" ? e.width() : typeof t != "undefined" ? e.outerWidth(t) : e.outerWidth() } }, error: function (e) { return e.name + " " + e.message + "; " + e.more }, off: function () { return e(this.scope).off(".fndtn"), e(t).off(".fndtn"), !0 }, zj: e }, e.fn.foundation = function () { var e = Array.prototype.slice.call(arguments, 0); return this.each(function () { return Foundation.init.apply(Foundation, [this].concat(e)), this }) } })(libFuncName, this, this.document), function (e, t, n, r) { "use strict"; Foundation.libs.interchange = { name: "interchange", version: "4.2.4", cache: {}, images_loaded: !1, settings: { load_attr: "interchange", named_queries: { "default": "only screen and (min-width: 1px)", small: "only screen and (min-width: 768px)", medium: "only screen and (min-width: 1280px)", large: "only screen and (min-width: 1440px)", landscape: "only screen and (orientation: landscape)", portrait: "only screen and (orientation: portrait)", retina: "only screen and (-webkit-min-device-pixel-ratio: 2),only screen and (min--moz-device-pixel-ratio: 2),only screen and (-o-min-device-pixel-ratio: 2/1),only screen and (min-device-pixel-ratio: 2),only screen and (min-resolution: 192dpi),only screen and (min-resolution: 2dppx)" }, directives: { replace: function (e, t) { if (/IMG/.test(e[0].nodeName)) { var n = e[0].src; if ((new RegExp(t, "i")).test(n)) return; return e[0].src = t, e.trigger("replace", [e[0].src, n]) } } } }, init: function (t, n, r) { return Foundation.inherit(this, "throttle"), typeof n == "object" && e.extend(!0, this.settings, n), this.events(), this.images(), typeof n != "string" ? this.settings.init : this[n].call(this, r) }, events: function () { var n = this; e(t).on("resize.fndtn.interchange", n.throttle(function () { n.resize.call(n) }, 50)) }, resize: function () { var t = this.cache; if (!this.images_loaded) { setTimeout(e.proxy(this.resize, this), 50); return } for (var n in t) if (t.hasOwnProperty(n)) { var r = this.results(n, t[n]); r && this.settings.directives[r.scenario[1]](r.el, r.scenario[0]) } }, results: function (t, n) { var r = n.length; if (r > 0) { var i = e('[data-uuid="' + t + '"]'); for (var s = r - 1; s >= 0; s--) { var o, u = n[s][2]; this.settings.named_queries.hasOwnProperty(u) ? o = matchMedia(this.settings.named_queries[u]) : o = matchMedia(u); if (o.matches) return { el: i, scenario: n[s] } } } return !1 }, images: function (e) { return typeof this.cached_images == "undefined" || e ? this.update_images() : this.cached_images }, update_images: function () { var t = n.getElementsByTagName("img"), r = t.length, i = 0, s = "data-" + this.settings.load_attr; this.cached_images = [], this.images_loaded = !1; for (var o = r - 1; o >= 0; o--)this.loaded(e(t[o]), function (e) { i++; if (e) { var t = e.getAttribute(s) || ""; t.length > 0 && this.cached_images.push(e) } i === r && (this.images_loaded = !0, this.enhance()) }.bind(this)); return "deferred" }, loaded: function (e, t) { function n() { t(e[0]) } function r() { this.one("load", n); if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)) { var e = this.attr("src"), t = e.match(/\?/) ? "&" : "?"; t += "random=" + (new Date).getTime(), this.attr("src", e + t) } } if (!e.attr("src")) { n(); return } e[0].complete || e[0].readyState === 4 ? n() : r.call(e) }, enhance: function () { var n = this.images().length; for (var r = n - 1; r >= 0; r--)this._object(e(this.images()[r])); return e(t).trigger("resize") }, parse_params: function (e, t, n) { return [this.trim(e), this.convert_directive(t), this.trim(n)] }, convert_directive: function (e) { var t = this.trim(e); return t.length > 0 ? t : "replace" }, _object: function (e) { var t = this.parse_data_attr(e), n = [], r = t.length; if (r > 0) for (var i = r - 1; i >= 0; i--) { var s = t[i].split(/\((.*?)(\))$/); if (s.length > 1) { var o = s[0].split(","), u = this.parse_params(o[0], o[1], s[1]); n.push(u) } } return this.store(e, n) }, uuid: function (e) { function n() { return ((1 + Math.random()) * 65536 | 0).toString(16).substring(1) } var t = e || "-"; return n() + n() + t + n() + t + n() + t + n() + t + n() + n() + n() }, store: function (e, t) { var n = this.uuid(), r = e.data("uuid"); return r ? this.cache[r] : (e.attr("data-uuid", n), this.cache[n] = t) }, trim: function (t) { return typeof t == "string" ? e.trim(t) : t }, parse_data_attr: function (e) { var t = e.data(this.settings.load_attr).split(/\[(.*?)\]/), n = t.length, r = []; for (var i = n - 1; i >= 0; i--)t[i].replace(/[\W\d]+/, "").length > 4 && r.push(t[i]); return r }, reflow: function () { this.images(!0) } } }(Foundation.zj, this, this.document), function (e, t, n, r) { "use strict"; Foundation.libs.abide = { name: "abide", version: "4.3.0", settings: { live_validate: !0, focus_on_invalid: !0, timeout: 1e3, patterns: { alpha: /[a-zA-Z]+/, alpha_numeric: /[a-zA-Z0-9]+/, integer: /-?\d+/, number: /-?(?:\d+|\d{1,3}(?:,\d{3})+)?(?:\.\d+)?/, password: /(?=^.{8,}$)((?=.*\d)|(?=.*\W+))(?![.\n])(?=.*[A-Z])(?=.*[a-z]).*$/, card: /^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11})$/, cvv: /^([0-9]){3,4}$/, email: /^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/, url: /(https?|ftp|file|ssh):\/\/(((([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-zA-Z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-zA-Z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-zA-Z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-zA-Z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-zA-Z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-zA-Z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?/, domain: /^([a-zA-Z0-9]([a-zA-Z0-9\-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,6}$/, datetime: /([0-2][0-9]{3})\-([0-1][0-9])\-([0-3][0-9])T([0-5][0-9])\:([0-5][0-9])\:([0-5][0-9])(Z|([\-\+]([0-1][0-9])\:00))/, date: /(?:19|20)[0-9]{2}-(?:(?:0[1-9]|1[0-2])-(?:0[1-9]|1[0-9]|2[0-9])|(?:(?!02)(?:0[1-9]|1[0-2])-(?:30))|(?:(?:0[13578]|1[02])-31))/, time: /(0[0-9]|1[0-9]|2[0-3])(:[0-5][0-9]){2}/, dateISO: /\d{4}[\/\-]\d{1,2}[\/\-]\d{1,2}/, month_day_year: /(0[1-9]|1[012])[- \/.](0[1-9]|[12][0-9]|3[01])[- \/.](19|20)\d\d/, color: /^#?([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/ } }, timer: null, init: function (t, n, r) { typeof n == "object" && e.extend(!0, this.settings, n); if (typeof n == "string") return this[n].call(this, r); this.settings.init || this.events() }, events: function () { var t = this, n = e("form[data-abide]", this.scope).attr("novalidate", "novalidate"); n.on("submit validate", function (n) { return t.validate(e(this).find("input, textarea, select").get(), n) }), this.settings.init = !0; if (!this.settings.live_validate) return; n.find("input, textarea, select").on("blur change", function (e) { t.validate([this], e) }).on("keydown", function (e) { clearTimeout(t.timer), t.timer = setTimeout(function () { t.validate([this], e) }.bind(this), t.settings.timeout) }) }, validate: function (t, n) { var r = this.parse_patterns(t), i = r.length, s = e(t[0]).closest("form"); while (i--) if (!r[i] && /submit/.test(n.type)) return this.settings.focus_on_invalid && t[i].focus(), s.trigger("invalid"), e(t[i]).closest("form").attr("data-invalid", ""), !1; return /submit/.test(n.type) && s.trigger("valid"), s.removeAttr("data-invalid"), !0 }, parse_patterns: function (e) { var t = e.length, n = []; for (var r = t - 1; r >= 0; r--)n.push(this.pattern(e[r])); return this.check_validation_and_apply_styles(n) }, pattern: function (e) { var t = e.getAttribute("type"), n = typeof e.getAttribute("required") == "string"; if (this.settings.patterns.hasOwnProperty(t)) return [e, this.settings.patterns[t], n]; var r = e.getAttribute("pattern") || ""; return this.settings.patterns.hasOwnProperty(r) && r.length > 0 ? [e, this.settings.patterns[r], n] : r.length > 0 ? [e, new RegExp(r), n] : (r = /.*/, [e, r, n]) }, check_validation_and_apply_styles: function (t) { var n = t.length, r = []; for (var i = n - 1; i >= 0; i--) { var s = t[i][0], o = t[i][2], u = s.value, a = s.type === "radio", f = o ? s.value.length > 0 : !0; a && o ? r.push(this.valid_radio(s, o)) : t[i][1].test(u) && f || !o && s.value.length < 1 ? (e(s).removeAttr("data-invalid").parent().removeClass("error"), r.push(!0)) : (e(s).attr("data-invalid", "").parent().addClass("error"), r.push(!1)) } return r }, valid_radio: function (t, r) { var i = t.getAttribute("name"), s = n.getElementsByName(i), o = s.length, u = !1; for (var a = 0; a < o; a++)s[a].checked && (u = !0); for (var a = 0; a < o; a++)u ? e(s[a]).removeAttr("data-invalid").parent().removeClass("error") : e(s[a]).attr("data-invalid", "").parent().addClass("error"); return u } } }(Foundation.zj, this, this.document), function (e, t, n, r) { "use strict"; Foundation.libs.dropdown = { name: "dropdown", version: "4.3.0", settings: { activeClass: "open", is_hover: !1, opened: function () { }, closed: function () { } }, init: function (t, n, r) { return this.scope = t || this.scope, Foundation.inherit(this, "throttle scrollLeft data_options"), typeof n == "object" && e.extend(!0, this.settings, n), typeof n != "string" ? (this.settings.init || this.events(), this.settings.init) : this[n].call(this, r) }, events: function () { var r = this; e(this.scope).on("click.fndtn.dropdown", "[data-dropdown]", function (t) { var n = e.extend({}, r.settings, r.data_options(e(this))); t.preventDefault(), n.is_hover || r.toggle(e(this)) }).on("mouseenter", "[data-dropdown]", function (t) { var n = e.extend({}, r.settings, r.data_options(e(this))); n.is_hover && r.toggle(e(this)) }).on("mouseleave", "[data-dropdown-content]", function (t) { var n = e('[data-dropdown="' + e(this).attr("id") + '"]'), i = e.extend({}, r.settings, r.data_options(n)); i.is_hover && r.close.call(r, e(this)) }).on("opened.fndtn.dropdown", "[data-dropdown-content]", this.settings.opened).on("closed.fndtn.dropdown", "[data-dropdown-content]", this.settings.closed), e(n).on("click.fndtn.dropdown", function (t) { var n = e(t.target).closest("[data-dropdown-content]"); if (e(t.target).data("dropdown")) return; if (n.length > 0 && (e(t.target).is("[data-dropdown-content]") || e.contains(n.first()[0], t.target))) { t.stopPropagation(); return } r.close.call(r, e("[data-dropdown-content]")) }), e(t).on("resize.fndtn.dropdown", r.throttle(function () { r.resize.call(r) }, 50)).trigger("resize"), this.settings.init = !0 }, close: function (t) { var n = this; t.each(function () { e(this).hasClass(n.settings.activeClass) && (e(this).css(Foundation.rtl ? "right" : "left", "-99999px").removeClass(n.settings.activeClass), e(this).trigger("closed")) }) }, open: function (e, t) { this.css(e.addClass(this.settings.activeClass), t), e.trigger("opened") }, toggle: function (t) { var n = e("#" + t.data("dropdown")); this.close.call(this, e("[data-dropdown-content]").not(n)), n.hasClass(this.settings.activeClass) ? this.close.call(this, n) : (this.close.call(this, e("[data-dropdown-content]")), this.open.call(this, n, t)) }, resize: function () { var t = e("[data-dropdown-content].open"), n = e("[data-dropdown='" + t.attr("id") + "']"); t.length && n.length && this.css(t, n) }, css: function (n, r) { var i = n.offsetParent(), s = r.offset(); s.top -= i.offset().top, s.left -= i.offset().left; if (this.small()) n.css({ position: "absolute", width: "95%", left: "2.5%", "max-width": "none", top: s.top + this.outerHeight(r) }); else { if (!Foundation.rtl && e(t).width() > this.outerWidth(n) + r.offset().left) { var o = s.left; n.hasClass("right") && n.removeClass("right") } else { n.hasClass("right") || n.addClass("right"); var o = s.left - (this.outerWidth(n) - this.outerWidth(r)) } n.attr("style", "").css({ position: "absolute", top: s.top + this.outerHeight(r), left: o }) } return n }, small: function () { return e(t).width() < 768 || e("html").hasClass("lt-ie9") }, off: function () { e(this.scope).off(".fndtn.dropdown"), e("html, body").off(".fndtn.dropdown"), e(t).off(".fndtn.dropdown"), e("[data-dropdown-content]").off(".fndtn.dropdown"), this.settings.init = !1 }, reflow: function () { } } }(Foundation.zj, this, this.document), function (e, t, n) { function f(e) { var t = {}, r = /^jQuery\d+$/; return n.each(e.attributes, function (e, n) { n.specified && !r.test(n.name) && (t[n.name] = n.value) }), t } function l(e, r) { var i = this, s = n(i); if (i.value == s.attr("placeholder") && s.hasClass("placeholder")) if (s.data("placeholder-password")) { s = s.hide().next().show().attr("id", s.removeAttr("id").data("placeholder-id")); if (e === !0) return s[0].value = r; s.focus() } else i.value = "", s.removeClass("placeholder"), i == t.activeElement && i.select() } function c() { var e, t = this, r = n(t), i = r, s = this.id; if (t.value == "") { if (t.type == "password") { if (!r.data("placeholder-textinput")) { try { e = r.clone().attr({ type: "text" }) } catch (o) { e = n("").attr(n.extend(f(this), { type: "text" })) } e.removeAttr("name").data({ "placeholder-password": !0, "placeholder-id": s }).bind("focus.placeholder", l), r.data({ "placeholder-textinput": e, "placeholder-id": s }).before(e) } r = r.removeAttr("id").hide().prev().attr("id", s).show() } r.addClass("placeholder"), r[0].value = r.attr("placeholder") } else r.removeClass("placeholder") } var r = "placeholder" in t.createElement("input"), i = "placeholder" in t.createElement("textarea"), s = n.fn, o = n.valHooks, u, a; r && i ? (a = s.placeholder = function () { return this }, a.input = a.textarea = !0) : (a = s.placeholder = function () { var e = this; return e.filter((r ? "textarea" : ":input") + "[placeholder]").not(".placeholder").bind({ "focus.placeholder": l, "blur.placeholder": c }).data("placeholder-enabled", !0).trigger("blur.placeholder"), e }, a.input = r, a.textarea = i, u = { get: function (e) { var t = n(e); return t.data("placeholder-enabled") && t.hasClass("placeholder") ? "" : e.value }, set: function (e, r) { var i = n(e); return i.data("placeholder-enabled") ? (r == "" ? (e.value = r, e != t.activeElement && c.call(e)) : i.hasClass("placeholder") ? l.call(e, !0, r) || (e.value = r) : e.value = r, i) : e.value = r } }, r || (o.input = u), i || (o.textarea = u), n(function () { n(t).delegate("form", "submit.placeholder", function () { var e = n(".placeholder", this).each(l); setTimeout(function () { e.each(c) }, 10) }) }), n(e).bind("beforeunload.placeholder", function () { n(".placeholder").each(function () { this.value = "" }) })) }(this, document, Foundation.zj), function (e, t, n, r) { "use strict"; Foundation.libs.placeholder = { name: "placeholder", version: "4.2.2", init: function (n, r, i) { this.scope = n || this.scope, typeof r != "string" && (t.onload = function () { e("input, textarea").placeholder() }) } } }(Foundation.zj, this, this.document), function (e, t, n, r) { "use strict"; Foundation.libs.forms = { name: "forms", version: "4.3.1", cache: {}, settings: { disable_class: "no-custom", last_combo: null }, init: function (t, n, r) { return typeof n == "object" && e.extend(!0, this.settings, n), typeof n != "string" ? (this.settings.init || this.events(), this.assemble(), this.settings.init) : this[n].call(this, r) }, assemble: function () { e('form.custom input[type="radio"]', e(this.scope)).not('[data-customforms="disabled"]').not("." + this.settings.disable_class).each(this.append_custom_markup), e('form.custom input[type="checkbox"]', e(this.scope)).not('[data-customforms="disabled"]').not("." + this.settings.disable_class).each(this.append_custom_markup), e("form.custom select", e(this.scope)).not('[data-customforms="disabled"]').not("." + this.settings.disable_class).not("[multiple=multiple]").each(this.append_custom_select) }, events: function () { var r = this; e(this.scope).on("click.fndtn.forms", "form.custom span.custom.checkbox", function (t) { t.preventDefault(), t.stopPropagation(), r.toggle_checkbox(e(this)) }).on("click.fndtn.forms", "form.custom span.custom.radio", function (t) { t.preventDefault(), t.stopPropagation(), r.toggle_radio(e(this)) }).on("change.fndtn.forms", "form.custom select", function (t, n) { if (e(this).is('[data-customforms="disabled"]')) return; r.refresh_custom_select(e(this), n) }).on("click.fndtn.forms", "form.custom label", function (t) { if (e(t.target).is("label")) { var n = e("#" + r.escape(e(this).attr("for"))).not('[data-customforms="disabled"]'), i, s; n.length !== 0 && (n.attr("type") === "checkbox" ? (t.preventDefault(), i = e(this).find("span.custom.checkbox"), i.length === 0 && (i = n.add(this).siblings("span.custom.checkbox").first()), r.toggle_checkbox(i)) : n.attr("type") === "radio" && (t.preventDefault(), s = e(this).find("span.custom.radio"), s.length === 0 && (s = n.add(this).siblings("span.custom.radio").first()), r.toggle_radio(s))) } }).on("mousedown.fndtn.forms", "form.custom div.custom.dropdown", function () { return !1 }).on("click.fndtn.forms", "form.custom div.custom.dropdown a.current, form.custom div.custom.dropdown a.selector", function (t) { var n = e(this), s = n.closest("div.custom.dropdown"), o = i(s, "select"); s.hasClass("open") || e(r.scope).trigger("click"), t.preventDefault(); if (!1 === o.is(":disabled")) return s.toggleClass("open"), s.hasClass("open") ? e(r.scope).on("click.fndtn.forms.customdropdown", function () { s.removeClass("open"), e(r.scope).off(".fndtn.forms.customdropdown") }) : e(r.scope).on(".fndtn.forms.customdropdown"), !1 }).on("click.fndtn.forms touchend.fndtn.forms", "form.custom div.custom.dropdown li", function (t) { var r = e(this), s = r.closest("div.custom.dropdown"), o = i(s, "select"), u = 0; t.preventDefault(), t.stopPropagation(); if (!e(this).hasClass("disabled")) { e("div.dropdown").not(s).removeClass("open"); var a = r.closest("ul").find("li.selected"); a.removeClass("selected"), r.addClass("selected"), s.removeClass("open").find("a.current").text(r.text()), r.closest("ul").find("li").each(function (e) { r[0] === this && (u = e) }), o[0].selectedIndex = u, o.data("prevalue", a.html()); if (typeof n.createEvent != "undefined") { var f = n.createEvent("HTMLEvents"); f.initEvent("change", !0, !0), o[0].dispatchEvent(f) } else o[0].fireEvent("onchange") } }), e(t).on("keydown", function (t) { var r = n.activeElement, i = Foundation.libs.forms, s = e(".custom.dropdown.open"); if (s.length > 0) { t.preventDefault(), t.which === 13 && s.find("li.selected").trigger("click"), t.which === 27 && s.removeClass("open"); if (t.which >= 65 && t.which <= 90) { var o = i.go_to(s, t.which), u = s.find("li.selected"); o && (u.removeClass("selected"), i.scrollTo(o.addClass("selected"), 300)) } if (t.which === 38) { var u = s.find("li.selected"), a = u.prev(":not(.disabled)"); a.length > 0 && (a.parent()[0].scrollTop = a.parent().scrollTop() - i.outerHeight(a), u.removeClass("selected"), a.addClass("selected")) } else if (t.which === 40) { var u = s.find("li.selected"), o = u.next(":not(.disabled)"); o.length > 0 && (o.parent()[0].scrollTop = o.parent().scrollTop() + i.outerHeight(o), u.removeClass("selected"), o.addClass("selected")) } } }), this.settings.init = !0 }, go_to: function (e, t) { var n = e.find("li"), r = n.length; if (r > 0) for (var i = 0; i < r; i++) { var s = n.eq(i).text().charAt(0).toLowerCase(); if (s === String.fromCharCode(t).toLowerCase()) return n.eq(i) } }, scrollTo: function (e, t) { if (t < 0) return; var n = e.parent(), r = this.outerHeight(e), i = r * e.index() - n.scrollTop(), s = i / t * 10; this.scrollToTimerCache = setTimeout(function () { isNaN(parseInt(s, 10)) || (n[0].scrollTop = n.scrollTop() + s, this.scrollTo(e, t - 10)) }.bind(this), 10) }, append_custom_markup: function (t, n) { var r = e(n), i = r.attr("type"), s = r.next("span.custom." + i); r.parent().hasClass("switch") || r.addClass("hidden-field"), s.length === 0 && (s = e('').insertAfter(r)), s.toggleClass("checked", r.is(":checked")), s.toggleClass("disabled", r.is(":disabled")) }, append_custom_select: function (t, n) { var r = Foundation.libs.forms, i = e(n), s = i.next("div.custom.dropdown"), o = s.find("ul"), u = s.find(".current"), a = s.find(".selector"), f = i.find("option"), l = f.filter(":selected"), c = i.attr("class") ? i.attr("class").split(" ") : [], h = 0, p = "", d, v = !1; if (s.length === 0) { var m = i.hasClass("small") ? "small" : i.hasClass("medium") ? "medium" : i.hasClass("large") ? "large" : i.hasClass("expand") ? "expand" : ""; s = e('
        '), a = s.find(".selector"), o = s.find("ul"), p = f.map(function () { var t = e(this).attr("class") ? e(this).attr("class") : ""; return "
      • " + e(this).html() + "
      • " }).get().join(""), o.append(p), v = s.prepend('' + l.html() + "").find(".current"), i.after(s).addClass("hidden-field") } else p = f.map(function () { return "
      • " + e(this).html() + "
      • " }).get().join(""), o.html("").append(p); r.assign_id(i, s), s.toggleClass("disabled", i.is(":disabled")), d = o.find("li"), r.cache[s.data("id")] = d.length, f.each(function (t) { this.selected && (d.eq(t).addClass("selected"), v && v.html(e(this).html())), e(this).is(":disabled") && d.eq(t).addClass("disabled") }); if (!s.is(".small, .medium, .large, .expand")) { s.addClass("open"); var r = Foundation.libs.forms; r.hidden_fix.adjust(o), h = r.outerWidth(d) > h ? r.outerWidth(d) : h, Foundation.libs.forms.hidden_fix.reset(), s.removeClass("open") } }, assign_id: function (e, t) { var n = [+(new Date), Foundation.random_str(5)].join("-"); e.attr("data-id", n), t.attr("data-id", n) }, refresh_custom_select: function (t, n) { var r = this, i = 0, s = t.next(), o = t.find("option"), u = s.find("li"); if (u.length !== this.cache[s.data("id")] || n) s.find("ul").html(""), o.each(function () { var t = e("
      • " + e(this).html() + "
      • "); s.find("ul").append(t) }), o.each(function (t) { this.selected && (s.find("li").eq(t).addClass("selected"), s.find(".current").html(e(this).html())), e(this).is(":disabled") && s.find("li").eq(t).addClass("disabled") }), s.removeAttr("style").find("ul").removeAttr("style"), s.find("li").each(function () { s.addClass("open"), r.outerWidth(e(this)) > i && (i = r.outerWidth(e(this))), s.removeClass("open") }), u = s.find("li"), this.cache[s.data("id")] = u.length }, toggle_checkbox: function (e) { var t = e.prev(), n = t[0]; !1 === t.is(":disabled") && (n.checked = n.checked ? !1 : !0, e.toggleClass("checked"), t.trigger("change")) }, toggle_radio: function (e) { var t = e.prev(), n = t.closest("form.custom"), r = t[0]; !1 === t.is(":disabled") && (n.find('input[type="radio"][name="' + this.escape(t.attr("name")) + '"]').next().not(e).removeClass("checked"), e.hasClass("checked") || e.toggleClass("checked"), r.checked = e.hasClass("checked"), t.trigger("change")) }, escape: function (e) { return e ? e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&") : "" }, hidden_fix: { tmp: [], hidden: null, adjust: function (t) { var n = this; n.hidden = t.parents(), n.hidden = n.hidden.add(t).filter(":hidden"), n.hidden.each(function () { var t = e(this); n.tmp.push(t.attr("style")), t.css({ visibility: "hidden", display: "block" }) }) }, reset: function () { var t = this; t.hidden.each(function (n) { var i = e(this), s = t.tmp[n]; s === r ? i.removeAttr("style") : i.attr("style", s) }), t.tmp = [], t.hidden = null } }, off: function () { e(this.scope).off(".fndtn.forms") }, reflow: function () { } }; var i = function (t, n) { var t = t.prev(); while (t.length) { if (t.is(n)) return t; t = t.prev() } return e() } }(Foundation.zj, this, this.document), function (e, t, n, r) { "use strict"; Foundation.libs.alerts = { name: "alerts", version: "4.2.2", settings: { speed: 300, callback: function () { } }, init: function (t, n, r) { return this.scope = t || this.scope, typeof n == "object" && e.extend(!0, this.settings, n), typeof n != "string" ? (this.settings.init || this.events(), this.settings.init) : this[n].call(this, r) }, events: function () { var t = this; e(this.scope).on("click.fndtn.alerts", "[data-alert] a.close", function (n) { n.preventDefault(), e(this).closest("[data-alert]").fadeOut(t.speed, function () { e(this).remove(), t.settings.callback() }) }), this.settings.init = !0 }, off: function () { e(this.scope).off(".fndtn.alerts") }, reflow: function () { } } }(Foundation.zj, this, this.document), function (e, t, n, r) { "use strict"; Foundation.libs.magellan = { name: "magellan", version: "4.2.2", settings: { activeClass: "active", threshold: 0 }, init: function (t, n, r) { return this.scope = t || this.scope, Foundation.inherit(this, "data_options"), typeof n == "object" && e.extend(!0, this.settings, n), typeof n != "string" ? (this.settings.init || (this.fixed_magellan = e("[data-magellan-expedition]"), this.set_threshold(), this.last_destination = e("[data-magellan-destination]").last(), this.events()), this.settings.init) : this[n].call(this, r) }, events: function () { var n = this; e(this.scope).on("arrival.fndtn.magellan", "[data-magellan-arrival]", function (t) { var r = e(this), i = r.closest("[data-magellan-expedition]"), s = i.attr("data-magellan-active-class") || n.settings.activeClass; r.closest("[data-magellan-expedition]").find("[data-magellan-arrival]").not(r).removeClass(s), r.addClass(s) }), this.fixed_magellan.on("update-position.fndtn.magellan", function () { var t = e(this) }).trigger("update-position"), e(t).on("resize.fndtn.magellan", function () { this.fixed_magellan.trigger("update-position") }.bind(this)).on("scroll.fndtn.magellan", function () { var r = e(t).scrollTop(); n.fixed_magellan.each(function () { var t = e(this); typeof t.data("magellan-top-offset") == "undefined" && t.data("magellan-top-offset", t.offset().top), typeof t.data("magellan-fixed-position") == "undefined" && t.data("magellan-fixed-position", !1); var i = r + n.settings.threshold > t.data("magellan-top-offset"), s = t.attr("data-magellan-top-offset"); t.data("magellan-fixed-position") != i && (t.data("magellan-fixed-position", i), i ? (t.addClass("fixed"), t.css({ position: "fixed", top: 0 })) : (t.removeClass("fixed"), t.css({ position: "", top: "" })), i && typeof s != "undefined" && s != 0 && t.css({ position: "fixed", top: s + "px" })) }) }), this.last_destination.length > 0 && e(t).on("scroll.fndtn.magellan", function (r) { var i = e(t).scrollTop(), s = i + e(t).height(), o = Math.ceil(n.last_destination.offset().top); e("[data-magellan-destination]").each(function () { var t = e(this), r = t.attr("data-magellan-destination"), u = t.offset().top - i; u <= n.settings.threshold && e("[data-magellan-arrival='" + r + "']").trigger("arrival"), s >= e(n.scope).height() && o > i && o < s && e("[data-magellan-arrival]").last().trigger("arrival") }) }), this.settings.init = !0 }, set_threshold: function () { this.settings.threshold || (this.settings.threshold = this.fixed_magellan.length > 0 ? this.outerHeight(this.fixed_magellan, !0) : 0) }, off: function () { e(this.scope).off(".fndtn.magellan") }, reflow: function () { } } }(Foundation.zj, this, this.document), function (e, t, n, r) { + "use strict"; Foundation.libs.reveal = { + name: "reveal", version: "4.2.2", locked: !1, settings: { animation: "fadeAndPop", animationSpeed: 250, closeOnBackgroundClick: !0, closeOnEsc: !0, dismissModalClass: "close-reveal-modal", bgClass: "reveal-modal-bg", open: function () { }, opened: function () { }, close: function () { }, closed: function () { }, bg: e(".reveal-modal-bg"), css: { open: { opacity: 0, visibility: "visible", display: "block" }, close: { opacity: 1, visibility: "hidden", display: "none" } } }, init: function (t, n, r) { return Foundation.inherit(this, "data_options delay"), typeof n == "object" ? e.extend(!0, this.settings, n) : typeof r != "undefined" && e.extend(!0, this.settings, r), typeof n != "string" ? (this.events(), this.settings.init) : this[n].call(this, r) }, events: function () { var t = this; return e(this.scope).off(".fndtn.reveal").on("click.fndtn.reveal", "[data-reveal-id]", function (n) { n.preventDefault(); if (!t.locked) { var r = e(this), i = r.data("reveal-ajax"); t.locked = !0; if (typeof i == "undefined") t.open.call(t, r); else { var s = i === !0 ? r.attr("href") : i; t.open.call(t, r, { url: s }) } } }).on("click.fndtn.reveal", this.close_targets(), function (n) { n.preventDefault(); if (!t.locked) { var r = e.extend({}, t.settings, t.data_options(e(".reveal-modal.open"))); if (e(n.target)[0] === e("." + r.bgClass)[0] && !r.closeOnBackgroundClick) return; t.locked = !0, t.close.call(t, e(this).closest(".reveal-modal")) } }).on("open.fndtn.reveal", ".reveal-modal", this.settings.open).on("opened.fndtn.reveal", ".reveal-modal", this.settings.opened).on("opened.fndtn.reveal", ".reveal-modal", this.open_video).on("close.fndtn.reveal", ".reveal-modal", this.settings.close).on("closed.fndtn.reveal", ".reveal-modal", this.settings.closed).on("closed.fndtn.reveal", ".reveal-modal", this.close_video), e("body").bind("keyup.reveal", function (n) { var r = e(".reveal-modal.open"), i = e.extend({}, t.settings, t.data_options(r)); n.which === 27 && i.closeOnEsc && r.foundation("reveal", "close") }), !0 }, open: function (t, n) { + if (t) if (typeof t.selector != "undefined") var r = e("#" + t.data("reveal-id")); else { + var r = e(this.scope); n = t + } else var r = e(this.scope); if (!r.hasClass("open")) { var i = e(".reveal-modal.open"); typeof r.data("css-top") == "undefined" && r.data("css-top", parseInt(r.css("top"), 10)).data("offset", this.cache_offset(r)), r.trigger("open"), i.length < 1 && this.toggle_bg(r); if (typeof n == "undefined" || !n.url) this.hide(i, this.settings.css.close), this.show(r, this.settings.css.open); else { var s = this, o = typeof n.success != "undefined" ? n.success : null; e.extend(n, { success: function (t, n, u) { e.isFunction(o) && o(t, n, u), r.html(t), e(r).foundation("section", "reflow"), s.hide(i, s.settings.css.close), s.show(r, s.settings.css.open) } }), e.ajax(n) } } + }, close: function (t) { var t = t && t.length ? t : e(this.scope), n = e(".reveal-modal.open"); n.length > 0 && (this.locked = !0, t.trigger("close"), this.toggle_bg(t), this.hide(n, this.settings.css.close)) }, close_targets: function () { var e = "." + this.settings.dismissModalClass; return this.settings.closeOnBackgroundClick ? e + ", ." + this.settings.bgClass : e }, toggle_bg: function (t) { e(".reveal-modal-bg").length === 0 && (this.settings.bg = e("
        ", { "class": this.settings.bgClass }).appendTo("body")), this.settings.bg.filter(":visible").length > 0 ? this.hide(this.settings.bg) : this.show(this.settings.bg) }, show: function (n, r) { if (r) { if (/pop/i.test(this.settings.animation)) { r.top = e(t).scrollTop() - n.data("offset") + "px"; var i = { top: e(t).scrollTop() + n.data("css-top") + "px", opacity: 1 }; return this.delay(function () { return n.css(r).animate(i, this.settings.animationSpeed, "linear", function () { this.locked = !1, n.trigger("opened") }.bind(this)).addClass("open") }.bind(this), this.settings.animationSpeed / 2) } if (/fade/i.test(this.settings.animation)) { var i = { opacity: 1 }; return this.delay(function () { return n.css(r).animate(i, this.settings.animationSpeed, "linear", function () { this.locked = !1, n.trigger("opened") }.bind(this)).addClass("open") }.bind(this), this.settings.animationSpeed / 2) } return n.css(r).show().css({ opacity: 1 }).addClass("open").trigger("opened") } return /fade/i.test(this.settings.animation) ? n.fadeIn(this.settings.animationSpeed / 2) : n.show() }, hide: function (n, r) { if (r) { if (/pop/i.test(this.settings.animation)) { var i = { top: -e(t).scrollTop() - n.data("offset") + "px", opacity: 0 }; return this.delay(function () { return n.animate(i, this.settings.animationSpeed, "linear", function () { this.locked = !1, n.css(r).trigger("closed") }.bind(this)).removeClass("open") }.bind(this), this.settings.animationSpeed / 2) } if (/fade/i.test(this.settings.animation)) { var i = { opacity: 0 }; return this.delay(function () { return n.animate(i, this.settings.animationSpeed, "linear", function () { this.locked = !1, n.css(r).trigger("closed") }.bind(this)).removeClass("open") }.bind(this), this.settings.animationSpeed / 2) } return n.hide().css(r).removeClass("open").trigger("closed") } return /fade/i.test(this.settings.animation) ? n.fadeOut(this.settings.animationSpeed / 2) : n.hide() }, close_video: function (t) { var n = e(this).find(".flex-video"), r = n.find("iframe"); r.length > 0 && (r.attr("data-src", r[0].src), r.attr("src", "about:blank"), n.hide()) }, open_video: function (t) { var n = e(this).find(".flex-video"), i = n.find("iframe"); if (i.length > 0) { var s = i.attr("data-src"); if (typeof s == "string") i[0].src = i.attr("data-src"); else { var o = i[0].src; i[0].src = r, i[0].src = o } n.show() } }, cache_offset: function (e) { var t = e.show().height() + parseInt(e.css("top"), 10); return e.hide(), t }, off: function () { e(this.scope).off(".fndtn.reveal") }, reflow: function () { } + } +}(Foundation.zj, this, this.document), function (e, t, n, r) { "use strict"; Foundation.libs.tooltips = { name: "tooltips", version: "4.2.2", settings: { selector: ".has-tip", additionalInheritableClasses: [], tooltipClass: ".tooltip", appendTo: "body", "disable-for-touch": !1, tipTemplate: function (e, t) { return '' + t + '' } }, cache: {}, init: function (t, n, r) { Foundation.inherit(this, "data_options"); var i = this; typeof n == "object" ? e.extend(!0, this.settings, n) : typeof r != "undefined" && e.extend(!0, this.settings, r); if (typeof n == "string") return this[n].call(this, r); Modernizr.touch ? e(this.scope).on("click.fndtn.tooltip touchstart.fndtn.tooltip touchend.fndtn.tooltip", "[data-tooltip]", function (t) { var n = e.extend({}, i.settings, i.data_options(e(this))); n["disable-for-touch"] || (t.preventDefault(), e(n.tooltipClass).hide(), i.showOrCreateTip(e(this))) }).on("click.fndtn.tooltip touchstart.fndtn.tooltip touchend.fndtn.tooltip", this.settings.tooltipClass, function (t) { t.preventDefault(), e(this).fadeOut(150) }) : e(this.scope).on("mouseenter.fndtn.tooltip mouseleave.fndtn.tooltip", "[data-tooltip]", function (t) { var n = e(this); /enter|over/i.test(t.type) ? i.showOrCreateTip(n) : (t.type === "mouseout" || t.type === "mouseleave") && i.hide(n) }) }, showOrCreateTip: function (e) { var t = this.getTip(e); return t && t.length > 0 ? this.show(e) : this.create(e) }, getTip: function (t) { var n = this.selector(t), r = null; return n && (r = e('span[data-selector="' + n + '"]' + this.settings.tooltipClass)), typeof r == "object" ? r : !1 }, selector: function (e) { var t = e.attr("id"), n = e.attr("data-tooltip") || e.attr("data-selector"); return (t && t.length < 1 || !t) && typeof n != "string" && (n = "tooltip" + Math.random().toString(36).substring(7), e.attr("data-selector", n)), t && t.length > 0 ? t : n }, create: function (t) { var n = e(this.settings.tipTemplate(this.selector(t), e("
        ").html(t.attr("title")).html())), r = this.inheritable_classes(t); n.addClass(r).appendTo(this.settings.appendTo), Modernizr.touch && n.append('tap to close '), t.removeAttr("title").attr("title", ""), this.show(t) }, reposition: function (n, r, i) { var s, o, u, a, f, l; r.css("visibility", "hidden").show(), s = n.data("width"), o = r.children(".nub"), u = this.outerHeight(o), a = this.outerHeight(o), l = function (e, t, n, r, i, s) { return e.css({ top: t ? t : "auto", bottom: r ? r : "auto", left: i ? i : "auto", right: n ? n : "auto", width: s ? s : "auto" }).end() }, l(r, n.offset().top + this.outerHeight(n) + 10, "auto", "auto", n.offset().left, s); if (e(t).width() < 767) l(r, n.offset().top + this.outerHeight(n) + 10, "auto", "auto", 12.5, e(this.scope).width()), r.addClass("tip-override"), l(o, -u, "auto", "auto", n.offset().left); else { var c = n.offset().left; Foundation.rtl && (c = n.offset().left + n.offset().width - this.outerWidth(r)), l(r, n.offset().top + this.outerHeight(n) + 10, "auto", "auto", c, s), r.removeClass("tip-override"), i && i.indexOf("tip-top") > -1 ? l(r, n.offset().top - this.outerHeight(r), "auto", "auto", c, s).removeClass("tip-override") : i && i.indexOf("tip-left") > -1 ? l(r, n.offset().top + this.outerHeight(n) / 2 - u * 2.5, "auto", "auto", n.offset().left - this.outerWidth(r) - u, s).removeClass("tip-override") : i && i.indexOf("tip-right") > -1 && l(r, n.offset().top + this.outerHeight(n) / 2 - u * 2.5, "auto", "auto", n.offset().left + this.outerWidth(n) + u, s).removeClass("tip-override") } r.css("visibility", "visible").hide() }, inheritable_classes: function (t) { var n = ["tip-top", "tip-left", "tip-bottom", "tip-right", "noradius"].concat(this.settings.additionalInheritableClasses), r = t.attr("class"), i = r ? e.map(r.split(" "), function (t, r) { if (e.inArray(t, n) !== -1) return t }).join(" ") : ""; return e.trim(i) }, show: function (e) { var t = this.getTip(e); this.reposition(e, t, e.attr("class")), t.fadeIn(150) }, hide: function (e) { var t = this.getTip(e); t.fadeOut(150) }, reload: function () { var t = e(this); return t.data("fndtn-tooltips") ? t.foundationTooltips("destroy").foundationTooltips("init") : t.foundationTooltips("init") }, off: function () { e(this.scope).off(".fndtn.tooltip"), e(this.settings.tooltipClass).each(function (t) { e("[data-tooltip]").get(t).attr("title", e(this).text()) }).remove() }, reflow: function () { } } }(Foundation.zj, this, this.document), function (e, t, n, r) { "use strict"; Foundation.libs.clearing = { name: "clearing", version: "4.3.1", settings: { templates: { viewing: '×' }, close_selectors: ".clearing-close", init: !1, locked: !1 }, init: function (t, n, r) { var i = this; return Foundation.inherit(this, "set_data get_data remove_data throttle data_options"), typeof n == "object" && (r = e.extend(!0, this.settings, n)), typeof n != "string" ? (e(this.scope).find("ul[data-clearing]").each(function () { var t = e(this), n = n || {}, r = t.find("li"), s = i.get_data(t); !s && r.length > 0 && (n.$parent = t.parent(), i.set_data(t, e.extend({}, i.settings, n, i.data_options(t))), i.assemble(t.find("li")), i.settings.init || i.events().swipe_events()) }), this.settings.init) : this[n].call(this, r) }, events: function () { var n = this; return e(this.scope).on("click.fndtn.clearing", "ul[data-clearing] li", function (t, r, i) { var r = r || e(this), i = i || r, s = r.next("li"), o = n.get_data(r.parent()), u = e(t.target); t.preventDefault(), o || n.init(), i.hasClass("visible") && r[0] === i[0] && s.length > 0 && n.is_open(r) && (i = s, u = i.find("img")), n.open(u, r, i), n.update_paddles(i) }).on("click.fndtn.clearing", ".clearing-main-next", function (e) { this.nav(e, "next") }.bind(this)).on("click.fndtn.clearing", ".clearing-main-prev", function (e) { this.nav(e, "prev") }.bind(this)).on("click.fndtn.clearing", this.settings.close_selectors, function (e) { Foundation.libs.clearing.close(e, this) }).on("keydown.fndtn.clearing", function (e) { this.keydown(e) }.bind(this)), e(t).on("resize.fndtn.clearing", function () { this.resize() }.bind(this)), this.settings.init = !0, this }, swipe_events: function () { var t = this; e(this.scope).on("touchstart.fndtn.clearing", ".visible-img", function (t) { t.touches || (t = t.originalEvent); var n = { start_page_x: t.touches[0].pageX, start_page_y: t.touches[0].pageY, start_time: (new Date).getTime(), delta_x: 0, is_scrolling: r }; e(this).data("swipe-transition", n), t.stopPropagation() }).on("touchmove.fndtn.clearing", ".visible-img", function (n) { n.touches || (n = n.originalEvent); if (n.touches.length > 1 || n.scale && n.scale !== 1) return; var r = e(this).data("swipe-transition"); typeof r == "undefined" && (r = {}), r.delta_x = n.touches[0].pageX - r.start_page_x, typeof r.is_scrolling == "undefined" && (r.is_scrolling = !!(r.is_scrolling || Math.abs(r.delta_x) < Math.abs(n.touches[0].pageY - r.start_page_y))); if (!r.is_scrolling && !r.active) { n.preventDefault(); var i = r.delta_x < 0 ? "next" : "prev"; r.active = !0, t.nav(n, i) } }).on("touchend.fndtn.clearing", ".visible-img", function (t) { e(this).data("swipe-transition", {}), t.stopPropagation() }) }, assemble: function (t) { var n = t.parent(); n.after('
        '); var r = e("#foundationClearingHolder"), i = this.get_data(n), s = n.detach(), o = { grid: '", viewing: i.templates.viewing }, u = '
        ' + o.viewing + o.grid + "
        "; return r.after(u).remove() }, open: function (e, t, n) { var r = n.closest(".clearing-assembled"), i = r.find("div").first(), s = i.find(".visible-img"), o = s.find("img").not(e); this.locked() || (o.attr("src", this.load(e)).css("visibility", "hidden"), this.loaded(o, function () { o.css("visibility", "visible"), r.addClass("clearing-blackout"), i.addClass("clearing-container"), s.show(), this.fix_height(n).caption(s.find(".clearing-caption"), e).center(o).shift(t, n, function () { n.siblings().removeClass("visible"), n.addClass("visible") }) }.bind(this))) }, close: function (t, n) { t.preventDefault(); var r = function (e) { return /blackout/.test(e.selector) ? e : e.closest(".clearing-blackout") }(e(n)), i, s; return n === t.target && r && (i = r.find("div").first(), s = i.find(".visible-img"), this.settings.prev_index = 0, r.find("ul[data-clearing]").attr("style", "").closest(".clearing-blackout").removeClass("clearing-blackout"), i.removeClass("clearing-container"), s.hide()), !1 }, is_open: function (e) { return e.parent().attr("style").length > 0 }, keydown: function (t) { var n = e(".clearing-blackout").find("ul[data-clearing]"); t.which === 39 && this.go(n, "next"), t.which === 37 && this.go(n, "prev"), t.which === 27 && e("a.clearing-close").trigger("click") }, nav: function (t, n) { var r = e(".clearing-blackout").find("ul[data-clearing]"); t.preventDefault(), this.go(r, n) }, resize: function () { var t = e(".clearing-blackout .visible-img").find("img"); t.length && this.center(t) }, fix_height: function (t) { var n = t.parent().children(), r = this; return n.each(function () { var t = e(this), n = t.find("img"); t.height() > r.outerHeight(n) && t.addClass("fix-height") }).closest("ul").width(n.length * 100 + "%"), this }, update_paddles: function (e) { var t = e.closest(".carousel").siblings(".visible-img"); e.next().length > 0 ? t.find(".clearing-main-next").removeClass("disabled") : t.find(".clearing-main-next").addClass("disabled"), e.prev().length > 0 ? t.find(".clearing-main-prev").removeClass("disabled") : t.find(".clearing-main-prev").addClass("disabled") }, center: function (e) { return this.rtl ? e.css({ marginRight: -(this.outerWidth(e) / 2), marginTop: -(this.outerHeight(e) / 2) }) : e.css({ marginLeft: -(this.outerWidth(e) / 2), marginTop: -(this.outerHeight(e) / 2) }), this }, load: function (e) { if (e[0].nodeName === "A") var t = e.attr("href"); else var t = e.parent().attr("href"); return this.preload(e), t ? t : e.attr("src") }, preload: function (e) { this.img(e.closest("li").next()).img(e.closest("li").prev()) }, loaded: function (e, t) { function n() { t() } function r() { this.one("load", n); if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)) { var e = this.attr("src"), t = e.match(/\?/) ? "&" : "?"; t += "random=" + (new Date).getTime(), this.attr("src", e + t) } } if (!e.attr("src")) { n(); return } e[0].complete || e[0].readyState === 4 ? n() : r.call(e) }, img: function (e) { if (e.length) { var t = new Image, n = e.find("a"); n.length ? t.src = n.attr("href") : t.src = e.find("img").attr("src") } return this }, caption: function (e, t) { var n = t.data("caption"); return n ? e.html(n).show() : e.text("").hide(), this }, go: function (e, t) { var n = e.find(".visible"), r = n[t](); r.length && r.find("img").trigger("click", [n, r]) }, shift: function (e, t, n) { var r = t.parent(), i = this.settings.prev_index || t.index(), s = this.direction(r, e, t), o = parseInt(r.css("left"), 10), u = this.outerWidth(t), a; t.index() !== i && !/skip/.test(s) ? /left/.test(s) ? (this.lock(), r.animate({ left: o + u }, 300, this.unlock())) : /right/.test(s) && (this.lock(), r.animate({ left: o - u }, 300, this.unlock())) : /skip/.test(s) && (a = t.index() - this.settings.up_count, this.lock(), a > 0 ? r.animate({ left: -(a * u) }, 300, this.unlock()) : r.animate({ left: 0 }, 300, this.unlock())), n() }, direction: function (t, n, r) { var i = t.find("li"), s = this.outerWidth(i) + this.outerWidth(i) / 4, o = Math.floor(this.outerWidth(e(".clearing-container")) / s) - 1, u = i.index(r), a; return this.settings.up_count = o, this.adjacent(this.settings.prev_index, u) ? u > o && u > this.settings.prev_index ? a = "right" : u > o - 1 && u <= this.settings.prev_index ? a = "left" : a = !1 : a = "skip", this.settings.prev_index = u, a }, adjacent: function (e, t) { for (var n = t + 1; n >= t - 1; n--)if (n === e) return !0; return !1 }, lock: function () { this.settings.locked = !0 }, unlock: function () { this.settings.locked = !1 }, locked: function () { return this.settings.locked }, outerHTML: function (e) { return e.outerHTML || (new XMLSerializer).serializeToString(e) }, off: function () { e(this.scope).off(".fndtn.clearing"), e(t).off(".fndtn.clearing"), this.remove_data(), this.settings.init = !1 }, reflow: function () { this.init() } } }(Foundation.zj, this, this.document), function (e, t, n) { function i(e) { return e } function s(e) { return decodeURIComponent(e.replace(r, " ")) } var r = /\+/g, o = e.cookie = function (r, u, a) { if (u !== n) { a = e.extend({}, o.defaults, a), u === null && (a.expires = -1); if (typeof a.expires == "number") { var f = a.expires, l = a.expires = new Date; l.setDate(l.getDate() + f) } return u = o.json ? JSON.stringify(u) : String(u), t.cookie = [encodeURIComponent(r), "=", o.raw ? u : encodeURIComponent(u), a.expires ? "; expires=" + a.expires.toUTCString() : "", a.path ? "; path=" + a.path : "", a.domain ? "; domain=" + a.domain : "", a.secure ? "; secure" : ""].join("") } var c = o.raw ? i : s, h = t.cookie.split("; "); for (var p = 0, d = h.length; p < d; p++) { var v = h[p].split("="); if (c(v.shift()) === r) { var m = c(v.join("=")); return o.json ? JSON.parse(m) : m } } return null }; o.defaults = {}, e.removeCookie = function (t, n) { return e.cookie(t) !== null ? (e.cookie(t, null, n), !0) : !1 } }(Foundation.zj, document), function (e, t, n, r) { "use strict"; Foundation.libs.joyride = { name: "joyride", version: "4.2.2", defaults: { expose: !1, modal: !1, tipLocation: "bottom", nubPosition: "auto", scrollSpeed: 300, timer: 0, startTimerOnClick: !0, startOffset: 0, nextButton: !0, tipAnimation: "fade", pauseAfter: [], exposed: [], tipAnimationFadeSpeed: 300, cookieMonster: !1, cookieName: "joyride", cookieDomain: !1, cookieExpires: 365, tipContainer: "body", postRideCallback: function () { }, postStepCallback: function () { }, preStepCallback: function () { }, preRideCallback: function () { }, postExposeCallback: function () { }, template: { link: '×', timer: '
        ', tip: '
        ', wrapper: '
        ', button: '', modal: '
        ', expose: '
        ', exposeCover: '
        ' }, exposeAddClass: "" }, settings: {}, init: function (t, n, r) { return this.scope = t || this.scope, Foundation.inherit(this, "throttle data_options scrollTo scrollLeft delay"), typeof n == "object" ? e.extend(!0, this.settings, this.defaults, n) : e.extend(!0, this.settings, this.defaults, r), typeof n != "string" ? (this.settings.init || this.events(), this.settings.init) : this[n].call(this, r) }, events: function () { var n = this; e(this.scope).on("click.joyride", ".joyride-next-tip, .joyride-modal-bg", function (e) { e.preventDefault(), this.settings.$li.next().length < 1 ? this.end() : this.settings.timer > 0 ? (clearTimeout(this.settings.automate), this.hide(), this.show(), this.startTimer()) : (this.hide(), this.show()) }.bind(this)).on("click.joyride", ".joyride-close-tip", function (e) { e.preventDefault(), this.end() }.bind(this)), e(t).on("resize.fndtn.joyride", n.throttle(function () { if (e("[data-joyride]").length > 0 && n.settings.$next_tip) { if (n.settings.exposed.length > 0) { var t = e(n.settings.exposed); t.each(function () { var t = e(this); n.un_expose(t), n.expose(t) }) } n.is_phone() ? n.pos_phone() : n.pos_default(!1, !0) } }, 100)), this.settings.init = !0 }, start: function () { var t = this, n = e(this.scope).find("[data-joyride]"), r = ["timer", "scrollSpeed", "startOffset", "tipAnimationFadeSpeed", "cookieExpires"], i = r.length; this.settings.init || this.init(), this.settings.$content_el = n, this.settings.$body = e(this.settings.tipContainer), this.settings.body_offset = e(this.settings.tipContainer).position(), this.settings.$tip_content = this.settings.$content_el.find("> li"), this.settings.paused = !1, this.settings.attempts = 0, this.settings.tipLocationPatterns = { top: ["bottom"], bottom: [], left: ["right", "top", "bottom"], right: ["left", "top", "bottom"] }, typeof e.cookie != "function" && (this.settings.cookieMonster = !1); if (!this.settings.cookieMonster || this.settings.cookieMonster && e.cookie(this.settings.cookieName) === null) this.settings.$tip_content.each(function (n) { var s = e(this); e.extend(!0, t.settings, t.data_options(s)); for (var o = i - 1; o >= 0; o--)t.settings[r[o]] = parseInt(t.settings[r[o]], 10); t.create({ $li: s, index: n }) }), !this.settings.startTimerOnClick && this.settings.timer > 0 ? (this.show("init"), this.startTimer()) : this.show("init") }, resume: function () { this.set_li(), this.show() }, tip_template: function (t) { var n, r; return t.tip_class = t.tip_class || "", n = e(this.settings.template.tip).addClass(t.tip_class), r = e.trim(e(t.li).html()) + this.button_text(t.button_text) + this.settings.template.link + this.timer_instance(t.index), n.append(e(this.settings.template.wrapper)), n.first().attr("data-index", t.index), e(".joyride-content-wrapper", n).append(r), n[0] }, timer_instance: function (t) { var n; return t === 0 && this.settings.startTimerOnClick && this.settings.timer > 0 || this.settings.timer === 0 ? n = "" : n = this.outerHTML(e(this.settings.template.timer)[0]), n }, button_text: function (t) { return this.settings.nextButton ? (t = e.trim(t) || "Next", t = this.outerHTML(e(this.settings.template.button).append(t)[0])) : t = "", t }, create: function (t) { var n = t.$li.attr("data-button") || t.$li.attr("data-text"), r = t.$li.attr("class"), i = e(this.tip_template({ tip_class: r, index: t.index, button_text: n, li: t.$li })); e(this.settings.tipContainer).append(i) }, show: function (t) { var n = null; this.settings.$li === r || e.inArray(this.settings.$li.index(), this.settings.pauseAfter) === -1 ? (this.settings.paused ? this.settings.paused = !1 : this.set_li(t), this.settings.attempts = 0, this.settings.$li.length && this.settings.$target.length > 0 ? (t && (this.settings.preRideCallback(this.settings.$li.index(), this.settings.$next_tip), this.settings.modal && this.show_modal()), this.settings.preStepCallback(this.settings.$li.index(), this.settings.$next_tip), this.settings.modal && this.settings.expose && this.expose(), this.settings.tipSettings = e.extend(this.settings, this.data_options(this.settings.$li)), this.settings.timer = parseInt(this.settings.timer, 10), this.settings.tipSettings.tipLocationPattern = this.settings.tipLocationPatterns[this.settings.tipSettings.tipLocation], /body/i.test(this.settings.$target.selector) || this.scroll_to(), this.is_phone() ? this.pos_phone(!0) : this.pos_default(!0), n = this.settings.$next_tip.find(".joyride-timer-indicator"), /pop/i.test(this.settings.tipAnimation) ? (n.width(0), this.settings.timer > 0 ? (this.settings.$next_tip.show(), this.delay(function () { n.animate({ width: n.parent().width() }, this.settings.timer, "linear") }.bind(this), this.settings.tipAnimationFadeSpeed)) : this.settings.$next_tip.show()) : /fade/i.test(this.settings.tipAnimation) && (n.width(0), this.settings.timer > 0 ? (this.settings.$next_tip.fadeIn(this.settings.tipAnimationFadeSpeed).show(), this.delay(function () { n.animate({ width: n.parent().width() }, this.settings.timer, "linear") }.bind(this), this.settings.tipAnimationFadeSpeed)) : this.settings.$next_tip.fadeIn(this.settings.tipAnimationFadeSpeed)), this.settings.$current_tip = this.settings.$next_tip) : this.settings.$li && this.settings.$target.length < 1 ? this.show() : this.end()) : this.settings.paused = !0 }, is_phone: function () { return Modernizr ? Modernizr.mq("only screen and (max-width: 767px)") || e(".lt-ie9").length > 0 : this.settings.$window.width() < 767 }, hide: function () { this.settings.modal && this.settings.expose && this.un_expose(), this.settings.modal || e(".joyride-modal-bg").hide(), this.settings.$current_tip.css("visibility", "hidden"), setTimeout(e.proxy(function () { this.hide(), this.css("visibility", "visible") }, this.settings.$current_tip), 0), this.settings.postStepCallback(this.settings.$li.index(), this.settings.$current_tip) }, set_li: function (e) { e ? (this.settings.$li = this.settings.$tip_content.eq(this.settings.startOffset), this.set_next_tip(), this.settings.$current_tip = this.settings.$next_tip) : (this.settings.$li = this.settings.$li.next(), this.set_next_tip()), this.set_target() }, set_next_tip: function () { this.settings.$next_tip = e(".joyride-tip-guide[data-index='" + this.settings.$li.index() + "']"), this.settings.$next_tip.data("closed", "") }, set_target: function () { var t = this.settings.$li.attr("data-class"), r = this.settings.$li.attr("data-id"), i = function () { return r ? e(n.getElementById(r)) : t ? e("." + t).first() : e("body") }; this.settings.$target = i() }, scroll_to: function () { var n, r; n = e(t).height() / 2, r = Math.ceil(this.settings.$target.offset().top - n + this.outerHeight(this.settings.$next_tip)), r > 0 && this.scrollTo(e("html, body"), r, this.settings.scrollSpeed) }, paused: function () { return e.inArray(this.settings.$li.index() + 1, this.settings.pauseAfter) === -1 }, restart: function () { this.hide(), this.settings.$li = r, this.show("init") }, pos_default: function (n, r) { var i = Math.ceil(e(t).height() / 2), s = this.settings.$next_tip.offset(), o = this.settings.$next_tip.find(".joyride-nub"), u = Math.ceil(this.outerWidth(o) / 2), a = Math.ceil(this.outerHeight(o) / 2), f = n || !1; f && (this.settings.$next_tip.css("visibility", "hidden"), this.settings.$next_tip.show()), typeof r == "undefined" && (r = !1); if (!/body/i.test(this.settings.$target.selector)) { if (this.bottom()) { var l = this.settings.$target.offset().left; Foundation.rtl && (l = this.settings.$target.offset().width - this.settings.$next_tip.width() + l), this.settings.$next_tip.css({ top: this.settings.$target.offset().top + a + this.outerHeight(this.settings.$target), left: l }), this.nub_position(o, this.settings.tipSettings.nubPosition, "top") } else if (this.top()) { var l = this.settings.$target.offset().left; Foundation.rtl && (l = this.settings.$target.offset().width - this.settings.$next_tip.width() + l), this.settings.$next_tip.css({ top: this.settings.$target.offset().top - this.outerHeight(this.settings.$next_tip) - a, left: l }), this.nub_position(o, this.settings.tipSettings.nubPosition, "bottom") } else this.right() ? (this.settings.$next_tip.css({ top: this.settings.$target.offset().top, left: this.outerWidth(this.settings.$target) + this.settings.$target.offset().left + u }), this.nub_position(o, this.settings.tipSettings.nubPosition, "left")) : this.left() && (this.settings.$next_tip.css({ top: this.settings.$target.offset().top, left: this.settings.$target.offset().left - this.outerWidth(this.settings.$next_tip) - u }), this.nub_position(o, this.settings.tipSettings.nubPosition, "right")); !this.visible(this.corners(this.settings.$next_tip)) && this.settings.attempts < this.settings.tipSettings.tipLocationPattern.length && (o.removeClass("bottom").removeClass("top").removeClass("right").removeClass("left"), this.settings.tipSettings.tipLocation = this.settings.tipSettings.tipLocationPattern[this.settings.attempts], this.settings.attempts++, this.pos_default()) } else this.settings.$li.length && this.pos_modal(o); f && (this.settings.$next_tip.hide(), this.settings.$next_tip.css("visibility", "visible")) }, pos_phone: function (t) { var n = this.outerHeight(this.settings.$next_tip), r = this.settings.$next_tip.offset(), i = this.outerHeight(this.settings.$target), s = e(".joyride-nub", this.settings.$next_tip), o = Math.ceil(this.outerHeight(s) / 2), u = t || !1; s.removeClass("bottom").removeClass("top").removeClass("right").removeClass("left"), u && (this.settings.$next_tip.css("visibility", "hidden"), this.settings.$next_tip.show()), /body/i.test(this.settings.$target.selector) ? this.settings.$li.length && this.pos_modal(s) : this.top() ? (this.settings.$next_tip.offset({ top: this.settings.$target.offset().top - n - o }), s.addClass("bottom")) : (this.settings.$next_tip.offset({ top: this.settings.$target.offset().top + i + o }), s.addClass("top")), u && (this.settings.$next_tip.hide(), this.settings.$next_tip.css("visibility", "visible")) }, pos_modal: function (e) { this.center(), e.hide(), this.show_modal() }, show_modal: function () { if (!this.settings.$next_tip.data("closed")) { var t = e(".joyride-modal-bg"); t.length < 1 && e("body").append(this.settings.template.modal).show(), /pop/i.test(this.settings.tipAnimation) ? t.show() : t.fadeIn(this.settings.tipAnimationFadeSpeed) } }, expose: function () { var n, r, i, s, o, u = "expose-" + Math.floor(Math.random() * 1e4); if (arguments.length > 0 && arguments[0] instanceof e) i = arguments[0]; else { if (!this.settings.$target || !!/body/i.test(this.settings.$target.selector)) return !1; i = this.settings.$target } if (i.length < 1) return t.console && console.error("element not valid", i), !1; n = e(this.settings.template.expose), this.settings.$body.append(n), n.css({ top: i.offset().top, left: i.offset().left, width: this.outerWidth(i, !0), height: this.outerHeight(i, !0) }), r = e(this.settings.template.exposeCover), s = { zIndex: i.css("z-index"), position: i.css("position") }, o = i.attr("class") == null ? "" : i.attr("class"), i.css("z-index", parseInt(n.css("z-index")) + 1), s.position == "static" && i.css("position", "relative"), i.data("expose-css", s), i.data("orig-class", o), i.attr("class", o + " " + this.settings.exposeAddClass), r.css({ top: i.offset().top, left: i.offset().left, width: this.outerWidth(i, !0), height: this.outerHeight(i, !0) }), this.settings.$body.append(r), n.addClass(u), r.addClass(u), i.data("expose", u), this.settings.postExposeCallback(this.settings.$li.index(), this.settings.$next_tip, i), this.add_exposed(i) }, un_expose: function () { var n, r, i, s, o, u = !1; if (arguments.length > 0 && arguments[0] instanceof e) r = arguments[0]; else { if (!this.settings.$target || !!/body/i.test(this.settings.$target.selector)) return !1; r = this.settings.$target } if (r.length < 1) return t.console && console.error("element not valid", r), !1; n = r.data("expose"), i = e("." + n), arguments.length > 1 && (u = arguments[1]), u === !0 ? e(".joyride-expose-wrapper,.joyride-expose-cover").remove() : i.remove(), s = r.data("expose-css"), s.zIndex == "auto" ? r.css("z-index", "") : r.css("z-index", s.zIndex), s.position != r.css("position") && (s.position == "static" ? r.css("position", "") : r.css("position", s.position)), o = r.data("orig-class"), r.attr("class", o), r.removeData("orig-classes"), r.removeData("expose"), r.removeData("expose-z-index"), this.remove_exposed(r) }, add_exposed: function (t) { this.settings.exposed = this.settings.exposed || [], t instanceof e || typeof t == "object" ? this.settings.exposed.push(t[0]) : typeof t == "string" && this.settings.exposed.push(t) }, remove_exposed: function (t) { var n, r; t instanceof e ? n = t[0] : typeof t == "string" && (n = t), this.settings.exposed = this.settings.exposed || [], r = this.settings.exposed.length; for (var i = 0; i < r; i++)if (this.settings.exposed[i] == n) { this.settings.exposed.splice(i, 1); return } }, center: function () { var n = e(t); return this.settings.$next_tip.css({ top: (n.height() - this.outerHeight(this.settings.$next_tip)) / 2 + n.scrollTop(), left: (n.width() - this.outerWidth(this.settings.$next_tip)) / 2 + this.scrollLeft(n) }), !0 }, bottom: function () { return /bottom/i.test(this.settings.tipSettings.tipLocation) }, top: function () { return /top/i.test(this.settings.tipSettings.tipLocation) }, right: function () { return /right/i.test(this.settings.tipSettings.tipLocation) }, left: function () { return /left/i.test(this.settings.tipSettings.tipLocation) }, corners: function (n) { var r = e(t), i = r.height() / 2, s = Math.ceil(this.settings.$target.offset().top - i + this.settings.$next_tip.outerHeight()), o = r.width() + this.scrollLeft(r), u = r.height() + s, a = r.height() + r.scrollTop(), f = r.scrollTop(); return s < f && (s < 0 ? f = 0 : f = s), u > a && (a = u), [n.offset().top < f, o < n.offset().left + n.outerWidth(), a < n.offset().top + n.outerHeight(), this.scrollLeft(r) > n.offset().left] }, visible: function (e) { var t = e.length; while (t--) if (e[t]) return !1; return !0 }, nub_position: function (e, t, n) { t === "auto" ? e.addClass(n) : e.addClass(t) }, startTimer: function () { this.settings.$li.length ? this.settings.automate = setTimeout(function () { this.hide(), this.show(), this.startTimer() }.bind(this), this.settings.timer) : clearTimeout(this.settings.automate) }, end: function () { this.settings.cookieMonster && e.cookie(this.settings.cookieName, "ridden", { expires: this.settings.cookieExpires, domain: this.settings.cookieDomain }), this.settings.timer > 0 && clearTimeout(this.settings.automate), this.settings.modal && this.settings.expose && this.un_expose(), this.settings.$next_tip.data("closed", !0), e(".joyride-modal-bg").hide(), this.settings.$current_tip.hide(), this.settings.postStepCallback(this.settings.$li.index(), this.settings.$current_tip), this.settings.postRideCallback(this.settings.$li.index(), this.settings.$current_tip), e(".joyride-tip-guide").remove() }, outerHTML: function (e) { return e.outerHTML || (new XMLSerializer).serializeToString(e) }, off: function () { e(this.scope).off(".joyride"), e(t).off(".joyride"), e(".joyride-close-tip, .joyride-next-tip, .joyride-modal-bg").off(".joyride"), e(".joyride-tip-guide, .joyride-modal-bg").remove(), clearTimeout(this.settings.automate), this.settings = {} }, reflow: function () { } } }(Foundation.zj, this, this.document), function (e, t, n, r) { + "use strict"; var i = function () { }, s = function (i, s) { + if (i.hasClass(s.slides_container_class)) return this; var f = this, l, c = i, h, p, d, v = 0, m, g, y = !1, b = !1; c.children().first().addClass(s.active_slide_class), f.update_slide_number = function (t) { s.slide_number && (h.find("span:first").text(parseInt(t) + 1), h.find("span:last").text(c.children().length)), s.bullets && (p.children().removeClass(s.bullets_active_class), e(p.children().get(t)).addClass(s.bullets_active_class)) }, f.build_markup = function () { c.wrap('
        '), l = c.parent(), c.addClass(s.slides_container_class), s.navigation_arrows && (l.append(e("").addClass(s.prev_class).append("")), l.append(e("").addClass(s.next_class).append(""))), s.timer && (d = e("
        ").addClass(s.timer_container_class), d.append(""), d.append(e("
        ").addClass(s.timer_progress_class)), d.addClass(s.timer_paused_class), l.append(d)), s.slide_number && (h = e("
        ").addClass(s.slide_number_class), h.append(" of "), l.append(h)), s.bullets && (p = e("
          ").addClass(s.bullets_container_class), l.append(p), c.children().each(function (t, n) { var r = e("
        1. ").attr("data-orbit-slide", t); p.append(r) })), s.stack_on_small && l.addClass(s.stack_on_small_class), f.update_slide_number(0) }, f._goto = function (t, n) { if (t === v) return !1; typeof g == "object" && g.restart(); var r = c.children(), i = "next"; y = !0, t < v && (i = "prev"), t >= r.length ? t = 0 : t < 0 && (t = r.length - 1); var o = e(r.get(v)), u = e(r.get(t)); o.css("zIndex", 2), u.css("zIndex", 4).addClass("active"), c.trigger("orbit:before-slide-change"), s.before_slide_change(); var a = function () { var e = function () { v = t, y = !1, n === !0 && (g = f.create_timer(), g.start()), f.update_slide_number(v), c.trigger("orbit:after-slide-change", [{ slide_number: v, total_slides: r.length }]), s.after_slide_change(v, r.length) }; c.height() != u.height() ? c.animate({ height: u.height() }, 250, "linear", e) : e() }; if (r.length === 1) return a(), !1; var l = function () { i === "next" && m.next(o, u, a), i === "prev" && m.prev(o, u, a) }; u.height() > c.height() ? c.animate({ height: u.height() }, 250, "linear", l) : l() }, + f.next = function (e) { e.stopImmediatePropagation(), e.preventDefault(), f._goto(v + 1) }, f.prev = function (e) { e.stopImmediatePropagation(), e.preventDefault(), f._goto(v - 1) }, f.link_custom = function (t) { t.preventDefault(); var n = e(this).attr("data-orbit-link"); if (typeof n == "string" && (n = e.trim(n)) != "") { var r = l.find("[data-orbit-slide=" + n + "]"); r.index() != -1 && f._goto(r.index()) } }, f.link_bullet = function (t) { var n = e(this).attr("data-orbit-slide"); typeof n == "string" && (n = e.trim(n)) != "" && f._goto(n) }, f.timer_callback = function () { f._goto(v + 1, !0) }, f.compute_dimensions = function () { var t = e(c.children().get(v)), n = t.height(); s.variable_height || c.children().each(function () { e(this).height() > n && (n = e(this).height()) }), c.height(n) }, f.create_timer = function () { var e = new o(l.find("." + s.timer_container_class), s, f.timer_callback); return e }, f.stop_timer = function () { typeof g == "object" && g.stop() }, f.toggle_timer = function () { var e = l.find("." + s.timer_container_class); e.hasClass(s.timer_paused_class) ? (typeof g == "undefined" && (g = f.create_timer()), g.start()) : typeof g == "object" && g.stop() }, f.init = function () { f.build_markup(), s.timer && (g = f.create_timer(), g.start()), m = new a(c), s.animation === "slide" && (m = new u(c)), l.on("click", "." + s.next_class, f.next), l.on("click", "." + s.prev_class, f.prev), l.on("click", "[data-orbit-slide]", f.link_bullet), l.on("click", f.toggle_timer), l.on("touchstart.fndtn.orbit", function (e) { e.touches || (e = e.originalEvent); var t = { start_page_x: e.touches[0].pageX, start_page_y: e.touches[0].pageY, start_time: (new Date).getTime(), delta_x: 0, is_scrolling: r }; l.data("swipe-transition", t), e.stopPropagation() }).on("touchmove.fndtn.orbit", function (e) { e.touches || (e = e.originalEvent); if (e.touches.length > 1 || e.scale && e.scale !== 1) return; var t = l.data("swipe-transition"); typeof t == "undefined" && (t = {}), t.delta_x = e.touches[0].pageX - t.start_page_x, typeof t.is_scrolling == "undefined" && (t.is_scrolling = !!(t.is_scrolling || Math.abs(t.delta_x) < Math.abs(e.touches[0].pageY - t.start_page_y))); if (!t.is_scrolling && !t.active) { e.preventDefault(); var n = t.delta_x < 0 ? v + 1 : v - 1; t.active = !0, f._goto(n) } }).on("touchend.fndtn.orbit", function (e) { l.data("swipe-transition", {}), e.stopPropagation() }).on("mouseenter.fndtn.orbit", function (e) { s.timer && s.pause_on_hover && f.stop_timer() }).on("mouseleave.fndtn.orbit", function (e) { s.timer && s.resume_on_mouseout && g.start() }), e(n).on("click", "[data-orbit-link]", f.link_custom), e(t).on("resize", f.compute_dimensions), e(t).on("load", f.compute_dimensions), c.trigger("orbit:ready") }, f.init() + }, o = function (e, t, n) { var r = this, i = t.timer_speed, s = e.find("." + t.timer_progress_class), o, u, a = -1; this.update_progress = function (e) { var t = s.clone(); t.attr("style", ""), t.css("width", e + "%"), s.replaceWith(t), s = t }, this.restart = function () { clearTimeout(u), e.addClass(t.timer_paused_class), a = -1, r.update_progress(0) }, this.start = function () { if (!e.hasClass(t.timer_paused_class)) return !0; a = a === -1 ? i : a, e.removeClass(t.timer_paused_class), o = (new Date).getTime(), s.animate({ width: "100%" }, a, "linear"), u = setTimeout(function () { r.restart(), n() }, a), e.trigger("orbit:timer-started") }, this.stop = function () { if (e.hasClass(t.timer_paused_class)) return !0; clearTimeout(u), e.addClass(t.timer_paused_class); var n = (new Date).getTime(); a -= n - o; var s = 100 - a / i * 100; r.update_progress(s), e.trigger("orbit:timer-stopped") } }, u = function (t) { var n = 400, r = e("html[dir=rtl]").length === 1, i = r ? "marginRight" : "marginLeft"; this.next = function (e, t, r) { t.animate({ margin: "0%" }, n, "linear", function () { e.css(i, "100%"), r() }) }, this.prev = function (e, t, r) { t.css(i, "-100%"), t.animate({ margin: "0%" }, n, "linear", function () { e.css(i, "100%"), r() }) } }, a = function (e) { var t = 250; this.next = function (e, n, r) { n.css({ marginLeft: "0%", opacity: "0.01" }), n.animate({ opacity: "1" }, t, "linear", function () { e.css("marginLeft", "100%"), r() }) }, this.prev = function (e, n, r) { n.css({ marginLeft: "0%", opacity: "0.01" }), n.animate({ opacity: "1" }, t, "linear", function () { e.css("marginLeft", "100%"), r() }) } }; Foundation.libs = Foundation.libs || {}, Foundation.libs.orbit = { name: "orbit", version: "4.3.1", settings: { animation: "slide", timer_speed: 1e4, pause_on_hover: !0, resume_on_mouseout: !1, animation_speed: 500, stack_on_small: !1, navigation_arrows: !0, slide_number: !0, container_class: "orbit-container", stack_on_small_class: "orbit-stack-on-small", next_class: "orbit-next", prev_class: "orbit-prev", timer_container_class: "orbit-timer", timer_paused_class: "paused", timer_progress_class: "orbit-progress", slides_container_class: "orbit-slides-container", bullets_container_class: "orbit-bullets", bullets_active_class: "active", slide_number_class: "orbit-slide-number", caption_class: "orbit-caption", active_slide_class: "active", orbit_transition_class: "orbit-transitioning", bullets: !0, timer: !0, variable_height: !1, before_slide_change: i, after_slide_change: i }, init: function (t, n, r) { var i = this; Foundation.inherit(i, "data_options"), typeof n == "object" && e.extend(!0, i.settings, n); if (e(t).is("[data-orbit]")) { var o = e(t), u = i.data_options(o); new s(o, e.extend({}, i.settings, u)) } e("[data-orbit]", t).each(function (t, n) { var r = e(n), o = i.data_options(r); new s(r, e.extend({}, i.settings, o)) }) } } +}(Foundation.zj, this, this.document), function (e, t, n) { "use strict"; Foundation.libs.section = { name: "section", version: "4.3.1", settings: { deep_linking: !1, small_breakpoint: 768, one_up: !0, section_selector: "[data-section]", region_selector: "section, .section, [data-section-region]", title_selector: ".title, [data-section-title]", resized_data_attr: "data-section-resized", small_style_data_attr: "data-section-small-style", content_selector: ".content, [data-section-content]", nav_selector: '[data-section="vertical-nav"], [data-section="horizontal-nav"]', active_class: "active", callback: function () { } }, init: function (t, n, r) { var i = this; return Foundation.inherit(this, "throttle data_options position_right offset_right"), typeof n == "object" && e.extend(!0, i.settings, n), typeof n != "string" ? (this.events(), !0) : this[n].call(this, r) }, events: function () { var r = this, i = [], s = r.settings.section_selector, o = r.settings.region_selector.split(","), u = r.settings.title_selector.split(","); for (var a = 0, f = o.length; a < f; a++) { var l = o[a]; for (var c = 0, h = u.length; c < h; c++) { var p = s + ">" + l + ">" + u[c]; i.push(p + " a"), i.push(p) } } e(r.scope).on("click.fndtn.section", i.join(","), function (t) { var n = e(this).closest(r.settings.title_selector); r.close_navs(n), n.siblings(r.settings.content_selector).length > 0 && r.toggle_active.call(n[0], t) }), e(t).on("resize.fndtn.section", r.throttle(function () { r.resize() }, 30)).on("hashchange.fndtn.section", r.set_active_from_hash), e(n).on("click.fndtn.section", function (t) { if (t.isPropagationStopped && t.isPropagationStopped()) return; if (t.target === n) return; r.close_navs(e(t.target).closest(r.settings.title_selector)) }), e(t).triggerHandler("resize.fndtn.section"), e(t).triggerHandler("hashchange.fndtn.section") }, close_navs: function (t) { var n = Foundation.libs.section, r = e(n.settings.nav_selector).filter(function () { return !e.extend({}, n.settings, n.data_options(e(this))).one_up }); if (t.length > 0) { var i = t.parent().parent(); if (n.is_horizontal_nav(i) || n.is_vertical_nav(i)) r = r.filter(function () { return this !== i[0] }) } r.children(n.settings.region_selector).removeClass(n.settings.active_class) }, toggle_active: function (t) { var n = e(this), r = Foundation.libs.section, i = n.parent(), s = n.siblings(r.settings.content_selector), o = i.parent(), u = e.extend({}, r.settings, r.data_options(o)), a = o.children(r.settings.region_selector).filter("." + r.settings.active_class); !u.deep_linking && s.length > 0 && t.preventDefault(), t.stopPropagation(), i.hasClass(r.settings.active_class) ? !u.one_up && (r.small(o) || r.is_vertical_nav(o) || r.is_horizontal_nav(o) || r.is_accordion(o)) && i.removeClass(r.settings.active_class) : (a.removeClass(r.settings.active_class), i.addClass(r.settings.active_class), r.resize(i.find(r.settings.section_selector).not("[" + r.settings.resized_data_attr + "]"), !0)), u.callback(o) }, check_resize_timer: null, resize: function (t, r) { var i = Foundation.libs.section, s = i.small(e(n)), o = function (e, t) { return !i.is_accordion(e) && !e.is("[" + i.settings.resized_data_attr + "]") && (!s || i.is_horizontal_tabs(e)) && t === (e.css("display") === "none" || !e.parent().is(":visible")) }; t = t || e(i.settings.section_selector), clearTimeout(i.check_resize_timer), s || t.removeAttr(i.settings.small_style_data_attr), t.filter(function () { return o(e(this), !1) }).each(function () { var t = e(this), n = t.children(i.settings.region_selector), s = n.children(i.settings.title_selector), o = n.children(i.settings.content_selector), u = 0; if (r && t.children(i.settings.region_selector).filter("." + i.settings.active_class).length == 0) { var a = e.extend({}, i.settings, i.data_options(t)); !a.deep_linking && (a.one_up || !i.is_horizontal_nav(t) && !i.is_vertical_nav(t) && !i.is_accordion(t)) && n.filter(":visible").first().addClass(i.settings.active_class) } if (i.is_horizontal_tabs(t) || i.is_auto(t)) { var f = 0; s.each(function () { var t = e(this); if (t.is(":visible")) { t.css(i.rtl ? "right" : "left", f); var n = parseInt(t.css("border-" + (i.rtl ? "left" : "right") + "-width"), 10); n.toString() === "Nan" && (n = 0), f += i.outerWidth(t) - n, u = Math.max(u, i.outerHeight(t)) } }), s.css("height", u), n.each(function () { var t = e(this), n = t.children(i.settings.content_selector), r = parseInt(n.css("border-top-width"), 10); r.toString() === "Nan" && (r = 0), t.css("padding-top", u - r) }), t.css("min-height", u) } else if (i.is_horizontal_nav(t)) { var l = !0; s.each(function () { u = Math.max(u, i.outerHeight(e(this))) }), n.each(function () { var n = e(this); n.css("margin-left", "-" + (l ? t : n.children(i.settings.title_selector)).css("border-left-width")), l = !1 }), n.css("margin-top", "-" + t.css("border-top-width")), s.css("height", u), o.css("top", u), t.css("min-height", u) } else if (i.is_vertical_tabs(t)) { var c = 0; s.each(function () { var t = e(this); if (t.is(":visible")) { t.css("top", c); var n = parseInt(t.css("border-top-width"), 10); n.toString() === "Nan" && (n = 0), c += i.outerHeight(t) - n } }), o.css("min-height", c + 1) } else if (i.is_vertical_nav(t)) { var h = 0, p = !0; s.each(function () { h = Math.max(h, i.outerWidth(e(this))) }), n.each(function () { var n = e(this); n.css("margin-top", "-" + (p ? t : n.children(i.settings.title_selector)).css("border-top-width")), p = !1 }), s.css("width", h), o.css(i.rtl ? "right" : "left", h), t.css("width", h) } t.attr(i.settings.resized_data_attr, !0) }), e(i.settings.section_selector).filter(function () { return o(e(this), !0) }).length > 0 && (i.check_resize_timer = setTimeout(function () { i.resize(t.filter(function () { return o(e(this), !1) }), !0) }, 700)), s && t.attr(i.settings.small_style_data_attr, !0) }, is_vertical_nav: function (e) { return /vertical-nav/i.test(e.data("section")) }, is_horizontal_nav: function (e) { return /horizontal-nav/i.test(e.data("section")) }, is_accordion: function (e) { return /accordion/i.test(e.data("section")) }, is_horizontal_tabs: function (e) { return /^tabs$/i.test(e.data("section")) }, is_vertical_tabs: function (e) { return /vertical-tabs/i.test(e.data("section")) }, is_auto: function (e) { var t = e.data("section"); return t === "" || /auto/i.test(t) }, set_active_from_hash: function () { var n = Foundation.libs.section, r = t.location.hash.substring(1), i = e(n.settings.section_selector); i.each(function () { var t = e(this), i = e.extend({}, n.settings, n.data_options(t)), s = t.children(n.settings.region_selector), o = i.deep_linking && r.length > 0, u = !1; s.each(function () { var t = e(this); if (u) t.removeClass(n.settings.active_class); else if (o) { var i = t.children(n.settings.content_selector).data("slug"); i && (new RegExp(i, "i")).test(r) ? (t.hasClass(n.settings.active_class) || t.addClass(n.settings.active_class), u = !0) : t.removeClass(n.settings.active_class) } else t.hasClass(n.settings.active_class) && (u = !0) }), !u && !i.deep_linking && (i.one_up || !n.is_horizontal_nav(t) && !n.is_vertical_nav(t) && !n.is_accordion(t)) && s.filter(":visible").first().addClass(n.settings.active_class) }) }, reflow: function () { var t = Foundation.libs.section; e(t.settings.section_selector).removeAttr(t.settings.resized_data_attr), t.throttle(function () { t.resize() }, 30)() }, small: function (t) { var n = e.extend({}, this.settings, this.data_options(t)); return this.is_horizontal_tabs(t) ? !1 : t && this.is_accordion(t) ? !0 : e("html").hasClass("lt-ie9") ? !0 : e("html").hasClass("ie8compat") ? !0 : e(this.scope).width() < n.small_breakpoint }, off: function () { e(this.scope).off(".fndtn.section"), e(t).off(".fndtn.section"), e(n).off(".fndtn.section") } }, e.fn.reflow_section = function (e) { var t = this, n = Foundation.libs.section; return t.removeAttr(n.settings.resized_data_attr), n.throttle(function () { n.resize(t, e) }, 30)(), this } }(Foundation.zj, window, document), function (e, t, n, r) { "use strict"; Foundation.libs.topbar = { name: "topbar", version: "4.3.1", settings: { index: 0, stickyClass: "sticky", custom_back_text: !0, back_text: "Back", is_hover: !0, mobile_show_parent_link: !0, scrolltop: !0, init: !1 }, init: function (n, r, i) { Foundation.inherit(this, "data_options"); var s = this; return typeof r == "object" ? e.extend(!0, this.settings, r) : typeof i != "undefined" && e.extend(!0, this.settings, i), typeof r != "string" ? (e(".top-bar, [data-topbar]").each(function () { e.extend(!0, s.settings, s.data_options(e(this))), s.settings.$w = e(t), s.settings.$topbar = e(this), s.settings.$section = s.settings.$topbar.find("section"), s.settings.$titlebar = s.settings.$topbar.children("ul").first(), s.settings.$topbar.data("index", 0); var n = e("
          ").insertAfter(s.settings.$topbar); s.settings.breakPoint = n.width(), n.remove(), s.assemble(), s.settings.is_hover && s.settings.$topbar.find(".has-dropdown").addClass("not-click"), s.settings.$topbar.parent().hasClass("fixed") && e("body").css("padding-top", s.outerHeight(s.settings.$topbar)) }), s.settings.init || this.events(), this.settings.init) : this[r].call(this, i) }, timer: null, events: function () { var n = this, r = this.outerHeight(e(".top-bar, [data-topbar]")); e(this.scope).off(".fndtn.topbar").on("click.fndtn.topbar", ".top-bar .toggle-topbar, [data-topbar] .toggle-topbar", function (i) { var s = e(this).closest(".top-bar, [data-topbar]"), o = s.find("section, .section"), u = s.children("ul").first(); i.preventDefault(), n.breakpoint() && (n.rtl ? (o.css({ right: "0%" }), o.find(">.name").css({ right: "100%" })) : (o.css({ left: "0%" }), o.find(">.name").css({ left: "100%" })), o.find("li.moved").removeClass("moved"), s.data("index", 0), s.toggleClass("expanded").css("height", "")), s.hasClass("expanded") ? s.parent().hasClass("fixed") && (s.parent().removeClass("fixed"), s.addClass("fixed"), e("body").css("padding-top", "0"), n.settings.scrolltop && t.scrollTo(0, 0)) : s.hasClass("fixed") && (s.parent().addClass("fixed"), s.removeClass("fixed"), e("body").css("padding-top", r)) }).on("click.fndtn.topbar", ".top-bar li.has-dropdown", function (t) { if (n.breakpoint()) return; var r = e(this), i = e(t.target), s = r.closest("[data-topbar], .top-bar"), o = s.data("topbar"); if (n.settings.is_hover && !Modernizr.touch) return; t.stopImmediatePropagation(), i[0].nodeName === "A" && i.parent().hasClass("has-dropdown") && t.preventDefault(), r.hasClass("hover") ? r.removeClass("hover").find("li").removeClass("hover") : r.addClass("hover") }).on("click.fndtn.topbar", ".top-bar .has-dropdown>a, [data-topbar] .has-dropdown>a", function (t) { if (n.breakpoint()) { t.preventDefault(); var r = e(this), i = r.closest(".top-bar, [data-topbar]"), s = i.find("section, .section"), o = i.children("ul").first(), u = r.next(".dropdown").outerHeight(), a = r.closest("li"); i.data("index", i.data("index") + 1), a.addClass("moved"), n.rtl ? (s.css({ right: -(100 * i.data("index")) + "%" }), s.find(">.name").css({ right: 100 * i.data("index") + "%" })) : (s.css({ left: -(100 * i.data("index")) + "%" }), s.find(">.name").css({ left: 100 * i.data("index") + "%" })), i.css("height", n.outerHeight(r.siblings("ul"), !0) + n.height(o)) } }), e(t).on("resize.fndtn.topbar", function () { n.breakpoint() || e(".top-bar, [data-topbar]").css("height", "").removeClass("expanded").find("li").removeClass("hover") }.bind(this)), e("body").on("click.fndtn.topbar", function (t) { var n = e(t.target).closest("[data-topbar], .top-bar"); if (n.length > 0) return; e(".top-bar li, [data-topbar] li").removeClass("hover") }), e(this.scope).on("click.fndtn", ".top-bar .has-dropdown .back, [data-topbar] .has-dropdown .back", function (t) { t.preventDefault(); var r = e(this), i = r.closest(".top-bar, [data-topbar]"), s = i.children("ul").first(), o = i.find("section, .section"), u = r.closest("li.moved"), a = u.parent(); i.data("index", i.data("index") - 1), n.rtl ? (o.css({ right: -(100 * i.data("index")) + "%" }), o.find(">.name").css({ right: 100 * i.data("index") + "%" })) : (o.css({ left: -(100 * i.data("index")) + "%" }), o.find(">.name").css({ left: 100 * i.data("index") + "%" })), i.data("index") === 0 ? i.css("height", "") : i.css("height", n.outerHeight(a, !0) + n.height(s)), setTimeout(function () { u.removeClass("moved") }, 300) }) }, breakpoint: function () { return e(n).width() <= this.settings.breakPoint || e("html").hasClass("lt-ie9") }, assemble: function () { var t = this; this.settings.$section.detach(), this.settings.$section.find(".has-dropdown>a").each(function () { var n = e(this), r = n.siblings(".dropdown"), i = n.attr("href"); if (t.settings.mobile_show_parent_link && i && i.length > 1) var s = e('
        2. ' + n.text() + "
        3. "); else var s = e('
        4. '); t.settings.custom_back_text == 1 ? s.find("h5>a").html("« " + t.settings.back_text) : s.find("h5>a").html("« " + n.html()), r.prepend(s) }), this.settings.$section.appendTo(this.settings.$topbar), this.sticky() }, height: function (t) { var n = 0, r = this; return t.find("> li").each(function () { n += r.outerHeight(e(this), !0) }), n }, sticky: function () { var n = "." + this.settings.stickyClass; if (e(n).length > 0) { var r = e(n).length ? e(n).offset().top : 0, i = e(t), s = this.outerHeight(e(".top-bar")), o; e(t).resize(function () { clearTimeout(o), o = setTimeout(function () { r = e(n).offset().top }, 105) }), i.scroll(function () { i.scrollTop() > r ? (e(n).addClass("fixed"), e("body").css("padding-top", s)) : i.scrollTop() <= r && (e(n).removeClass("fixed"), e("body").css("padding-top", "0")) }) } }, off: function () { e(this.scope).off(".fndtn.topbar"), e(t).off(".fndtn.topbar") }, reflow: function () { } } }(Foundation.zj, this, this.document); diff --git a/offline.html b/offline.html index 1b11069..9bb08f5 100644 --- a/offline.html +++ b/offline.html @@ -1,41 +1,43 @@ - - - - - - - Adobe Open Source - Offline pull + + + - - - + + + + Adobe Open Source - Offline pull + + + + + +
          Loading...
          - - - -
          - Loading... -
          - - - - + + - + + - + - + - +