Socket
Socket
Sign inDemoInstall

vee-validate

Package Overview
Dependencies
Maintainers
2
Versions
339
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vee-validate - npm Package Compare versions

Comparing version 2.0.8 to 2.0.9

2

dist/locale/it.js

@@ -1,1 +0,1 @@

!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):(e.__vee_validate_locale__it=e.__vee_validate_locale__it||{},e.__vee_validate_locale__it.js=n())}(this,function(){"use strict";var e,n={name:"it",messages:{after:function(e,n){return"Il "+e+" deve essere dopo "+n[0]+"."},alpha_dash:function(e){return"Il campo "+e+" può contenere caratteri alfa-numerici così come lineette e trattini di sottolineatura."},alpha_num:function(e){return"Il campo "+e+" può contenere solo caratteri alfanumerici."},alpha:function(e){return"Il campo "+e+" può contenere solo caratteri alfabetici."},before:function(e,n){return"Il campo "+e+" deve essere prima di "+n[0]+"."},between:function(e,n){return"Il campo "+e+" deve essere compreso tra "+n[0]+" e "+n[1]+"."},confirmed:function(e,n){return"Il campo "+e+" non corrisponde con "+n[0]+"."},date_between:function(e,n){return"La "+e+" deve essere compresa tra "+n[0]+" e "+n[1]+"."},date_format:function(e,n){return"La "+e+" deve essere nel formato "+n[0]+"."},decimal:function(e,n){void 0===n&&(n=[]);var r=n[0];return void 0===r&&(r="*"),"Il campo "+e+" deve essere numerico e può contenere "+("*"===r?"cm":r)+" punti decimali."},digits:function(e,n){return"Il campo "+e+" deve essere numerico e contenere esattamente "+n[0]+" cifre."},dimensions:function(e,n){return"Il campo "+e+" deve essere "+n[0]+" x "+n[1]+"."},email:function(e){return"Il campo "+e+" deve essere un indirizzo email valido."},ext:function(e){return"Il campo "+e+" deve essere un file valido."},image:function(e){return"Il campo "+e+" deve essere un'immagine."},in:function(e){return"Il campo "+e+" deve avere un valore valido."},ip:function(e){return"Il campo "+e+" deve essere un indirizzo IP valido."},max:function(e,n){return"Il campo "+e+" non può essere più lungo di "+n[0]+" caratteri."},mimes:function(e){return"Il campo "+e+" deve avere un tipo di file valido."},min:function(e,n){return"Il campo "+e+" deve avere almeno "+n[0]+" caratteri."},not_in:function(e){return"Il campo "+e+" deve avere un valore valido."},numeric:function(e){return"Il campo "+e+" può contenere solo caratteri numerici."},regex:function(e){return"Il campo "+e+" non ha un formato valido."},required:function(e){return"Il campo "+e+" è richiesto."},size:function(e,n){var r,t,o,i=n[0];return"Il campo "+e+" deve essere inferiore a "+(r=i,t=1024,o=0==(r=Number(r)*t)?0:Math.floor(Math.log(r)/Math.log(t)),1*(r/Math.pow(t,o)).toFixed(2)+" "+["Byte","KB","MB","GB","TB","PB","EB","ZB","YB"][o])+"."},url:function(e){return"Il campo "+e+" non è un URL valido."}},attributes:{}};return"undefined"!=typeof VeeValidate&&VeeValidate.Validator.localize(((e={})[n.name]=n,e)),n});
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):(e.__vee_validate_locale__it=e.__vee_validate_locale__it||{},e.__vee_validate_locale__it.js=n())}(this,function(){"use strict";var e,n={name:"it",messages:{_default:function(e){return"Il valore del campo "+e+" non è valido."},after:function(e,n){return"Il "+e+" deve essere dopo "+n[0]+"."},alpha_dash:function(e){return"Il campo "+e+" può contenere caratteri alfa-numerici così come lineette e trattini di sottolineatura."},alpha_num:function(e){return"Il campo "+e+" può contenere solo caratteri alfanumerici."},alpha_spaces:function(e){return"Il campo "+e+" può contenere solo caratteri alfanumerici così come spazi."},alpha:function(e){return"Il campo "+e+" può contenere solo caratteri alfabetici."},before:function(e,n){return"Il campo "+e+" deve essere prima di "+n[0]+"."},between:function(e,n){return"Il campo "+e+" deve essere compreso tra "+n[0]+" e "+n[1]+"."},confirmed:function(e,n){return"Il campo "+e+" non corrisponde con "+n[0]+"."},credit_card:function(e){return"Il campo "+e+" non è valido."},date_between:function(e,n){return"La "+e+" deve essere compresa tra "+n[0]+" e "+n[1]+"."},date_format:function(e,n){return"La "+e+" deve essere nel formato "+n[0]+"."},decimal:function(e,n){void 0===n&&(n=[]);var r=n[0];return void 0===r&&(r="*"),"Il campo "+e+" deve essere numerico e può contenere "+("*"===r?"cm":r)+" punti decimali."},digits:function(e,n){return"Il campo "+e+" deve essere numerico e contenere esattamente "+n[0]+" cifre."},dimensions:function(e,n){return"Il campo "+e+" deve essere "+n[0]+" x "+n[1]+"."},email:function(e){return"Il campo "+e+" deve essere un indirizzo email valido."},ext:function(e){return"Il campo "+e+" deve essere un file valido."},image:function(e){return"Il campo "+e+" deve essere un'immagine."},in:function(e){return"Il campo "+e+" deve avere un valore valido."},ip:function(e){return"Il campo "+e+" deve essere un indirizzo IP valido."},length:function(e,n){var r=n[0],o=n[1];return o?"La lunghezza del campo "+e+" deve essere compreso tra "+r+" e "+o+".":"La lunghezza del campo "+e+" deve essere "+r+"."},max:function(e,n){return"Il campo "+e+" non può essere più lungo di "+n[0]+" caratteri."},max_value:function(e,n){return"Il campo "+e+" deve essere minore o uguale a "+n[0]},mimes:function(e){return"Il campo "+e+" deve avere un tipo di file valido."},min:function(e,n){return"Il campo "+e+" deve avere almeno "+n[0]+" caratteri."},min_value:function(e,n){return"Il campo "+e+" deve essere maggiore o uguale a "+n[0]},not_in:function(e){return"Il campo "+e+" deve avere un valore valido."},numeric:function(e){return"Il campo "+e+" può contenere solo caratteri numerici."},regex:function(e){return"Il campo "+e+" non ha un formato valido."},required:function(e){return"Il campo "+e+" è richiesto."},size:function(e,n){var r,o,a,t=n[0];return"Il campo "+e+" deve essere inferiore a "+(r=t,o=1024,a=0==(r=Number(r)*o)?0:Math.floor(Math.log(r)/Math.log(o)),1*(r/Math.pow(o,a)).toFixed(2)+" "+["Byte","KB","MB","GB","TB","PB","EB","ZB","YB"][a])+"."},url:function(e){return"Il campo "+e+" non è un URL valido."}},attributes:{}};return"undefined"!=typeof VeeValidate&&VeeValidate.Validator.localize(((e={})[n.name]=n,e)),n});

@@ -1,1 +0,1 @@

!function(a,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r():"function"==typeof define&&define.amd?define(r):(a.__vee_validate_locale__tr=a.__vee_validate_locale__tr||{},a.__vee_validate_locale__tr.js=r())}(this,function(){"use strict";var a,r={name:"tr",messages:{after:function(a,r){return a+" "+r[0]+" alanından ileri bir tarih olmalıdır."},alpha_dash:function(a){return a+" alanı harf ve tire (-) ya da alttan tire (_) içerebilir."},alpha_num:function(a){return a+" yalnızca harf ve rakam içerebilir."},alpha_spaces:function(a){return a+" yalnızca harf boşluk (space) içerebilir."},alpha:function(a){return a+" yalnızca harf içerebilir."},before:function(a,r){return a+" "+r[0]+" alanından önce bir tarih olmalıdır."},between:function(a,r){return a+" "+r[0]+" ile "+r[1]+" aralığında olmalıdır."},confirmed:function(a){return a+" doğrulaması hatalı."},credit_card:function(a){return a+" numarası hatalı."},date_between:function(a,r){return a+" "+r[0]+" ile "+r[1]+" tarihleri arasında olmalıdır."},date_format:function(a,r){return a+" "+r[0]+" formatında olmalıdır."},decimal:function(a,r){void 0===r&&(r=[]);var e=r[0];return void 0===e&&(e="*"),a+" sayısal"+("*"!==e?"ve noktadan sonra "+e+" basamaklı":"")+" olmalıdır."},digits:function(a,r){return a+" sayısal ve "+r[0]+" basamaklı olmalıdır."},dimensions:function(a,r){return a+" alanı "+r[0]+" piksel ile "+r[1]+" piksel arasında olmalıdır."},email:function(a){return a+" alanının geçerli bir e-posta olması gerekir."},ext:function(a){return a+" alanı geçerli bir dosya olmalıdır."},image:function(a){return a+" alanı resim dosyası olmalıdır."},in:function(a){return a+" alanına geçerli bir değer giriniz."},ip:function(a){return a+" alanı geçerli bir ip adresi olmalıdır."},max:function(a,r){return a+" alanı "+r[0]+" karakterden fazla olmamalıdır."},max_value:function(a,r){return a+" alanı "+r[0]+" ya da daha az bir değer olmalıdır."},mimes:function(a){return a+" geçerli bir dosya olmalıdır."},min:function(a,r){return a+" alanına en az "+r[0]+" karakter girilmelidir."},min_value:function(a,r){return a+" alanı "+r[0]+" ya da daha fazla bir değer olmalıdır."},not_in:function(a){return a+" alanına geçerli bir değer giriniz."},numeric:function(a){return a+" alanına sayısal bir değer giriniz."},regex:function(a){return a+" formatı geçersiz."},required:function(a){return a+" alanı gereklidir."},size:function(a,r){var e,n,i,t=r[0];return a+" alanı "+(e=t,n=1024,i=0==(e=Number(e)*n)?0:Math.floor(Math.log(e)/Math.log(n)),1*(e/Math.pow(n,i)).toFixed(2)+" "+["Byte","KB","MB","GB","TB","PB","EB","ZB","YB"][i])+"'dan daha az olmalıdır."},url:function(a){return a+" geçersiz URL."}},attributes:{}};return"undefined"!=typeof VeeValidate&&VeeValidate.Validator.localize(((a={})[r.name]=r,a)),r});
!function(a,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r():"function"==typeof define&&define.amd?define(r):(a.__vee_validate_locale__tr=a.__vee_validate_locale__tr||{},a.__vee_validate_locale__tr.js=r())}(this,function(){"use strict";var a,r={name:"tr",messages:{after:function(a,r){return a+" "+r[0]+" alanından ileri bir tarih olmalıdır."},alpha_dash:function(a){return a+" alanı harf ve tire (-) ya da alttan tire (_) içerebilir."},alpha_num:function(a){return a+" yalnızca harf ve rakam içerebilir."},alpha_spaces:function(a){return a+" yalnızca harf boşluk (space) içerebilir."},alpha:function(a){return a+" yalnızca harf içerebilir."},before:function(a,r){return a+" "+r[0]+" alanından önce bir tarih olmalıdır."},between:function(a,r){return a+" "+r[0]+" ile "+r[1]+" aralığında olmalıdır."},confirmed:function(a){return a+" doğrulaması hatalı."},credit_card:function(a){return a+" numarası hatalı."},date_between:function(a,r){return a+" "+r[0]+" ile "+r[1]+" tarihleri arasında olmalıdır."},date_format:function(a,r){return a+" "+r[0]+" formatında olmalıdır."},decimal:function(a,r){void 0===r&&(r=[]);var e=r[0];return void 0===e&&(e="*"),a+" sayısal"+("*"!==e?" ve noktadan sonra "+e+" basamaklı":"")+" olmalıdır."},digits:function(a,r){return a+" sayısal ve "+r[0]+" basamaklı olmalıdır."},dimensions:function(a,r){return a+" alanı "+r[0]+" piksel ile "+r[1]+" piksel arasında olmalıdır."},email:function(a){return a+" alanının geçerli bir e-posta olması gerekir."},ext:function(a){return a+" alanı geçerli bir dosya olmalıdır."},image:function(a){return a+" alanı resim dosyası olmalıdır."},in:function(a){return a+" alanına geçerli bir değer giriniz."},ip:function(a){return a+" alanı geçerli bir ip adresi olmalıdır."},max:function(a,r){return a+" alanı "+r[0]+" karakterden fazla olmamalıdır."},max_value:function(a,r){return a+" alanı "+r[0]+" ya da daha az bir değer olmalıdır."},mimes:function(a){return a+" geçerli bir dosya olmalıdır."},min:function(a,r){return a+" alanına en az "+r[0]+" karakter girilmelidir."},min_value:function(a,r){return a+" alanı "+r[0]+" ya da daha fazla bir değer olmalıdır."},not_in:function(a){return a+" alanına geçerli bir değer giriniz."},numeric:function(a){return a+" alanına sayısal bir değer giriniz."},regex:function(a){return a+" formatı geçersiz."},required:function(a){return a+" alanı gereklidir."},size:function(a,r){var e,n,i,t=r[0];return a+" alanı "+(e=t,n=1024,i=0==(e=Number(e)*n)?0:Math.floor(Math.log(e)/Math.log(n)),1*(e/Math.pow(n,i)).toFixed(2)+" "+["Byte","KB","MB","GB","TB","PB","EB","ZB","YB"][i])+"'dan daha az olmalıdır."},url:function(a){return a+" geçersiz URL."}},attributes:{}};return"undefined"!=typeof VeeValidate&&VeeValidate.Validator.localize(((a={})[r.name]=r,a)),r});

@@ -1,1 +0,1 @@

!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.VeeValidate=e()}(this,function(){"use strict";var n=!0,s=function(){try{var t=Object.defineProperty({},"passive",{get:function(){n=!0}});window.addEventListener("testPassive",null,t),window.removeEventListener("testPassive",null,t)}catch(t){n=!1}return n},a=function(t,e,i){t.addEventListener(e,i,!!n&&{passive:!0})},o=function(t){return-1!==["text","number","password","search","email","tel","url","textarea"].indexOf(t.type)},l=function(t,e){return t.getAttribute("data-vv-"+e)},u=function(t){return null==t},c=function(e,i){if(e instanceof RegExp&&i instanceof RegExp)return c(e.source,i.source)&&c(e.flags,i.flags);if(Array.isArray(e)&&Array.isArray(i)){if(e.length!==i.length)return!1;for(var t=0;t<e.length;t++)if(!c(e[t],i[t]))return!1;return!0}return v(e)&&v(i)?Object.keys(e).every(function(t){return c(e[t],i[t])})&&Object.keys(i).every(function(t){return c(e[t],i[t])}):e===i},d=function(t,e,i){if(void 0===i&&(i=void 0),!t||!e)return i;var n=e;return t.split(".").every(function(t){return Object.prototype.hasOwnProperty.call(n,t)||void 0!==n[t]?(n=n[t],!0):(n=i,!1)}),n},h=function(n,r,s){return void 0===r&&(r=0),void 0===s&&(s=!1),0===r?n:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var i=s&&!a;clearTimeout(a),a=setTimeout(function(){a=null,s||n.apply(void 0,t)},r),i&&n.apply(void 0,t)};var a},f=function(t){console.warn("[vee-validate] "+t)},p=function(t){return new Error("[vee-validate] "+t)},v=function(t){return null!==t&&t&&"object"==typeof t&&!Array.isArray(t)},m=function(t){return"function"==typeof t},g=function(t,e){return t.classList?t.classList.contains(e):!!t.className.match(new RegExp("(\\s|^)"+e+"(\\s|$)"))},y=function(e,t,i){var n,r;if(e&&t){if(!Array.isArray(t))return i?(r=t,void((n=e).classList?n.classList.add(r):g(n,r)||(n.className+=" "+r))):void function(t,e){if(t.classList)t.classList.remove(e);else if(g(t,e)){var i=new RegExp("(\\s|^)"+e+"(\\s|$)");t.className=t.className.replace(i," ")}}(e,t);t.forEach(function(t){return y(e,t,i)})}},b=function(t){if(m(Array.from))return Array.from(t);for(var e=[],i=t.length,n=0;n<i;n++)e.push(t[n]);return e},$=function(t){for(var e=[],i=arguments.length-1;0<i--;)e[i]=arguments[i+1];if(m(Object.assign))return Object.assign.apply(Object,[t].concat(e));if(null==t)throw new TypeError("Cannot convert undefined or null to object");var n=Object(t);return e.forEach(function(e){null!=e&&Object.keys(e).forEach(function(t){n[t]=e[t]})}),n},e=0,i="{id}",_=function(t,e){for(var i=Array.isArray(t)?t:b(t),n=0;n<i.length;n++)if(e(i[n]))return i[n]},r=function(t){if(!t)return!1;var e=t.componentOptions.tag;return/keep-alive|transition|transition-group/.test(e)},w=function(t,i,n){return"number"==typeof i?t.reduce(function(t,e){return t[e]=i,t},{}):t.reduce(function(t,e){return t[e]="object"==typeof i&&e in i?i[e]:"number"==typeof n?n:n&&n[e]||0,t},{})},x=function(t){if("number"==typeof t)return t;if("string"==typeof t)return parseInt(t);var e={};for(var i in t)e[i]=parseInt(t[i]);return e},A=function(n,r){return v(n)&&v(r)&&Object.keys(r).forEach(function(t){var e,i;if(v(r[t]))return n[t]||$(n,((e={})[t]={},e)),void A(n[t],r[t]);$(n,((i={})[t]=r[t],i))}),n},E=function(){this.items=[]};E.prototype["function"==typeof Symbol?Symbol.iterator:"@@iterator"]=function(){var t=this,e=0;return{next:function(){return{value:t.items[e++],done:e>t.items.length}}}},E.prototype.add=function(t){var e;1<arguments.length&&(t={field:t,msg:arguments[1],rule:arguments[2],scope:u(arguments[3])?null:arguments[3],regenerate:null}),(e=this.items).push.apply(e,this._normalizeError(t))},E.prototype._normalizeError=function(t){return Array.isArray(t)?t.map(function(t){return t.scope=u(t.scope)?null:t.scope,t}):(t.scope=u(t.scope)?null:t.scope,[t])},E.prototype.regenerate=function(){this.items.forEach(function(t){t.msg=m(t.regenerate)?t.regenerate():t.msg})},E.prototype.update=function(e,t){var i=_(this.items,function(t){return t.id===e});if(i){var n=this.items.indexOf(i);this.items.splice(n,1),i.scope=t.scope,this.items.push(i)}},E.prototype.all=function(e){return u(e)?this.items.map(function(t){return t.msg}):this.items.filter(function(t){return t.scope===e}).map(function(t){return t.msg})},E.prototype.any=function(e){return u(e)?!!this.items.length:!!this.items.filter(function(t){return t.scope===e}).length},E.prototype.clear=function(t){u(t)&&(t=null);for(var e=0;e<this.items.length;++e)this.items[e].scope===t&&(this.items.splice(e,1),--e)},E.prototype.collect=function(e,i,n){if(void 0===n&&(n=!0),!e){var r={};return this.items.forEach(function(t){r[t.field]||(r[t.field]=[]),r[t.field].push(n?t.msg:t)}),r}return e=u(e)?e:String(e),u(i)?this.items.filter(function(t){return t.field===e}).map(function(t){return n?t.msg:t}):this.items.filter(function(t){return t.field===e&&t.scope===i}).map(function(t){return n?t.msg:t})},E.prototype.count=function(){return this.items.length},E.prototype.firstById=function(e){var t=_(this.items,function(t){return t.id===e});return t?t.msg:null},E.prototype.first=function(t,e){if(void 0===e&&(e=null),u(t))return null;t=String(t);var i=this._selector(t),n=this._scope(t);if(n){var r=this.first(n.name,n.scope);if(r)return r}if(i)return this.firstByRule(i.name,i.rule,e);for(var s=0;s<this.items.length;++s)if(this.items[s].field===t&&this.items[s].scope===e)return this.items[s].msg;return null},E.prototype.firstRule=function(t,e){var i=this.collect(t,e,!1);return i.length&&i[0].rule||null},E.prototype.has=function(t,e){return void 0===e&&(e=null),!!this.first(t,e)},E.prototype.firstByRule=function(t,e,i){void 0===i&&(i=null);var n=this.collect(t,i,!1).filter(function(t){return t.rule===e})[0];return n&&n.msg||null},E.prototype.firstNot=function(t,e,i){void 0===e&&(e="required"),void 0===i&&(i=null);var n=this.collect(t,i,!1).filter(function(t){return t.rule!==e})[0];return n&&n.msg||null},E.prototype.removeById=function(e){if(Array.isArray(e))this.items=this.items.filter(function(t){return-1===e.indexOf(t.id)});else for(var t=0;t<this.items.length;++t)this.items[t].id===e&&(this.items.splice(t,1),--t)},E.prototype.remove=function(t,e){t=u(t)?t:String(t);for(var i,n=0;n<this.items.length;++n)i=this.items[n],(u(e)?i.field===t&&null===i.scope:i.field===t&&i.scope===e)&&(this.items.splice(n,1),--n)},E.prototype._selector=function(t){if(-1<t.indexOf(":")){var e=t.split(":");return{name:e[0],rule:e[1]}}return null},E.prototype._scope=function(t){if(-1<t.indexOf(".")){var e=t.split("."),i=e[0];return{name:e.slice(1).join("."),scope:i}}return null};var O="en",t=function(t){void 0===t&&(t={}),this.container={},this.merge(t)},j={locale:{configurable:!0}};j.locale.get=function(){return O},j.locale.set=function(t){O=t||"en"},t.prototype.hasLocale=function(t){return!!this.container[t]},t.prototype.setDateFormat=function(t,e){this.container[t]||(this.container[t]={}),this.container[t].dateFormat=e},t.prototype.getDateFormat=function(t){return this.container[t]&&this.container[t].dateFormat?this.container[t].dateFormat:null},t.prototype.getMessage=function(t,e,i){var n=null;return n=this.hasMessage(t,e)?this.container[t].messages[e]:this._getDefaultMessage(t),m(n)?n.apply(void 0,i):n},t.prototype.getFieldMessage=function(t,e,i,n){if(!this.hasLocale(t))return this.getMessage(t,i,n);var r=this.container[t].custom&&this.container[t].custom[e];if(!r||!r[i])return this.getMessage(t,i,n);var s=r[i];return m(s)?s.apply(void 0,n):s},t.prototype._getDefaultMessage=function(t){return this.hasMessage(t,"_default")?this.container[t].messages._default:this.container.en.messages._default},t.prototype.getAttribute=function(t,e,i){return void 0===i&&(i=""),this.hasAttribute(t,e)?this.container[t].attributes[e]:i},t.prototype.hasMessage=function(t,e){return!!(this.hasLocale(t)&&this.container[t].messages&&this.container[t].messages[e])},t.prototype.hasAttribute=function(t,e){return!!(this.hasLocale(t)&&this.container[t].attributes&&this.container[t].attributes[e])},t.prototype.merge=function(t){A(this.container,t)},t.prototype.setMessage=function(t,e,i){this.hasLocale(t)||(this.container[t]={messages:{},attributes:{}}),this.container[t].messages[e]=i},t.prototype.setAttribute=function(t,e,i){this.hasLocale(t)||(this.container[t]={messages:{},attributes:{}}),this.container[t].attributes[e]=i},Object.defineProperties(t.prototype,j);var F=function(i){return v(i)?Object.keys(i).reduce(function(t,e){return t[e]=F(i[e]),t},{}):m(i)?i("{0}",["{1}","{2}","{3}"]):i},N=function(t,e){this.i18n=t,this.rootKey=e},V={locale:{configurable:!0}};V.locale.get=function(){return this.i18n.locale},V.locale.set=function(t){f("Cannot set locale from the validator when using vue-i18n, use i18n.locale setter instead")},N.prototype.getDateFormat=function(t){return this.i18n.getDateTimeFormat(t||this.locale)},N.prototype.setDateFormat=function(t,e){this.i18n.setDateTimeFormat(t||this.locale,e)},N.prototype.getMessage=function(t,e,i){var n=this.rootKey+".messages."+e;return this.i18n.te(n)?this.i18n.t(n,t,i):this.i18n.t(this.rootKey+".messages._default",t,i)},N.prototype.getAttribute=function(t,e,i){void 0===i&&(i="");var n=this.rootKey+".attributes."+e;return this.i18n.te(n)?this.i18n.t(n,t):i},N.prototype.getFieldMessage=function(t,e,i,n){var r=this.rootKey+".custom."+e+"."+i;return this.i18n.te(r)?this.i18n.t(r):this.getMessage(t,i,n)},N.prototype.merge=function(s){var a=this;Object.keys(s).forEach(function(t){var e,i,n=A({},d(t+"."+a.rootKey,a.i18n.messages,{})),r=A(n,(i=s[t],{messages:F(i.messages),custom:F(i.custom),attributes:i.attributes,dateFormat:i.dateFormat}));a.i18n.mergeLocaleMessage(t,((e={})[a.rootKey]=r,e)),r.dateFormat&&a.i18n.setDateTimeFormat(t,r.dateFormat)})},N.prototype.setMessage=function(t,e,i){var n,r;this.merge(((r={})[t]={messages:(n={},n[e]=i,n)},r))},N.prototype.setAttribute=function(t,e,i){var n,r;this.merge(((r={})[t]={attributes:(n={},n[e]=i,n)},r))},Object.defineProperties(N.prototype,V);var L={locale:"en",delay:0,errorBagName:"errors",dictionary:null,strict:!0,fieldsBagName:"fields",classes:!1,classNames:null,events:"input|blur",inject:!0,fastExit:!0,aria:!0,validity:!1,i18n:null,i18nRootKey:"validation"},C=$({},L),k={dictionary:new t({en:{messages:{},attributes:{},custom:{}}})},M=function(){},R={default:{configurable:!0},current:{configurable:!0}};R.default.get=function(){return L},R.current.get=function(){return C},M.dependency=function(t){return k[t]},M.merge=function(t){(C=$({},C,t)).i18n&&M.register("dictionary",new N(C.i18n,C.i18nRootKey))},M.register=function(t,e){k[t]=e},M.resolve=function(t){var e=d("$options.$_veeValidate",t,{});return $({},M.current,e)},Object.defineProperties(M,R);var D=function(){};D.generate=function(t,e,i){var n=D.resolveModel(e,i),r=M.resolve(i.context);return{name:D.resolveName(t,i),el:t,listen:!e.modifiers.disable,scope:D.resolveScope(t,e,i),vm:D.makeVM(i.context),expression:e.value,component:i.child,classes:r.classes,classNames:r.classNames,getter:D.resolveGetter(t,i,n),events:D.resolveEvents(t,i)||r.events,model:n,delay:D.resolveDelay(t,i,r),rules:D.resolveRules(t,e),initial:!!e.modifiers.initial,validity:r.validity,aria:r.aria,initialValue:D.resolveInitialValue(i)}},D.getCtorConfig=function(t){return t.child?d("child.$options.$_veeValidate",t):null},D.resolveRules=function(t,e){return e.value||e&&e.expression?e.value&&~["string","object"].indexOf(typeof e.value.rules)?e.value.rules:e.value:l(t,"rules")},D.resolveInitialValue=function(t){var e=t.data.model||_(t.data.directives,function(t){return"model"===t.name});return e&&e.value},D.makeVM=function(t){return{get $el(){return t.$el},get $refs(){return t.$refs},$watch:t.$watch?t.$watch.bind(t):function(){},$validator:t.$validator?{errors:t.$validator.errors,validate:t.$validator.validate.bind(t.$validator),update:t.$validator.update.bind(t.$validator)}:null}},D.resolveDelay=function(t,e,i){var n=l(t,"delay"),r=i&&"delay"in i?i.delay:0;return!n&&e.child&&e.child.$attrs&&(n=e.child.$attrs["data-vv-delay"]),v(r)?(r.input=n||0,x(r)):x(n||r)},D.resolveEvents=function(t,e){var i=l(t,"validate-on");if(!i&&e.child&&e.child.$attrs&&(i=e.child.$attrs["data-vv-validate-on"]),!i&&e.child){var n=D.getCtorConfig(e);i=n&&n.events}return i},D.resolveScope=function(t,e,i){void 0===i&&(i={});var n,r,s=null;return i.child&&u(s)&&(s=i.child.$attrs&&i.child.$attrs["data-vv-scope"]),u(s)?(r=l(n=t,"scope"),u(r)&&n.form&&(r=l(n.form,"scope")),u(r)?null:r):s},D.resolveModel=function(t,e){if(t.arg)return{expression:t.arg};var i=e.data.model||_(e.data.directives,function(t){return"model"===t.name});if(!i)return null;var n,r,s,a=!/[^\w.$]/.test(i.expression)&&(n=i.expression,r=e.context,s=r,n.split(".").every(function(t){return!!Object.prototype.hasOwnProperty.call(s,t)&&(s=s[t],!0)})),o=!(!i.modifiers||!i.modifiers.lazy);return a?{expression:i.expression,lazy:o}:{expression:null,lazy:o}},D.resolveName=function(t,e){var i=l(t,"name");if(!i&&!e.child)return t.name;if(!i&&e.child&&e.child.$attrs&&(i=e.child.$attrs["data-vv-name"]||e.child.$attrs.name),!i&&e.child){var n=D.getCtorConfig(e);return n&&m(n.name)?n.name.bind(e.child)():e.child.name}return i};var P={targetOf:null,initial:!(D.resolveGetter=function(i,t,e){if(e&&e.expression)return function(){return d(e.expression,t.context)};if(t.child){var n=l(i,"value-path")||t.child.$attrs&&t.child.$attrs["data-vv-value-path"];if(n)return function(){return d(n,t.child)};var r=D.getCtorConfig(t);if(r&&m(r.value)){var s=r.value.bind(t.child);return function(){return s()}}return function(){return t.child.value}}switch(i.type){case"checkbox":return function(){var t=document.querySelectorAll('input[name="'+i.name+'"]');if((t=b(t).filter(function(t){return t.checked})).length)return t.map(function(t){return t.value})};case"radio":return function(){var t=document.querySelectorAll('input[name="'+i.name+'"]'),e=_(t,function(t){return t.checked});return e&&e.value};case"file":return function(t){return b(i.files)};case"select-multiple":return function(){return b(i.options).filter(function(t){return t.selected}).map(function(t){return t.value})};default:return function(){return i&&i.value}}}),scope:null,listen:!0,name:null,rules:{},vm:null,classes:!1,validity:!0,aria:!0,events:"input|blur",delay:0,classNames:{touched:"touched",untouched:"untouched",valid:"valid",invalid:"invalid",pristine:"pristine",dirty:"dirty"}},S=function(t){void 0===t&&(t={}),this.id=(9999<=e&&(e=0,i=i.replace("{id}","_{id}")),e++,i.replace("{id}",String(e))),this.el=t.el,this.updated=!1,this.dependencies=[],this.watchers=[],this.events=[],this.delay=0,this.rules={},this._cacheId(t),this.classNames=$({},P.classNames),t=$({},P,t),this._delay=u(t.delay)?0:t.delay,this.validity=t.validity,this.aria=t.aria,this.flags={untouched:!0,touched:!1,dirty:!1,pristine:!0,valid:null,invalid:null,validated:!1,pending:!1,required:!1,changed:!1},this.vm=t.vm,this.component=t.component,this.ctorConfig=this.component?d("$options.$_veeValidate",this.component):void 0,this.update(t),this.initialValue=this.value,this.updated=!1},q={validator:{configurable:!0},isRequired:{configurable:!0},isDisabled:{configurable:!0},alias:{configurable:!0},value:{configurable:!0},rejectsFalse:{configurable:!0}};q.validator.get=function(){return this.vm&&this.vm.$validator?this.vm.$validator:(f("No validator instance detected."),{validate:function(){}})},q.isRequired.get=function(){return!!this.rules.required},q.isDisabled.get=function(){return!(!this.component||!this.component.disabled)||!(!this.el||!this.el.disabled)},q.alias.get=function(){if(this._alias)return this._alias;var t=null;return this.el&&(t=l(this.el,"as")),!t&&this.component?this.component.$attrs&&this.component.$attrs["data-vv-as"]:t},q.value.get=function(){if(m(this.getter))return this.getter()},q.rejectsFalse.get=function(){return this.component&&this.ctorConfig?!!this.ctorConfig.rejectsFalse:!!this.el&&"checkbox"===this.el.type},S.prototype.matches=function(t){return!t||(t.id?this.id===t.id:void 0===t.name&&void 0===t.scope||(void 0===t.scope?this.name===t.name:void 0===t.name?this.scope===t.scope:t.name===this.name&&t.scope===this.scope))},S.prototype._cacheId=function(t){var e,i,n;this.el&&!t.targetOf&&(e=this.el,i="id",n=this.id,e.setAttribute("data-vv-"+i,n))},S.prototype.update=function(t){var n,e;this.targetOf=t.targetOf||null,this.initial=t.initial||this.initial||!1,!u(t.scope)&&t.scope!==this.scope&&m(this.validator.update)&&this.validator.update(this.id,{scope:t.scope}),this.scope=u(t.scope)?u(this.scope)?null:this.scope:t.scope,this.name=(u(t.name)?t.name:String(t.name))||this.name||null,this.rules=void 0!==t.rules?(n=t.rules)?v(n)?Object.keys(n).reduce(function(t,e){var i=[];return i=!0===n[e]?[]:Array.isArray(n[e])?n[e]:[n[e]],!1!==n[e]&&(t[e]=i),t},{}):"string"!=typeof n?(f("rules must be either a string or an object."),{}):n.split("|").reduce(function(t,e){var i,n,r,s=(n=[],r=(i=e).split(":")[0],~i.indexOf(":")&&(n=i.split(":").slice(1).join(":").split(",")),{name:r,params:n});return s.name&&(t[s.name]=s.params),t},{}):{}:this.rules,this.model=t.model||this.model,this.listen=void 0!==t.listen?t.listen:this.listen,this.classes=!(!t.classes&&!this.classes)&&!this.component,this.classNames=v(t.classNames)?A(this.classNames,t.classNames):this.classNames,this.getter=m(t.getter)?t.getter:this.getter,this._alias=t.alias||this._alias,this.events=t.events?"string"==typeof(e=t.events)&&e.length?e.split("|"):[]:this.events,this.delay=t.delay?w(this.events,t.delay,this._delay):w(this.events,this.delay,this._delay),this.updateDependencies(),this.addActionListeners(),this.name||f('A field is missing a "name" or "data-vv-name" attribute'),void 0!==t.rules&&(this.flags.required=this.isRequired),this.flags.validated&&void 0!==t.rules&&this.updated&&this.validator.validate("#"+this.id),this.updated=!0,this.addValueListeners(),this.el&&(this.updateClasses(),this.updateAriaAttrs())},S.prototype.reset=function(){var e=this,i={untouched:!0,touched:!1,dirty:!1,pristine:!0,valid:null,invalid:null,validated:!1,pending:!1,required:!1,changed:!1};Object.keys(this.flags).filter(function(t){return"required"!==t}).forEach(function(t){e.flags[t]=i[t]}),this.addActionListeners(),this.updateClasses(),this.updateAriaAttrs(),this.updateCustomValidity()},S.prototype.setFlags=function(e){var i=this,n={pristine:"dirty",dirty:"pristine",valid:"invalid",invalid:"valid",touched:"untouched",untouched:"touched"};Object.keys(e).forEach(function(t){i.flags[t]=e[t],n[t]&&void 0===e[n[t]]&&(i.flags[n[t]]=!e[t])}),void 0===e.untouched&&void 0===e.touched&&void 0===e.dirty&&void 0===e.pristine||this.addActionListeners(),this.updateClasses(),this.updateAriaAttrs(),this.updateCustomValidity()},S.prototype.updateDependencies=function(){var a=this;this.dependencies.forEach(function(t){return t.field.destroy()}),this.dependencies=[];var t=Object.keys(this.rules).reduce(function(t,e){if(G.isTargetRule(e)){var i=a.rules[e][0];"confirmed"!==e||i||(i=a.name+"_confirmation"),t.push({selector:i,name:e})}return t},[]);t.length&&this.vm&&this.vm.$el&&t.forEach(function(t){var e=t.selector,i=t.name,n=null;if("$"===e[0]){var r=a.vm.$refs[e.slice(1)];n=Array.isArray(r)?r[0]:r}else try{n=a.vm.$el.querySelector(e)}catch(t){n=null}if(!n)try{n=a.vm.$el.querySelector('input[name="'+e+'"]')}catch(t){n=null}if(n){var s={vm:a.vm,classes:a.classes,classNames:a.classNames,delay:a.delay,scope:a.scope,events:a.events.join("|"),initial:a.initial,targetOf:a.id};m(n.$watch)?(s.component=n,s.el=n.$el,s.getter=D.resolveGetter(n.$el,{child:n})):(s.el=n,s.getter=D.resolveGetter(n,{})),a.dependencies.push({name:i,field:new S(s)})}})},S.prototype.unwatch=function(e){if(void 0===e&&(e=null),!e)return this.watchers.forEach(function(t){return t.unwatch()}),void(this.watchers=[]);this.watchers.filter(function(t){return e.test(t.tag)}).forEach(function(t){return t.unwatch()}),this.watchers=this.watchers.filter(function(t){return!e.test(t.tag)})},S.prototype.updateClasses=function(){this.classes&&!this.isDisabled&&(y(this.el,this.classNames.dirty,this.flags.dirty),y(this.el,this.classNames.pristine,this.flags.pristine),y(this.el,this.classNames.touched,this.flags.touched),y(this.el,this.classNames.untouched,this.flags.untouched),!u(this.flags.valid)&&this.flags.validated&&y(this.el,this.classNames.valid,this.flags.valid),!u(this.flags.invalid)&&this.flags.validated&&y(this.el,this.classNames.invalid,this.flags.invalid))},S.prototype.addActionListeners=function(){var t=this;if(this.unwatch(/class/),this.el){var e=function(){t.flags.touched=!0,t.flags.untouched=!1,t.classes&&(y(t.el,t.classNames.touched,!0),y(t.el,t.classNames.untouched,!1)),t.unwatch(/^class_blur$/)},i=o(this.el)?"input":"change",n=function(){t.flags.dirty=!0,t.flags.pristine=!1,t.classes&&(y(t.el,t.classNames.pristine,!1),y(t.el,t.classNames.dirty,!0)),t.unwatch(/^class_input$/)};if(this.component&&m(this.component.$once))return this.component.$once("input",n),this.component.$once("blur",e),this.watchers.push({tag:"class_input",unwatch:function(){t.component.$off("input",n)}}),void this.watchers.push({tag:"class_blur",unwatch:function(){t.component.$off("blur",e)}});if(this.el){a(this.el,i,n);var r=-1===["radio","checkbox"].indexOf(this.el.type)?"blur":"click";a(this.el,r,e),this.watchers.push({tag:"class_input",unwatch:function(){t.el.removeEventListener(i,n)}}),this.watchers.push({tag:"class_blur",unwatch:function(){t.el.removeEventListener(r,e)}})}}},S.prototype.checkValueChanged=function(){return(null!==this.initialValue||""!==this.value||!o(this.el))&&this.value!==this.initialValue},S.prototype.addValueListeners=function(){var n=this;if(this.unwatch(/^input_.+/),this.listen&&this.el){var r=this.targetOf?function(){n.flags.changed=n.checkValueChanged(),n.validator.validate("#"+n.targetOf)}:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];(0===t.length||m(Event)&&t[0]instanceof Event||t[0]&&t[0].srcElement)&&(t[0]=n.value),n.flags.changed=n.checkValueChanged(),n.validator.validate("#"+n.id,t[0])},e=o(this.el)?"input":"change";e=this.model&&this.model.lazy?"change":e;var t=!this.events.length||o(this.el)?this.events:["change"];if(this.model&&this.model.expression&&-1!==t.indexOf(e)){var i=h(r,this.delay[e]),s=this.vm.$watch(this.model.expression,function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];n.flags.pending=!0,i.apply(void 0,t)});this.watchers.push({tag:"input_model",unwatch:s}),t=t.filter(function(t){return t!==e})}t.forEach(function(t){var i=h(r,n.delay[t]),e=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];n.flags.pending=!0,i.apply(void 0,t)};n._addComponentEventListener(t,e),n._addHTMLEventListener(t,e)})}},S.prototype._addComponentEventListener=function(t,e){var i=this;this.component&&(this.component.$on(t,e),this.watchers.push({tag:"input_vue",unwatch:function(){i.component.$off(t,e)}}))},S.prototype._addHTMLEventListener=function(e,i){var n=this;if(this.el&&!this.component&&(a(this.el,e,i),this.watchers.push({tag:"input_native",unwatch:function(){n.el.removeEventListener(e,i)}}),~["radio","checkbox"].indexOf(this.el.type))){var t=document.querySelectorAll('input[name="'+this.el.name+'"]');b(t).forEach(function(t){l(t,"id")&&t!==n.el||(a(t,e,i),n.watchers.push({tag:"input_native",unwatch:function(){t.removeEventListener(e,i)}}))})}},S.prototype.updateAriaAttrs=function(){this.aria&&this.el&&m(this.el.setAttribute)&&(this.el.setAttribute("aria-required",this.isRequired?"true":"false"),this.el.setAttribute("aria-invalid",this.flags.invalid?"true":"false"))},S.prototype.updateCustomValidity=function(){this.validity&&this.el&&m(this.el.setCustomValidity)&&this.el.setCustomValidity(this.flags.valid?"":this.validator.errors.firstById(this.id)||"")},S.prototype.destroy=function(){this.unwatch(),this.dependencies.forEach(function(t){return t.field.destroy()}),this.dependencies=[]},Object.defineProperties(S.prototype,q);var T=function(){this.items=[]},z={length:{configurable:!0}};T.prototype["function"==typeof Symbol?Symbol.iterator:"@@iterator"]=function(){var t=this,e=0;return{next:function(){return{value:t.items[e++],done:e>t.items.length}}}},z.length.get=function(){return this.items.length},T.prototype.find=function(e){return _(this.items,function(t){return t.matches(e)})},T.prototype.filter=function(i){return Array.isArray(i)?this.items.filter(function(e){return i.some(function(t){return e.matches(t)})}):this.items.filter(function(t){return t.matches(i)})},T.prototype.map=function(t){return this.items.map(t)},T.prototype.remove=function(t){var e=null;if(!(e=t instanceof S?t:this.find(t)))return null;var i=this.items.indexOf(e);return this.items.splice(i,1),e},T.prototype.push=function(t){if(!(t instanceof S))throw p("FieldBag only accepts instances of Field that has an id defined.");if(!t.id)throw p("Field id must be defined.");if(this.find({id:t.id}))throw p("Field with id "+t.id+" is already added.");this.items.push(t)},Object.defineProperties(T.prototype,z);var B={},I=!0,K=["confirmed","after","before"],G=function(t,e){var i=this;void 0===e&&(e={fastExit:!0}),this.strict=I,this.errors=new E,this.fields=new T,this.flags={},this._createFields(t),this.paused=!1,this.fastExit=e.fastExit||!1,this.ownerId=e.vm&&e.vm._uid,this._localeListener=function(){i.errors.regenerate()},this._vm&&this._vm.$on("localeChanged",this._localeListener)},H={dictionary:{configurable:!0},_vm:{configurable:!0},locale:{configurable:!0},rules:{configurable:!0}},U={dictionary:{configurable:!0},locale:{configurable:!0},rules:{configurable:!0}};H.dictionary.get=function(){return M.dependency("dictionary")},H._vm.get=function(){return M.dependency("vm")},U.dictionary.get=function(){return M.dependency("dictionary")},H.locale.get=function(){return this.dictionary.locale},H.locale.set=function(t){G.locale=t},U.locale.get=function(){return G.dictionary.locale},U.locale.set=function(t){var e=t!==G.dictionary.locale;G.dictionary.locale=t,e&&M.dependency("vm")&&M.dependency("vm").$emit("localeChanged")},H.rules.get=function(){return B},U.rules.get=function(){return B},G.create=function(t,e){return new G(t,e)},G.extend=function(t,e,i){void 0===i&&(i={}),G._guardExtend(t,e),G._merge(t,e),i&&i.hasTarget&&K.push(t)},G.remove=function(t){delete B[t];var e=K.indexOf(t);-1!==e&&K.splice(e,1)},G.isTargetRule=function(t){return-1!==K.indexOf(t)},G.setStrictMode=function(t){void 0===t&&(t=!0),I=t},G.prototype.localize=function(t,e){G.localize(t,e)},G.localize=function(t,e){var i;if(v(t))G.dictionary.merge(t);else{if(e){var n=t||e.name;e=$({},e),G.dictionary.merge(((i={})[n]=e,i))}t&&(G.locale=t)}},G.prototype.attach=function(e){1<arguments.length&&(f("This signature of the attach method has been deprecated, please consult the docs."),e=$({},{name:e,rules:arguments[1]},arguments[2]||{vm:{$validator:this}}));var t=e.initialValue;return e instanceof S||(e=new S(e)),this.fields.push(e),e.initial?this.validate("#"+e.id,t||e.value):this._validate(e,t||e.value,!0).then(function(t){e.flags.valid=t.valid,e.flags.invalid=!t.valid}),this._addFlag(e,e.scope),e},G.prototype.flag=function(t,e){var i=this._resolveField(t);i&&e&&i.setFlags(e)},G.prototype.detach=function(t,e){var i=t instanceof S?t:this._resolveField(t,e);if(i){i.destroy(),this.errors.remove(i.name,i.scope,i.id),this.fields.remove(i);var n=this.flags;!u(i.scope)&&n["$"+i.scope]?delete n["$"+i.scope][i.name]:u(i.scope)&&delete n[i.name],this.flags=$({},n)}},G.prototype.extend=function(t,e,i){void 0===i&&(i={}),G.extend(t,e,i)},G.prototype.reset=function(r){return new Promise(function(i,n){return this._vm.$nextTick().then(function(t){try{return this._vm.$nextTick().then(function(t){var e=this;try{return this.fields.filter(r).forEach(function(t){t.reset(),e.errors.remove(t.name,t.scope,t.id)}),i()}catch(t){return n(t)}}.bind(this),n)}catch(t){return n(t)}}.bind(this),n)}.bind(this))},G.prototype.update=function(t,e){var i=e.scope,n=this._resolveField("#"+t);n&&(this.errors.update(t,{scope:i}),!u(n.scope)&&this.flags["$"+n.scope]?delete this.flags["$"+n.scope][n.name]:u(n.scope)&&delete this.flags[n.name],this._addFlag(n,i))},G.prototype.remove=function(t){G.remove(t)},G.prototype.validate=function(s,a,o,l){void 0===o&&(o=null),void 0===l&&(l=!1);var u=arguments;return new Promise(function(e,i){var t,n,r;return this.paused?e(Promise.resolve(!0)):0===u.length?e(this.validateScopes()):1===u.length&&"*"===u[0]?e(this.validateAll()):1===u.length&&"string"==typeof u[0]&&/^(.+)\.\*$/.test(u[0])?(t=u[0].match(/^(.+)\.\*$/)[1],e(this.validateAll(t))):(n=this._resolveField(s,o))?(l||(n.flags.pending=!0),1===u.length&&(a=n.value),n.isDisabled?e(!0):this._validate(n,a).then(function(t){try{return r=t,l||this._handleValidationResults([r]),e(r.valid)}catch(t){return i(t)}}.bind(this),i)):e(this._handleFieldNotFound(s,o))}.bind(this))},G.prototype.pause=function(){return this.paused=!0,this},G.prototype.resume=function(){return this.paused=!1,this},G.prototype.validateAll=function(a,o,l){return void 0===o&&(o=null),void 0===l&&(l=!1),new Promise(function(e,i){var n,t,r,s=this;return this.paused?e(!0):(t=null,r=!1,"string"==typeof a?t={scope:a}:v(a)?(t=Object.keys(a).map(function(t){return{name:t,scope:o}}),r=!0):t=Array.isArray(a)?a.map(function(t){return{name:t,scope:o}}):{scope:o},Promise.all(this.fields.filter(t).map(function(t){return s._validate(t,r?a[t.name]:t.value)})).then(function(t){try{return n=t,l||this._handleValidationResults(n),e(n.every(function(t){return t.valid}))}catch(t){return i(t)}}.bind(this),i))}.bind(this))},G.prototype.validateScopes=function(s){return void 0===s&&(s=!1),new Promise(function(e,i){var n,r=this;return this.paused?e(!0):Promise.all(this.fields.map(function(t){return r._validate(t,t.value)})).then(function(t){try{return n=t,s||this._handleValidationResults(n),e(n.every(function(t){return t.valid}))}catch(t){return i(t)}}.bind(this),i)}.bind(this))},G.prototype.destroy=function(){this._vm.$off("localeChanged",this._localeListener)},G.prototype._createFields=function(i){var n=this;i&&Object.keys(i).forEach(function(t){var e=$({},{name:t,rules:i[t]});n.attach(e)})},G.prototype._getDateFormat=function(t){var e=null;return t.date_format&&Array.isArray(t.date_format)&&(e=t.date_format[0]),e||this.dictionary.getDateFormat(this.locale)},G.prototype._isADateRule=function(t){return!!~["after","before","date_between","date_format"].indexOf(t)},G.prototype._formatErrorMessage=function(t,e,i,n){void 0===i&&(i={}),void 0===n&&(n=null);var r=this._getFieldDisplayName(t),s=this._getLocalizedParams(e,n);return this.dictionary.getFieldMessage(this.locale,t.name,e.name,[r,s,i])},G.prototype._getLocalizedParams=function(t,e){return void 0===e&&(e=null),~K.indexOf(t.name)&&t.params&&t.params[0]?[e||this.dictionary.getAttribute(this.locale,t.params[0],t.params[0])].concat(t.params.slice(1)):t.params},G.prototype._getFieldDisplayName=function(t){return t.alias||this.dictionary.getAttribute(this.locale,t.name,t.name)},G.prototype._addFlag=function(t,e){var i,n,r;if(void 0===e&&(e=null),u(e))this.flags=$({},this.flags,((i={})[""+t.name]=t.flags,i));else{var s=$({},this.flags["$"+e]||{},((n={})[""+t.name]=t.flags,n));this.flags=$({},this.flags,((r={})["$"+e]=s,r))}},G.prototype._test=function(n,t,r){var s=this,e=B[r.name],i=Array.isArray(r.params)?b(r.params):[],a=null;if(!e||"function"!=typeof e)throw p("No such validator '"+r.name+"' exists.");if(-1!==K.indexOf(r.name)){var o=_(n.dependencies,function(t){return t.name===r.name});o&&(a=o.field.alias,i=[o.field.value].concat(i.slice(1)))}else"required"===r.name&&n.rejectsFalse&&(i=i.length?i:[!0]);if(this._isADateRule(r.name)){var l=this._getDateFormat(n.rules);"date_format"!==r.name&&i.push(l)}var u=e(t,i);return m(u.then)?u.then(function(t){var e=!0,i={};return Array.isArray(t)?e=t.every(function(t){return v(t)?t.valid:t}):(e=v(t)?t.valid:t,i=t.data),{valid:e,errors:e?[]:[s._createFieldError(n,r,i,a)]}}):(v(u)||(u={valid:u,data:{}}),{valid:u.valid,errors:u.valid?[]:[this._createFieldError(n,r,u.data,a)]})},G._merge=function(t,e){m(e)?B[t]=e:(B[t]=e.validate,e.getMessage&&G.dictionary.setMessage(this.locale,t,e.getMessage))},G._guardExtend=function(t,e){if(!m(e)&&!m(e.validate))throw p("Extension Error: The validator '"+t+"' must be a function or have a 'validate' method.")},G.prototype._createFieldError=function(t,e,i,n){var r=this;return{id:t.id,field:t.name,msg:this._formatErrorMessage(t,e,i,n),rule:e.name,scope:t.scope,regenerate:function(){return r._formatErrorMessage(t,e,i,n)}}},G.prototype._resolveField=function(t,e){if(!u(e))return this.fields.find({name:t,scope:e});if("#"===t[0])return this.fields.find({id:t.slice(1)});if(-1<t.indexOf(".")){var i=t.split("."),n=i[0],r=i.slice(1),s=this.fields.find({name:r.join("."),scope:n});if(s)return s}return this.fields.find({name:t,scope:null})},G.prototype._handleFieldNotFound=function(t,e){if(!this.strict)return!0;var i=u(e)?t:(u(e)?"":e+".")+t;throw p('Validating a non-existent field: "'+i+'". Use "attach()" first.')},G.prototype._handleValidationResults=function(i){var t=i.map(function(t){return{id:t.id}});this.errors.removeById(t.map(function(t){return t.id}));var e=i.reduce(function(t,e){return t.push.apply(t,e.errors),t},[]);this.errors.add(e),this.fields.filter(t).forEach(function(e){var t=_(i,function(t){return t.id===e.id});e.setFlags({pending:!1,valid:t.valid,validated:!0})})},G.prototype._validate=function(o,l){return new Promise(function(e,i){var n,r,s,a=this;return o.isRequired||!u(l)&&""!==l?(n=[],s=!(r=[]),Object.keys(o.rules).some(function(t){var e=a._test(o,l,{name:t,params:o.rules[t]});return m(e.then)?n.push(e):a.fastExit&&!e.valid?(r.push.apply(r,e.errors),s=!0):n.push(new Promise(function(t){return t(e)})),s}),s?e({valid:!1,errors:r,id:o.id}):Promise.all(n).then(function(t){try{return e(t.reduce(function(t,e){var i;return e.valid||(i=t.errors).push.apply(i,e.errors),t.valid=t.valid&&e.valid,t},{valid:!0,errors:r,id:o.id}))}catch(t){return i(t)}}.bind(this),i)):e({valid:!0,id:o.id,errors:[]})}.bind(this))},Object.defineProperties(G.prototype,H),Object.defineProperties(G,U);var J,Q=function(t,e){return new G(null,{vm:t,fastExit:e.fastExit})},W={provide:function(){return this.$validator&&!r(this.$vnode)?{$validator:this.$validator}:{}},beforeCreate:function(){if(!r(this.$vnode)){this.$parent||M.merge(this.$options.$_veeValidate||{});var t=M.resolve(this),e=this.$options._base;this.$options.$validates&&(f('The ctor $validates option has been deprecated please set the $_veeValidate.validator option to "new" instead'),this.$validator=Q(this,t)),(!this.$parent||this.$options.$_veeValidate&&/new/.test(this.$options.$_veeValidate.validator))&&(this.$validator=Q(this,t));var i,n=(i=this.$options.inject,!(!v(i)||!i.$validator));this.$validator||!t.inject||n||(this.$validator=Q(this,t)),(n||this.$validator)&&(!n&&this.$validator&&(e.util.defineReactive(this.$validator,"errors",this.$validator.errors),e.util.defineReactive(this.$validator,"flags",this.$validator.flags)),this.$options.computed||(this.$options.computed={}),this.$options.computed[t.errorBagName||"errors"]=function(){return this.$validator.errors},this.$options.computed[t.fieldsBagName||"fields"]=function(){return this.$validator.flags})}},beforeDestroy:function(){r(this.$vnode)||this.$validator&&this.$validator.ownerId===this._uid&&(this.$validator.pause(),this.$validator.destroy())}},X=function(t,e){return e&&e.$validator?e.$validator.fields.find({id:l(t,"id")}):null},Y={bind:function(t,e,i){var n=i.context.$validator;if(n){var r=D.generate(t,e,i);n.attach(r)}else f("No validator instance is present on vm, did you forget to inject '$validator'?")},inserted:function(t,e,i){var n=X(t,i.context),r=D.resolveScope(t,e,i);n&&r!==n.scope&&(n.update({scope:r}),n.updated=!1)},update:function(t,e,i){var n=X(t,i.context);if(!(!n||n.updated&&c(e.value,e.oldValue))){var r=D.resolveScope(t,e,i),s=D.resolveRules(t,e);n.update({scope:r,rules:s})}},unbind:function(t,e,i){var n=i.context,r=X(t,n);r&&n.$validator.detach(r)}};var Z=function(i,n){var r={pristine:function(t,e){return t&&e},dirty:function(t,e){return t||e},touched:function(t,e){return t||e},untouched:function(t,e){return t&&e},valid:function(t,e){return t&&e},invalid:function(t,e){return t||e},pending:function(t,e){return t||e},required:function(t,e){return t||e},validated:function(t,e){return t&&e}};return Object.keys(r).reduce(function(t,e){return t[e]=r[e](i[e],n[e]),t},{})},tt=function(n,r){return void 0===r&&(r=!0),Object.keys(n).reduce(function(t,e){if(!t)return t=$({},n[e]);var i=0===e.indexOf("$");return r&&i?Z(tt(n[e]),t):!r&&i?t:t=Z(t,n[e])},null)},et={name:"vv-error",inject:["$validator"],functional:!0,props:{for:{type:String,required:!0},tag:{type:String,default:"span"}},render:function(t,e){var i=e.props,n=e.injections;return t(i.tag,n.$validator.errors.first(i.for))}};return{install:function(t,e){if(void 0===e&&(e={}),J&&t===J)"production"!==process.env.NODE_ENV&&f("already installed, Vue.use(VeeValidate) should only be called once.");else{s(),J=t,M.register("vm",new J),M.merge(e);var i=M.current,n=i.dictionary,r=i.i18n;n&&G.localize(n),r&&r._vm&&m(r._vm.$watch)&&r._vm.$watch("locale",function(){G.regenerate()}),!r&&e.locale&&G.localize(e.locale),G.setStrictMode(M.current.strict),J.mixin(W),J.directive("validate",Y)}},use:function(t,e){if(void 0===e&&(e={}),!m(t))return f("The plugin must be a callable function");t({Validator:G,ErrorBag:E,Rules:G.rules},e)},directive:Y,mixin:W,mapFields:function(t){if(!t)return function(){return tt(this.$validator.flags)};var e,s=(e=t,Array.isArray(e)?e.reduce(function(t,e){return~e.indexOf(".")?t[e.split(".")[1]]=e:t[e]=e,t},{}):e);return Object.keys(s).reduce(function(t,n){var r=s[n];return t[n]=function(){if(this.$validator.flags[r])return this.$validator.flags[r];if("*"===s[n])return tt(this.$validator.flags,!1);if(r.indexOf(".")<=0)return{};var t=r.split("."),e=t[0],i=t.slice(1);return e=this.$validator.flags["$"+e],"*"===(i=i.join("."))&&e?tt(e):e&&e[i]?e[i]:{}},t},{})},Validator:G,ErrorBag:E,ErrorComponent:et,version:"2.0.8"}});
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.VeeValidate=e()}(this,function(){"use strict";var n=!0,a=function(){try{var t=Object.defineProperty({},"passive",{get:function(){n=!0}});window.addEventListener("testPassive",null,t),window.removeEventListener("testPassive",null,t)}catch(t){n=!1}return n},s=function(t,e,i){t.addEventListener(e,i,!!n&&{passive:!0})},o=function(t){return-1!==["text","number","password","search","email","tel","url","textarea"].indexOf(t.type)},l=function(t){return-1!==["radio","checkbox"].indexOf(t.type)},u=function(t,e){return t.getAttribute("data-vv-"+e)},c=function(t){return null==t},d=function(e,i){if(e instanceof RegExp&&i instanceof RegExp)return d(e.source,i.source)&&d(e.flags,i.flags);if(Array.isArray(e)&&Array.isArray(i)){if(e.length!==i.length)return!1;for(var t=0;t<e.length;t++)if(!d(e[t],i[t]))return!1;return!0}return m(e)&&m(i)?Object.keys(e).every(function(t){return d(e[t],i[t])})&&Object.keys(i).every(function(t){return d(e[t],i[t])}):e===i},r=function(t){return c(t)?null:"FORM"===t.tagName?t:c(t.form)?c(t.parentNode)?null:r(t.parentNode):t.form},f=function(t,e,i){if(void 0===i&&(i=void 0),!t||!e)return i;var n=e;return t.split(".").every(function(t){return Object.prototype.hasOwnProperty.call(n,t)||void 0!==n[t]?(n=n[t],!0):(n=i,!1)}),n},h=function(n,r,s,a){return void 0===r&&(r=0),void 0===s&&(s=!1),void 0===a&&(a={cancelled:!1}),0===r?n:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var i=s&&!o;clearTimeout(o),o=setTimeout(function(){o=null,s||a.cancelled||n.apply(void 0,t)},r),i&&n.apply(void 0,t)};var o},p=function(t){console.warn("[vee-validate] "+t)},v=function(t){return new Error("[vee-validate] "+t)},m=function(t){return null!==t&&t&&"object"==typeof t&&!Array.isArray(t)},g=function(t){return"function"==typeof t},y=function(t,e){return t.classList?t.classList.contains(e):!!t.className.match(new RegExp("(\\s|^)"+e+"(\\s|$)"))},b=function(e,t,i){var n,r;if(e&&t){if(!Array.isArray(t))return i?(r=t,void((n=e).classList?n.classList.add(r):y(n,r)||(n.className+=" "+r))):void function(t,e){if(t.classList)t.classList.remove(e);else if(y(t,e)){var i=new RegExp("(\\s|^)"+e+"(\\s|$)");t.className=t.className.replace(i," ")}}(e,t);t.forEach(function(t){return b(e,t,i)})}},$=function(t){if(g(Array.from))return Array.from(t);for(var e=[],i=t.length,n=0;n<i;n++)e.push(t[n]);return e},_=function(t){for(var e=[],i=arguments.length-1;0<i--;)e[i]=arguments[i+1];if(g(Object.assign))return Object.assign.apply(Object,[t].concat(e));if(null==t)throw new TypeError("Cannot convert undefined or null to object");var n=Object(t);return e.forEach(function(e){null!=e&&Object.keys(e).forEach(function(t){n[t]=e[t]})}),n},e=0,i="{id}",w=function(t,e){for(var i=Array.isArray(t)?t:$(t),n=0;n<i.length;n++)if(e(i[n]))return i[n]},x=function(t){if(!t)return!1;var e=t.componentOptions.tag;return/keep-alive|transition|transition-group/.test(e)},A=function(t){if("number"==typeof t)return t;if("string"==typeof t)return parseInt(t);var e={};for(var i in t)e[i]=parseInt(t[i]);return e},E=function(n,r){return m(n)&&m(r)&&Object.keys(r).forEach(function(t){var e,i;if(m(r[t]))return n[t]||_(n,((e={})[t]={},e)),void E(n[t],r[t]);_(n,((i={})[t]=r[t],i))}),n},O=function(){this.items=[]};O.prototype["function"==typeof Symbol?Symbol.iterator:"@@iterator"]=function(){var t=this,e=0;return{next:function(){return{value:t.items[e++],done:e>t.items.length}}}},O.prototype.add=function(t){var e;1<arguments.length&&(t={field:t,msg:arguments[1],rule:arguments[2],scope:c(arguments[3])?null:arguments[3],regenerate:null}),(e=this.items).push.apply(e,this._normalizeError(t))},O.prototype._normalizeError=function(t){return Array.isArray(t)?t.map(function(t){return t.scope=c(t.scope)?null:t.scope,t}):(t.scope=c(t.scope)?null:t.scope,[t])},O.prototype.regenerate=function(){this.items.forEach(function(t){t.msg=g(t.regenerate)?t.regenerate():t.msg})},O.prototype.update=function(e,t){var i=w(this.items,function(t){return t.id===e});if(i){var n=this.items.indexOf(i);this.items.splice(n,1),i.scope=t.scope,this.items.push(i)}},O.prototype.all=function(e){return c(e)?this.items.map(function(t){return t.msg}):this.items.filter(function(t){return t.scope===e}).map(function(t){return t.msg})},O.prototype.any=function(e){return c(e)?!!this.items.length:!!this.items.filter(function(t){return t.scope===e}).length},O.prototype.clear=function(t){c(t)&&(t=null);for(var e=0;e<this.items.length;++e)this.items[e].scope===t&&(this.items.splice(e,1),--e)},O.prototype.collect=function(e,i,n){if(void 0===n&&(n=!0),!e){var r={};return this.items.forEach(function(t){r[t.field]||(r[t.field]=[]),r[t.field].push(n?t.msg:t)}),r}return e=c(e)?e:String(e),c(i)?this.items.filter(function(t){return t.field===e}).map(function(t){return n?t.msg:t}):this.items.filter(function(t){return t.field===e&&t.scope===i}).map(function(t){return n?t.msg:t})},O.prototype.count=function(){return this.items.length},O.prototype.firstById=function(e){var t=w(this.items,function(t){return t.id===e});return t?t.msg:null},O.prototype.first=function(t,e){if(void 0===e&&(e=null),c(t))return null;t=String(t);var i=this._selector(t),n=this._scope(t);if(n){var r=this.first(n.name,n.scope);if(r)return r}if(i)return this.firstByRule(i.name,i.rule,e);for(var s=0;s<this.items.length;++s)if(this.items[s].field===t&&this.items[s].scope===e)return this.items[s].msg;return null},O.prototype.firstRule=function(t,e){var i=this.collect(t,e,!1);return i.length&&i[0].rule||null},O.prototype.has=function(t,e){return void 0===e&&(e=null),!!this.first(t,e)},O.prototype.firstByRule=function(t,e,i){void 0===i&&(i=null);var n=this.collect(t,i,!1).filter(function(t){return t.rule===e})[0];return n&&n.msg||null},O.prototype.firstNot=function(t,e,i){void 0===e&&(e="required"),void 0===i&&(i=null);var n=this.collect(t,i,!1).filter(function(t){return t.rule!==e})[0];return n&&n.msg||null},O.prototype.removeById=function(e){if(Array.isArray(e))this.items=this.items.filter(function(t){return-1===e.indexOf(t.id)});else for(var t=0;t<this.items.length;++t)this.items[t].id===e&&(this.items.splice(t,1),--t)},O.prototype.remove=function(t,e){t=c(t)?t:String(t);for(var i,n=0;n<this.items.length;++n)i=this.items[n],(c(e)?i.field===t&&null===i.scope:i.field===t&&i.scope===e)&&(this.items.splice(n,1),--n)},O.prototype._selector=function(t){if(-1<t.indexOf(":")){var e=t.split(":");return{name:e[0],rule:e[1]}}return null},O.prototype._scope=function(t){if(-1<t.indexOf(".")){var e=t.split("."),i=e[0];return{name:e.slice(1).join("."),scope:i}}return null};var F="en",t=function(t){void 0===t&&(t={}),this.container={},this.merge(t)},j={locale:{configurable:!0}};j.locale.get=function(){return F},j.locale.set=function(t){F=t||"en"},t.prototype.hasLocale=function(t){return!!this.container[t]},t.prototype.setDateFormat=function(t,e){this.container[t]||(this.container[t]={}),this.container[t].dateFormat=e},t.prototype.getDateFormat=function(t){return this.container[t]&&this.container[t].dateFormat?this.container[t].dateFormat:null},t.prototype.getMessage=function(t,e,i){var n=null;return n=this.hasMessage(t,e)?this.container[t].messages[e]:this._getDefaultMessage(t),g(n)?n.apply(void 0,i):n},t.prototype.getFieldMessage=function(t,e,i,n){if(!this.hasLocale(t))return this.getMessage(t,i,n);var r=this.container[t].custom&&this.container[t].custom[e];if(!r||!r[i])return this.getMessage(t,i,n);var s=r[i];return g(s)?s.apply(void 0,n):s},t.prototype._getDefaultMessage=function(t){return this.hasMessage(t,"_default")?this.container[t].messages._default:this.container.en.messages._default},t.prototype.getAttribute=function(t,e,i){return void 0===i&&(i=""),this.hasAttribute(t,e)?this.container[t].attributes[e]:i},t.prototype.hasMessage=function(t,e){return!!(this.hasLocale(t)&&this.container[t].messages&&this.container[t].messages[e])},t.prototype.hasAttribute=function(t,e){return!!(this.hasLocale(t)&&this.container[t].attributes&&this.container[t].attributes[e])},t.prototype.merge=function(t){E(this.container,t)},t.prototype.setMessage=function(t,e,i){this.hasLocale(t)||(this.container[t]={messages:{},attributes:{}}),this.container[t].messages[e]=i},t.prototype.setAttribute=function(t,e,i){this.hasLocale(t)||(this.container[t]={messages:{},attributes:{}}),this.container[t].attributes[e]=i},Object.defineProperties(t.prototype,j);var N=function(i){return m(i)?Object.keys(i).reduce(function(t,e){return t[e]=N(i[e]),t},{}):g(i)?i("{0}",["{1}","{2}","{3}"]):i},V=function(t,e){this.i18n=t,this.rootKey=e},I={locale:{configurable:!0}};I.locale.get=function(){return this.i18n.locale},I.locale.set=function(t){p("Cannot set locale from the validator when using vue-i18n, use i18n.locale setter instead")},V.prototype.getDateFormat=function(t){return this.i18n.getDateTimeFormat(t||this.locale)},V.prototype.setDateFormat=function(t,e){this.i18n.setDateTimeFormat(t||this.locale,e)},V.prototype.getMessage=function(t,e,i){var n=this.rootKey+".messages."+e;return this.i18n.te(n)?this.i18n.t(n,t,i):this.i18n.t(this.rootKey+".messages._default",t,i)},V.prototype.getAttribute=function(t,e,i){void 0===i&&(i="");var n=this.rootKey+".attributes."+e;return this.i18n.te(n)?this.i18n.t(n,t):i},V.prototype.getFieldMessage=function(t,e,i,n){var r=this.rootKey+".custom."+e+"."+i;return this.i18n.te(r)?this.i18n.t(r):this.getMessage(t,i,n)},V.prototype.merge=function(s){var a=this;Object.keys(s).forEach(function(t){var e,i,n=E({},f(t+"."+a.rootKey,a.i18n.messages,{})),r=E(n,(i=s[t],{messages:N(i.messages),custom:N(i.custom),attributes:i.attributes,dateFormat:i.dateFormat}));a.i18n.mergeLocaleMessage(t,((e={})[a.rootKey]=r,e)),r.dateFormat&&a.i18n.setDateTimeFormat(t,r.dateFormat)})},V.prototype.setMessage=function(t,e,i){var n,r;this.merge(((r={})[t]={messages:(n={},n[e]=i,n)},r))},V.prototype.setAttribute=function(t,e,i){var n,r;this.merge(((r={})[t]={attributes:(n={},n[e]=i,n)},r))},Object.defineProperties(V.prototype,I);var L={locale:"en",delay:0,errorBagName:"errors",dictionary:null,strict:!0,fieldsBagName:"fields",classes:!1,classNames:null,events:"input|blur",inject:!0,fastExit:!0,aria:!0,validity:!1,i18n:null,i18nRootKey:"validation"},k=_({},L),C={dictionary:new t({en:{messages:{},attributes:{},custom:{}}})},M=function(){},R={default:{configurable:!0},current:{configurable:!0}};R.default.get=function(){return L},R.current.get=function(){return k},M.dependency=function(t){return C[t]},M.merge=function(t){(k=_({},k,t)).i18n&&M.register("dictionary",new V(k.i18n,k.i18nRootKey))},M.register=function(t,e){C[t]=e},M.resolve=function(t){var e=f("$options.$_veeValidate",t,{});return _({},M.current,e)},Object.defineProperties(M,R);var D=function(){};D.generate=function(t,e,i){var n=D.resolveModel(e,i),r=M.resolve(i.context);return{name:D.resolveName(t,i),el:t,listen:!e.modifiers.disable,scope:D.resolveScope(t,e,i),vm:D.makeVM(i.context),expression:e.value,component:i.componentInstance,classes:r.classes,classNames:r.classNames,getter:D.resolveGetter(t,i,n),events:D.resolveEvents(t,i)||r.events,model:n,delay:D.resolveDelay(t,i,r),rules:D.resolveRules(t,e),initial:!!e.modifiers.initial,validity:r.validity,aria:r.aria,initialValue:D.resolveInitialValue(i)}},D.getCtorConfig=function(t){return t.componentInstance?f("componentInstance.$options.$_veeValidate",t):null},D.resolveRules=function(t,e){return e.value||e&&e.expression?e.value&&~["string","object"].indexOf(typeof e.value.rules)?e.value.rules:e.value:u(t,"rules")},D.resolveInitialValue=function(t){var e=t.data.model||w(t.data.directives,function(t){return"model"===t.name});return e&&e.value},D.makeVM=function(t){return{get $el(){return t.$el},get $refs(){return t.$refs},$watch:t.$watch?t.$watch.bind(t):function(){},$validator:t.$validator?{errors:t.$validator.errors,validate:t.$validator.validate.bind(t.$validator),update:t.$validator.update.bind(t.$validator)}:null}},D.resolveDelay=function(t,e,i){var n=u(t,"delay"),r=i&&"delay"in i?i.delay:0;return!n&&e.componentInstance&&e.componentInstance.$attrs&&(n=e.componentInstance.$attrs["data-vv-delay"]),m(r)?(c(n)||(r.input=n),A(r)):A(n||r)},D.resolveEvents=function(t,e){var i=u(t,"validate-on");if(!i&&e.componentInstance&&e.componentInstance.$attrs&&(i=e.componentInstance.$attrs["data-vv-validate-on"]),!i&&e.componentInstance){var n=D.getCtorConfig(e);i=n&&n.events}return i},D.resolveScope=function(t,e,i){void 0===i&&(i={});var n=null;return i.componentInstance&&c(n)&&(n=i.componentInstance.$attrs&&i.componentInstance.$attrs["data-vv-scope"]),c(n)?function(t){var e=u(t,"scope");if(c(e)){var i=r(t);i&&(e=u(i,"scope"))}return c(e)?null:e}(t):n},D.resolveModel=function(t,e){if(t.arg)return{expression:t.arg};var i=e.data.model||w(e.data.directives,function(t){return"model"===t.name});if(!i)return null;var n,r,s,a=!/[^\w.$]/.test(i.expression)&&(n=i.expression,r=e.context,s=r,n.split(".").every(function(t){return!!Object.prototype.hasOwnProperty.call(s,t)&&(s=s[t],!0)})),o=!(!i.modifiers||!i.modifiers.lazy);return a?{expression:i.expression,lazy:o}:{expression:null,lazy:o}},D.resolveName=function(t,e){var i=u(t,"name");if(!i&&!e.componentInstance)return t.name;if(!i&&e.componentInstance&&e.componentInstance.$attrs&&(i=e.componentInstance.$attrs["data-vv-name"]||e.componentInstance.$attrs.name),!i&&e.componentInstance){var n=D.getCtorConfig(e);return n&&g(n.name)?n.name.bind(e.componentInstance)():e.componentInstance.name}return i};var S={targetOf:null,initial:!(D.resolveGetter=function(i,t,e){if(e&&e.expression)return function(){return f(e.expression,t.context)};if(t.componentInstance){var n=u(i,"value-path")||t.componentInstance.$attrs&&t.componentInstance.$attrs["data-vv-value-path"];if(n)return function(){return f(n,t.componentInstance)};var r=D.getCtorConfig(t);if(r&&g(r.value)){var s=r.value.bind(t.componentInstance);return function(){return s()}}return function(){return t.componentInstance.value}}switch(i.type){case"checkbox":return function(){var t=document.querySelectorAll('input[name="'+i.name+'"]');if((t=$(t).filter(function(t){return t.checked})).length)return t.map(function(t){return t.value})};case"radio":return function(){var t=document.querySelectorAll('input[name="'+i.name+'"]'),e=w(t,function(t){return t.checked});return e&&e.value};case"file":return function(t){return $(i.files)};case"select-multiple":return function(){return $(i.options).filter(function(t){return t.selected}).map(function(t){return t.value})};default:return function(){return i&&i.value}}}),scope:null,listen:!0,name:null,rules:{},vm:null,classes:!1,validity:!0,aria:!0,events:"input|blur",delay:0,classNames:{touched:"touched",untouched:"untouched",valid:"valid",invalid:"invalid",pristine:"pristine",dirty:"dirty"}},P=function(t){void 0===t&&(t={}),this.id=(9999<=e&&(e=0,i=i.replace("{id}","_{id}")),e++,i.replace("{id}",String(e))),this.el=t.el,this.updated=!1,this.dependencies=[],this.watchers=[],this.events=[],this.delay=0,this.rules={},this._cacheId(t),this.classNames=_({},S.classNames),t=_({},S,t),this._delay=c(t.delay)?0:t.delay,this.validity=t.validity,this.aria=t.aria,this.flags={untouched:!0,touched:!1,dirty:!1,pristine:!0,valid:null,invalid:null,validated:!1,pending:!1,required:!1,changed:!1},this.vm=t.vm,this.component=t.component,this.ctorConfig=this.component?f("$options.$_veeValidate",this.component):void 0,this.update(t),this.initialValue=this.value,this.updated=!1},q={validator:{configurable:!0},isRequired:{configurable:!0},isDisabled:{configurable:!0},alias:{configurable:!0},value:{configurable:!0},rejectsFalse:{configurable:!0}};q.validator.get=function(){return this.vm&&this.vm.$validator?this.vm.$validator:(p("No validator instance detected."),{validate:function(){}})},q.isRequired.get=function(){return!!this.rules.required},q.isDisabled.get=function(){return!(!this.component||!this.component.disabled)||!(!this.el||!this.el.disabled)},q.alias.get=function(){if(this._alias)return this._alias;var t=null;return this.el&&(t=u(this.el,"as")),!t&&this.component?this.component.$attrs&&this.component.$attrs["data-vv-as"]:t},q.value.get=function(){if(g(this.getter))return this.getter()},q.rejectsFalse.get=function(){return this.component&&this.ctorConfig?!!this.ctorConfig.rejectsFalse:!!this.el&&"checkbox"===this.el.type},P.prototype.matches=function(t){return!t||(t.id?this.id===t.id:void 0===t.name&&void 0===t.scope||(void 0===t.scope?this.name===t.name:void 0===t.name?this.scope===t.scope:t.name===this.name&&t.scope===this.scope))},P.prototype._cacheId=function(t){this.el&&!t.targetOf&&(this.el._veeValidateId=this.id)},P.prototype.update=function(t){var n,e,i,r,s;this.targetOf=t.targetOf||null,this.initial=t.initial||this.initial||!1,!c(t.scope)&&t.scope!==this.scope&&g(this.validator.update)&&this.validator.update(this.id,{scope:t.scope}),this.scope=c(t.scope)?c(this.scope)?null:this.scope:t.scope,this.name=(c(t.name)?t.name:String(t.name))||this.name||null,this.rules=void 0!==t.rules?(n=t.rules)?m(n)?Object.keys(n).reduce(function(t,e){var i=[];return i=!0===n[e]?[]:Array.isArray(n[e])?n[e]:[n[e]],!1!==n[e]&&(t[e]=i),t},{}):"string"!=typeof n?(p("rules must be either a string or an object."),{}):n.split("|").reduce(function(t,e){var i,n,r,s=(n=[],r=(i=e).split(":")[0],~i.indexOf(":")&&(n=i.split(":").slice(1).join(":").split(",")),{name:r,params:n});return s.name&&(t[s.name]=s.params),t},{}):{}:this.rules,this.model=t.model||this.model,this.listen=void 0!==t.listen?t.listen:this.listen,this.classes=!(!t.classes&&!this.classes)&&!this.component,this.classNames=m(t.classNames)?E(this.classNames,t.classNames):this.classNames,this.getter=g(t.getter)?t.getter:this.getter,this._alias=t.alias||this._alias,this.events=t.events?"string"==typeof(e=t.events)&&e.length?e.split("|"):[]:this.events,this.delay=(i=this.events,r=t.delay||this.delay,s=this._delay,"number"==typeof r?i.reduce(function(t,e){return t[e]=r,t},{}):i.reduce(function(t,e){return t[e]="object"==typeof r&&e in r?r[e]:"number"==typeof s?s:s&&s[e]||0,t},{})),this.updateDependencies(),this.addActionListeners(),this.name||this.targetOf||p('A field is missing a "name" or "data-vv-name" attribute'),void 0!==t.rules&&(this.flags.required=this.isRequired),this.flags.validated&&void 0!==t.rules&&this.updated&&this.validator.validate("#"+this.id),this.updated=!0,this.addValueListeners(),this.el&&(this.updateClasses(),this.updateAriaAttrs())},P.prototype.reset=function(){var e=this;this._cancellationToken&&(this._cancellationToken.cancelled=!0,delete this._cancellationToken);var i={untouched:!0,touched:!1,dirty:!1,pristine:!0,valid:null,invalid:null,validated:!1,pending:!1,required:!1,changed:!1};Object.keys(this.flags).filter(function(t){return"required"!==t}).forEach(function(t){e.flags[t]=i[t]}),this.addActionListeners(),this.updateClasses(),this.updateAriaAttrs(),this.updateCustomValidity()},P.prototype.setFlags=function(e){var i=this,n={pristine:"dirty",dirty:"pristine",valid:"invalid",invalid:"valid",touched:"untouched",untouched:"touched"};Object.keys(e).forEach(function(t){i.flags[t]=e[t],n[t]&&void 0===e[n[t]]&&(i.flags[n[t]]=!e[t])}),void 0===e.untouched&&void 0===e.touched&&void 0===e.dirty&&void 0===e.pristine||this.addActionListeners(),this.updateClasses(),this.updateAriaAttrs(),this.updateCustomValidity()},P.prototype.updateDependencies=function(){var a=this;this.dependencies.forEach(function(t){return t.field.destroy()}),this.dependencies=[];var t=Object.keys(this.rules).reduce(function(t,e){if(H.isTargetRule(e)){var i=a.rules[e][0];"confirmed"!==e||i||(i=a.name+"_confirmation"),t.push({selector:i,name:e})}return t},[]);t.length&&this.vm&&this.vm.$el&&t.forEach(function(t){var e=t.selector,i=t.name,n=null;if("$"===e[0]){var r=a.vm.$refs[e.slice(1)];n=Array.isArray(r)?r[0]:r}else try{n=a.vm.$el.querySelector(e)}catch(t){n=null}if(!n)try{n=a.vm.$el.querySelector('input[name="'+e+'"]')}catch(t){n=null}if(n){var s={vm:a.vm,classes:a.classes,classNames:a.classNames,delay:a.delay,scope:a.scope,events:a.events.join("|"),initial:a.initial,targetOf:a.id};g(n.$watch)?(s.component=n,s.el=n.$el,s.getter=D.resolveGetter(n.$el,{child:n})):(s.el=n,s.getter=D.resolveGetter(n,{})),a.dependencies.push({name:i,field:new P(s)})}})},P.prototype.unwatch=function(e){if(void 0===e&&(e=null),!e)return this.watchers.forEach(function(t){return t.unwatch()}),void(this.watchers=[]);this.watchers.filter(function(t){return e.test(t.tag)}).forEach(function(t){return t.unwatch()}),this.watchers=this.watchers.filter(function(t){return!e.test(t.tag)})},P.prototype.updateClasses=function(){var e=this;if(this.classes&&!this.isDisabled){var t=function(t){b(t,e.classNames.dirty,e.flags.dirty),b(t,e.classNames.pristine,e.flags.pristine),b(t,e.classNames.touched,e.flags.touched),b(t,e.classNames.untouched,e.flags.untouched),!c(e.flags.valid)&&e.flags.validated&&b(t,e.classNames.valid,e.flags.valid),!c(e.flags.invalid)&&e.flags.validated&&b(t,e.classNames.invalid,e.flags.invalid)};if(l(this.el)){var i=document.querySelectorAll('input[name="'+this.el.name+'"]');$(i).forEach(t)}else t(this.el)}},P.prototype.addActionListeners=function(){var t=this;if(this.unwatch(/class/),this.el){var e=function(){t.flags.touched=!0,t.flags.untouched=!1,t.classes&&(b(t.el,t.classNames.touched,!0),b(t.el,t.classNames.untouched,!1)),t.unwatch(/^class_blur$/)},i=o(this.el)?"input":"change",n=function(){t.flags.dirty=!0,t.flags.pristine=!1,t.classes&&(b(t.el,t.classNames.pristine,!1),b(t.el,t.classNames.dirty,!0)),t.unwatch(/^class_input$/)};if(this.component&&g(this.component.$once))return this.component.$once("input",n),this.component.$once("blur",e),this.watchers.push({tag:"class_input",unwatch:function(){t.component.$off("input",n)}}),void this.watchers.push({tag:"class_blur",unwatch:function(){t.component.$off("blur",e)}});if(this.el){s(this.el,i,n);var r=l(this.el)?"change":"blur";s(this.el,r,e),this.watchers.push({tag:"class_input",unwatch:function(){t.el.removeEventListener(i,n)}}),this.watchers.push({tag:"class_blur",unwatch:function(){t.el.removeEventListener(r,e)}})}}},P.prototype.checkValueChanged=function(){return(null!==this.initialValue||""!==this.value||!o(this.el))&&this.value!==this.initialValue},P.prototype.addValueListeners=function(){var n=this;if(this.unwatch(/^input_.+/),this.listen&&this.el){var r={cancelled:!1},s=this.targetOf?function(){n.flags.changed=n.checkValueChanged(),n.validator.validate("#"+n.targetOf)}:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];(0===t.length||g(Event)&&t[0]instanceof Event||t[0]&&t[0].srcElement)&&(t[0]=n.value),n.flags.changed=n.checkValueChanged(),n.validator.validate("#"+n.id,t[0])},e=this.component||o(this.el)?"input":"change";e=this.model&&this.model.lazy?"change":e;var t=!this.events.length||this.component||o(this.el)?this.events:["change"];if(this.model&&this.model.expression&&-1!==t.indexOf(e)){var i=h(s,this.delay[e],!1,r),a=this.vm.$watch(this.model.expression,function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];n.flags.pending=!0,n._cancellationToken=r,i.apply(void 0,t)});this.watchers.push({tag:"input_model",unwatch:a}),t=t.filter(function(t){return t!==e})}t.forEach(function(t){var i=h(s,n.delay[t],!1,r),e=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];n.flags.pending=!0,n._cancellationToken=r,i.apply(void 0,t)};n._addComponentEventListener(t,e),n._addHTMLEventListener(t,e)})}},P.prototype._addComponentEventListener=function(t,e){var i=this;this.component&&(this.component.$on(t,e),this.watchers.push({tag:"input_vue",unwatch:function(){i.component.$off(t,e)}}))},P.prototype._addHTMLEventListener=function(e,i){var n=this;if(this.el&&!this.component){var r=function(t){s(t,e,i),n.watchers.push({tag:"input_native",unwatch:function(){t.removeEventListener(e,i)}})};if(r(this.el),l(this.el)){var t=document.querySelectorAll('input[name="'+this.el.name+'"]');$(t).forEach(function(t){t._veeValidateId&&t!==n.el||r(t)})}}},P.prototype.updateAriaAttrs=function(){var e=this;if(this.aria&&this.el&&g(this.el.setAttribute)){var t=function(t){t.setAttribute("aria-required",e.isRequired?"true":"false"),t.setAttribute("aria-invalid",e.flags.invalid?"true":"false")};if(l(this.el)){var i=document.querySelectorAll('input[name="'+this.el.name+'"]');$(i).forEach(t)}else t(this.el)}},P.prototype.updateCustomValidity=function(){this.validity&&this.el&&g(this.el.setCustomValidity)&&this.validator.errors&&this.el.setCustomValidity(this.flags.valid?"":this.validator.errors.firstById(this.id)||"")},P.prototype.destroy=function(){this.unwatch(),this.dependencies.forEach(function(t){return t.field.destroy()}),this.dependencies=[]},Object.defineProperties(P.prototype,q);var T=function(){this.items=[]},z={length:{configurable:!0}};T.prototype["function"==typeof Symbol?Symbol.iterator:"@@iterator"]=function(){var t=this,e=0;return{next:function(){return{value:t.items[e++],done:e>t.items.length}}}},z.length.get=function(){return this.items.length},T.prototype.find=function(e){return w(this.items,function(t){return t.matches(e)})},T.prototype.filter=function(i){return Array.isArray(i)?this.items.filter(function(e){return i.some(function(t){return e.matches(t)})}):this.items.filter(function(t){return t.matches(i)})},T.prototype.map=function(t){return this.items.map(t)},T.prototype.remove=function(t){var e=null;if(!(e=t instanceof P?t:this.find(t)))return null;var i=this.items.indexOf(e);return this.items.splice(i,1),e},T.prototype.push=function(t){if(!(t instanceof P))throw v("FieldBag only accepts instances of Field that has an id defined.");if(!t.id)throw v("Field id must be defined.");if(this.find({id:t.id}))throw v("Field with id "+t.id+" is already added.");this.items.push(t)},Object.defineProperties(T.prototype,z);var B={},K=!0,G=["confirmed","after","before"],H=function(t,e){var i=this;void 0===e&&(e={fastExit:!0}),this.strict=K,this.errors=new O,this.fields=new T,this.flags={},this._createFields(t),this.paused=!1,this.fastExit=e.fastExit||!1,this.ownerId=e.vm&&e.vm._uid,this._localeListener=function(){i.errors.regenerate()},this._vm&&this._vm.$on("localeChanged",this._localeListener)},U={dictionary:{configurable:!0},_vm:{configurable:!0},locale:{configurable:!0},rules:{configurable:!0}},J={dictionary:{configurable:!0},locale:{configurable:!0},rules:{configurable:!0}};U.dictionary.get=function(){return M.dependency("dictionary")},U._vm.get=function(){return M.dependency("vm")},J.dictionary.get=function(){return M.dependency("dictionary")},U.locale.get=function(){return this.dictionary.locale},U.locale.set=function(t){H.locale=t},J.locale.get=function(){return H.dictionary.locale},J.locale.set=function(t){var e=t!==H.dictionary.locale;H.dictionary.locale=t,e&&M.dependency("vm")&&M.dependency("vm").$emit("localeChanged")},U.rules.get=function(){return B},J.rules.get=function(){return B},H.create=function(t,e){return new H(t,e)},H.extend=function(t,e,i){void 0===i&&(i={}),H._guardExtend(t,e),H._merge(t,e),i&&i.hasTarget&&G.push(t)},H.remove=function(t){delete B[t];var e=G.indexOf(t);-1!==e&&G.splice(e,1)},H.isTargetRule=function(t){return-1!==G.indexOf(t)},H.setStrictMode=function(t){void 0===t&&(t=!0),K=t},H.prototype.localize=function(t,e){H.localize(t,e)},H.localize=function(t,e){var i;if(m(t))H.dictionary.merge(t);else{if(e){var n=t||e.name;e=_({},e),H.dictionary.merge(((i={})[n]=e,i))}t&&(H.locale=t)}},H.prototype.attach=function(e){1<arguments.length&&(p("This signature of the attach method has been deprecated, please consult the docs."),e=_({},{name:e,rules:arguments[1]},arguments[2]||{vm:{$validator:this}}));var t=e.initialValue;return e instanceof P||(e=new P(e)),this.fields.push(e),e.initial?this.validate("#"+e.id,t||e.value):this._validate(e,t||e.value,!0).then(function(t){e.flags.valid=t.valid,e.flags.invalid=!t.valid}),this._addFlag(e,e.scope),e},H.prototype.flag=function(t,e){var i=this._resolveField(t);i&&e&&i.setFlags(e)},H.prototype.detach=function(t,e){var i=t instanceof P?t:this._resolveField(t,e);if(i){i.destroy(),this.errors.remove(i.name,i.scope,i.id),this.fields.remove(i);var n=this.flags;!c(i.scope)&&n["$"+i.scope]?delete n["$"+i.scope][i.name]:c(i.scope)&&delete n[i.name],this.flags=_({},n)}},H.prototype.extend=function(t,e,i){void 0===i&&(i={}),H.extend(t,e,i)},H.prototype.reset=function(r){return new Promise(function(i,n){return this._vm.$nextTick().then(function(t){try{return this._vm.$nextTick().then(function(t){var e=this;try{return this.fields.filter(r).forEach(function(t){t.reset(),e.errors.remove(t.name,t.scope,t.id)}),i()}catch(t){return n(t)}}.bind(this),n)}catch(t){return n(t)}}.bind(this),n)}.bind(this))},H.prototype.update=function(t,e){var i=e.scope,n=this._resolveField("#"+t);n&&(this.errors.update(t,{scope:i}),!c(n.scope)&&this.flags["$"+n.scope]?delete this.flags["$"+n.scope][n.name]:c(n.scope)&&delete this.flags[n.name],this._addFlag(n,i))},H.prototype.remove=function(t){H.remove(t)},H.prototype.validate=function(s,a,o,l){void 0===o&&(o=null),void 0===l&&(l=!1);var u=arguments;return new Promise(function(e,i){var t,n,r;return this.paused?e(Promise.resolve(!0)):0===u.length?e(this.validateScopes()):1===u.length&&"*"===u[0]?e(this.validateAll()):1===u.length&&"string"==typeof u[0]&&/^(.+)\.\*$/.test(u[0])?(t=u[0].match(/^(.+)\.\*$/)[1],e(this.validateAll(t))):(n=this._resolveField(s,o))?(l||(n.flags.pending=!0),1===u.length&&(a=n.value),this._validate(n,a).then(function(t){try{return r=t,l||this._handleValidationResults([r]),e(r.valid)}catch(t){return i(t)}}.bind(this),i)):e(this._handleFieldNotFound(s,o))}.bind(this))},H.prototype.pause=function(){return this.paused=!0,this},H.prototype.resume=function(){return this.paused=!1,this},H.prototype.validateAll=function(a,o,l){return void 0===o&&(o=null),void 0===l&&(l=!1),new Promise(function(e,i){var n,t,r,s=this;return this.paused?e(!0):(t=null,r=!1,"string"==typeof a?t={scope:a}:m(a)?(t=Object.keys(a).map(function(t){return{name:t,scope:o}}),r=!0):t=Array.isArray(a)?a.map(function(t){return{name:t,scope:o}}):{scope:o},Promise.all(this.fields.filter(t).map(function(t){return s._validate(t,r?a[t.name]:t.value)})).then(function(t){try{return n=t,l||this._handleValidationResults(n),e(n.every(function(t){return t.valid}))}catch(t){return i(t)}}.bind(this),i))}.bind(this))},H.prototype.validateScopes=function(s){return void 0===s&&(s=!1),new Promise(function(e,i){var n,r=this;return this.paused?e(!0):Promise.all(this.fields.map(function(t){return r._validate(t,t.value)})).then(function(t){try{return n=t,s||this._handleValidationResults(n),e(n.every(function(t){return t.valid}))}catch(t){return i(t)}}.bind(this),i)}.bind(this))},H.prototype.destroy=function(){this._vm.$off("localeChanged",this._localeListener)},H.prototype._createFields=function(i){var n=this;i&&Object.keys(i).forEach(function(t){var e=_({},{name:t,rules:i[t]});n.attach(e)})},H.prototype._getDateFormat=function(t){var e=null;return t.date_format&&Array.isArray(t.date_format)&&(e=t.date_format[0]),e||this.dictionary.getDateFormat(this.locale)},H.prototype._isADateRule=function(t){return!!~["after","before","date_between","date_format"].indexOf(t)},H.prototype._formatErrorMessage=function(t,e,i,n){void 0===i&&(i={}),void 0===n&&(n=null);var r=this._getFieldDisplayName(t),s=this._getLocalizedParams(e,n);return this.dictionary.getFieldMessage(this.locale,t.name,e.name,[r,s,i])},H.prototype._getLocalizedParams=function(t,e){return void 0===e&&(e=null),~G.indexOf(t.name)&&t.params&&t.params[0]?[e||this.dictionary.getAttribute(this.locale,t.params[0],t.params[0])].concat(t.params.slice(1)):t.params},H.prototype._getFieldDisplayName=function(t){return t.alias||this.dictionary.getAttribute(this.locale,t.name,t.name)},H.prototype._addFlag=function(t,e){var i,n,r;if(void 0===e&&(e=null),c(e))this.flags=_({},this.flags,((i={})[""+t.name]=t.flags,i));else{var s=_({},this.flags["$"+e]||{},((n={})[""+t.name]=t.flags,n));this.flags=_({},this.flags,((r={})["$"+e]=s,r))}},H.prototype._test=function(n,t,r){var s=this,e=B[r.name],i=Array.isArray(r.params)?$(r.params):[],a=null;if(!e||"function"!=typeof e)throw v("No such validator '"+r.name+"' exists.");if(-1!==G.indexOf(r.name)){var o=w(n.dependencies,function(t){return t.name===r.name});o&&(a=o.field.alias,i=[o.field.value].concat(i.slice(1)))}else"required"===r.name&&n.rejectsFalse&&(i=i.length?i:[!0]);if(this._isADateRule(r.name)){var l=this._getDateFormat(n.rules);"date_format"!==r.name&&i.push(l)}var u=e(t,i);return g(u.then)?u.then(function(t){var e=!0,i={};return Array.isArray(t)?e=t.every(function(t){return m(t)?t.valid:t}):(e=m(t)?t.valid:t,i=t.data),{valid:e,errors:e?[]:[s._createFieldError(n,r,i,a)]}}):(m(u)||(u={valid:u,data:{}}),{valid:u.valid,errors:u.valid?[]:[this._createFieldError(n,r,u.data,a)]})},H._merge=function(t,e){g(e)?B[t]=e:(B[t]=e.validate,e.getMessage&&H.dictionary.setMessage(this.locale,t,e.getMessage))},H._guardExtend=function(t,e){if(!g(e)&&!g(e.validate))throw v("Extension Error: The validator '"+t+"' must be a function or have a 'validate' method.")},H.prototype._createFieldError=function(t,e,i,n){var r=this;return{id:t.id,field:t.name,msg:this._formatErrorMessage(t,e,i,n),rule:e.name,scope:t.scope,regenerate:function(){return r._formatErrorMessage(t,e,i,n)}}},H.prototype._resolveField=function(t,e){if(!c(e))return this.fields.find({name:t,scope:e});if("#"===t[0])return this.fields.find({id:t.slice(1)});if(-1<t.indexOf(".")){var i=t.split("."),n=i[0],r=i.slice(1),s=this.fields.find({name:r.join("."),scope:n});if(s)return s}return this.fields.find({name:t,scope:null})},H.prototype._handleFieldNotFound=function(t,e){if(!this.strict)return!0;var i=c(e)?t:(c(e)?"":e+".")+t;throw v('Validating a non-existent field: "'+i+'". Use "attach()" first.')},H.prototype._handleValidationResults=function(i){var t=i.map(function(t){return{id:t.id}});this.errors.removeById(t.map(function(t){return t.id}));var e=i.reduce(function(t,e){return t.push.apply(t,e.errors),t},[]);this.errors.add(e),this.fields.filter(t).forEach(function(e){var t=w(i,function(t){return t.id===e.id});e.setFlags({pending:!1,valid:t.valid,validated:!0})})},H.prototype._validate=function(o,l){return new Promise(function(e,i){var n,r,s,a=this;return o.isDisabled||!o.isRequired&&(c(l)||""===l)?e({valid:!0,id:o.id,errors:[]}):(n=[],s=!(r=[]),Object.keys(o.rules).some(function(t){var e=a._test(o,l,{name:t,params:o.rules[t]});return g(e.then)?n.push(e):a.fastExit&&!e.valid?(r.push.apply(r,e.errors),s=!0):n.push(new Promise(function(t){return t(e)})),s}),s?e({valid:!1,errors:r,id:o.id}):Promise.all(n).then(function(t){try{return e(t.reduce(function(t,e){var i;return e.valid||(i=t.errors).push.apply(i,e.errors),t.valid=t.valid&&e.valid,t},{valid:!0,errors:r,id:o.id}))}catch(t){return i(t)}}.bind(this),i))}.bind(this))},Object.defineProperties(H.prototype,U),Object.defineProperties(H,J);var Q=function(t,e){return new H(null,{vm:t,fastExit:e.fastExit})},W={provide:function(){return this.$validator&&!x(this.$vnode)?{$validator:this.$validator}:{}},beforeCreate:function(){if(!x(this.$vnode)){this.$parent||M.merge(this.$options.$_veeValidate||{});var t=M.resolve(this),e=this.$options._base;this.$options.$validates&&(p('The ctor $validates option has been deprecated please set the $_veeValidate.validator option to "new" instead'),this.$validator=Q(this,t)),(!this.$parent||this.$options.$_veeValidate&&/new/.test(this.$options.$_veeValidate.validator))&&(this.$validator=Q(this,t));var i,n=(i=this.$options.inject,!(!m(i)||!i.$validator));this.$validator||!t.inject||n||(this.$validator=Q(this,t)),(n||this.$validator)&&(!n&&this.$validator&&(e.util.defineReactive(this.$validator,"errors",this.$validator.errors),e.util.defineReactive(this.$validator,"flags",this.$validator.flags)),this.$options.computed||(this.$options.computed={}),this.$options.computed[t.errorBagName||"errors"]=function(){return this.$validator.errors},this.$options.computed[t.fieldsBagName||"fields"]=function(){return this.$validator.flags})}},beforeDestroy:function(){x(this.$vnode)||this.$validator&&this.$validator.ownerId===this._uid&&(this.$validator.pause(),this.$validator.destroy())}};function X(t,e){return e&&e.$validator?e.$validator.fields.find({id:t._veeValidateId}):null}var Y,Z={bind:function(t,e,i){var n=i.context.$validator;if(n){var r=D.generate(t,e,i);n.attach(r)}else p("No validator instance is present on vm, did you forget to inject '$validator'?")},inserted:function(t,e,i){var n=X(t,i.context),r=D.resolveScope(t,e,i);n&&r!==n.scope&&(n.update({scope:r}),n.updated=!1)},update:function(t,e,i){var n=X(t,i.context);if(!(!n||n.updated&&d(e.value,e.oldValue))){var r=D.resolveScope(t,e,i),s=D.resolveRules(t,e);n.update({scope:r,rules:s})}},unbind:function(t,e,i){var n=i.context,r=X(t,n);r&&n.$validator.detach(r)}};var tt=function(i,n){var r={pristine:function(t,e){return t&&e},dirty:function(t,e){return t||e},touched:function(t,e){return t||e},untouched:function(t,e){return t&&e},valid:function(t,e){return t&&e},invalid:function(t,e){return t||e},pending:function(t,e){return t||e},required:function(t,e){return t||e},validated:function(t,e){return t&&e}};return Object.keys(r).reduce(function(t,e){return t[e]=r[e](i[e],n[e]),t},{})},et=function(n,r){return void 0===r&&(r=!0),Object.keys(n).reduce(function(t,e){if(!t)return t=_({},n[e]);var i=0===e.indexOf("$");return r&&i?tt(et(n[e]),t):!r&&i?t:t=tt(t,n[e])},null)},it={name:"vv-error",inject:["$validator"],functional:!0,props:{for:{type:String,required:!0},tag:{type:String,default:"span"}},render:function(t,e){var i=e.props,n=e.injections;return t(i.tag,n.$validator.errors.first(i.for))}};return{install:function(t,e){if(void 0===e&&(e={}),Y&&t===Y)"production"!==process.env.NODE_ENV&&p("already installed, Vue.use(VeeValidate) should only be called once.");else{a();var i=new(Y=t);M.register("vm",i),M.merge(e);var n=M.current,r=n.dictionary,s=n.i18n;r&&H.localize(r),s&&s._vm&&g(s._vm.$watch)&&s._vm.$watch("locale",function(){i.$emit("localeChanged")}),!s&&e.locale&&H.localize(e.locale),H.setStrictMode(M.current.strict),Y.mixin(W),Y.directive("validate",Z)}},use:function(t,e){if(void 0===e&&(e={}),!g(t))return p("The plugin must be a callable function");t({Validator:H,ErrorBag:O,Rules:H.rules},e)},directive:Z,mixin:W,mapFields:function(t){if(!t)return function(){return et(this.$validator.flags)};var e,s=(e=t,Array.isArray(e)?e.reduce(function(t,e){return~e.indexOf(".")?t[e.split(".")[1]]=e:t[e]=e,t},{}):e);return Object.keys(s).reduce(function(t,n){var r=s[n];return t[n]=function(){if(this.$validator.flags[r])return this.$validator.flags[r];if("*"===s[n])return et(this.$validator.flags,!1);if(r.indexOf(".")<=0)return{};var t=r.split("."),e=t[0],i=t.slice(1);return e=this.$validator.flags["$"+e],"*"===(i=i.join("."))&&e?et(e):e&&e[i]?e[i]:{}},t},{})},Validator:H,ErrorBag:O,ErrorComponent:it,version:"2.0.9"}});
{
"name": "vee-validate",
"version": "2.0.8",
"version": "2.0.9",
"description": "Simple Vue.js input validation plugin",

@@ -11,3 +11,3 @@ "author": "Abdelrahman Awad <logaretm1@gmail.com>",

"typings": "types/index.d.ts",
"homepage": "http://vee-validate.logaretm.com",
"homepage": "https://baianat.github.io/vee-validate/",
"repository": "https://github.com/baianat/vee-validate",

@@ -18,2 +18,5 @@ "scripts": {

"flow": "flow",
"docs:dev": "vuepress dev docs",
"docs:build": "vuepress build docs",
"docs:deploy": "./build/deploy.sh",
"build:locale": "babel-node build/locale.js",

@@ -42,5 +45,5 @@ "build:umd": "babel-node build/umd.js",

"babel-cli": "^6.26.0",
"babel-core": "^6.26.0",
"babel-core": "^6.26.3",
"babel-eslint": "^8.2.3",
"babel-jest": "^21.2.0",
"babel-jest": "^22.4.3",
"babel-plugin-transform-async-to-generator": "^6.24.1",

@@ -50,3 +53,3 @@ "babel-plugin-transform-flow-strip-types": "^6.22.0",

"babel-preset-env": "^1.6.1",
"chalk": "^2.3.2",
"chalk": "^2.4.1",
"cross-env": "^5.1.4",

@@ -60,8 +63,8 @@ "date-fns": "2.0.0-alpha.7",

"eslint-plugin-promise": "^3.7.0",
"eslint-plugin-standard": "^3.0.1",
"eslint-plugin-standard": "^3.1.0",
"filesize": "^3.6.1",
"flow-bin": "^0.70.0",
"flow-bin": "^0.71.0",
"flush-promises": "^1.0.0",
"gzip-size": "^4.1.0",
"jest": "^21.2.1",
"jest": "^22.4.3",
"regenerator-runtime": "^0.11.0",

@@ -75,8 +78,9 @@ "rollup": "^0.58.0",

"rollup-plugin-replace": "^2.0.0",
"uglify-js": "^3.3.21",
"uglify-js": "^3.3.23",
"validator": "^9.4.1",
"vue": "^2.5.2",
"vue": "^2.5.16",
"vue-i18n": "^7.6.0",
"vue-jest": "^1.0.0",
"vue-template-compiler": "^2.5.2"
"vue-jest": "^2.5.0",
"vue-template-compiler": "^2.5.16",
"vuepress": "^0.8.4"
},

@@ -83,0 +87,0 @@ "eslintIgnore": [

<p align="center">
<a href="https://vee-validate.logaretm.com" target="_blank">
<a href="https://baianat.github.io/vee-validate/" target="_blank">
<img width="200" src="https://s3.eu-central-1.amazonaws.com/logaretm/vee-validate.svg">

@@ -23,5 +23,5 @@ </a>

You don't have to do anything fancy in your app -- most of the work goes into the html. You only need to specify for each input what kind of validators should be used when the value changes. The errors will be automatically generated. The plugin offers [many validations out of the box](http://vee-validate.logaretm.com/rules).
You don't have to do anything fancy in your app -- most of the work goes into the html. You only need to specify for each input what kind of validators should be used when the value changes. The errors will be automatically generated. The plugin offers [many validations out of the box](https://baianat.github.io/vee-validate/guide/rules.html).
Although most of the validations occur automatically, you can use the validator however you see fit. The validator object has no dependencies and is a standalone object. This plugin is built with localization in mind. Read the [docs](http://vee-validate.logaretm.com/) for more info.
Although most of the validations occur automatically, you can use the validator however you see fit. The validator object has no dependencies and is a standalone object. This plugin is built with localization in mind. Read the [docs](https://baianat.github.io/vee-validate/) for more info.

@@ -97,5 +97,4 @@ This plugin is inspired by [PHP Framework Laravel's validation](https://laravel.com/).

Read the [documentation and demos](http://vee-validate.logaretm.com/).
Read the [documentation and demos](https://baianat.github.io/vee-validate/).
### Compatibility

@@ -122,2 +121,3 @@

### Credits
- Some validations/test scenarios are provided/based on [validator.js](https://github.com/chriso/validator.js).

@@ -124,0 +124,0 @@ - Inspired by Laravel's [validation syntax](https://laravel.com/docs/5.4/validation).

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc