=f.length?u.length:f.length,h=d.length>=m.length?d.length:m.length,v="",g=[],b="~";u.length0;){var r=o.pop();["submit","reset"].includes(i)?null!==e.form&&n(e.form).off(i,r):n(e).off(i,r)}delete e.inputmask.events[i]}}}};t.EventRuler=l},219:function(e,t,n){var a=d(n(2394)),i=d(n(5581)),o=d(n(7184)),r=n(8711),s=n(4713);function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n0&&t--,Date.prototype.setMonth.call(this,t)},"month",function(){return Date.prototype.getMonth.call(this)+1}],mm:["0[1-9]|1[012]",function(e){var t=e?parseInt(e):0;return t>0&&t--,Date.prototype.setMonth.call(this,t)},"month",function(){return M(Date.prototype.getMonth.call(this)+1,2)}],mmm:[""],mmmm:[""],yy:["[0-9]{2}",Date.prototype.setFullYear,"year",function(){return M(Date.prototype.getFullYear.call(this),2)}],yyyy:["[0-9]{4}",Date.prototype.setFullYear,"year",function(){return M(Date.prototype.getFullYear.call(this),4)}],h:["[1-9]|1[0-2]",Date.prototype.setHours,"hours",Date.prototype.getHours],hh:["0[1-9]|1[0-2]",Date.prototype.setHours,"hours",function(){return M(Date.prototype.getHours.call(this),2)}],hx:[function(e){return"[0-9]{".concat(e,"}")},Date.prototype.setHours,"hours",function(e){return Date.prototype.getHours}],H:["1?[0-9]|2[0-3]",Date.prototype.setHours,"hours",Date.prototype.getHours],HH:["0[0-9]|1[0-9]|2[0-3]",Date.prototype.setHours,"hours",function(){return M(Date.prototype.getHours.call(this),2)}],Hx:[function(e){return"[0-9]{".concat(e,"}")},Date.prototype.setHours,"hours",function(e){return function(){return M(Date.prototype.getHours.call(this),e)}}],M:["[1-5]?[0-9]",Date.prototype.setMinutes,"minutes",Date.prototype.getMinutes],MM:["0[0-9]|1[0-9]|2[0-9]|3[0-9]|4[0-9]|5[0-9]",Date.prototype.setMinutes,"minutes",function(){return M(Date.prototype.getMinutes.call(this),2)}],s:["[1-5]?[0-9]",Date.prototype.setSeconds,"seconds",Date.prototype.getSeconds],ss:["0[0-9]|1[0-9]|2[0-9]|3[0-9]|4[0-9]|5[0-9]",Date.prototype.setSeconds,"seconds",function(){return M(Date.prototype.getSeconds.call(this),2)}],l:["[0-9]{3}",Date.prototype.setMilliseconds,"milliseconds",function(){return M(Date.prototype.getMilliseconds.call(this),3)}],L:["[0-9]{2}",Date.prototype.setMilliseconds,"milliseconds",function(){return M(Date.prototype.getMilliseconds.call(this),2)}],t:["[ap]",b,"ampm",k,1],tt:["[ap]m",b,"ampm",k,2],T:["[AP]",b,"ampm",k,1],TT:["[AP]M",b,"ampm",k,2],Z:[".*",void 0,"Z",function(){var e=this.toString().match(/\((.+)\)/)[1];return e.includes(" ")&&(e=(e=e.replace("-"," ").toUpperCase()).split(" ").map((function(e){return function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,i,o=[],r=!0,s=!1;try{for(n=n.call(e);!(r=(a=n.next()).done)&&(o.push(a.value),!t||o.length!==t);r=!0);}catch(e){s=!0,i=e}finally{try{r||null==n.return||n.return()}finally{if(s)throw i}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e,1)[0]})).join("")),e}],o:[""],S:[""]},g={isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:ss",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'"};function b(e){var t=this.getHours();e.toLowerCase().includes("p")?this.setHours(t+12):e.toLowerCase().includes("a")&&t>=12&&this.setHours(t-12)}function k(){var e=this.getHours();return(e=e||12)>=12?"PM":"AM"}function y(e){var t=new RegExp("\\d+$").exec(e[0]);if(t&&void 0!==t[0]){var n=v[e[0][0]+"x"].slice("");return n[0]=n[0](t[0]),n[3]=n[3](t[0]),n}if(v[e[0]])return v[e[0]]}function x(e){if(!e.tokenizer){var t=[],n=[];for(var a in v)if(/\.*x$/.test(a)){var i=a[0]+"\\d+";-1===n.indexOf(i)&&n.push(i)}else-1===t.indexOf(a[0])&&t.push(a[0]);e.tokenizer="("+(n.length>0?n.join("|")+"|":"")+t.join("+|")+")+?|.",e.tokenizer=new RegExp(e.tokenizer,"g")}return e.tokenizer}function w(e,t,n){if(!h)return!0;if(void 0===e.rawday||!isFinite(e.rawday)&&new Date(e.date.getFullYear(),isFinite(e.rawmonth)?e.month:e.date.getMonth()+1,0).getDate()>=e.day||"29"==e.day&&(!isFinite(e.rawyear)||void 0===e.rawyear||""===e.rawyear)||new Date(e.date.getFullYear(),isFinite(e.rawmonth)?e.month:e.date.getMonth()+1,0).getDate()>=e.day)return t;if("29"==e.day){var a=P(t.pos,n);if("yyyy"===a.targetMatch[0]&&t.pos-a.targetMatchIndex==2)return t.remove=t.pos+1,t}else if("02"==e.month&&"30"==e.day&&void 0!==t.c)return e.day="03",e.date.setDate(3),e.date.setMonth(1),t.insert=[{pos:t.pos,c:"0"},{pos:t.pos+1,c:t.c}],t.caret=r.seekNext.call(this,t.pos+1),t;return!1}function _(e,t,n,a){var i,r,s="";for(x(n).lastIndex=0;i=x(n).exec(e);)if(void 0===t)if(r=y(i))s+="("+r[0]+")";else switch(i[0]){case"[":s+="(";break;case"]":s+=")?";break;default:s+=(0,o.default)(i[0])}else(r=y(i))?!0!==a&&r[3]?s+=r[3].call(t.date):r[2]?s+=t["raw"+r[2]]:s+=i[0]:s+=i[0];return s}function M(e,t,n){for(e=String(e),t=t||2;e.length=e+1){n=a,a=x(t).exec(t.inputFormat);break}}return{targetMatchIndex:i-o,nextMatch:a,targetMatch:n}}a.default.extendAliases({datetime:{mask:function(e){return e.numericInput=!1,v.S=e.i18n.ordinalSuffix.join("|"),e.inputFormat=g[e.inputFormat]||e.inputFormat,e.displayFormat=g[e.displayFormat]||e.displayFormat||e.inputFormat,e.outputFormat=g[e.outputFormat]||e.outputFormat||e.inputFormat,e.placeholder=""!==e.placeholder?e.placeholder:e.inputFormat.replace(/[[\]]/,""),e.regex=_(e.inputFormat,void 0,e),e.min=S(e.min,e.inputFormat,e),e.max=S(e.max,e.inputFormat,e),null},placeholder:"",inputFormat:"isoDateTime",displayFormat:null,outputFormat:null,min:null,max:null,skipOptionalPartCharacter:"",i18n:{dayNames:["Mon","Tue","Wed","Thu","Fri","Sat","Sun","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"],ordinalSuffix:["st","nd","rd","th"]},preValidation:function(e,t,n,a,i,o,r,s){if(s)return!0;if(isNaN(n)&&e[t]!==n){var l=P(t,i);if(l.nextMatch&&l.nextMatch[0]===n&&l.targetMatch[0].length>1){var c=v[l.targetMatch[0]][0];if(new RegExp(c).test("0"+e[t-1]))return e[t]=e[t-1],e[t-1]="0",{fuzzy:!0,buffer:e,refreshFromBuffer:{start:t-1,end:t+1},pos:t+1}}}return!0},postValidation:function(e,t,n,a,i,o,r,l){var c,u;if(r)return!0;if(!1===a&&(((c=P(t+1,i)).targetMatch&&c.targetMatchIndex===t&&c.targetMatch[0].length>1&&void 0!==v[c.targetMatch[0]]||(c=P(t+2,i)).targetMatch&&c.targetMatchIndex===t+1&&c.targetMatch[0].length>1&&void 0!==v[c.targetMatch[0]])&&(u=v[c.targetMatch[0]][0]),void 0!==u&&(void 0!==o.validPositions[t+1]&&new RegExp(u).test(n+"0")?(e[t]=n,e[t+1]="0",a={pos:t+2,caret:t}):new RegExp(u).test("0"+n)&&(e[t]="0",e[t+1]=n,a={pos:t+2})),!1===a))return a;if(a.fuzzy&&(e=a.buffer,t=a.pos),(c=P(t,i)).targetMatch&&c.targetMatch[0]&&void 0!==v[c.targetMatch[0]]){var d=v[c.targetMatch[0]];u=d[0];var f=e.slice(c.targetMatchIndex,c.targetMatchIndex+c.targetMatch[0].length);if(!1===new RegExp(u).test(f.join(""))&&2===c.targetMatch[0].length&&o.validPositions[c.targetMatchIndex]&&o.validPositions[c.targetMatchIndex+1]&&(o.validPositions[c.targetMatchIndex+1].input="0"),"year"==d[2])for(var m=s.getMaskTemplate.call(this,!1,1,void 0,!0),h=t+1;h=s.getTime())&&(e.date.setFullYear(p),e.year=a,t.insert=[{pos:t.pos+1,c:r[0]},{pos:t.pos+2,c:r[1]}])}}return t}(b,g,i)),g=function(e,t,n,a){if(!t)return t;if(t&&n.min&&n.min.date.getTime()==n.min.date.getTime()){var i;for(e.reset(),x(n).lastIndex=0;i=x(n).exec(n.inputFormat);){var o;if((o=y(i))&&o[3]){for(var r=o[1],s=e[o[2]],l=n.min[o[2]],c=n.max?n.max[o[2]]:l,u=[],d=!1,f=0;fl[f]):(u[f]=l[f],"year"===o[2]&&s.length-1==f&&l!=c&&(u=(parseInt(u.join(""))+1).toString().split("")),"ampm"===o[2]&&l!=c&&n.min.date.getTime()>e.date.getTime()&&(u[f]=c[f]));r.call(e._date,u.join(""))}}t=n.min.date.getTime()<=e.date.getTime(),e.reInit()}return t&&n.max&&n.max.date.getTime()==n.max.date.getTime()&&(t=n.max.date.getTime()>=e.date.getTime()),t}(b,g=w.call(this,b,g,i),i,o)),void 0!==t&&g&&a.pos!==t?{buffer:_(i.inputFormat,b,i).split(""),refreshFromBuffer:{start:t,end:a.pos},pos:a.caret||a.pos}:g},onKeyDown:function(e,t,n,a){e.ctrlKey&&e.keyCode===i.default.RIGHT&&(this.inputmask._valueSet(D(new Date,a)),f(this).trigger("setvalue"))},onUnMask:function(e,t,n){return t?_(n.outputFormat,S(e,n.inputFormat,n),n,!0):t},casing:function(e,t,n,a){return 0==t.nativeDef.indexOf("[ap]")?e.toLowerCase():0==t.nativeDef.indexOf("[AP]")?e.toUpperCase():e},onBeforeMask:function(e,t){return"[object Date]"===Object.prototype.toString.call(e)&&(e=D(e,t)),e},insertMode:!1,shiftPositions:!1,keepStatic:!1,inputmode:"numeric",prefillYear:!0}})},3851:function(e,t,n){var a,i=(a=n(2394))&&a.__esModule?a:{default:a},o=n(8711),r=n(4713);i.default.extendDefinitions({A:{validator:"[A-Za-zА-яЁёÀ-ÿµ]",casing:"upper"},"&":{validator:"[0-9A-Za-zА-яЁёÀ-ÿµ]",casing:"upper"},"#":{validator:"[0-9A-Fa-f]",casing:"upper"}});var s=new RegExp("25[0-5]|2[0-4][0-9]|[01][0-9][0-9]");function l(e,t,n,a,i){return n-1>-1&&"."!==t.buffer[n-1]?(e=t.buffer[n-1]+e,e=n-2>-1&&"."!==t.buffer[n-2]?t.buffer[n-2]+e:"0"+e):e="00"+e,s.test(e)}i.default.extendAliases({cssunit:{regex:"[+-]?[0-9]+\\.?([0-9]+)?(px|em|rem|ex|%|in|cm|mm|pt|pc)"},url:{regex:"(https?|ftp)://.*",autoUnmask:!1,keepStatic:!1,tabThrough:!0},ip:{mask:"i{1,3}.j{1,3}.k{1,3}.l{1,3}",definitions:{i:{validator:l},j:{validator:l},k:{validator:l},l:{validator:l}},onUnMask:function(e,t,n){return e},inputmode:"decimal",substitutes:{",":"."}},email:{mask:function(e){var t="*{1,64}[.*{1,64}][.*{1,64}][.*{1,63}]@-{1,63}.-{1,63}[.-{1,63}][.-{1,63}]",n=t;if(e.separator)for(var a=0;a0&&t>0&&(!n.digitsOptional||a)){var i=e.indexOf(n.radixPoint),o=!1;n.negationSymbol.back===e[e.length-1]&&(o=!0,e.length--),-1===i&&(e.push(n.radixPoint),i=e.length-1);for(var r=1;r<=t;r++)isFinite(e[i+r])||(e[i+r]="0")}return o&&e.push(n.negationSymbol.back),e}function d(e,t){var n=0;if("+"===e){for(n in t.validPositions);n=r.seekNext.call(this,parseInt(n))}for(var a in t.tests)if((a=parseInt(a))>=n)for(var i=0,o=t.tests[a].length;i1&&(e.placeholder=e.placeholder.charAt(0)),"radixFocus"===e.positionCaretOnClick&&""===e.placeholder&&(e.positionCaretOnClick="lvp");var t="0",n=e.radixPoint;!0===e.numericInput&&void 0===e.__financeInput?(t="1",e.positionCaretOnClick="radixFocus"===e.positionCaretOnClick?"lvp":e.positionCaretOnClick,e.digitsOptional=!1,isNaN(e.digits)&&(e.digits=2),e._radixDance=!1,n=","===e.radixPoint?"?":"!",""!==e.radixPoint&&void 0===e.definitions[n]&&(e.definitions[n]={},e.definitions[n].validator="["+e.radixPoint+"]",e.definitions[n].placeholder=e.radixPoint,e.definitions[n].static=!0,e.definitions[n].generated=!0)):(e.__financeInput=!1,e.numericInput=!0);var a,i="[+]";if(i+=c(e.prefix,e),""!==e.groupSeparator?(void 0===e.definitions[e.groupSeparator]&&(e.definitions[e.groupSeparator]={},e.definitions[e.groupSeparator].validator="["+e.groupSeparator+"]",e.definitions[e.groupSeparator].placeholder=e.groupSeparator,e.definitions[e.groupSeparator].static=!0,e.definitions[e.groupSeparator].generated=!0),i+=e._mask(e)):i+="9{+}",void 0!==e.digits&&0!==e.digits){var r=e.digits.toString().split(",");isFinite(r[0])&&r[1]&&isFinite(r[1])?i+=n+t+"{"+e.digits+"}":(isNaN(e.digits)||parseInt(e.digits)>0)&&(e.digitsOptional||e.jitMasking?(a=i+n+t+"{0,"+e.digits+"}",e.keepStatic=!0):i+=n+t+"{"+e.digits+"}")}else e.inputmode="numeric";return i+=c(e.suffix,e),i+="[-]",a&&(i=[a+c(e.suffix,e)+"[-]",i]),e.greedy=!1,function(e){void 0===e.parseMinMaxOptions&&(null!==e.min&&(e.min=e.min.toString().replace(new RegExp((0,o.default)(e.groupSeparator),"g"),""),","===e.radixPoint&&(e.min=e.min.replace(e.radixPoint,".")),e.min=isFinite(e.min)?parseFloat(e.min):NaN,isNaN(e.min)&&(e.min=Number.MIN_VALUE)),null!==e.max&&(e.max=e.max.toString().replace(new RegExp((0,o.default)(e.groupSeparator),"g"),""),","===e.radixPoint&&(e.max=e.max.replace(e.radixPoint,".")),e.max=isFinite(e.max)?parseFloat(e.max):NaN,isNaN(e.max)&&(e.max=Number.MAX_VALUE)),e.parseMinMaxOptions="done")}(e),""!==e.radixPoint&&(e.substitutes["."==e.radixPoint?",":"."]=e.radixPoint),i},_mask:function(e){return"("+e.groupSeparator+"999){+|1}"},digits:"*",digitsOptional:!0,enforceDigitsOnBlur:!1,radixPoint:".",positionCaretOnClick:"radixFocus",_radixDance:!0,groupSeparator:"",allowMinus:!0,negationSymbol:{front:"-",back:""},prefix:"",suffix:"",min:null,max:null,SetMaxOnOverflow:!1,step:1,inputType:"text",unmaskAsNumber:!1,roundingFN:Math.round,inputmode:"decimal",shortcuts:{k:"1000",m:"1000000"},placeholder:"0",greedy:!1,rightAlign:!0,insertMode:!0,autoUnmask:!1,skipOptionalPartCharacter:"",usePrototypeDefinitions:!1,stripLeadingZeroes:!0,definitions:{0:{validator:m},1:{validator:m,definitionSymbol:"9"},9:{validator:"[0-90-9٠-٩۰-۹]",definitionSymbol:"*"},"+":{validator:function(e,t,n,a,i){return i.allowMinus&&("-"===e||e===i.negationSymbol.front)}},"-":{validator:function(e,t,n,a,i){return i.allowMinus&&e===i.negationSymbol.back}}},preValidation:function(e,t,n,a,i,o,r,s){if(!1!==i.__financeInput&&n===i.radixPoint)return!1;var l=e.indexOf(i.radixPoint),c=t;if(t=function(e,t,n,a,i){return i._radixDance&&i.numericInput&&t!==i.negationSymbol.back&&e<=n&&(n>0||t==i.radixPoint)&&(void 0===a.validPositions[e-1]||a.validPositions[e-1].input!==i.negationSymbol.back)&&(e-=1),e}(t,n,l,o,i),"-"===n||n===i.negationSymbol.front){if(!0!==i.allowMinus)return!1;var u=!1,m=f("+",o),p=f("-",o);return-1!==m&&(u=[m,p]),!1!==u?{remove:u,caret:c-i.negationSymbol.back.length}:{insert:[{pos:d.call(this,"+",o),c:i.negationSymbol.front,fromIsValid:!0},{pos:d.call(this,"-",o),c:i.negationSymbol.back,fromIsValid:void 0}],caret:c+i.negationSymbol.back.length}}if(n===i.groupSeparator)return{caret:c};if(s)return!0;if(-1!==l&&!0===i._radixDance&&!1===a&&n===i.radixPoint&&void 0!==i.digits&&(isNaN(i.digits)||parseInt(i.digits)>0)&&l!==t)return{caret:i._radixDance&&t===l-1?l+1:l};if(!1===i.__financeInput)if(a){if(i.digitsOptional)return{rewritePosition:r.end};if(!i.digitsOptional){if(r.begin>l&&r.end<=l)return n===i.radixPoint?{insert:{pos:l+1,c:"0",fromIsValid:!0},rewritePosition:l}:{rewritePosition:l+1};if(r.begin0&&""===this.__valueGet.call(this.el))return{rewritePosition:l};return{rewritePosition:t}},postValidation:function(e,t,n,a,i,o,r){if(!1===a)return a;if(r)return!0;if(null!==i.min||null!==i.max){var s=i.onUnMask(e.slice().reverse().join(""),void 0,l.extend({},i,{unmaskAsNumber:!0}));if(null!==i.min&&si.min.toString().length||s<0))return!1;if(null!==i.max&&s>i.max)return!!i.SetMaxOnOverflow&&{refreshFromBuffer:!0,buffer:u(i.max.toString().replace(".",i.radixPoint).split(""),i.digits,i).reverse()}}return a},onUnMask:function(e,t,n){if(""===t&&!0===n.nullable)return t;var a=e.replace(n.prefix,"");return a=(a=a.replace(n.suffix,"")).replace(new RegExp((0,o.default)(n.groupSeparator),"g"),""),""!==n.placeholder.charAt(0)&&(a=a.replace(new RegExp(n.placeholder.charAt(0),"g"),"0")),n.unmaskAsNumber?(""!==n.radixPoint&&-1!==a.indexOf(n.radixPoint)&&(a=a.replace(o.default.call(this,n.radixPoint),".")),a=(a=a.replace(new RegExp("^"+(0,o.default)(n.negationSymbol.front)),"-")).replace(new RegExp((0,o.default)(n.negationSymbol.back)+"$"),""),Number(a)):a},isComplete:function(e,t){var n=(t.numericInput?e.slice().reverse():e).join("");return n=(n=(n=(n=(n=n.replace(new RegExp("^"+(0,o.default)(t.negationSymbol.front)),"-")).replace(new RegExp((0,o.default)(t.negationSymbol.back)+"$"),"")).replace(t.prefix,"")).replace(t.suffix,"")).replace(new RegExp((0,o.default)(t.groupSeparator)+"([0-9]{3})","g"),"$1"),","===t.radixPoint&&(n=n.replace((0,o.default)(t.radixPoint),".")),isFinite(n)},onBeforeMask:function(e,t){var n=t.radixPoint||",";isFinite(t.digits)&&(t.digits=parseInt(t.digits)),"number"!=typeof e&&"number"!==t.inputType||""===n||(e=e.toString().replace(".",n));var a="-"===e.charAt(0)||e.charAt(0)===t.negationSymbol.front,i=e.split(n),r=i[0].replace(/[^\-0-9]/g,""),s=i.length>1?i[1].replace(/[^0-9]/g,""):"",l=i.length>1;e=r+(""!==s?n+s:s);var c=0;if(""!==n&&(c=t.digitsOptional?t.digitst.max&&(e=t.max.toString().replace(".",n))}return a&&"-"!==e.charAt(0)&&(e="-"+e),u(e.toString().split(""),c,t,l).join("")},onBeforeWrite:function(e,t,n,a){function i(e,t){if(!1!==a.__financeInput||t){var n=e.indexOf(a.radixPoint);-1!==n&&e.splice(n,1)}if(""!==a.groupSeparator)for(;-1!==(n=e.indexOf(a.groupSeparator));)e.splice(n,1);return e}var r,s;if(a.stripLeadingZeroes&&(s=function(e,t){var n=new RegExp("(^"+(""!==t.negationSymbol.front?(0,o.default)(t.negationSymbol.front)+"?":"")+(0,o.default)(t.prefix)+")(.*)("+(0,o.default)(t.suffix)+(""!=t.negationSymbol.back?(0,o.default)(t.negationSymbol.back)+"?":"")+"$)").exec(e.slice().reverse().join("")),a=n?n[2]:"",i=!1;return a&&(a=a.split(t.radixPoint.charAt(0))[0],i=new RegExp("^[0"+t.groupSeparator+"]*").exec(a)),!(!i||!(i[0].length>1||i[0].length>0&&i[0].length0;f--)delete this.maskset.validPositions[c+f],delete t[c+f];if(e)switch(e.type){case"blur":case"checkval":if(null!==a.min){var m=a.onUnMask(t.slice().reverse().join(""),void 0,l.extend({},a,{unmaskAsNumber:!0}));if(null!==a.min&&m1)return this.inputmask.__valueSet.call(this,parseFloat(this.inputmask.unmaskedvalue())*parseInt(r)),s.trigger("setvalue"),!1;if(e.ctrlKey)switch(e.keyCode){case i.default.UP:return this.inputmask.__valueSet.call(this,parseFloat(this.inputmask.unmaskedvalue())+parseInt(a.step)),s.trigger("setvalue"),!1;case i.default.DOWN:return this.inputmask.__valueSet.call(this,parseFloat(this.inputmask.unmaskedvalue())-parseInt(a.step)),s.trigger("setvalue"),!1}if(!e.shiftKey&&(e.keyCode===i.default.DELETE||e.keyCode===i.default.BACKSPACE||e.keyCode===i.default.BACKSPACE_SAFARI)&&n.begin!==t.length){if(t[e.keyCode===i.default.DELETE?n.begin-1:n.end]===a.negationSymbol.front)return o=t.slice().reverse(),""!==a.negationSymbol.front&&o.shift(),""!==a.negationSymbol.back&&o.pop(),s.trigger("setvalue",[o.join(""),n.begin]),!1;if(!0===a._radixDance){var d=t.indexOf(a.radixPoint);if(a.digitsOptional){if(0===d)return(o=t.slice().reverse()).pop(),s.trigger("setvalue",[o.join(""),n.begin>=o.length?o.length:n.begin]),!1}else if(-1!==d&&(n.begin=o.length?d+1:n.begin]),!1}}}},currency:{prefix:"",groupSeparator:",",alias:"numeric",digits:2,digitsOptional:!1},decimal:{alias:"numeric"},integer:{alias:"numeric",inputmode:"numeric",digits:0},percentage:{alias:"numeric",min:0,max:100,suffix:" %",digits:0,allowMinus:!1},indianns:{alias:"numeric",_mask:function(e){return"("+e.groupSeparator+"99){*|1}("+e.groupSeparator+"999){1|1}"},groupSeparator:",",radixPoint:".",placeholder:"0",digits:2,digitsOptional:!1}})},9380:function(e,t,n){var a;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=((a=n(8741))&&a.__esModule?a:{default:a}).default?window:{};t.default=i},7760:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.HandleNativePlaceholder=function(e,t){var n=e?e.inputmask:this;if(l.ie){if(e.inputmask._valueGet()!==t&&(e.placeholder!==t||""===e.placeholder)){var a=r.getBuffer.call(n).slice(),i=e.inputmask._valueGet();if(i!==t){var o=r.getLastValidPosition.call(n);-1===o&&i===r.getBufferTemplate.call(n).join("")?a=[]:-1!==o&&d.call(n,a),m(e,a)}}}else e.placeholder!==t&&(e.placeholder=t,""===e.placeholder&&e.removeAttribute("placeholder"))},t.applyInputValue=u,t.checkVal=f,t.clearOptionalTail=d,t.unmaskedvalue=function(e){var t=e?e.inputmask:this,n=t.opts,a=t.maskset;if(e){if(void 0===e.inputmask)return e.value;e.inputmask&&e.inputmask.refreshValue&&u(e,e.inputmask._valueGet(!0))}var i=[],o=a.validPositions;for(var s in o)o[s]&&o[s].match&&(1!=o[s].match.static||Array.isArray(a.metadata)&&!0!==o[s].generatedInput)&&i.push(o[s].input);var l=0===i.length?"":(t.isRTL?i.reverse():i).join("");if("function"==typeof n.onUnMask){var c=(t.isRTL?r.getBuffer.call(t).slice().reverse():r.getBuffer.call(t)).join("");l=n.onUnMask.call(t,c,l,n)}return l},t.writeBuffer=m;var a,i=(a=n(5581))&&a.__esModule?a:{default:a},o=n(4713),r=n(8711),s=n(7215),l=n(9845),c=n(6030);function u(e,t){var n=e?e.inputmask:this,a=n.opts;e.inputmask.refreshValue=!1,"function"==typeof a.onBeforeMask&&(t=a.onBeforeMask.call(n,t,a)||t),f(e,!0,!1,t=t.toString().split("")),n.undoValue=n._valueGet(!0),(a.clearMaskOnLostFocus||a.clearIncomplete)&&e.inputmask._valueGet()===r.getBufferTemplate.call(n).join("")&&-1===r.getLastValidPosition.call(n)&&e.inputmask._valueSet("")}function d(e){e.length=0;for(var t,n=o.getMaskTemplate.call(this,!0,0,!0,void 0,!0);void 0!==(t=n.shift());)e.push(t);return e}function f(e,t,n,a,i){var l=e?e.inputmask:this,u=l.maskset,d=l.opts,f=l.dependencyLib,p=a.slice(),h="",v=-1,g=void 0,b=d.skipOptionalPartCharacter;d.skipOptionalPartCharacter="",r.resetMaskSet.call(l),u.tests={},v=d.radixPoint?r.determineNewCaretPosition.call(l,{begin:0,end:0},!1,!1===d.__financeInput?"radixFocus":void 0).begin:0,u.p=v,l.caretPos={begin:v};var k=[],y=l.caretPos;if(p.forEach((function(e,t){if(void 0!==e){var a=new f.Event("_checkval");a.keyCode=e.toString().charCodeAt(0),h+=e;var i=r.getLastValidPosition.call(l,void 0,!0);!function(e,t){for(var n=o.getMaskTemplate.call(l,!0,0).slice(e,r.seekNext.call(l,e,!1,!1)).join("").replace(/'/g,""),a=n.indexOf(t);a>0&&" "===n[a-1];)a--;var i=0===a&&!r.isMask.call(l,e)&&(o.getTest.call(l,e).match.nativeDef===t.charAt(0)||!0===o.getTest.call(l,e).match.static&&o.getTest.call(l,e).match.nativeDef==="'"+t.charAt(0)||" "===o.getTest.call(l,e).match.nativeDef&&(o.getTest.call(l,e+1).match.nativeDef===t.charAt(0)||!0===o.getTest.call(l,e+1).match.static&&o.getTest.call(l,e+1).match.nativeDef==="'"+t.charAt(0)));if(!i&&a>0&&!r.isMask.call(l,e,!1,!0)){var s=r.seekNext.call(l,e);l.caretPos.begin0){var x,w,_=r.seekNext.call(l,-1,void 0,!1);if(!s.isComplete.call(l,r.getBuffer.call(l))&&k.length<=_||s.isComplete.call(l,r.getBuffer.call(l))&&k.length>0&&k.length!==_&&0===k[0])for(var M=_;void 0!==(x=k.shift());){var S=new f.Event("_checkval");if((w=u.validPositions[x]).generatedInput=!0,S.keyCode=w.input.charCodeAt(0),(g=c.EventHandlers.keypressEvent.call(l,S,!0,!1,n,M))&&void 0!==g.pos&&g.pos!==x&&u.validPositions[g.pos]&&!0===u.validPositions[g.pos].match.static)k.push(g.pos);else if(!g)break;M++}}t&&m.call(l,e,r.getBuffer.call(l),g?g.forwardPosition:l.caretPos.begin,i||new f.Event("checkval"),i&&("input"===i.type&&l.undoValue!==r.getBuffer.call(l).join("")||"paste"===i.type)),d.skipOptionalPartCharacter=b}function m(e,t,n,a,o){var l=e?e.inputmask:this,c=l.opts,u=l.dependencyLib;if(a&&"function"==typeof c.onBeforeWrite){var d=c.onBeforeWrite.call(l,a,t,n,c);if(d){if(d.refreshFromBuffer){var f=d.refreshFromBuffer;s.refreshFromBuffer.call(l,!0===f?f:f.start,f.end,d.buffer||t),t=r.getBuffer.call(l,!0)}void 0!==n&&(n=void 0!==d.caret?d.caret:n)}}if(void 0!==e&&(e.inputmask._valueSet(t.join("")),void 0===n||void 0!==a&&"blur"===a.type||r.caret.call(l,e,n,void 0,void 0,void 0!==a&&"keydown"===a.type&&(a.keyCode===i.default.DELETE||a.keyCode===i.default.BACKSPACE)),!0===o)){var m=u(e),p=e.inputmask._valueGet();e.inputmask.skipInputEvent=!0,m.trigger("input"),setTimeout((function(){p===r.getBufferTemplate.call(l).join("")?m.trigger("cleared"):!0===s.isComplete.call(l,t)&&m.trigger("complete")}),0)}}},2394:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(7149),n(3194);var a=n(157),i=v(n(3287)),o=v(n(9380)),r=n(2391),s=n(4713),l=n(8711),c=n(7215),u=n(7760),d=n(9716),f=v(n(7392)),m=v(n(3976)),p=v(n(8741));function h(e){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h(e)}function v(e){return e&&e.__esModule?e:{default:e}}var g=o.default.document,b="_inputmask_opts";function k(e,t,n){if(p.default){if(!(this instanceof k))return new k(e,t,n);this.dependencyLib=i.default,this.el=void 0,this.events={},this.maskset=void 0,!0!==n&&("[object Object]"===Object.prototype.toString.call(e)?t=e:(t=t||{},e&&(t.alias=e)),this.opts=i.default.extend(!0,{},this.defaults,t),this.noMasksCache=t&&void 0!==t.definitions,this.userOptions=t||{},y(this.opts.alias,t,this.opts)),this.refreshValue=!1,this.undoValue=void 0,this.$el=void 0,this.skipKeyPressEvent=!1,this.skipInputEvent=!1,this.validationEvent=!1,this.ignorable=!1,this.maxLength,this.mouseEnter=!1,this.originalPlaceholder=void 0,this.isComposing=!1}}function y(e,t,n){var a=k.prototype.aliases[e];return a?(a.alias&&y(a.alias,void 0,n),i.default.extend(!0,n,a),i.default.extend(!0,n,t),!0):(null===n.mask&&(n.mask=e),!1)}k.prototype={dataAttribute:"data-inputmask",defaults:m.default,definitions:f.default,aliases:{},masksCache:{},get isRTL(){return this.opts.isRTL||this.opts.numericInput},mask:function(e){var t=this;return"string"==typeof e&&(e=g.getElementById(e)||g.querySelectorAll(e)),(e=e.nodeName?[e]:Array.isArray(e)?e:Array.from(e)).forEach((function(e,n){var s=i.default.extend(!0,{},t.opts);if(function(e,t,n,a){function r(t,i){var r=""===a?t:a+"-"+t;null!==(i=void 0!==i?i:e.getAttribute(r))&&("string"==typeof i&&(0===t.indexOf("on")?i=o.default[i]:"false"===i?i=!1:"true"===i&&(i=!0)),n[t]=i)}if(!0===t.importDataAttributes){var s,l,c,u,d=e.getAttribute(a);if(d&&""!==d&&(d=d.replace(/'/g,'"'),l=JSON.parse("{"+d+"}")),l)for(u in c=void 0,l)if("alias"===u.toLowerCase()){c=l[u];break}for(s in r("alias",c),n.alias&&y(n.alias,n,t),t){if(l)for(u in c=void 0,l)if(u.toLowerCase()===s.toLowerCase()){c=l[u];break}r(s,c)}}return i.default.extend(!0,t,n),("rtl"===e.dir||t.rightAlign)&&(e.style.textAlign="right"),("rtl"===e.dir||t.numericInput)&&(e.dir="ltr",e.removeAttribute("dir"),t.isRTL=!0),Object.keys(n).length}(e,s,i.default.extend(!0,{},t.userOptions),t.dataAttribute)){var l=(0,r.generateMaskSet)(s,t.noMasksCache);void 0!==l&&(void 0!==e.inputmask&&(e.inputmask.opts.autoUnmask=!0,e.inputmask.remove()),e.inputmask=new k(void 0,void 0,!0),e.inputmask.opts=s,e.inputmask.noMasksCache=t.noMasksCache,e.inputmask.userOptions=i.default.extend(!0,{},t.userOptions),e.inputmask.el=e,e.inputmask.$el=(0,i.default)(e),e.inputmask.maskset=l,i.default.data(e,b,t.userOptions),a.mask.call(e.inputmask))}})),e&&e[0]&&e[0].inputmask||this},option:function(e,t){return"string"==typeof e?this.opts[e]:"object"===h(e)?(i.default.extend(this.userOptions,e),this.el&&!0!==t&&this.mask(this.el),this):void 0},unmaskedvalue:function(e){if(this.maskset=this.maskset||(0,r.generateMaskSet)(this.opts,this.noMasksCache),void 0===this.el||void 0!==e){var t=("function"==typeof this.opts.onBeforeMask&&this.opts.onBeforeMask.call(this,e,this.opts)||e).split("");u.checkVal.call(this,void 0,!1,!1,t),"function"==typeof this.opts.onBeforeWrite&&this.opts.onBeforeWrite.call(this,void 0,l.getBuffer.call(this),0,this.opts)}return u.unmaskedvalue.call(this,this.el)},remove:function(){if(this.el){i.default.data(this.el,b,null);var e=this.opts.autoUnmask?(0,u.unmaskedvalue)(this.el):this._valueGet(this.opts.autoUnmask);e!==l.getBufferTemplate.call(this).join("")?this._valueSet(e,this.opts.autoUnmask):this._valueSet(""),d.EventRuler.off(this.el),Object.getOwnPropertyDescriptor&&Object.getPrototypeOf?Object.getOwnPropertyDescriptor(Object.getPrototypeOf(this.el),"value")&&this.__valueGet&&Object.defineProperty(this.el,"value",{get:this.__valueGet,set:this.__valueSet,configurable:!0}):g.__lookupGetter__&&this.el.__lookupGetter__("value")&&this.__valueGet&&(this.el.__defineGetter__("value",this.__valueGet),this.el.__defineSetter__("value",this.__valueSet)),this.el.inputmask=void 0}return this.el},getemptymask:function(){return this.maskset=this.maskset||(0,r.generateMaskSet)(this.opts,this.noMasksCache),l.getBufferTemplate.call(this).join("")},hasMaskedValue:function(){return!this.opts.autoUnmask},isComplete:function(){return this.maskset=this.maskset||(0,r.generateMaskSet)(this.opts,this.noMasksCache),c.isComplete.call(this,l.getBuffer.call(this))},getmetadata:function(){if(this.maskset=this.maskset||(0,r.generateMaskSet)(this.opts,this.noMasksCache),Array.isArray(this.maskset.metadata)){var e=s.getMaskTemplate.call(this,!0,0,!1).join("");return this.maskset.metadata.forEach((function(t){return t.mask!==e||(e=t,!1)})),e}return this.maskset.metadata},isValid:function(e){if(this.maskset=this.maskset||(0,r.generateMaskSet)(this.opts,this.noMasksCache),e){var t=("function"==typeof this.opts.onBeforeMask&&this.opts.onBeforeMask.call(this,e,this.opts)||e).split("");u.checkVal.call(this,void 0,!0,!1,t)}else e=this.isRTL?l.getBuffer.call(this).slice().reverse().join(""):l.getBuffer.call(this).join("");for(var n=l.getBuffer.call(this),a=l.determineLastRequiredPosition.call(this),i=n.length-1;i>a&&!l.isMask.call(this,i);i--);return n.splice(a,i+1-a),c.isComplete.call(this,n)&&e===(this.isRTL?l.getBuffer.call(this).slice().reverse().join(""):l.getBuffer.call(this).join(""))},format:function(e,t){this.maskset=this.maskset||(0,r.generateMaskSet)(this.opts,this.noMasksCache);var n=("function"==typeof this.opts.onBeforeMask&&this.opts.onBeforeMask.call(this,e,this.opts)||e).split("");u.checkVal.call(this,void 0,!0,!1,n);var a=this.isRTL?l.getBuffer.call(this).slice().reverse().join(""):l.getBuffer.call(this).join("");return t?{value:a,metadata:this.getmetadata()}:a},setValue:function(e){this.el&&(0,i.default)(this.el).trigger("setvalue",[e])},analyseMask:r.analyseMask},k.extendDefaults=function(e){i.default.extend(!0,k.prototype.defaults,e)},k.extendDefinitions=function(e){i.default.extend(!0,k.prototype.definitions,e)},k.extendAliases=function(e){i.default.extend(!0,k.prototype.aliases,e)},k.format=function(e,t,n){return k(t).format(e,n)},k.unmask=function(e,t){return k(t).unmaskedvalue(e)},k.isValid=function(e,t){return k(t).isValid(e)},k.remove=function(e){"string"==typeof e&&(e=g.getElementById(e)||g.querySelectorAll(e)),(e=e.nodeName?[e]:e).forEach((function(e){e.inputmask&&e.inputmask.remove()}))},k.setValue=function(e,t){"string"==typeof e&&(e=g.getElementById(e)||g.querySelectorAll(e)),(e=e.nodeName?[e]:e).forEach((function(e){e.inputmask?e.inputmask.setValue(t):(0,i.default)(e).trigger("setvalue",[t])}))},k.dependencyLib=i.default,o.default.Inputmask=k;var x=k;t.default=x},5296:function(e,t,n){function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}var i=m(n(9380)),o=m(n(2394)),r=m(n(8741));function s(e,t){if(t&&("object"===a(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function l(e){var t="function"==typeof Map?new Map:void 0;return l=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,a)}function a(){return c(e,arguments,f(this).constructor)}return a.prototype=Object.create(e.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),d(a,e)},l(e)}function c(e,t,n){return c=u()?Reflect.construct:function(e,t,n){var a=[null];a.push.apply(a,t);var i=new(Function.bind.apply(e,a));return n&&d(i,n.prototype),i},c.apply(null,arguments)}function u(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function d(e,t){return d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},d(e,t)}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}function m(e){return e&&e.__esModule?e:{default:e}}var p=i.default.document;if(r.default&&p&&p.head&&p.head.attachShadow&&i.default.customElements&&void 0===i.default.customElements.get("input-mask")){var h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");Object.defineProperty(e,"prototype",{value:Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),writable:!1}),t&&d(e,t)}(r,e);var t,n,a,i=(t=r,n=u(),function(){var e,a=f(t);if(n){var i=f(this).constructor;e=Reflect.construct(a,arguments,i)}else e=a.apply(this,arguments);return s(this,e)});function r(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r);var t=(e=i.call(this)).getAttributeNames(),n=e.attachShadow({mode:"closed"}),a=p.createElement("input");for(var s in a.type="text",n.appendChild(a),t)Object.prototype.hasOwnProperty.call(t,s)&&a.setAttribute(t[s],e.getAttribute(t[s]));var l=new o.default;return l.dataAttribute="",l.mask(a),a.inputmask.shadowRoot=n,e}return a=r,Object.defineProperty(a,"prototype",{writable:!1}),a}(l(HTMLElement));i.default.customElements.define("input-mask",h)}},443:function(e,t,n){var a=r(n(2047)),i=r(n(2394));function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function r(e){return e&&e.__esModule?e:{default:e}}void 0===a.default.fn.inputmask&&(a.default.fn.inputmask=function(e,t){var n,r=this[0];if(void 0===t&&(t={}),"string"==typeof e)switch(e){case"unmaskedvalue":return r&&r.inputmask?r.inputmask.unmaskedvalue():(0,a.default)(r).val();case"remove":return this.each((function(){this.inputmask&&this.inputmask.remove()}));case"getemptymask":return r&&r.inputmask?r.inputmask.getemptymask():"";case"hasMaskedValue":return!(!r||!r.inputmask)&&r.inputmask.hasMaskedValue();case"isComplete":return!r||!r.inputmask||r.inputmask.isComplete();case"getmetadata":return r&&r.inputmask?r.inputmask.getmetadata():void 0;case"setvalue":i.default.setValue(r,t);break;case"option":if("string"!=typeof t)return this.each((function(){if(void 0!==this.inputmask)return this.inputmask.option(t)}));if(r&&void 0!==r.inputmask)return r.inputmask.option(t);break;default:return t.alias=e,n=new i.default(t),this.each((function(){n.mask(this)}))}else{if(Array.isArray(e))return t.alias=e,n=new i.default(t),this.each((function(){n.mask(this)}));if("object"==o(e))return n=new i.default(e),void 0===e.mask&&void 0===e.alias?this.each((function(){if(void 0!==this.inputmask)return this.inputmask.option(e);n.mask(this)})):this.each((function(){n.mask(this)}));if(void 0===e)return this.each((function(){(n=new i.default(t)).mask(this)}))}})},2391:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.analyseMask=function(e,t,n){var a,r,s,l,c,u,d=/(?:[?*+]|\{[0-9+*]+(?:,[0-9+*]*)?(?:\|[0-9+*]*)?\})|[^.?*+^${[]()|\\]+|./g,f=/\[\^?]?(?:[^\\\]]+|\\[\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,m=!1,p=new i.default,h=[],v=[],g=!1;function b(e,a,i){i=void 0!==i?i:e.matches.length;var r=e.matches[i-1];if(t)0===a.indexOf("[")||m&&/\\d|\\s|\\w/i.test(a)||"."===a?e.matches.splice(i++,0,{fn:new RegExp(a,n.casing?"i":""),static:!1,optionality:!1,newBlockMarker:void 0===r?"master":r.def!==a,casing:null,def:a,placeholder:void 0,nativeDef:a}):(m&&(a=a[a.length-1]),a.split("").forEach((function(t,a){r=e.matches[i-1],e.matches.splice(i++,0,{fn:/[a-z]/i.test(n.staticDefinitionSymbol||t)?new RegExp("["+(n.staticDefinitionSymbol||t)+"]",n.casing?"i":""):null,static:!0,optionality:!1,newBlockMarker:void 0===r?"master":r.def!==t&&!0!==r.static,casing:null,def:n.staticDefinitionSymbol||t,placeholder:void 0!==n.staticDefinitionSymbol?t:void 0,nativeDef:(m?"'":"")+t})}))),m=!1;else{var s=n.definitions&&n.definitions[a]||n.usePrototypeDefinitions&&o.default.prototype.definitions[a];s&&!m?e.matches.splice(i++,0,{fn:s.validator?"string"==typeof s.validator?new RegExp(s.validator,n.casing?"i":""):new function(){this.test=s.validator}:new RegExp("."),static:s.static||!1,optionality:s.optional||!1,newBlockMarker:void 0===r||s.optional?"master":r.def!==(s.definitionSymbol||a),casing:s.casing,def:s.definitionSymbol||a,placeholder:s.placeholder,nativeDef:a,generated:s.generated}):(e.matches.splice(i++,0,{fn:/[a-z]/i.test(n.staticDefinitionSymbol||a)?new RegExp("["+(n.staticDefinitionSymbol||a)+"]",n.casing?"i":""):null,static:!0,optionality:!1,newBlockMarker:void 0===r?"master":r.def!==a&&!0!==r.static,casing:null,def:n.staticDefinitionSymbol||a,placeholder:void 0!==n.staticDefinitionSymbol?a:void 0,nativeDef:(m?"'":"")+a}),m=!1)}}function k(){if(h.length>0){if(b(l=h[h.length-1],r),l.isAlternator){c=h.pop();for(var e=0;e0?(l=h[h.length-1]).matches.push(c):p.matches.push(c)}}else b(p,r)}function y(e){var t=new i.default(!0);return t.openGroup=!1,t.matches=e,t}function x(){if((s=h.pop()).openGroup=!1,void 0!==s)if(h.length>0){if((l=h[h.length-1]).matches.push(s),l.isAlternator){for(var e=(c=h.pop()).matches[0].matches?c.matches[0].matches.length:1,t=0;t0?(l=h[h.length-1]).matches.push(c):p.matches.push(c)}}else p.matches.push(s);else k()}function w(e){var t=e.pop();return t.isQuantifier&&(t=y([e.pop(),t])),t}for(t&&(n.optionalmarker[0]=void 0,n.optionalmarker[1]=void 0);a=t?f.exec(e):d.exec(e);){if(r=a[0],t){switch(r.charAt(0)){case"?":r="{0,1}";break;case"+":case"*":r="{"+r+"}";break;case"|":if(0===h.length){var _=y(p.matches);_.openGroup=!0,h.push(_),p.matches=[],g=!0}}"\\d"===r&&(r="[0-9]")}if(m)k();else switch(r.charAt(0)){case"$":case"^":t||k();break;case n.escapeChar:m=!0,t&&k();break;case n.optionalmarker[1]:case n.groupmarker[1]:x();break;case n.optionalmarker[0]:h.push(new i.default(!1,!0));break;case n.groupmarker[0]:h.push(new i.default(!0));break;case n.quantifiermarker[0]:var M=new i.default(!1,!1,!0),S=(r=r.replace(/[{}?]/g,"")).split("|"),D=S[0].split(","),P=isNaN(D[0])?D[0]:parseInt(D[0]),O=1===D.length?P:isNaN(D[1])?D[1]:parseInt(D[1]),E=isNaN(S[1])?S[1]:parseInt(S[1]);"*"!==P&&"+"!==P||(P="*"===O?0:1),M.quantifier={min:P,max:O,jit:E};var C=h.length>0?h[h.length-1].matches:p.matches;if((a=C.pop()).isAlternator){C.push(a),C=a.matches;var T=new i.default(!0),A=C.pop();C.push(T),C=T.matches,a=A}a.isGroup||(a=y([a])),C.push(a),C.push(M);break;case n.alternatormarker:if(h.length>0){var $=(l=h[h.length-1]).matches[l.matches.length-1];u=l.openGroup&&(void 0===$.matches||!1===$.isGroup&&!1===$.isAlternator)?h.pop():w(l.matches)}else u=w(p.matches);if(u.isAlternator)h.push(u);else if(u.alternatorGroup?(c=h.pop(),u.alternatorGroup=!1):c=new i.default(!1,!1,!1,!0),c.matches.push(u),h.push(c),u.openGroup){u.openGroup=!1;var L=new i.default(!0);L.alternatorGroup=!0,h.push(L)}break;default:k()}}for(g&&x();h.length>0;)s=h.pop(),p.matches.push(s);return p.matches.length>0&&(function e(a){a&&a.matches&&a.matches.forEach((function(i,o){var r=a.matches[o+1];(void 0===r||void 0===r.matches||!1===r.isQuantifier)&&i&&i.isGroup&&(i.isGroup=!1,t||(b(i,n.groupmarker[0],0),!0!==i.openGroup&&b(i,n.groupmarker[1]))),e(i)}))}(p),v.push(p)),(n.numericInput||n.isRTL)&&function e(t){for(var a in t.matches=t.matches.reverse(),t.matches)if(Object.prototype.hasOwnProperty.call(t.matches,a)){var i=parseInt(a);if(t.matches[a].isQuantifier&&t.matches[i+1]&&t.matches[i+1].isGroup){var o=t.matches[a];t.matches.splice(a,1),t.matches.splice(i+1,0,o)}void 0!==t.matches[a].matches?t.matches[a]=e(t.matches[a]):t.matches[a]=((r=t.matches[a])===n.optionalmarker[0]?r=n.optionalmarker[1]:r===n.optionalmarker[1]?r=n.optionalmarker[0]:r===n.groupmarker[0]?r=n.groupmarker[1]:r===n.groupmarker[1]&&(r=n.groupmarker[0]),r)}var r;return t}(v[0]),v},t.generateMaskSet=function(e,t){var n;function i(e,n,i){var r,s,l=!1;if(null!==e&&""!==e||((l=null!==i.regex)?e=(e=i.regex).replace(/^(\^)(.*)(\$)$/,"$2"):(l=!0,e=".*")),1===e.length&&!1===i.greedy&&0!==i.repeat&&(i.placeholder=""),i.repeat>0||"*"===i.repeat||"+"===i.repeat){var c="*"===i.repeat?0:"+"===i.repeat?1:i.repeat;e=i.groupmarker[0]+e+i.groupmarker[1]+i.quantifiermarker[0]+c+","+i.repeat+i.quantifiermarker[1]}return s=l?"regex_"+i.regex:i.numericInput?e.split("").reverse().join(""):e,null!==i.keepStatic&&(s="ks_"+i.keepStatic+s),void 0===o.default.prototype.masksCache[s]||!0===t?(r={mask:e,maskToken:o.default.prototype.analyseMask(e,l,i),validPositions:{},_buffer:void 0,buffer:void 0,tests:{},excludes:{},metadata:n,maskLength:void 0,jitOffset:{}},!0!==t&&(o.default.prototype.masksCache[s]=r,r=a.default.extend(!0,{},o.default.prototype.masksCache[s]))):r=a.default.extend(!0,{},o.default.prototype.masksCache[s]),r}if("function"==typeof e.mask&&(e.mask=e.mask(e)),Array.isArray(e.mask)){if(e.mask.length>1){null===e.keepStatic&&(e.keepStatic=!0);var r=e.groupmarker[0];return(e.isRTL?e.mask.reverse():e.mask).forEach((function(t){r.length>1&&(r+=e.alternatormarker),void 0!==t.mask&&"function"!=typeof t.mask?r+=t.mask:r+=t})),i(r+=e.groupmarker[1],e.mask,e)}e.mask=e.mask.pop()}return n=e.mask&&void 0!==e.mask.mask&&"function"!=typeof e.mask.mask?i(e.mask.mask,e.mask,e):i(e.mask,e.mask,e),null===e.keepStatic&&(e.keepStatic=!1),n};var a=r(n(3287)),i=r(n(9695)),o=r(n(2394));function r(e){return e&&e.__esModule?e:{default:e}}},157:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.mask=function(){var e=this,t=this.opts,n=this.el,a=this.dependencyLib;s.EventRuler.off(n);var d=function(t,n){"textarea"!==t.tagName.toLowerCase()&&n.ignorables.push(i.default.ENTER);var l=t.getAttribute("type"),c="input"===t.tagName.toLowerCase()&&n.supportsInputType.includes(l)||t.isContentEditable||"textarea"===t.tagName.toLowerCase();if(!c)if("input"===t.tagName.toLowerCase()){var u=document.createElement("input");u.setAttribute("type",l),c="text"===u.type,u=null}else c="partial";return!1!==c?function(t){var i,l;function c(){return this.inputmask?this.inputmask.opts.autoUnmask?this.inputmask.unmaskedvalue():-1!==o.getLastValidPosition.call(e)||!0!==n.nullable?(this.inputmask.shadowRoot||this.ownerDocument).activeElement===this&&n.clearMaskOnLostFocus?(e.isRTL?r.clearOptionalTail.call(e,o.getBuffer.call(e).slice()).reverse():r.clearOptionalTail.call(e,o.getBuffer.call(e).slice())).join(""):i.call(this):"":i.call(this)}function u(e){l.call(this,e),this.inputmask&&(0,r.applyInputValue)(this,e)}if(!t.inputmask.__valueGet){if(!0!==n.noValuePatching){if(Object.getOwnPropertyDescriptor){var d=Object.getPrototypeOf?Object.getOwnPropertyDescriptor(Object.getPrototypeOf(t),"value"):void 0;d&&d.get&&d.set?(i=d.get,l=d.set,Object.defineProperty(t,"value",{get:c,set:u,configurable:!0})):"input"!==t.tagName.toLowerCase()&&(i=function(){return this.textContent},l=function(e){this.textContent=e},Object.defineProperty(t,"value",{get:c,set:u,configurable:!0}))}else document.__lookupGetter__&&t.__lookupGetter__("value")&&(i=t.__lookupGetter__("value"),l=t.__lookupSetter__("value"),t.__defineGetter__("value",c),t.__defineSetter__("value",u));t.inputmask.__valueGet=i,t.inputmask.__valueSet=l}t.inputmask._valueGet=function(t){return e.isRTL&&!0!==t?i.call(this.el).split("").reverse().join(""):i.call(this.el)},t.inputmask._valueSet=function(t,n){l.call(this.el,null==t?"":!0!==n&&e.isRTL?t.split("").reverse().join(""):t)},void 0===i&&(i=function(){return this.value},l=function(e){this.value=e},function(t){if(a.valHooks&&(void 0===a.valHooks[t]||!0!==a.valHooks[t].inputmaskpatch)){var i=a.valHooks[t]&&a.valHooks[t].get?a.valHooks[t].get:function(e){return e.value},s=a.valHooks[t]&&a.valHooks[t].set?a.valHooks[t].set:function(e,t){return e.value=t,e};a.valHooks[t]={get:function(t){if(t.inputmask){if(t.inputmask.opts.autoUnmask)return t.inputmask.unmaskedvalue();var a=i(t);return-1!==o.getLastValidPosition.call(e,void 0,void 0,t.inputmask.maskset.validPositions)||!0!==n.nullable?a:""}return i(t)},set:function(e,t){var n=s(e,t);return e.inputmask&&(0,r.applyInputValue)(e,t),n},inputmaskpatch:!0}}}(t.type),function(t){s.EventRuler.on(t,"mouseenter",(function(){var t=this.inputmask._valueGet(!0);t!==(e.isRTL?o.getBuffer.call(e).reverse():o.getBuffer.call(e)).join("")&&(0,r.applyInputValue)(this,t)}))}(t))}}(t):t.inputmask=void 0,c}(n,t);if(!1!==d){e.originalPlaceholder=n.placeholder,e.maxLength=void 0!==n?n.maxLength:void 0,-1===e.maxLength&&(e.maxLength=void 0),"inputMode"in n&&null===n.getAttribute("inputmode")&&(n.inputMode=t.inputmode,n.setAttribute("inputmode",t.inputmode)),!0===d&&(t.showMaskOnFocus=t.showMaskOnFocus&&-1===["cc-number","cc-exp"].indexOf(n.autocomplete),l.iphone&&(t.insertModeVisual=!1),s.EventRuler.on(n,"submit",u.EventHandlers.submitEvent),s.EventRuler.on(n,"reset",u.EventHandlers.resetEvent),s.EventRuler.on(n,"blur",u.EventHandlers.blurEvent),s.EventRuler.on(n,"focus",u.EventHandlers.focusEvent),s.EventRuler.on(n,"invalid",u.EventHandlers.invalidEvent),s.EventRuler.on(n,"click",u.EventHandlers.clickEvent),s.EventRuler.on(n,"mouseleave",u.EventHandlers.mouseleaveEvent),s.EventRuler.on(n,"mouseenter",u.EventHandlers.mouseenterEvent),s.EventRuler.on(n,"paste",u.EventHandlers.pasteEvent),s.EventRuler.on(n,"cut",u.EventHandlers.cutEvent),s.EventRuler.on(n,"complete",t.oncomplete),s.EventRuler.on(n,"incomplete",t.onincomplete),s.EventRuler.on(n,"cleared",t.oncleared),!0!==t.inputEventOnly&&(s.EventRuler.on(n,"keydown",u.EventHandlers.keydownEvent),s.EventRuler.on(n,"keypress",u.EventHandlers.keypressEvent),s.EventRuler.on(n,"keyup",u.EventHandlers.keyupEvent)),(l.mobile||t.inputEventOnly)&&n.removeAttribute("maxLength"),s.EventRuler.on(n,"input",u.EventHandlers.inputFallBackEvent),s.EventRuler.on(n,"compositionend",u.EventHandlers.compositionendEvent)),s.EventRuler.on(n,"setvalue",u.EventHandlers.setValueEvent),o.getBufferTemplate.call(e).join(""),e.undoValue=e._valueGet(!0);var f=(n.inputmask.shadowRoot||n.ownerDocument).activeElement;if(""!==n.inputmask._valueGet(!0)||!1===t.clearMaskOnLostFocus||f===n){(0,r.applyInputValue)(n,n.inputmask._valueGet(!0),t);var m=o.getBuffer.call(e).slice();!1===c.isComplete.call(e,m)&&t.clearIncomplete&&o.resetMaskSet.call(e),t.clearMaskOnLostFocus&&f!==n&&(-1===o.getLastValidPosition.call(e)?m=[]:r.clearOptionalTail.call(e,m)),(!1===t.clearMaskOnLostFocus||t.showMaskOnFocus&&f===n||""!==n.inputmask._valueGet(!0))&&(0,r.writeBuffer)(n,m),f===n&&o.caret.call(e,n,o.seekNext.call(e,o.getLastValidPosition.call(e)))}}};var a,i=(a=n(5581))&&a.__esModule?a:{default:a},o=n(8711),r=n(7760),s=n(9716),l=n(9845),c=n(7215),u=n(6030)},9695:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,a){this.matches=[],this.openGroup=e||!1,this.alternatorGroup=!1,this.isGroup=e||!1,this.isOptional=t||!1,this.isQuantifier=n||!1,this.isAlternator=a||!1,this.quantifier={min:1,max:1}}},3194:function(){Array.prototype.includes||Object.defineProperty(Array.prototype,"includes",{value:function(e,t){if(null==this)throw new TypeError('"this" is null or not defined');var n=Object(this),a=n.length>>>0;if(0===a)return!1;for(var i=0|t,o=Math.max(i>=0?i:a-Math.abs(i),0);oe.scrollWidth?l:0,e.inputmask.caretPos={begin:t,end:n},s.insertModeVisual&&!1===s.insertMode&&t===n&&(i||n++),e===(e.inputmask.shadowRoot||e.ownerDocument).activeElement)if("setSelectionRange"in e)e.setSelectionRange(t,n);else if(window.getSelection){if(o=document.createRange(),void 0===e.firstChild||null===e.firstChild){var u=document.createTextNode("");e.appendChild(u)}o.setStart(e.firstChild,td&&((n=f[t]).match.optionality||n.match.optionalQuantifier&&n.match.newBlockMarker||h&&(h!==f[t].locator[m.alternation]&&1!=n.match.static||!0===n.match.static&&n.locator[m.alternation]&&i.checkAlternationMatch.call(o,n.locator[m.alternation].toString().split(","),h.toString().split(","))&&""!==a.getTests.call(o,t)[0].def))&&c[t]===a.getPlaceholder.call(o,t,n.match);t--)u--;return e?{l:u,def:f[u]?f[u].match:void 0}:u},t.determineNewCaretPosition=function(e,t,n){var i=this,c=this.maskset,u=this.opts;if(t&&(i.isRTL?e.end=e.begin:e.begin=e.end),e.begin===e.end){switch(n=n||u.positionCaretOnClick){case"none":break;case"select":e={begin:0,end:o.call(i).length};break;case"ignore":e.end=e.begin=l.call(i,r.call(i));break;case"radixFocus":if(function(e){if(""!==u.radixPoint&&0!==u.digits){var t=c.validPositions;if(void 0===t[e]||t[e].input===a.getPlaceholder.call(i,e)){if(e=b||f===p)&&(p=b)}e.end=e.begin=p}}return e}},t.getBuffer=o,t.getBufferTemplate=function(){var e=this.maskset;return void 0===e._buffer&&(e._buffer=a.getMaskTemplate.call(this,!1,1),void 0===e.buffer&&(e.buffer=e._buffer.slice())),e._buffer},t.getLastValidPosition=r,t.isMask=s,t.resetMaskSet=function(e){var t=this.maskset;t.buffer=void 0,!0!==e&&(t.validPositions={},t.p=0)},t.seekNext=l,t.seekPrevious=function(e,t){var n=this,i=e-1;if(e<=0)return 0;for(;i>0&&(!0===t&&(!0!==a.getTest.call(n,i).match.newBlockMarker||!s.call(n,i,void 0,!0))||!0!==t&&!s.call(n,i,void 0,!0));)i--;return i},t.translatePosition=c;var a=n(4713),i=n(7215);function o(e){var t=this.maskset;return void 0!==t.buffer&&!0!==e||(t.buffer=a.getMaskTemplate.call(this,!0,r.call(this),!0),void 0===t._buffer&&(t._buffer=t.buffer.slice())),t.buffer}function r(e,t,n){var a=this.maskset,i=-1,o=-1,r=n||a.validPositions;for(var s in void 0===e&&(e=-1),r){var l=parseInt(s);r[l]&&(t||!0!==r[l].generatedInput)&&(l<=e&&(i=l),l>=e&&(o=l))}return-1===i||i==e?o:-1==o||e-i-1){if(n){var s=a.getTests.call(i,e);return s.length>1+(""===s[s.length-1].match.def?1:0)}var l=a.determineTestTemplate.call(i,e,a.getTests.call(i,e)),c=a.getPlaceholder.call(i,e,l.match);return l.match.def!==c}return!1}function l(e,t,n){var i=this;void 0===n&&(n=!0);for(var o=e+1;""!==a.getTest.call(i,o).match.def&&(!0===t&&(!0!==a.getTest.call(i,o).match.newBlockMarker||!s.call(i,o,void 0,!0))||!0!==t&&!s.call(i,o,void 0,n));)o++;return o}function c(e){var t=this.opts,n=this.el;return!this.isRTL||"number"!=typeof e||t.greedy&&""===t.placeholder||!n||(e=Math.abs(this._valueGet().length-e)),e}},4713:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.determineTestTemplate=c,t.getDecisionTaker=r,t.getMaskTemplate=function(e,t,n,a,i){var o=this,r=this.opts,u=this.maskset,d=r.greedy;i&&r.greedy&&(r.greedy=!1,o.maskset.tests={}),t=t||0;var m,p,h,v,g=[],b=0;do{if(!0===e&&u.validPositions[b])p=(h=i&&u.validPositions[b].match.optionality&&void 0===u.validPositions[b+1]&&(!0===u.validPositions[b].generatedInput||u.validPositions[b].input==r.skipOptionalPartCharacter&&b>0)?c.call(o,b,f.call(o,b,m,b-1)):u.validPositions[b]).match,m=h.locator.slice(),g.push(!0===n?h.input:!1===n?p.nativeDef:s.call(o,b,p));else{p=(h=l.call(o,b,m,b-1)).match,m=h.locator.slice();var k=!0!==a&&(!1!==r.jitMasking?r.jitMasking:p.jit);(v=(v&&p.static&&p.def!==r.groupSeparator&&null===p.fn||u.validPositions[b-1]&&p.static&&p.def!==r.groupSeparator&&null===p.fn)&&u.tests[b]&&1===u.tests[b].length)||!1===k||void 0===k||"number"==typeof k&&isFinite(k)&&k>b?g.push(!1===n?p.nativeDef:s.call(o,b,p)):v=!1}b++}while(!0!==p.static||""!==p.def||t>b);return""===g[g.length-1]&&g.pop(),!1===n&&void 0!==u.maskLength||(u.maskLength=b-1),r.greedy=d,g},t.getPlaceholder=s,t.getTest=u,t.getTestTemplate=l,t.getTests=f,t.isSubsetOf=d;var a,i=(a=n(2394))&&a.__esModule?a:{default:a};function o(e,t){var n=(null!=e.alternation?e.mloc[r(e)]:e.locator).join("");if(""!==n)for(;n.length0&&(t=t.split(",")[0]),void 0!==t?t.toString():""}function s(e,t,n){var a=this.opts,i=this.maskset;if(void 0!==(t=t||u.call(this,e).match).placeholder||!0===n)return"function"==typeof t.placeholder?t.placeholder(a):t.placeholder;if(!0===t.static){if(e>-1&&void 0===i.validPositions[e]){var o,r=f.call(this,e),s=[];if(r.length>1+(""===r[r.length-1].match.def?1:0))for(var l=0;l1&&/[0-9a-bA-Z]/.test(s[0].match.def)))return a.placeholder.charAt(e%a.placeholder.length)}return t.def}return a.placeholder.charAt(e%a.placeholder.length)}function l(e,t,n){return this.maskset.validPositions[e]||c.call(this,e,f.call(this,e,t?t.slice():t,n))}function c(e,t){var n=this.opts,a=function(e,t){var n=0,a=!1;return t.forEach((function(e){e.match.optionality&&(0!==n&&n!==e.match.optionality&&(a=!0),(0===n||n>e.match.optionality)&&(n=e.match.optionality))})),n&&(0==e||1==t.length?n=0:a||(n=0)),n}(e,t);e=e>0?e-1:0;var i,r,s,l=o(u.call(this,e));n.greedy&&t.length>1&&""===t[t.length-1].match.def&&t.pop();for(var c=0;c0&&"master"===s.match.newBlockMarker&&(!d.match.optionality||d.match.optionality-a<1||!d.match.newBlockMarker)||s&&!n.greedy&&s.match.optionalQuantifier&&!d.match.optionalQuantifier)&&(r=f,s=d)}return s}function u(e,t){var n=this.maskset;return n.validPositions[e]?n.validPositions[e]:(t||f.call(this,e))[0]}function d(e,t,n){function a(e){for(var t,n=[],a=-1,i=0,o=e.length;it.alternation)for(var i=t.alternation;ie+u._maxTestPos)throw"Inputmask: There is probably an error in your mask definition or in the code. Create an issue on github with an example of the mask you are using. "+l.mask;if(p===e&&void 0===o.matches){if(v.push({match:o,locator:r.reverse(),cd:b,mloc:{}}),!o.optionality||void 0!==c||!(u.definitions&&u.definitions[o.nativeDef]&&u.definitions[o.nativeDef].optional||i.default.prototype.definitions[o.nativeDef]&&i.default.prototype.definitions[o.nativeDef].optional))return!0;g=!0,p=e}else if(void 0!==o.matches){if(o.isGroup&&c!==o){if(o=s(t.matches[t.matches.indexOf(o)+1],r,c))return!0}else if(o.isOptional){var w=o,_=v.length;if(o=k(o,n,r,c)){if(v.forEach((function(e,t){t>=_&&(e.match.optionality=e.match.optionality?e.match.optionality+1:1)})),a=v[v.length-1].match,void 0!==c||!m(a,w))return!0;g=!0,p=e}}else if(o.isAlternator){var M,S=o,D=[],P=v.slice(),O=r.length,E=!1,C=n.length>0?n.shift():-1;if(-1===C||"string"==typeof C){var T,A=p,$=n.slice(),L=[];if("string"==typeof C)L=C.split(",");else for(T=0;T=u.keepStatic)&&(L=L.slice(0,1));for(var R=0;RS.matches[0].matches.length)break;M=v.slice(),p=A,v=[];for(var Y=0;Y0,o=D.length>0,n=$.slice()}else o=s(S.matches[C]||t.matches[C],[C].concat(r),c);if(o)return!0}else if(o.isQuantifier&&c!==t.matches[t.matches.indexOf(o)-1])for(var U=o,z=n.length>0?n.shift():0;z<(isNaN(U.quantifier.max)?z+1:U.quantifier.max)&&p<=e;z++){var K=t.matches[t.matches.indexOf(U)-1];if(o=s(K,[z].concat(r),K)){if((a=v[v.length-1].match).optionalQuantifier=z>=U.quantifier.min,a.jit=(z+1)*(K.matches.indexOf(a)+1)>U.quantifier.jit,a.optionalQuantifier&&m(a,K)){g=!0,p=e;break}return a.jit&&(l.jitOffset[e]=K.matches.length-K.matches.indexOf(a)),!0}}else if(o=k(o,n,r,c))return!0}else p++;var Q,W}for(var c=n.length>0?n.shift():0;ce)break}}if(e>-1){if(void 0===t){for(var y,x=e-1;void 0===(y=l.validPositions[x]||l.tests[x])&&x>-1;)x--;void 0!==y&&x>-1&&(h=function(e,t){var n,a=[];return Array.isArray(t)||(t=[t]),t.length>0&&(void 0===t[0].alternation||!0===u.keepStatic?0===(a=c.call(r,e,t.slice()).locator.slice()).length&&(a=t[0].locator.slice()):t.forEach((function(e){""!==e.def&&(0===a.length?(n=e.alternation,a=e.locator.slice()):e.locator[n]&&-1===a[n].toString().indexOf(e.locator[n])&&(a[n]+=","+e.locator[n]))}))),a}(x,y),b=h.join(""),p=x)}if(l.tests[e]&&l.tests[e][0].cd===b)return l.tests[e];for(var w=h.shift();we);w++);}return(0===v.length||g)&&v.push({match:{fn:null,static:!0,optionality:!1,casing:null,def:"",placeholder:""},locator:[],mloc:{},cd:b}),void 0!==t&&l.tests[e]?o=s.extend(!0,[],v):(l.tests[e]=s.extend(!0,[],v),o=l.tests[e]),v.forEach((function(e){e.match.optionality=!1})),o}},7215:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.alternate=l,t.checkAlternationMatch=function(e,t,n){for(var a,i=this.opts.greedy?t:t.slice(0,1),o=!1,r=void 0!==n?n.split(","):[],s=0;s=r.getBuffer.call(c).length&&p>=n.end&&(n.end=p+1),t===o.default.BACKSPACE?n.end-n.begin<1&&(n.begin=r.seekPrevious.call(c,n.begin)):t===o.default.DELETE&&n.begin===n.end&&(n.end=r.isMask.call(c,n.end,!0,!0)?n.end+1:r.seekNext.call(c,n.end)+1),!1!==(m=v.call(c,n))){if(!0!==a&&!1!==d.keepStatic||null!==d.regex&&-1!==i.getTest.call(c,n.begin).match.def.indexOf("|")){var h=l.call(c,!0);if(h){var g=void 0!==h.caret?h.caret:h.pos?r.seekNext.call(c,h.pos.begin?h.pos.begin:h.pos):r.getLastValidPosition.call(c,-1,!0);(t!==o.default.DELETE||n.begin>g)&&n.begin}}!0!==a&&(u.p=t===o.default.DELETE?n.begin+m:n.begin,u.p=r.determineNewCaretPosition.call(c,{begin:u.p,end:u.p},!1,!1===d.insertMode&&t===o.default.BACKSPACE?"none":void 0).begin)}},t.isComplete=u,t.isSelection=d,t.isValid=f,t.refreshFromBuffer=p,t.revalidateMask=v;var a,i=n(4713),o=(a=n(5581))&&a.__esModule?a:{default:a},r=n(8711),s=n(6030);function l(e,t,n,a,o,s){var c,u,d,m,p,h,v,g,b,k,y,x=this,w=this.dependencyLib,_=this.opts,M=x.maskset,S=w.extend(!0,{},M.validPositions),D=w.extend(!0,{},M.tests),P=!1,O=!1,E=void 0!==o?o:r.getLastValidPosition.call(x);if(s&&(k=s.begin,y=s.end,s.begin>s.end&&(k=s.end,y=s.begin)),-1===E&&void 0===o)c=0,u=(m=i.getTest.call(x,c)).alternation;else for(;E>=0;E--)if((d=M.validPositions[E])&&void 0!==d.alternation){if(m&&m.locator[d.alternation]!==d.locator[d.alternation])break;c=E,u=M.validPositions[c].alternation,m=d}if(void 0!==u){v=parseInt(c),M.excludes[v]=M.excludes[v]||[],!0!==e&&M.excludes[v].push((0,i.getDecisionTaker)(m)+":"+m.alternation);var C=[],T=-1;for(p=v;p=y)&&C.push(h.input),delete M.validPositions[p];for(-1===T&&void 0!==t&&(C.push(t),T=C.length-1);void 0!==M.excludes[v]&&M.excludes[v].length<10;){for(M.tests={},r.resetMaskSet.call(x,!0),P=!0,p=0;pt:e.end-e.begin>t}function f(e,t,n,a,o,s,m){var g=this,b=this.dependencyLib,k=this.opts,y=g.maskset;n=!0===n;var x=e;function w(e){if(void 0!==e){if(void 0!==e.remove&&(Array.isArray(e.remove)||(e.remove=[e.remove]),e.remove.sort((function(e,t){return t.pos-e.pos})).forEach((function(e){v.call(g,{begin:e,end:e+1})})),e.remove=void 0),void 0!==e.insert&&(Array.isArray(e.insert)||(e.insert=[e.insert]),e.insert.sort((function(e,t){return e.pos-t.pos})).forEach((function(e){""!==e.c&&f.call(g,e.pos,e.c,void 0===e.strict||e.strict,void 0!==e.fromIsValid?e.fromIsValid:a)})),e.insert=void 0),e.refreshFromBuffer&&e.buffer){var t=e.refreshFromBuffer;p.call(g,!0===t?t:t.start,t.end,e.buffer),e.refreshFromBuffer=void 0}void 0!==e.rewritePosition&&(x=e.rewritePosition,e=!0)}return e}function _(t,n,o){var s=!1;return i.getTests.call(g,t).every((function(l,u){var f=l.match;if(r.getBuffer.call(g,!0),!1!==(s=(!f.jit||void 0!==y.validPositions[r.seekPrevious.call(g,t)])&&(null!=f.fn?f.fn.test(n,y,t,o,k,d.call(g,e)):(n===f.def||n===k.skipOptionalPartCharacter)&&""!==f.def&&{c:i.getPlaceholder.call(g,t,f,!0)||f.def,pos:t}))){var m=void 0!==s.c?s.c:n,p=t;return m=m===k.skipOptionalPartCharacter&&!0===f.static?i.getPlaceholder.call(g,t,f,!0)||f.def:m,!0!==(s=w(s))&&void 0!==s.pos&&s.pos!==t&&(p=s.pos),!0!==s&&void 0===s.pos&&void 0===s.c||!1===v.call(g,e,b.extend({},l,{input:c.call(g,m,f,p)}),a,p)&&(s=!1),!1}return!0})),s}void 0!==e.begin&&(x=g.isRTL?e.end:e.begin);var M=!0,S=b.extend(!0,{},y.validPositions);if(!1===k.keepStatic&&void 0!==y.excludes[x]&&!0!==o&&!0!==a)for(var D=x;D<(g.isRTL?e.begin:e.end);D++)void 0!==y.excludes[D]&&(y.excludes[D]=void 0,delete y.tests[D]);if("function"==typeof k.preValidation&&!0!==a&&!0!==s&&(M=w(M=k.preValidation.call(g,r.getBuffer.call(g),x,t,d.call(g,e),k,y,e,n||o))),!0===M){if(M=_(x,t,n),(!n||!0===a)&&!1===M&&!0!==s){var P=y.validPositions[x];if(!P||!0!==P.match.static||P.match.def!==t&&t!==k.skipOptionalPartCharacter){if(k.insertMode||void 0===y.validPositions[r.seekNext.call(g,x)]||e.end>x){var O=!1;if(y.jitOffset[x]&&void 0===y.validPositions[r.seekNext.call(g,x)]&&!1!==(M=f.call(g,x+y.jitOffset[x],t,!0,!0))&&(!0!==o&&(M.caret=x),O=!0),e.end>x&&(y.validPositions[x]=void 0),!O&&!r.isMask.call(g,x,k.keepStatic&&0===x))for(var E=x+1,C=r.seekNext.call(g,x,!1,0!==x);E<=C;E++)if(!1!==(M=_(E,t,n))){M=h.call(g,x,void 0!==M.pos?M.pos:E)||M,x=E;break}}}else M={caret:r.seekNext.call(g,x)}}!1!==M||!k.keepStatic||!u.call(g,r.getBuffer.call(g))&&0!==x||n||!0===o?d.call(g,e)&&y.tests[x]&&y.tests[x].length>1&&k.keepStatic&&!n&&!0!==o&&(M=l.call(g,!0)):M=l.call(g,x,t,n,a,void 0,e),!0===M&&(M={pos:x})}if("function"==typeof k.postValidation&&!0!==a&&!0!==s){var T=k.postValidation.call(g,r.getBuffer.call(g,!0),void 0!==e.begin?g.isRTL?e.end:e.begin:e,t,M,k,y,n,m);void 0!==T&&(M=!0===T?M:T)}M&&void 0===M.pos&&(M.pos=x),!1===M||!0===s?(r.resetMaskSet.call(g,!0),y.validPositions=b.extend(!0,{},S)):h.call(g,void 0,x,!0);var A=w(M);return void 0!==g.maxLength&&r.getBuffer.call(g).length>g.maxLength&&!a&&(r.resetMaskSet.call(g,!0),y.validPositions=b.extend(!0,{},S),A=!1),A}function m(e,t,n){for(var a=this.maskset,o=!1,r=i.getTests.call(this,e),s=0;s0&&!o.validPositions[e];e--);for(var l=e;le+1?t[e+1]&&!0===t[e+1].match.static&&t[e+1]:t[e+1];return i&&o}return!1}var d=0,p=void 0!==e.begin?e.begin:e,h=void 0!==e.end?e.end:e,v=!0;if(e.begin>e.end&&(p=e.end,h=e.begin),a=void 0!==a?a:p,p!==h||l.insertMode&&void 0!==s.validPositions[a]&&void 0===n||void 0===t||t.match.optionalQuantifier||t.match.optionality){var g,b=c.extend(!0,{},s.validPositions),k=r.getLastValidPosition.call(o,void 0,!0);for(s.p=p,g=k;g>=p;g--)delete s.validPositions[g],void 0===t&&delete s.tests[g+1];var y,x,w=a,_=w;for(t&&(s.validPositions[a]=c.extend(!0,{},t),_++,w++),g=t?h:h-1;g<=k;g++){if(void 0!==(y=b[g])&&!0!==y.generatedInput&&(g>=h||g>=p&&u(g,b,{begin:p,end:h}))){for(;""!==i.getTest.call(o,_).match.def;){if(!1!==(x=m.call(o,_,y,l))||"+"===y.match.def){"+"===y.match.def&&r.getBuffer.call(o,!0);var M=f.call(o,_,y.input,"+"!==y.match.def,!0);if(v=!1!==M,w=(M.pos||_)+1,!v&&x)break}else v=!1;if(v){void 0===t&&y.match.static&&g===e.begin&&d++;break}if(!v&&r.getBuffer.call(o),_>s.maskLength)break;_++}""==i.getTest.call(o,_).match.def&&(v=!1),_=w}if(!v)break}if(!v)return s.validPositions=c.extend(!0,{},b),r.resetMaskSet.call(o,!0),!1}else t&&i.getTest.call(o,a).match.cd===t.match.cd&&(s.validPositions[a]=c.extend(!0,{},t));return r.resetMaskSet.call(o,!0),d}},2047:function(t){t.exports=e},5581:function(e){e.exports=JSON.parse('{"BACKSPACE":8,"BACKSPACE_SAFARI":127,"DELETE":46,"DOWN":40,"END":35,"ENTER":13,"ESCAPE":27,"HOME":36,"INSERT":45,"LEFT":37,"PAGE_DOWN":34,"PAGE_UP":33,"RIGHT":39,"SPACE":32,"TAB":9,"UP":38,"X":88,"Z":90,"CONTROL":17,"PAUSE/BREAK":19,"WINDOWS_LEFT":91,"WINDOWS_RIGHT":92,"KEY_229":229}')}},n={};function a(e){var i=n[e];if(void 0!==i)return i.exports;var o=n[e]={exports:{}};return t[e](o,o.exports,a),o.exports}var i={};return function(){var e=i;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t,n=(t=a(3046))&&t.__esModule?t:{default:t};a(443);var o=n.default;e.default=o}(),i}()})),function(e){"use strict";function t(e,t){var n="";return e.indexOf("-")>-1&&(e=e.replace("-",""),n="-"),e.indexOf(t.prefix)>-1&&(e=e.replace(t.prefix,"")),e.indexOf(t.suffix)>-1&&(e=e.replace(t.suffix,"")),n+t.prefix+e+t.suffix}function n(e,t){return t.allowEmpty&&""===e?"":t.reverse?i(e,t):a(e,t)}function a(e,n){var a,i,r,s=e.indexOf("-")>-1&&n.allowNegative?"-":"",l=e.replace(/[^0-9]/g,"");return a=o(l.slice(0,l.length-n.precision),s,n),n.precision>0&&(i=l.slice(l.length-n.precision),r=new Array(n.precision+1-i.length).join(0),a+=n.decimal+r+i),t(a,n)}function i(e,n){var a,i=e.indexOf("-")>-1&&n.allowNegative?"-":"",r=e.replace(n.prefix,"").replace(n.suffix,""),s=r.split(n.decimal)[0],l="";if(""===s&&(s="0"),a=o(s,i,n),n.precision>0){var c=r.split(n.decimal);c.length>1&&(l=c[1]),a+=n.decimal+l;var u=Number.parseFloat(s+"."+l).toFixed(n.precision).toString().split(n.decimal)[1];a=a.split(n.decimal)[0]+"."+u}return t(a,n)}function o(e,t,n){return""===(e=(e=e.replace(/^0*/g,"")).replace(/\B(?=(\d{3})+(?!\d))/g,n.thousands))&&(e="0"),t+e}e.browser||(e.browser={},e.browser.mozilla=/mozilla/.test(navigator.userAgent.toLowerCase())&&!/webkit/.test(navigator.userAgent.toLowerCase()),e.browser.webkit=/webkit/.test(navigator.userAgent.toLowerCase()),e.browser.opera=/opera/.test(navigator.userAgent.toLowerCase()),e.browser.msie=/msie/.test(navigator.userAgent.toLowerCase()),e.browser.device=/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(navigator.userAgent.toLowerCase()));var r={prefix:"",suffix:"",affixesStay:!0,thousands:",",decimal:".",precision:2,allowZero:!1,allowNegative:!1,doubleClickSelection:!0,allowEmpty:!1,bringCaretAtEndOnFocus:!0},s={destroy:function(){return e(this).unbind(".maskMoney"),e.browser.msie&&(this.onpaste=null),this},applyMask:function(t){return n(t,e(this).data("settings"))},mask:function(t){return this.each((function(){var n=e(this);return"number"==typeof t&&n.val(t),n.trigger("mask")}))},unmasked:function(){return this.map((function(){var t,n=e(this).val()||"0",a=-1!==n.indexOf("-");return e(n.split(/\D/).reverse()).each((function(e,n){if(n)return t=n,!1})),n=(n=n.replace(/\D/g,"")).replace(new RegExp(t+"$"),"."+t),a&&(n="-"+n),parseFloat(n)}))},unmaskedWithOptions:function(){return this.map((function(){var t=e(this).val()||"0",n=e(this).data("settings")||r,a=new RegExp(n.thousandsForUnmasked||n.thousands,"g");return t=t.replace(a,""),parseFloat(t)}))},init:function(a){return a=e.extend(e.extend({},r),a),this.each((function(){function i(){var e,t,n,a,i,o=p.get(0),r=0,s=0;return"number"==typeof o.selectionStart&&"number"==typeof o.selectionEnd?(r=o.selectionStart,s=o.selectionEnd):(t=document.selection.createRange())&&t.parentElement()===o&&(a=o.value.length,e=o.value.replace(/\r\n/g,"\n"),(n=o.createTextRange()).moveToBookmark(t.getBookmark()),(i=o.createTextRange()).collapse(!1),n.compareEndPoints("StartToEnd",i)>-1?r=s=a:(r=-n.moveStart("character",-a),r+=e.slice(0,r).split("\n").length-1,n.compareEndPoints("EndToEnd",i)>-1?s=a:(s=-n.moveEnd("character",-a),s+=e.slice(0,s).split("\n").length-1))),{start:r,end:s}}function o(e){var t,a=p.val().length;p.val(n(p.val(),f)),t=p.val().length,f.reverse||(e-=a-t),function(e){f.formatOnBlur||p.each((function(t,n){if(n.setSelectionRange)n.focus(),n.setSelectionRange(e,e);else if(n.createTextRange){var a=n.createTextRange();a.collapse(!0),a.moveEnd("character",e),a.moveStart("character",e),a.select()}}))}(e)}function r(){var e=p.val();if(!f.allowEmpty||""!==e){var t=e.indexOf(f.decimal);if(f.precision>0)if(t<0)e+=f.decimal+new Array(f.precision+1).join(0);else{var a=e.slice(0,t),i=e.slice(t+1);e=a+f.decimal+i+new Array(f.precision+1-i.length).join(0)}else t>0&&(e=e.slice(0,t));p.val(n(e,f))}}function s(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function l(t){var n=(t=t||window.event).which||t.charCode||t.keyCode,a=f.decimal.charCodeAt(0);return void 0!==n&&(!(n<48||n>57)||n===a&&f.reverse?!(!function(){var e=!(p.val().length>=p.attr("maxlength")&&p.attr("maxlength")>=0),t=i(),n=t.start,a=t.end,o=!(t.start===t.end||!p.val().substring(n,a).match(/\d/)),r="0"===p.val().substring(0,1);return e||o||r}()||n===a&&!function(){var e=p.val().length,t=i();return 0===t.start&&t.end===e}()&&p.val().indexOf(f.decimal)>-1||!f.formatOnBlur&&(s(t),c(t),1)):function(t,n){return 45===t?(p.val(function(){var e=p.val();return f.allowNegative?""!==e&&"-"===e.charAt(0)?e.replace("-",""):"-"+e:e}()),!1):43===t?(p.val(p.val().replace("-","")),!1):13===t||9===t||!(!e.browser.mozilla||37!==t&&39!==t||0!==n.charCode)||(s(n),!0)}(n,t))}function c(e){var t,n,a,r,s=(e=e||window.event).which||e.charCode||e.keyCode,l="";s>=48&&s<=57&&(l=String.fromCharCode(s)),n=(t=i()).start,a=t.end,r=p.val(),p.val(r.substring(0,n)+l+r.substring(a,r.length)),o(n+1)}function u(){setTimeout((function(){r()}),0)}function d(){return(parseFloat("0")/Math.pow(10,f.precision)).toFixed(f.precision).replace(new RegExp("\\.","g"),f.decimal)}var f,m,p=e(this);f=e.extend({},a),f=e.extend(f,p.data()),p.data("settings",f),e.browser.device&&p.attr("type","tel"),p.unbind(".maskMoney"),p.bind("keypress.maskMoney",l),p.bind("keydown.maskMoney",(function(e){var t,n,a,r,l,c=(e=e||window.event).which||e.charCode||e.keyCode;return void 0!==c&&(n=(t=i()).start,a=t.end,8!==c&&46!==c&&63272!==c||(s(e),r=p.val(),n===a&&(8===c?""===f.suffix?n-=1:(l=r.split("").reverse().join("").search(/\d/),a=1+(n=r.length-l-1)):a+=1),p.val(r.substring(0,n)+r.substring(a,r.length)),o(n),!1))})),p.bind("blur.maskMoney",(function(n){if(e.browser.msie&&l(n),f.formatOnBlur&&p.val()!==m&&c(n),""===p.val()&&f.allowEmpty)p.val("");else if(""===p.val()||p.val()===t(d(),f))f.allowZero?f.affixesStay?p.val(t(d(),f)):p.val(d()):p.val("");else if(!f.affixesStay){var a=p.val().replace(f.prefix,"").replace(f.suffix,"");p.val(a)}p.val()!==m&&p.change()})),p.bind("focus.maskMoney",(function(){m=p.val(),r();var e,t=p.get(0);f.selectAllOnFocus?t.select():t.createTextRange&&f.bringCaretAtEndOnFocus&&((e=t.createTextRange()).collapse(!1),e.select())})),p.bind("click.maskMoney",(function(){var e,t=p.get(0);f.selectAllOnFocus||(t.setSelectionRange&&f.bringCaretAtEndOnFocus?(e=p.val().length,t.setSelectionRange(e,e)):p.val(p.val()))})),p.bind("dblclick.maskMoney",(function(){var e,t,n=p.get(0);n.setSelectionRange&&f.bringCaretAtEndOnFocus?(t=p.val().length,e=f.doubleClickSelection?0:t,n.setSelectionRange(e,t)):p.val(p.val())})),p.bind("cut.maskMoney",u),p.bind("paste.maskMoney",u),p.bind("mask.maskMoney",r)}))}};e.fn.maskMoney=function(t){return s[t]?s[t].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof t&&t?void e.error("Method "+t+" does not exist on jQuery.maskMoney"):s.init.apply(this,arguments)}}(window.jQuery||window.Zepto);var Mascaras=function(){var e={format:"DD/MM/YYYY",separator:" - ",applyLabel:"Aplicar",cancelLabel:"Cancelar",fromLabel:"De",toLabel:"Até",customRangeLabel:"Custom",daysOfWeek:["Dom","Seg","Ter","Qua","Qui","Sex","Sáb"],monthNames:["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],firstDay:0};return{init:()=>($(".decimal,.moeda").maskMoney({thousands:".",decimal:","}),$(".decimal-negativo").maskMoney({thousands:".",decimal:".",allowNegative:!0,allowZero:!1}).on("change",(function(){$(this).maskMoney("unmasked")[0]>0?$(this).val("-"+$(this).val()):$(this).val($(this).val().replace("-0.00",""))})),$(".decimalzero").maskMoney({thousands:".",decimal:",",allowZero:!0}),$(".decimal4p").maskMoney({thousands:".",decimal:",",precision:4}),$(".periodo-datas:not(.futuras)").daterangepicker({locale:e,autoUpdateInput:!1,cancelClass:"d-none",ranges:{Hoje:[moment(),moment()],Ontem:[moment().subtract(1,"days"),moment().subtract(1,"days")],"Últimos 7 Dias":[moment().subtract(6,"days"),moment()],"Últimos 30 Dias":[moment().subtract(29,"days"),moment()],"Este Mês":[moment().startOf("month"),moment().endOf("month")],"Mês Anterior":[moment().subtract(1,"month").startOf("month"),moment().subtract(1,"month").endOf("month")]}}).on("hide.daterangepicker",(function(e,t){$(this).val(t.startDate.format("DD/MM/YYYY")+" - "+t.endDate.format("DD/MM/YYYY")),$(this).change()})).inputmask({mask:"99/99/9999 - 99/99/9999"}),$(".periodo-datas.futuras").daterangepicker({locale:e,autoUpdateInput:!1,cancelClass:"d-none",ranges:{"Próximos 60 Dias":[moment(),moment().add(59,"days")],"Próximos 30 Dias":[moment(),moment().add(29,"days")],"Próximos 7 Dias":[moment(),moment().add(6,"days")],"Mês Seguinte":[moment().add(1,"month").startOf("month"),moment().add(1,"month").endOf("month")],"Este Mês":[moment().startOf("month"),moment().endOf("month")],"Amanhã":[moment().add(1,"days"),moment().add(1,"days")],Hoje:[moment(),moment()],Ontem:[moment().subtract(1,"days"),moment().subtract(1,"days")],"Mês Anterior":[moment().subtract(1,"month").startOf("month"),moment().subtract(1,"month").endOf("month")]}}).on("hide.daterangepicker",(function(e,t){$(this).val(t.startDate.format("DD/MM/YYYY")+" - "+t.endDate.format("DD/MM/YYYY")),$(this).change()})).inputmask({mask:"99/99/9999 - 99/99/9999"}),$(".periodo-datas.periodos-suspensao").daterangepicker({locale:e,autoUpdateInput:!1,cancelClass:"d-none",ranges:{"30 Dias":[moment(),moment().add(30,"days")],"60 Dias":[moment(),moment().add(60,"days")],"90 Dias":[moment(),moment().add(90,"days")],"120 Dias":[moment(),moment().add(120,"days")]}}).on("hide.daterangepicker",(function(e,t){$(this).val(t.startDate.format("DD/MM/YYYY")+" - "+t.endDate.format("DD/MM/YYYY")),$(this).change()})).inputmask({mask:"99/99/9999 - 99/99/9999"}),$('[data-range-key="Custom"]').text("Outro período"),$(".data").daterangepicker({singleDatePicker:!0,autoUpdateInput:!1,cancelClass:"d-none",locale:e}).on("hide.daterangepicker",(function(e,t){void 0!==t.startDate._i&&$(this).val(t.startDate.format("DD/MM/YYYY")),$(this).change()})).inputmask({mask:"99/99/9999"}),$(".data-hora").daterangepicker({singleDatePicker:!0,timePicker:!0,timePicker24Hour:!0,autoUpdateInput:!1,locale:e}).on("hide.daterangepicker",(function(e,t){void 0!==t.startDate._i&&$(this).val(t.startDate.format("DD/MM/YYYY HH:mm")),$(this).change()})).inputmask({mask:"99/99/9999 99:99"}),$(".hora").inputmask({mask:"99:99"}),$(".data-periodo-manual").daterangepicker({locale:e,autoUpdateInput:!1}).on("hide.daterangepicker",(function(e,t){$(this).val(t.startDate.format("DD/MM/YYYY")+" - "+t.endDate.format("DD/MM/YYYY")),$(this).change()})).inputmask({mask:"99/99/9999 - 99/99/9999"}),$(".data-hora-periodo-manual").daterangepicker({locale:e,autoUpdateInput:!1,timePicker:!0}).on("apply.daterangepicker",(function(e,t){$(this).val(t.startDate.format("DD/MM/YYYY HH:mm")+" - "+t.endDate.format("DD/MM/YYYY HH:mm"))})).on("hide.daterangepicker",(function(e,t){void 0!==t.startDate._i&&$(this).val(null),$(this).change()})).inputmask({mask:"99/99/9999 99:99 - 99/99/9999 99:99"}),$(".data-limita-intervalo").daterangepicker({locale:e,singleDatePicker:!0,showDropdowns:!0,minDate:moment().subtract(3,"days"),maxDate:moment()}),$(".data-limita-relatorios-espelho").daterangepicker({locale:e,singleDatePicker:!0,showDropdowns:!0,maxDate:moment().subtract(3,"days")}),$(".data-limita-dias-passados").daterangepicker({locale:e,singleDatePicker:!0,showDropdowns:!0,minDate:moment()}),$(".data-limita-30-dias").daterangepicker({locale:e,singleDatePicker:!0,showDropdowns:!0,minDate:moment().add(30,"days")}),$(".mes_ano").inputmask({mask:"99/9999",keepStatic:!0}),$(".cep").inputmask({mask:"99999-999",keepStatic:!0}),$(".numerico").maskMoney({thousands:".",decimal:",",precision:0,allowZero:!1}),$(".numerico-negativo").maskMoney({thousands:".",decimal:",",precision:0,allowZero:!0,allowNegative:!0}),$(".numerico-sem-ponto").maskMoney({thousands:"",decimal:"",precision:0,allowZero:!1}),$(".numerico-inteiro-com-zero").maskMoney({thousands:"",decimal:"",precision:0,allowZero:!0,affixesStay:!0}),$(".numericozero").maskMoney({thousands:".",decimal:",",precision:0,allowZero:!0}),$(".telefone").inputmask({mask:["(99) 9999-9999","(99) 99999-9999"],keepStatic:!0}),$(".documento").inputmask({mask:["999.999.999-99","99.999.999/9999-99"],keepStatic:!0}),$(".numeroCartao").inputmask({mask:"9999 9999 9999 9999",placeholder:""}),$(".medida-pneu").inputmask({mask:"999/99/99",keepStatic:!0}),$(".mac-address").inputmask({mask:"**:**:**:**:**:**"}),void $(".input-codigo-verificacao").inputmask({mask:"9"})),configLocaleDateRange:()=>e}}();jQuery((function(){Mascaras.init()}));var Mentions=function(){let e=null;return{init:function(t,n){if(!t||!n)throw new Error("Nenhuma referencia foi informada!");return e=$(t).mentionsInput({onDataRequest:function(e,t,a){n=_.filter(n,(function(e){return e.name.toLowerCase().indexOf(t.toLowerCase())>-1})),a.call(this,n)},showAvatars:!0,minChars:1}),e},buscar:function(){},resetar:function(){}}}(),ModalGlobal={show:function(e,t,n){loading(!0,"Carregando..."),axios.request({url:t,method:"GET",params:n}).then((t=>{loading(!1),$("#modal_global_titulo").html(e),$("#modal_global_body").html(t.data),$("#modal_global").modal("toggle"),KTApp.initBootstrapTooltips(),$(".table:not(.no-datatable)").not(".dataTables_wrapper .table").DataTable({stateSave:!0,pageLength:50})})).catch((e=>{loading(!1)}))}},Notificacoes=function(){const e=function(){$("#kt_activities_toggle").on("click",(function(){n()}))};var t=function(){if(0!=$("#id_user").length)return axios.request({url:"/notificacoes/buscar-todas",method:"GET",params:{}}).then((({data:e})=>(loading(!1),e))).catch((e=>{loading(!1),swalErroHttp(e)}))},n=async function(){var e;$(".badge-quantidade-notificacoes").addClass("d-none"),e="#listagem-notificacoes",$(e).children().addClass("d-none"),$(e).append('\n \n
\n \n
Carregando...
\n \n
\n ');const{notificacoes:r,view:s}=await t();$("#listagem-notificacoes").html(s),r.length>0?(KTApp.init(),$("#marcar-tudo-como-lido").removeClass("d-none"),i(),$(".btn-marcar-notificacao-como-lida").off("click").on("click",(function(){let e=$(this).data("id-notificacao-user");$(this).closest(".corpo-notificacao").fadeOut(250,(function(){$(this).addClass("d-none")})),a(e).then((e=>{0===e.data.notificacoesNaoLidas&&n()}))})),o()):$("#marcar-tudo-como-lido").addClass("d-none")};const a=async function(e){return axios.request({url:"/notificacoes/marcar-como-lida",method:"POST",data:{id_notificacao_user:e}})},i=async function(){$("#marcar-tudo-como-lido").off("click").on("click",(function(){loading(!0,"Carregando..."),axios.request({url:"/notificacoes/marcar-todas-como-lidas",method:"POST",data:{}}).then((()=>{loading(!1),n()}))}))},o=()=>{$("#link_notificacao").on("click",(function(){let e=$(this).data("id-notificacao");axios.request({url:"/notificacoes/apagar-arquivos",method:"GET",params:{id_notificacao:e}})}))};return{acaoFluxoNotificacao:async function(e,t,i,o){loading(!0,"Carregando..."),axios.request({url:"/tarefas/fluxo/alterar",method:"POST",data:{id_tarefa:i,id_tarefa_fluxo_config:e,resposta:t}}).then((({data:e})=>{a(o).then((()=>{loading(!1),n()}))}))},init:async function(){let n=window.location.hostname,a=window.location.pathname,i=document.getElementById("kt_activities_toggle");if("nicon.nicnet.com.br"!==n)return;if(a.startsWith("/login"))return;if(!i)return;const{notificacoes:o}=await t();o.length>0&&$(".badge-quantidade-notificacoes").removeClass("d-none").html(o.length),e()}}}();async function updateFieldHelper(e,t,n){var a={};return a[t]=n,sendRequestField(e,a)}async function updateMultipleFieldHelper(e,t){return sendRequestField(e,t)}async function sendRequestField(e,t){return axios.request({url:e,method:"post",data:t}).then((function(e){return e})).catch((function(e){swal.fire({icon:"error",title:"Erro ao alterar campo",text:e.response.data.message})}))}function validaDocumento(e,t=1){if(!formata_cpf_cnpj(e)){if(1!=t)throw new DOMException("CPF/CNPJ inválido");swal.fire({title:(e.length<=15?"CPF":"CNPJ")+" inválido.",text:"Digite um documento válido.",type:"error",confirmButtonText:"Ok",reverseButtons:!1})}}function validaTelefone(e,t=1){if(e.length>0){if(1!=t)throw new DOMException("DDD inválido, não pode começar com '0'");0==e[1]&&swal.fire({title:"DDD Inválido",text:"O DDD não pode começar com '0'.",type:"error",confirmButtonText:"Ok",reverseButtons:!1})}}function validaCartaoCredito(e,t=1){if(!(new CreditCard).isValid(e)){if(1!=t)throw new DOMException("Número do cartão inválido");swal.fire({title:"Número inválido",text:"Digite um número de cartão válido.",type:"error",confirmButtonText:"Ok",reverseButtons:!1})}}function verificaNomeInteiro(e,t=1){if(0==(e.match(/ /g)||[]).length){if(1!=t)throw new DOMException("O nome deve ser completo.");return swal.fire({title:"Nome inválido",text:"Preencha nome e sobrenome",type:"error",confirmButtonText:"Ok",reverseButtons:!1}),!1}return!0}function verificaMaiorIdade(e,t=1){if(e<18){if(1!=t)throw new DOMException("É necessário que o titular seja maior de 18 anos.");return swal.fire({title:"É necessário que o titular seja maior de 18 anos.",text:"",type:"error",confirmButtonText:"Ok",reverseButtons:!1}),!1}return!0}function verifica_cpf_cnpj(e){return 11===(e=(e=e.toString()).replace(/[^0-9]/g,"")).length?"CPF":14===e.length&&"CNPJ"}function calc_digitos_posicoes(e,t=10,n=0){e=e.toString();for(var a=0;at==e))}return!1}jQuery((()=>{Notificacoes.init()}));var ValidacoesDocumentos=function(){let validacoesDocumentos;var init=function(validacoesDocumentosParams,callbackJs=null){validacoesDocumentos=validacoesDocumentosParams;for(const validacaoDocumento of validacoesDocumentosParams)new Dropzone(`#upload-validacao-documentos-${validacaoDocumento.id_posicao_documento}`,dropzoneConfig).on("sending",((e,t,n)=>{n.append("model","App\\Models\\ValidacaoDocumento\\ValidacaoDocumento"),n.append("model_id",validacaoDocumento.id_validacao_documento),$(`.id_validacao_documento_${validacaoDocumento.id_validacao_documento}`).removeClass("btn-danger").addClass("btn-success").html("Enviado")})).on("success",((file,response,progress)=>{let id_validacao_documento=validacaoDocumento.id_validacao_documento,dados={id_validacao_documento:id_validacao_documento,id_anexo:response.id,id_validacao_documento_status:$("#id_validacao_documento_status_padrao").val()};updateMultipleFieldHelper("/validacoes-documentos/alterar",dados),$(`.validacao_documento_${id_validacao_documento} .bg-sem-documento-validacao-documento`).addClass("d-none"),$(`.validacao_documento_${id_validacao_documento} .anexo_enviado.overlay-wrapper`).css("background-image",`url("${response.path}")`),$(`.validacao_documento_${id_validacao_documento} .anexo_enviado`).removeClass("d-none"),$(`.validacao_documento_${id_validacao_documento} .foto_exemplo`).addClass("d-none"),$(`.validacao_documento_${id_validacao_documento} .dz-preview`).remove(),$(`.validacao_documento_${id_validacao_documento} .overlay`).attr("href",response.path).attr("title",response.nome),$(`.validacao_documento_${id_validacao_documento} .overlay`).removeClass("d-none"),$(`.validacao_documento_${id_validacao_documento} .dz-message.needsclick`).addClass("d-flex"),validacoesDocumentos.forEach((e=>(e.id_validacao_documento==validacaoDocumento.id_validacao_documento&&(e.id_validacao_documento_status=$("#id_validacao_documento_status_padrao").val()),e))),KTApp.initBootstrapTooltips(),callbackJs&&eval(callbackJs)}))},validaDocumentos=function(){return validacoesDocumentos?.every((e=>3==e.status.id_validacao_documento_status))},validaDocumento=async function(e,t){$(".btn-acao-"+e).hide(),$(".btn-status-"+t+"-"+e).removeClass("d-none");let n={id_validacao_documento:e,id_validacao_documento_status:t};await updateMultipleFieldHelper("/validacoes-documentos/alterar",n)};return{init:init,validaDocumentos:validaDocumentos,validaDocumento:validaDocumento}}();