update:Me},La={create:De,update:De},Pa={create:Le,update:Le},Ra=c(function(t){vare={},n=/;(?![^(]*\))/g,r=/:(.+)/;returnt.split(n).forEach(function(t){if(t){varn=t.split(r);n.length>1&&(e[n[0].trim()]=n[1].trim())}}),e}),Fa=/^--/,Ua=/\s*!important$/,Va=function(t,e,n){Fa.test(e)?t.style.setProperty(e,n):Ua.test(n)?t.style.setProperty(e,n.replace(Ua,""),"important"):t.style[Ha(e)]=n},Ba=["Webkit","Moz","ms"],Ha=c(function(t){if(pa=pa||document.createElement("div"),t=ci(t),"filter"!==t&&tinpa.style)returnt;for(vare=t.charAt(0).toUpperCase()+t.slice(1),n=0;n<Ba.length;n++){varr=Ba[n]+e;if(rinpa.style)returnr}}),za={create:He,update:He},Ja=_i&&!ki,qa="transition",Ka="animation",Ga="transition",Za="transitionend",Wa="animation",Ya="animationend";Ja&&(void0===window.ontransitionend&&void0!==window.onwebkittransitionend&&(Ga="WebkitTransition",Za="webkitTransitionEnd"),void0===window.onanimationend&&void0!==window.onwebkitanimationend&&(Wa="WebkitAnimation",Ya="webkitAnimationEnd"));varXa=_i&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout,Qa=/\b(transform|all)(,|$)/,to=c(function(t){return{enterClass:t+"-enter",leaveClass:t+"-leave",appearClass:t+"-enter",enterToClass:t+"-enter-to",leaveToClass:t+"-leave-to",appearToClass:t+"-enter-to",enterActiveClass:t+"-enter-active",leaveActiveClass:t+"-leave-active",appearActiveClass:t+"-enter-active"}}),eo=_i?{create:rn,activate:rn,remove:function(t,e){t.data.show?e():tn(t,e)}}:{},no=[Na,Da,La,Pa,za,eo],ro=no.concat(ja),io=we({nodeOps:Oa,modules:ro});ki&&document.addEventListener("selectionchange",function(){vart=document.activeElement;t&&t.vmodel&&un(t,"input")});varao={inserted:function(t,e,n){if("select"===n.tag){varr=function(){an(t,e,n.context)};r(),(xi||$i)&&setTimeout(r,0)}else"textarea"!==n.tag&&"text"!==t.type||(t._vModifiers=e.modifiers,e.modifiers.lazy||(wi||(t.addEventListener("compositionstart",cn),t.addEventListener("compositionend",ln)),ki&&(t.vmodel=!0)))},componentUpdated:function(t,e,n){if("select"===n.tag){an(t,e,n.context);varr=t.multiple?e.value.some(function(e){returnon(e,t.options)}):e.value!==e.oldValue&&on(e.value,t.options);r&&un(t,"change")}}},oo={bind:function(t,e,n){varr=e.value;n=fn(n);vari=n.data&&n.data.transition,a=t.__vOriginalDisplay="none"===t.style.display?"":t.style.display;r&&i&&!ki?(n.data.show=!0,Qe(n,function(){t.style.display=a})):t.style.display=r?a:"none"},update:function(t,e,n){varr=e.value,i=e.oldValue;if(r!==i){n=fn(n);vara=n.data&&n.data.transition;a&&!ki?(n.data.show=!0,r?Qe(n,function(){t.style.display=t.__vOriginalDisplay}):tn(n,function(){t.style.display="none"})):t.style.display=r?t.__vOriginalDisplay:"none"}},unbind:function(t,e,n,r,i){i||(t.style.display=t.__vOriginalDisplay)}},so={model:ao,show:oo},co={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String},lo={name:"transition",props:co,abstract:!0,render:function(t){vare=this,n=this.$slots.default;if(n&&(n=n.filter(function(t){returnt.tag}),n.length)){varr=this.mode,i=n[0];if(vn(this.$vnode))returni;vara=pn(i);if(!a)returni;if(this._leaving)returnhn(t,i);varo="__transition-"+this._uid+"-",c=a.key=null==a.key?o+a.tag:s(a.key)?0===String(a.key).indexOf(o)?a.key:o+a.key:a.key,l=(a.data||(a.data={})).transition=dn(this),u=this._vnode,p=pn(u);if(a.data.directives&&a.data.directives.some(function(t){return"show"===t.name})&&(a.data.show=!0),p&&p.data&&!mn(a,p)){vard=p&&(p.data.transition=f({},l));if("out-in"===r)returnthis._leaving=!0,it(d,"afterLeave",function(){e._leaving=!1,e.$forceUpdate()},c),hn(t,i);if("in-out"===r){varh,v=function(){h()};it(l,"afterEnter",v,c),it(l,"enterCancelled",v,c),it(d,"delayLeave",function(t){h=t},c)}}returni}}},uo=f({tag:String,moveClass:String},co);deleteuo.mode;varfo={props:uo,render:function(t){for(vare=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,i=this.$slots.default||[],a=this.children=[],o=dn(this),s=0;s<i.length;s++){varc=i[s];if(c.tag)if(null!=c.key&&0!==String(c.key).indexOf("__vlist"))a.push(c),n[c.key]=c,(c.data||(c.data={})).transition=o;else;}if(r){for(varl=[],u=[],f=0;f<r.length;f++){varp=r[f];p.data.transition=o,p.data.pos=p.elm.getBoundingClientRect(),n[p.key]?l.push(p):u.push(p)}this.kept=t(e,null,l),this.removed=u}returnt(e,null,a)},beforeUpdate:function(){this.__patch__(this._vnode,this.kept,!1,!0),this._vnode=this.kept},updated:function(){vart=this.prevChildren,e=this.moveClass||(this.name||"v")+"-move";if(t.length&&this.hasMove(t[0].elm,e)){t.forEach(gn),t.forEach(yn),t.forEach(_n);document.body.offsetHeight;t.forEach(function(t){if(t.data.moved){varn=t.elm,r=n.style;Ke(n,e),r.transform=r.WebkitTransform=r.transitionDuration="",n.addEventListener(Za,n._moveCb=functiont(r){r&&!/transform$/.test(r.propertyName)||(n.removeEventListener(Za,t),n._moveCb=null,Ge(n,e))})}})}},methods:{hasMove:function(t,e){if(!Ja)return!1;if(null!=this._hasMove)returnthis._hasMove;Ke(t,e);varn=We(t);returnGe(t,e),this._hasMove=n.hasTransform}}},po={Transition:lo,TransitionGroup:fo};Ht.config.isUnknownElement=ae,Ht.config.isReservedTag=Ca,Ht.config.getTagNamespace=ie,Ht.config.mustUseProp=ha,f(Ht.options.directives,so),f(Ht.options.components,po),Ht.prototype.__patch__=_i?io:v,Ht.prototype.$mount=function(t,e){returnt=t&&_i?oe(t):void0,this._mount(t,e)},setTimeout(function(){mi.devtools&&Oi&&Oi.emit("init",Ht)},0);varho,vo=!!_i&&bn("\n"," "),mo=i("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr",!0),go=i("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source",!0),yo=i("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track",!0),_o=/([^\s"'<>\/=]+)/,bo=/(?:=)/,xo=[/"([^"]*)"+/.source,/'([^']*)'+/.source,/([^\s"'=<>`]+)/.source],ko=newRegExp("^\\s*"+_o.source+"(?:\\s*("+bo.source+")\\s*(?:"+xo.join("|")+"))?"),$o="[a-zA-Z_][\\w\\-\\.]*",wo="((?:"+$o+"\\:)?"+$o+")",Co=newRegExp("^<"+wo),Ao=/^\s*(\/?)>/,Oo=newRegExp("^<\\/"+wo+"[^>]*>"),So=/^<!DOCTYPE [^>]+>/i,Eo=/^<!--/,Io=/^<!\[/,To=!1;"x".replace(/x(.)?/g,function(t,e){To=""===e});varMo,jo,No,Do,Lo,Po,Ro,Fo,Uo,Vo,Bo,Ho,zo,Jo,qo,Ko,Go,Zo,Wo,Yo,Xo,Qo,ts,es,ns,rs=i("script,style",!0),is={},as=/</g,os=/>/g,ss=/ /g,cs=/&/g,ls=/"/g,us=/\{\{((?:.|\n)+?)\}\}/g,fs=/[-.*+?^${}()|[\]\/\\]/g,ps=c(function(t){vare=t[0].replace(fs,"\\$&"),n=t[1].replace(fs,"\\$&");returnnewRegExp(e+"((?:.|\\n)+?)"+n,"g")}),ds=/^v-|^@|^:/,hs=/(.*?)\s+(?:in|of)\s+(.*)/,vs=/\((\{[^}]*\}|[^,]*),([^,]*)(?:,([^,]*))?\)/,ms=/^:|^v-bind:/,gs=/^@|^v-on:/,ys=/:(.*)$/,_s=/\.[^.]+/g,bs=c(xn),xs=/^xmlns:NS\d+/,ks=/^NS\d+:/,$s=c(sr),ws=/^\s*([\w$_]+|\([^)]*?\))\s*=>|^function\s*\(/,Cs=/^\s*[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['.*?']|\[".*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*\s*$/,As={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},Os={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:"if($event.target !== $event.currentTarget)return;",ctrl:"if(!$event.ctrlKey)return;",shift:"if(!$event.shiftKey)return;",alt:"if(!$event.altKey)return;",meta:"if(!$event.metaKey)return;"},Ss={bind:gr,cloak:v},Es=(newRegExp("\\b"+"do,if,for,let,new,try,var,case,else,with,await,break,catch,class,const,super,throw,while,yield,delete,export,import,return,switch,default,extends,finally,continue,debugger,function,arguments".split(",").join("\\b|\\b")+"\\b"),{staticKeys:["staticClass"],transformNode:Vr,genData:Br}),Is={staticKeys:["staticStyle"],transformNode:Hr,genData:zr},Ts=[Es,Is],Ms={model:Jr,text:Yr,html:Xr},js=Object.create(null),Ns={expectHTML:!0,modules:Ts,staticKeys:m(Ts),directives:Ms,isReservedTag:Ca,isUnaryTag:mo,mustUseProp:ha,getTagNamespace:ie,isPreTag:wa},Ds=c(function(t){vare=oe(t);returne&&e.innerHTML}),Ls=Ht.prototype.$mount;Ht.prototype.$mount=function(t,e){if(t=t&&oe(t),t===document.body||t===document.documentElement)returnthis;varn=this.$options;if(!n.render){varr=n.template;if(r)if("string"==typeofr)"#"===r.charAt(0)&&(r=Ds(r));else{if(!r.nodeType)returnthis;r=r.innerHTML}elset&&(r=ni(t));if(r){vari=ti(r,{warn:Ii,shouldDecodeNewlines:vo,delimiters:n.delimiters},this),a=i.render,o=i.staticRenderFns;n.render=a,n.staticRenderFns=o}}returnLs.call(this,t,e)},Ht.compile=ti,t.exports=Ht}).call(e,n(13))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});varr=n(8),i=n.n(r);e.default={name:"app",data:function(){return{date:"",phone:"",userMask:"aa-aa-AAAA",userField:""}},components:{MaskedInput:i.a}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});varr=n(7),i=n.n(r),a=n(4);n.i(a.a)(),e.default={name:"MaskedInput",data:function(){return{firstFocus:!0,marginLeft:0,mask_core:null}},props:{value:{type:String},default:{type:String,default:""},mask:{type:String,required:!0}},watch:{mask:function(t){try{this.mask_core=newi.a({pattern:t,value:this.default})}catch(t){this.mask_core=newi.a({pattern:"B\\ad1M\\ask",value:this.default})}this.update()}},mounted:function(){this.mask_core=newi.a({pattern:this.mask,value:this.default}),this.$refs.input.value=this.default},methods:{getValue:function(){returnthis.$refs.input.value},keyPress:function(t){this.mask_core.input(t.key),this.update()},keyDown:function(t){switch(this.setNativeSelection(),t.keyCode){case8:t.preventDefault(),(this.mask_core.selection.start>this.marginLeft||this.mask_core.selection.start!=this.mask_core.selection.end)&&this.mask_core.backspace();break;case37:t.preventDefault(),this.$refs.input.selectionStart===this.$refs.input.selectionEnd&&this.$refs.input.selectionStart--,this.mask_core.selection={start:this.$refs.input.selectionStart,end:this.$refs.input.selectionStart};break;case39:t.preventDefault(),this.$refs.input.selectionStart===this.$refs.input.selectionEnd&&this.$refs.input.selectionEnd++,this.mask_core.selection={start:this.$refs.input.selectionEnd,end:this.$refs.input.selectionEnd};break;case35:t.preventDefault(),this.$refs.input.selectionStart=this.$refs.input.selectionEnd=this.$refs.input.value.length,this.mask_core.selection={start:this.$refs.input.selectionEnd,end:this.$refs.input.selectionEnd};break;case36:t.preventDefault(),this.$refs.input.selectionStart=this.$refs.input.selectionEnd=0,this.mask_core.selection={start:this.$refs.input.selectionStart,end:this.$refs.input.selectionStart};break;case46:t.preventDefault(),this.$refs.input.selectionStart===this.$refs.input.selectionEnd?this.$refs.input.selectionEnd!==this.mask_core.length&&(this.mask_core.setSelection({start:0,end:this.mask_core.getValue().length}),this.mask_core.backspace(),this.mask_core.setSelection({start:0,end:0}),this.$refs.input.selectionStart=this.mask_core.selection.start,this.$refs.input.selectionEnd=this.mask_core.selection.start):this.mask_core.backspace()}this.update()},cut:function(t){if(t.preventDefault(),this.$refs.input.selectionStart!==this.$refs.input.selectionEnd){this.$refs.input.value.slice(this.$refs.input.selectionStart,this.$refs.input.selectionEnd);try{document.execCommand("copy")}catch(t){}this.mask_core.backspace(),this.update()}},copy:function(t){},paste:function(t){t.preventDefault(),this.mask_core.paste(t.clipboardData.getData("text")),this.update()},update:function(){this.$refs.input.value=this.mask_core.getValue(),this.$refs.input.selectionStart=this.mask_core.selection.start,this.$refs.input.selectionEnd=this.mask_core.selection.end,this.$emit("input",this.$refs.input.value)},focusin:function(t){this.mask_core.setValue(this.value),this.update()},isEmpty:function(){returnthis.mask_core.emptyValue===this.$refs.input.value},focusout:function(t){this.isEmpty()&&(this.$refs.input.value=this.default,this.mask_core.setSelection({start:0,end:0}),this.$emit("input",""))},setNativeSelection:function(){this.mask_core.selection={start:this.$refs.input.selectionStart,end:this.$refs.input.selectionEnd}},mouseUp:function(t){this.$refs.input.value===this.mask_core.emptyValue&&this.$refs.input.selectionStart===this.$refs.input.selectionEnd?(this.mask_core.setSelection({start:0,end:0}),this.$refs.input.selectionStart=this.mask_core.selection.start,this.$refs.input.selectionEnd=this.mask_core.selection.start,this.marginLeft=this.mask_core.selection.start):this.setNativeSelection()}}}},function(t,e,n){"use strict";e.a=function(){functiont(t){vare="focus"===t.type?"focusin":"focusout",n=newCustomEvent(e,{bubbles:!0,cancelable:!1});n.c1Generated=!0,t.target.dispatchEvent(n)}functione(n){n.c1Generated||(r.removeEventListener("focus",t,!0),r.removeEventListener("blur",t,!0),r.removeEventListener("focusin",e,!0),r.removeEventListener("focusout",e,!0)),setTimeout(function(){r.removeEventListener("focusin",e,!0),r.removeEventListener("focusout",e,!0)})}varn=window,r=n.document;void0===n.onfocusin&&(r.addEventListener("focus",t,!0),r.addEventListener("blur",t,!0),r.addEventListener("focusin",e,!0),r.addEventListener("focusout",e,!0))}},function(t,e,n){e=t.exports=n(6)(),e.push([t.i,"@import url(https://fonts.googleapis.com/css?family=Roboto:300,400,500,700,900);",""]),e.push([t.i,"@import url(https://fonts.googleapis.com/css?family=Overpass+Mono:400,700);",""]),e.push([t.i,"body{background-color:#fafafa}#app{max-width:780px;margin:auto;font-family:Roboto,sans-serif;color:#2c3e50}input{font-family:inherit;font-size:inherit;padding:8px 16px;border:none;border-bottom:1px solid #4fc08d;outline:none;margin-right:24px}hr{border:none;border-bottom:1px solid #ddd}h1{font-size:48px;margin:48px 0 8px;font-weight:900}h3{margin:0 0 24px;font-weight:300}h4{margin:36px 0 12px}span{opacity:.5;margin-left:32px}.code{padding:24px;font-family:Overpass Mono,monospace;background-color:#eee;font-size:.95em;font-weight:500;line-height:1.5em}",""])},function(t,e){t.exports=function(){vart=[];returnt.toString=function(){for(vart=[],e=0;e<this.length;e++){varn=this[e];n[2]?t.push("@media "+n[2]+"{"+n[1]+"}"):t.push(n[1])}returnt.join("")},t.i=function(e,n){"string"==typeofe&&(e=[[null,e,""]]);for(varr={},i=0;i<this.length;i++){vara=this[i][0];"number"==typeofa&&(r[a]=!0)}for(i=0;i<e.length;i++){varo=e[i];"number"==typeofo[0]&&r[o[0]]||(n&&!o[2]?o[2]=n:n&&(o[2]="("+o[2]+") and ("+n+")"),t.push(o))}},t}},function(t,e,n){"use strict";functionr(t,e){if(e)for(varn=Object.keys(e),r=0,i=n.length;r<i;r++)t[n[r]]=e[n[r]];returnt}functioni(t){returnr({},t)}functiona(t){vare=i(d);if(t)for(varn=Object.keys(t),r=0,a=n.length;r<a;r++){varo=n[r];null==t[o]?deletee[o]:e[o]=t[o]}returne}functiono(t,e,n,r){returnthisinstanceofo?(this.placeholderChar=n||p,this.formatCharacters=e||d,this.source=t,this.pattern=[],this.length=0,this.firstEditableIndex=null,this.lastEditableIndex=null,this._editableIndices={},this.isRevealingMask=r||!1,voidthis._parse()):newo(t,e,n)}functions(t){if(!(thisinstanceofs))returnnews(t);if(t=r({formatCharacters:null,pattern:null,isRevealingMask:!1,placeholderChar:p,selection:{start:0,end:0},value:""},t),null==t.pattern)thrownewError("InputMask: you must provide a pattern.");if("string"!=typeoft.placeholderChar||t.placeholderChar.length>1)thrownewError("InputMask: placeholderChar should be a single character or an empty string.");this.placeholderChar=t.placeholderChar,this.formatCharacters=a(t.formatCharacters),this.setPattern(t.pattern,{value:t.value,selection:t.selection,isRevealingMask:t.isRevealingMask})}varc="\\",l=/^\d$/,u=/^[A-Za-z]$/,f=/^[\dA-Za-z]$/,p="_",d={"*":{validate:function(t){returnf.test(t)}},1:{validate:function(t){returnl.test(t)}},a:{validate:function(t){returnu.test(t)}},A:{validate:function(t){returnu.test(t)},transform:function(t){returnt.toUpperCase()}},"#":{validate:function(t){returnf.test(t)},transform:function(t){returnt.toUpperCase()}}};o.prototype._parse=function(){for(vart=this.source.split(""),e=0,n=[],r=0,i=t.length;r<i;r++){vara=t[r];if(a===c){if(r===i-1)thrownewError("InputMask: pattern ends with a raw "+c);a=t[++r]}elseainthis.formatCharacters&&(null===this.firstEditableIndex&&(this.firstEditableIndex=e),this.lastEditableIndex=e,this._editableIndices[e]=!0);n.push(a),e++}if(null===this.firstEditableIndex)thrownewError('InputMask: pattern "'+this.source+'" does not contain any editable characters.');this.pattern=n,this.length=n.length},o.prototype.formatValue=function(t){for(vare=newArray(this.length),n=0,r=0,i=this.length;r<i;r++)if(this.isEditableIndex(r)){if(this.isRevealingMask&&t.length<=n&&!this.isValidAtIndex(t[n],r))break;e[r]=t.length>n&&this.isValidAtIndex(t[n],r)?this.transform(t[n],r):this.placeholderChar,n++}elsee[r]=this.pattern[r],t.length>n&&t[n]===this.pattern[r]&&n++;returne},o.prototype.isEditableIndex=function(t){return!!this._editableIndices[t]},o.prototype.isValidAtIndex=function(t,e){returnthis.formatCharacters[this.pattern[e]].validate(t)},o.prototype.transform=function(t,e){varn=this.formatCharacters[this.pattern[e]];return"function"==typeofn.transform?n.transform(t):t},s.prototype.input=function(t){if(this.selection.start===this.selection.end&&this.selection.start===this.pattern.length)return!1;vare=i(this.selection),n=this.getValue(),r=this.selection.start;if(r<this.pattern.firstEditableIndex&&(r=this.pattern.firstEditableIndex),this.pattern.isEditableIndex(r)){if(!this.pattern.isValidAtIndex(t,r))return!1;this.value[r]=this.pattern.transform(t,r)}for(vara=this.selection.end-1;a>r;)this.pattern.isEditableIndex(a)&&(this.value[a]=this.placeholderChar),a--;for(this.selection.start=this.selection.end=r+1;this.pattern.length>this.selection.start&&!this.pattern.isEditableIndex(this.selection.start);)this.selection.start++,this.selection.end++;returnnull!=this._historyIndex&&(this._history.splice(this._historyIndex,this._history.length-this._historyIndex),this._historyIndex=null),("input"!==this._lastOp||e.start!==e.end||null!==this._lastSelection&&e.start!==this._lastSelection.start)&&this._history.push({value:n,selection:e,lastOp:this._lastOp}),this._lastOp="input",this._lastSelection=i(this.selection),!0},s.prototype.backspace=function(){if(0===this.selection.start&&0===this.selection.end)return!1;vart=i(this.selection),e=this.getValue();if(this.selection.start===this.selection.end)this.pattern.isEditableIndex(this.selection.start-1)&&(this.value[this.selection.start-1]=this.placeholderChar),this.selection.start--,this.selection.end--;else{for(varn=this.selection.end-1;n>=this.selection.start;)this.pattern.isEditableIndex(n)&&(this.value[n]=this.placeholderChar),n--;this.selection.end=this.selection.start}returnnull!=this._historyIndex&&this._history.splice(this._historyIndex,this._history.length-this._historyIndex),("backspace"!==this._lastOp||t.start!==t.end||null!==this._lastSelection&&t.start!==this._lastSelection.start)&&this._history.push({value:e,selection:t,lastOp:this._lastOp}),this._lastOp="backspace",this._lastSelection=i(this.selection),!0},s.prototype.paste=function(t){vare={value:this.value.slice(),selection:i(this.selection),_lastOp:this._lastOp,_history:this._history.slice(),_historyIndex:this._historyIndex,_lastSelection:i(this._lastSelection)};if(this.selection.start<this.pattern.firstEditableIndex){for(varn=0,a=this.pattern.firstEditableIndex-this.selection.start;n<a;n++)if(t.charAt(n)!==this.pattern.pattern[n])return!1;t=t.substring(this.pattern.firstEditableIndex-this.selection.start),this.selection.start=this.pattern.firstEditableIndex}for(n=0,a=t.length;n<a&&this.selection.start<=this.pattern.lastEditableIndex;n++){varo=this.input(t.charAt(n));if(!o){if(this.selection.start>0){vars=this.selection.start-1;if(!this.pattern.isEditableIndex(s)&&t.charAt(n)===this.pattern.pattern[s])continue}returnr(this,e),!1}}return!0},s.prototype.undo=function(){if(0===this._history.length||0===this._historyIndex)return!1;vart;if(null==this._historyIndex){this._historyIndex=this._history.length-1,t=this._history[this._historyIndex];vare=this.getValue();t.value===e&&t.selection.start===this.selection.start&&t.selection.end===this.selection.end||this._history.push({value:e,selection:i(this.selection),lastOp:this._lastOp,startUndo:!0})}elset=this._history[--this._historyIndex];returnthis.value=t.value.split(""),this.selection=t.selection,this._lastOp=t.lastOp,!0},s.prototype.redo=function(){if(0===this._history.length||null==this._historyIndex)return!1;vart=this._history[++this._historyIndex];returnthis._historyIndex===this._history.length-1&&(this._historyIndex=null,t.startUndo&&this._history.pop()),this.value=t.value.split(""),this.selection=t.selection,this._lastOp=t.lastOp,!0},s.prototype.setPattern=function(t,e){e=r({selection:{start:0,end:0},value:""},e),this.pattern=newo(t,this.formatCharacters,this.placeholderChar,e.isRevealingMask),this.setValue(e.value),this.emptyValue=this.pattern.formatValue([]).join(""),this.selection=e.selection,this._resetHistory()},s.prototype.setSelection=function(t){if(this.selection=i(t),this.selection.start===this.selection.end){if(this.selection.start<this.pattern.firstEditableIndex)returnthis.selection.start=this.selection.end=this.pattern.firstEditableIndex,!0;for(vare=this.selection.start;e>=this.pattern.firstEditableIndex;){if(this.pattern.isEditableIndex(e-1)&&this.value[e-1]!==this.placeholderChar||e===this.pattern.firstEditableIndex){this.selection.start=this.selection.end=e;break}e--}return!0}return!1},s.prototype.setValue=function(t){null==t&&(t=""),this.value=this.pattern.formatValue(t.split(""))},s.prototype.getValue=function(){returnthis.value.join("")},s.prototype.getRawValue=function(){for(vart=[],e=0;e<this.value.length;e++)this.pattern._editableIndices[e]===!0&&t.push(this.value[e]);returnt.join("")},s.prototype._resetHistory=function(){this._history=[],this._historyIndex=null,this._lastOp=null,this._lastSelection=i(this.selection)},s.Pattern=o,t.exports=s},function(t,e,n){varr,i;r=n(3);vara=n(9);i=r=r||{},"object"!=typeofr.default&&"function"!=typeofr.default||(i=r=r.default),"function"==typeofi&&(i=i.options),i.render=a.render,i.staticRenderFns=a.staticRenderFns,t.exports=r},function(t,e){t.exports={render:function(){vart=this,e=t.$createElement,n=t._self._c||e;returnn("input",{ref:"input",domProps:{value:t.value},on:{keypress:function(e){e.preventDefault(),t.keyPress(arguments[0])},keydown:function(e){t.keyDown(arguments[0])},mouseup:function(e){t.mouseUp(arguments[0])},focus:function(e){e.preventDefault(),t.focusin(arguments[0])},focusout:function(e){t.focusout(arguments[0])},cut:function(e){t.cut(arguments[0])},copy:function(e){t.copy(arguments[0])},paste:function(e){t.paste(arguments[0])}}})},staticRenderFns:[]}},function(t,e){t.exports={render:function(){vart=this,e=t.$createElement,n=t._self._c||e;returnn("div",{attrs:{id:"app"}},[n("h1",[t._v("Vue Masked Input")]),t._v(""),n("h3",[t._v("Dead simple masked input component for Vue.js 2.X")]),t._v(""),n("hr"),t._v(""),n("h4",[t._v("Date: ")]),t._v(""),n("masked-input",{directives:[{name:"model",rawName:"v-model",value:t.date,expression:"date"}],attrs:{mask:"11 / 11 / 1111",placeholder:"Date"},domProps:{value:t.date},on:{input:function(e){t.date=e}}}),n("span",[t._v(t._s(t.date))]),t._v(""),n("p",{staticClass:"code"},[t._v('\n <masked-input v-model="date" mask="11 / 11 / 1111" placeholder="Date" />\n')]),t._v(""),n("h4",[t._v("Phone: ")]),t._v(""),n("masked-input",{directives:[{name:"model",rawName:"v-model",value:t.phone,expression:"phone"}],attrs:{mask:"+\\1 (111) 1111-11",placeholder:"Phone"},domProps:{value:t.phone},on:{input:function(e){t.phone=e}}}),n("span",[t._v(t._s(t.phone))]),t._v(""),n("p",{staticClass:"code"},[t._v('\n <masked-input v-model="phone" mask="+\\1 (111) 1111-11" placeholder="Phone" />\n')]),t._v(""),n("h4",[t._v("Your own mask (hot re-mask available): ")]),t._v(""),n("input",{directives:[{name:"model",rawName:"v-model",value:t.userMask,expression:"userMask"}],attrs:{placeholder:"Mask"},domProps:{value:t._s(t.userMask)},on:{input:function(e){e.target.composing||(t.userMask=e.target.value)}}}),t._v(""),n("masked-input",{directives:[{name:"model",rawName:"v-model",value:t.userField,expression:"userField"}],attrs:{mask:t.userMask,placeholder:"Text"},domProps:{value:t.userField},on:{input:function(e){t.userField=e}}}),n("span",[t._v(t._s(t.userField))]),t._v(""),n("br"),t._v(""),t._m(0)],1)},staticRenderFns:[function(){vart=this,e=t.$createElement,n=t._self._c||e;returnn("h4",[t._v("Check "),n("a",{attrs:{href:"#"}},[t._v("GitHub")]),t._v(" for more")])}]}},function(t,e){functionn(t,e){for(varn=0;n<t.length;n++){varr=t[n],i=u[r.id];if(i){i.refs++;for(vara=0;a<i.parts.length;a++)i.parts[a](r.parts[a]);for(;a<r.parts.length;a++)i.parts.push(s(r.parts[a],e))}else{for(varo=[],a=0;a<r.parts.length;a++)o.push(s(r.parts[a],e));u[r.id]={id:r.id,refs:1,parts:o}}}}functionr(t){for(vare=[],n={},r=0;r<t.length;r++){vari=t[r],a=i[0],o=i[1],s=i[2],c=i[3],l={css:o,media:s,sourceMap:c};n[a]?n[a].parts.push(l):e.push(n[a]={id:a,parts:[l]})}returne}functioni(t,e){varn=d(),r=m[m.length-1];if("top"===t.insertAt)r?r.nextSibling?n.insertBefore(e,r.nextSibling):n.appendChild(e):n.insertBefore(e,n.firstChild),m.push(e);else{if("bottom"!==t.insertAt)thrownewError("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");n.appendChild(e)}}functiona(t){t.parentNode.removeChild(t);vare=m.indexOf(t);e>=0&&m.splice(e,1)}functiono(t){vare=document.createElement("style");returne.type="text/css",i(t,e),e}functions(t,e){varn,r,i;if(e.singleton){vars=v++;n=h||(h=o(e)),r=c.bind(null,n,s,!1),i=c.bind(null,n,s,!0)}elsen=o(e),r=l.bind(null,n),i=function(){a(n)};returnr(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;r(t=e)}elsei()}}functionc(t,e,n,r){vari=n?"":r.css;if(t.styleSheet)t.styleSheet.cssText=g(e,i);else{vara=document.createTextNode(i),o=t.childNodes;o[e]&&t.removeChild(o[e]),o.length?t.insertBefore(a,o[e]):t.appendChild(a)}}functionl(t,e){varn=e.css,r=e.media,i=e.sourceMap;if(r&&t.setAttribute("media",r),i&&(n+="\n/*# sourceURL="+i.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}varu={},f=function(t){vare;returnfunction(){return"undefined"==typeofe&&(e=t.apply(this,arguments)),e}},p=f(function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())}),d=f(function(){returndocument.head||document.getElementsByTagName("head")[0]}),h=null,v=0,m=[];t.exports=function(t,e){if("undefined"!=typeofDEBUG&&DEBUG&&"object"!=typeofdocument)thrownewError("The style-loader cannot be used in a non-browser environment");e=e||{},"undefined"==typeofe.singleton&&(e.singleton=p()),"undefined"==typeofe.insertAt&&(e.insertAt="bottom");vari=r(t);returnn(i,e),function(t){for(vara=[],o=0;o<i.length;o++){vars=i[o],c=u[s.id];c.refs--,a.push(c)}if(t){varl=r(t);n(l,e)}for(varo=0;o<a.length;o++){varc=a[o];if(0===c.refs){for(varf=0;f<c.parts.length;f++)c.parts[f]();deleteu[c.id]}}}};varg=function(){vart=[];returnfunction(e,n){returnt[e]=n,t.filter(Boolean).join("\n")}}()},function(t,e,n){varr=n(5);"string"==typeofr&&(r=[[t.i,r,""]]);n(11)(r,{});r.locals&&(t.exports=r.locals)},function(t,e){varn;n=function(){returnthis}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeofwindow&&(n=window)}t.exports=n},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});varr=n(1),i=n.n(r),a=n(0),o=n.n(a);newi.a({el:"#app",render:function(t){returnt(o.a)}})}]);