text: !function(e){var t={};function i(r){if(t[r])return t[r].exports;var s=t[r]={i:r,l:!1,exports:{}};return e[r].call(s.exports,s,s.exports,i),s.l=!0,s.exports}i.m=e,i.c=t,i.d=function(e,t,r){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(i.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var s in e)i.d(r,s,function(t){return e[t]}.bind(null,s));return r},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="/resources/dist/",i(i.s=976)}({168:function(e,t,i){"use strict";i.d(t,"d",function(){return n}),i.d(t,"c",function(){return a}),i.d(t,"a",function(){return o}),i.d(t,"b",function(){return l});var r=i(2),s=i.n(r),n={errorElement:"em",errorPlacement:function(e,t){e.addClass("help-block"),e.insertAfter(t)},highlight:function(e){var t=s()(e).parents(".form-group");t.hasClass("has-error")||t.addClass("has-error t-form-error").removeClass("has-success")},unhighlight:function(e){var t=s()(e).parents(".form-group");t.hasClass("has-error")&&(t.removeClass("has-error t-form-error").addClass("has-success"),setTimeout(function(){return t.removeClass("has-success")},1e3))},submitHandler:function(e){s()(e).find(":submit").attr("disabled",!0),e.submit()}};function a(){if("function"!=typeof s.a.validator)throw new Error("jquery-validate must be loaded to activate sample name checker");s.a.validator.addMethod("checkallowedchars",function(e){return 0===e.length||/^[A-Za-z\d-_!@#$%~`]+$/i.test(e)})}function o(){if("function"!=typeof s.a.validator)throw new Error("jquery-validate must be loaded to activate sample name checker");s.a.validator.addMethod("minLengthIfPresent",function(e,t,i){return 0===e.length||e.length>=i})}function l(){if("function"==typeof s.a.validator)return s.a.validator.addMethod("hasLowercaseLetter",function(e){return/^.*[a-z].*$/.test(e)}),s.a.validator.addMethod("hasUppercaseLetter",function(e){return/^.*[A-Z].*$/.test(e)}),s.a.validator.addMethod("hasNumber",function(e){return/^.*[0-9].*$/.test(e)}),void s.a.validator.addMethod("hasSpecialChar",function(e){return/^.*[!@#$%^&*()+?\/<>=.\\{}].*$/.test(e)});throw new Error("jquery-validate must be loaded to activate password checker")}},2:function(e,t){e.exports=jQuery},333:function(e,t,i){var r,s,n;
  /*!
   * jQuery Validation Plugin v1.19.0
   *
   * https://jqueryvalidation.org/
   *
   * Copyright (c) 2018 Jörn Zaefferer
   * Released under the MIT license
   */s=[i(2)],void 0===(n="function"==typeof(r=function(e){var t;e.extend(e.fn,{validate:function(t){if(this.length){var i=e.data(this[0],"validator");return i||(this.attr("novalidate","novalidate"),i=new e.validator(t,this[0]),e.data(this[0],"validator",i),i.settings.onsubmit&&(this.on("click.validate",":submit",function(t){i.submitButton=t.currentTarget,e(this).hasClass("cancel")&&(i.cancelSubmit=!0),void 0!==e(this).attr("formnovalidate")&&(i.cancelSubmit=!0)}),this.on("submit.validate",function(t){function r(){var r,s;return i.submitButton&&(i.settings.submitHandler||i.formSubmitted)&&(r=e("<input type='hidden'/>").attr("name",i.submitButton.name).val(e(i.submitButton).val()).appendTo(i.currentForm)),!(i.settings.submitHandler&&!i.settings.debug)||(s=i.settings.submitHandler.call(i,i.currentForm,t),r&&r.remove(),void 0!==s&&s)}return i.settings.debug&&t.preventDefault(),i.cancelSubmit?(i.cancelSubmit=!1,r()):i.form()?i.pendingRequest?(i.formSubmitted=!0,!1):r():(i.focusInvalid(),!1)})),i)}t&&t.debug&&window.console&&console.warn("Nothing selected, can't validate, returning nothing.")},valid:function(){var t,i,r;return e(this[0]).is("form")?t=this.validate().form():(r=[],t=!0,i=e(this[0].form).validate(),this.each(function(){(t=i.element(this)&&t)||(r=r.concat(i.errorList))}),i.errorList=r),t},rules:function(t,i){var r,s,n,a,o,l,u=this[0],h=void 0!==this.attr("contenteditable")&&"false"!==this.attr("contenteditable");if(null!=u&&(!u.form&&h&&(u.form=this.closest("form")[0],u.name=this.attr("name")),null!=u.form)){if(t)switch(r=e.data(u.form,"validator").settings,s=r.rules,n=e.validator.staticRules(u),t){case"add":e.extend(n,e.validator.normalizeRule(i)),delete n.messages,s[u.name]=n,i.messages&&(r.messages[u.name]=e.extend(r.messages[u.name],i.messages));break;case"remove":return i?(l={},e.each(i.split(/\s/),function(e,t){l[t]=n[t],delete n[t]}),l):(delete s[u.name],n)}return(a=e.validator.normalizeRules(e.extend({},e.validator.classRules(u),e.validator.attributeRules(u),e.validator.dataRules(u),e.validator.staticRules(u)),u)).required&&(o=a.required,delete a.required,a=e.extend({required:o},a)),a.remote&&(o=a.remote,delete a.remote,a=e.extend(a,{remote:o})),a}}}),e.extend(e.expr.pseudos||e.expr[":"],{blank:function(t){return!e.trim(""+e(t).val())},filled:function(t){var i=e(t).val();return null!==i&&!!e.trim(""+i)},unchecked:function(t){return!e(t).prop("checked")}}),e.validator=function(t,i){this.settings=e.extend(!0,{},e.validator.defaults,t),this.currentForm=i,this.init()},e.validator.format=function(t,i){return 1===arguments.length?function(){var i=e.makeArray(arguments);return i.unshift(t),e.validator.format.apply(this,i)}:void 0===i?t:(arguments.length>2&&i.constructor!==Array&&(i=e.makeArray(arguments).slice(1)),i.constructor!==Array&&(i=[i]),e.each(i,function(e,i){t=t.replace(new RegExp("\\{"+e+"\\}","g"),function(){return i})}),t)},e.extend(e.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",pendingClass:"pending",validClass:"valid",errorElement:"label",focusCleanup:!1,focusInvalid:!0,errorContainer:e([]),errorLabelContainer:e([]),onsubmit:!0,ignore:":hidden",ignoreTitle:!1,onfocusin:function(e){this.lastActive=e,this.settings.focusCleanup&&(this.settings.unhighlight&&this.settings.unhighlight.call(this,e,this.settings.errorClass,this.settings.validClass),this.hideThese(this.errorsFor(e)))},onfocusout:function(e){this.checkable(e)||!(e.name in this.submitted)&&this.optional(e)||this.element(e)},onkeyup:function(t,i){9===i.which&&""===this.elementValue(t)||-1!==e.inArray(i.keyCode,[16,17,18,20,35,36,37,38,39,40,45,144,225])||(t.name in this.submitted||t.name in this.invalid)&&this.element(t)},onclick:function(e){e.name in this.submitted?this.element(e):e.parentNode.name in this.submitted&&this.element(e.parentNode)},highlight:function(t,i,r){"radio"===t.type?this.findByName(t.name).addClass(i).removeClass(r):e(t).addClass(i).removeClass(r)},unhighlight:function(t,i,r){"radio"===t.type?this.findByName(t.name).removeClass(i).addClass(r):e(t).removeClass(i).addClass(r)}},setDefaults:function(t){e.extend(e.validator.defaults,t)},messages:{required:"This field is required.",remote:"Please fix this field.",email:"Please enter a valid email address.",url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date (ISO).",number:"Please enter a valid number.",digits:"Please enter only digits.",equalTo:"Please enter the same value again.",maxlength:e.validator.format("Please enter no more than {0} characters."),minlength:e.validator.format("Please enter at least {0} characters."),rangelength:e.validator.format("Please enter a value between {0} and {1} characters long."),range:e.validator.format("Please enter a value between {0} and {1}."),max:e.validator.format("Please enter a value less than or equal to {0}."),min:e.validator.format("Please enter a value greater than or equal to {0}."),step:e.validator.format("Please enter a multiple of {0}.")},autoCreateRanges:!1,prototype:{init:function(){this.labelContainer=e(this.settings.errorLabelContainer),this.errorContext=this.labelContainer.length&&this.labelContainer||e(this.currentForm),this.containers=e(this.settings.errorContainer).add(this.settings.errorLabelContainer),this.submitted={},this.valueCache={},this.pendingRequest=0,this.pending={},this.invalid={},this.reset();var t,i=this.currentForm,r=this.groups={};function s(t){var r=void 0!==e(this).attr("contenteditable")&&"false"!==e(this).attr("contenteditable");if(!this.form&&r&&(this.form=e(this).closest("form")[0],this.name=e(this).attr("name")),i===this.form){var s=e.data(this.form,"validator"),n="on"+t.type.replace(/^validate/,""),a=s.settings;a[n]&&!e(this).is(a.ignore)&&a[n].call(s,this,t)}}e.each(this.settings.groups,function(t,i){"string"==typeof i&&(i=i.split(/\s/)),e.each(i,function(e,i){r[i]=t})}),t=this.settings.rules,e.each(t,function(i,r){t[i]=e.validator.normalizeRule(r)}),e(this.currentForm).on("focusin.validate focusout.validate keyup.validate",":text, [type='password'], [type='file'], select, textarea, [type='number'], [type='search'], [type='tel'], [type='url'], [type='email'], [type='datetime'], [type='date'], [type='month'], [type='week'], [type='time'], [type='datetime-local'], [type='range'], [type='color'], [type='radio'], [type='checkbox'], [contenteditable], [type='button']",s).on("click.validate","select, option, [type='radio'], [type='checkbox']",s),this.settings.invalidHandler&&e(this.currentForm).on("invalid-form.validate",this.settings.invalidHandler)},form:function(){return this.checkForm(),e.extend(this.submitted,this.errorMap),this.invalid=e.extend({},this.errorMap),this.valid()||e(this.currentForm).triggerHandler("invalid-form",[this]),this.showErrors(),this.valid()},checkForm:function(){this.prepareForm();for(var e=0,t=this.currentElements=this.elements();t[e];e++)this.check(t[e]);return this.valid()},element:function(t){var i,r,s=this.clean(t),n=this.validationTargetFor(s),a=this,o=!0;return void 0===n?delete this.invalid[s.name]:(this.prepareElement(n),this.currentElements=e(n),(r=this.groups[n.name])&&e.each(this.groups,function(e,t){t===r&&e!==n.name&&(s=a.validationTargetFor(a.clean(a.findByName(e))))&&s.name in a.invalid&&(a.currentElements.push(s),o=a.check(s)&&o)}),i=!1!==this.check(n),o=o&&i,this.invalid[n.name]=!i,this.numberOfInvalids()||(this.toHide=this.toHide.add(this.containers)),this.showErrors(),e(t).attr("aria-invalid",!i)),o},showErrors:function(t){if(t){var i=this;e.extend(this.errorMap,t),this.errorList=e.map(this.errorMap,function(e,t){return{message:e,element:i.findByName(t)[0]}}),this.successList=e.grep(this.successList,function(e){return!(e.name in t)})}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors()},resetForm:function(){e.fn.resetForm&&e(this.currentForm).resetForm(),this.invalid={},this.submitted={},this.prepareForm(),this.hideErrors();var t=this.elements().removeData("previousValue").removeAttr("aria-invalid");this.resetElements(t)},resetElements:function(e){var t;if(this.settings.unhighlight)for(t=0;e[t];t++)this.settings.unhighlight.call(this,e[t],this.settings.errorClass,""),this.findByName(e[t].name).removeClass(this.settings.validClass);else e.removeClass(this.settings.errorClass).removeClass(this.settings.validClass)},numberOfInvalids:function(){return this.objectLength(this.invalid)},objectLength:function(e){var t,i=0;for(t in e)void 0!==e[t]&&null!==e[t]&&!1!==e[t]&&i++;return i},hideErrors:function(){this.hideThese(this.toHide)},hideThese:function(e){e.not(this.containers).text(""),this.addWrapper(e).hide()},valid:function(){return 0===this.size()},size:function(){return this.errorList.length},focusInvalid:function(){if(this.settings.focusInvalid)try{e(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").focus().trigger("focusin")}catch(e){}},findLastActive:function(){var t=this.lastActive;return t&&1===e.grep(this.errorList,function(e){return e.element.name===t.name}).length&&t},elements:function(){var t=this,i={};return e(this.currentForm).find("input, select, textarea, [contenteditable]").not(":submit, :reset, :image, :disabled").not(this.settings.ignore).filter(function(){var r=this.name||e(this).attr("name"),s=void 0!==e(this).attr("contenteditable")&&"false"!==e(this).attr("contenteditable");return!r&&t.settings.debug&&window.console&&console.error("%o has no name assigned",this),s&&(this.form=e(this).closest("form")[0],this.name=r),!(this.form!==t.currentForm||r in i||!t.objectLength(e(this).rules())||(i[r]=!0,0))})},clean:function(t){return e(t)[0]},errors:function(){var t=this.settings.errorClass.split(" ").join(".");return e(this.settings.errorElement+"."+t,this.errorContext)},resetInternals:function(){this.successList=[],this.errorList=[],this.errorMap={},this.toShow=e([]),this.toHide=e([])},reset:function(){this.resetInternals(),this.currentElements=e([])},prepareForm:function(){this.reset(),this.toHide=this.errors().add(this.containers)},prepareElement:function(e){this.reset(),this.toHide=this.errorsFor(e)},elementValue:function(t){var i,r,s=e(t),n=t.type,a=void 0!==s.attr("contenteditable")&&"false"!==s.attr("contenteditable");return"radio"===n||"checkbox"===n?this.findByName(t.name).filter(":checked").val():"number"===n&&void 0!==t.validity?t.validity.badInput?"NaN":s.val():(i=a?s.text():s.val(),"file"===n?"C:\\fakepath\\"===i.substr(0,12)?i.substr(12):(r=i.lastIndexOf("/"))>=0?i.substr(r+1):(r=i.lastIndexOf("\\"))>=0?i.substr(r+1):i:"string"==typeof i?i.replace(/\r/g,""):i)},check:function(t){t=this.validationTargetFor(this.clean(t));var i,r,s,n,a=e(t).rules(),o=e.map(a,function(e,t){return t}).length,l=!1,u=this.elementValue(t);for(r in"function"==typeof a.normalizer?n=a.normalizer:"function"==typeof this.settings.normalizer&&(n=this.settings.normalizer),n&&(u=n.call(t,u),delete a.normalizer),a){s={method:r,parameters:a[r]};try{if("dependency-mismatch"===(i=e.validator.methods[r].call(this,u,t,s.parameters))&&1===o){l=!0;continue}if(l=!1,"pending"===i)return void(this.toHide=this.toHide.not(this.errorsFor(t)));if(!i)return this.formatAndAdd(t,s),!1}catch(e){throw this.settings.debug&&window.console&&console.log("Exception occurred when checking element "+t.id+", check the '"+s.method+"' method.",e),e instanceof TypeError&&(e.message+=".  Exception occurred when checking element "+t.id+", check the '"+s.method+"' method."),e}}if(!l)return this.objectLength(a)&&this.successList.push(t),!0},customDataMessage:function(t,i){return e(t).data("msg"+i.charAt(0).toUpperCase()+i.substring(1).toLowerCase())||e(t).data("msg")},customMessage:function(e,t){var i=this.settings.messages[e];return i&&(i.constructor===String?i:i[t])},findDefined:function(){for(var e=0;e<arguments.length;e++)if(void 0!==arguments[e])return arguments[e]},defaultMessage:function(t,i){"string"==typeof i&&(i={method:i});var r=this.findDefined(this.customMessage(t.name,i.method),this.customDataMessage(t,i.method),!this.settings.ignoreTitle&&t.title||void 0,e.validator.messages[i.method],"<strong>Warning: No message defined for "+t.name+"</strong>"),s=/\$?\{(\d+)\}/g;return"function"==typeof r?r=r.call(this,i.parameters,t):s.test(r)&&(r=e.validator.format(r.replace(s,"{$1}"),i.parameters)),r},formatAndAdd:function(e,t){var i=this.defaultMessage(e,t);this.errorList.push({message:i,element:e,method:t.method}),this.errorMap[e.name]=i,this.submitted[e.name]=i},addWrapper:function(e){return this.settings.wrapper&&(e=e.add(e.parent(this.settings.wrapper))),e},defaultShowErrors:function(){var e,t,i;for(e=0;this.errorList[e];e++)i=this.errorList[e],this.settings.highlight&&this.settings.highlight.call(this,i.element,this.settings.errorClass,this.settings.validClass),this.showLabel(i.element,i.message);if(this.errorList.length&&(this.toShow=this.toShow.add(this.containers)),this.settings.success)for(e=0;this.successList[e];e++)this.showLabel(this.successList[e]);if(this.settings.unhighlight)for(e=0,t=this.validElements();t[e];e++)this.settings.unhighlight.call(this,t[e],this.settings.errorClass,this.settings.validClass);this.toHide=this.toHide.not(this.toShow),this.hideErrors(),this.addWrapper(this.toShow).show()},validElements:function(){return this.currentElements.not(this.invalidElements())},invalidElements:function(){return e(this.errorList).map(function(){return this.element})},showLabel:function(t,i){var r,s,n,a,o=this.errorsFor(t),l=this.idOrName(t),u=e(t).attr("aria-describedby");o.length?(o.removeClass(this.settings.validClass).addClass(this.settings.errorClass),o.html(i)):(o=e("<"+this.settings.errorElement+">").attr("id",l+"-error").addClass(this.settings.errorClass).html(i||""),r=o,this.settings.wrapper&&(r=o.hide().show().wrap("<"+this.settings.wrapper+"/>").parent()),this.labelContainer.length?this.labelContainer.append(r):this.settings.errorPlacement?this.settings.errorPlacement.call(this,r,e(t)):r.insertAfter(t),o.is("label")?o.attr("for",l):0===o.parents("label[for='"+this.escapeCssMeta(l)+"']").length&&(n=o.attr("id"),u?u.match(new RegExp("\\b"+this.escapeCssMeta(n)+"\\b"))||(u+=" "+n):u=n,e(t).attr("aria-describedby",u),(s=this.groups[t.name])&&(a=this,e.each(a.groups,function(t,i){i===s&&e("[name='"+a.escapeCssMeta(t)+"']",a.currentForm).attr("aria-describedby",o.attr("id"))})))),!i&&this.settings.success&&(o.text(""),"string"==typeof this.settings.success?o.addClass(this.settings.success):this.settings.success(o,t)),this.toShow=this.toShow.add(o)},errorsFor:function(t){var i=this.escapeCssMeta(this.idOrName(t)),r=e(t).attr("aria-describedby"),s="label[for='"+i+"'], label[for='"+i+"'] *";return r&&(s=s+", #"+this.escapeCssMeta(r).replace(/\s+/g,", #")),this.errors().filter(s)},escapeCssMeta:function(e){return e.replace(/([\\!"#$%&'()*+,.\/:;<=>?@\[\]^`{|}~])/g,"\\$1")},idOrName:function(e){return this.groups[e.name]||(this.checkable(e)?e.name:e.id||e.name)},validationTargetFor:function(t){return this.checkable(t)&&(t=this.findByName(t.name)),e(t).not(this.settings.ignore)[0]},checkable:function(e){return/radio|checkbox/i.test(e.type)},findByName:function(t){return e(this.currentForm).find("[name='"+this.escapeCssMeta(t)+"']")},getLength:function(t,i){switch(i.nodeName.toLowerCase()){case"select":return e("option:selected",i).length;case"input":if(this.checkable(i))return this.findByName(i.name).filter(":checked").length}return t.length},depend:function(e,t){return!this.dependTypes[typeof e]||this.dependTypes[typeof e](e,t)},dependTypes:{boolean:function(e){return e},string:function(t,i){return!!e(t,i.form).length},function:function(e,t){return e(t)}},optional:function(t){var i=this.elementValue(t);return!e.validator.methods.required.call(this,i,t)&&"dependency-mismatch"},startRequest:function(t){this.pending[t.name]||(this.pendingRequest++,e(t).addClass(this.settings.pendingClass),this.pending[t.name]=!0)},stopRequest:function(t,i){this.pendingRequest--,this.pendingRequest<0&&(this.pendingRequest=0),delete this.pending[t.name],e(t).removeClass(this.settings.pendingClass),i&&0===this.pendingRequest&&this.formSubmitted&&this.form()?(e(this.currentForm).submit(),this.submitButton&&e("input:hidden[name='"+this.submitButton.name+"']",this.currentForm).remove(),this.formSubmitted=!1):!i&&0===this.pendingRequest&&this.formSubmitted&&(e(this.currentForm).triggerHandler("invalid-form",[this]),this.formSubmitted=!1)},previousValue:function(t,i){return i="string"==typeof i&&i||"remote",e.data(t,"previousValue")||e.data(t,"previousValue",{old:null,valid:!0,message:this.defaultMessage(t,{method:i})})},destroy:function(){this.resetForm(),e(this.currentForm).off(".validate").removeData("validator").find(".validate-equalTo-blur").off(".validate-equalTo").removeClass("validate-equalTo-blur").find(".validate-lessThan-blur").off(".validate-lessThan").removeClass("validate-lessThan-blur").find(".validate-lessThanEqual-blur").off(".validate-lessThanEqual").removeClass("validate-lessThanEqual-blur").find(".validate-greaterThanEqual-blur").off(".validate-greaterThanEqual").removeClass("validate-greaterThanEqual-blur").find(".validate-greaterThan-blur").off(".validate-greaterThan").removeClass("validate-greaterThan-blur")}},classRuleSettings:{required:{required:!0},email:{email:!0},url:{url:!0},date:{date:!0},dateISO:{dateISO:!0},number:{number:!0},digits:{digits:!0},creditcard:{creditcard:!0}},addClassRules:function(t,i){t.constructor===String?this.classRuleSettings[t]=i:e.extend(this.classRuleSettings,t)},classRules:function(t){var i={},r=e(t).attr("class");return r&&e.each(r.split(" "),function(){this in e.validator.classRuleSettings&&e.extend(i,e.validator.classRuleSettings[this])}),i},normalizeAttributeRule:function(e,t,i,r){/min|max|step/.test(i)&&(null===t||/number|range|text/.test(t))&&(r=Number(r),isNaN(r)&&(r=void 0)),r||0===r?e[i]=r:t===i&&"range"!==t&&(e[i]=!0)},attributeRules:function(t){var i,r,s={},n=e(t),a=t.getAttribute("type");for(i in e.validator.methods)"required"===i?(""===(r=t.getAttribute(i))&&(r=!0),r=!!r):r=n.attr(i),this.normalizeAttributeRule(s,a,i,r);return s.maxlength&&/-1|2147483647|524288/.test(s.maxlength)&&delete s.maxlength,s},dataRules:function(t){var i,r,s={},n=e(t),a=t.getAttribute("type");for(i in e.validator.methods)""===(r=n.data("rule"+i.charAt(0).toUpperCase()+i.substring(1).toLowerCase()))&&(r=!0),this.normalizeAttributeRule(s,a,i,r);return s},staticRules:function(t){var i={},r=e.data(t.form,"validator");return r.settings.rules&&(i=e.validator.normalizeRule(r.settings.rules[t.name])||{}),i},normalizeRules:function(t,i){return e.each(t,function(r,s){if(!1!==s){if(s.param||s.depends){var n=!0;switch(typeof s.depends){case"string":n=!!e(s.depends,i.form).length;break;case"function":n=s.depends.call(i,i)}n?t[r]=void 0===s.param||s.param:(e.data(i.form,"validator").resetElements(e(i)),delete t[r])}}else delete t[r]}),e.each(t,function(r,s){t[r]=e.isFunction(s)&&"normalizer"!==r?s(i):s}),e.each(["minlength","maxlength"],function(){t[this]&&(t[this]=Number(t[this]))}),e.each(["rangelength","range"],function(){var i;t[this]&&(e.isArray(t[this])?t[this]=[Number(t[this][0]),Number(t[this][1])]:"string"==typeof t[this]&&(i=t[this].replace(/[\[\]]/g,"").split(/[\s,]+/),t[this]=[Number(i[0]),Number(i[1])]))}),e.validator.autoCreateRanges&&(null!=t.min&&null!=t.max&&(t.range=[t.min,t.max],delete t.min,delete t.max),null!=t.minlength&&null!=t.maxlength&&(t.rangelength=[t.minlength,t.maxlength],delete t.minlength,delete t.maxlength)),t},normalizeRule:function(t){if("string"==typeof t){var i={};e.each(t.split(/\s/),function(){i[this]=!0}),t=i}return t},addMethod:function(t,i,r){e.validator.methods[t]=i,e.validator.messages[t]=void 0!==r?r:e.validator.messages[t],i.length<3&&e.validator.addClassRules(t,e.validator.normalizeRule(t))},methods:{required:function(t,i,r){if(!this.depend(r,i))return"dependency-mismatch";if("select"===i.nodeName.toLowerCase()){var s=e(i).val();return s&&s.length>0}return this.checkable(i)?this.getLength(t,i)>0:null!=t&&t.length>0},email:function(e,t){return this.optional(t)||/^[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])?)*$/.test(e)},url:function(e,t){return this.optional(t)||/^(?:(?:(?:https?|ftp):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})).?)(?::\d{2,5})?(?:[\/?#]\S*)?$/i.test(e)},date:(t=!1,function(e,i){return t||(t=!0,this.settings.debug&&window.console&&console.warn("The `date` method is deprecated and will be removed in version '2.0.0'.\nPlease don't use it, since it relies on the Date constructor, which\nbehaves very differently across browsers and locales. Use `dateISO`\ninstead or one of the locale specific methods in `localizations/`\nand `additional-methods.js`.")),this.optional(i)||!/Invalid|NaN/.test(new Date(e).toString())}),dateISO:function(e,t){return this.optional(t)||/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(e)},number:function(e,t){return this.optional(t)||/^(?:-?\d+|-?\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/.test(e)},digits:function(e,t){return this.optional(t)||/^\d+$/.test(e)},minlength:function(t,i,r){var s=e.isArray(t)?t.length:this.getLength(t,i);return this.optional(i)||s>=r},maxlength:function(t,i,r){var s=e.isArray(t)?t.length:this.getLength(t,i);return this.optional(i)||s<=r},rangelength:function(t,i,r){var s=e.isArray(t)?t.length:this.getLength(t,i);return this.optional(i)||s>=r[0]&&s<=r[1]},min:function(e,t,i){return this.optional(t)||e>=i},max:function(e,t,i){return this.optional(t)||e<=i},range:function(e,t,i){return this.optional(t)||e>=i[0]&&e<=i[1]},step:function(t,i,r){var s,n=e(i).attr("type"),a="Step attribute on input type "+n+" is not supported.",o=new RegExp("\\b"+n+"\\b"),l=n&&!o.test(["text","number","range"].join()),u=function(e){var t=(""+e).match(/(?:\.(\d+))?$/);return t&&t[1]?t[1].length:0},h=function(e){return Math.round(e*Math.pow(10,s))},d=!0;if(l)throw new Error(a);return s=u(r),(u(t)>s||h(t)%h(r)!=0)&&(d=!1),this.optional(i)||d},equalTo:function(t,i,r){var s=e(r);return this.settings.onfocusout&&s.not(".validate-equalTo-blur").length&&s.addClass("validate-equalTo-blur").on("blur.validate-equalTo",function(){e(i).valid()}),t===s.val()},remote:function(t,i,r,s){if(this.optional(i))return"dependency-mismatch";s="string"==typeof s&&s||"remote";var n,a,o,l=this.previousValue(i,s);return this.settings.messages[i.name]||(this.settings.messages[i.name]={}),l.originalMessage=l.originalMessage||this.settings.messages[i.name][s],this.settings.messages[i.name][s]=l.message,r="string"==typeof r&&{url:r}||r,o=e.param(e.extend({data:t},r.data)),l.old===o?l.valid:(l.old=o,n=this,this.startRequest(i),(a={})[i.name]=t,e.ajax(e.extend(!0,{mode:"abort",port:"validate"+i.name,dataType:"json",data:a,context:n.currentForm,success:function(e){var r,a,o,u=!0===e||"true"===e;n.settings.messages[i.name][s]=l.originalMessage,u?(o=n.formSubmitted,n.resetInternals(),n.toHide=n.errorsFor(i),n.formSubmitted=o,n.successList.push(i),n.invalid[i.name]=!1,n.showErrors()):(r={},a=e||n.defaultMessage(i,{method:s,parameters:t}),r[i.name]=l.message=a,n.invalid[i.name]=!0,n.showErrors(r)),l.valid=u,n.stopRequest(i,u)}},r)),"pending")}}});var i,r={};return e.ajaxPrefilter?e.ajaxPrefilter(function(e,t,i){var s=e.port;"abort"===e.mode&&(r[s]&&r[s].abort(),r[s]=i)}):(i=e.ajax,e.ajax=function(t){var s=("mode"in t?t:e.ajaxSettings).mode,n=("port"in t?t:e.ajaxSettings).port;return"abort"===s?(r[n]&&r[n].abort(),r[n]=i.apply(this,arguments),r[n]):i.apply(this,arguments)}),e})?r.apply(t,s):r)||(e.exports=n)},976:function(e,t,i){"use strict";i.r(t);var r=i(2),s=i.n(r),n=(i(333),i(168)),a=8,o=s()(".js-set-password-cb"),l=s()(".js-password-wrapper"),u=l.parents("form"),h=s()(".js-submit-btn"),d=s()(".js-password-input");function c(){return h.prop("disabled",!u.valid()&&"disabled")}function m(){try{return window.TL.BASE_URL}catch(e){return"/"}}function f(){return m()+"users/validate-email"}Object(n.b)();var g=/^.*\/users\/\d+\/edit$/.test(document.URL);0!==o.length||g?0===o.length&&g?(u.validate(Object.assign({},n.d,{rules:{firstName:{minlength:2},lastName:{minlength:2},phoneNumber:{minlength:4,hasNumber:!0},email:{minlength:5,remote:f()},password:{minlength:a,hasUppercaseLetter:!0,hasLowercaseLetter:!0,hasNumber:!0,hasSpecialChar:!0},confirmPassword:{equalTo:"#password"}},ignore:"#password:blank,input:blank:not(.js-password-input)"})),d.on("keyup blur",c)):function(){var e=Object.assign({},n.d,{rules:{username:{required:!0,minlength:3,remote:m()+"users/validate-username"},firstName:{required:!0,minlength:2},lastName:{required:!0,minlength:2},email:{required:!0,minlength:5,remote:f()},phoneNumber:{required:!0,minlength:4,hasNumber:!0},password:{required:!0,minlength:a,hasUppercaseLetter:!0,hasLowercaseLetter:!0,hasNumber:!0,hasSpecialChar:!0},confirmPassword:{required:!0,equalTo:"#password"}},ignore:":hidden,:disabled"});function t(){o.prop("checked")?(l.hide(),d.removeAttr("required")):(l.show(),d.attr("required","required"))}u.validate(e),t(),o.prop("disabled")?(o.prop("checked",!1),l.show(),d.attr("required","required")):o.change(t)}():(u.validate(Object.assign({},n.d,{rules:{password:{required:!0,minlength:a,hasUppercaseLetter:!0,hasLowercaseLetter:!0,hasNumber:!0,hasSpecialChar:!0},confirmPassword:{required:!0,equalTo:"#password"}}})),d.on("keyup blur",c))}});
  //# sourceMappingURL=users-password.bundle.js.map