/*! * dist/inputmask * https://github.com/RobinHerbots/Inputmask * Copyright (c) 2010 - 2024 Robin Herbots * Licensed under the MIT license * Version: 5.0.9 */ !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n=t();for(var i in n)("object"==typeof exports?exports:e)[i]=n[i]}}("undefined"!=typeof self?self:void 0,function(){return function(){var e={3976:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={_maxTestPos:500,placeholder:"_",optionalmarker:["[","]"],quantifiermarker:["{","}"],groupmarker:["(",")"],alternatormarker:"|",escapeChar:"\\",mask:null,regex:null,oncomplete:function(){},onincomplete:function(){},oncleared:function(){},repeat:0,greedy:!1,autoUnmask:!1,removeMaskOnSubmit:!1,clearMaskOnLostFocus:!0,insertMode:!0,insertModeVisual:!0,clearIncomplete:!1,alias:null,onKeyDown:function(){},onBeforeMask:null,onBeforePaste:function(e,t){return"function"==typeof t.onBeforeMask?t.onBeforeMask.call(this,e,t):e},onBeforeWrite:null,onUnMask:null,showMaskOnFocus:!0,showMaskOnHover:!0,onKeyValidation:function(){},skipOptionalPartCharacter:" ",numericInput:!1,rightAlign:!1,undoOnEscape:!0,radixPoint:"",_radixDance:!1,groupSeparator:"",keepStatic:null,positionCaretOnTab:!0,tabThrough:!1,supportsInputType:["text","tel","url","password","search"],isComplete:null,preValidation:null,postValidation:null,staticDefinitionSymbol:void 0,jitMasking:!1,nullable:!0,inputEventOnly:!1,noValuePatching:!1,positionCaretOnClick:"lvp",casing:null,inputmode:"text",importDataAttributes:!0,shiftPositions:!0,usePrototypeDefinitions:!0,validationEventTimeOut:3e3,substitutes:{}}},7392:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={9:{validator:"[0-90-9]",definitionSymbol:"*"},a:{validator:"[A-Za-zА-яЁёÀ-ÿµ]",definitionSymbol:"*"},"*":{validator:"[0-90-9A-Za-zА-яЁёÀ-ÿµ]"}}},253:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){if(void 0===n)return e.__data?e.__data[t]:null;e.__data=e.__data||{},e.__data[t]=n}},3776:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Event=void 0,t.off=function(e,t){var n,i;return u(this[0])&&e&&(n=this[0].eventRegistry,i=this[0],e.split(" ").forEach(function(e){var a=o(e.split("."),2);(function(e,i){var a,r,o=[];if(e.length>0)if(void 0===t)for(a=0,r=n[e][i].length;a0?i:"global",handler:n[e][i][a]});else o.push({ev:e,namespace:i&&i.length>0?i:"global",handler:t});else if(i.length>0)for(var s in n)for(var l in n[s])if(l===i)if(void 0===t)for(a=0,r=n[s][l].length;ae.length)&&(t=e.length);for(var n=0,i=new Array(t);n0||r.indexOf("Trident/")>0,t.mobile=a.default.navigator&&a.default.navigator.userAgentData&&a.default.navigator.userAgentData.mobile||a.default.navigator&&a.default.navigator.maxTouchPoints||"ontouchstart"in a.default,t.iphone=/iphone/i.test(r)},7184:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e.replace(n,"\\$1")};var n=new RegExp("(\\"+["/",".","*","+","?","|","(",")","[","]","{","}","\\","$","^"].join("|\\")+")","gim")},6030:function(e,t,n){function i(e){return i="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},i(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.EventHandlers=void 0;var a,r=n(9845),o=(a=n(9380))&&a.__esModule?a:{default:a},s=n(7760),l=n(2839),c=n(8711),u=n(7215),f=n(4713);function d(){ /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */d=function(){return t};var e,t={},n=Object.prototype,a=n.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},s=o.iterator||"@@iterator",l=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function f(e,t,n,i){var a=t&&t.prototype instanceof k?t:k,o=Object.create(a.prototype),s=new C(i||[]);return r(o,"_invoke",{value:M(e,n,s)}),o}function p(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=f;var h="suspendedStart",m="suspendedYield",v="executing",g="completed",y={};function k(){}function b(){}function x(){}var S={};u(S,s,function(){return this});var w=Object.getPrototypeOf,P=w&&w(w(L([])));P&&P!==n&&a.call(P,s)&&(S=P);var _=x.prototype=k.prototype=Object.create(S);function E(e){["next","throw","return"].forEach(function(t){u(e,t,function(e){return this._invoke(t,e)})})}function O(e,t){function n(r,o,s,l){var c=p(e[r],e,o);if("throw"!==c.type){var u=c.arg,f=u.value;return f&&"object"==i(f)&&a.call(f,"__await")?t.resolve(f.__await).then(function(e){n("next",e,s,l)},function(e){n("throw",e,s,l)}):t.resolve(f).then(function(e){u.value=e,s(u)},function(e){return n("throw",e,s,l)})}l(c.arg)}var o;r(this,"_invoke",{value:function(e,i){function a(){return new t(function(t,a){n(e,i,t,a)})}return o=o?o.then(a,a):a()}})}function M(t,n,i){var a=h;return function(r,o){if(a===v)throw new Error("Generator is already running");if(a===g){if("throw"===r)throw o;return{value:e,done:!0}}for(i.method=r,i.arg=o;;){var s=i.delegate;if(s){var l=T(s,i);if(l){if(l===y)continue;return l}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(a===h)throw a=g,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);a=v;var c=p(t,n,i);if("normal"===c.type){if(a=i.done?g:m,c.arg===y)continue;return{value:c.arg,done:i.done}}"throw"===c.type&&(a=g,i.method="throw",i.arg=c.arg)}}}function T(t,n){var i=n.method,a=t.iterator[i];if(a===e)return n.delegate=null,"throw"===i&&t.iterator.return&&(n.method="return",n.arg=e,T(t,n),"throw"===n.method)||"return"!==i&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+i+"' method")),y;var r=p(a,t.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,y;var o=r.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,y):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function j(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function A(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function L(t){if(t||""===t){var n=t[s];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function n(){for(;++r=0;--r){var o=this.tryEntries[r],s=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var l=a.call(o,"catchLoc"),c=a.call(o,"finallyLoc");if(l&&c){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&a.call(i,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),A(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var a=i.arg;A(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,i){return this.delegate={iterator:L(t),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=e),y}},t}function p(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return h(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)?h(e,t):void 0}}(e))||t){n&&(e=n);var i=0,a=function(){};return{s:a,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,r=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw r}}}}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n=0&&k.end>0&&(e.preventDefault(),c.caret.call(o,m,k.begin,k.end))):(k.begin=c.seekNext.call(o,k.begin,!0),k.end=c.seekNext.call(o,k.begin,!0),k.end1&&!("textarea"===m.tagName.toLowerCase()&&g==l.keys.Enter),y.keypressEvent.call(this,e,t,n,i,a)},keypressEvent:function(e,t,n,i,a){var r=this.inputmask||this,o=r.opts,f=r.dependencyLib,d=r.maskset,p=r.el,h=f(p),m=e.key;if(!0===t||e.ctrlKey&&e.altKey&&!r.ignorable||!(e.ctrlKey||e.metaKey||r.ignorable)){if(m){var v,g=t?{begin:a,end:a}:c.caret.call(r,p);t||(m=o.substitutes[m]||m),d.writeOutBuffer=!0;var y=u.isValid.call(r,g,m,i,void 0,void 0,void 0,t);if(!1!==y&&(c.resetMaskSet.call(r,!0),v=void 0!==y.caret?y.caret:c.seekNext.call(r,y.pos.begin?y.pos.begin:y.pos),d.p=v),v=o.numericInput&&void 0===y.caret?c.seekPrevious.call(r,v):v,!1!==n&&(setTimeout(function(){o.onKeyValidation.call(p,m,y)},0),d.writeOutBuffer&&!1!==y)){var k=c.getBuffer.call(r);(0,s.writeBuffer)(p,k,v,e,!0!==t)}if(e.preventDefault(),t)return!1!==y&&(y.forwardPosition=v),y}}else m===l.keys.Enter&&r.undoValue!==r._valueGet(!0)&&(r.undoValue=r._valueGet(!0),setTimeout(function(){h.trigger("change")},0))},pasteEvent:(v=d().mark(function e(t){var n,i,a,r,l,u;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:n=function(e,n,i,a,o){var l=c.caret.call(e,n,void 0,void 0,!0),u=i.substr(0,l.begin),f=i.substr(l.end,i.length);if(u==(e.isRTL?c.getBufferTemplate.call(e).slice().reverse():c.getBufferTemplate.call(e)).slice(0,l.begin).join("")&&(u=""),f==(e.isRTL?c.getBufferTemplate.call(e).slice().reverse():c.getBufferTemplate.call(e)).slice(l.end).join("")&&(f=""),a=u+a+f,e.isRTL&&!0!==r.numericInput){a=a.split("");var d,h=p(c.getBufferTemplate.call(e));try{for(h.s();!(d=h.n()).done;){var m=d.value;a[0]===m&&a.shift()}}catch(e){h.e(e)}finally{h.f()}a=a.reverse().join("")}var v=a;if("function"==typeof o){if(!1===(v=o.call(e,v,r)))return!1;v||(v=i)}(0,s.checkVal)(n,!0,!1,v.toString().split(""),t)},i=this,a=this.inputmask,r=a.opts,l=a._valueGet(!0),a.skipInputEvent=!0,t.clipboardData&&t.clipboardData.getData?u=t.clipboardData.getData("text/plain"):o.default.clipboardData&&o.default.clipboardData.getData&&(u=o.default.clipboardData.getData("Text")),n(a,i,l,u,r.onBeforePaste),t.preventDefault();case 7:case"end":return e.stop()}},e,this)}),g=function(){var e=this,t=arguments;return new Promise(function(n,i){var a=v.apply(e,t);function r(e){m(a,n,i,r,o,"next",e)}function o(e){m(a,n,i,r,o,"throw",e)}r(void 0)})},function(e){return g.apply(this,arguments)}),inputFallBackEvent:function(e){var t,n=this.inputmask,i=n.opts,a=n.dependencyLib,o=this,u=o.inputmask._valueGet(!0),d=(n.isRTL?c.getBuffer.call(n).slice().reverse():c.getBuffer.call(n)).join(""),p=c.caret.call(n,o,void 0,void 0,!0);if(d!==u){if(t=function(e,t,a){for(var r,o,s,l=e.substr(0,a.begin).split(""),u=e.substr(a.begin).split(""),d=t.substr(0,a.begin).split(""),p=t.substr(a.begin).split(""),h=l.length>=d.length?l.length:d.length,m=u.length>=p.length?u.length:p.length,v="",g=[],y="~";l.length0)&&(t.undoValue=o,a.trigger("change"))}},mouseenterEvent:function(){var e=this.inputmask,t=e.opts.showMaskOnHover,n=this;if(e.mouseEnter=!0,(n.inputmask.shadowRoot||n.ownerDocument).activeElement!==n){var i=(e.isRTL?c.getBufferTemplate.call(e).slice().reverse():c.getBufferTemplate.call(e)).join("");t&&(0,s.HandleNativePlaceholder)(n,i)}},submitEvent:function(){var e=this.inputmask,t=e.opts;e.undoValue!==e._valueGet(!0)&&e.$el.trigger("change"),-1===c.getLastValidPosition.call(e)&&e._valueGet&&e._valueGet()===c.getBufferTemplate.call(e).join("")&&e._valueSet(""),t.clearIncomplete&&!1===u.isComplete.call(e,c.getBuffer.call(e))&&e._valueSet(""),t.removeMaskOnSubmit&&(e._valueSet(e.unmaskedvalue(),!0),setTimeout(function(){(0,s.writeBuffer)(e.el,c.getBuffer.call(e))},0))},resetEvent:function(){var e=this.inputmask;e.refreshValue=!0,setTimeout(function(){(0,s.applyInputValue)(e.el,e._valueGet(!0))},0)}}},9716:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.EventRuler=void 0;var i,a=n(7760),r=(i=n(2394))&&i.__esModule?i:{default:i},o=n(2839),s=n(8711);t.EventRuler={on:function(e,t,n){var i=e.inputmask.dependencyLib,l=function(t){t.originalEvent&&(t=t.originalEvent||t,arguments[0]=t);var l,c=this,u=c.inputmask,f=u?u.opts:void 0;if(void 0===u&&"FORM"!==this.nodeName){var d=i.data(c,"_inputmask_opts");i(c).off(),d&&new r.default(d).mask(c)}else{if(["submit","reset","setvalue"].includes(t.type)||"FORM"===this.nodeName||!(c.disabled||c.readOnly&&!("keydown"===t.type&&t.ctrlKey&&t.key===o.keys.c||!1===f.tabThrough&&t.key===o.keys.Tab))){switch(t.type){case"input":if(!0===u.skipInputEvent)return u.skipInputEvent=!1,t.preventDefault();break;case"click":case"focus":return u.validationEvent?(u.validationEvent=!1,e.blur(),(0,a.HandleNativePlaceholder)(e,(u.isRTL?s.getBufferTemplate.call(u).slice().reverse():s.getBufferTemplate.call(u)).join("")),setTimeout(function(){e.focus()},f.validationEventTimeOut),!1):(l=arguments,void setTimeout(function(){e.inputmask&&n.apply(c,l)},0))}var p=n.apply(c,arguments);return!1===p&&(t.preventDefault(),t.stopPropagation()),p}t.preventDefault()}};["submit","reset"].includes(t)?(l=l.bind(e),null!==e.form&&i(e.form).on(t,l)):i(e).on(t,l),e.inputmask.events[t]=e.inputmask.events[t]||[],e.inputmask.events[t].push(l)},off:function(e,t){if(e.inputmask&&e.inputmask.events){var n=e.inputmask.dependencyLib,i=e.inputmask.events;for(var a in t&&((i=[])[t]=e.inputmask.events[t]),i){for(var r=i[a];r.length>0;){var o=r.pop();["submit","reset"].includes(a)?null!==e.form&&n(e.form).off(a,o):n(e).off(a,o)}delete e.inputmask.events[a]}}}}},219:function(e,t,n){var i=u(n(7184)),a=u(n(2394)),r=n(2839),o=n(8711),s=n(4713);function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=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 P(Date.prototype.getMonth.call(this)+1,2)}],mmm:[h.monthNames.slice(0,12).join("|"),function(e){var t=h.monthNames.slice(0,12).findIndex(function(t){return e.toLowerCase()===t.toLowerCase()});return-1!==t&&Date.prototype.setMonth.call(this,t)},"month",function(){return h.monthNames.slice(0,12)[Date.prototype.getMonth.call(this)]}],mmmm:[h.monthNames.slice(12,24).join("|"),function(e){var t=h.monthNames.slice(12,24).findIndex(function(t){return e.toLowerCase()===t.toLowerCase()});return-1!==t&&Date.prototype.setMonth.call(this,t)},"month",function(){return h.monthNames.slice(12,24)[Date.prototype.getMonth.call(this)]}],yy:["[0-9]{2}",function(e){var t=(new Date).getFullYear().toString().slice(0,2);Date.prototype.setFullYear.call(this,"".concat(t).concat(e))},"year",function(){return P(Date.prototype.getFullYear.call(this),2)},2],yyyy:["[0-9]{4}",Date.prototype.setFullYear,"year",function(){return P(Date.prototype.getFullYear.call(this),4)},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 P(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 P(Date.prototype.getHours.call(this),2)}],Hx:[function(e){return"[0-9]{".concat(e,"}")},Date.prototype.setHours,"hours",function(e){return function(){return P(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 P(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 P(Date.prototype.getSeconds.call(this),2)}],l:["[0-9]{3}",Date.prototype.setMilliseconds,"milliseconds",function(){return P(Date.prototype.getMilliseconds.call(this),3)},3],L:["[0-9]{2}",Date.prototype.setMilliseconds,"milliseconds",function(){return P(Date.prototype.getMilliseconds.call(this),2)},2],t:["[ap]",y,"ampm",k,1],tt:["[ap]m",y,"ampm",k,2],T:["[AP]",y,"ampm",k,1],TT:["[AP]M",y,"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 i,a,r,o,s=[],l=!0,c=!1;try{if(r=(n=n.call(e)).next,0===t);else for(;!(l=(i=r.call(n)).done)&&(s.push(i.value),s.length!==t);l=!0);}catch(e){c=!0,a=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw a}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return l(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)?l(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 y(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 b(e){var t=/\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 i in v)if(/\.*x$/.test(i)){var a=i[0]+"\\d+";-1===n.indexOf(a)&&n.push(a)}else-1===t.indexOf(i[0])&&t.push(i[0]);e.tokenizer="("+(n.length>0?n.join("|")+"|":"")+t.join("+|")+")+?|.",e.tokenizer=new RegExp(e.tokenizer,"g")}return e.tokenizer}function S(e,t,n){if(!m)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 i=O.call(this,t.pos,n,this.maskset);if(i.targetMatch&&"yyyy"===i.targetMatch[0]&&t.pos-i.targetMatchIndex==2)return t.remove=t.pos+1,t}else if(2==e.date.getMonth()&&"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=o.seekNext.call(this,t.pos+1),t;return!1}function w(e,t,n,a){var r,o,s="",l=0,c={};for(x(n).lastIndex=0;r=x(n).exec(e);){if(void 0===t)if(o=b(r))s+="("+o[0]+")",n.placeholder&&""!==n.placeholder?(c[l]=n.placeholder[r.index%n.placeholder.length],c[n.placeholder[r.index%n.placeholder.length]]=r[0].charAt(0)):c[l]=r[0].charAt(0);else switch(r[0]){case"[":s+="(";break;case"]":s+=")?";break;default:s+=(0,i.default)(r[0]),c[l]=r[0].charAt(0)}else(o=b(r))?!0!==a&&o[3]?s+=o[3].call(t.date):o[2]?s+=t["raw"+o[2]]:s+=r[0]:s+=r[0];l++}return void 0===t&&(n.placeholder=c),s}function P(e,t,n){for(e=String(e),t=t||2;e.length=e+1){i=a,a=x(t).exec(t.inputFormat);break}}return{targetMatchIndex:l-c,nextMatch:a,targetMatch:i}}a.default.extendAliases({datetime:{mask:function(e){return e.numericInput=!1,v.S=h.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.regex=w(e.inputFormat,void 0,e),e.min=_(e.min,e.inputFormat,e),e.max=_(e.max,e.inputFormat,e),null},placeholder:"",inputFormat:"isoDateTime",displayFormat:null,outputFormat:null,min:null,max:null,skipOptionalPartCharacter:"",preValidation:function(e,t,n,i,a,r,o,s){if(s)return!0;if(isNaN(n)&&e[t]!==n){var l=O.call(this,t,a,r);if(l.nextMatch&&l.nextMatch[0]===n&&l.targetMatch[0].length>1){var c=b(l.targetMatch)[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,i,a,r,o,l){var c,u,f=this;if(o)return!0;if(!1===i&&(((c=O.call(f,t+1,a,r)).targetMatch&&c.targetMatchIndex===t&&c.targetMatch[0].length>1&&void 0!==v[c.targetMatch[0]]||(c=O.call(f,t+2,a,r)).targetMatch&&c.targetMatchIndex===t+1&&c.targetMatch[0].length>1&&void 0!==v[c.targetMatch[0]])&&(u=b(c.targetMatch)[0]),void 0!==u&&(void 0!==r.validPositions[t+1]&&new RegExp(u).test(n+"0")?(e[t]=n,e[t+1]="0",i={pos:t+2,caret:t}):new RegExp(u).test("0"+n)&&(e[t]="0",e[t+1]=n,i={pos:t+2})),!1===i))return i;if(i.fuzzy&&(e=i.buffer,t=i.pos),(c=O.call(f,t,a,r)).targetMatch&&c.targetMatch[0]&&void 0!==v[c.targetMatch[0]]){var d=b(c.targetMatch);u=d[0];var h=e.slice(c.targetMatchIndex,c.targetMatchIndex+c.targetMatch[0].length);if(!1===new RegExp(u).test(h.join(""))&&2===c.targetMatch[0].length&&r.validPositions[c.targetMatchIndex]&&r.validPositions[c.targetMatchIndex+1]&&(r.validPositions[c.targetMatchIndex+1].input="0"),"year"==d[2])for(var m=s.getMaskTemplate.call(f,!1,1,void 0,!0),g=t+1;g=s.getTime())&&(e.date.setFullYear(p),e.year=i,t.insert=[{pos:t.pos+1,c:o[0]},{pos:t.pos+2,c:o[1]}])}}return t}(k,y,a)),y=function(e,t,n,i){if(!t)return t;if(t&&n.min&&!isNaN(n.min.date.getTime())){var a;for(e.reset(),x(n).lastIndex=0;a=x(n).exec(n.inputFormat);){var r;if((r=b(a))&&r[3]){for(var o=r[1],s=e[r[2]],l=n.min[r[2]],c=n.max?n.max[r[2]]:l+1,u=[],f=!1,d=0;dl[d]):(d+a.index==0&&s[d]e.date.getTime()&&(u[d]=c[d]));o.call(e._date,u.join(""))}}t=n.min.date.getTime()<=e.date.getTime(),e.reInit()}return t&&n.max&&(isNaN(n.max.date.getTime())||(t=n.max.date.getTime()>=e.date.getTime())),t}(k,y=S.call(f,k,y,a),a,r)),void 0!==t&&y&&i.pos!==t?{buffer:w(a.inputFormat,k,a).split(""),refreshFromBuffer:{start:t,end:i.pos},pos:i.caret||i.pos}:y},onKeyDown:function(e,t,n,i){e.ctrlKey&&e.key===r.keys.ArrowRight&&(this.inputmask._valueSet(E(new Date,i)),f(this).trigger("setvalue"))},onUnMask:function(e,t,n){return t?w(n.outputFormat,_.call(this,e,n.inputFormat,n),n,!0):t},casing:function(e,t,n,i){if(0==t.nativeDef.indexOf("[ap]"))return e.toLowerCase();if(0==t.nativeDef.indexOf("[AP]"))return e.toUpperCase();var a=s.getTest.call(this,[n-1]);return 0==a.match.def.indexOf("[AP]")||0===n||a&&a.input===String.fromCharCode(r.keyCode.Space)||a&&a.match.def===String.fromCharCode(r.keyCode.Space)?e.toUpperCase():e.toLowerCase()},onBeforeMask:function(e,t){return"[object Date]"===Object.prototype.toString.call(e)&&(e=E(e,t)),e},insertMode:!1,insertModeVisual:!1,shiftPositions:!1,keepStatic:!1,inputmode:"numeric",prefillYear:!0}})},1313:function(e,t,n){var i,a=(i=n(2394))&&i.__esModule?i:{default:i};a.default.dependencyLib.extend(!0,a.default.prototype.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"]})},3851:function(e,t,n){var i,a=(i=n(2394))&&i.__esModule?i:{default:i},r=n(8711),o=n(4713);function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n-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,a.greedy&&parseInt(e)>255&&l.test("00"+e.charAt(2))){var r=[].concat(function(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return s(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)?s(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(t.buffer.slice(0,n)),[".",e.charAt(2)]);if(r.join("").match(/\./g).length<4)return{refreshFromBuffer:!0,buffer:r,caret:n+2}}return l.test(e)}a.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:c},j:{validator:c},k:{validator:c},l:{validator:c}},onUnMask:function(e,t,n){return e},inputmode:"decimal",substitutes:{",":"."}},email:{mask:function(e){var t=e.separator,n=e.quantifier,i="*{1,64}[.*{1,64}][.*{1,64}][.*{1,63}]@-{1,63}.-{1,63}[.-{1,63}][.-{1,63}]",a=i;if(t)for(var r=0;r0&&t>0&&(!n.digitsOptional||i)){var a=e.indexOf(n.radixPoint),r=!1;n.negationSymbol.back===e[e.length-1]&&(r=!0,e.length--),-1===a&&(e.push(n.radixPoint),a=e.length-1);for(var o=1;o<=t;o++)isFinite(e[a+o])||(e[a+o]="0")}return r&&e.push(n.negationSymbol.back),e}function f(e,t){var n=0;for(var i in"+"===e&&(n=o.seekNext.call(this,t.validPositions.length-1)),t.tests)if((i=parseInt(i))>=n)for(var a=0,r=t.tests[i].length;a1&&(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,r="[+]";if(r+=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),r+=e._mask(e)):r+="9{+}",void 0!==e.digits&&0!==e.digits){var o=e.digits.toString().split(",");isFinite(o[0])&&o[1]&&isFinite(o[1])?r+=n+t+"{"+e.digits+"}":(isNaN(e.digits)||parseInt(e.digits)>0)&&(e.digitsOptional||e.jitMasking?(a=r+n+t+"{0,"+e.digits+"}",e.keepStatic=!0):r+=n+t+"{"+e.digits+"}")}else e.inputmode="numeric";return r+=c(e.suffix,e),r+="[-]",a&&(r=[a+c(e.suffix,e)+"[-]",r]),e.greedy=!1,function(e){void 0===e.parseMinMaxOptions&&(null!==e.min&&(e.min=e.min.toString().replace(new RegExp((0,i.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,i.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.substituteRadixPoint&&(e.substitutes["."==e.radixPoint?",":"."]=e.radixPoint),r},_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,substituteRadixPoint:!0,definitions:{0:{validator:p},1:{validator:p,definitionSymbol:"9"},9:{validator:"[0-90-9٠-٩۰-۹]",definitionSymbol:"*"},"+":{validator:function(e,t,n,i,a){return a.allowMinus&&("-"===e||e===a.negationSymbol.front)}},"-":{validator:function(e,t,n,i,a){return a.allowMinus&&e===a.negationSymbol.back}}},preValidation:function(e,t,n,i,a,r,o,s){var l=this;if(!1!==a.__financeInput&&n===a.radixPoint)return!1;var c=e.indexOf(a.radixPoint),u=t;if(t=function(e,t,n,i,a){return a._radixDance&&a.numericInput&&t!==a.negationSymbol.back&&e<=n&&(n>0||t==a.radixPoint)&&(void 0===i.validPositions[e-1]||i.validPositions[e-1].input!==a.negationSymbol.back)&&(e-=1),e}(t,n,c,r,a),"-"===n||n===a.negationSymbol.front){if(!0!==a.allowMinus)return!1;var p=!1,h=d("+",r),m=d("-",r);return-1!==h&&(p=[h],-1!==m&&p.push(m)),!1!==p?{remove:p,caret:u-a.negationSymbol.back.length}:{insert:[{pos:f.call(l,"+",r),c:a.negationSymbol.front,fromIsValid:!0},{pos:f.call(l,"-",r),c:a.negationSymbol.back,fromIsValid:void 0}],caret:u+a.negationSymbol.back.length}}if(n===a.groupSeparator)return{caret:u};if(s)return!0;if(-1!==c&&!0===a._radixDance&&!1===i&&n===a.radixPoint&&void 0!==a.digits&&(isNaN(a.digits)||parseInt(a.digits)>0)&&c!==t){var v=f.call(l,a.radixPoint,r);return r.validPositions[v]&&(r.validPositions[v].generatedInput=r.validPositions[v].generated||!1),{caret:a._radixDance&&t===c-1?c+1:c}}if(!1===a.__financeInput)if(i){if(a.digitsOptional)return{rewritePosition:o.end};if(!a.digitsOptional){if(o.begin>c&&o.end<=c)return n===a.radixPoint?{insert:{pos:c+1,c:"0",fromIsValid:!0},rewritePosition:c}:{rewritePosition:c+1};if(o.begin0&&""===this.__valueGet.call(this.el))return{rewritePosition:c};return{rewritePosition:t}},postValidation:function(e,t,n,i,a,r,o){if(!1===i)return i;if(o)return!0;if(null!==a.min||null!==a.max){var s=a.onUnMask(e.slice().reverse().join(""),void 0,l.extend({},a,{unmaskAsNumber:!0}));if(null!==a.min&&sa.min.toString().length||s<0))return!1;if(null!==a.max&&s>a.max)return!!a.SetMaxOnOverflow&&{refreshFromBuffer:!0,buffer:u(a.max.toString().replace(".",a.radixPoint).split(""),a.digits,a).reverse()}}return i},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,i.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(i.default.call(this,n.radixPoint),".")),a=(a=a.replace(new RegExp("^"+(0,i.default)(n.negationSymbol.front)),"-")).replace(new RegExp((0,i.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,i.default)(t.negationSymbol.front)),"-")).replace(new RegExp((0,i.default)(t.negationSymbol.back)+"$"),"")).replace(t.prefix,"")).replace(t.suffix,"")).replace(new RegExp((0,i.default)(t.groupSeparator)+"([0-9]{3})","g"),"$1"),","===t.radixPoint&&(n=n.replace((0,i.default)(t.radixPoint),".")),isFinite(n)},onBeforeMask:function(e,t){var n;e=null!==(n=e)&&void 0!==n?n:"";var a=t.radixPoint||",";isFinite(t.digits)&&(t.digits=parseInt(t.digits)),"number"!=typeof e&&"number"!==t.inputType||""===a||(e=e.toString().replace(".",a));var r="-"===e.charAt(0)||e.charAt(0)===t.negationSymbol.front,o=e.split(a),s=o[0].replace(/[^\-0-9]/g,""),l=o.length>1?o[1].replace(/[^0-9]/g,""):"",c=o.length>1;e=s+(""!==l?a+l:l);var f=0;if(""!==a&&(f=t.digitsOptional?t.digitst.max&&(e=t.max.toString().replace(".",a))}return r&&"-"!==e.charAt(0)&&(e="-"+e),u(e.toString().split(""),f,t,c).join("")},onBeforeWrite:function(e,t,n,a){function r(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 o,s;if(a.stripLeadingZeroes&&(s=function(e,t){var n=new RegExp("(^"+(""!==t.negationSymbol.front?(0,i.default)(t.negationSymbol.front)+"?":"")+(0,i.default)(t.prefix)+")(.*)("+(0,i.default)(t.suffix)+(""!=t.negationSymbol.back?(0,i.default)(t.negationSymbol.back)+"?":"")+"$)").exec(e.slice().reverse().join("")),a=n?n[2]:"",r=!1;return a&&(a=a.split(t.radixPoint.charAt(0))[0],r=new RegExp("^[0"+t.groupSeparator+"]*").exec(a)),!(!r||!(r[0].length>1||r[0].length>0&&r[0].length0;d--)this.maskset.validPositions.splice(c+d,1),delete t[c+d];if(e)switch(e.type){case"blur":case"checkval":if(null!==a.min){var p=a.onUnMask(t.slice().reverse().join(""),void 0,l.extend({},a,{unmaskAsNumber:!0}));if(null!==a.min&&p1)return this.inputmask.__valueSet.call(this,parseFloat(this.inputmask.unmaskedvalue())*parseInt(s)),o.trigger("setvalue"),!1}if(e.ctrlKey)switch(e.key){case r.keys.ArrowUp:return this.inputmask.__valueSet.call(this,parseFloat(this.inputmask.unmaskedvalue())+parseInt(i.step)),o.trigger("setvalue"),!1;case r.keys.ArrowDown:return this.inputmask.__valueSet.call(this,parseFloat(this.inputmask.unmaskedvalue())-parseInt(i.step)),o.trigger("setvalue"),!1}if(!e.shiftKey&&(e.key===r.keys.Delete||e.key===r.keys.Backspace||e.key===r.keys.BACKSPACE_SAFARI)&&n.begin!==t.length){if(t[e.key===r.keys.Delete?n.begin-1:n.end]===i.negationSymbol.front)return a=t.slice().reverse(),""!==i.negationSymbol.front&&a.shift(),""!==i.negationSymbol.back&&a.pop(),o.trigger("setvalue",[a.join(""),n.begin]),!1;if(!0===i._radixDance){var f,d=t.indexOf(i.radixPoint);if(i.digitsOptional){if(0===d)return(a=t.slice().reverse()).pop(),o.trigger("setvalue",[a.join(""),n.begin>=a.length?a.length:n.begin]),!1}else if(-1!==d&&(n.begin=a.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){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=!("undefined"==typeof window||!window.document||!window.document.createElement);t.default=n?window:{}},7760:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.HandleNativePlaceholder=function(e,t){var n=e?e.inputmask:this;if(i.ie){if(e.inputmask._valueGet()!==t&&(e.placeholder!==t||""===e.placeholder)){var a=o.getBuffer.call(n).slice(),r=e.inputmask._valueGet();if(r!==t){var s=o.getLastValidPosition.call(n);-1===s&&r===o.getBufferTemplate.call(n).join("")?a=[]:-1!==s&&u.call(n,a),d(e,a)}}}else e.placeholder!==t&&(e.placeholder=t,""===e.placeholder&&e.removeAttribute("placeholder"))},t.applyInputValue=c,t.checkVal=f,t.clearOptionalTail=u,t.unmaskedvalue=function(e){var t=e?e.inputmask:this,n=t.opts,i=t.maskset;if(e){if(void 0===e.inputmask)return e.value;e.inputmask&&e.inputmask.refreshValue&&c(e,e.inputmask._valueGet(!0))}for(var a=[],r=i.validPositions,s=0,l=r.length;s0&&" "===n[i-1];)i--;var a=0===i&&!o.isMask.call(u,e)&&(l.getTest.call(u,e).match.nativeDef===t.charAt(0)||!0===l.getTest.call(u,e).match.static&&l.getTest.call(u,e).match.nativeDef==="'"+t.charAt(0)||" "===l.getTest.call(u,e).match.nativeDef&&(l.getTest.call(u,e+1).match.nativeDef===t.charAt(0)||!0===l.getTest.call(u,e+1).match.static&&l.getTest.call(u,e+1).match.nativeDef==="'"+t.charAt(0)));if(!a&&i>0&&!o.isMask.call(u,e,!1,!0)){var r=o.seekNext.call(u,e);u.caretPos.begin0){var x,S,w=o.seekNext.call(u,-1,void 0,!1);if(!s.isComplete.call(u,o.getBuffer.call(u))&&k.length<=w||s.isComplete.call(u,o.getBuffer.call(u))&&k.length>0&&k.length!==w&&0===k[0])for(var P=w;void 0!==(x=k.shift());)if(xi&&!f.isMask.call(this,a);a--);return n.splice(i,a+1-i),d.isComplete.call(this,n)&&e===(this.isRTL?f.getBuffer.call(this).slice().reverse().join(""):f.getBuffer.call(this).join(""))},format:function(e,t){this.maskset=this.maskset||(0,u.generateMaskSet)(this.opts,this.noMasksCache);var n=("function"==typeof this.opts.onBeforeMask&&this.opts.onBeforeMask.call(this,e,this.opts)||e).split("");l.checkVal.call(this,void 0,!0,!1,n);var i=this.isRTL?f.getBuffer.call(this).slice().reverse().join(""):f.getBuffer.call(this).join("");return t?{value:i,metadata:this.getmetadata()}:i},setValue:function(e){this.el&&(0,r.default)(this.el).trigger("setvalue",[e])},analyseMask:u.analyseMask},y.extendDefaults=function(e){r.default.extend(!0,y.prototype.defaults,e)},y.extendDefinitions=function(e){r.default.extend(!0,y.prototype.definitions,e)},y.extendAliases=function(e){r.default.extend(!0,y.prototype.aliases,e)},y.format=function(e,t,n){return y(t).format(e,n)},y.unmask=function(e,t){return y(t).unmaskedvalue(e)},y.isValid=function(e,t){return y(t).isValid(e)},y.remove=function(e){"string"==typeof e&&(e=v.getElementById(e)||v.querySelectorAll(e)),(e=e.nodeName?[e]:e).forEach(function(e){e.inputmask&&e.inputmask.remove()})},y.setValue=function(e,t){"string"==typeof e&&(e=v.getElementById(e)||v.querySelectorAll(e)),(e=e.nodeName?[e]:e).forEach(function(e){e.inputmask?e.inputmask.setValue(t):(0,r.default)(e).trigger("setvalue",[t])})},y.dependencyLib=r.default,s.default.Inputmask=y,t.default=y},5296:function(e,t,n){function i(e){return i="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},i(e)}var a=f(n(9380)),r=f(n(2394));function o(e){var t="function"==typeof Map?new Map:void 0;return o=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;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,n)}function n(){return s(e,arguments,u(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),c(n,e)},o(e)}function s(e,t,n){return s=l()?Reflect.construct.bind():function(e,t,n){var i=[null];i.push.apply(i,t);var a=new(Function.bind.apply(e,i));return n&&c(a,n.prototype),a},s.apply(null,arguments)}function l(){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 c(e,t){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},c(e,t)}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function f(e){return e&&e.__esModule?e:{default:e}}var d=a.default.document;if(d&&d.head&&d.head.attachShadow&&a.default.customElements&&void 0===a.default.customElements.get("input-mask")){var p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c(e,t)}(o,e);var t,n,a=function(e){var t=l();return function(){var n,a=u(e);if(t){var r=u(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return function(e,t){if(t&&("object"===i(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)}(this,n)}}(o);function o(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o);var t=(e=a.call(this)).getAttributeNames(),n=e.attachShadow({mode:"closed"});for(var i in e.input=d.createElement("input"),e.input.type="text",n.appendChild(e.input),t)Object.prototype.hasOwnProperty.call(t,i)&&e.input.setAttribute(t[i],e.getAttribute(t[i]));var s=new r.default;return s.dataAttribute="",s.mask(e.input),e.input.inputmask.shadowRoot=n,e}return t=o,(n=[{key:"attributeChangedCallback",value:function(e,t,n){this.input.setAttribute(e,n)}},{key:"value",get:function(){return this.input.value},set:function(e){this.input.value=e}}])&&function(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,i=new Array(t);n0){if(k(c=v[v.length-1],a),c.isAlternator){u=v.pop();for(var e=0;e0?(c=v[v.length-1]).matches.push(u):m.matches.push(u)}}else k(m,a)}function x(e){var t=new o.default(!0);return t.openGroup=!1,t.matches=e,t}function S(){if((l=v.pop()).openGroup=!1,void 0!==l)if(v.length>0){if((c=v[v.length-1]).matches.push(l),c.isAlternator){u=v.pop();for(var e=0;e0?(c=v[v.length-1]).matches.push(u):m.matches.push(u)}}else m.matches.push(l);else b()}function w(e){var t=e.pop();return t.isQuantifier&&(t=x([e.pop(),t])),t}for(t&&(n.optionalmarker[0]=void 0,n.optionalmarker[1]=void 0);i=t?p.exec(e):d.exec(e);){if(a=i[0],t){switch(a.charAt(0)){case"?":a="{0,1}";break;case"+":case"*":a="{"+a+"}";break;case"|":if(0===v.length){var P=x(m.matches);P.openGroup=!0,v.push(P),m.matches=[],y=!0}}switch(a){case"\\d":a="[0-9]";break;case"\\p":a+=p.exec(e)[0],a+=p.exec(e)[0]}}if(h)b();else switch(a.charAt(0)){case"$":case"^":t||b();break;case n.escapeChar:h=!0,t&&b();break;case n.optionalmarker[1]:case n.groupmarker[1]:S();break;case n.optionalmarker[0]:v.push(new o.default(!1,!0));break;case n.groupmarker[0]:v.push(new o.default(!0));break;case n.quantifiermarker[0]:var _=new o.default(!1,!1,!0),E=(a=a.replace(/[{}?]/g,"")).split("|"),O=E[0].split(","),M=isNaN(O[0])?O[0]:parseInt(O[0]),T=1===O.length?M:isNaN(O[1])?O[1]:parseInt(O[1]),j=isNaN(E[1])?E[1]:parseInt(E[1]);"*"!==M&&"+"!==M||(M="*"===T?0:1),_.quantifier={min:M,max:T,jit:j};var A=v.length>0?v[v.length-1].matches:m.matches;(i=A.pop()).isGroup||(i=x([i])),A.push(i),A.push(_);break;case n.alternatormarker:if(v.length>0){var C=(c=v[v.length-1]).matches[c.matches.length-1];f=c.openGroup&&(void 0===C.matches||!1===C.isGroup&&!1===C.isAlternator)?v.pop():w(c.matches)}else f=w(m.matches);if(f.isAlternator)v.push(f);else if(f.alternatorGroup?(u=v.pop(),f.alternatorGroup=!1):u=new o.default(!1,!1,!1,!0),u.matches.push(f),v.push(u),f.openGroup){f.openGroup=!1;var L=new o.default(!0);L.alternatorGroup=!0,v.push(L)}break;default:b()}}for(y&&S();v.length>0;)l=v.pop(),m.matches.push(l);return m.matches.length>0&&(function e(i){i&&i.matches&&i.matches.forEach(function(a,r){var o=i.matches[r+1];(void 0===o||void 0===o.matches||!1===o.isQuantifier)&&a&&a.isGroup&&(a.isGroup=!1,t||(k(a,n.groupmarker[0],0),!0!==a.openGroup&&k(a,n.groupmarker[1]))),e(a)})}(m),g.push(m)),(n.numericInput||n.isRTL)&&function e(t){for(var i in t.matches=t.matches.reverse(),t.matches)if(Object.prototype.hasOwnProperty.call(t.matches,i)){var a=parseInt(i);if(t.matches[i].isQuantifier&&t.matches[a+1]&&t.matches[a+1].isGroup){var r=t.matches[i];t.matches.splice(i,1),t.matches.splice(a+1,0,r)}void 0!==t.matches[i].matches?t.matches[i]=e(t.matches[i]):t.matches[i]=((o=t.matches[i])===n.optionalmarker[0]?o=n.optionalmarker[1]:o===n.optionalmarker[1]?o=n.optionalmarker[0]:o===n.groupmarker[0]?o=n.groupmarker[1]:o===n.groupmarker[1]&&(o=n.groupmarker[0]),o)}var o;return t}(g[0]),g},t.generateMaskSet=function(e,t){var n;function o(e,t){var n=t.repeat,i=t.groupmarker,r=t.quantifiermarker,o=t.keepStatic;if(n>0||"*"===n||"+"===n){var s="*"===n?0:"+"===n?1:n;if(s!=n)e=i[0]+e+i[1]+r[0]+s+","+n+r[1];else for(var c=e,u=1;u1){null===e.keepStatic&&(e.keepStatic=!0);var u=e.groupmarker[0];return(e.isRTL?e.mask.reverse():e.mask).forEach(function(t){u.length>1&&(u+=e.alternatormarker),void 0!==t.mask&&"function"!=typeof t.mask?u+=t.mask:u+=t}),c(u+=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?c(e.mask.mask,e.mask,e):c(e.mask,e.mask,e),null===e.keepStatic&&(e.keepStatic=!1),n};var i=c(n(4963)),a=c(n(7184)),r=c(n(2394)),o=c(n(9695));function s(e){return s="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},s(e)}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n>>0;if(0===i)return!1;for(var a=0|t,r=Math.max(a>=0?a:i-Math.abs(a),0);rthis.length)&&-1!==this.indexOf(e,t)})},8711:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.caret=function(e,t,n,i,r){var o,s=this,l=this.opts;if(void 0===t)return"selectionStart"in e&&"selectionEnd"in e?(t=e.selectionStart,n=e.selectionEnd):a.default.getSelection?(o=a.default.getSelection().getRangeAt(0)).commonAncestorContainer.parentNode!==e&&o.commonAncestorContainer!==e||(t=o.startOffset,n=o.endOffset):document.selection&&document.selection.createRange&&(n=(t=0-(o=document.selection.createRange()).duplicate().moveStart("character",-e.inputmask._valueGet().length))+o.text.length),{begin:i?t:f.call(s,t),end:i?n:f.call(s,n)};if(Array.isArray(t)&&(n=s.isRTL?t[0]:t[1],t=s.isRTL?t[1]:t[0]),void 0!==t.begin&&(n=s.isRTL?t.begin:t.end,t=s.isRTL?t.end:t.begin),"number"==typeof t){t=i?t:f.call(s,t),n="number"==typeof(n=i?n:f.call(s,n))?n:t;var c=parseInt(((e.ownerDocument.defaultView||a.default).getComputedStyle?(e.ownerDocument.defaultView||a.default).getComputedStyle(e,null):e.currentStyle).fontSize)*n;if(e.scrollLeft=c>e.scrollWidth?c:0,e.inputmask.caretPos={begin:t,end:n},l.insertModeVisual&&!1===l.insertMode&&t===n&&(r||n++),e===(e.inputmask.shadowRoot||e.ownerDocument).activeElement){if("setSelectionRange"in e)e.setSelectionRange(t,n);else if(a.default.getSelection){if(o=document.createRange(),void 0===e.firstChild||null===e.firstChild){var u=document.createTextNode("");e.appendChild(u)}o.setStart(e.firstChild,tc&&((n=u[t]).match.optionality||n.match.optionalQuantifier&&n.match.newBlockMarker||m&&(m!==u[t].locator[f.alternation]&&!0!==n.match.static||!0===n.match.static&&n.locator[f.alternation]&&r.checkAlternationMatch.call(i,n.locator[f.alternation].toString().split(","),m.toString().split(","))&&""!==o.getTests.call(i,t)[0].def))&&d[t]===o.getPlaceholder.call(i,t,n.match);t--)p--;return e?{l:p,def:u[p]?u[p].match:void 0}:p},t.determineNewCaretPosition=function(e,t,n){var i,a,r,f=this,d=f.maskset,p=f.opts;if(t&&(f.isRTL?e.end=e.begin:e.begin=e.end),e.begin===e.end){switch(n=n||p.positionCaretOnClick){case"none":break;case"select":e={begin:0,end:s.call(f).length};break;case"ignore":e.end=e.begin=u.call(f,l.call(f));break;case"radixFocus":if(f.clicked>1&&0===d.validPositions.length)break;if(function(e){if(""!==p.radixPoint&&0!==p.digits){var t=d.validPositions;if(void 0===t[e]||void 0===t[e].input){if(e=y||i===r)&&(r=y)}e.end=e.begin=r}}return e}},t.getBuffer=s,t.getBufferTemplate=function(){var e=this.maskset;return void 0===e._buffer&&(e._buffer=o.getMaskTemplate.call(this,!1,1),void 0===e.buffer&&(e.buffer=e._buffer.slice())),e._buffer},t.getLastValidPosition=l,t.isMask=c,t.resetMaskSet=function(e){var t=this.maskset;t.buffer=void 0,!0!==e&&(t.validPositions=[],t.p=0),!1===e&&(t.tests={},t.jitOffset={})},t.seekNext=u,t.seekPrevious=function(e,t){var n=this,i=e-1;if(e<=0)return 0;for(;i>0&&(!0===t&&(!0!==o.getTest.call(n,i).match.newBlockMarker||!c.call(n,i,void 0,!0))||!0!==t&&!c.call(n,i,void 0,!0));)i--;return i},t.translatePosition=f;var i,a=(i=n(9380))&&i.__esModule?i:{default:i},r=n(7215),o=n(4713);function s(e){var t=this,n=t.maskset;return void 0!==n.buffer&&!0!==e||(n.buffer=o.getMaskTemplate.call(t,!0,l.call(t),!0),void 0===n._buffer&&(n._buffer=n.buffer.slice())),n.buffer}function l(e,t,n){var i=this.maskset,a=-1,r=-1,o=n||i.validPositions;void 0===e&&(e=-1);for(var s=0,l=o.length;s=e&&(r=s));return-1===a||a===e?r:-1===r||e-a-1){if(n){var s=o.getTests.call(i,e);return s.length>1+(""===s[s.length-1].match.def?1:0)}var l=o.determineTestTemplate.call(i,e,o.getTests.call(i,e)),c=o.getPlaceholder.call(i,e,l.match);return l.match.def!==c}return!1}function u(e,t,n){var i=this;void 0===n&&(n=!0);for(var a=e+1;""!==o.getTest.call(i,a).match.def&&(!0===t&&(!0!==o.getTest.call(i,a).match.newBlockMarker||!c.call(i,a,void 0,!0))||!0!==t&&!c.call(i,a,void 0,n));)a++;return a}function f(e){var t=this.opts,n=this.el;return!this.isRTL||"number"!=typeof e||t.greedy&&""===t.placeholder||!n||(e=this._valueGet().length-e)<0&&(e=0),e}},4713:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.determineTestTemplate=f,t.getDecisionTaker=l,t.getMaskTemplate=function(e,t,n,i,a){var r=this,o=this.opts,s=this.maskset,l=o.greedy;a&&o.greedy&&(o.greedy=!1,r.maskset.tests={}),t=t||0;var d,p,m,v,g=[],y=0;do{if(!0===e&&s.validPositions[y])p=(m=a&&s.validPositions[y].match.optionality&&void 0===s.validPositions[y+1]&&(!0===s.validPositions[y].generatedInput||s.validPositions[y].input==o.skipOptionalPartCharacter&&y>0)?f.call(r,y,h.call(r,y,d,y-1)):s.validPositions[y]).match,d=m.locator.slice(),g.push(!0===n?m.input:!1===n?p.nativeDef:c.call(r,y,p));else{p=(m=u.call(r,y,d,y-1)).match,d=m.locator.slice();var k=!0!==i&&(!1!==o.jitMasking?o.jitMasking:p.jit);(v=(v||s.validPositions[y-1])&&p.static&&p.def!==o.groupSeparator&&null===p.fn)||!1===k||void 0===k||"number"==typeof k&&isFinite(k)&&k>y?g.push(!1===n?p.nativeDef:c.call(r,g.length,p)):v=!1}y++}while(!0!==p.static||""!==p.def||t>y);return""===g[g.length-1]&&g.pop(),!1===n&&void 0!==s.maskLength||(s.maskLength=y-1),o.greedy=l,g},t.getPlaceholder=c,t.getTest=d,t.getTestTemplate=u,t.getTests=h,t.isSubsetOf=p;var i,a=(i=n(2394))&&i.__esModule?i:{default:i},r=n(8711);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 s(e,t){var n=(null!=e.alternation?e.mloc[l(e)]:e.locator).join("");if(""!==n)for(n=n.split(":")[0];n.length0&&(t=t.split(",")[0]),void 0!==t?t.toString():""}function c(e,t,n){var i=this,a=this.opts,s=this.maskset;if(void 0!==(t=t||d.call(i,e).match).placeholder||!0===n){if(""!==t.placeholder&&!0===t.static&&!0!==t.generated){var l=r.getLastValidPosition.call(i,e),c=r.seekNext.call(i,l);return(n?e<=c:e-1&&void 0===s.validPositions[e]){var u,f=h.call(i,e),p=[];if("string"==typeof a.placeholder&&f.length>1+(""===f[f.length-1].match.def?1:0))for(var m=0;m1&&/[0-9a-bA-Z]/.test(p[0].match.def)))return a.placeholder.charAt(e%a.placeholder.length)}return t.def}return"object"===o(a.placeholder)?t.def:a.placeholder.charAt(e%a.placeholder.length)}function u(e,t,n){return this.maskset.validPositions[e]||f.call(this,e,h.call(this,e,t?t.slice():t,n))}function f(e,t){var n=this.opts,i=0,a=function(e,t){var n=0,i=!1;return t.forEach(function(e){e.match.optionality&&(0!==n&&n!==e.match.optionality&&(i=!0),(0===n||n>e.match.optionality)&&(n=e.match.optionality))}),n&&(0==e||1==t.length?n=0:i||(n=0)),n}(e,t);e=e>0?e-1:0;var r,o,l,c=s(d.call(this,e));n.greedy&&t.length>1&&""===t[t.length-1].match.def&&(i=1);for(var u=0;u0&&"master"===l.match.newBlockMarker&&(!f.match.optionality||f.match.optionality-a<1||!f.match.newBlockMarker)||l&&!n.greedy&&l.match.optionalQuantifier&&!f.match.optionalQuantifier)&&(o=p,l=f)}return l}function d(e,t){var n=this.maskset;return n.validPositions[e]?n.validPositions[e]:(t||h.call(this,e))[0]}function p(e,t,n){function i(e){for(var t,n=[],i=-1,a=0,r=e.length;at.alternation)for(var a=0;an&&(e.alternation=n),!0}return e.alternation=void 0,!1}(n)}function _(e,t){if(e.locator.length!==t.locator.length)return!1;for(var n=e.alternation+1;ne+c._maxTestPos)throw new Error("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. ".concat(l.mask));if(h===e&&void 0===r.matches){if(v.push({match:r,locator:s.reverse(),cd:y,mloc:{}}),!r.optionality||void 0!==d||!(c.definitions&&c.definitions[r.nativeDef]&&c.definitions[r.nativeDef].optional||a.default.prototype.definitions[r.nativeDef]&&a.default.prototype.definitions[r.nativeDef].optional))return!0;g=!0,h=e}else if(void 0!==r.matches){if(r.isGroup&&d!==r)return function(){if(r=f(t.matches[t.matches.indexOf(r)+1],s,d))return!0}();if(r.isOptional)return function(){var t=r,a=v.length;if(r=b(r,n,s,d),v.length>0){if(v.forEach(function(e,t){t>=a&&(e.match.optionality=e.match.optionality?e.match.optionality+1:1)}),i=v[v.length-1].match,void 0!==d||!m(i,t))return r;g=!0,h=e}}();if(r.isAlternator)return function(){function i(e){for(var t,n=e.matches[0].matches?e.matches[0].matches.length:1,i=0;i0?n.shift():-1;if(-1===E||"string"==typeof E){var O,M=h,T=n.slice(),j=[];if("string"==typeof E)j=E.split(",");else for(O=0;O=c.keepStatic)&&(j=j.slice(0,1));for(var I=0;Im.matches[0].matches.length)break;a=v.slice(),h=M,v=[];for(var F=0;F0&&k,r=y.length>0&&!k,k&&g&&!r&&v.forEach(function(e,t){e.unMatchedAlternationStopped=!0}),n=T.slice()}else r=f(m.matches[E]||t.matches[E],[E].concat(s),d);if(r)return!0}();if(r.isQuantifier&&d!==t.matches[t.matches.indexOf(r)-1])return function(){for(var a=r,o=!1,u=n.length>0?n.shift():0;u<(isNaN(a.quantifier.max)?u+1:a.quantifier.max)&&h<=e;u++){var d=t.matches[t.matches.indexOf(a)-1];if(r=f(d,[u].concat(s),d)){if(v.forEach(function(t,n){(i=x(d,t.match)?t.match:v[v.length-1].match).optionalQuantifier=u>=a.quantifier.min,i.jit=(u+1)*(d.matches.indexOf(i)+1)>a.quantifier.jit,i.optionalQuantifier&&m(i,d)&&(g=!0,h=e,c.greedy&&null==l.validPositions[e-1]&&u>a.quantifier.min&&-1!=["*","+"].indexOf(a.quantifier.max)&&(v.pop(),y=void 0),o=!0,r=!1),!o&&i.jit&&(l.jitOffset[e]=d.matches.length-d.matches.indexOf(i))}),o)break;return!0}}}();if(r=b(r,n,s,d))return!0}else h++}for(var d=n.length>0?n.shift():0;de)break}}function x(e,t){var n=-1!=e.matches.indexOf(t);return n||e.matches.forEach(function(e,i){void 0===e.matches||n||(n=x(e,t))}),n}if(e>-1){if(void 0===t){for(var S,w=e-1;void 0===(S=l.validPositions[w]||l.tests[w])&&w>-1;)w--;void 0!==S&&w>-1&&(m=function(e,t){var n,i=[];return Array.isArray(t)||(t=[t]),t.length>0&&(void 0===t[0].alternation||!0===c.keepStatic?0===(i=f.call(o,e,t.slice()).locator.slice()).length&&(i=t[0].locator.slice()):t.forEach(function(e){""!==e.def&&(0===i.length?(n=e.alternation,i=e.locator.slice()):e.locator[n]&&-1===i[n].toString().indexOf(e.locator[n])&&(i[n]+=","+e.locator[n]))})),i}(w,S),y=m.join(""),h=w)}if(l.tests[e]&&l.tests[e][0].cd===y)return l.tests[e];for(var P=m.shift();Pe);P++);}return(0===v.length||g)&&v.push({match:{fn:null,static:!0,optionality:!1,casing:null,def:"",placeholder:""},locator:k&&0===v.filter(function(e){return!0!==e.unMatchedAlternationStopped}).length?[0]:[],mloc:{},cd:y}),void 0!==t&&l.tests[e]?r=s.extend(!0,[],v):(l.tests[e]=s.extend(!0,[],v),r=l.tests[e]),v.forEach(function(e){e.match.optionality=e.match.defOptionality||!1}),r}},7215:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.alternate=s,t.checkAlternationMatch=function(e,t,n){for(var i,a=this.opts.greedy?t:t.slice(0,1),r=!1,o=void 0!==n?n.split(","):[],s=0;s=r.getBuffer.call(c).length&&h>=n.end&&(n.end=h+1),t===a.keys.Backspace?n.end-n.begin<1&&(n.begin=r.seekPrevious.call(c,n.begin)):t===a.keys.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!==(p=m.call(c,n))&&((!0!==i&&!1!==f.keepStatic||null!==f.regex&&-1!==o.getTest.call(c,n.begin).match.def.indexOf("|"))&&s.call(c,!0),!0!==i&&(u.p=t===a.keys.Delete?n.begin+p:n.begin,u.p=r.determineNewCaretPosition.call(c,{begin:u.p,end:u.p},!1,!1===f.insertMode&&t===a.keys.Backspace?"none":void 0).begin))},t.isComplete=c,t.isSelection=u,t.isValid=f,t.refreshFromBuffer=p,t.revalidateMask=m;var i=n(6030),a=n(2839),r=n(8711),o=n(4713);function s(e,t,n,i,a,l){var c=this,u=this.dependencyLib,d=this.opts,p=c.maskset;if(!c.hasAlternator)return!1;var h,m,v,g,y,k,b,x,S,w,P,_=u.extend(!0,[],p.validPositions),E=u.extend(!0,{},p.tests),O=!1,M=!1,T=void 0!==a?a:r.getLastValidPosition.call(c);if(l&&(w=l.begin,P=l.end,l.begin>l.end&&(w=l.end,P=l.begin)),-1===T&&void 0===a)h=0,m=(g=o.getTest.call(c,h)).alternation;else for(;T>=0;T--)if((v=p.validPositions[T])&&void 0!==v.alternation){if(T<=(e||0)&&g&&g.locator[v.alternation]!==v.locator[v.alternation])break;h=T,m=p.validPositions[h].alternation,g=v}if(void 0!==m){b=parseInt(h),p.excludes[b]=p.excludes[b]||[],!0!==e&&p.excludes[b].push((0,o.getDecisionTaker)(g)+":"+g.alternation);var j=[],A=-1;for(y=b;b=P)&&j.push(k.input),p.validPositions.splice(b,1);for(-1===A&&void 0!==t&&(j.push(t),A=j.length-1);void 0!==p.excludes[b]&&p.excludes[b].length<10;){for(p.tests={},r.resetMaskSet.call(c,!0),O=!0,y=0;yt:e.end-e.begin>t}function f(e,t,n,i,a,d,v){var g=this,y=this.dependencyLib,k=this.opts,b=g.maskset;n=!0===n;var x=e;function S(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 g.isRTL?e.pos-t.pos:t.pos-e.pos}).forEach(function(e){m.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 g.isRTL?t.pos-e.pos: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:i)}),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 w(t,n,a){var s=!1;return o.getTests.call(g,t).every(function(c,f){var d=c.match;if(r.getBuffer.call(g,!0),!1!==(s=(!d.jit||void 0!==b.validPositions[r.seekPrevious.call(g,t)])&&(null!=d.fn?d.fn.test(n,b,t,a,k,u.call(g,e)):(n===d.def||n===k.skipOptionalPartCharacter)&&""!==d.def&&{c:o.getPlaceholder.call(g,t,d,!0)||d.def,pos:t}))){var p=void 0!==s.c?s.c:n,h=t;return p=p===k.skipOptionalPartCharacter&&!0===d.static?o.getPlaceholder.call(g,t,d,!0)||d.def:p,!0!==(s=S(s))&&void 0!==s.pos&&s.pos!==t&&(h=s.pos),!0!==s&&void 0===s.pos&&void 0===s.c||!1===m.call(g,e,y.extend({},c,{input:l.call(g,p,d,h)}),i,h)&&(s=!1),!1}return!0}),s}void 0!==e.begin&&(x=g.isRTL?e.end:e.begin);var P=!0,_=y.extend(!0,[],b.validPositions);if(!1===k.keepStatic&&void 0!==b.excludes[x]&&!0!==a&&!0!==i)for(var E=x;E<(g.isRTL?e.begin:e.end);E++)void 0!==b.excludes[E]&&(b.excludes[E]=void 0,delete b.tests[E]);if("function"==typeof k.preValidation&&!0!==i&&!0!==d&&(P=S(P=k.preValidation.call(g,r.getBuffer.call(g),x,t,u.call(g,e),k,b,e,n||a))),!0===P){if(P=w(x,t,n),(!n||!0===i)&&!1===P&&!0!==d){var O=b.validPositions[x];if(!O||!0!==O.match.static||O.match.def!==t&&t!==k.skipOptionalPartCharacter){if(k.insertMode||void 0===b.validPositions[r.seekNext.call(g,x)]||e.end>x){var M=!1;if(b.jitOffset[x]&&void 0===b.validPositions[r.seekNext.call(g,x)]&&!1!==(P=f.call(g,x+b.jitOffset[x],t,!0,!0))&&(!0!==a&&(P.caret=x),M=!0),e.end>x&&(b.validPositions[x]=void 0),!M&&!r.isMask.call(g,x,k.keepStatic&&0===x))for(var T=x+1,j=r.seekNext.call(g,x,!1,0!==x);T<=j;T++)if(!1!==(P=w(T,t,n))){P=h.call(g,x,void 0!==P.pos?P.pos:T)||P,x=T;break}}}else P={caret:r.seekNext.call(g,x)}}g.hasAlternator&&!0!==a&&!n&&(a=!0,!1===P&&k.keepStatic&&(c.call(g,r.getBuffer.call(g))||0===x)?P=s.call(g,x,t,n,i,void 0,e):(u.call(g,e)&&b.tests[x]&&b.tests[x].length>1&&k.keepStatic||1==P&&!0!==k.numericInput&&b.tests[x]&&b.tests[x].length>1&&r.getLastValidPosition.call(g,void 0,!0)>x)&&(P=s.call(g,!0))),!0===P&&(P={pos:x})}if("function"==typeof k.postValidation&&!0!==i&&!0!==d){var A=k.postValidation.call(g,r.getBuffer.call(g,!0),void 0!==e.begin?g.isRTL?e.end:e.begin:e,t,P,k,b,n,v);void 0!==A&&(P=!0===A?P:A)}P&&void 0===P.pos&&(P.pos=x),!1===P||!0===d?(r.resetMaskSet.call(g,!0),b.validPositions=y.extend(!0,[],_)):h.call(g,void 0,x,!0);var C=S(P);return void 0!==g.maxLength&&r.getBuffer.call(g).length>g.maxLength&&!i&&(r.resetMaskSet.call(g,!0),b.validPositions=y.extend(!0,[],_),C=!1),C}function d(e,t,n){for(var i=this.maskset,a=!1,r=o.getTests.call(this,e),s=0;s0&&!a.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 a&&r}return!1}var h=0,m=void 0!==e.begin?e.begin:e,v=void 0!==e.end?e.end:e,g=!0;if(e.begin>e.end&&(m=e.end,v=e.begin),i=void 0!==i?i:m,void 0===n&&(m!==v||l.insertMode&&void 0!==s.validPositions[i]||void 0===t||t.match.optionalQuantifier||t.match.optionality)){var y,k=c.extend(!0,[],s.validPositions),b=r.getLastValidPosition.call(a,void 0,!0);s.p=m;var x=u.call(a,e)?m:i;for(y=b;y>=x;y--)s.validPositions.splice(y,1),void 0===t&&delete s.tests[y+1];var S,w,P=i,_=P;for(t&&(s.validPositions[i]=c.extend(!0,{},t),_++,P++),null==k[v]&&s.jitOffset[v]&&(v+=s.jitOffset[v]+1),y=t?v:v-1;y<=b;y++){if(void 0!==(S=k[y])&&!0!==S.generatedInput&&(y>=v||y>=m&&p(y,k,{begin:m,end:v}))){for(;""!==o.getTest.call(a,_).match.def;){if(!1!==(w=d.call(a,_,S,l))||"+"===S.match.def){"+"===S.match.def&&r.getBuffer.call(a,!0);var E=f.call(a,_,S.input,"+"!==S.match.def,!0);if(g=!1!==E,P=(E.pos||_)+1,!g&&w)break}else g=!1;if(g){void 0===t&&S.match.static&&y===e.begin&&h++;break}if(!g&&r.getBuffer.call(a),_>s.maskLength)break;_++}""==o.getTest.call(a,_).match.def&&(g=!1),_=P}if(!g)break}if(!g)return s.validPositions=c.extend(!0,[],k),r.resetMaskSet.call(a,!0),!1}else t&&o.getTest.call(a,i).match.cd===t.match.cd&&(s.validPositions[i]=c.extend(!0,{},t));return r.resetMaskSet.call(a,!0),h}}},t={};function n(i){var a=t[i];if(void 0!==a)return a.exports;var r=t[i]={exports:{}};return e[i](r,r.exports,n),r.exports}var i={};return function(){var e=i;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n(7149),n(3194),n(9302),n(4013),n(3851),n(219),n(207),n(5296);var t,a=(t=n(2394))&&t.__esModule?t:{default:t};e.default=a.default}(),i}()});const inputmask=window.Inputmask;window.Inputmask=void 0,void 0===window.BalanceCheck&&(window.BalanceCheck=function(){return{i18n:{},countryCode:null,languageCode:null,threadMetrixInitialized:!1,sessionId:null,initialize:function(e){this.containerElement=document.querySelector(".js-balancecheck-"+e.widgetId),this.formElement=this.containerElement.querySelector("form"),this.pinField=this.containerElement.querySelector("input.js-pin-input"),this.submitButton=this.containerElement.querySelector(".js-balancecheck-submit"),this.checkSuccessSection=this.containerElement.querySelector(".js-check-success"),this.checkAnother=this.containerElement.querySelector(".js-check-another"),this.checkErrorSection=this.containerElement.querySelector(".js-check-error"),this.transactionSection=this.containerElement.querySelector(".js-transactions"),this.pinStatusUrl="/index.php?eID=balanceCheck",this.i18n=e.i18n,this.countryCode=e.countryCode,this.languageCode=e.languageCode,this.additionalParameters=e.additionalParameters,this.generateSessionId(),this.initializeEventHandlers(),this.maskPinField()},initializeEventHandlers:function(){let e=this;this.pinField.addEventListener("focus",function(t){e.pinField.classList.remove("invalid"),e.initializeThreadMetrix()}),this.pinField.addEventListener("input",function(t){e.validateUserInput()})},maskPinField:function(){inputmask({mask:"9999 9999 9999 9999",showMaskOnHover:!1}).mask(this.pinField)},countSubStr:function(e,t){return e.split(t).length-1},formatUserInput:function(){const{value:e,selectionStart:t}=this.pinField,n=t-this.countSubStr(e.slice(0,t),/\D/g),i=e.replace(/\D/g,"").replace(/(\d{0,4})(\d{0,4})(\d{0,4})(\d{0,4}).*/,"$1 $2 $3 $4").trim(),a=n+Math.floor((n+2)/4);this.pinField.value=i,this.pinField.setSelectionRange(a,a)},validateUserInput:function(){this.submitButton.disabled=!this.isSyntacticallyValidPin(this.getPinFieldValue())},initializeThreadMetrix:function(){if(!1===this.threadMetrixInitialized){if(-1!==navigator.userAgent.indexOf("PLAYSTATION")){let e=this.containerElement.querySelector(".balancecheck-tm-container");e.style.width="1px",e.style.height="1px",e.style.overflow="hidden"}let e=document.createElement("script");e.type="text/javascript",e.readyState?e.onreadystatechange=function(){"loaded"!==e.readyState&&"complete"!==e.readyState||(e.onreadystatechange=null,threatmetrix.da027qfC1p("paysafecard.com","8bcyihmu",this.sessionId))}.bind(this):e.onload=function(){threatmetrix.da027qfC1p("tm.paysafecard.com","8bcyihmu",this.sessionId)}.bind(this),e.src="https://static.paysafecard.com/da027qfC1p.js",document.getElementsByTagName("head").item(0).appendChild(e),this.threadMetrixInitialized=!0}},showLoadingIndicator:function(){this.pinField.classList.remove("invalid"),this.pinField.parentElement.classList.add("form__row__input--progress")},hideLoadingIndicator:function(){this.pinField.parentElement.classList.remove("form__row__input--progress")},getPinDetails:function(e){this.showLoadingIndicator(),this.checkSuccessSection.style.display="none",this.checkAnother.style.display="none",this.checkErrorSection.style.display="none",this.transactionSection.classList.remove("show"),this.containerElement.querySelector(".js-trigger-transactions").classList.add("collapsed"),this.containerElement.querySelector(".js-trigger-transactions").setAttribute("aria-expanded","false"),this.isVisibleInViewport(this.pinField)||this.pinField.scrollIntoView({block:"center",behavior:"instant"});let t=this.getPinFieldValue();if(!this.isSyntacticallyValidPin(t))return this.checkErrorSection.querySelector(".js-error-message").innerHTML=this.i18n.error_100,this.checkErrorSection.style.display="block",void grecaptcha.enterprise.reset();let n=t.replace(/(\d{0,4})\D*(\d{0,4})\D*(\d{0,4})\D*(\d{0,4}).*/,"**** **** **** $4");this.containerElement.querySelector(".js-masked-pin").innerText=n;let i=new XMLHttpRequest;i.open("POST",this.pinStatusUrl),i.setRequestHeader("Content-Type","application/json"),i.send(JSON.stringify({pin:t,sid:this.sessionId,recaptchaResponse:e}));let a=this;i.onreadystatechange=function(){if(4===i.readyState&&200===i.status){a.hideLoadingIndicator();let e=JSON.parse(this.responseText);if("success"===e.status){a.resetForm();const t={data:e.data,i18n:a.i18n};if("us"===a.countryCode.toLowerCase()&&(t.data.currencyCode&&"usd"===t.data.currencyCode.toLowerCase()&&(t.data.currencyCode="$"),t.data.card.currencyCode&&"usd"===t.data.card.currencyCode.toLowerCase()&&(t.data.card.currencyCode="$"),t.data.transactions&&t.data.transactions.forEach(function(e){"usd"===e.currencyCode.toLowerCase()&&(e.currencyCode="$")})),a.containerElement.querySelector(".js-balance-currency").innerText=e.data.currencyCode,a.containerElement.querySelector(".js-balance-amount").innerText=e.data.availableBalance,a.containerElement.querySelector(".js-facevalue-amount").innerText=e.data.faceValue,a.containerElement.querySelector(".js-facevalue-currency").innerText=e.data.currencyCode,t.data.transactions&&t.data.transactions.length>0){a.containerElement.querySelector(".js-trigger-transactions").style.visibility="visible",a.containerElement.classList.add("show-balance-details");let e="";t.data.transactions.forEach(function(t){let n=Math.floor(1e6*Math.random())+1;e+="",e+='",e+=""+t.merchant.displayName+"",e+=""+t.debitedAmount+" "+t.currencyCode+"",e+="",e+='',e+="",e+="",e+="",e+="",e+="",e+="
",e+=a.i18n.transactionlist_innertitle_transaction_id,e+="",e+=t.merchantTransactionId,e+="
",e+=a.i18n.transactionlist_innertitle_merchant_id,e+="",e+=t.merchant.lifnr,e+="
",e+=a.i18n.transactionlist_innertitle_rate,e+="",e+=t.exchangeRateWithFees,e+="
",e+=a.i18n.transactionlist_innertitle_status,e+="",e+=a.i18n["transactionlist_status_"+t.transactionState],e+="
",e+=a.i18n.transactionlist_innertitle_status_detail,e+="",e+=a.i18n["transactionlist_status_detail_"+t.transactionState],e+="
"}),a.getTransactionTable().innerHTML=e;let n="";t.data.transactions.forEach(function(e){let t=Math.floor(1e6*Math.random())+1;n+='
',n+="

"+a.i18n.transactionlist_innertitle_transaction_id+"

",n+="

"+e.merchantTransactionId+"

",n+="

"+a.i18n.transactionlist_innertitle_merchant_id+"

",n+="

"+e.merchant.lifnr+"

",n+="

"+a.i18n.transactionlist_innertitle_rate+"

",n+="

"+e.exchangeRateWithFees+"

",n+="

"+a.i18n.transactionlist_innertitle_status+"

",n+="

"+a.i18n["transactionlist_status_"+e.transactionState]+"

",n+="

"+a.i18n.transactionlist_innertitle_status_detail+"

",n+="

"+a.i18n["transactionlist_status_detail_"+e.transactionState]+"

",n+="
";let i=a.getFirstNonTextChild(a.getTransactionRowSmallTemplate()).cloneNode(!0);i.querySelector(".js-date").innerHTML='",i.querySelector(".js-webshop").innerText=e.merchant.displayName,i.querySelector(".js-debited-amount").innerText=e.debitedAmount+" "+e.currencyCode,i.querySelector(".js-date__table-details").innerHTML=n,n="",a.getTransactionTableSmall().append(i)})}else a.containerElement.querySelector(".js-trigger-transactions").style.visibility="hidden",a.containerElement.classList.remove("show-balance-details");a.checkSuccessSection.style.display="block",a.checkAnother.style.display="block"}else a.pinField.classList.add("invalid"),e.data.statusCode?a.checkErrorSection.querySelector(".js-error-message").innerHTML=a.i18n["error_"+e.data.statusCode]:a.checkErrorSection.querySelector(".js-error-message").innerHTML=a.i18n.error_400,a.checkErrorSection.style.display="block"}},grecaptcha.enterprise.reset()},isSyntacticallyValidPin:function(e){return/^\d{16}$/.test(e.replace(/[^\d]/g,""))},getPinFieldValue:function(){return this.pinField.value},setPinFieldValue:function(e){return this.pinField.value=e},resetForm:function(){this.formElement.reset(),this.submitButton.disabled=!0,this.clearTransactionList()},getTransactionTable:function(){return this.containerElement.querySelector(".js-transaction-table")},getTransactionTableSmall:function(){return this.containerElement.querySelector(".js-transaction-table-sm")},getTransactionRowSmallTemplate:function(){return this.containerElement.querySelector(".js-transaction-row-sm-template")},clearTransactionList:function(){let e;for(e=this.getTransactionTable();e.firstChild;)e.removeChild(e.firstChild);for(e=this.getTransactionTableSmall();e.firstChild;)e.removeChild(e.firstChild)},generateSessionId:function(){function e(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return this.sessionId=e()+e()+e()+e()+e()+e()+e()+e(),this.sessionId},getFirstNonTextChild:function(e){let t=e.firstChild;for(;null!=t&&3===t.nodeType;)t=t.nextSibling;return t},isVisibleInViewport:function(e){const t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)}}}); //# sourceMappingURL=balance-checker.min.js.map