芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/thefirstcookout.com/support/plugins/bootstrapValidation/js/bootstrapValidator.min.js
/** * BootstrapValidator (http://bootstrapvalidator.com) * * The best jQuery plugin to validate form fields. Designed to use with Bootstrap 3 * * @version v0.5.0-dev * @author https://twitter.com/nghuuphuoc * @copyright (c) 2013 - 2014 Nguyen Huu Phuoc * @license MIT */ !function(t){var r=function(e,a){this.$form=t(e),this.options=t.extend({},r.DEFAULT_OPTIONS,a),this.$invalidFields=t([]),this.$submitButton=null,this.STATUS_NOT_VALIDATED="NOT_VALIDATED",this.STATUS_VALIDATING="VALIDATING",this.STATUS_INVALID="INVALID",this.STATUS_VALID="VALID";var s=function(){for(var t=3,r=document.createElement("div"),e=r.all||[];r.innerHTML="",e[0];);return t>4?t:!t}(),i=document.createElement("div");this._changeEvent=9!==s&&"oninput"in i?"input":"keyup",this._submitIfValid=null,this._cacheFields={},this._init()};r.DEFAULT_OPTIONS={elementClass:"bv-form",message:"This value is not valid",container:null,threshold:null,excluded:[":disabled",":hidden",":not(:visible)"],feedbackIcons:{valid:null,invalid:null,validating:null},submitButtons:'[type="submit"]',submitHandler:null,live:"enabled",onError:null,fields:{}},r.prototype={constructor:r,_init:function(){var r=this,e={excluded:this.$form.attr("data-bv-excluded"),trigger:this.$form.attr("data-bv-trigger"),message:this.$form.attr("data-bv-message"),container:this.$form.attr("data-bv-container"),submitButtons:this.$form.attr("data-bv-submitbuttons"),threshold:this.$form.attr("data-bv-threshold"),live:this.$form.attr("data-bv-live"),fields:{},feedbackIcons:{valid:this.$form.attr("data-bv-feedbackicons-valid"),invalid:this.$form.attr("data-bv-feedbackicons-invalid"),validating:this.$form.attr("data-bv-feedbackicons-validating")}};this.$form.attr("novalidate","novalidate").addClass(this.options.elementClass).on("submit.bv",function(t){t.preventDefault(),r.validate()}).on("click.bv",this.options.submitButtons,function(){r.$submitButton=t(this),r._submitIfValid=!0}).find("[name], [data-bv-field]").each(function(){var a=t(this);if(!r._isExcluded(a)){var s=a.attr("name")||a.attr("data-bv-field"),i=r._parseOptions(a);i&&(a.attr("data-bv-field",s),e.fields[s]=t.extend({},i,e.fields[s]))}}),this.options=t.extend(!0,this.options,e);for(var a in this.options.fields)this._initField(a);this.$form.trigger(t.Event("init.form.bv"),{options:this.options})},_parseOptions:function(r){var e,a,s,i,n,o,l,u=r.attr("name")||r.attr("data-bv-field"),d={};for(a in t.fn.bootstrapValidator.validators)if(e=t.fn.bootstrapValidator.validators[a],s=r.attr("data-bv-"+a.toLowerCase())+"",l="function"==typeof e.enableByHtml5?e.enableByHtml5(r):null,l&&"false"!=s||l!==!0&&(""==s||"true"==s)){e.html5Attributes=e.html5Attributes||{message:"message"},d[a]=t.extend({},1==l?{}:l,d[a]);for(o in e.html5Attributes)i=e.html5Attributes[o],n=r.attr("data-bv-"+a.toLowerCase()+"-"+o),n&&("true"==n?n=!0:"false"==n&&(n=!1),d[a][i]=n)}var f={feedbackIcons:r.attr("data-bv-feedbackicons"),trigger:r.attr("data-bv-trigger"),message:r.attr("data-bv-message"),container:r.attr("data-bv-container"),selector:r.attr("data-bv-selector"),threshold:r.attr("data-bv-threshold"),validators:d},c=t.isEmptyObject(f),h=t.isEmptyObject(d);return!h||!c&&this.options.fields[u]?(f.validators=d,f):null},_initField:function(r){var e=t([]);switch(typeof r){case"object":e=r,r=r.attr("data-bv-field");break;case"string":e=this.getFieldElements(r),e.attr("data-bv-field",r)}if(null!=this.options.fields[r]&&null!=this.options.fields[r].validators){if(0==e.length)return void delete this.options.fields[r];for(var a in this.options.fields[r].validators)t.fn.bootstrapValidator.validators[a]||delete this.options.fields[r].validators[a];null==this.options.fields[r].enabled&&(this.options.fields[r].enabled=!0);for(var s=this,i=e.length,n=e.attr("type"),o=1==i||"radio"==n||"checkbox"==n,l=0;i>l;l++){var u=e.eq(l),d=u.parents(".form-group"),f=this.options.fields[r].container||this.options.container,c=f&&"tooltip"!=f&&"popover"!=f?t(f):this._getMessageContainer(u);f&&"tooltip"!=f&&"popover"!=f&&c.addClass("has-error"),c.find('.help-block[data-bv-validator][data-bv-for="'+r+'"]').remove(),d.find('i[data-bv-icon-for="'+r+'"]').remove();var h="radio"==n||"checkbox"==n||"file"==n||"SELECT"==u.get(0).tagName?"change":this._changeEvent;u.off(h+".update.bv").on(h+".update.bv",function(){s._submitIfValid=!1,s.updateStatus(t(this),s.STATUS_NOT_VALIDATED)}),u.data("bv.messages",c);for(var a in this.options.fields[r].validators)u.data("bv.result."+a,this.STATUS_NOT_VALIDATED),o&&l!=i-1||t("
").css("display","none").addClass("help-block").attr("data-bv-validator",a).attr("data-bv-for",r).attr("data-bv-result",this.STATUS_NOT_VALIDATED).html(this.options.fields[r].validators[a].message||this.options.fields[r].message||this.options.message).appendTo(c);if(this.options.fields[r].feedbackIcons!==!1&&"false"!==this.options.fields[r].feedbackIcons&&this.options.feedbackIcons&&this.options.feedbackIcons.validating&&this.options.feedbackIcons.invalid&&this.options.feedbackIcons.valid&&(!o||l==i-1)&&(d.removeClass("has-success").removeClass("has-error").addClass("has-feedback"),"checkbox"!=u.attr("type")&&"radio"!=u.attr("type"))){var v=t("
").css("display","none").addClass("form-control-feedback").attr("data-bv-icon-for",r).insertAfter(u);if(0==d.find("label").length&&v.css("top",0),0!=d.find(".input-group-addon").length){try{height=d.find(".input-group-addon")[0].height,height/=2}catch(p){}v.css({top:height,"z-index":100})}}}var b=this.options.fields[r].trigger||this.options.trigger||h,A=t.map(b.split(" "),function(t){return t+".live.bv"}).join(" ");switch(this.options.live){case"submitted":break;case"disabled":e.off(A);break;case"enabled":default:e.off(A).on(A,function(){s._exceedThreshold(t(this))&&s.validateField(t(this))})}this.$form.trigger(t.Event("init.field.bv"),{field:r,element:e})}},_getMessageContainer:function(t){var r=t.parent();if(r.hasClass("form-group"))return r;var e=r.attr("class");if(!e)return this._getMessageContainer(r);e=e.split(" ");for(var a=e.length,s=0;a>s;s++)if(/^col-(xs|sm|md|lg)-\d+$/.test(e[s])||/^col-(xs|sm|md|lg)-offset-\d+$/.test(e[s]))return r;return this._getMessageContainer(r)},_submit:function(){var r=this.isValid(),e=r?"success.form.bv":"error.form.bv",a=t.Event(e);this.$form.trigger(a),this.$submitButton&&(r?this._onSuccess(a):this._onError(a))},_isExcluded:function(r){if(this.options.excluded){"string"==typeof this.options.excluded&&(this.options.excluded=t.map(this.options.excluded.split(","),function(r){return t.trim(r)}));for(var e=this.options.excluded.length,a=0;e>a;a++)if("string"==typeof this.options.excluded[a]&&r.is(this.options.excluded[a])||"function"==typeof this.options.excluded[a]&&1==this.options.excluded[a].call(this,r,this))return!0}return!1},_exceedThreshold:function(r){var e=r.attr("data-bv-field"),a=this.options.fields[e].threshold||this.options.threshold;if(!a)return!0;var s=-1!=t.inArray(r.attr("type"),["button","checkbox","file","hidden","image","radio","reset","submit"]);return s||r.val().length>=a},_onError:function(r){if(!r.isDefaultPrevented()){try{this.options.onError&&this.options.onError()}catch(r){console.log(r.message)}if("submitted"==this.options.live){this.options.live="enabled";var e=this;for(var a in this.options.fields)!function(r){var s=e.getFieldElements(r);if(s.length){var i=t(s[0]).attr("type"),n="radio"==i||"checkbox"==i||"file"==i||"SELECT"==t(s[0]).get(0).tagName?"change":e._changeEvent,o=e.options.fields[a].trigger||e.options.trigger||n,l=t.map(o.split(" "),function(t){return t+".live.bv"}).join(" ");s.off(l).on(l,function(){e._exceedThreshold(t(this))&&e.validateField(t(this))})}}(a)}var s=this.$invalidFields.eq(0);if(s){var i,n=s.parents(".tab-pane");n&&(i=n.attr("id"))&&t('a[href="#'+i+'"][data-toggle="tab"]').tab("show"),s.focus()}}},_onSuccess:function(t){t.isDefaultPrevented()||(this.options.submitHandler&&"function"==typeof this.options.submitHandler?this.options.submitHandler.call(this,this,this.$form):this.disableSubmitButtons(!0).defaultSubmit())},_onFieldValidated:function(r,e){var a=r.attr("data-bv-field"),s=this.options.fields[a].validators,i={},n=0;if(e){var o={field:a,element:r,validator:e};switch(r.data("bv.result."+e)){case this.STATUS_INVALID:this.$form.trigger(t.Event("error.validator.bv"),o);break;case this.STATUS_VALID:this.$form.trigger(t.Event("success.validator.bv"),o)}}i[this.STATUS_NOT_VALIDATED]=0,i[this.STATUS_VALIDATING]=0,i[this.STATUS_INVALID]=0,i[this.STATUS_VALID]=0;for(var l in s){n++;var u=r.data("bv.result."+l);u&&i[u]++}i[this.STATUS_VALID]==n?(this.$invalidFields=this.$invalidFields.not(r),this.$form.trigger(t.Event("success.field.bv"),{field:a,element:r})):0==i[this.STATUS_NOT_VALIDATED]&&0==i[this.STATUS_VALIDATING]&&i[this.STATUS_INVALID]>0&&(this.$invalidFields=this.$invalidFields.add(r),this.$form.trigger(t.Event("error.field.bv"),{field:a,element:r}))},getFieldElements:function(r){return this._cacheFields[r]||(this._cacheFields[r]=this.options.fields[r]&&this.options.fields[r].selector?t(this.options.fields[r].selector):this.$form.find('[name="'+r+'"]')),this._cacheFields[r]},disableSubmitButtons:function(t){return t?"disabled"!=this.options.live&&this.$form.find(this.options.submitButtons).attr("disabled","disabled"):this.$form.find(this.options.submitButtons).removeAttr("disabled"),this},validate:function(){if(!this.options.fields)return this;this.disableSubmitButtons(!0);for(var t in this.options.fields)this.validateField(t);return this._submit(),this},validateField:function(r){var e,a=t([]);switch(typeof r){case"object":a=r,r=r.attr("data-bv-field");break;case"string":a=this.getFieldElements(r)}if(this.options.fields[r]&&0==this.options.fields[r].enabled)return this;for(var s,i,n=this,e=a.attr("type"),o="radio"==e||"checkbox"==e?1:a.length,l="radio"==e||"checkbox"==e,u=this.options.fields[r].validators,d=0;o>d;d++){var f=a.eq(d);if(!this._isExcluded(f))for(s in u){f.data("bv.dfs."+s)&&f.data("bv.dfs."+s).reject();var c=f.data("bv.result."+s);c!=this.STATUS_VALID&&c!=this.STATUS_INVALID?(f.data("bv.result."+s,this.STATUS_VALIDATING),i=t.fn.bootstrapValidator.validators[s].validate(this,f,u[s]),"object"==typeof i?(this.updateStatus(l?r:f,this.STATUS_VALIDATING,s),f.data("bv.dfs."+s,i),i.done(function(t,r,e,a){t.removeData("bv.dfs."+r),a&&f.data("bv.messages").find('.help-block[data-bv-validator="'+r+'"][data-bv-for="'+t.attr("data-bv-field")+'"]').html(a),n.updateStatus(l?t.attr("data-bv-field"):t,e?n.STATUS_VALID:n.STATUS_INVALID,r),e&&1==n._submitIfValid&&n._submit()})):"boolean"==typeof i&&this.updateStatus(l?r:f,i?this.STATUS_VALID:this.STATUS_INVALID,s)):this._onFieldValidated(f,s)}}return this},updateStatus:function(r,e,a){var s,i=t([]);switch(typeof r){case"object":i=r,r=r.attr("data-bv-field");break;case"string":i=this.getFieldElements(r)}for(var n=this,s=i.attr("type"),o="radio"==s||"checkbox"==s?1:i.length,l=0;o>l;l++){var u=i.eq(l),d=u.parents(".form-group"),f=u.data("bv.messages"),c=f.find('.help-block[data-bv-validator][data-bv-for="'+r+'"]'),h=a?c.filter('[data-bv-validator="'+a+'"]'):c,v=d.find('.form-control-feedback[data-bv-icon-for="'+r+'"]'),p=this.options.fields[r].container||this.options.container,b=null;if(a)u.data("bv.result."+a,e);else for(var A in this.options.fields[r].validators)u.data("bv.result."+A,e);h.attr("data-bv-result",e);var m,g,I=u.parents(".tab-pane");switch(I&&(m=I.attr("id"))&&(g=t('a[href="#'+m+'"][data-toggle="tab"]').parent()),e){case this.STATUS_VALIDATING:b=null,this.disableSubmitButtons(!0),d.removeClass("has-success").removeClass("has-error"),v&&v.removeClass(this.options.feedbackIcons.valid).removeClass(this.options.feedbackIcons.invalid).addClass(this.options.feedbackIcons.validating).show(),g&&g.removeClass("bv-tab-success").removeClass("bv-tab-error");break;case this.STATUS_INVALID:b=!1,this.disableSubmitButtons(!0),d.removeClass("has-success").addClass("has-error"),v&&v.removeClass(this.options.feedbackIcons.valid).removeClass(this.options.feedbackIcons.validating).addClass(this.options.feedbackIcons.invalid).show(),g&&g.removeClass("bv-tab-success").addClass("bv-tab-error");break;case this.STATUS_VALID:b=0==c.filter('[data-bv-result="'+this.STATUS_NOT_VALIDATED+'"]').length?c.filter('[data-bv-result="'+this.STATUS_VALID+'"]').length==c.length:null,null!=b&&(this.disableSubmitButtons(this.$submitButton?!this.isValid():!b),v&&v.removeClass(this.options.feedbackIcons.invalid).removeClass(this.options.feedbackIcons.validating).removeClass(this.options.feedbackIcons.valid).addClass(b?this.options.feedbackIcons.valid:this.options.feedbackIcons.invalid).show()),d.removeClass("has-error has-success").addClass(this.isValidContainer(d)?"has-success":"has-error"),g&&g.removeClass("bv-tab-success").removeClass("bv-tab-error").addClass(this.isValidContainer(I)?"bv-tab-success":"bv-tab-error");break;case this.STATUS_NOT_VALIDATED:default:b=null,this.disableSubmitButtons(!1),d.removeClass("has-success").removeClass("has-error"),v&&v.removeClass(this.options.feedbackIcons.valid).removeClass(this.options.feedbackIcons.invalid).removeClass(this.options.feedbackIcons.validating).hide(),g&&g.removeClass("bv-tab-success").removeClass("bv-tab-error")}switch(!0){case v&&"tooltip"==p:b===!1?v.css("cursor","pointer").tooltip("destroy").tooltip({html:!0,placement:"top",title:c.filter('[data-bv-result="'+n.STATUS_INVALID+'"]').eq(0).html()}):v.css("cursor","").tooltip("destroy");break;case v&&"popover"==p:b===!1?v.css("cursor","pointer").popover("destroy").popover({content:c.filter('[data-bv-result="'+n.STATUS_INVALID+'"]').eq(0).html(),html:!0,placement:"top",trigger:"hover click"}):v.css("cursor","").popover("destroy");break;default:e==this.STATUS_INVALID?h.show():h.hide()}this.$form.trigger(t.Event("status.field.bv"),{field:r,element:u,status:e}),this._onFieldValidated(u,a)}return this},isValid:function(){for(var t in this.options.fields)if(!this.isValidField(t))return!1;return!0},isValidField:function(r){var e=t([]);switch(typeof r){case"object":e=r,r=r.attr("data-bv-field");break;case"string":e=this.getFieldElements(r)}if(0==e.length||null==this.options.fields[r]||0==this.options.fields[r].enabled)return!0;for(var a,s,i,n=e.attr("type"),o="radio"==n||"checkbox"==n?1:e.length,l=0;o>l;l++)if(a=e.eq(l),!this._isExcluded(a))for(s in this.options.fields[r].validators)if(i=a.data("bv.result."+s),i!=this.STATUS_VALID)return!1;return!0},isValidContainer:function(r){var e=this,a={};r.find("[data-bv-field]").each(function(){var r=t(this).attr("data-bv-field");a[r]||(a[r]=t(this))});for(var s in a){var i=a[s];if(0!=i.data("bv.messages").find('.help-block[data-bv-validator][data-bv-for="'+s+'"]').filter(function(){var r=t(this).attr("data-bv-validator");return i.data("bv.result."+r)&&i.data("bv.result."+r)!=e.STATUS_VALID}).length)return!1}return!0},defaultSubmit:function(){this.$submitButton&&t("
").attr("type","hidden").attr("data-bv-submit-hidden","").attr("name",this.$submitButton.attr("name")).val(this.$submitButton.val()).appendTo(this.$form),this.$form.off("submit.bv").submit()},getInvalidFields:function(){return this.$invalidFields},getSubmitButton:function(){return this.$submitButton},getErrors:function(r){var e=this,a=[],s=t([]);switch(!0){case r&&"object"==typeof r:s=r;break;case r&&"string"==typeof r:var i=this.getFieldElements(r);if(i.length>0){var n=i.attr("type");s="radio"==n||"checkbox"==n?i.eq(0):i}break;default:s=this.$invalidFields}return s.each(function(){a=a.concat(t(this).data("bv.messages").find('.help-block[data-bv-for="'+t(this).attr("data-bv-field")+'"][data-bv-result="'+e.STATUS_INVALID+'"]').map(function(){return t(this).html()}).get())}),a},addField:function(r,e){var a=t([]);switch(typeof r){case"object":a=r,r=r.attr("data-bv-field")||r.attr("name");break;case"string":delete this._cacheFields[r],a=this.getFieldElements(r)}a.attr("data-bv-field",r);for(var s=a.attr("type"),i="radio"==s||"checkbox"==s?1:a.length,n=0;i>n;n++){var o=a.eq(n),l=this._parseOptions(o);l=null==l?e:t.extend(!0,e,l),this.options.fields[r]=t.extend(!0,this.options.fields[r],l),this._cacheFields[r]=this._cacheFields[r]?this._cacheFields[r].add(o):o,this._initField("checkbox"==s||"radio"==s?r:o)}return this.disableSubmitButtons(!1),this.$form.trigger(t.Event("added.field.bv"),{field:r,element:a,options:this.options.fields[r]}),this},removeField:function(r){var e=t([]);switch(typeof r){case"object":e=r,r=r.attr("data-bv-field")||r.attr("name"),e.attr("data-bv-field",r);break;case"string":e=this.getFieldElements(r)}if(0==e.length)return this;for(var a=e.attr("type"),s="radio"==a||"checkbox"==a?1:e.length,i=0;s>i;i++){var n=e.eq(i);this.$invalidFields=this.$invalidFields.not(n),this._cacheFields[r]=this._cacheFields[r].not(n)}return this._cacheFields[r]&&0!=this._cacheFields[r].length||delete this.options.fields[r],("checkbox"==a||"radio"==a)&&this._initField(r),this.disableSubmitButtons(!1),this.$form.trigger(t.Event("removed.field.bv"),{field:r,element:e}),this},resetForm:function(r){var e,a,s,i,n;for(e in this.options.fields){a=this.getFieldElements(e),s=a.length;for(var o=0;s>o;o++)for(n in this.options.fields[e].validators)a.eq(o).removeData("bv.dfs."+n);this.updateStatus(e,this.STATUS_NOT_VALIDATED),r&&(i=a.attr("type"),"radio"==i||"checkbox"==i?a.removeAttr("checked").removeAttr("selected"):a.val(""))}return this.$invalidFields=t([]),this.$submitButton=null,this.disableSubmitButtons(!1),this},enableFieldValidators:function(t,r){return this.options.fields[t].enabled=r,this.updateStatus(t,this.STATUS_NOT_VALIDATED),this},destroy:function(){var t,r,e,a,s,i;for(t in this.options.fields){r=this.getFieldElements(t),i=this.options.fields[t].container||this.options.container;for(var n=0;n
t||t>9999||0==r||r>12)return!1;var s=[31,28,31,30,31,30,31,31,30,31,30,31];if((t%400==0||t%100!=0&&t%4==0)&&(s[1]=29),0>e||e>s[r-1])return!1;if(a===!0){var i=new Date,n=i.getFullYear(),o=i.getMonth(),l=i.getDate();return n>t||t==n&&o>r-1||t==n&&r-1==o&&l>e}return!0},luhn:function(t){for(var r=t.length,e=0,a=[[0,1,2,3,4,5,6,7,8,9],[0,2,4,6,8,1,3,5,7,9]],s=0;r--;)s+=a[e][parseInt(t.charAt(r),10)],e^=1;return s%10===0&&s>0},mod_11_10:function(t){for(var r=5,e=t.length,a=0;e>a;a++)r=(2*(r||10)%11+parseInt(t.charAt(a),10))%10;return 1==r},mod_37_36:function(t,r){r=r||"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";for(var e=r.length,a=t.length,s=Math.floor(e/2),i=0;a>i;i++)s=(2*(s||e)%(e+1)+r.indexOf(t.charAt(i)))%e;return 1==s}}}(window.jQuery),function(t){t.fn.bootstrapValidator.validators.base64={validate:function(t,r,e){var a=r.val();return""==a?!0:/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=|[A-Za-z0-9+\/]{4})$/.test(a)}}}(window.jQuery),function(t){t.fn.bootstrapValidator.validators.between={html5Attributes:{message:"message",min:"min",max:"max",inclusive:"inclusive"},enableByHtml5:function(t){return"range"==t.attr("type")?{min:t.attr("min"),max:t.attr("max")}:!1},validate:function(t,r,e){var a=r.val();return""==a?!0:(a=parseFloat(a),e.inclusive===!0||void 0==e.inclusive?a>=e.min&&a<=e.max:a>e.min&&a
e.max?!1:!0}}}(window.jQuery),function(t){t.fn.bootstrapValidator.validators.creditCard={validate:function(r,e,a){var s=e.val();if(""==s)return!0;if(/[^0-9-\s]+/.test(s))return!1;if(s=s.replace(/\D/g,""),!t.fn.bootstrapValidator.helpers.luhn(s))return!1;var i,n,o={AMERICAN_EXPRESS:{length:[15],prefix:["34","37"]},DINERS_CLUB:{length:[14],prefix:["300","301","302","303","304","305","36"]},DINERS_CLUB_US:{length:[16],prefix:["54","55"]},DISCOVER:{length:[16],prefix:["6011","622126","622127","622128","622129","62213","62214","62215","62216","62217","62218","62219","6222","6223","6224","6225","6226","6227","6228","62290","62291","622920","622921","622922","622923","622924","622925","644","645","646","647","648","649","65"]},JCB:{length:[16],prefix:["3528","3529","353","354","355","356","357","358"]},LASER:{length:[16,17,18,19],prefix:["6304","6706","6771","6709"]},MAESTRO:{length:[12,13,14,15,16,17,18,19],prefix:["5018","5020","5038","6304","6759","6761","6762","6763","6764","6765","6766"]},MASTERCARD:{length:[16],prefix:["51","52","53","54","55"]},SOLO:{length:[16,18,19],prefix:["6334","6767"]},UNIONPAY:{length:[16,17,18,19],prefix:["622126","622127","622128","622129","62213","62214","62215","62216","62217","62218","62219","6222","6223","6224","6225","6226","6227","6228","62290","62291","622920","622921","622922","622923","622924","622925"]},VISA:{length:[16],prefix:["4"]}};for(i in o)for(n in o[i].prefix)if(s.substr(0,o[i].prefix[n].length)==o[i].prefix[n]&&-1!=t.inArray(s.length,o[i].length))return!0;return!1}}}(window.jQuery),function(t){t.fn.bootstrapValidator.validators.cusip={validate:function(r,e,a){var s=e.val();if(""==s)return!0;if(s=s.toUpperCase(),!/^[0-9A-Z]{9}$/.test(s))return!1;for(var i=t.map(s.split(""),function(t){var r=t.charCodeAt(0);return r>="A".charCodeAt(0)&&r<="Z".charCodeAt(0)?r-"A".charCodeAt(0)+10:t}),n=i.length,o=0,l=0;n-1>l;l++){var u=parseInt(i[l]);l%2!=0&&(u*=2),u>9&&(u-=9),o+=u}return o=(10-o%10)%10,o==i[n-1]}}}(window.jQuery),function(t){t.fn.bootstrapValidator.validators.cvv={html5Attributes:{message:"message",ccfield:"creditCardField"},validate:function(r,e,a){var s=e.val();if(""==s)return!0;if(!/^[0-9]{3,4}$/.test(s))return!1;if(!a.creditCardField)return!0;var i=r.getFieldElements(a.creditCardField).val();if(""==i)return!0;i=i.replace(/\D/g,"");var n,o,l={AMERICAN_EXPRESS:{length:[15],prefix:["34","37"]},DINERS_CLUB:{length:[14],prefix:["300","301","302","303","304","305","36"]},DINERS_CLUB_US:{length:[16],prefix:["54","55"]},DISCOVER:{length:[16],prefix:["6011","622126","622127","622128","622129","62213","62214","62215","62216","62217","62218","62219","6222","6223","6224","6225","6226","6227","6228","62290","62291","622920","622921","622922","622923","622924","622925","644","645","646","647","648","649","65"]},JCB:{length:[16],prefix:["3528","3529","353","354","355","356","357","358"]},LASER:{length:[16,17,18,19],prefix:["6304","6706","6771","6709"]},MAESTRO:{length:[12,13,14,15,16,17,18,19],prefix:["5018","5020","5038","6304","6759","6761","6762","6763","6764","6765","6766"]},MASTERCARD:{length:[16],prefix:["51","52","53","54","55"]},SOLO:{length:[16,18,19],prefix:["6334","6767"]},UNIONPAY:{length:[16,17,18,19],prefix:["622126","622127","622128","622129","62213","62214","62215","62216","62217","62218","62219","6222","6223","6224","6225","6226","6227","6228","62290","62291","622920","622921","622922","622923","622924","622925"]},VISA:{length:[16],prefix:["4"]}},u=null;for(n in l)for(o in l[n].prefix)if(i.substr(0,l[n].prefix[o].length)==l[n].prefix[o]&&-1!=t.inArray(i.length,l[n].length)){u=n;break}return null==u?!1:"AMERICAN_EXPRESS"==u?4==s.length:3==s.length}}}(window.jQuery),function(t){t.fn.bootstrapValidator.validators.date={html5Attributes:{message:"message",format:"format",separator:"separator"},validate:function(r,e,a){var s=e.val();if(""==s)return!0;a.format=a.format||"MM/DD/YYYY";var i=a.format.split(" "),n=i[0],o=i.length>1?i[1]:null,l=i.length>2?i[2]:null,u=s.split(" "),d=u[0],f=u.length>1?u[1]:null;if(i.length!=u.length)return!1;var c=a.separator;if(c||(c=-1!=d.indexOf("/")?"/":-1!=d.indexOf("-")?"-":null),null==c||-1==d.indexOf(c))return!1;d=d.split(c),n=n.split(c);var h=d[t.inArray("YYYY",n)],v=d[t.inArray("MM",n)],p=d[t.inArray("DD",n)],b=null,A=null,m=null;if(o){if(o=o.split(":"),f=f.split(":"),o.length!=f.length)return!1;if(A=f.length>0?f[0]:null,b=f.length>1?f[1]:null,m=f.length>2?f[2]:null,m&&(m=parseInt(m,10),isNaN(m)||0>m||m>60))return!1;if(A&&(A=parseInt(A,10),isNaN(A)||0>A||A>=24||l&&A>12))return!1;if(b&&(b=parseInt(b,10),isNaN(b)||0>b||b>59))return!1}return p=parseInt(p,10),v=parseInt(v,10),h=parseInt(h,10),t.fn.bootstrapValidator.helpers.date(h,v,p)}}}(window.jQuery),function(t){t.fn.bootstrapValidator.validators.different={html5Attributes:{message:"message",field:"field"},validate:function(t,r,e){var a=r.val();if(""==a)return!0;var s=t.getFieldElements(e.field);return null==s?!0:a!=s.val()?(t.updateStatus(e.field,t.STATUS_VALID,"different"),!0):!1}}}(window.jQuery),function(t){t.fn.bootstrapValidator.validators.digits={validate:function(t,r,e){var a=r.val();return""==a?!0:/^\d+$/.test(a)}}}(window.jQuery),function(t){t.fn.bootstrapValidator.validators.ean={validate:function(t,r,e){var a=r.val();if(""==a)return!0;if(!/^(\d{8}|\d{12}|\d{13})$/.test(a))return!1;for(var s=a.length,i=0,n=8==s?[3,1]:[1,3],o=0;s-1>o;o++)i+=parseInt(a.charAt(o))*n[o%2];return i=10-i%10,i==a.charAt(s-1)}}}(window.jQuery),function(t){t.fn.bootstrapValidator.validators.emailAddress={enableByHtml5:function(t){return"email"==t.attr("type")},validate:function(t,r,e){var a=r.val();if(""==a)return!0;var s=/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;return s.test(a)}}}(window.jQuery),function(t){t.fn.bootstrapValidator.validators.file={html5Attributes:{extension:"extension",maxsize:"maxSize",message:"message",type:"type"},validate:function(r,e,a){var s=e.val();if(""==s)return!0;var i,n=a.extension?a.extension.toLowerCase().split(","):null,o=a.type?a.type.toLowerCase().split(","):null,l=window.File&&window.FileList&&window.FileReader;if(l)for(var u=e.get(0).files,d=u.length,f=0;d>f;f++){if(a.maxSize&&u[f].size>parseInt(a.maxSize))return!1;if(i=u[f].name.substr(u[f].name.lastIndexOf(".")+1),n&&-1==t.inArray(i.toLowerCase(),n))return!1;if(o&&-1==t.inArray(u[f].type.toLowerCase(),o))return!1}else if(i=s.substr(s.lastIndexOf(".")+1),n&&-1==t.inArray(i.toLowerCase(),n))return!1;return!0}}}(window.jQuery),function(t){t.fn.bootstrapValidator.validators.greaterThan={html5Attributes:{message:"message",value:"value",inclusive:"inclusive"},enableByHtml5:function(t){var r=t.attr("min");return r?{value:r}:!1},validate:function(t,r,e){var a=r.val();return""==a?!0:(a=parseFloat(a),e.inclusive===!0||void 0==e.inclusive?a>=e.value:a>e.value)}}}(window.jQuery),function(t){t.fn.bootstrapValidator.validators.grid={validate:function(r,e,a){var s=e.val();return""==s?!0:(s=s.toUpperCase(),/^[GRID:]*([0-9A-Z]{2})[-\s]*([0-9A-Z]{5})[-\s]*([0-9A-Z]{10})[-\s]*([0-9A-Z]{1})$/g.test(s)?(s=s.replace(/\s/g,"").replace(/-/g,""),"GRID:"==s.substr(0,5)&&(s=s.substr(5)),t.fn.bootstrapValidator.helpers.mod_37_36(s)):!1)}}}(window.jQuery),function(t){t.fn.bootstrapValidator.validators.hex={validate:function(t,r,e){var a=r.val();return""==a?!0:/^[0-9a-fA-F]+$/.test(a)}}}(window.jQuery),function(t){t.fn.bootstrapValidator.validators.hexColor={enableByHtml5:function(t){return"color"==t.attr("type")},validate:function(t,r,e){var a=r.val();return""==a?!0:/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(a)}}}(window.jQuery),function(t){t.fn.bootstrapValidator.validators.iban={html5Attributes:{message:"message",country:"country"},validate:function(r,e,a){var s=e.val();if(""==s)return!0;var i={AD:"AD[0-9]{2}[0-9]{4}[0-9]{4}[A-Z0-9]{12}",AE:"AE[0-9]{2}[0-9]{3}[0-9]{16}",AL:"AL[0-9]{2}[0-9]{8}[A-Z0-9]{16}",AO:"AO[0-9]{2}[0-9]{21}",AT:"AT[0-9]{2}[0-9]{5}[0-9]{11}",AZ:"AZ[0-9]{2}[A-Z]{4}[A-Z0-9]{20}",BA:"BA[0-9]{2}[0-9]{3}[0-9]{3}[0-9]{8}[0-9]{2}",BE:"BE[0-9]{2}[0-9]{3}[0-9]{7}[0-9]{2}",BF:"BF[0-9]{2}[0-9]{23}",BG:"BG[0-9]{2}[A-Z]{4}[0-9]{4}[0-9]{2}[A-Z0-9]{8}",BH:"BH[0-9]{2}[A-Z]{4}[A-Z0-9]{14}",BI:"BI[0-9]{2}[0-9]{12}",BJ:"BJ[0-9]{2}[A-Z]{1}[0-9]{23}",BR:"BR[0-9]{2}[0-9]{8}[0-9]{5}[0-9]{10}[A-Z][A-Z0-9]",CH:"CH[0-9]{2}[0-9]{5}[A-Z0-9]{12}",CI:"CI[0-9]{2}[A-Z]{1}[0-9]{23}",CM:"CM[0-9]{2}[0-9]{23}",CR:"CR[0-9]{2}[0-9]{3}[0-9]{14}",CV:"CV[0-9]{2}[0-9]{21}",CY:"CY[0-9]{2}[0-9]{3}[0-9]{5}[A-Z0-9]{16}",CZ:"CZ[0-9]{2}[0-9]{20}",DE:"DE[0-9]{2}[0-9]{8}[0-9]{10}",DK:"DK[0-9]{2}[0-9]{14}",DO:"DO[0-9]{2}[A-Z0-9]{4}[0-9]{20}",DZ:"DZ[0-9]{2}[0-9]{20}",EE:"EE[0-9]{2}[0-9]{2}[0-9]{2}[0-9]{11}[0-9]{1}",ES:"ES[0-9]{2}[0-9]{4}[0-9]{4}[0-9]{1}[0-9]{1}[0-9]{10}",FI:"FI[0-9]{2}[0-9]{6}[0-9]{7}[0-9]{1}",FO:"FO[0-9]{2}[0-9]{4}[0-9]{9}[0-9]{1}",FR:"FR[0-9]{2}[0-9]{5}[0-9]{5}[A-Z0-9]{11}[0-9]{2}",GB:"GB[0-9]{2}[A-Z]{4}[0-9]{6}[0-9]{8}",GE:"GE[0-9]{2}[A-Z]{2}[0-9]{16}",GI:"GI[0-9]{2}[A-Z]{4}[A-Z0-9]{15}",GL:"GL[0-9]{2}[0-9]{4}[0-9]{9}[0-9]{1}",GR:"GR[0-9]{2}[0-9]{3}[0-9]{4}[A-Z0-9]{16}",GT:"GT[0-9]{2}[A-Z0-9]{4}[A-Z0-9]{20}",HR:"HR[0-9]{2}[0-9]{7}[0-9]{10}",HU:"HU[0-9]{2}[0-9]{3}[0-9]{4}[0-9]{1}[0-9]{15}[0-9]{1}",IE:"IE[0-9]{2}[A-Z]{4}[0-9]{6}[0-9]{8}",IL:"IL[0-9]{2}[0-9]{3}[0-9]{3}[0-9]{13}",IR:"IR[0-9]{2}[0-9]{22}",IS:"IS[0-9]{2}[0-9]{4}[0-9]{2}[0-9]{6}[0-9]{10}",IT:"IT[0-9]{2}[A-Z]{1}[0-9]{5}[0-9]{5}[A-Z0-9]{12}",JO:"JO[0-9]{2}[A-Z]{4}[0-9]{4}[0]{8}[A-Z0-9]{10}",KW:"KW[0-9]{2}[A-Z]{4}[0-9]{22}",KZ:"KZ[0-9]{2}[0-9]{3}[A-Z0-9]{13}",LB:"LB[0-9]{2}[0-9]{4}[A-Z0-9]{20}",LI:"LI[0-9]{2}[0-9]{5}[A-Z0-9]{12}",LT:"LT[0-9]{2}[0-9]{5}[0-9]{11}",LU:"LU[0-9]{2}[0-9]{3}[A-Z0-9]{13}",LV:"LV[0-9]{2}[A-Z]{4}[A-Z0-9]{13}",MC:"MC[0-9]{2}[0-9]{5}[0-9]{5}[A-Z0-9]{11}[0-9]{2}",MD:"MD[0-9]{2}[A-Z0-9]{20}",ME:"ME[0-9]{2}[0-9]{3}[0-9]{13}[0-9]{2}",MG:"MG[0-9]{2}[0-9]{23}",MK:"MK[0-9]{2}[0-9]{3}[A-Z0-9]{10}[0-9]{2}",ML:"ML[0-9]{2}[A-Z]{1}[0-9]{23}",MR:"MR13[0-9]{5}[0-9]{5}[0-9]{11}[0-9]{2}",MT:"MT[0-9]{2}[A-Z]{4}[0-9]{5}[A-Z0-9]{18}",MU:"MU[0-9]{2}[A-Z]{4}[0-9]{2}[0-9]{2}[0-9]{12}[0-9]{3}[A-Z]{3}",MZ:"MZ[0-9]{2}[0-9]{21}",NL:"NL[0-9]{2}[A-Z]{4}[0-9]{10}",NO:"NO[0-9]{2}[0-9]{4}[0-9]{6}[0-9]{1}",PK:"PK[0-9]{2}[A-Z]{4}[A-Z0-9]{16}",PL:"PL[0-9]{2}[0-9]{8}[0-9]{16}",PS:"PS[0-9]{2}[A-Z]{4}[A-Z0-9]{21}",PT:"PT[0-9]{2}[0-9]{4}[0-9]{4}[0-9]{11}[0-9]{2}",QA:"QA[0-9]{2}[A-Z]{4}[A-Z0-9]{21}",RO:"RO[0-9]{2}[A-Z]{4}[A-Z0-9]{16}",RS:"RS[0-9]{2}[0-9]{3}[0-9]{13}[0-9]{2}",SA:"SA[0-9]{2}[0-9]{2}[A-Z0-9]{18}",SE:"SE[0-9]{2}[0-9]{3}[0-9]{16}[0-9]{1}",SI:"SI[0-9]{2}[0-9]{5}[0-9]{8}[0-9]{2}",SK:"SK[0-9]{2}[0-9]{4}[0-9]{6}[0-9]{10}",SM:"SM[0-9]{2}[A-Z]{1}[0-9]{5}[0-9]{5}[A-Z0-9]{12}",SN:"SN[0-9]{2}[A-Z]{1}[0-9]{23}",TN:"TN59[0-9]{2}[0-9]{3}[0-9]{13}[0-9]{2}",TR:"TR[0-9]{2}[0-9]{5}[A-Z0-9]{1}[A-Z0-9]{16}",VG:"VG[0-9]{2}[A-Z]{4}[0-9]{16}"};s=s.replace(/[^a-zA-Z0-9]/g,"").toUpperCase();var n=a.country||s.substr(0,2);if(!i[n])return!1;if(!new RegExp("^"+i[n]+"$").test(s))return!1;s=s.substr(4)+s.substr(0,4),s=t.map(s.split(""),function(t){var r=t.charCodeAt(0);return r>="A".charCodeAt(0)&&r<="Z".charCodeAt(0)?r-"A".charCodeAt(0)+10:t}),s=s.join("");for(var o=parseInt(s.substr(0,1),10),l=s.length,u=1;l>u;++u)o=(10*o+parseInt(s.substr(u,1),10))%97;return 1==o}}}(window.jQuery),function(t){ t.fn.bootstrapValidator.validators.id={html5Attributes:{message:"message",country:"country"},validate:function(t,r,e){var a=r.val();if(""==a)return!0;var s=e.country||a.substr(0,2),i=["_",s.toLowerCase()].join("");return this[i]&&"function"==typeof this[i]?this[i](a):!0},_validateJMBG:function(t,r){if(!/^\d{13}$/.test(t))return!1;var e=parseInt(t.substr(0,2),10),a=parseInt(t.substr(2,2),10),s=(parseInt(t.substr(4,3),10),parseInt(t.substr(7,2),10)),i=parseInt(t.substr(12,1),10);if(e>31||a>12)return!1;for(var n=0,o=0;6>o;o++)n+=(7-o)*(parseInt(t.charAt(o))+parseInt(t.charAt(o+6)));if(n=11-n%11,(10==n||11==n)&&(n=0),n!=i)return!1;switch(r.toUpperCase()){case"BA":return s>=10&&19>=s;case"MK":return s>=41&&49>=s;case"ME":return s>=20&&29>=s;case"RS":return s>=70&&99>=s;case"SI":return s>=50&&59>=s;default:return!0}},_ba:function(t){return this._validateJMBG(t,"BA")},_mk:function(t){return this._validateJMBG(t,"MK")},_me:function(t){return this._validateJMBG(t,"ME")},_rs:function(t){return this._validateJMBG(t,"RS")},_si:function(t){return this._validateJMBG(t,"SI")},_bg:function(r){if(!/^\d{10}$/.test(r)&&!/^\d{6}\s\d{3}\s\d{1}$/.test(r))return!1;r=r.replace(/\s/g,"");var e=parseInt(r.substr(0,2),10)+1900,a=parseInt(r.substr(2,2),10),s=parseInt(r.substr(4,2),10);if(a>40?(e+=100,a-=40):a>20&&(e-=100,a-=20),!t.fn.bootstrapValidator.helpers.date(e,a,s))return!1;for(var i=0,n=[2,4,8,5,10,9,7,3,6],o=0;9>o;o++)i+=parseInt(r.charAt(o))*n[o];return i=i%11%10,i==r.substr(9,1)},_br:function(t){if(/^1{11}|2{11}|3{11}|4{11}|5{11}|6{11}|7{11}|8{11}|9{11}|0{11}$/.test(t))return!1;if(!/^\d{11}$/.test(t)&&!/^\d{3}\.\d{3}\.\d{3}-\d{2}$/.test(t))return!1;t=t.replace(/\./g,"").replace(/-/g,"");for(var r=0,e=0;9>e;e++)r+=(10-e)*parseInt(t.charAt(e));if(r=11-r%11,(10==r||11==r)&&(r=0),r!=t.charAt(9))return!1;var a=0;for(e=0;10>e;e++)a+=(11-e)*parseInt(t.charAt(e));return a=11-a%11,(10==a||11==a)&&(a=0),a==t.charAt(10)},_ch:function(t){if(!/^756[\.]{0,1}[0-9]{4}[\.]{0,1}[0-9]{4}[\.]{0,1}[0-9]{2}$/.test(t))return!1;t=t.replace(/\D/g,"").substr(3);for(var r=t.length,e=0,a=8==r?[3,1]:[1,3],s=0;r-1>s;s++)e+=parseInt(t.charAt(s))*a[s%2];return e=10-e%10,e==t.charAt(r-1)},_cl:function(t){if(!/^\d{7,8}[-]{0,1}[0-9K]$/.test(t))return!1;for(t=t.replace(/\D/g,"");t.length<9;)t="0"+t;for(var r=0,e=[3,2,7,6,5,4,3,2],a=0;8>a;a++)r+=parseInt(t.charAt(a))*e[a];return r=11-r%11,11==r?r=0:10==r&&(r="K"),r==t.charAt(8)},_cz:function(r){if(!/^\d{9,10}$/.test(r))return!1;var e=1900+parseInt(r.substr(0,2)),a=parseInt(r.substr(2,2))%50%20,s=parseInt(r.substr(4,2));if(9==r.length){if(e>=1980&&(e-=100),e>1953)return!1}else 1954>e&&(e+=100);if(!t.fn.bootstrapValidator.helpers.date(e,a,s))return!1;if(10==r.length){var i=parseInt(r.substr(0,9),10)%11;return 1985>e&&(i%=10),i==r.substr(9,1)}return!0},_dk:function(r){if(!/^[0-9]{6}[-]{0,1}[0-9]{4}$/.test(r))return!1;r=r.replace(/-/g,"");var e=parseInt(r.substr(0,2),10),a=parseInt(r.substr(2,2),10),s=parseInt(r.substr(4,2),10);switch(!0){case-1!="5678".indexOf(r.charAt(6))&&s>=58:s+=1800;break;case-1!="0123".indexOf(r.charAt(6)):case-1!="49".indexOf(r.charAt(6))&&s>=37:s+=1900;break;default:s+=2e3}return t.fn.bootstrapValidator.helpers.date(s,a,e)},_ee:function(t){return this._lt(t)},_es:function(t){if(!/^[0-9A-Z]{8}[-]{0,1}[0-9A-Z]$/.test(t)&&!/^[XYZ][-]{0,1}[0-9]{7}[-]{0,1}[0-9A-Z]$/.test(t))return!1;t=t.replace(/-/g,"");var r="XYZ".indexOf(t.charAt(0));-1!=r&&(t=r+t.substr(1)+"");var e=parseInt(t.substr(0,8),10);return e="TRWAGMYFPDXBNJZSQVHLCKE"[e%23],e==t.substr(8,1)},_fi:function(r){if(!/^[0-9]{6}[-+A][0-9]{3}[0-9ABCDEFHJKLMNPRSTUVWXY]$/.test(r))return!1;var e=parseInt(r.substr(0,2),10),a=parseInt(r.substr(2,2),10),s=parseInt(r.substr(4,2),10),i={"+":1800,"-":1900,A:2e3};if(s=i[r.charAt(6)]+s,!t.fn.bootstrapValidator.helpers.date(s,a,e))return!1;var n=parseInt(r.substr(7,3));if(2>n)return!1;var o=r.substr(0,6)+r.substr(7,3)+"";return o=parseInt(o),"0123456789ABCDEFHJKLMNPRSTUVWXY".charAt(o%31)==r.charAt(10)},_hr:function(r){return/^[0-9]{11}$/.test(r)?t.fn.bootstrapValidator.helpers.mod_11_10(r):!1},_ie:function(t){if(!/^\d{7}[A-W][AHWTX]?$/.test(t))return!1;var r=function(t){for(;t.length<7;)t="0"+t;for(var r="WABCDEFGHIJKLMNOPQRSTUV",e=0,a=0;7>a;a++)e+=parseInt(t.charAt(a))*(8-a);return e+=9*r.indexOf(t.substr(7)),r[e%23]};return 9!=t.length||"A"!=t.charAt(8)&&"H"!=t.charAt(8)?t.charAt(7)==r(t.substr(0,7)):t.charAt(7)==r(t.substr(0,7)+t.substr(8)+"")},_is:function(r){if(!/^[0-9]{6}[-]{0,1}[0-9]{4}$/.test(r))return!1;r=r.replace(/-/g,"");var e=parseInt(r.substr(0,2),10),a=parseInt(r.substr(2,2),10),s=parseInt(r.substr(4,2),10),i=parseInt(r.charAt(9));if(s=9==i?1900+s:100*(20+i)+s,!t.fn.bootstrapValidator.helpers.date(s,a,e,!0))return!1;for(var n=0,o=[3,2,7,6,5,4,3,2],l=0;8>l;l++)n+=parseInt(r.charAt(l))*o[l];return n=11-n%11,n==r.charAt(8)},_lt:function(r){if(!/^[0-9]{11}$/.test(r))return!1;var e=parseInt(r.charAt(0)),a=parseInt(r.substr(1,2),10),s=parseInt(r.substr(3,2),10),i=parseInt(r.substr(5,2),10),n=e%2==0?17+e/2:17+(e+1)/2;if(a=100*n+a,!t.fn.bootstrapValidator.helpers.date(a,s,i,!0))return!1;for(var o=0,l=[1,2,3,4,5,6,7,8,9,1],u=0;10>u;u++)o+=parseInt(r.charAt(u))*l[u];if(o%=11,10!=o)return o==r.charAt(10);for(o=0,l=[3,4,5,6,7,8,9,1,2,3],u=0;10>u;u++)o+=parseInt(r.charAt(u))*l[u];return o%=11,10==o&&(o=0),o==r.charAt(10)},_lv:function(r){if(!/^[0-9]{6}[-]{0,1}[0-9]{5}$/.test(r))return!1;r=r.replace(/\D/g,"");var e=parseInt(r.substr(0,2)),a=parseInt(r.substr(2,2)),s=parseInt(r.substr(4,2));if(s=s+1800+100*parseInt(r.charAt(6)),!t.fn.bootstrapValidator.helpers.date(s,a,e,!0))return!1;for(var i=0,n=[10,5,8,4,2,1,6,3,7,9],o=0;10>o;o++)i+=parseInt(r.charAt(o))*n[o];return i=(i+1)%11%10,i==r.charAt(10)},_nl:function(t){for(;t.length<9;)t="0"+t;if(!/^[0-9]{4}[.]{0,1}[0-9]{2}[.]{0,1}[0-9]{3}$/.test(t))return!1;if(t=t.replace(/\./g,""),0==parseInt(t,10))return!1;for(var r=0,e=t.length,a=0;e-1>a;a++)r+=(9-a)*parseInt(t.charAt(a));return r%=11,10==r&&(r=0),r==t.charAt(e-1)},_ro:function(r){if(!/^[0-9]{13}$/.test(r))return!1;var e=parseInt(r.charAt(0));if(0==e||7==e||8==e)return!1;var a=parseInt(r.substr(1,2),10),s=parseInt(r.substr(3,2),10),i=parseInt(r.substr(5,2),10),n={1:1900,2:1900,3:1800,4:1800,5:2e3,6:2e3};if(i>31&&s>12)return!1;if(9!=e&&(a=n[e+""]+a,!t.fn.bootstrapValidator.helpers.date(a,s,i)))return!1;for(var o=0,l=[2,7,9,1,4,6,3,5,8,2,7,9],u=r.length,d=0;u-1>d;d++)o+=parseInt(r.charAt(d))*l[d];return o%=11,10==o&&(o=1),o==r.charAt(u-1)},_se:function(r){if(!/^[0-9]{10}$/.test(r)&&!/^[0-9]{6}[-|+][0-9]{4}$/.test(r))return!1;r=r.replace(/[^0-9]/g,"");var e=parseInt(r.substr(0,2))+1900,a=parseInt(r.substr(2,2)),s=parseInt(r.substr(4,2));return t.fn.bootstrapValidator.helpers.date(e,a,s)?t.fn.bootstrapValidator.helpers.luhn(r):!1},_sk:function(t){return this._cz(t)},_sm:function(t){return/^\d{5}$/.test(t)},_za:function(r){if(!/^[0-9]{10}[0|1][8|9][0-9]$/.test(r))return!1;var e=parseInt(r.substr(0,2)),a=(new Date).getFullYear()%100,s=parseInt(r.substr(2,2)),i=parseInt(r.substr(4,2));return e=e>=a?e+1900:e+2e3,t.fn.bootstrapValidator.helpers.date(e,s,i)?t.fn.bootstrapValidator.helpers.luhn(r):!1}}}(window.jQuery),function(t){t.fn.bootstrapValidator.validators.identical={html5Attributes:{message:"message",field:"field"},validate:function(t,r,e){var a=r.val();if(""==a)return!0;var s=t.getFieldElements(e.field);return null==s?!0:a==s.val()?(t.updateStatus(e.field,t.STATUS_VALID,"identical"),!0):!1}}}(window.jQuery),function(t){t.fn.bootstrapValidator.validators.imei={validate:function(r,e,a){var s=e.val();if(""==s)return!0;switch(!0){case/^\d{15}$/.test(s):case/^\d{2}-\d{6}-\d{6}-\d{1}$/.test(s):case/^\d{2}\s\d{6}\s\d{6}\s\d{1}$/.test(s):return s=s.replace(/[^0-9]/g,""),t.fn.bootstrapValidator.helpers.luhn(s);case/^\d{14}$/.test(s):case/^\d{16}$/.test(s):case/^\d{2}-\d{6}-\d{6}(|-\d{2})$/.test(s):case/^\d{2}\s\d{6}\s\d{6}(|\s\d{2})$/.test(s):return!0;default:return!1}}}}(window.jQuery),function(t){t.fn.bootstrapValidator.validators.integer={enableByHtml5:function(t){return"number"==t.attr("type")},validate:function(t,r,e){var a=r.val();return""==a?!0:/^(?:-?(?:0|[1-9][0-9]*))$/.test(a)}}}(window.jQuery),function(t){t.fn.bootstrapValidator.validators.ip={html5Attributes:{message:"message",ipv4:"ipv4",ipv6:"ipv6"},validate:function(r,e,a){var s=e.val();return""==s?!0:(a=t.extend({},{ipv4:!0,ipv6:!0},a),a.ipv4?/^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/.test(s):a.ipv6?/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/.test(str):!1)}}}(window.jQuery),function(t){t.fn.bootstrapValidator.validators.isbn={validate:function(t,r,e){var a=r.val();if(""==a)return!0;var s;switch(!0){case/^\d{9}[\dX]$/.test(a):case 13==a.length&&/^(\d+)-(\d+)-(\d+)-([\dX])$/.test(a):case 13==a.length&&/^(\d+)\s(\d+)\s(\d+)\s([\dX])$/.test(a):s="ISBN10";break;case/^(978|979)\d{9}[\dX]$/.test(a):case 17==a.length&&/^(978|979)-(\d+)-(\d+)-(\d+)-([\dX])$/.test(a):case 17==a.length&&/^(978|979)\s(\d+)\s(\d+)\s(\d+)\s([\dX])$/.test(a):s="ISBN13";break;default:return!1}a=a.replace(/[^0-9X]/gi,"");var i,n=a.split(""),o=n.length,l=0;switch(s){case"ISBN10":l=0;for(var u=0;o-1>u;u++)l+=(10-u)*parseInt(n[u]);return i=11-l%11,11==i?i=0:10==i&&(i="X"),i+""==n[o-1];case"ISBN13":l=0;for(var u=0;o-1>u;u++)l+=u%2==0?parseInt(n[u]):3*parseInt(n[u]);return i=10-l%10,10==i&&(i="0"),i+""==n[o-1];default:return!1}}}}(window.jQuery),function(t){t.fn.bootstrapValidator.validators.isin={COUNTRY_CODES:"AF|AX|AL|DZ|AS|AD|AO|AI|AQ|AG|AR|AM|AW|AU|AT|AZ|BS|BH|BD|BB|BY|BE|BZ|BJ|BM|BT|BO|BQ|BA|BW|BV|BR|IO|BN|BG|BF|BI|KH|CM|CA|CV|KY|CF|TD|CL|CN|CX|CC|CO|KM|CG|CD|CK|CR|CI|HR|CU|CW|CY|CZ|DK|DJ|DM|DO|EC|EG|SV|GQ|ER|EE|ET|FK|FO|FJ|FI|FR|GF|PF|TF|GA|GM|GE|DE|GH|GI|GR|GL|GD|GP|GU|GT|GG|GN|GW|GY|HT|HM|VA|HN|HK|HU|IS|IN|ID|IR|IQ|IE|IM|IL|IT|JM|JP|JE|JO|KZ|KE|KI|KP|KR|KW|KG|LA|LV|LB|LS|LR|LY|LI|LT|LU|MO|MK|MG|MW|MY|MV|ML|MT|MH|MQ|MR|MU|YT|MX|FM|MD|MC|MN|ME|MS|MA|MZ|MM|NA|NR|NP|NL|NC|NZ|NI|NE|NG|NU|NF|MP|NO|OM|PK|PW|PS|PA|PG|PY|PE|PH|PN|PL|PT|PR|QA|RE|RO|RU|RW|BL|SH|KN|LC|MF|PM|VC|WS|SM|ST|SA|SN|RS|SC|SL|SG|SX|SK|SI|SB|SO|ZA|GS|SS|ES|LK|SD|SR|SJ|SZ|SE|CH|SY|TW|TJ|TZ|TH|TL|TG|TK|TO|TT|TN|TR|TM|TC|TV|UG|UA|AE|GB|US|UM|UY|UZ|VU|VE|VN|VG|VI|WF|EH|YE|ZM|ZW",validate:function(t,r,e){var a=r.val();if(""==a)return!0;a=a.toUpperCase();var s=new RegExp("^("+this.COUNTRY_CODES+")[0-9A-Z]{10}$");if(!s.test(a))return!1;for(var i="",n=a.length,o=0;n-1>o;o++){var l=a.charCodeAt(o);i+=l>57?(l-55).toString():a.charAt(o)}var u="",d=i.length,f=d%2!=0?0:1;for(o=0;d>o;o++)u+=parseInt(i[o])*(o%2==f?2:1)+"";var c=0;for(o=0;o
l;l++)n+=parseInt(a.charAt(l))*o[l%2];return n=10-n%10,n==a.charAt(i-1)}}}(window.jQuery),function(t){t.fn.bootstrapValidator.validators.issn={validate:function(t,r,e){var a=r.val();if(""==a)return!0;if(!/^\d{4}\-\d{3}[\dX]$/.test(a))return!1;a=a.replace(/[^0-9X]/gi,"");var s=a.split(""),i=s.length,n=0;"X"==s[7]&&(s[7]=10);for(var o=0;i>o;o++)n+=(8-o)*parseInt(s[o]);return n%11==0}}}(window.jQuery),function(t){t.fn.bootstrapValidator.validators.lessThan={html5Attributes:{message:"message",value:"value",inclusive:"inclusive"},enableByHtml5:function(t){var r=t.attr("max");return r?{value:r}:!1},validate:function(t,r,e){var a=r.val();return""==a?!0:(a=parseFloat(a),e.inclusive===!0||void 0==e.inclusive?a<=e.value:a
0:""!=t.trim(e.val())}}}(window.jQuery),function(t){t.fn.bootstrapValidator.validators.numeric={html5Attributes:{message:"message",separator:"separator"},validate:function(t,r,e){var a=r.val();if(""==a)return!0;var s=e.separator||".";return"."!=s&&(a=a.replace(s,".")),!isNaN(parseFloat(a))&&isFinite(a)}}}(window.jQuery),function(t){t.fn.bootstrapValidator.validators.phone={html5Attributes:{message:"message",country:"country"},validate:function(r,e,a){var s=e.val();if(""==s)return!0;var i=(a.country||"US").toUpperCase();switch(i){case"GB":return s=t.trim(s),/^\(?(?:(?:0(?:0|11)\)?[\s-]?\(?|\+)44\)?[\s-]?\(?(?:0\)?[\s-]?\(?)?|0)(?:\d{2}\)?[\s-]?\d{4}[\s-]?\d{4}|\d{3}\)?[\s-]?\d{3}[\s-]?\d{3,4}|\d{4}\)?[\s-]?(?:\d{5}|\d{3}[\s-]?\d{3})|\d{5}\)?[\s-]?\d{4,5}|8(?:00[\s-]?11[\s-]?11|45[\s-]?46[\s-]?4\d))(?:(?:[\s-]?(?:x|ext\.?\s?|\#)\d+)?)$/.test(s);case"US":default:return s=s.replace(/\D/g,""),/^(?:(1\-?)|(\+1 ?))?\(?(\d{3})[\)\-\.]?(\d{3})[\-\.]?(\d{4})$/.test(s)&&10==s.length}}}}(window.jQuery),function(t){t.fn.bootstrapValidator.validators.regexp={html5Attributes:{message:"message",regexp:"regexp"},enableByHtml5:function(t){var r=t.attr("pattern");return r?{regexp:r}:!1},validate:function(t,r,e){var a=r.val();if(""==a)return!0;var s="string"==typeof e.regexp?new RegExp(e.regexp):e.regexp;return s.test(a)}}}(window.jQuery),function(t){t.fn.bootstrapValidator.validators.remote={html5Attributes:{message:"message",url:"url",name:"name"},validate:function(r,e,a){var s=e.val();if(""==s)return!0;var i=e.attr("data-bv-field"),n=a.data;null==n&&(n={}),"function"==typeof n&&(n=n.call(this,r)),n[a.name||i]=s;try{n=set_csrf_param(n)}catch(o){}var l=new t.Deferred,u=t.ajax({type:"POST",url:a.url,beforeSend:function(){e.closest(".form-group").addClass("bv-remote-loading")},complete:function(){e.closest(".form-group").removeClass("bv-remote-loading")},dataType:"json",data:n});return u.then(function(t){l.resolve(e,"remote",t.valid===!0||"true"===t.valid,t.message?t.message:null)}),l.fail(function(){u.abort()}),l}}}(window.jQuery),function(t){t.fn.bootstrapValidator.validators.rtn={validate:function(t,r,e){var a=r.val();if(""==a)return!0;if(!/^\d{9}$/.test(a))return!1;for(var s=0,i=0;i
o;o++)s+=i[o]*parseInt(a.charAt(o),36);return s=(10-s%10)%10,s==a.charAt(n-1)}}}(window.jQuery),function(t){t.fn.bootstrapValidator.validators.siren={validate:function(r,e,a){var s=e.val();return""==s?!0:/^\d{9}$/.test(s)?t.fn.bootstrapValidator.helpers.luhn(s):!1}}}(window.jQuery),function(t){t.fn.bootstrapValidator.validators.siret={validate:function(t,r,e){var a=r.val();if(""==a)return!0;for(var s,i=0,n=a.length,o=0;n>o;o++)s=parseInt(a.charAt(o),10),o%2==0&&(s=2*s,s>9&&(s-=9)),i+=s;return i%10==0}}}(window.jQuery),function(t){t.fn.bootstrapValidator.validators.step={html5Attributes:{message:"message",base:"baseValue",step:"step"},validate:function(r,e,a){var s=e.val();if(""==s)return!0;if(a=t.extend({},{baseValue:0,step:1},a),s=parseFloat(s),isNaN(s)||!isFinite(s))return!1;var i=function(t,r){var e=Math.pow(10,r);t*=e;var a=t>0|-(0>t),s=t%1===.5*a;return s?(Math.floor(t)+(a>0))/e:Math.round(t)/e},n=function(t,r){if(0==r)return 1;var e=(t+"").split("."),a=(r+"").split("."),s=(1==e.length?0:e[1].length)+(1==a.length?0:a[1].length);return i(t-r*Math.floor(t/r),s)},o=n(s-a.baseValue,a.step);return 0==o||o==a.step}}}(window.jQuery),function(t){t.fn.bootstrapValidator.validators.stringCase={html5Attributes:{message:"message","case":"case"},validate:function(t,r,e){var a=r.val();if(""==a)return!0;var s=(e["case"]||"lower").toLowerCase();switch(s){case"upper":return a===a.toUpperCase();case"lower":default:return a===a.toLowerCase()}}}}(window.jQuery),function(t){t.fn.bootstrapValidator.validators.stringLength={html5Attributes:{message:"message",min:"min",max:"max"},enableByHtml5:function(t){var r=t.attr("maxlength");return r?{max:parseInt(r,10)}:!1},validate:function(r,e,a){var s=e.val();if(""==s)return!0;var i=t.trim(s).length;return a.min&&i
a.max?!1:!0}}}(window.jQuery),function(t){t.fn.bootstrapValidator.validators.uri={enableByHtml5:function(t){return"url"==t.attr("type")},validate:function(t,r,e){var a=r.val();if(""==a)return!0;var s=new RegExp("^(?:(?: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");return s.test(a)}}}(window.jQuery),function(t){t.fn.bootstrapValidator.validators.uuid={html5Attributes:{message:"message",version:"version"},validate:function(t,r,e){var a=r.val();if(""==a)return!0;var s={3:/^[0-9A-F]{8}-[0-9A-F]{4}-3[0-9A-F]{3}-[0-9A-F]{4}-[0-9A-F]{12}$/i,4:/^[0-9A-F]{8}-[0-9A-F]{4}-4[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,5:/^[0-9A-F]{8}-[0-9A-F]{4}-5[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,all:/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i},i=e.version?e.version+"":"all";return null==s[i]?!0:s[i].test(a)}}}(window.jQuery),function(t){t.fn.bootstrapValidator.validators.vat={html5Attributes:{message:"message",country:"country"},validate:function(t,r,e){var a=r.val();if(""==a)return!0;var s=e.country||a.substr(0,2),i=["_",s.toLowerCase()].join("");return this[i]&&"function"==typeof this[i]?this[i](a):!0},_at:function(t){if(!/^ATU[0-9]{8}$/.test(t))return!1;t=t.substr(3);for(var r=0,e=[1,2,1,2,1,2,1],a=0,s=0;7>s;s++)a=parseInt(t.charAt(s))*e[s],a>9&&(a=Math.floor(a/10)+a%10),r+=a;return r=10-(r+4)%10,10==r&&(r=0),r==t.substr(7,1)},_be:function(t){if(!/^BE[0]{0,1}[0-9]{9}$/.test(t))return!1;if(t=t.substr(2),9==t.length&&(t="0"+t),0==t.substr(1,1))return!1;var r=parseInt(t.substr(0,8),10)+parseInt(t.substr(8,2),10);return r%97==0},_bg:function(r){if(!/^BG[0-9]{9,10}$/.test(r))return!1;r=r.substr(2);var e=0,a=0;if(9==r.length){for(a=0;8>a;a++)e+=parseInt(r.charAt(a))*(a+1);if(e%=11,10==e)for(e=0,a=0;8>a;a++)e+=parseInt(r.charAt(a))*(a+3);return e%=10,e==r.substr(8)}if(10==r.length){var s=function(r){var e=parseInt(r.substr(0,2),10)+1900,a=parseInt(r.substr(2,2),10),s=parseInt(r.substr(4,2),10);if(a>40?(e+=100,a-=40):a>20&&(e-=100,a-=20),!t.fn.bootstrapValidator.helpers.date(e,a,s))return!1;for(var i=0,n=[2,4,8,5,10,9,7,3,6],o=0;9>o;o++)i+=parseInt(r.charAt(o))*n[o];return i=i%11%10,i==r.substr(9,1)},i=function(t){for(var r=0,e=[21,19,17,13,11,9,7,3,1],a=0;9>a;a++)r+=parseInt(t.charAt(a))*e[a];return r%=10,r==t.substr(9,1)},n=function(t){for(var r=0,e=[4,3,2,7,6,5,4,3,2],a=0;9>a;a++)r+=parseInt(t.charAt(a))*e[a];return r=11-r%11,10==r?!1:(11==r&&(r=0),r==t.substr(9,1))};return s(r)||i(r)||n(r)}return!1},_ch:function(t){if(!/^CHE[0-9]{9}(MWST)?$/.test(t))return!1;t=t.substr(3);for(var r=0,e=[5,4,3,2,7,6,5,4],a=0;8>a;a++)r+=parseInt(t.charAt(a),10)*e[a];return r=11-r%11,10==r?!1:(11==r&&(r=0),r==t.substr(8,1))},_cy:function(t){if(!/^CY[0-5|9]{1}[0-9]{7}[A-Z]{1}$/.test(t))return!1;if(t=t.substr(2),"12"==t.substr(0,2))return!1;for(var r=0,e={0:1,1:0,2:5,3:7,4:9,5:13,6:15,7:17,8:19,9:21},a=0;8>a;a++){var s=parseInt(t.charAt(a),10);a%2==0&&(s=e[s+""]),r+=s}return r="ABCDEFGHIJKLMNOPQRSTUVWXYZ"[r%26],r==t.substr(8,1)},_cz:function(r){if(!/^CZ[0-9]{8,10}$/.test(r))return!1;r=r.substr(2);var e=0,a=0;if(8==r.length){if(r.charAt(0)+""=="9")return!1;for(e=0,a=0;7>a;a++)e+=parseInt(r.charAt(a),10)*(8-a);return e=11-e%11,10==e&&(e=0),11==e&&(e=1),e==r.substr(7,1)}if(9==r.length&&r.charAt(0)+""=="6"){for(e=0,a=0;7>a;a++)e+=parseInt(r.charAt(a+1),10)*(8-a);return e=11-e%11,10==e&&(e=0),11==e&&(e=1),e=[8,7,6,5,4,3,2,1,0,9,10][e-1],e==r.substr(8,1)}if(9==r.length||10==r.length){var s=1900+parseInt(r.substr(0,2)),i=parseInt(r.substr(2,2))%50%20,n=parseInt(r.substr(4,2));if(9==r.length){if(s>=1980&&(s-=100),s>1953)return!1}else 1954>s&&(s+=100);if(!t.fn.bootstrapValidator.helpers.date(s,i,n))return!1;if(10==r.length){var o=parseInt(r.substr(0,9),10)%11;return 1985>s&&(o%=10),o==r.substr(9,1)}return!0}return!1},_de:function(r){return/^DE[0-9]{9}$/.test(r)?(r=r.substr(2),t.fn.bootstrapValidator.helpers.mod_11_10(r)):!1},_dk:function(t){if(!/^DK[0-9]{8}$/.test(t))return!1;t=t.substr(2);for(var r=0,e=[2,7,6,5,4,3,2,1],a=0;8>a;a++)r+=parseInt(t.charAt(a),10)*e[a];return r%11==0},_ee:function(t){if(!/^EE[0-9]{9}$/.test(t))return!1;t=t.substr(2);for(var r=0,e=[3,7,1,3,7,1,3,7,1],a=0;9>a;a++)r+=parseInt(t.charAt(a))*e[a];return r%10==0},_es:function(t){if(!/^ES[0-9A-Z][0-9]{7}[0-9A-Z]$/.test(t))return!1;t=t.substr(2);var r=function(t){var r=parseInt(t.substr(0,8),10);return r="TRWAGMYFPDXBNJZSQVHLCKE"[r%23],r==t.substr(8,1)},e=function(t){var r=["XYZ".indexOf(t.charAt(0)),t.substr(1)].join("");return r=parseInt(r,10),r="TRWAGMYFPDXBNJZSQVHLCKE"[r%23],r==t.substr(8,1)},a=function(t){var r,e=t.charAt(0);if(-1!="KLM".indexOf(e))return r=parseInt(t.substr(1,8),10),r="TRWAGMYFPDXBNJZSQVHLCKE"[r%23],r==t.substr(8,1);if(-1!="ABCDEFGHJNPQRSUVW".indexOf(e)){for(var a=0,s=[2,1,2,1,2,1,2],i=0,n=0;7>n;n++)i=parseInt(t.charAt(n+1))*s[n],i>9&&(i=Math.floor(i/10)+i%10),a+=i;return a=10-a%10,a==t.substr(8,1)||"JABCDEFGHI"[a]==t.substr(8,1)}return!1},s=t.charAt(0);return/^[0-9]$/.test(s)?r(t):/^[XYZ]$/.test(s)?e(t):a(t)},_fi:function(t){if(!/^FI[0-9]{8}$/.test(t))return!1;t=t.substr(2);for(var r=0,e=[7,9,10,5,8,4,2,1],a=0;8>a;a++)r+=parseInt(t.charAt(a))*e[a];return r%11==0},_fr:function(r){if(!/^FR[0-9A-Z]{2}[0-9]{9}$/.test(r))return!1;if(r=r.substr(2),!t.fn.bootstrapValidator.helpers.luhn(r.substr(2)))return!1;if(/^[0-9]{2}$/.test(r.substr(0,2)))return r.substr(0,2)==parseInt(r.substr(2)+"12",10)%97;var e,a="0123456789ABCDEFGHJKLMNPQRSTUVWXYZ";return e=/^[0-9]{1}$/.test(r.charAt(0))?24*a.indexOf(r.charAt(0))+a.indexOf(r.charAt(1))-10:34*a.indexOf(r.charAt(0))+a.indexOf(r.charAt(1))-100,(parseInt(r.substr(2),10)+1+Math.floor(e/11))%11==e%11},_gb:function(t){if(!(/^GB[0-9]{9}$/.test(t)||/^GB[0-9]{12}$/.test(t)||/^GBGD[0-9]{3}$/.test(t)||/^GBHA[0-9]{3}$/.test(t)||/^GB(GD|HA)8888[0-9]{5}$/.test(t)))return!1;t=t.substr(2);var r=t.length;if(5==r){var e=t.substr(0,2),a=parseInt(t.substr(2));return"GD"==e&&500>a||"HA"==e&&a>=500}if(11==r&&("GD8888"==t.substr(0,6)||"HA8888"==t.substr(0,6)))return"GD"==t.substr(0,2)&&parseInt(t.substr(6,3))>=500||"HA"==t.substr(0,2)&&parseInt(t.substr(6,3))<500?!1:parseInt(t.substr(6,3))%97==parseInt(t.substr(9,2));if(9==r||12==r){for(var s=0,i=[8,7,6,5,4,3,2,10,1],n=0;9>n;n++)s+=parseInt(t.charAt(n))*i[n];return s%=97,parseInt(t.substr(0,3))>=100?0==s||42==s||55==s:0==s}return!0},_gr:function(t){if(!/^GR[0-9]{9}$/.test(t))return!1;t=t.substr(2),8==t.length&&(t="0"+t);for(var r=0,e=[256,128,64,32,16,8,4,2],a=0;8>a;a++)r+=parseInt(t.charAt(a))*e[a];return r=r%11%10,r==t.substr(8,1)},_el:function(t){return/^EL[0-9]{9}$/.test(t)?(t="GR"+t.substr(2),this._gr(t)):!1},_hu:function(t){if(!/^HU[0-9]{8}$/.test(t))return!1;t=t.substr(2);for(var r=0,e=[9,7,3,1,9,7,3,1],a=0;8>a;a++)r+=parseInt(t.charAt(a))*e[a];return r%10==0},_hr:function(r){return/^HR[0-9]{11}$/.test(r)?(r=r.substr(2),t.fn.bootstrapValidator.helpers.mod_11_10(r)):!1},_ie:function(t){if(!/^IE[0-9]{1}[0-9A-Z\*\+]{1}[0-9]{5}[A-Z]{1,2}$/.test(t))return!1;t=t.substr(2);var r=function(t){for(;t.length<7;)t="0"+t;for(var r="WABCDEFGHIJKLMNOPQRSTUV",e=0,a=0;7>a;a++)e+=parseInt(t.charAt(a))*(8-a);return e+=9*r.indexOf(t.substr(7)),r[e%23]};return/^[0-9]+$/.test(t.substr(0,7))?t.charAt(7)==r(t.substr(0,7)+t.substr(8)+""):-1!="ABCDEFGHIJKLMNOPQRSTUVWXYZ+*".indexOf(t.charAt(1))?t.charAt(7)==r(t.substr(2,5)+t.substr(0,1)+""):!0},_it:function(r){if(!/^IT[0-9]{11}$/.test(r))return!1;if(r=r.substr(2),0==parseInt(r.substr(0,7)))return!1;var e=parseInt(r.substr(7,3));return 1>e||e>201&&999!=e&&888!=e?!1:t.fn.bootstrapValidator.helpers.luhn(r)},_lt:function(t){if(!/^LT([0-9]{7}1[0-9]{1}|[0-9]{10}1[0-9]{1})$/.test(t))return!1;t=t.substr(2);for(var r=t.length,e=0,a=0;r-1>a;a++)e+=parseInt(t.charAt(a))*(1+a%9);var s=e%11;if(10==s){e=0;for(var a=0;r-1>a;a++)e+=parseInt(t.charAt(a))*(1+(a+2)%9)}return s=s%11%10,s==t.charAt(r-1)},_lu:function(t){return/^LU[0-9]{8}$/.test(t)?(t=t.substr(2),t.substr(0,6)%89==t.substr(6,2)):!1},_lv:function(r){if(!/^LV[0-9]{11}$/.test(r))return!1;r=r.substr(2);var e=parseInt(r.charAt(0)),a=0,s=[],i=0,n=r.length;if(e>3){for(a=0,s=[9,1,4,8,3,10,2,5,7,6,1],i=0;n>i;i++)a+=parseInt(r.charAt(i))*s[i];return a%=11,3==a}var o=parseInt(r.substr(0,2)),l=parseInt(r.substr(2,2)),u=parseInt(r.substr(4,2));if(u=u+1800+100*parseInt(r.charAt(6)),!t.fn.bootstrapValidator.helpers.date(u,l,o))return!1;for(a=0,s=[10,5,8,4,2,1,6,3,7,9],i=0;n-1>i;i++)a+=parseInt(r.charAt(i))*s[i];return a=(a+1)%11%10,a==r.charAt(n-1)},_mt:function(t){if(!/^MT[0-9]{8}$/.test(t))return!1;t=t.substr(2);for(var r=0,e=[3,4,6,7,8,9,10,1],a=0;8>a;a++)r+=parseInt(t.charAt(a))*e[a];return r%37==0},_nl:function(t){if(!/^NL[0-9]{9}B[0-9]{2}$/.test(t))return!1;t=t.substr(2);for(var r=0,e=[9,8,7,6,5,4,3,2],a=0;8>a;a++)r+=parseInt(t.charAt(a))*e[a];return r%=11,r>9&&(r=0),r==t.substr(8,1)},_no:function(t){if(!/^NO[0-9]{9}$/.test(t))return!1;t=t.substr(2);for(var r=0,e=[3,2,7,6,5,4,3,2],a=0;8>a;a++)r+=parseInt(t.charAt(a))*e[a];return r=11-r%11,11==r&&(r=0),r==t.substr(8,1)},_pl:function(t){if(!/^PL[0-9]{10}$/.test(t))return!1;t=t.substr(2);for(var r=0,e=[6,5,7,2,3,4,5,6,7,-1],a=0;10>a;a++)r+=parseInt(t.charAt(a))*e[a];return r%11==0},_pt:function(t){if(!/^PT[0-9]{9}$/.test(t))return!1;t=t.substr(2);for(var r=0,e=[9,8,7,6,5,4,3,2],a=0;8>a;a++)r+=parseInt(t.charAt(a))*e[a];return r=11-r%11,r>9&&(r=0),r==t.substr(8,1)},_ro:function(t){if(!/^RO[1-9][0-9]{1,9}$/.test(t))return!1;t=t.substr(2);for(var r=t.length,e=[7,5,3,2,1,7,5,3,2].slice(10-r),a=0,s=0;r-1>s;s++)a+=parseInt(t.charAt(s))*e[s];return a=10*a%11%10,a==t.substr(r-1,1)},_ru:function(t){if(!/^RU([0-9]{9}|[0-9]{12})$/.test(t))return!1;if(t=t.substr(2),10==t.length){for(var r=0,e=[2,4,10,3,5,9,4,6,8,0],a=0;10>a;a++)r+=parseInt(t.charAt(a))*e[a];return r%=11,r>9&&(r%=10),r==t.substr(9,1)}if(12==t.length){for(var s=0,i=[7,2,4,10,3,5,9,4,6,8,0],n=0,o=[3,7,2,4,10,3,5,9,4,6,8,0],a=0;11>a;a++)s+=parseInt(t.charAt(a))*i[a],n+=parseInt(t.charAt(a))*o[a];return s%=11,s>9&&(s%=10),n%=11,n>9&&(n%=10),s==t.substr(10,1)&&n==t.substr(11,1)}return!1},_rs:function(t){if(!/^RS[0-9]{9}$/.test(t))return!1;t=t.substr(2);for(var r=10,e=0,a=0;8>a;a++)e=(parseInt(t.charAt(a))+r)%10,0==e&&(e=10),r=2*e%11;return(r+parseInt(t.substr(8,1)))%10==1},_se:function(r){return/^SE[0-9]{10}01$/.test(r)?(r=r.substr(2,10),t.fn.bootstrapValidator.helpers.luhn(r)):!1},_si:function(t){if(!/^SI[0-9]{8}$/.test(t))return!1;t=t.substr(2);for(var r=0,e=[8,7,6,5,4,3,2],a=0;7>a;a++)r+=parseInt(t.charAt(a))*e[a];return r=11-r%11,10==r&&(r=0),r==t.substr(7,1)},_sk:function(t){return/^SK[1-9][0-9][(2-4)|(6-9)][0-9]{7}$/.test(t)?(t=t.substr(2),t%11==0):!1}}}(window.jQuery),function(t){t.fn.bootstrapValidator.validators.vin={validate:function(t,r,e){var a=r.val();if(""==a)return!0;if(!/^[a-hj-npr-z0-9]{8}[0-9xX][a-hj-npr-z0-9]{8}$/i.test(a))return!1;a=a.toUpperCase();for(var s={A:1,B:2,C:3,D:4,E:5,F:6,G:7,H:8,J:1,K:2,L:3,M:4,N:5,P:7,R:9,S:2,T:3,U:4,V:5,W:6,X:7,Y:8,Z:9,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,0:0},i=[8,7,6,5,4,3,2,10,0,9,8,7,6,5,4,3,2],n=0,o=a.length,l=0;o>l;l++)n+=s[a.charAt(l)+""]*i[l];var u=n%11;return 10==u&&(u="X"),u==a.charAt(8)}}}(window.jQuery),function(t){t.fn.bootstrapValidator.validators.zipCode={html5Attributes:{message:"message",country:"country"},validate:function(t,r,e){var a=r.val();if(""==a||!e.country)return!0;var s=(e.country||"US").toUpperCase();switch(s){case"CA":return/^(?:A|B|C|E|G|J|K|L|M|N|P|R|S|T|V|X|Y){1}[0-9]{1}(?:A|B|C|E|G|J|K|L|M|N|P|R|S|T|V|X|Y){1}\s?[0-9]{1}(?:A|B|C|E|G|J|K|L|M|N|P|R|S|T|V|X|Y){1}[0-9]{1}$/i.test(a);case"DK":return/^(DK(-|\s)?)?\d{4}$/i.test(a);case"GB":return this._gb(a);case"IT":return/^(I-|IT-)?\d{5}$/i.test(a);case"NL":return/^[1-9][0-9]{3} ?(?!sa|sd|ss)[a-z]{2}$/i.test(a);case"SE":return/^(S-)?\d{3}\s?\d{2}$/i.test(a);case"US":default:return/^\d{4,5}([\-]\d{4})?$/.test(a)}},_gb:function(t){for(var r="[ABCDEFGHIJKLMNOPRSTUWYZ]",e="[ABCDEFGHKLMNOPQRSTUVWXY]",a="[ABCDEFGHJKPMNRSTUVWXY]",s="[ABEHMNPRVWXY]",i="[ABDEFGHJLNPQRSTUWXYZ]",n=[new RegExp("^("+r+"{1}"+e+"?[0-9]{1,2})(\\s*)([0-9]{1}"+i+"{2})$","i"),new RegExp("^("+r+"{1}[0-9]{1}"+a+"{1})(\\s*)([0-9]{1}"+i+"{2})$","i"),new RegExp("^("+r+"{1}"+e+"{1}?[0-9]{1}"+s+"{1})(\\s*)([0-9]{1}"+i+"{2})$","i"),new RegExp("^(BF1)(\\s*)([0-6]{1}[ABDEFGHJLNPQRST]{1}[ABDEFGHJLNPQRSTUWZYZ]{1})$","i"),/^(GIR)(\s*)(0AA)$/i,/^(BFPO)(\s*)([0-9]{1,4})$/i,/^(BFPO)(\s*)(c\/o\s*[0-9]{1,3})$/i,/^([A-Z]{4})(\s*)(1ZZ)$/i,/^(AI-2640)$/i],o=0;o