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.1.0-beta.1 to 2.1.0-beta.2

2

dist/locale/hu.js

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

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e.__vee_validate_locale__hu=e.__vee_validate_locale__hu||{},e.__vee_validate_locale__hu.js=t())}(this,function(){"use strict";var e,t={name:"hu",messages:{after:function(e,t){return"A(z) "+e+" legalább "+t[0]+" utáni dátum kell, hogy legyen."},alpha_dash:function(e){return"A(z) "+e+" kizárólag betűket, számokat, kötőjeleket és alulvonásokat tartalmazhat."},alpha_num:function(e){return"A(z) "+e+" kizárólag betűket és számokat tartalmazhat."},alpha_spaces:function(e){return"A(z) "+e+" kizárólag betűket és szóközöket tartalmazhat."},alpha:function(e){return"A(z) "+e+" kizárólag betűket tartalmazhat."},before:function(e,t){return"A(z) "+e+" legalább "+t[0]+" előtti dátum kell, hogy legyen."},between:function(e,t){return"A(z) "+e+" "+t[0]+" és "+t[1]+" között kell, hogy legyen."},confirmed:function(e){return"A(z) "+e+" nem egyezik a megerősítéssel."},credit_card:function(e){return"A(z) "+e+" nem érvényes."},date_between:function(e,t){return"A(z) "+e+" "+t[0]+" és "+t[1]+" közötti dátum kell, hogy legyen."},date_format:function(e,t){return"A(z) "+e+" nem egyezik az alábbi dátum formátummal "+t[0]+"."},decimal:function(e,t){void 0===t&&(t=[]);var n=t[0];return void 0===n&&(n="*"),"The "+e+" must be numeric and may contain "+("*"===n?"":n)+" decimal points."},digits:function(e,t){return"A(z) "+e+" "+t[0]+" számjegyű kell, hogy legyen."},dimensions:function(e,t){return"A(z) "+e+" felbontása "+t[0]+" és "+t[1]+" pixel között kell, hogy legyen."},email:function(e){return"A(z) "+e+" nem érvényes email formátum."},ext:function(e){return"A(z) "+e+" nem érvényes fájl."},image:function(e){return"A(z) "+e+" képfálj kell, hogy legyen."},included:function(e){return"A kiválaszott "+e+" érvénytelen."},ip:function(e){return"A(z) "+e+" érvényes IP cím kell, hogy legyen."},max:function(e,t){return"A(z) "+e+" értéke nem lehet hosszabb mint "+t[0]+"."},max_value:function(e,t){return"A(z) "+e+" értéke "+t[0]+" vagy kevesebb lehet."},mimes:function(e){return"A(z) "+e+" kizárólag érvényes fájlformátumok egyike lehet."},min:function(e,t){return"A(z) "+e+" értéke nem lehet rövidebb mint "+t[0]+"."},min_value:function(e,t){return"A(z) "+e+" értéke "+t[0]+" vagy több lehet."},excluded:function(e){return"A(z) "+e+" értéke érvénytelen."},numeric:function(e){return"A(z) "+e+" értéke szám kell, hogy legyen."},regex:function(e){return"A(z) "+e+" formátuma érvénytelen."},required:function(e){return"A(z) "+e+" megadása kötelező."},size:function(e,t){return"A(z) "+e+" méretének "+t[0]+" kilobájtnál kisebbnek kell lennie."},url:function(e){return"A(z) "+e+" érvénytelen link."}},attributes:{}};return"undefined"!=typeof VeeValidate&&VeeValidate.Validator.localize(((e={})[t.name]=t,e)),t});
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e.__vee_validate_locale__hu=e.__vee_validate_locale__hu||{},e.__vee_validate_locale__hu.js=t())}(this,function(){"use strict";var e,t={name:"hu",messages:{_default:function(e){return"A(z) ${field} értéke nem megfelelő."},after:function(e,t){return"A(z) "+e+" legalább "+t[0]+" utáni dátum kell, hogy legyen."},alpha_dash:function(e){return"A(z) "+e+" kizárólag betűket, számokat, kötőjeleket és alulvonásokat tartalmazhat."},alpha_num:function(e){return"A(z) "+e+" kizárólag betűket és számokat tartalmazhat."},alpha_spaces:function(e){return"A(z) "+e+" kizárólag betűket és szóközöket tartalmazhat."},alpha:function(e){return"A(z) "+e+" kizárólag betűket tartalmazhat."},before:function(e,t){return"A(z) "+e+" legalább "+t[0]+" előtti dátum kell, hogy legyen."},between:function(e,t){return"A(z) "+e+" "+t[0]+" és "+t[1]+" között kell, hogy legyen."},confirmed:function(e){return"A(z) "+e+" nem egyezik a megerősítéssel."},credit_card:function(e){return"A(z) "+e+" nem érvényes."},date_between:function(e,t){return"A(z) "+e+" "+t[0]+" és "+t[1]+" közötti dátum kell, hogy legyen."},date_format:function(e,t){return"A(z) "+e+" nem egyezik az alábbi dátum formátummal "+t[0]+"."},decimal:function(e,t){void 0===t&&(t=[]);var n=t[0];return void 0===n&&(n="*"),"The "+e+" must be numeric and may contain "+("*"===n?"":n)+" decimal points."},digits:function(e,t){return"A(z) "+e+" "+t[0]+" számjegyű kell, hogy legyen."},dimensions:function(e,t){return"A(z) "+e+" felbontása "+t[0]+" és "+t[1]+" pixel között kell, hogy legyen."},email:function(e){return"A(z) "+e+" nem érvényes email formátum."},ext:function(e){return"A(z) "+e+" nem érvényes fájl."},image:function(e){return"A(z) "+e+" képfálj kell, hogy legyen."},included:function(e){return"A kiválaszott "+e+" érvénytelen."},ip:function(e){return"A(z) "+e+" érvényes IP cím kell, hogy legyen."},max:function(e,t){return"A(z) "+e+" értéke nem lehet hosszabb mint "+t[0]+"."},max_value:function(e,t){return"A(z) "+e+" értéke "+t[0]+" vagy kevesebb lehet."},mimes:function(e){return"A(z) "+e+" kizárólag érvényes fájlformátumok egyike lehet."},min:function(e,t){return"A(z) "+e+" értéke nem lehet rövidebb mint "+t[0]+"."},min_value:function(e,t){return"A(z) "+e+" értéke "+t[0]+" vagy több lehet."},excluded:function(e){return"A(z) "+e+" értéke érvénytelen."},numeric:function(e){return"A(z) "+e+" értéke szám kell, hogy legyen."},regex:function(e){return"A(z) "+e+" formátuma érvénytelen."},required:function(e){return"A(z) "+e+" megadása kötelező."},size:function(e,t){return"A(z) "+e+" méretének "+t[0]+" kilobájtnál kisebbnek kell lennie."},url:function(e){return"A(z) "+e+" érvénytelen link."}},attributes:{}};return"undefined"!=typeof VeeValidate&&VeeValidate.Validator.localize(((e={})[t.name]=t,e)),t});

@@ -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 s=!0,a=function(t,e,i){t.addEventListener(e,i,!!s&&{passive:!0})},o=function(t){return-1!==["text","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 g(e)&&g(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 t in n?(n=n[t],!0):(n=i,!1)}),n},h=function(n,r,a,s){return void 0===r&&(r=0),void 0===a&&(a=!1),void 0===s&&(s={cancelled:!1}),0===r?n:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var i=a&&!o;clearTimeout(o),o=setTimeout(function(){o=null,a||s.cancelled||n.apply(void 0,t)},r),i&&n.apply(void 0,t)};var o},p=function(t,e){return e?t?"string"==typeof e?e+"|"+t:x({},e,v(t)):e:t},v=function(n){return n?g(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?(i("rules must be either a string or an object."),{}):n.split("|").reduce(function(t,e){var i,n,r,a=(n=[],r=(i=e).split(":")[0],~i.indexOf(":")&&(n=i.split(":").slice(1).join(":").split(",")),{name:r,params:n});return a.name&&(t[a.name]=a.params),t},{}):{}},i=function(t){console.warn("[vee-validate] "+t)},m=function(t){return new Error("[vee-validate] "+t)},g=function(t){return null!==t&&t&&"object"==typeof t&&!Array.isArray(t)},y=function(t){return"function"==typeof t},b=function(t,e){return t.classList?t.classList.contains(e):!!t.className.match(new RegExp("(\\s|^)"+e+"(\\s|$)"))},$=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):b(n,r)||(n.className+=" "+r))):void function(t,e){if(t.classList)t.classList.remove(e);else if(b(t,e)){var i=new RegExp("(\\s|^)"+e+"(\\s|$)");t.className=t.className.replace(i," ")}}(e,t);t.forEach(function(t){return $(e,t,i)})}},_=function(t){if(y(Array.from))return Array.from(t);for(var e=[],i=t.length,n=0;n<i;n++)e.push(t[n]);return e},x=function(t){for(var e=[],i=arguments.length-1;0<i--;)e[i]=arguments[i+1];if(y(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,n="{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]},A=function(t){if(!t)return!1;var e=t.componentOptions.tag;return/^(keep-alive|transition|transition-group)$/.test(e)},E=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},F=function(n,r){return g(n)&&g(r)&&Object.keys(r).forEach(function(t){var e,i;if(g(r[t]))return n[t]||x(n,((e={})[t]={},e)),void F(n[t],r[t]);x(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=y(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(t,e,i){if(void 0===i&&(i=!0),c(t)){var n={};return this.items.forEach(function(t){n[t.field]||(n[t.field]=[]),n[t.field].push(i?t.msg:t)}),n}var r=c(e)?String(t):e+"."+t,a=this._makeCandidateFilters(r),s=a.isPrimary,o=a.isAlt,l=this.items.reduce(function(t,e){return s(e)&&t.primary.push(i?e.msg:e),o(e)&&t.alt.push(i?e.msg:e),t},{primary:[],alt:[]});return l.primary.length?l.primary:l.alt},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:void 0},O.prototype.first=function(t,e){void 0===e&&(e=null);var i=c(e)?t:e+"."+t,n=this._match(i);return n&&n.msg},O.prototype.firstRule=function(t,e){var i=this.collect(t,e,!1);return i.length&&i[0].rule||void 0},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||void 0},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||void 0},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){if(!c(t))for(var i=c(e)?String(t):e+"."+t,n=this._makeCandidateFilters(i).isPrimary,r=0;r<this.items.length;++r)n(this.items[r])&&(this.items.splice(r,1),--r)},O.prototype._makeCandidateFilters=function(e){var i=function(){return!0},n=function(){return!0},r=function(){return!0},t=e.match(/((?:[\w-])+\.)?((?:[\w-.])+)(:\w+)?/),a=t[1],s=t[2],o=t[3];if(o&&(o=o.replace(":",""),i=function(t){return t.rule===o}),e.startsWith("#"))return{isPrimary:function(t){return i(t)&&function(t){return e.slice(1).startsWith(t.id)}},isAlt:function(){return!1}};c(a)?n=function(t){return c(t.scope)}:(a=a.replace(".",""),n=function(t){return t.scope===a}),c(s)||(r=function(t){return t.field===s});return{isPrimary:function(t){return r(t)&&i(t)&&n(t)},isAlt:function(t){return i(t)&&t.field===a+"."+s}}},O.prototype._match=function(t){if(!c(t)){var e=this._makeCandidateFilters(t),a=e.isPrimary,s=e.isAlt;return this.items.reduce(function(t,e,i,n){var r=i===n.length-1;return t.primary?r?t.primary:t:(a(e)&&(t.primary=e),s(e)&&(t.alt=e),r?t.primary||t.alt:t)},{})}};var j="en",t=function(t){void 0===t&&(t={}),this.container={},this.merge(t)},I={locale:{configurable:!0}};I.locale.get=function(){return j},I.locale.set=function(t){j=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),y(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 a=r[i];return y(a)?a.apply(void 0,n):a},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){F(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,I);var N=function(i){return g(i)?Object.keys(i).reduce(function(t,e){return t[e]=N(i[e]),t},{}):y(i)?i("{0}",["{1}","{2}","{3}"]):i},L=function(t,e){this.i18n=t,this.rootKey=e},k={locale:{configurable:!0}};k.locale.get=function(){return this.i18n.locale},k.locale.set=function(t){i("Cannot set locale from the validator when using vue-i18n, use i18n.locale setter instead")},L.prototype.getDateFormat=function(t){return this.i18n.getDateTimeFormat(t||this.locale)},L.prototype.setDateFormat=function(t,e){this.i18n.setDateTimeFormat(t||this.locale,e)},L.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)},L.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},L.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)},L.prototype.merge=function(a){var s=this;Object.keys(a).forEach(function(t){var e,i,n=F({},f(t+"."+s.rootKey,s.i18n.messages,{})),r=F(n,(i=a[t],{messages:N(i.messages),custom:N(i.custom),attributes:i.attributes,dateFormat:i.dateFormat}));s.i18n.mergeLocaleMessage(t,((e={})[s.rootKey]=r,e)),r.dateFormat&&s.i18n.setDateTimeFormat(t,r.dateFormat)})},L.prototype.setMessage=function(t,e,i){var n,r;this.merge(((r={})[t]={messages:(n={},n[e]=i,n)},r))},L.prototype.setAttribute=function(t,e,i){var n,r;this.merge(((r={})[t]={attributes:(n={},n[e]=i,n)},r))},Object.defineProperties(L.prototype,k);var V={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=x({},V),M={dictionary:new t({en:{messages:{},attributes:{},custom:{}}})},D=function(){},P={default:{configurable:!0},current:{configurable:!0}};P.default.get=function(){return V},P.current.get=function(){return C},D.dependency=function(t){return M[t]},D.merge=function(t){(C=x({},C,t)).i18n&&D.register("dictionary",new L(C.i18n,C.i18nRootKey))},D.register=function(t,e){M[t]=e},D.resolve=function(t){var e=f("$options.$_veeValidate",t,{});return x({},D.current,e)},Object.defineProperties(D,P);var R=function(){};R.generate=function(t,e,i){var n=R.resolveModel(e,i),r=D.resolve(i.context);return{name:R.resolveName(t,i),el:t,listen:!e.modifiers.disable,scope:R.resolveScope(t,e,i),vm:R.makeVM(i.context),expression:e.value,component:i.componentInstance,classes:r.classes,classNames:r.classNames,getter:R.resolveGetter(t,i,n),events:R.resolveEvents(t,i)||r.events,model:n,delay:R.resolveDelay(t,i,r),rules:R.resolveRules(t,e,i),initial:!!e.modifiers.initial,validity:r.validity,aria:r.aria,initialValue:R.resolveInitialValue(i)}},R.getCtorConfig=function(t){return t.componentInstance?f("componentInstance.$options.$_veeValidate",t):null},R.resolveRules=function(t,e,i){var n="";return e.value||e&&e.expression||(n=u(t,"rules")),e.value&&~["string","object"].indexOf(typeof e.value.rules)?n=e.value.rules:e.value&&(n=e.value),i.componentInstance?n:function(t,e){if(t.required&&(e=p("required",e)),o(t))return"email"===t.type&&(e=p("email"+(t.multiple?":multiple":""),e)),t.pattern&&(e=p("regex:"+t.pattern,e)),0<=t.maxLength&&t.maxLength<524288&&(e=p("max:"+t.maxLength,e)),0<t.minLength&&(e=p("min:"+t.minLength,e)),e;if("number"===t.type)return e=p("decimal",e),""!==t.min&&(e=p("min_value:"+t.min,e)),""!==t.max&&(e=p("max_value:"+t.max,e)),e;if(-1!==["date","week","month","datetime-local","time"].indexOf(t.type)){var i=t.step&&Number(t.step)<60?"HH:mm:ss":"HH:mm";if("date"===t.type)return p("date_format:YYYY-MM-DD",e);if("datetime-local"===t.type)return p("date_format:YYYY-MM-DDT"+i,e);if("month"===t.type)return p("date_format:YYYY-MM",e);if("week"===t.type)return p("date_format:YYYY-[W]WW",e);if("time"===t.type)return p("date_format:"+i,e)}return e}(t,n)},R.resolveInitialValue=function(t){var e=t.data.model||w(t.data.directives,function(t){return"model"===t.name});return e&&e.value},R.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}},R.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"]),g(r)?(c(n)||(r.input=n),E(r)):E(n||r)},R.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=R.getCtorConfig(e);i=n&&n.events}return i},R.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},R.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,a,s=!/[^\w.$]/.test(i.expression)&&(n=i.expression,r=e.context,a=r,n.split(".").every(function(t){return t in a&&(a=a[t],!0)})),o=!(!i.modifiers||!i.modifiers.lazy);return s?{expression:i.expression,lazy:o}:{expression:null,lazy:o}},R.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=R.getCtorConfig(e);return n&&y(n.name)?n.name.bind(e.componentInstance)():e.componentInstance.name}return i};var S={targetOf:null,initial:!(R.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=R.getCtorConfig(t);if(r&&y(r.value)){var a=r.value.bind(t.componentInstance);return function(){return a()}}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"}},q=function(t){void 0===t&&(t={}),this.id=(9999<=e&&(e=0,n=n.replace("{id}","_{id}")),e++,n.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=x({},S.classNames),t=x({},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},T={validator:{configurable:!0},isRequired:{configurable:!0},isDisabled:{configurable:!0},alias:{configurable:!0},value:{configurable:!0},rejectsFalse:{configurable:!0}};T.validator.get=function(){return this.vm&&this.vm.$validator?this.vm.$validator:{validate:function(){}}},T.isRequired.get=function(){return!!this.rules.required},T.isDisabled.get=function(){return!(!this.component||!this.component.disabled)||!(!this.el||!this.el.disabled)},T.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},T.value.get=function(){if(y(this.getter))return this.getter()},T.rejectsFalse.get=function(){return this.component&&this.ctorConfig?!!this.ctorConfig.rejectsFalse:!!this.el&&"checkbox"===this.el.type},q.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))},q.prototype._cacheId=function(t){this.el&&!t.targetOf&&(this.el._veeValidateId=this.id)},q.prototype.update=function(t){var e,i,n,r;this.targetOf=t.targetOf||null,this.initial=t.initial||this.initial||!1,!c(t.scope)&&t.scope!==this.scope&&y(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?v(t.rules):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=g(t.classNames)?F(this.classNames,t.classNames):this.classNames,this.getter=y(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,n=t.delay||this.delay,r=this._delay,"number"==typeof n?i.reduce(function(t,e){return t[e]=n,t},{}):i.reduce(function(t,e){return t[e]="object"==typeof n&&e in n?n[e]:"number"==typeof r?r:r&&r[e]||0,t},{})),this.updateDependencies(),this.addActionListeners(),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())},q.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()},q.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()},q.prototype.updateDependencies=function(){var s=this;this.dependencies.forEach(function(t){return t.field.destroy()}),this.dependencies=[];var t=Object.keys(this.rules).reduce(function(t,e){return W.isTargetRule(e)&&t.push({selector:s.rules[e][0],name:e}),t},[]);t.length&&this.vm&&this.vm.$el&&t.forEach(function(t){var e=t.selector,i=t.name,n=s.vm.$refs[e],r=Array.isArray(n)?n[0]:n;if(r){var a={vm:s.vm,classes:s.classes,classNames:s.classNames,delay:s.delay,scope:s.scope,events:s.events.join("|"),initial:s.initial,targetOf:s.id};y(r.$watch)?(a.component=r,a.el=r.$el,a.getter=R.resolveGetter(r.$el,r.$vnode)):(a.el=r,a.getter=R.resolveGetter(r,{})),s.dependencies.push({name:i,field:new q(a)})}})},q.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)})},q.prototype.updateClasses=function(){var e=this;if(this.classes&&!this.isDisabled){var t=function(t){$(t,e.classNames.dirty,e.flags.dirty),$(t,e.classNames.pristine,e.flags.pristine),$(t,e.classNames.touched,e.flags.touched),$(t,e.classNames.untouched,e.flags.untouched),!c(e.flags.valid)&&e.flags.validated&&$(t,e.classNames.valid,e.flags.valid),!c(e.flags.invalid)&&e.flags.validated&&$(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)}},q.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&&($(t.el,t.classNames.touched,!0),$(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&&($(t.el,t.classNames.pristine,!1),$(t.el,t.classNames.dirty,!0)),t.unwatch(/^class_input$/)};if(this.component&&y(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=l(this.el)?"change":"blur";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)}})}}},q.prototype.checkValueChanged=function(){return(null!==this.initialValue||""!==this.value||!o(this.el))&&this.value!==this.initialValue},q.prototype.addValueListeners=function(){var n=this;if(this.unwatch(/^input_.+/),this.listen&&this.el){var r={cancelled:!1},a=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||y(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(a,this.delay[e],!1,r),s=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:s}),t=t.filter(function(t){return t!==e})}t.forEach(function(t){var i=h(a,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)})}},q.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)}}))},q.prototype._addHTMLEventListener=function(e,i){var n=this;if(this.el&&!this.component){var r=function(t){a(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)})}}},q.prototype.updateAriaAttrs=function(){var e=this;if(this.aria&&this.el&&y(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)}},q.prototype.updateCustomValidity=function(){this.validity&&this.el&&y(this.el.setCustomValidity)&&this.validator.errors&&this.el.setCustomValidity(this.flags.valid?"":this.validator.errors.firstById(this.id)||"")},q.prototype.destroy=function(){this.unwatch(),this.dependencies.forEach(function(t){return t.field.destroy()}),this.dependencies=[]},Object.defineProperties(q.prototype,T);var Y=function(){this.items=[]},z={length:{configurable:!0}};Y.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},Y.prototype.find=function(e){return w(this.items,function(t){return t.matches(e)})},Y.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)})},Y.prototype.map=function(t){return this.items.map(t)},Y.prototype.remove=function(t){var e=null;if(!(e=t instanceof q?t:this.find(t)))return null;var i=this.items.indexOf(e);return this.items.splice(i,1),e},Y.prototype.push=function(t){if(!(t instanceof q))throw m("FieldBag only accepts instances of Field that has an id defined.");if(!t.id)throw m("Field id must be defined.");if(this.find({id:t.id}))throw m("Field with id "+t.id+" is already added.");this.items.push(t)},Object.defineProperties(Y.prototype,z);var B={},K=!0,H=["confirmed","after","before"],W=function(t,e){var i=this;void 0===e&&(e={fastExit:!0}),this.strict=K,this.errors=new O,this.fields=new Y,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)},G={dictionary:{configurable:!0},_vm:{configurable:!0},locale:{configurable:!0},rules:{configurable:!0}},U={dictionary:{configurable:!0},locale:{configurable:!0},rules:{configurable:!0}};G.dictionary.get=function(){return D.dependency("dictionary")},G._vm.get=function(){return D.dependency("vm")},U.dictionary.get=function(){return D.dependency("dictionary")},G.locale.get=function(){return this.dictionary.locale},G.locale.set=function(t){W.locale=t},U.locale.get=function(){return W.dictionary.locale},U.locale.set=function(t){var e=t!==W.dictionary.locale;W.dictionary.locale=t,e&&D.dependency("vm")&&D.dependency("vm").$emit("localeChanged")},G.rules.get=function(){return B},U.rules.get=function(){return B},W.create=function(t,e){return new W(t,e)},W.extend=function(t,e,i){void 0===i&&(i={}),W._guardExtend(t,e),W._merge(t,e),i&&i.hasTarget&&H.push(t)},W.remove=function(t){delete B[t];var e=H.indexOf(t);-1!==e&&H.splice(e,1)},W.isTargetRule=function(t){return-1!==H.indexOf(t)},W.setStrictMode=function(t){void 0===t&&(t=!0),K=t},W.prototype.localize=function(t,e){W.localize(t,e)},W.localize=function(t,e){var i;if(g(t))W.dictionary.merge(t);else{if(e){var n=t||e.name;e=x({},e),W.dictionary.merge(((i={})[n]=e,i))}t&&(W.locale=t)}},W.prototype.attach=function(e){1<arguments.length&&(e=x({},{name:e,rules:arguments[1]},arguments[2]||{vm:{$validator:this}}));var t=e.initialValue;return e instanceof q||(e=new q(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},W.prototype.flag=function(t,e){var i=this._resolveField(t);i&&e&&i.setFlags(e)},W.prototype.detach=function(t,e){var i=t instanceof q?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=x({},n)}},W.prototype.extend=function(t,e,i){void 0===i&&(i={}),W.extend(t,e,i)},W.prototype.reset=function(t){var e=this;return this._vm.$nextTick().then(function(){return e._vm.$nextTick()}).then(function(){e.fields.filter(t).forEach(function(t){t.reset(),e.errors.remove(t.name,t.scope,t.id)})})},W.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))},W.prototype.remove=function(t){W.remove(t)},W.prototype.validate=function(t,e,i,n){var r=this;if(void 0===i&&(i=null),void 0===n&&(n=!1),this.paused)return Promise.resolve(!0);if(0===arguments.length)return this.validateScopes();if(1===arguments.length&&"*"===t)return this.validateAll();if(1===arguments.length&&"string"==typeof t&&/^(.+)\.\*$/.test(t)){var a=t.match(/^(.+)\.\*$/)[1];return this.validateAll(a)}var s=this._resolveField(t,i);return s?(n||(s.flags.pending=!0),1===arguments.length&&(e=s.value),this._validate(s,e).then(function(t){return n||r._handleValidationResults([t]),t.valid})):this._handleFieldNotFound(t,i)},W.prototype.pause=function(){return this.paused=!0,this},W.prototype.resume=function(){return this.paused=!1,this},W.prototype.validateAll=function(e,i,n){var r=this;if(void 0===i&&(i=null),void 0===n&&(n=!1),this.paused)return Promise.resolve(!0);var t=null,a=!1;return"string"==typeof e?t={scope:e}:g(e)?(t=Object.keys(e).map(function(t){return{name:t,scope:i}}),a=!0):t=Array.isArray(e)?e.map(function(t){return{name:t,scope:i}}):{scope:i},Promise.all(this.fields.filter(t).map(function(t){return r._validate(t,a?e[t.name]:t.value)})).then(function(t){return n||r._handleValidationResults(t),t.every(function(t){return t.valid})})},W.prototype.validateScopes=function(e){var i=this;return void 0===e&&(e=!1),this.paused?Promise.resolve(!0):Promise.all(this.fields.map(function(t){return i._validate(t,t.value)})).then(function(t){return e||i._handleValidationResults(t),t.every(function(t){return t.valid})})},W.prototype.destroy=function(){this._vm.$off("localeChanged",this._localeListener)},W.prototype._createFields=function(i){var n=this;i&&Object.keys(i).forEach(function(t){var e=x({},{name:t,rules:i[t]});n.attach(e)})},W.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)},W.prototype._isADateRule=function(t){return!!~["after","before","date_between","date_format"].indexOf(t)},W.prototype._formatErrorMessage=function(t,e,i,n){void 0===i&&(i={}),void 0===n&&(n=null);var r=this._getFieldDisplayName(t),a=this._getLocalizedParams(e,n);return this.dictionary.getFieldMessage(this.locale,t.name,e.name,[r,a,i])},W.prototype._getLocalizedParams=function(t,e){return void 0===e&&(e=null),~H.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},W.prototype._getFieldDisplayName=function(t){return t.alias||this.dictionary.getAttribute(this.locale,t.name,t.name)},W.prototype._addFlag=function(t,e){var i,n,r;if(void 0===e&&(e=null),c(e))this.flags=x({},this.flags,((i={})[""+t.name]=t.flags,i));else{var a=x({},this.flags["$"+e]||{},((n={})[""+t.name]=t.flags,n));this.flags=x({},this.flags,((r={})["$"+e]=a,r))}},W.prototype._test=function(n,t,r){var a=this,e=B[r.name],i=Array.isArray(r.params)?_(r.params):[],s=null;if(!e||"function"!=typeof e)return Promise.reject(m("No such validator '"+r.name+"' exists."));if(-1!==H.indexOf(r.name)){var o=w(n.dependencies,function(t){return t.name===r.name});o&&(s=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 y(u.then)?u.then(function(t){var e=!0,i={};return Array.isArray(t)?e=t.every(function(t){return g(t)?t.valid:t}):(e=g(t)?t.valid:t,i=t.data),{valid:e,errors:e?[]:[a._createFieldError(n,r,i,s)]}}):(g(u)||(u={valid:u,data:{}}),{valid:u.valid,errors:u.valid?[]:[this._createFieldError(n,r,u.data,s)]})},W._merge=function(t,e){y(e)?B[t]=e:(B[t]=e.validate,e.getMessage&&W.dictionary.setMessage(this.locale,t,e.getMessage))},W._guardExtend=function(t,e){if(!y(e)&&!y(e.validate))throw m("Extension Error: The validator '"+t+"' must be a function or have a 'validate' method.")},W.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)}}},W.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),a=this.fields.find({name:r.join("."),scope:n});if(a)return a}return this.fields.find({name:t,scope:null})},W.prototype._handleFieldNotFound=function(t,e){if(!this.strict)return Promise.resolve(!0);var i=c(e)?t:(c(e)?"":e+".")+t;return Promise.reject(m('Validating a non-existent field: "'+i+'". Use "attach()" first.'))},W.prototype._handleValidationResults=function(i){var e=this,t=i.map(function(t){return{id:t.id}});this.errors.removeById(t.map(function(t){return t.id})),i.forEach(function(t){e.errors.remove(t.field,t.scope)});var n=i.reduce(function(t,e){return t.push.apply(t,e.errors),t},[]);this.errors.add(n),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})})},W.prototype._validate=function(i,n){var r=this;if(i.isDisabled||!i.isRequired&&(c(n)||""===n))return Promise.resolve({valid:!0,id:i.id,field:i.name,scope:i.scope,errors:[]});var a=[],s=[],o=!1;return Object.keys(i.rules).some(function(t){var e=r._test(i,n,{name:t,params:i.rules[t]});return y(e.then)?a.push(e):r.fastExit&&!e.valid?(s.push.apply(s,e.errors),o=!0):a.push(new Promise(function(t){return t(e)})),o}),o?Promise.resolve({valid:!1,errors:s,id:i.id,field:i.name,scope:i.scope}):Promise.all(a).then(function(t){return 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:s,id:i.id,field:i.name,scope:i.scope})})},Object.defineProperties(W.prototype,G),Object.defineProperties(W,U);var J=function(t,e){return new W(null,{vm:t,fastExit:e.fastExit})},Q={provide:function(){return this.$validator&&!A(this.$vnode)?{$validator:this.$validator}:{}},beforeCreate:function(){if(!A(this.$vnode)){this.$parent||D.merge(this.$options.$_veeValidate||{});var t=D.resolve(this),e=this.$options._base;(!this.$parent||this.$options.$_veeValidate&&/new/.test(this.$options.$_veeValidate.validator))&&(this.$validator=J(this,t));var i,n=(i=this.$options.inject,!(!g(i)||!i.$validator));this.$validator||!t.inject||n||(this.$validator=J(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(){A(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 Z,tt={bind:function(t,e,i){var n=i.context.$validator;if(n){var r=R.generate(t,e,i);n.attach(r)}},inserted:function(t,e,i){var n=X(t,i.context),r=R.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=R.resolveScope(t,e,i),a=R.resolveRules(t,e,i);n.update({scope:r,rules:a})}},unbind:function(t,e,i){var n=i.context,r=X(t,n);r&&n.$validator.detach(r)}};var et=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},{})},it=function(n,r){return void 0===r&&(r=!0),Object.keys(n).reduce(function(t,e){if(!t)return t=x({},n[e]);var i=0===e.indexOf("$");return r&&i?et(it(n[e]),t):!r&&i?t:t=et(t,n[e])},null)},nt={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={}),!Z||t!==Z){!function(){try{var t=Object.defineProperty({},"passive",{get:function(){s=!0}});window.addEventListener("testPassive",null,t),window.removeEventListener("testPassive",null,t)}catch(t){s=!1}}();var i=new(Z=t);D.register("vm",i),D.merge(e);var n=D.current,r=n.dictionary,a=n.i18n;r&&W.localize(r),a&&a._vm&&y(a._vm.$watch)&&a._vm.$watch("locale",function(){i.$emit("localeChanged")}),!a&&e.locale&&W.localize(e.locale),W.setStrictMode(D.current.strict),Z.mixin(Q),Z.directive("validate",tt)}},use:function(t,e){if(void 0===e&&(e={}),!y(t))return i("The plugin must be a callable function");t({Validator:W,ErrorBag:O,Rules:W.rules},e)},directive:tt,mixin:Q,mapFields:function(t){if(!t)return function(){return it(this.$validator.flags)};var e,a=(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(a).reduce(function(t,n){var r=a[n];return t[n]=function(){if(this.$validator.flags[r])return this.$validator.flags[r];if("*"===a[n])return it(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?it(e):e&&e[i]?e[i]:{}},t},{})},Validator:W,ErrorBag:O,ErrorComponent:nt,version:"2.1.0-beta.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 s=!0,a=function(t,e,i){t.addEventListener(e,i,!!s&&{passive:!0})},u=function(t){return-1!==["text","password","search","email","tel","url","textarea"].indexOf(t.type)},o=function(t){return-1!==["radio","checkbox"].indexOf(t.type)},l=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 g(e)&&g(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 t in n?(n=n[t],!0):(n=i,!1)}),n},h=function(n,r,a,s){return void 0===r&&(r=0),void 0===a&&(a=!1),void 0===s&&(s={cancelled:!1}),0===r?n:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var i=a&&!o;clearTimeout(o),o=setTimeout(function(){o=null,a||s.cancelled||n.apply(void 0,t)},r),i&&n.apply(void 0,t)};var o},p=function(t,e){return e?t?"string"==typeof e?e+"|"+t:x({},e,v(t)):e:t},v=function(n){return n?g(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?(i("rules must be either a string or an object."),{}):n.split("|").reduce(function(t,e){var i,n,r,a=(n=[],r=(i=e).split(":")[0],~i.indexOf(":")&&(n=i.split(":").slice(1).join(":").split(",")),{name:r,params:n});return a.name&&(t[a.name]=a.params),t},{}):{}},i=function(t){console.warn("[vee-validate] "+t)},m=function(t){return new Error("[vee-validate] "+t)},g=function(t){return null!==t&&t&&"object"==typeof t&&!Array.isArray(t)},y=function(t){return"function"==typeof t},$=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):$(n,r)||(n.className+=" "+r))):void function(t,e){if(t.classList)t.classList.remove(e);else if($(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(y(Array.from))return Array.from(t);for(var e=[],i=t.length,n=0;n<i;n++)e.push(t[n]);return e},x=function(t){for(var e=[],i=arguments.length-1;0<i--;)e[i]=arguments[i+1];if(y(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,n="{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]},A=function(t){if(!t)return!1;var e=t.componentOptions.tag;return/^(keep-alive|transition|transition-group)$/.test(e)},E=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},O=function(n,r){return g(n)&&g(r)&&Object.keys(r).forEach(function(t){var e,i;if(g(r[t]))return n[t]||x(n,((e={})[t]={},e)),void O(n[t],r[t]);x(n,((i={})[t]=r[t],i))}),n},F=function(){this.items=[]};F.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}}}},F.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))},F.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])},F.prototype.regenerate=function(){this.items.forEach(function(t){t.msg=y(t.regenerate)?t.regenerate():t.msg})},F.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)}},F.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})},F.prototype.any=function(e){return c(e)?!!this.items.length:!!this.items.filter(function(t){return t.scope===e}).length},F.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)},F.prototype.collect=function(t,e,r){void 0===r&&(r=!0);var i=function(t){var e,i=0,n=t.reduce(function(t,e){return t[e.field]||(t[e.field]=[],i++),t[e.field].push(r?e.msg:e),t},{});return i<=1?(e=n,y(Object.values)?Object.values(e):e[Object.keys(e)[0]])[0]||[]:n};if(c(t))return i(this.items);var n=c(e)?String(t):e+"."+t,a=this._makeCandidateFilters(n),s=a.isPrimary,o=a.isAlt,l=this.items.reduce(function(t,e){return s(e)&&t.primary.push(e),o(e)&&t.alt.push(e),t},{primary:[],alt:[]});return i(l=l.primary.length?l.primary:l.alt)},F.prototype.count=function(){return this.items.length},F.prototype.firstById=function(e){var t=w(this.items,function(t){return t.id===e});return t?t.msg:void 0},F.prototype.first=function(t,e){void 0===e&&(e=null);var i=c(e)?t:e+"."+t,n=this._match(i);return n&&n.msg},F.prototype.firstRule=function(t,e){var i=this.collect(t,e,!1);return i.length&&i[0].rule||void 0},F.prototype.has=function(t,e){return void 0===e&&(e=null),!!this.first(t,e)},F.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||void 0},F.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||void 0},F.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)},F.prototype.remove=function(t,e){if(!c(t))for(var i=c(e)?String(t):e+"."+t,n=this._makeCandidateFilters(i).isPrimary,r=0;r<this.items.length;++r)n(this.items[r])&&(this.items.splice(r,1),--r)},F.prototype._makeCandidateFilters=function(e){var i=function(){return!0},n=function(){return!0},r=function(){return!0},t=e.match(/((?:[\w-\s])+\.)?((?:[\w-.*\s])+)(:\w+)?/),a=t[1],s=t[2],o=t[3];if(o&&(o=o.replace(":",""),i=function(t){return t.rule===o}),e.startsWith("#"))return{isPrimary:function(t){return i(t)&&function(t){return e.slice(1).startsWith(t.id)}},isAlt:function(){return!1}};c(a)?n=function(t){return c(t.scope)}:(a=a.replace(".",""),n=function(t){return t.scope===a}),c(s)||"*"===s||(r=function(t){return t.field===s});return{isPrimary:function(t){return r(t)&&i(t)&&n(t)},isAlt:function(t){return i(t)&&t.field===a+"."+s}}},F.prototype._match=function(t){if(!c(t)){var e=this._makeCandidateFilters(t),a=e.isPrimary,s=e.isAlt;return this.items.reduce(function(t,e,i,n){var r=i===n.length-1;return t.primary?r?t.primary:t:(a(e)&&(t.primary=e),s(e)&&(t.alt=e),r?t.primary||t.alt:t)},{})}};var j="en",t=function(t){void 0===t&&(t={}),this.container={},this.merge(t)},I={locale:{configurable:!0}};I.locale.get=function(){return j},I.locale.set=function(t){j=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),y(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 a=r[i];return y(a)?a.apply(void 0,n):a},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){O(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,I);var N=function(i){return g(i)?Object.keys(i).reduce(function(t,e){return t[e]=N(i[e]),t},{}):y(i)?i("{0}",["{1}","{2}","{3}"]):i},k=function(t,e){this.i18n=t,this.rootKey=e},L={locale:{configurable:!0}};L.locale.get=function(){return this.i18n.locale},L.locale.set=function(t){i("Cannot set locale from the validator when using vue-i18n, use i18n.locale setter instead")},k.prototype.getDateFormat=function(t){return this.i18n.getDateTimeFormat(t||this.locale)},k.prototype.setDateFormat=function(t,e){this.i18n.setDateTimeFormat(t||this.locale,e)},k.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)},k.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},k.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)},k.prototype.merge=function(a){var s=this;Object.keys(a).forEach(function(t){var e,i,n=O({},f(t+"."+s.rootKey,s.i18n.messages,{})),r=O(n,(i=a[t],{messages:N(i.messages),custom:N(i.custom),attributes:i.attributes,dateFormat:i.dateFormat}));s.i18n.mergeLocaleMessage(t,((e={})[s.rootKey]=r,e)),r.dateFormat&&s.i18n.setDateTimeFormat(t,r.dateFormat)})},k.prototype.setMessage=function(t,e,i){var n,r;this.merge(((r={})[t]={messages:(n={},n[e]=i,n)},r))},k.prototype.setAttribute=function(t,e,i){var n,r;this.merge(((r={})[t]={attributes:(n={},n[e]=i,n)},r))},Object.defineProperties(k.prototype,L);var V={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=x({},V),M={dictionary:new t({en:{messages:{},attributes:{},custom:{}}})},D=function(){},P={default:{configurable:!0},current:{configurable:!0}};P.default.get=function(){return V},P.current.get=function(){return C},D.dependency=function(t){return M[t]},D.merge=function(t){(C=x({},C,t)).i18n&&D.register("dictionary",new k(C.i18n,C.i18nRootKey))},D.register=function(t,e){M[t]=e},D.resolve=function(t){var e=f("$options.$_veeValidate",t,{});return x({},D.current,e)},Object.defineProperties(D,P);var R=function(){};R.generate=function(t,e,i){var n=R.resolveModel(e,i),r=D.resolve(i.context);return{name:R.resolveName(t,i),el:t,listen:!e.modifiers.disable,scope:R.resolveScope(t,e,i),vm:R.makeVM(i.context),expression:e.value,component:i.componentInstance,classes:r.classes,classNames:r.classNames,getter:R.resolveGetter(t,i,n),events:R.resolveEvents(t,i)||r.events,model:n,delay:R.resolveDelay(t,i,r),rules:R.resolveRules(t,e,i),initial:!!e.modifiers.initial,validity:r.validity,aria:r.aria,initialValue:R.resolveInitialValue(i)}},R.getCtorConfig=function(t){return t.componentInstance?f("componentInstance.$options.$_veeValidate",t):null},R.resolveRules=function(t,e,i){var n="";return e.value||e&&e.expression||(n=l(t,"rules")),e.value&&~["string","object"].indexOf(typeof e.value.rules)?n=e.value.rules:e.value&&(n=e.value),i.componentInstance?n:function(t,e){if(t.required&&(e=p("required",e)),u(t))return"email"===t.type&&(e=p("email"+(t.multiple?":multiple":""),e)),t.pattern&&(e=p("regex:"+t.pattern,e)),0<=t.maxLength&&t.maxLength<524288&&(e=p("max:"+t.maxLength,e)),0<t.minLength&&(e=p("min:"+t.minLength,e)),e;if("number"===t.type)return e=p("decimal",e),""!==t.min&&(e=p("min_value:"+t.min,e)),""!==t.max&&(e=p("max_value:"+t.max,e)),e;if(-1!==["date","week","month","datetime-local","time"].indexOf(t.type)){var i=t.step&&Number(t.step)<60?"HH:mm:ss":"HH:mm";if("date"===t.type)return p("date_format:YYYY-MM-DD",e);if("datetime-local"===t.type)return p("date_format:YYYY-MM-DDT"+i,e);if("month"===t.type)return p("date_format:YYYY-MM",e);if("week"===t.type)return p("date_format:YYYY-[W]WW",e);if("time"===t.type)return p("date_format:"+i,e)}return e}(t,n)},R.resolveInitialValue=function(t){var e=t.data.model||w(t.data.directives,function(t){return"model"===t.name});return e&&e.value},R.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}},R.resolveDelay=function(t,e,i){var n=l(t,"delay"),r=i&&"delay"in i?i.delay:0;return!n&&e.componentInstance&&e.componentInstance.$attrs&&(n=e.componentInstance.$attrs["data-vv-delay"]),g(r)?(c(n)||(r.input=n),E(r)):E(n||r)},R.resolveEvents=function(t,e){var i=l(t,"validate-on");if(!i&&e.componentInstance&&e.componentInstance.$attrs&&(i=e.componentInstance.$attrs["data-vv-validate-on"]),!i&&e.componentInstance){var n=R.getCtorConfig(e);i=n&&n.events}!i&&e.componentInstance&&(i=(e.componentInstance.$options.model||{event:"input"}).event);return i},R.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=l(t,"scope");if(c(e)){var i=r(t);i&&(e=l(i,"scope"))}return c(e)?null:e}(t):n},R.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,a,s=!/[^\w.$]/.test(i.expression)&&(n=i.expression,r=e.context,a=r,n.split(".").every(function(t){return t in a&&(a=a[t],!0)})),o=!(!i.modifiers||!i.modifiers.lazy);return s?{expression:i.expression,lazy:o}:{expression:null,lazy:o}},R.resolveName=function(t,e){var i=l(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=R.getCtorConfig(e);return n&&y(n.name)?n.name.bind(e.componentInstance)():e.componentInstance.name}return i};var S={targetOf:null,initial:!(R.resolveGetter=function(i,t,e){if(e&&e.expression)return function(){return f(e.expression,t.context)};if(t.componentInstance){var n=l(i,"value-path")||t.componentInstance.$attrs&&t.componentInstance.$attrs["data-vv-value-path"];if(n)return function(){return f(n,t.componentInstance)};var r=R.getCtorConfig(t);if(r&&y(r.value)){var a=r.value.bind(t.componentInstance);return function(){return a()}}var s=(t.componentInstance.$options.model||{prop:"value"}).prop;return function(){return t.componentInstance[s]}}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"}},q=function(t){void 0===t&&(t={}),this.id=(9999<=e&&(e=0,n=n.replace("{id}","_{id}")),e++,n.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=x({},S.classNames),t=x({},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},T={validator:{configurable:!0},isRequired:{configurable:!0},isDisabled:{configurable:!0},alias:{configurable:!0},value:{configurable:!0},rejectsFalse:{configurable:!0}};T.validator.get=function(){return this.vm&&this.vm.$validator?this.vm.$validator:{validate:function(){}}},T.isRequired.get=function(){return!!this.rules.required},T.isDisabled.get=function(){return!(!this.component||!this.component.disabled)||!(!this.el||!this.el.disabled)},T.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},T.value.get=function(){if(y(this.getter))return this.getter()},T.rejectsFalse.get=function(){return this.component&&this.ctorConfig?!!this.ctorConfig.rejectsFalse:!!this.el&&"checkbox"===this.el.type},q.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))},q.prototype._cacheId=function(t){this.el&&!t.targetOf&&(this.el._veeValidateId=this.id)},q.prototype.update=function(t){var e,i,n,r;this.targetOf=t.targetOf||null,this.initial=t.initial||this.initial||!1,!c(t.scope)&&t.scope!==this.scope&&y(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?v(t.rules):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=g(t.classNames)?O(this.classNames,t.classNames):this.classNames,this.getter=y(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,n=t.delay||this.delay,r=this._delay,"number"==typeof n?i.reduce(function(t,e){return t[e]=n,t},{}):i.reduce(function(t,e){return t[e]="object"==typeof n&&e in n?n[e]:"number"==typeof r?r:r&&r[e]||0,t},{})),this.updateDependencies(),this.addActionListeners(),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())},q.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()},q.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()},q.prototype.updateDependencies=function(){var s=this;this.dependencies.forEach(function(t){return t.field.destroy()}),this.dependencies=[];var t=Object.keys(this.rules).reduce(function(t,e){return W.isTargetRule(e)&&t.push({selector:s.rules[e][0],name:e}),t},[]);t.length&&this.vm&&this.vm.$el&&t.forEach(function(t){var e=t.selector,i=t.name,n=s.vm.$refs[e],r=Array.isArray(n)?n[0]:n;if(r){var a={vm:s.vm,classes:s.classes,classNames:s.classNames,delay:s.delay,scope:s.scope,events:s.events.join("|"),initial:s.initial,targetOf:s.id};y(r.$watch)?(a.component=r,a.el=r.$el,a.getter=R.resolveGetter(r.$el,r.$vnode)):(a.el=r,a.getter=R.resolveGetter(r,{})),s.dependencies.push({name:i,field:new q(a)})}})},q.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)})},q.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(o(this.el)){var i=document.querySelectorAll('input[name="'+this.el.name+'"]');_(i).forEach(t)}else t(this.el)}},q.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=u(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&&y(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=o(this.el)?"change":"blur";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)}})}}},q.prototype.checkValueChanged=function(){return(null!==this.initialValue||""!==this.value||!u(this.el))&&this.value!==this.initialValue},q.prototype.addValueListeners=function(){var n=this;if(this.unwatch(/^input_.+/),this.listen&&this.el){var r={cancelled:!1},a=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||y(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||u(this.el)?"input":"change";e=this.model&&this.model.lazy?"change":e,this.component&&this.component.$options.model&&(e=this.component.$options.model.event);var t=!this.events.length||this.component||u(this.el)?this.events:["change"];if(this.model&&-1!==t.indexOf(e)){var i=null,s=this.model.expression;if(this.model.expression&&(i=this.vm,s=this.model.expression),!s&&this.component&&this.component.$options.model&&(i=this.component,s=this.component.$options.model.prop||"value"),i&&s){var o=h(a,this.delay[e],!1,r),l=i.$watch(s,function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];n.flags.pending=!0,n._cancellationToken=r,o.apply(void 0,t)});this.watchers.push({tag:"input_model",unwatch:l}),t=t.filter(function(t){return t!==e})}}t.forEach(function(t){var i=h(a,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)})}},q.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)}}))},q.prototype._addHTMLEventListener=function(e,i){var n=this;if(this.el&&!this.component){var r=function(t){a(t,e,i),n.watchers.push({tag:"input_native",unwatch:function(){t.removeEventListener(e,i)}})};if(r(this.el),o(this.el)){var t=document.querySelectorAll('input[name="'+this.el.name+'"]');_(t).forEach(function(t){t._veeValidateId&&t!==n.el||r(t)})}}},q.prototype.updateAriaAttrs=function(){var e=this;if(this.aria&&this.el&&y(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(o(this.el)){var i=document.querySelectorAll('input[name="'+this.el.name+'"]');_(i).forEach(t)}else t(this.el)}},q.prototype.updateCustomValidity=function(){this.validity&&this.el&&y(this.el.setCustomValidity)&&this.validator.errors&&this.el.setCustomValidity(this.flags.valid?"":this.validator.errors.firstById(this.id)||"")},q.prototype.destroy=function(){this.unwatch(),this.dependencies.forEach(function(t){return t.field.destroy()}),this.dependencies=[]},Object.defineProperties(q.prototype,T);var Y=function(){this.items=[]},z={length:{configurable:!0}};Y.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},Y.prototype.find=function(e){return w(this.items,function(t){return t.matches(e)})},Y.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)})},Y.prototype.map=function(t){return this.items.map(t)},Y.prototype.remove=function(t){var e=null;if(!(e=t instanceof q?t:this.find(t)))return null;var i=this.items.indexOf(e);return this.items.splice(i,1),e},Y.prototype.push=function(t){if(!(t instanceof q))throw m("FieldBag only accepts instances of Field that has an id defined.");if(!t.id)throw m("Field id must be defined.");if(this.find({id:t.id}))throw m("Field with id "+t.id+" is already added.");this.items.push(t)},Object.defineProperties(Y.prototype,z);var B={},K=!0,H=["confirmed","after","before"],W=function(t,e){var i=this;void 0===e&&(e={fastExit:!0}),this.strict=K,this.errors=new F,this.fields=new Y,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&&"undefined"!=typeof window&&this._vm.$on("localeChanged",this._localeListener)},G={dictionary:{configurable:!0},_vm:{configurable:!0},locale:{configurable:!0},rules:{configurable:!0}},U={dictionary:{configurable:!0},locale:{configurable:!0},rules:{configurable:!0}};G.dictionary.get=function(){return D.dependency("dictionary")},G._vm.get=function(){return D.dependency("vm")},U.dictionary.get=function(){return D.dependency("dictionary")},G.locale.get=function(){return this.dictionary.locale},G.locale.set=function(t){W.locale=t},U.locale.get=function(){return W.dictionary.locale},U.locale.set=function(t){var e=t!==W.dictionary.locale;W.dictionary.locale=t,e&&D.dependency("vm")&&D.dependency("vm").$emit("localeChanged")},G.rules.get=function(){return B},U.rules.get=function(){return B},W.create=function(t,e){return new W(t,e)},W.extend=function(t,e,i){void 0===i&&(i={}),W._guardExtend(t,e),W._merge(t,e),i&&i.hasTarget&&H.push(t)},W.remove=function(t){delete B[t];var e=H.indexOf(t);-1!==e&&H.splice(e,1)},W.isTargetRule=function(t){return-1!==H.indexOf(t)},W.setStrictMode=function(t){void 0===t&&(t=!0),K=t},W.prototype.localize=function(t,e){W.localize(t,e)},W.localize=function(t,e){var i;if(g(t))W.dictionary.merge(t);else{if(e){var n=t||e.name;e=x({},e),W.dictionary.merge(((i={})[n]=e,i))}t&&(W.locale=t)}},W.prototype.attach=function(e){1<arguments.length&&(e=x({},{name:e,rules:arguments[1]},arguments[2]||{vm:{$validator:this}}));var t=e.initialValue;return e instanceof q||(e=new q(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},W.prototype.flag=function(t,e){var i=this._resolveField(t);i&&e&&i.setFlags(e)},W.prototype.detach=function(t,e){var i=t instanceof q?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=x({},n)}},W.prototype.extend=function(t,e,i){void 0===i&&(i={}),W.extend(t,e,i)},W.prototype.reset=function(t){var e=this;return this._vm.$nextTick().then(function(){return e._vm.$nextTick()}).then(function(){e.fields.filter(t).forEach(function(t){t.reset(),e.errors.remove(t.name,t.scope,t.id)})})},W.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))},W.prototype.remove=function(t){W.remove(t)},W.prototype.validate=function(t,e,i,n){var r=this;if(void 0===i&&(i=null),void 0===n&&(n=!1),this.paused)return Promise.resolve(!0);if(0===arguments.length)return this.validateScopes();if(1===arguments.length&&"*"===t)return this.validateAll();if(1===arguments.length&&"string"==typeof t&&/^(.+)\.\*$/.test(t)){var a=t.match(/^(.+)\.\*$/)[1];return this.validateAll(a)}var s=this._resolveField(t,i);return s?(n||(s.flags.pending=!0),1===arguments.length&&(e=s.value),this._validate(s,e).then(function(t){return n||r._handleValidationResults([t]),t.valid})):this._handleFieldNotFound(t,i)},W.prototype.pause=function(){return this.paused=!0,this},W.prototype.resume=function(){return this.paused=!1,this},W.prototype.validateAll=function(e,i,n){var r=this;if(void 0===i&&(i=null),void 0===n&&(n=!1),this.paused)return Promise.resolve(!0);var t=null,a=!1;return"string"==typeof e?t={scope:e}:g(e)?(t=Object.keys(e).map(function(t){return{name:t,scope:i}}),a=!0):t=Array.isArray(e)?e.map(function(t){return{name:t,scope:i}}):{scope:i},Promise.all(this.fields.filter(t).map(function(t){return r._validate(t,a?e[t.name]:t.value)})).then(function(t){return n||r._handleValidationResults(t),t.every(function(t){return t.valid})})},W.prototype.validateScopes=function(e){var i=this;return void 0===e&&(e=!1),this.paused?Promise.resolve(!0):Promise.all(this.fields.map(function(t){return i._validate(t,t.value)})).then(function(t){return e||i._handleValidationResults(t),t.every(function(t){return t.valid})})},W.prototype.destroy=function(){this._vm.$off("localeChanged",this._localeListener)},W.prototype._createFields=function(i){var n=this;i&&Object.keys(i).forEach(function(t){var e=x({},{name:t,rules:i[t]});n.attach(e)})},W.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)},W.prototype._isADateRule=function(t){return!!~["after","before","date_between","date_format"].indexOf(t)},W.prototype._formatErrorMessage=function(t,e,i,n){void 0===i&&(i={}),void 0===n&&(n=null);var r=this._getFieldDisplayName(t),a=this._getLocalizedParams(e,n);return this.dictionary.getFieldMessage(this.locale,t.name,e.name,[r,a,i])},W.prototype._getLocalizedParams=function(t,e){return void 0===e&&(e=null),~H.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},W.prototype._getFieldDisplayName=function(t){return t.alias||this.dictionary.getAttribute(this.locale,t.name,t.name)},W.prototype._addFlag=function(t,e){var i,n,r;if(void 0===e&&(e=null),c(e))this.flags=x({},this.flags,((i={})[""+t.name]=t.flags,i));else{var a=x({},this.flags["$"+e]||{},((n={})[""+t.name]=t.flags,n));this.flags=x({},this.flags,((r={})["$"+e]=a,r))}},W.prototype._test=function(n,t,r){var a=this,e=B[r.name],i=Array.isArray(r.params)?_(r.params):[],s=null;if(!e||"function"!=typeof e)return Promise.reject(m("No such validator '"+r.name+"' exists."));if(-1!==H.indexOf(r.name)){var o=w(n.dependencies,function(t){return t.name===r.name});o&&(s=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 y(u.then)?u.then(function(t){var e=!0,i={};return Array.isArray(t)?e=t.every(function(t){return g(t)?t.valid:t}):(e=g(t)?t.valid:t,i=t.data),{valid:e,errors:e?[]:[a._createFieldError(n,r,i,s)]}}):(g(u)||(u={valid:u,data:{}}),{valid:u.valid,errors:u.valid?[]:[this._createFieldError(n,r,u.data,s)]})},W._merge=function(t,e){y(e)?B[t]=e:(B[t]=e.validate,e.getMessage&&W.dictionary.setMessage(this.locale,t,e.getMessage))},W._guardExtend=function(t,e){if(!y(e)&&!y(e.validate))throw m("Extension Error: The validator '"+t+"' must be a function or have a 'validate' method.")},W.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)}}},W.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),a=this.fields.find({name:r.join("."),scope:n});if(a)return a}return this.fields.find({name:t,scope:null})},W.prototype._handleFieldNotFound=function(t,e){if(!this.strict)return Promise.resolve(!0);var i=c(e)?t:(c(e)?"":e+".")+t;return Promise.reject(m('Validating a non-existent field: "'+i+'". Use "attach()" first.'))},W.prototype._handleValidationResults=function(i){var e=this,t=i.map(function(t){return{id:t.id}});this.errors.removeById(t.map(function(t){return t.id})),i.forEach(function(t){e.errors.remove(t.field,t.scope)});var n=i.reduce(function(t,e){return t.push.apply(t,e.errors),t},[]);this.errors.add(n),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})})},W.prototype._validate=function(i,n){var r=this;if(i.isDisabled||!i.isRequired&&(c(n)||""===n))return Promise.resolve({valid:!0,id:i.id,field:i.name,scope:i.scope,errors:[]});var a=[],s=[],o=!1;return Object.keys(i.rules).some(function(t){var e=r._test(i,n,{name:t,params:i.rules[t]});return y(e.then)?a.push(e):r.fastExit&&!e.valid?(s.push.apply(s,e.errors),o=!0):a.push(new Promise(function(t){return t(e)})),o}),o?Promise.resolve({valid:!1,errors:s,id:i.id,field:i.name,scope:i.scope}):Promise.all(a).then(function(t){return 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:s,id:i.id,field:i.name,scope:i.scope})})},Object.defineProperties(W.prototype,G),Object.defineProperties(W,U);var J=function(t,e){return new W(null,{vm:t,fastExit:e.fastExit})},Q={provide:function(){return this.$validator&&!A(this.$vnode)?{$validator:this.$validator}:{}},beforeCreate:function(){if(!A(this.$vnode)){this.$parent||D.merge(this.$options.$_veeValidate||{});var t=D.resolve(this),e=this.$options._base;(!this.$parent||this.$options.$_veeValidate&&/new/.test(this.$options.$_veeValidate.validator))&&(this.$validator=J(this,t));var i,n=(i=this.$options.inject,!(!g(i)||!i.$validator));this.$validator||!t.inject||n||(this.$validator=J(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(){A(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 Z,tt={bind:function(t,e,i){var n=i.context.$validator;if(n){var r=R.generate(t,e,i);n.attach(r)}},inserted:function(t,e,i){var n=X(t,i.context),r=R.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=R.resolveScope(t,e,i),a=R.resolveRules(t,e,i);n.update({scope:r,rules:a})}},unbind:function(t,e,i){var n=i.context,r=X(t,n);r&&n.$validator.detach(r)}};var et=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},{})},it=function(n,r){return void 0===r&&(r=!0),Object.keys(n).reduce(function(t,e){if(!t)return t=x({},n[e]);var i=0===e.indexOf("$");return r&&i?et(it(n[e]),t):!r&&i?t:t=et(t,n[e])},null)},nt={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={}),!Z||t!==Z){!function(){try{var t=Object.defineProperty({},"passive",{get:function(){s=!0}});window.addEventListener("testPassive",null,t),window.removeEventListener("testPassive",null,t)}catch(t){s=!1}}();var i=new(Z=t);D.register("vm",i),D.merge(e);var n=D.current,r=n.dictionary,a=n.i18n;r&&W.localize(r),a&&a._vm&&y(a._vm.$watch)&&a._vm.$watch("locale",function(){i.$emit("localeChanged")}),!a&&e.locale&&W.localize(e.locale),W.setStrictMode(D.current.strict),Z.mixin(Q),Z.directive("validate",tt)}},use:function(t,e){if(void 0===e&&(e={}),!y(t))return i("The plugin must be a callable function");t({Validator:W,ErrorBag:F,Rules:W.rules},e)},directive:tt,mixin:Q,mapFields:function(t){if(!t)return function(){return it(this.$validator.flags)};var e,a=(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(a).reduce(function(t,n){var r=a[n];return t[n]=function(){if(this.$validator.flags[r])return this.$validator.flags[r];if("*"===a[n])return it(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?it(e):e&&e[i]?e[i]:{}},t},{})},Validator:W,ErrorBag:F,ErrorComponent:nt,version:"2.1.0-beta.1"}});
{
"name": "vee-validate",
"version": "2.1.0-beta.1",
"version": "2.1.0-beta.2",
"description": "Simple Vue.js input validation plugin",

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

"filesize": "^3.6.1",
"flow-bin": "^0.73.0",
"flow-bin": "^0.74.0",
"flush-promises": "^1.0.0",

@@ -67,3 +67,3 @@ "gzip-size": "^4.1.0",

"regenerator-runtime": "^0.11.0",
"rollup": "^0.59.4",
"rollup": "^0.60.1",
"rollup-plugin-buble": "^0.19.2",

@@ -74,4 +74,4 @@ "rollup-plugin-commonjs": "^9.1.3",

"rollup-plugin-replace": "^2.0.0",
"uglify-js": "^3.3.28",
"validator": "^10.2.0",
"uglify-js": "^3.4.0",
"validator": "^10.3.0",
"vue": "^2.5.16",

@@ -81,3 +81,3 @@ "vue-i18n": "^7.8.0",

"vue-template-compiler": "^2.5.16",
"vuepress": "^0.10.0"
"vuepress": "^0.10.1"
},

@@ -84,0 +84,0 @@ "eslintIgnore": [

@@ -64,3 +64,3 @@ import Vue = require("vue")

validity?: boolean;
vm?: any;
vm?: any;
}

@@ -100,3 +100,3 @@

firstByRule(name: string, rule: string, scope?: string): any;
firstRule(field: string, scope: string): string;
firstRule(field: string, scope?: string): string;
has(field: string, scope?: string): boolean;

@@ -165,3 +165,3 @@ remove(field: string, scope?: string): void;

hasTarget?: boolean
};
}

@@ -168,0 +168,0 @@ export const version: string;

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