text: !function(t,a,e){"use strict";Foundation.libs.abide={name:"abide",version:"5.2.2",settings:{live_validate:!0,focus_on_invalid:!0,error_labels:!0,timeout:1e3,patterns:{alpha:/^[a-zA-Z]+$/,alpha_numeric:/^[a-zA-Z0-9]+$/,integer:/^[-+]?\d+$/,number:/^[-+]?\d*(?:\.\d+)?$/,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})$/},validators:{equalTo:function(t){var a=e.getElementById(t.getAttribute(this.add_namespace("data-equalto"))).value,i=t.value,r=a===i;return r}}},timer:null,init:function(t,a,e){this.bindings(a,e)},events:function(a){var e=this,i=e.S(a).attr("novalidate","novalidate"),r=i.data(this.attr_name(!0)+"-init")||{};this.invalid_attr=this.add_namespace("data-invalid"),i.off(".abide").on("submit.fndtn.abide validate.fndtn.abide",function(t){var a=/ajax/i.test(e.S(this).attr(e.attr_name()));return e.validate(e.S(this).find("input, textarea, select").get(),t,a)}).on("reset",function(){return e.reset(t(this))}).find("input, textarea, select").off(".abide").on("blur.fndtn.abide change.fndtn.abide",function(t){e.validate([this],t)}).on("keydown.fndtn.abide",function(t){r.live_validate===!0&&(clearTimeout(e.timer),e.timer=setTimeout(function(){e.validate([this],t)}.bind(this),r.timeout))})},reset:function(a){a.removeAttr(this.invalid_attr),t(this.invalid_attr,a).removeAttr(this.invalid_attr),t(".error",a).not("small").removeClass("error")},validate:function(t,a,e){var i=this.parse_patterns(t),r=i.length,n=this.S(t[0]).closest("[data-"+this.attr_name(!0)+"]"),s=n.data(this.attr_name(!0)+"-init")||{},d=/submit/.test(a.type);n.trigger("validated");for(var u=0;r>u;u++)if(!i[u]&&(d||e))return s.focus_on_invalid&&t[u].focus(),n.trigger("invalid"),this.S(t[u]).closest("[data-"+this.attr_name(!0)+"]").attr(this.invalid_attr,""),!1;return(d||e)&&n.trigger("valid"),n.removeAttr(this.invalid_attr),e?!1:!0},parse_patterns:function(t){for(var a=t.length,e=[];a--;)e.push(this.pattern(t[a]));return this.check_validation_and_apply_styles(e)},pattern:function(t){var a=t.getAttribute("type"),e="string"==typeof t.getAttribute("required"),i=t.getAttribute("pattern")||"";return this.settings.patterns.hasOwnProperty(i)&&i.length>0?[t,this.settings.patterns[i],e]:i.length>0?[t,new RegExp("^"+i+"$"),e]:this.settings.patterns.hasOwnProperty(a)?[t,this.settings.patterns[a],e]:(i=/.*/,[t,i,e])},check_validation_and_apply_styles:function(a){for(var e=a.length,i=[],r=this.S(a[0][0]).closest("[data-"+this.attr_name(!0)+"]"),n=r.data(this.attr_name(!0)+"-init")||{};e--;){var s,d,u=a[e][0],F=a[e][2],l=u.value,o=this.S(u).parent(),h=u.getAttribute(this.add_namespace("data-abide-validator")),v="radio"===u.type,_="checkbox"===u.type,c=this.S('label[for="'+u.getAttribute("id")+'"]'),A=F?u.value.length>0:!0;u.getAttribute(this.add_namespace("data-equalto"))&&(h="equalTo"),s=o.is("label")?o.parent():o,v&&F?i.push(this.valid_radio(u,F)):_&&F?i.push(this.valid_checkbox(u,F)):h?(d=this.settings.validators[h].apply(this,[u,F,s]),i.push(d),d?(this.S(u).removeAttr(this.invalid_attr),s.removeClass("error")):(this.S(u).attr(this.invalid_attr,""),s.addClass("error"))):a[e][1].test(l)&&A||!F&&u.value.length<1||t(u).attr("disabled")?(this.S(u).removeAttr(this.invalid_attr),s.removeClass("error"),c.length>0&&n.error_labels&&c.removeClass("error"),i.push(!0),t(u).triggerHandler("valid")):(this.S(u).attr(this.invalid_attr,""),s.addClass("error"),c.length>0&&n.error_labels&&c.addClass("error"),i.push(!1),t(u).triggerHandler("invalid"))}return i},valid_checkbox:function(t,a){var t=this.S(t),e=t.is(":checked")||!a;return e?t.removeAttr(this.invalid_attr).parent().removeClass("error"):t.attr(this.invalid_attr,"").parent().addClass("error"),e},valid_radio:function(t){for(var a=t.getAttribute("name"),e=this.S(t).closest("[data-"+this.attr_name(!0)+"]").find("[name="+a+"]"),i=e.length,r=!1,n=0;i>n;n++)e[n].checked&&(r=!0);for(var n=0;i>n;n++)r?this.S(e[n]).removeAttr(this.invalid_attr).parent().removeClass("error"):this.S(e[n]).attr(this.invalid_attr,"").parent().addClass("error");return r},valid_equal:function(t,a,i){var r=e.getElementById(t.getAttribute(this.add_namespace("data-equalto"))).value,n=t.value,s=r===n;return s?(this.S(t).removeAttr(this.invalid_attr),i.removeClass("error")):(this.S(t).attr(this.invalid_attr,""),i.addClass("error")),s},valid_oneof:function(t,a,e,i){var t=this.S(t),r=this.S("["+this.add_namespace("data-oneof")+"]"),n=r.filter(":checked").length>0;if(n?t.removeAttr(this.invalid_attr).parent().removeClass("error"):t.attr(this.invalid_attr,"").parent().addClass("error"),!i){var s=this;r.each(function(){s.valid_oneof.call(s,this,null,null,!0)})}return n}}}(jQuery,this,this.document);