var hyperform=function(){"use strict";function di(n,t){var i=1<arguments.length&&void 0!==t?t:{},r=i.bubbles,e=void 0===r||r,u=i.cancelable,o=void 0!==u&&u,f=document.createEvent("Event");return f.initEvent(n,e,o),f}function p(n,t,i,r){var e=2<arguments.length&&void 0!==i?i:{},o=e.bubbles,h=void 0===o||o,s=e.cancelable,c=void 0!==s&&s,u=3<arguments.length&&void 0!==r?r:{};for(var f in t instanceof window.Event||(t=di(t,{bubbles:h,cancelable:c})),u)u.hasOwnProperty(f)&&(t[f]=u[f]);return n.dispatchEvent(t),t}function nr(n){return(nr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}function u(n){return-1<["object","function"].indexOf(nr(n))&&(delete n.__hyperform,Object.defineProperty(n,"__hyperform",{configurable:!0,enumerable:!1,value:!0})),n}function tr(n){return n.form?Array.prototype.filter.call(n.form.elements,function(t){return"radio"===t.type&&t.name===n.name}):[n]}function d(n,t){var i=t,r=Array.prototype.slice.call(arguments,1);return n in s&&(i=s[n].reduce(function(t,i){r[0]=t;var u=i.apply({state:t,hook:n},r);return void 0!==u?u:t},i)),i}function i(n){if(n instanceof window.HTMLTextAreaElement)return"textarea";if(n instanceof window.HTMLSelectElement)return n.hasAttribute("multiple")?"select-multiple":"select-one";if(n instanceof window.HTMLButtonElement)return(n.getAttribute("type")||"submit").toLowerCase();if(n instanceof window.HTMLInputElement){var t=(n.getAttribute("type")||"").toLowerCase();return t&&-1<au.indexOf(t)?t:n.type||"text"}return""}function ur(n){var u=d("is_validation_candidate",null,n),t,r;return null!==u?!!u:(n instanceof window.HTMLSelectElement||n instanceof window.HTMLTextAreaElement||n instanceof window.HTMLButtonElement||n instanceof window.HTMLInputElement)&&(t=i(n),(-1<vu.indexOf(t)||-1<rr.indexOf(t))&&!n.hasAttribute("disabled")&&!n.hasAttribute("readonly")&&(r=e(n),(r&&!r.settings.novalidateOnElements||!n.hasAttribute("novalidate")&&!n.noValidate)&&!function(n){for(var t=n.parentNode;t&&1===t.nodeType;){if(t instanceof window.HTMLFieldSetElement&&t.hasAttribute("disabled")||"DATALIST"===t.nodeName.toUpperCase())return!0;if(t===n.form)break;t=t.parentNode}return!1}(n)))?!0:!1}function at(n,t){switch(1<arguments.length&&void 0!==t?t:void 0){case"date":return(n.toLocaleDateString||n.toDateString).call(n);case"time":return(n.toLocaleTimeString||n.toTimeString).call(n);case"month":return"toLocaleDateString"in n?n.toLocaleDateString(void 0,{year:"numeric",month:"2-digit"}):n.toDateString();default:return(n.toLocaleString||n.toString).call(n)}}function r(n){for(var f,u,i=arguments.length,r=new Array(1<i?i-1:0),t=1;t<i;t++)r[t-1]=arguments[t];return f=r.length,u=0,n.replace(/%([0-9]+\$)?([sl])/g,function(n,t,i){var o=u,e;return t&&(o=Number(t.replace(/\$$/,""))-1),u+=1,e="",o<f&&(e=r[o]),(e instanceof Date||"number"==typeof e||e instanceof Number)&&(e="l"===i?(e.toLocaleString||e.toString).call(e):e.toString()),e})}function f(n,t){for(var r=1<arguments.length&&void 0!==t?t:2,i=n+"";i.length<r;)i="0"+i;return i}function ot(n,t){if(!(n instanceof Date))return null;switch(t){case"datetime":return ot(n,"date")+"T"+ot(n,"time");case"datetime-local":return r("%s-%s-%sT%s:%s:%s.%s",n.getFullYear(),f(n.getMonth()+1),f(n.getDate()),f(n.getHours()),f(n.getMinutes()),f(n.getSeconds()),f(n.getMilliseconds(),3)).replace(/(:00)?\.000$/,"");case"date":return r("%s-%s-%s",n.getUTCFullYear(),f(n.getUTCMonth()+1),f(n.getUTCDate()));case"month":return r("%s-%s",n.getUTCFullYear(),f(n.getUTCMonth()+1));case"week":var i=function(n){(n=new Date(+n)).setUTCHours(0,0,0);n.setUTCDate(n.getUTCDate()+4-(n.getUTCDay()||7));var t=new Date(n.getUTCFullYear(),0,1),i=Math.ceil(((n-t)/864e5+1)/7);return[n.getUTCFullYear(),i]}(n);return r.call(null,"%s-W%s",i[0],f(i[1]));case"time":return r("%s:%s:%s.%s",f(n.getUTCHours()),f(n.getUTCMinutes()),f(n.getUTCSeconds()),f(n.getUTCMilliseconds(),3)).replace(/(:00)?\.000$/,"")}return null}function h(n,t){var i;switch(t){case"datetime":return/^([0-9]{4})-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):([0-5][0-9])(?::([0-5][0-9])(?:\.([0-9]{1,3}))?)?$/.test(n)?(i=new Date(n+"z"),isNaN(i.valueOf())?null:i):null;case"date":return/^([0-9]{4})-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])$/.test(n)?(i=new Date(n),isNaN(i.valueOf())?null:i):null;case"month":return/^([0-9]{4})-(0[1-9]|1[012])$/.test(n)?(i=new Date(n),isNaN(i.valueOf())?null:i):null;case"week":return/^([0-9]{4})-W(0[1-9]|[1234][0-9]|5[0-3])$/.test(n)?function(n,t){var i=new Date(Date.UTC(t,0,1+7*(n-1)));return i.getUTCDay()<=4?i.setUTCDate(i.getUTCDate()-i.getUTCDay()+1):i.setUTCDate(i.getUTCDate()+8-i.getUTCDay()),i}(Number(RegExp.$2),Number(RegExp.$1)):null;case"time":return/^([01][0-9]|2[0-3]):([0-5][0-9])(?::([0-5][0-9])(?:\.([0-9]{1,3}))?)?$/.test(n)?i=new Date("1970-01-01T"+n+"z"):null}return null}function c(n,t){var i=h(n,t);return null!==i?+i:Number(n)}function n(n){return vt in l&&n in l[vt]?l[vt][n]:yt in l&&n in l[yt]?l[yt][n]:n in l.en?l.en[n]:n}function ni(t,r){var g=1<arguments.length&&void 0!==r?r:1,u=i(t),nt=t.getAttribute("min"),o=yu[u]||NaN,p,w,h,b,l,s,k,d,a;if(nt&&(p=c(nt,u),isNaN(p)||(o=p)),w=t.getAttribute("max"),h=pu[u]||NaN,w&&(b=c(w,u),isNaN(b)||(h=b)),l=t.getAttribute("step"),s=fr[u]||1,l&&"any"===l.toLowerCase())return[n("any value"),n("any value")];if(l&&(k=c(l,u),isNaN(k)||(s=k)),d=c(t.getAttribute("value"),u),a=c(t.value||t.getAttribute("value"),u),isNaN(a))return[n("any valid value"),n("any valid value")];var v=isNaN(o)?isNaN(d)?or[u]||0:d:o,y=er[u]||1,f=v+Math.floor((a-v)/(s*y))*s*y*g,e=v+(Math.floor((a-v)/(s*y))+1)*s*y*g;return f<o?f=null:h<f&&(f=h),h<e?e=null:e<o&&(e=o),-1<ft.indexOf(u)&&(f=ot(new Date(f),u),e=ot(new Date(e),u)),[f,e]}function pt(n){return n.match(/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/g).length}function ri(n){return n.replace(wu,"")}function sr(n){return n.split(",").map(function(n){return ri(n)}).filter(function(n){return n})}function v(n,t){return function(i){var r=!n(i);return r&&t(i),r}}function y(n,t,i){a.set(n,ti.get(n,t,i))}function hr(n){var r,i,u,f;if(n.__hf_custom_validation_running)return r=a.get(n),r&&r.is_custom;var e=ii.get(n),o=e.length,t=!0;if(o){for(n.__hf_custom_validation_running=!0,i=0;i<o;i++)if(u=e[i](n),void 0!==u&&!u){t=!1;break}delete n.__hf_custom_validation_running}return t&&(f=a.get(n),t=!(f.toString()&&"is_custom"in f)),!t}function bu(n){return function(){return!ur(this.element)||n(this.element)}}function g(n){var u,t,i,r;return n instanceof window.HTMLFormElement?(n.__hf_form_validation=!0,u=bi(n).map(g).every(function(n){return n}),delete n.__hf_form_validation,u):(i=b(n).valid,i?(r=e(n),r&&r.settings.validEvent&&(t=p(n,"valid",{cancelable:!0}))):t=p(n,"invalid",{cancelable:!0}),t&&t.defaultPrevented||w.showWarning(n,n.form&&n.form.__hf_form_validation),i)}function hi(n){var i,t=di("submit",{cancelable:!0});t.preventDefault();Object.defineProperty(t,"defaultPrevented",{value:!1,writable:!0});Object.defineProperty(t,"preventDefault",{value:function(){return t.defaultPrevented=i=!0},writable:!0});p(n.form,t,{},{submittedVia:n});i||(function(n){if(-1<["image","submit"].indexOf(n.type)&&n.name){var i=e(n.form)||{},t=i.submit_helper;t?t.parentNode&&t.parentNode.removeChild(t):((t=document.createElement("input")).type="hidden",i.submit_helper=t);t.name=n.name;t.value=n.value;n.form.appendChild(t)}}(n),window.HTMLFormElement.prototype.submit.call(n.form),window.setTimeout(function(){return function(n){if(-1<["image","submit"].indexOf(n.type)&&n.name){var t=(e(n.form)||{}).submit_helper;t&&t.parentNode&&t.parentNode.removeChild(t)}}(n)}))}function kr(n){if(!p(n.form,"validate",{cancelable:!0}).defaultPrevented){var t,i=!0;n.form.__hf_form_validation=!0;bi(n.form).map(function(n){g(n)||(i=!1,!t&&"focus"in n&&(t=n))});delete n.form.__hf_form_validation;i?hi(n):t&&(t.focus(),p(n.form,"forminvalid"))}}function ci(n){return!("INPUT"!==n.nodeName&&"BUTTON"!==n.nodeName||"image"!==n.type&&"submit"!==n.type)}function dr(n){return ci(n)?n:function(n,t){return gi.call(n,t)}(n,'button:not([type]) *, button[type="submit"] *')?dr(n.parentNode):null}function gr(n){var t=0<arguments.length&&void 0!==n&&n;return function(n){var i=dr(n.target);i&&function(n,t){return!n.defaultPrevented&&(!("button"in n)||n.button<2)&&ci(t)&&t.form&&!t.form.hasAttribute("novalidate")}(n,i)&&(n.preventDefault(),t||i.hasAttribute("formnovalidate")?hi(i):kr(i))}}function nu(n){return function(t){if(function(n){return!n.defaultPrevented&&(13===n.keyCode&&"INPUT"===n.target.nodeName&&-1<lt.indexOf(n.target.type)||(13===n.keyCode||32===n.keyCode)&&ci(n.target))&&n.target.form&&!n.target.form.hasAttribute("novalidate")}(t)){if(t.preventDefault(),(e(t.target.form)||{settings:{}}).settings.preventImplicitSubmit)return;for(var i,u=t.target.form.elements.length,r=0;r<u;r++)if(-1<["image","submit"].indexOf(t.target.form.elements[r].type)){i=t.target.form.elements[r];break}if(p(t.target.form,"implicit_submit",{cancelable:!0},{trigger:t.target,submittedVia:i||t.target}).defaultPrevented)return;i?i.click():n?hi(t.target):kr(t.target)}}}function o(n,t){var i,r;try{delete n[t]}catch(r){return i=e(n),i&&i.settings.debug&&console.log("[hyperform] cannot uninstall custom property "+t),!1}r=Object.getOwnPropertyDescriptor(n,"_original_"+t);r&&Object.defineProperty(n,t,r)}function it(n,t,i){var r,u;if(i.configurable=!0,i.enumerable=!0,"value"in i&&(i.writable=!0),r=Object.getOwnPropertyDescriptor(n,t),void 0===r&&(r=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(n),t)),r){if(!1===r.configurable)return u=e(n),u&&u.settings.debug&&console.log("[hyperform] cannot install custom property "+t),!1;if(r.get&&r.get.__hyperform||r.value&&r.value.__hyperform)return;Object.defineProperty(n,"_original_"+t,r)}return delete n[t],Object.defineProperty(n,t,i),!0}function tu(n){return n instanceof window.HTMLButtonElement||n instanceof window.HTMLInputElement||n instanceof window.HTMLSelectElement||n instanceof window.HTMLTextAreaElement||n instanceof window.HTMLFieldSetElement||n===window.HTMLButtonElement.prototype||n===window.HTMLInputElement.prototype||n===window.HTMLSelectElement.prototype||n===window.HTMLTextAreaElement.prototype||n===window.HTMLFieldSetElement.prototype}function iu(n,t){t?a.set(n,t,!0):a.delete(n,!0);var i=w.getWarning(n);i&&w.setMessage(i,t,n);ei.valid(n)}function bt(n){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:void 0,r=i(n),u;if(-1<ft.indexOf(r)){if(void 0!==t){if(null===t)n.value="";else{if(!(t instanceof Date))throw new window.DOMException("valueAsDate setter encountered invalid value","TypeError");n.value=isNaN(t.getTime())?"":ot(t,r)}return}return u=h(n.value,r),u instanceof Date?u:null}if(void 0!==t)throw new window.DOMException("valueAsDate setter cannot set date on this element","InvalidStateError");return null}function ht(n){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:void 0,r=i(n);if(!(-1<et.indexOf(r))){if(void 0!==t)throw new window.DOMException("valueAsNumber setter cannot set number on this element","InvalidStateError");return NaN}if("range"===r&&n.hasAttribute("multiple"))return NaN;if(void 0===t)return c(n.value,r);if(isNaN(t))n.value="";else{if("number"!=typeof t||!window.isFinite(t))throw new window.DOMException("valueAsNumber setter encountered invalid value","TypeError");try{bt(n,new Date(t))}catch(r){if(!(r instanceof window.DOMException))throw r;n.value=t.toString()}}}function ru(n){var r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:1,t;if(-1===et.indexOf(i(n)))throw new window.DOMException("stepDown encountered invalid type","InvalidStateError");if("any"===(n.getAttribute("step")||"").toLowerCase())throw new window.DOMException('stepDown encountered step "any"',"InvalidStateError");t=ni(n,r)[0];null!==t&&ht(n,t)}function uu(n){var r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:1,t;if(-1===et.indexOf(i(n)))throw new window.DOMException("stepUp encountered invalid type","InvalidStateError");if("any"===(n.getAttribute("step")||"").toLowerCase())throw new window.DOMException('stepUp encountered step "any"',"InvalidStateError");t=ni(n,r)[1];null!==t&&ht(n,t)}function fu(n){var t=a.get(n);return t?t.toString():""}function eu(n){return ur(n)}function pi(n){if(tu(n)){for(var t in kt)it(n,t,kt[t]);!function(n){for(var i,r,s,u,f,h,e,t=0,o=["accept","max","min","pattern","placeholder","step"];t<o.length;t++)i=o[t],it(n,i,{get:ku(i),set:du(i)});for(r=0,s=["multiple","required","readOnly"];r<s.length;r++)u=s[r],it(n,u,{get:gu(u.toLowerCase()),set:nf(u.toLowerCase())});for(f=0,h=["minLength","maxLength"];f<h.length;f++)e=h[f],it(n,e,{get:tf(e.toLowerCase()),set:rf(e.toLowerCase())})}(n)}else(n instanceof window.HTMLFormElement||n===window.HTMLFormElement.prototype)&&(it(n,"checkValidity",kt.checkValidity),it(n,"reportValidity",kt.reportValidity))}function wi(n){tu(n)?(o(n,"checkValidity"),o(n,"reportValidity"),o(n,"setCustomValidity"),o(n,"stepDown"),o(n,"stepUp"),o(n,"validationMessage"),o(n,"validity"),o(n,"valueAsDate"),o(n,"valueAsNumber"),o(n,"willValidate"),function(n){for(var t=0,i=["accept","max","min","pattern","placeholder","step","multiple","required","readOnly","minLength","maxLength"];t<i.length;t++)o(n,i[t])}(n)):n instanceof window.HTMLFormElement&&(o(n,"checkValidity"),o(n,"reportValidity"))}function ou(n,t){var i=nt.get(n);if(i)return i.settings=t,i;this.form=n;this.settings=t;this.revalidator=this.revalidate.bind(this);nt.set(n,this),function(n,t){1<arguments.length&&void 0!==t&&t?(n.addEventListener("click",ai),n.addEventListener("keypress",yi)):(n.addEventListener("click",li),n.addEventListener("keypress",vi))}(n,"never"===t.revalidate);n===window||9===n.nodeType?(this.install([window.HTMLButtonElement.prototype,window.HTMLInputElement.prototype,window.HTMLSelectElement.prototype,window.HTMLTextAreaElement.prototype,window.HTMLFieldSetElement.prototype]),pi(window.HTMLFormElement)):(n instanceof window.HTMLFormElement||n instanceof window.HTMLFieldSetElement)&&(this.install(n.elements),n instanceof window.HTMLFormElement&&pi(n));"oninput"!==t.revalidate&&"hybrid"!==t.revalidate||(n.addEventListener("keyup",this.revalidator),n.addEventListener("change",this.revalidator));"onblur"!==t.revalidate&&"hybrid"!==t.revalidate||n.addEventListener("blur",this.revalidator,!0)}function e(n){var t;for(n.form&&(t=nt.get(n.form));!t&&n;)t=nt.get(n),n=n.parentNode;return t||(t=nt.get(window)),t}function bi(n){var t=e(n);return Array.prototype.filter.call(n.elements,function(n){return!!(n.getAttribute("name")||t&&t.settings.validateNameless)})}function t(n){var i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},u=i.classes,l=i.debug,p=void 0!==l&&l,f=i.extendFieldset,e=i.novalidateOnElements,a=i.preventImplicitSubmit,o=void 0!==a&&a,s=i.revalidate,v=i.strict,r=void 0!==v&&v,h=i.validEvent,y=i.validateNameless,c;return u||(u={}),void 0===f&&(f=!r),void 0===e&&(e=!r),void 0===o&&(o=!1),void 0===s&&(s=r?"onsubmit":"hybrid"),void 0===h&&(h=!r),c={debug:p,strict:r,preventImplicitSubmit:o,revalidate:s,validEvent:h,extendFieldset:f,classes:u,novalidateOnElements:e,validateNameless:void 0!==y&&y},n instanceof window.NodeList||n instanceof window.HTMLCollection||n instanceof Array?Array.prototype.map.call(n,function(n){return t(n,c)}):new ou(n,c)}var k,ki,rt,gi,ui,fi,si,li,ai,vi,yi,nt,su,hu,dt;((k=document.createEvent("Event")).initEvent("foo",!0,!0),k.preventDefault(),k.defaultPrevented)||(ki=window.Event.prototype.preventDefault,window.Event.prototype.preventDefault=function(){this.cancelable&&(ki.call(this),Object.defineProperty(this,"defaultPrevented",{get:function(){return!0},configurable:!0}))});rt=window.Element.prototype;gi=rt.matches||rt.matchesSelector||rt.msMatchesSelector||rt.webkitMatchesSelector;var ct=new WeakMap,a={set:function(n,t,i){var f=2<arguments.length&&void 0!==i&&i,r;return n instanceof window.HTMLFieldSetElement&&(r=e(n),r&&!r.settings.extendFieldset)?a:("string"==typeof t&&(t=new String(t)),f&&(t.is_custom=!0),u(t),ct.set(n,t),"_original_setCustomValidity"in n&&n._original_setCustomValidity(t.toString()),a)},get:function(n){var t=ct.get(n);return void 0===t&&"_original_validationMessage"in n&&(t=new String(n._original_validationMessage)),t||new String("")},"delete":function(n,t){var r=1<arguments.length&&void 0!==t&&t,i;return"_original_setCustomValidity"in n&&n._original_setCustomValidity(""),i=ct.get(n),!(i&&r&&!i.is_custom)&&ct.delete(n)}},cu=0;var gt=new WeakMap,ut={attachWarning:function(n,t){t.parentNode.insertBefore(n,t.nextSibling)},detachWarning:function(n){n.parentNode&&n.parentNode.removeChild(n)},showWarning:function(n,t){var r,i,u;1<arguments.length&&void 0!==t&&t&&"radio"===n.type&&tr(n)[0]!==n||(r=a.get(n).toString(),i=gt.get(n),r?(i||(u=e(n),(i=document.createElement("div")).className=u&&u.settings.classes.warning||"hf-warning",i.id=function(n){return(0<arguments.length&&void 0!==n?n:"hf_")+cu+++Math.random().toString(36).substr(2)}(),i.setAttribute("aria-live","polite"),gt.set(n,i)),n.setAttribute("aria-errormessage",i.id),n.hasAttribute("aria-describedby")||n.setAttribute("aria-describedby",i.id),w.setMessage(i,r,n),w.attachWarning(i,n)):i&&i.parentNode&&(n.getAttribute("aria-describedby")===i.id&&n.removeAttribute("aria-describedby"),n.removeAttribute("aria-errormessage"),w.detachWarning(i,n)))},setMessage:function(n,t){n.textContent=t}},w={attachWarning:ut.attachWarning,detachWarning:ut.detachWarning,showWarning:ut.showWarning,setMessage:ut.setMessage,set:function(n,t){t||(t=ut[n]);w[n]=t},getWarning:function(n){return gt.get(n)}},s=Object.create(null);var ft=["datetime","date","month","week","time"],et=ft.concat(["number","range"],"datetime-local"),ir=["email","url"],lu=["email","date","month","week","time","datetime","datetime-local","number","range","color"],lt=["text","search","tel","password"].concat(ir),rr=["checkbox","color","file","image","radio","submit"].concat(et,lt),au=["button","hidden","reset"].concat(rr),vu=["select-one","select-multiple","textarea"];var l={en:{TextTooLong:"Please shorten this text to %l characters or less (you are currently using %l characters).",ValueMissing:"Please fill out this field.",CheckboxMissing:"Please check this box if you want to proceed.",RadioMissing:"Please select one of these options.",FileMissing:"Please select a file.",SelectMissing:"Please select an item in the list.",InvalidEmail:"Please enter an email address.",InvalidURL:"Please enter a URL.",PatternMismatch:"Please match the requested format.",PatternMismatchWithTitle:"Please match the requested format: %l.",NumberRangeOverflow:"Please select a value that is no more than %l.",DateRangeOverflow:"Please select a value that is no later than %l.",TimeRangeOverflow:"Please select a value that is no later than %l.",NumberRangeUnderflow:"Please select a value that is no less than %l.",DateRangeUnderflow:"Please select a value that is no earlier than %l.",TimeRangeUnderflow:"Please select a value that is no earlier than %l.",StepMismatch:"Please select a valid value. The two nearest valid values are %l and %l.",StepMismatchOneValue:"Please select a valid value. The nearest valid value is %l.",BadInputNumber:"Please enter a number."}},vt="en",yt="en";var fr={"datetime-local":60,datetime:60,time:60},er={"datetime-local":1e3,datetime:1e3,date:864e5,week:6048e5,time:1e3},or={week:-2592e5},yu={range:0},pu={range:100};var tt=new WeakMap,ti={set:function(n,t,i){var r=tt.get(n)||{};return r[t]=i,tt.set(n,r),ti},get:function(n,t,i){var f=2<arguments.length&&void 0!==i?i:void 0,r=tt.get(n),u;return void 0!==r&&t in r?r[t]:(u="data-"+t.replace(/[A-Z]/g,"-$&").toLowerCase(),n.hasAttribute(u)?n.getAttribute(u):f)},"delete":function(n,t){var r=1<arguments.length&&void 0!==t?t:null,i;return r?(i=tt.get(n)||{},r in i&&(delete i[r],tt.set(n,i),!0)):tt.delete(n)}},wt=new WeakMap,ii={set:function(n,t){var i=wt.get(n)||[];return i.push(t),wt.set(n,i),ii},get:function(n){return wt.get(n)||[]},"delete":function(n){return wt.delete(n)}},st,wu=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;ui=/^[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])?)*$/;fi=v(function(n){var r=i(n),t;if(-1===lu.indexOf(r))return!0;if(!n.value)return!("_original_validity"in n&&!n._original_validity.__hyperform)||!n._original_validity.badInput;t=!0;switch(r){case"color":t=/^#[a-f0-9]{6}$/.test(n.value);break;case"number":case"range":t=!isNaN(Number(n.value));break;case"datetime":case"date":case"month":case"week":case"time":t=null!==h(n.value,r);break;case"datetime-local":t=/^([0-9]{4,})-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):([0-5][0-9])(?::([0-5][0-9])(?:\.([0-9]{1,3}))?)?$/.test(n.value)}return t},function(t){return y(t,"badInput",n("Please match the requested type."))});var cr=v(function(n){return!n.value||!n.hasAttribute("pattern")||new RegExp("^(?:"+n.getAttribute("pattern")+")$").test(n.value)},function(t){y(t,"patternMismatch",t.title?r(n("PatternMismatchWithTitle"),t.title):n("PatternMismatch"))}),lr=v(function(n){var t,r,u=i(n);return!n.value||!n.hasAttribute("max")||(r=-1<ft.indexOf(u)?(t=null===(t=h(n.value,u))?NaN:+t,null===(r=h(n.getAttribute("max"),u))?NaN:+r):(t=Number(n.value),Number(n.getAttribute("max"))),isNaN(r)||isNaN(t)||t<=r)},function(t){var f,u=i(t),o=e(t),s=o&&o.settings.classes.outOfRange||"hf-out-of-range",l=o&&o.settings.classes.inRange||"hf-in-range";switch(u){case"date":case"datetime":case"datetime-local":f=r(n("DateRangeOverflow"),at(h(t.getAttribute("max"),u),u));break;case"time":f=r(n("TimeRangeOverflow"),at(h(t.getAttribute("max"),u),u));break;default:f=r(n("NumberRangeOverflow"),c(t.getAttribute("max"),u))}y(t,"rangeOverflow",f);t.classList.add(s);t.classList.remove(l)}),ar=v(function(n){var t,r,u=i(n);return!n.value||!n.hasAttribute("min")||(r=-1<ft.indexOf(u)?(t=null===(t=h(n.value,u))?NaN:+t,null===(r=h(n.getAttribute("min"),u))?NaN:+r):(t=Number(n.value),Number(n.getAttribute("min"))),isNaN(r)||isNaN(t)||r<=t)},function(t){var f,u=i(t),o=e(t),s=o&&o.settings.classes.outOfRange||"hf-out-of-range",l=o&&o.settings.classes.inRange||"hf-in-range";switch(u){case"date":case"datetime":case"datetime-local":f=r(n("DateRangeUnderflow"),at(h(t.getAttribute("min"),u),u));break;case"time":f=r(n("TimeRangeUnderflow"),at(h(t.getAttribute("min"),u),u));break;default:f=r(n("NumberRangeUnderflow"),c(t.getAttribute("min"),u))}y(t,"rangeUnderflow",f);t.classList.add(s);t.classList.remove(l)}),vr=v(function(n){var t=i(n),r,e;if(!n.value||-1===et.indexOf(t)||"any"===(n.getAttribute("step")||"").toLowerCase()||(r=n.getAttribute("step"),(r=r?c(r,t):fr[t]||1)<=0||isNaN(r)))return!0;var o=er[t]||1,f=c(n.value,t),u=c(n.getAttribute("min")||n.getAttribute("value")||"",t);return isNaN(f)?!0:(isNaN(u)&&(u=or[t]||0),"month"===t&&(u=12*new Date(u).getUTCFullYear()+new Date(u).getUTCMonth(),f=12*new Date(f).getUTCFullYear()+new Date(f).getUTCMonth()),e=Math.abs(u-f)%(r*o),e<1e-8||r*o-1e-8<e)},function(t){var e=ni(t),u=e[0],f=e[1],i=!1;null===u?i=f:null===f&&(i=u);y(t,"stepMismatch",!1!==i?r(n("StepMismatchOneValue"),i):r(n("StepMismatch"),u,f))}),yr=v(function(n){if(!n.value||-1===lt.indexOf(i(n))||!n.hasAttribute("maxlength")||!n.getAttribute("maxlength"))return!0;var t=parseInt(n.getAttribute("maxlength"),10);return!!(isNaN(t)||t<0)||pt(n.value)<=t},function(t){y(t,"tooLong",r(n("TextTooLong"),t.getAttribute("maxlength"),pt(t.value)))}),pr=v(function(n){if(!n.value||-1===lt.indexOf(i(n))||!n.hasAttribute("minlength")||!n.getAttribute("minlength"))return!0;var t=parseInt(n.getAttribute("minlength"),10);return!!(isNaN(t)||t<0)||pt(n.value)>=t},function(t){y(t,"tooShort",r(n("Please lengthen this text to %l characters or more (you are currently using %l characters)."),t.getAttribute("minlength"),pt(t.value)))}),wr=v(function(n){var r=i(n),t,u,f,e,h,o;if("file"!==r&&!n.value||"file"!==r&&-1===ir.indexOf(r))return!0;t=!0;switch(r){case"url":st||(st=document.createElement("a"));u=ri(n.value);st.href=u;t=st.href===u||st.href===u+"/";break;case"email":t=n.hasAttribute("multiple")?sr(n.value).every(function(n){return ui.test(n)}):ui.test(ri(n.value));break;case"file":if("files"in n&&n.files.length&&n.hasAttribute("accept")){if(f=sr(n.getAttribute("accept")).map(function(n){return/^(audio|video|image)\/\*$/.test(n)&&(n=new RegExp("^"+RegExp.$1+"/.+$")),n}),!f.length)break;n:for(e=0;e<n.files.length;e++){h=!1;t:for(o=0;o<f.length;o++){var s=n.files[e],c=f[o],l=s.type;if("string"==typeof c&&"."===c.substr(0,1)){if(-1===s.name.search("."))continue t;l=s.name.substr(s.name.lastIndexOf("."))}if(0===l.search(c)){h=!0;break t}}if(!h){t=!1;break n}}}}return t},function(t){var r=n("Please use the appropriate format."),u=i(t);"email"===u?r=t.hasAttribute("multiple")?n("Please enter a comma separated list of email addresses."):n("InvalidEmail"):"url"===u?r=n("InvalidURL"):"file"===u&&(r=n("Please select a file of the correct type."));y(t,"typeMismatch",r)}),br=v(function(n){if("radio"!==n.type)return!n.hasAttribute("required")||(n instanceof window.HTMLSelectElement?function(n){var t=!n.multiple&&n.size<=1&&0<n.options.length&&n.options[0].parentNode==n&&""===n.options[0].value;return-1<n.selectedIndex&&Array.prototype.some.call(n.options,function(n){return(!t||0!==n.index)&&!n.disabled&&n.selected})}(n):"checkbox"===n.type?n.checked:!!n.value);if(n.hasAttribute("required")&&n.checked)return!0;var t=tr(n);return!t.some(function(n){return n.hasAttribute("required")})||t.some(function(n){return n.checked})},function(t){var r=n("ValueMissing"),u=i(t);"checkbox"===u?r=n("CheckboxMissing"):"radio"===u?r=n("RadioMissing"):"file"===u?r=t.hasAttribute("multiple")?n("Please select one or more files."):n("FileMissing"):t instanceof window.HTMLSelectElement&&(r=n("SelectMissing"));y(t,"valueMissing",r)}),ei={badInput:fi,customError:hr,patternMismatch:cr,rangeOverflow:lr,rangeUnderflow:ar,stepMismatch:vr,tooLong:yr,tooShort:pr,typeMismatch:wr,valueMissing:br,valid:function(n){var t=e(n),o=t&&t.settings.classes.valid||"hf-valid",s=t&&t.settings.classes.invalid||"hf-invalid",r=t&&t.settings.classes.userInvalid||"hf-user-invalid",u=t&&t.settings.classes.userValid||"hf-user-valid",h=t&&t.settings.classes.inRange||"hf-in-range",c=t&&t.settings.classes.outOfRange||"hf-out-of-range",l=t&&t.settings.classes.validated||"hf-validated",i,f;for(n.classList.add(l),i=0,f=[fi,hr,cr,lr,ar,vr,yr,pr,wr,br];i<f.length;i++)if(f[i](n))return n.classList.add(s),n.classList.remove(o),n.classList.remove(u),("checkbox"===n.type||"radio"===n.type)&&n.checked!==n.defaultChecked||n.value!==n.defaultValue?n.classList.add(r):n.classList.remove(r),n.setAttribute("aria-invalid","true"),!1;return a.delete(n),n.classList.remove(s),n.classList.remove(r),n.classList.remove(c),n.classList.add(o),n.classList.add(h),n.value!==n.defaultValue?n.classList.add(u):n.classList.remove(u),n.setAttribute("aria-invalid","false"),!0}},b=function k(n){if(!(n instanceof window.HTMLElement))throw new Error("cannot create a ValidityState for a non-element");var t=k.cache.get(n);return t||(this instanceof k?(this.element=n,void k.cache.set(n,this)):new k(n))},oi={};b.prototype=oi;b.cache=new WeakMap;for(si in ei)Object.defineProperty(oi,si,{configurable:!0,enumerable:!0,get:bu(ei[si]),set:void 0});u(oi);li=gr();ai=gr(!0);vi=nu();yi=nu(!0);var ku=function(n){return function(){return d("attr_get_"+n,this.getAttribute(n),this)}},du=function(n){return function(t){this.setAttribute(n,d("attr_set_"+n,t,this))}},gu=function(n){return function(){return d("attr_get_"+n,this.hasAttribute(n),this)}},nf=function(n){return function(t){d("attr_set_"+n,t,this)?this.setAttribute(n,n):this.removeAttribute(n)}},tf=function(n){return function(){return d("attr_get_"+n,Math.max(0,Number(this.getAttribute(n))),this)}},rf=function(n){return function(t){t=d("attr_set_"+n,t,this);/^[0-9]+$/.test(t)&&this.setAttribute(n,t)}},kt={checkValidity:{value:u(function(){return dt(this)})},reportValidity:{value:u(function(){return g(this)})},setCustomValidity:{value:u(function(n){return iu(this,n)})},stepDown:{value:u(function(){return ru(this,0<arguments.length&&void 0!==arguments[0]?arguments[0]:1)})},stepUp:{value:u(function(){return uu(this,0<arguments.length&&void 0!==arguments[0]?arguments[0]:1)})},validationMessage:{get:u(function(){return fu(this)})},validity:{get:u(function(){return b(this)})},valueAsDate:{get:u(function(){return bt(this)}),set:u(function(n){bt(this,n)})},valueAsNumber:{get:u(function(){return ht(this)}),set:u(function(n){ht(this,n)})},willValidate:{get:u(function(){return eu(this)})}};return nt=new WeakMap,ou.prototype={destroy:function(){!function(n){n.removeEventListener("click",ai);n.removeEventListener("keypress",yi);n.removeEventListener("click",li);n.removeEventListener("keypress",vi)}(this.form);nt.delete(this.form);this.form.removeEventListener("keyup",this.revalidator);this.form.removeEventListener("change",this.revalidator);this.form.removeEventListener("blur",this.revalidator,!0);this.form===window||9===this.form.nodeType?(this.uninstall([window.HTMLButtonElement.prototype,window.HTMLInputElement.prototype,window.HTMLSelectElement.prototype,window.HTMLTextAreaElement.prototype,window.HTMLFieldSetElement.prototype]),wi(window.HTMLFormElement)):(this.form instanceof window.HTMLFormElement||this.form instanceof window.HTMLFieldSetElement)&&(this.uninstall(this.form.elements),this.form instanceof window.HTMLFormElement&&wi(this.form))},revalidate:function(n){if(n.target instanceof window.HTMLButtonElement||n.target instanceof window.HTMLTextAreaElement||n.target instanceof window.HTMLSelectElement||n.target instanceof window.HTMLInputElement){if(n.target.form&&n.target.form.hasAttribute("novalidate"))return;"hybrid"===this.settings.revalidate?"blur"===n.type&&n.target.value!==n.target.defaultValue||b(n.target).valid?g(n.target):("keyup"===n.type&&9!==n.keyCode||"change"===n.type)&&b(n.target).valid&&g(n.target):"keyup"===n.type&&9===n.keyCode||g(n.target)}},install:function(n){n instanceof window.Element&&(n=[n]);for(var i=n.length,t=0;t<i;t++)pi(n[t])},uninstall:function(n){n instanceof window.Element&&(n=[n]);for(var i=n.length,t=0;t<i;t++)wi(n[t])}},dt=(su="checkValidity",hu=function(n){var t,i;return n instanceof window.HTMLFormElement?bi(n).map(dt).every(function(n){return n}):(t=b(n).valid,t?(i=e(n),i&&i.settings.validEvent&&p(n,"valid")):p(n,"invalid",{cancelable:!0}),t)},function(){var n=function(n){var t,i,r=Array.prototype.slice.call(arguments,1);return n in s&&(t=s[n].reduce((i=r,function(t,r){var u=r.apply({state:t,hook:n},i);return void 0!==u?u:t}),t)),t}(su,Array.prototype.slice.call(arguments));return void 0!==n?n:hu.apply(this,arguments)}),t.version="0.11.0",t.checkValidity=dt,t.reportValidity=g,t.setCustomValidity=iu,t.stepDown=ru,t.stepUp=uu,t.validationMessage=fu,t.ValidityState=b,t.valueAsDate=bt,t.valueAsNumber=ht,t.willValidate=eu,t.setLanguage=function(n){return function(n){yt=(vt=n).replace(/[-_].*/,"")}(n),t},t.addTranslation=function(n,i){return function(n,t){for(var i in n in l||(l[n]={}),t)t.hasOwnProperty(i)&&(l[n][i]=t[i])}(n,i),t},t.setRenderer=function(n,i){return w.set(n,i),t},t.addValidator=function(n,i){return ii.set(n,i),t},t.setMessage=function(n,i,r){return ti.set(n,i,r),t},t.addHook=function(n,i,r){return function(n,t,i){n in s||(s[n]=[]);void 0===i&&(i=s[n].length);s[n].splice(i,0,t)}(n,i,r),t},t.removeHook=function(n,i){return function(n,t){if(n in s)for(var i=0;i<s[n].length;i++)if(s[n][i]===t){s[n].splice(i,1);break}}(n,i),t},document.currentScript&&document.currentScript.hasAttribute("data-hf-autoload")&&t(window),t}();$(function(){if($("form").length>0)var n=hyperform(window)})