(function(p){p.extend(p.inputmask.defaults.aliases,{Regex:{mask:"r",greedy:!1,repeat:"*",regex:null,regexTokens:null,tokenizer:/\[\^?]?(?:[^\\\]]+|\\[\S\s]?)*]?|\\(?:0(?:[0-3][0-7]{0,2}|[4-7][0-7]?)?|[1-9][0-9]*|x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4}|c[A-Za-z]|[\S\s]?)|\((?:\?[:=!]?)?|(?:[?*+]|\{[0-9]+(?:,[0-9]*)?\})\??|[^.?*+^${[()|\\]+|./g,quantifierFilter:/[0-9]+[^,]/,isComplete:function(h,m){return RegExp(m.regex).test(h.join(""))},definitions:{r:{validator:function(h,m,p,r,k){function g(d,b){this.matches=
[];this.isGroup=d||!1;this.isQuantifier=b||!1;this.quantifier={min:1,max:1};this.repeaterPart=void 0}function t(){var d=new g,b,a=[];for(k.regexTokens=[];b=k.tokenizer.exec(k.regex);)switch(b=b[0],b.charAt(0)){case "(":a.push(new g(!0));break;case ")":var e=a.pop();0<a.length?a[a.length-1].matches.push(e):d.matches.push(e);break;case "{":case "+":case "*":var c=new g(!1,!0);b=b.replace(/[{}]/g,"");e=b.split(",");b=isNaN(e[0])?e[0]:parseInt(e[0]);e=1==e.length?b:isNaN(e[1])?e[1]:parseInt(e[1]);c.quantifier=
{min:b,max:e};if(0<a.length){var f=a[a.length-1].matches;b=f.pop();b.isGroup||(e=new g(!0),e.matches.push(b),b=e);f.push(b);f.push(c)}else b=d.matches.pop(),b.isGroup||(e=new g(!0),e.matches.push(b),b=e),d.matches.push(b),d.matches.push(c);break;default:0<a.length?a[a.length-1].matches.push(b):d.matches.push(b)}0<d.matches.length&&k.regexTokens.push(d)}function n(g,b){var a=!1;b&&(d+="(",q++);for(var e=0;e<g.matches.length;e++){var c=g.matches[e];if(!0==c.isGroup)a=n(c,!0);else if(!0==c.isQuantifier){var f=
g.matches.indexOf(c),f=g.matches[f-1],h=d;if(isNaN(c.quantifier.max)){for(;c.repeaterPart&&c.repeaterPart!=d&&c.repeaterPart.length>d.length&&!(a=n(f,!0)););(a=a||n(f,!0))&&(c.repeaterPart=d);d=h+c.quantifier.max}else{for(var l=0,k=c.quantifier.max-1;l<k&&!(a=n(f,!0));l++);d=h+"{"+c.quantifier.min+","+c.quantifier.max+"}"}}else if(void 0!=c.matches)for(f=0;f<c.length&&!(a=n(c[f],b));f++);else{if("["==c[0]){a=d;a+=c;for(l=0;l<q;l++)a+=")";a=RegExp("^("+a+")$");a=a.test(s)}else for(f=0,h=c.length;f<
h;f++)if("\\"!=c[f]){a=d;a+=c.substr(0,f+1);a=a.replace(/\|$/,"");for(l=0;l<q;l++)a+=")";a=RegExp("^("+a+")$");if(a=a.test(s))break}d+=c}if(a)break}b&&(d+=")",q--);return a}null==k.regexTokens&&t();r=m.slice();var d="";m=!1;var q=0;r.splice(p,0,h);var s=r.join("");for(h=0;h<k.regexTokens.length&&!(g=k.regexTokens[h],m=n(g,g.isGroup));h++);return m},cardinality:1}}}})})(jQuery);
