jquery.inputmask.js 198 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152
  1. /*!
  2. * dist/jquery.inputmask
  3. * https://github.com/RobinHerbots/Inputmask
  4. * Copyright (c) 2010 - 2023 Robin Herbots
  5. * Licensed under the MIT license
  6. * Version: 5.0.8-beta.73
  7. */
  8. !function(e, t) {
  9. if ("object" == typeof exports && "object" == typeof module) module.exports = t(require("jquery")); else if ("function" == typeof define && define.amd) define([ "jquery" ], t); else {
  10. var i = "object" == typeof exports ? t(require("jquery")) : t(e.jQuery);
  11. for (var a in i) ("object" == typeof exports ? exports : e)[a] = i[a];
  12. }
  13. }("undefined" != typeof self ? self : this, (function(e) {
  14. return function() {
  15. "use strict";
  16. var t = {
  17. 3046: function(e, t, i) {
  18. var a;
  19. Object.defineProperty(t, "__esModule", {
  20. value: !0
  21. }), t.default = void 0, i(7149), i(3194), i(9302), i(4013), i(3851), i(219), i(207),
  22. i(5296);
  23. var n = ((a = i(2394)) && a.__esModule ? a : {
  24. default: a
  25. }).default;
  26. t.default = n;
  27. },
  28. 8741: function(e, t) {
  29. Object.defineProperty(t, "__esModule", {
  30. value: !0
  31. }), t.default = void 0;
  32. var i = !("undefined" == typeof window || !window.document || !window.document.createElement);
  33. t.default = i;
  34. },
  35. 3976: function(e, t, i) {
  36. Object.defineProperty(t, "__esModule", {
  37. value: !0
  38. }), t.default = void 0;
  39. var a = i(2839), n = {
  40. _maxTestPos: 500,
  41. placeholder: "_",
  42. optionalmarker: [ "[", "]" ],
  43. quantifiermarker: [ "{", "}" ],
  44. groupmarker: [ "(", ")" ],
  45. alternatormarker: "|",
  46. escapeChar: "\\",
  47. mask: null,
  48. regex: null,
  49. oncomplete: function() {},
  50. onincomplete: function() {},
  51. oncleared: function() {},
  52. repeat: 0,
  53. greedy: !1,
  54. autoUnmask: !1,
  55. removeMaskOnSubmit: !1,
  56. clearMaskOnLostFocus: !0,
  57. insertMode: !0,
  58. insertModeVisual: !0,
  59. clearIncomplete: !1,
  60. alias: null,
  61. onKeyDown: function() {},
  62. onBeforeMask: null,
  63. onBeforePaste: function(e, t) {
  64. return "function" == typeof t.onBeforeMask ? t.onBeforeMask.call(this, e, t) : e;
  65. },
  66. onBeforeWrite: null,
  67. onUnMask: null,
  68. showMaskOnFocus: !0,
  69. showMaskOnHover: !0,
  70. onKeyValidation: function() {},
  71. skipOptionalPartCharacter: " ",
  72. numericInput: !1,
  73. rightAlign: !1,
  74. undoOnEscape: !0,
  75. radixPoint: "",
  76. _radixDance: !1,
  77. groupSeparator: "",
  78. keepStatic: null,
  79. positionCaretOnTab: !0,
  80. tabThrough: !1,
  81. supportsInputType: [ "text", "tel", "url", "password", "search" ],
  82. ignorables: [ a.keys.Backspace, a.keys.Tab, a.keys.Pause, a.keys.Escape, a.keys.PageUp, a.keys.PageDown, a.keys.End, a.keys.Home, a.keys.ArrowLeft, a.keys.ArrowUp, a.keys.ArrowRight, a.keys.ArrowDown, a.keys.Insert, a.keys.Delete, a.keys.ContextMenu, a.keys.F1, a.keys.F2, a.keys.F3, a.keys.F4, a.keys.F5, a.keys.F6, a.keys.F7, a.keys.F8, a.keys.F9, a.keys.F10, a.keys.F11, a.keys.F12, a.keys.Process, a.keys.Unidentified, a.keys.Shift, a.keys.Control, a.keys.Alt, a.keys.Tab, a.keys.AltGraph, a.keys.CapsLock ],
  83. isComplete: null,
  84. preValidation: null,
  85. postValidation: null,
  86. staticDefinitionSymbol: void 0,
  87. jitMasking: !1,
  88. nullable: !0,
  89. inputEventOnly: !1,
  90. noValuePatching: !1,
  91. positionCaretOnClick: "lvp",
  92. casing: null,
  93. inputmode: "text",
  94. importDataAttributes: !0,
  95. shiftPositions: !0,
  96. usePrototypeDefinitions: !0,
  97. validationEventTimeOut: 3e3,
  98. substitutes: {}
  99. };
  100. t.default = n;
  101. },
  102. 7392: function(e, t) {
  103. Object.defineProperty(t, "__esModule", {
  104. value: !0
  105. }), t.default = void 0;
  106. t.default = {
  107. 9: {
  108. validator: "[0-9\uff10-\uff19]",
  109. definitionSymbol: "*"
  110. },
  111. a: {
  112. validator: "[A-Za-z\u0410-\u044f\u0401\u0451\xc0-\xff\xb5]",
  113. definitionSymbol: "*"
  114. },
  115. "*": {
  116. validator: "[0-9\uff10-\uff19A-Za-z\u0410-\u044f\u0401\u0451\xc0-\xff\xb5]"
  117. }
  118. };
  119. },
  120. 3287: function(e, t, i) {
  121. Object.defineProperty(t, "__esModule", {
  122. value: !0
  123. }), t.default = void 0;
  124. var a, n = (a = i(7957)) && a.__esModule ? a : {
  125. default: a
  126. };
  127. if (void 0 === n.default) throw "jQuery not loaded!";
  128. var r = n.default;
  129. t.default = r;
  130. },
  131. 9845: function(e, t, i) {
  132. Object.defineProperty(t, "__esModule", {
  133. value: !0
  134. }), t.mobile = t.iphone = t.ie = void 0;
  135. var a, n = (a = i(9380)) && a.__esModule ? a : {
  136. default: a
  137. };
  138. var r = n.default.navigator && n.default.navigator.userAgent || "", o = r.indexOf("MSIE ") > 0 || r.indexOf("Trident/") > 0, s = navigator.userAgentData && navigator.userAgentData.mobile || n.default.navigator && n.default.navigator.maxTouchPoints || "ontouchstart" in n.default, l = /iphone/i.test(r);
  139. t.iphone = l, t.mobile = s, t.ie = o;
  140. },
  141. 7184: function(e, t) {
  142. Object.defineProperty(t, "__esModule", {
  143. value: !0
  144. }), t.default = function(e) {
  145. return e.replace(i, "\\$1");
  146. };
  147. var i = new RegExp("(\\" + [ "/", ".", "*", "+", "?", "|", "(", ")", "[", "]", "{", "}", "\\", "$", "^" ].join("|\\") + ")", "gim");
  148. },
  149. 6030: function(e, t, i) {
  150. Object.defineProperty(t, "__esModule", {
  151. value: !0
  152. }), t.EventHandlers = void 0;
  153. var a = i(8711), n = i(2839), r = i(9845), o = i(7215), s = i(7760), l = i(4713);
  154. function c(e, t) {
  155. var i = "undefined" != typeof Symbol && e[Symbol.iterator] || e["@@iterator"];
  156. if (!i) {
  157. if (Array.isArray(e) || (i = function(e, t) {
  158. if (!e) return;
  159. if ("string" == typeof e) return u(e, t);
  160. var i = Object.prototype.toString.call(e).slice(8, -1);
  161. "Object" === i && e.constructor && (i = e.constructor.name);
  162. if ("Map" === i || "Set" === i) return Array.from(e);
  163. if ("Arguments" === i || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)) return u(e, t);
  164. }(e)) || t && e && "number" == typeof e.length) {
  165. i && (e = i);
  166. var a = 0, n = function() {};
  167. return {
  168. s: n,
  169. n: function() {
  170. return a >= e.length ? {
  171. done: !0
  172. } : {
  173. done: !1,
  174. value: e[a++]
  175. };
  176. },
  177. e: function(e) {
  178. throw e;
  179. },
  180. f: n
  181. };
  182. }
  183. throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
  184. }
  185. var r, o = !0, s = !1;
  186. return {
  187. s: function() {
  188. i = i.call(e);
  189. },
  190. n: function() {
  191. var e = i.next();
  192. return o = e.done, e;
  193. },
  194. e: function(e) {
  195. s = !0, r = e;
  196. },
  197. f: function() {
  198. try {
  199. o || null == i.return || i.return();
  200. } finally {
  201. if (s) throw r;
  202. }
  203. }
  204. };
  205. }
  206. function u(e, t) {
  207. (null == t || t > e.length) && (t = e.length);
  208. for (var i = 0, a = new Array(t); i < t; i++) a[i] = e[i];
  209. return a;
  210. }
  211. var f = {
  212. keyEvent: function(e, t, i, c, u) {
  213. var p = this.inputmask, d = p.opts, h = p.dependencyLib, m = p.maskset, v = this, g = h(v), k = e.key, y = a.caret.call(p, v), b = d.onKeyDown.call(this, e, a.getBuffer.call(p), y, d);
  214. if (void 0 !== b) return b;
  215. if (k === n.keys.Backspace || k === n.keys.Delete || r.iphone && k === n.keys.BACKSPACE_SAFARI || e.ctrlKey && k === n.keys.x && !("oncut" in v)) e.preventDefault(),
  216. o.handleRemove.call(p, v, k, y), (0, s.writeBuffer)(v, a.getBuffer.call(p, !0), m.p, e, v.inputmask._valueGet() !== a.getBuffer.call(p).join("")); else if (k === n.keys.End || k === n.keys.PageDown) {
  217. e.preventDefault();
  218. var x = a.seekNext.call(p, a.getLastValidPosition.call(p));
  219. a.caret.call(p, v, e.shiftKey ? y.begin : x, x, !0);
  220. } else k === n.keys.Home && !e.shiftKey || k === n.keys.PageUp ? (e.preventDefault(),
  221. a.caret.call(p, v, 0, e.shiftKey ? y.begin : 0, !0)) : d.undoOnEscape && k === n.keys.Escape && !0 !== e.altKey ? ((0,
  222. s.checkVal)(v, !0, !1, p.undoValue.split("")), g.trigger("click")) : k !== n.keys.Insert || e.shiftKey || e.ctrlKey || void 0 !== p.userOptions.insertMode ? !0 === d.tabThrough && k === n.keys.Tab ? !0 === e.shiftKey ? (y.end = a.seekPrevious.call(p, y.end, !0),
  223. !0 === l.getTest.call(p, y.end - 1).match.static && y.end--, y.begin = a.seekPrevious.call(p, y.end, !0),
  224. y.begin >= 0 && y.end > 0 && (e.preventDefault(), a.caret.call(p, v, y.begin, y.end))) : (y.begin = a.seekNext.call(p, y.begin, !0),
  225. y.end = a.seekNext.call(p, y.begin, !0), y.end < m.maskLength && y.end--, y.begin <= m.maskLength && (e.preventDefault(),
  226. a.caret.call(p, v, y.begin, y.end))) : e.shiftKey || d.insertModeVisual && !1 === d.insertMode && (k === n.keys.ArrowRight ? setTimeout((function() {
  227. var e = a.caret.call(p, v);
  228. a.caret.call(p, v, e.begin);
  229. }), 0) : k === n.keys.ArrowLeft && setTimeout((function() {
  230. var e = a.translatePosition.call(p, v.inputmask.caretPos.begin);
  231. a.translatePosition.call(p, v.inputmask.caretPos.end);
  232. p.isRTL ? a.caret.call(p, v, e + (e === m.maskLength ? 0 : 1)) : a.caret.call(p, v, e - (0 === e ? 0 : 1));
  233. }), 0)) : o.isSelection.call(p, y) ? d.insertMode = !d.insertMode : (d.insertMode = !d.insertMode,
  234. a.caret.call(p, v, y.begin, y.begin));
  235. return p.isComposing = k == n.keys.Process || k == n.keys.Unidentified, p.ignorable = d.ignorables.includes(k),
  236. f.keypressEvent.call(this, e, t, i, c, u);
  237. },
  238. keypressEvent: function(e, t, i, r, l) {
  239. var c = this.inputmask || this, u = c.opts, f = c.dependencyLib, p = c.maskset, d = c.el, h = f(d), m = e.key;
  240. if (!0 === t || e.ctrlKey && e.altKey || !(e.ctrlKey || e.metaKey || c.ignorable)) {
  241. if (m) {
  242. var v, g = t ? {
  243. begin: l,
  244. end: l
  245. } : a.caret.call(c, d);
  246. m = u.substitutes[m] || m, p.writeOutBuffer = !0;
  247. var k = o.isValid.call(c, g, m, r, void 0, void 0, void 0, t);
  248. if (!1 !== k && (a.resetMaskSet.call(c, !0), v = void 0 !== k.caret ? k.caret : a.seekNext.call(c, k.pos.begin ? k.pos.begin : k.pos),
  249. p.p = v), v = u.numericInput && void 0 === k.caret ? a.seekPrevious.call(c, v) : v,
  250. !1 !== i && (setTimeout((function() {
  251. u.onKeyValidation.call(d, m, k);
  252. }), 0), p.writeOutBuffer && !1 !== k)) {
  253. var y = a.getBuffer.call(c);
  254. (0, s.writeBuffer)(d, y, v, e, !0 !== t);
  255. }
  256. if (e.preventDefault(), t) return !1 !== k && (k.forwardPosition = v), k;
  257. }
  258. } else m === n.keys.Enter && c.undoValue !== c._valueGet(!0) && (c.undoValue = c._valueGet(!0),
  259. setTimeout((function() {
  260. h.trigger("change");
  261. }), 0));
  262. },
  263. pasteEvent: function(e) {
  264. var t, i = this.inputmask, n = i.opts, r = i._valueGet(!0), o = a.caret.call(i, this);
  265. i.isRTL && (t = o.end, o.end = a.translatePosition.call(i, o.begin), o.begin = a.translatePosition.call(i, t));
  266. var l = r.substr(0, o.begin), u = r.substr(o.end, r.length);
  267. if (l == (i.isRTL ? a.getBufferTemplate.call(i).slice().reverse() : a.getBufferTemplate.call(i)).slice(0, o.begin).join("") && (l = ""),
  268. u == (i.isRTL ? a.getBufferTemplate.call(i).slice().reverse() : a.getBufferTemplate.call(i)).slice(o.end).join("") && (u = ""),
  269. window.clipboardData && window.clipboardData.getData) r = l + window.clipboardData.getData("Text") + u; else {
  270. if (!e.clipboardData || !e.clipboardData.getData) return !0;
  271. r = l + e.clipboardData.getData("text/plain") + u;
  272. }
  273. var f = r;
  274. if (i.isRTL) {
  275. f = f.split("");
  276. var p, d = c(a.getBufferTemplate.call(i));
  277. try {
  278. for (d.s(); !(p = d.n()).done; ) {
  279. var h = p.value;
  280. f[0] === h && f.shift();
  281. }
  282. } catch (e) {
  283. d.e(e);
  284. } finally {
  285. d.f();
  286. }
  287. f = f.join("");
  288. }
  289. if ("function" == typeof n.onBeforePaste) {
  290. if (!1 === (f = n.onBeforePaste.call(i, f, n))) return !1;
  291. f || (f = r);
  292. }
  293. (0, s.checkVal)(this, !0, !1, f.toString().split(""), e), e.preventDefault();
  294. },
  295. inputFallBackEvent: function(e) {
  296. var t = this.inputmask, i = t.opts, o = t.dependencyLib;
  297. var c, u = this, p = u.inputmask._valueGet(!0), d = (t.isRTL ? a.getBuffer.call(t).slice().reverse() : a.getBuffer.call(t)).join(""), h = a.caret.call(t, u, void 0, void 0, !0);
  298. if (d !== p) {
  299. if (c = function(e, n, r) {
  300. for (var o, s, c, u = e.substr(0, r.begin).split(""), f = e.substr(r.begin).split(""), p = n.substr(0, r.begin).split(""), d = n.substr(r.begin).split(""), h = u.length >= p.length ? u.length : p.length, m = f.length >= d.length ? f.length : d.length, v = "", g = [], k = "~"; u.length < h; ) u.push(k);
  301. for (;p.length < h; ) p.push(k);
  302. for (;f.length < m; ) f.unshift(k);
  303. for (;d.length < m; ) d.unshift(k);
  304. var y = u.concat(f), b = p.concat(d);
  305. for (s = 0, o = y.length; s < o; s++) switch (c = l.getPlaceholder.call(t, a.translatePosition.call(t, s)),
  306. v) {
  307. case "insertText":
  308. b[s - 1] === y[s] && r.begin == y.length - 1 && g.push(y[s]), s = o;
  309. break;
  310. case "insertReplacementText":
  311. case "deleteContentBackward":
  312. y[s] === k ? r.end++ : s = o;
  313. break;
  314. default:
  315. y[s] !== b[s] && (y[s + 1] !== k && y[s + 1] !== c && void 0 !== y[s + 1] || (b[s] !== c || b[s + 1] !== k) && b[s] !== k ? b[s + 1] === k && b[s] === y[s + 1] ? (v = "insertText",
  316. g.push(y[s]), r.begin--, r.end--) : y[s] !== c && y[s] !== k && (y[s + 1] === k || b[s] !== y[s] && b[s + 1] === y[s + 1]) ? (v = "insertReplacementText",
  317. g.push(y[s]), r.begin--) : y[s] === k ? (v = "deleteContentBackward", (a.isMask.call(t, a.translatePosition.call(t, s), !0) || b[s] === i.radixPoint) && r.end++) : s = o : (v = "insertText",
  318. g.push(y[s]), r.begin--, r.end--));
  319. }
  320. return {
  321. action: v,
  322. data: g,
  323. caret: r
  324. };
  325. }(p, d, h), (u.inputmask.shadowRoot || u.ownerDocument).activeElement !== u && u.focus(),
  326. (0, s.writeBuffer)(u, a.getBuffer.call(t)), a.caret.call(t, u, h.begin, h.end, !0),
  327. !r.mobile && t.skipNextInsert && "insertText" === e.inputType && "insertText" === c.action && t.isComposing) return !1;
  328. switch ("insertCompositionText" === e.inputType && "insertText" === c.action && t.isComposing ? t.skipNextInsert = !0 : t.skipNextInsert = !1,
  329. c.action) {
  330. case "insertText":
  331. case "insertReplacementText":
  332. c.data.forEach((function(e, i) {
  333. var a = new o.Event("keypress");
  334. a.key = e, t.ignorable = !1, f.keypressEvent.call(u, a);
  335. })), setTimeout((function() {
  336. t.$el.trigger("keyup");
  337. }), 0);
  338. break;
  339. case "deleteContentBackward":
  340. var m = new o.Event("keydown");
  341. m.key = n.keys.Backspace, f.keyEvent.call(u, m);
  342. break;
  343. default:
  344. (0, s.applyInputValue)(u, p), a.caret.call(t, u, h.begin, h.end, !0);
  345. }
  346. e.preventDefault();
  347. }
  348. },
  349. setValueEvent: function(e) {
  350. var t = this.inputmask, i = this, n = e && e.detail ? e.detail[0] : arguments[1];
  351. void 0 === n && (n = i.inputmask._valueGet(!0)), (0, s.applyInputValue)(i, n), (e.detail && void 0 !== e.detail[1] || void 0 !== arguments[2]) && a.caret.call(t, i, e.detail ? e.detail[1] : arguments[2]);
  352. },
  353. focusEvent: function(e) {
  354. var t = this.inputmask, i = t.opts, n = this, r = n.inputmask._valueGet();
  355. i.showMaskOnFocus && r !== a.getBuffer.call(t).join("") && (0, s.writeBuffer)(n, a.getBuffer.call(t), a.seekNext.call(t, a.getLastValidPosition.call(t))),
  356. !0 !== i.positionCaretOnTab || !1 !== t.mouseEnter || o.isComplete.call(t, a.getBuffer.call(t)) && -1 !== a.getLastValidPosition.call(t) || f.clickEvent.apply(n, [ e, !0 ]),
  357. t.undoValue = t._valueGet(!0);
  358. },
  359. invalidEvent: function(e) {
  360. this.inputmask.validationEvent = !0;
  361. },
  362. mouseleaveEvent: function() {
  363. var e = this.inputmask, t = e.opts, i = this;
  364. e.mouseEnter = !1, t.clearMaskOnLostFocus && (i.inputmask.shadowRoot || i.ownerDocument).activeElement !== i && (0,
  365. s.HandleNativePlaceholder)(i, e.originalPlaceholder);
  366. },
  367. clickEvent: function(e, t) {
  368. var i = this.inputmask;
  369. i.clicked++;
  370. var n = this;
  371. if ((n.inputmask.shadowRoot || n.ownerDocument).activeElement === n) {
  372. var r = a.determineNewCaretPosition.call(i, a.caret.call(i, n), t);
  373. void 0 !== r && a.caret.call(i, n, r);
  374. }
  375. },
  376. cutEvent: function(e) {
  377. var t = this.inputmask, i = t.maskset, r = this, l = a.caret.call(t, r), c = t.isRTL ? a.getBuffer.call(t).slice(l.end, l.begin) : a.getBuffer.call(t).slice(l.begin, l.end), u = t.isRTL ? c.reverse().join("") : c.join("");
  378. window.navigator.clipboard ? window.navigator.clipboard.writeText(u) : window.clipboardData && window.clipboardData.getData && window.clipboardData.setData("Text", u),
  379. o.handleRemove.call(t, r, n.keys.Delete, l), (0, s.writeBuffer)(r, a.getBuffer.call(t), i.p, e, t.undoValue !== t._valueGet(!0));
  380. },
  381. blurEvent: function(e) {
  382. var t = this.inputmask, i = t.opts, n = t.dependencyLib;
  383. t.clicked = 0;
  384. var r = n(this), l = this;
  385. if (l.inputmask) {
  386. (0, s.HandleNativePlaceholder)(l, t.originalPlaceholder);
  387. var c = l.inputmask._valueGet(), u = a.getBuffer.call(t).slice();
  388. "" !== c && (i.clearMaskOnLostFocus && (-1 === a.getLastValidPosition.call(t) && c === a.getBufferTemplate.call(t).join("") ? u = [] : s.clearOptionalTail.call(t, u)),
  389. !1 === o.isComplete.call(t, u) && (setTimeout((function() {
  390. r.trigger("incomplete");
  391. }), 0), i.clearIncomplete && (a.resetMaskSet.call(t), u = i.clearMaskOnLostFocus ? [] : a.getBufferTemplate.call(t).slice())),
  392. (0, s.writeBuffer)(l, u, void 0, e)), t.undoValue !== t._valueGet(!0) && (t.undoValue = t._valueGet(!0),
  393. r.trigger("change"));
  394. }
  395. },
  396. mouseenterEvent: function() {
  397. var e = this.inputmask, t = e.opts.showMaskOnHover, i = this;
  398. if (e.mouseEnter = !0, (i.inputmask.shadowRoot || i.ownerDocument).activeElement !== i) {
  399. var n = (e.isRTL ? a.getBufferTemplate.call(e).slice().reverse() : a.getBufferTemplate.call(e)).join("");
  400. t && (0, s.HandleNativePlaceholder)(i, n);
  401. }
  402. },
  403. submitEvent: function() {
  404. var e = this.inputmask, t = e.opts;
  405. e.undoValue !== e._valueGet(!0) && e.$el.trigger("change"), -1 === a.getLastValidPosition.call(e) && e._valueGet && e._valueGet() === a.getBufferTemplate.call(e).join("") && e._valueSet(""),
  406. t.clearIncomplete && !1 === o.isComplete.call(e, a.getBuffer.call(e)) && e._valueSet(""),
  407. t.removeMaskOnSubmit && (e._valueSet(e.unmaskedvalue(), !0), setTimeout((function() {
  408. (0, s.writeBuffer)(e.el, a.getBuffer.call(e));
  409. }), 0));
  410. },
  411. resetEvent: function() {
  412. var e = this.inputmask;
  413. e.refreshValue = !0, setTimeout((function() {
  414. (0, s.applyInputValue)(e.el, e._valueGet(!0));
  415. }), 0);
  416. }
  417. };
  418. t.EventHandlers = f;
  419. },
  420. 9716: function(e, t, i) {
  421. Object.defineProperty(t, "__esModule", {
  422. value: !0
  423. }), t.EventRuler = void 0;
  424. var a, n = (a = i(2394)) && a.__esModule ? a : {
  425. default: a
  426. }, r = i(2839), o = i(8711), s = i(7760);
  427. var l = {
  428. on: function(e, t, i) {
  429. var a = e.inputmask.dependencyLib, l = function(t) {
  430. t.originalEvent && (t = t.originalEvent || t, arguments[0] = t);
  431. var l, c = this, u = c.inputmask, f = u ? u.opts : void 0;
  432. if (void 0 === u && "FORM" !== this.nodeName) {
  433. var p = a.data(c, "_inputmask_opts");
  434. a(c).off(), p && new n.default(p).mask(c);
  435. } else {
  436. if ([ "submit", "reset", "setvalue" ].includes(t.type) || "FORM" === this.nodeName || !(c.disabled || c.readOnly && !("keydown" === t.type && t.ctrlKey && t.key === r.keys.c || !1 === f.tabThrough && t.key === r.keys.Tab))) {
  437. switch (t.type) {
  438. case "input":
  439. if (!0 === u.skipInputEvent) return u.skipInputEvent = !1, t.preventDefault();
  440. break;
  441. case "click":
  442. case "focus":
  443. return u.validationEvent ? (u.validationEvent = !1, e.blur(), (0, s.HandleNativePlaceholder)(e, (u.isRTL ? o.getBufferTemplate.call(u).slice().reverse() : o.getBufferTemplate.call(u)).join("")),
  444. setTimeout((function() {
  445. e.focus();
  446. }), f.validationEventTimeOut), !1) : (l = arguments, void setTimeout((function() {
  447. e.inputmask && i.apply(c, l);
  448. }), 0));
  449. }
  450. var d = i.apply(c, arguments);
  451. return !1 === d && (t.preventDefault(), t.stopPropagation()), d;
  452. }
  453. t.preventDefault();
  454. }
  455. };
  456. [ "submit", "reset" ].includes(t) ? (l = l.bind(e), null !== e.form && a(e.form).on(t, l)) : a(e).on(t, l),
  457. e.inputmask.events[t] = e.inputmask.events[t] || [], e.inputmask.events[t].push(l);
  458. },
  459. off: function(e, t) {
  460. if (e.inputmask && e.inputmask.events) {
  461. var i = e.inputmask.dependencyLib, a = e.inputmask.events;
  462. for (var n in t && ((a = [])[t] = e.inputmask.events[t]), a) {
  463. for (var r = a[n]; r.length > 0; ) {
  464. var o = r.pop();
  465. [ "submit", "reset" ].includes(n) ? null !== e.form && i(e.form).off(n, o) : i(e).off(n, o);
  466. }
  467. delete e.inputmask.events[n];
  468. }
  469. }
  470. }
  471. };
  472. t.EventRuler = l;
  473. },
  474. 219: function(e, t, i) {
  475. var a = p(i(2394)), n = i(2839), r = p(i(7184)), o = i(8711), s = i(4713);
  476. function l(e, t) {
  477. return function(e) {
  478. if (Array.isArray(e)) return e;
  479. }(e) || function(e, t) {
  480. var i = null == e ? null : "undefined" != typeof Symbol && e[Symbol.iterator] || e["@@iterator"];
  481. if (null != i) {
  482. var a, n, r, o, s = [], l = !0, c = !1;
  483. try {
  484. if (r = (i = i.call(e)).next, 0 === t) {
  485. if (Object(i) !== i) return;
  486. l = !1;
  487. } else for (;!(l = (a = r.call(i)).done) && (s.push(a.value), s.length !== t); l = !0) ;
  488. } catch (e) {
  489. c = !0, n = e;
  490. } finally {
  491. try {
  492. if (!l && null != i.return && (o = i.return(), Object(o) !== o)) return;
  493. } finally {
  494. if (c) throw n;
  495. }
  496. }
  497. return s;
  498. }
  499. }(e, t) || function(e, t) {
  500. if (!e) return;
  501. if ("string" == typeof e) return c(e, t);
  502. var i = Object.prototype.toString.call(e).slice(8, -1);
  503. "Object" === i && e.constructor && (i = e.constructor.name);
  504. if ("Map" === i || "Set" === i) return Array.from(e);
  505. if ("Arguments" === i || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)) return c(e, t);
  506. }(e, t) || function() {
  507. throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
  508. }();
  509. }
  510. function c(e, t) {
  511. (null == t || t > e.length) && (t = e.length);
  512. for (var i = 0, a = new Array(t); i < t; i++) a[i] = e[i];
  513. return a;
  514. }
  515. function u(e) {
  516. return u = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
  517. return typeof e;
  518. } : function(e) {
  519. return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
  520. }, u(e);
  521. }
  522. function f(e, t) {
  523. for (var i = 0; i < t.length; i++) {
  524. var a = t[i];
  525. a.enumerable = a.enumerable || !1, a.configurable = !0, "value" in a && (a.writable = !0),
  526. Object.defineProperty(e, (n = a.key, r = void 0, r = function(e, t) {
  527. if ("object" !== u(e) || null === e) return e;
  528. var i = e[Symbol.toPrimitive];
  529. if (void 0 !== i) {
  530. var a = i.call(e, t || "default");
  531. if ("object" !== u(a)) return a;
  532. throw new TypeError("@@toPrimitive must return a primitive value.");
  533. }
  534. return ("string" === t ? String : Number)(e);
  535. }(n, "string"), "symbol" === u(r) ? r : String(r)), a);
  536. }
  537. var n, r;
  538. }
  539. function p(e) {
  540. return e && e.__esModule ? e : {
  541. default: e
  542. };
  543. }
  544. var d = a.default.dependencyLib, h = function() {
  545. function e(t, i, a) {
  546. !function(e, t) {
  547. if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
  548. }(this, e), this.mask = t, this.format = i, this.opts = a, this._date = new Date(1, 0, 1),
  549. this.initDateObject(t, this.opts);
  550. }
  551. var t, i, a;
  552. return t = e, (i = [ {
  553. key: "date",
  554. get: function() {
  555. return void 0 === this._date && (this._date = new Date(1, 0, 1), this.initDateObject(void 0, this.opts)),
  556. this._date;
  557. }
  558. }, {
  559. key: "initDateObject",
  560. value: function(e, t) {
  561. var i;
  562. for (P(t).lastIndex = 0; i = P(t).exec(this.format); ) {
  563. var a = new RegExp("\\d+$").exec(i[0]), n = a ? i[0][0] + "x" : i[0], r = void 0;
  564. if (void 0 !== e) {
  565. if (a) {
  566. var o = P(t).lastIndex, s = T(i.index, t);
  567. P(t).lastIndex = o, r = e.slice(0, e.indexOf(s.nextMatch[0]));
  568. } else r = e.slice(0, g[n] && g[n][4] || n.length);
  569. e = e.slice(r.length);
  570. }
  571. Object.prototype.hasOwnProperty.call(g, n) && this.setValue(this, r, n, g[n][2], g[n][1]);
  572. }
  573. }
  574. }, {
  575. key: "setValue",
  576. value: function(e, t, i, a, n) {
  577. if (void 0 !== t && (e[a] = "ampm" === a ? t : t.replace(/[^0-9]/g, "0"), e["raw" + a] = t.replace(/\s/g, "_")),
  578. void 0 !== n) {
  579. var r = e[a];
  580. ("day" === a && 29 === parseInt(r) || "month" === a && 2 === parseInt(r)) && (29 !== parseInt(e.day) || 2 !== parseInt(e.month) || "" !== e.year && void 0 !== e.year || e._date.setFullYear(2012, 1, 29)),
  581. "day" === a && (v = !0, 0 === parseInt(r) && (r = 1)), "month" === a && (v = !0),
  582. "year" === a && (v = !0, r.length < 4 && (r = M(r, 4, !0))), "" === r || isNaN(r) || n.call(e._date, r),
  583. "ampm" === a && n.call(e._date, r);
  584. }
  585. }
  586. }, {
  587. key: "reset",
  588. value: function() {
  589. this._date = new Date(1, 0, 1);
  590. }
  591. }, {
  592. key: "reInit",
  593. value: function() {
  594. this._date = void 0, this.date;
  595. }
  596. } ]) && f(t.prototype, i), a && f(t, a), Object.defineProperty(t, "prototype", {
  597. writable: !1
  598. }), e;
  599. }(), m = (new Date).getFullYear(), v = !1, g = {
  600. d: [ "[1-9]|[12][0-9]|3[01]", Date.prototype.setDate, "day", Date.prototype.getDate ],
  601. dd: [ "0[1-9]|[12][0-9]|3[01]", Date.prototype.setDate, "day", function() {
  602. return M(Date.prototype.getDate.call(this), 2);
  603. } ],
  604. ddd: [ "" ],
  605. dddd: [ "" ],
  606. m: [ "[1-9]|1[012]", function(e) {
  607. var t = e ? parseInt(e) : 0;
  608. return t > 0 && t--, Date.prototype.setMonth.call(this, t);
  609. }, "month", function() {
  610. return Date.prototype.getMonth.call(this) + 1;
  611. } ],
  612. mm: [ "0[1-9]|1[012]", function(e) {
  613. var t = e ? parseInt(e) : 0;
  614. return t > 0 && t--, Date.prototype.setMonth.call(this, t);
  615. }, "month", function() {
  616. return M(Date.prototype.getMonth.call(this) + 1, 2);
  617. } ],
  618. mmm: [ "" ],
  619. mmmm: [ "" ],
  620. yy: [ "[0-9]{2}", Date.prototype.setFullYear, "year", function() {
  621. return M(Date.prototype.getFullYear.call(this), 2);
  622. } ],
  623. yyyy: [ "[0-9]{4}", Date.prototype.setFullYear, "year", function() {
  624. return M(Date.prototype.getFullYear.call(this), 4);
  625. } ],
  626. h: [ "[1-9]|1[0-2]", Date.prototype.setHours, "hours", Date.prototype.getHours ],
  627. hh: [ "0[1-9]|1[0-2]", Date.prototype.setHours, "hours", function() {
  628. return M(Date.prototype.getHours.call(this), 2);
  629. } ],
  630. hx: [ function(e) {
  631. return "[0-9]{".concat(e, "}");
  632. }, Date.prototype.setHours, "hours", function(e) {
  633. return Date.prototype.getHours;
  634. } ],
  635. H: [ "1?[0-9]|2[0-3]", Date.prototype.setHours, "hours", Date.prototype.getHours ],
  636. HH: [ "0[0-9]|1[0-9]|2[0-3]", Date.prototype.setHours, "hours", function() {
  637. return M(Date.prototype.getHours.call(this), 2);
  638. } ],
  639. Hx: [ function(e) {
  640. return "[0-9]{".concat(e, "}");
  641. }, Date.prototype.setHours, "hours", function(e) {
  642. return function() {
  643. return M(Date.prototype.getHours.call(this), e);
  644. };
  645. } ],
  646. M: [ "[1-5]?[0-9]", Date.prototype.setMinutes, "minutes", Date.prototype.getMinutes ],
  647. MM: [ "0[0-9]|1[0-9]|2[0-9]|3[0-9]|4[0-9]|5[0-9]", Date.prototype.setMinutes, "minutes", function() {
  648. return M(Date.prototype.getMinutes.call(this), 2);
  649. } ],
  650. s: [ "[1-5]?[0-9]", Date.prototype.setSeconds, "seconds", Date.prototype.getSeconds ],
  651. ss: [ "0[0-9]|1[0-9]|2[0-9]|3[0-9]|4[0-9]|5[0-9]", Date.prototype.setSeconds, "seconds", function() {
  652. return M(Date.prototype.getSeconds.call(this), 2);
  653. } ],
  654. l: [ "[0-9]{3}", Date.prototype.setMilliseconds, "milliseconds", function() {
  655. return M(Date.prototype.getMilliseconds.call(this), 3);
  656. }, 3 ],
  657. L: [ "[0-9]{2}", Date.prototype.setMilliseconds, "milliseconds", function() {
  658. return M(Date.prototype.getMilliseconds.call(this), 2);
  659. }, 2 ],
  660. t: [ "[ap]", y, "ampm", b, 1 ],
  661. tt: [ "[ap]m", y, "ampm", b, 2 ],
  662. T: [ "[AP]", y, "ampm", b, 1 ],
  663. TT: [ "[AP]M", y, "ampm", b, 2 ],
  664. Z: [ ".*", void 0, "Z", function() {
  665. var e = this.toString().match(/\((.+)\)/)[1];
  666. e.includes(" ") && (e = (e = e.replace("-", " ").toUpperCase()).split(" ").map((function(e) {
  667. return l(e, 1)[0];
  668. })).join(""));
  669. return e;
  670. } ],
  671. o: [ "" ],
  672. S: [ "" ]
  673. }, k = {
  674. isoDate: "yyyy-mm-dd",
  675. isoTime: "HH:MM:ss",
  676. isoDateTime: "yyyy-mm-dd'T'HH:MM:ss",
  677. isoUtcDateTime: "UTC:yyyy-mm-dd'T'HH:MM:ss'Z'"
  678. };
  679. function y(e) {
  680. var t = this.getHours();
  681. e.toLowerCase().includes("p") ? this.setHours(t + 12) : e.toLowerCase().includes("a") && t >= 12 && this.setHours(t - 12);
  682. }
  683. function b() {
  684. var e = this.getHours();
  685. return (e = e || 12) >= 12 ? "PM" : "AM";
  686. }
  687. function x(e) {
  688. var t = new RegExp("\\d+$").exec(e[0]);
  689. if (t && void 0 !== t[0]) {
  690. var i = g[e[0][0] + "x"].slice("");
  691. return i[0] = i[0](t[0]), i[3] = i[3](t[0]), i;
  692. }
  693. if (g[e[0]]) return g[e[0]];
  694. }
  695. function P(e) {
  696. if (!e.tokenizer) {
  697. var t = [], i = [];
  698. for (var a in g) if (/\.*x$/.test(a)) {
  699. var n = a[0] + "\\d+";
  700. -1 === i.indexOf(n) && i.push(n);
  701. } else -1 === t.indexOf(a[0]) && t.push(a[0]);
  702. e.tokenizer = "(" + (i.length > 0 ? i.join("|") + "|" : "") + t.join("+|") + ")+?|.",
  703. e.tokenizer = new RegExp(e.tokenizer, "g");
  704. }
  705. return e.tokenizer;
  706. }
  707. function w(e, t, i) {
  708. if (!v) return !0;
  709. 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;
  710. if ("29" == e.day) {
  711. var a = T(t.pos, i);
  712. if ("yyyy" === a.targetMatch[0] && t.pos - a.targetMatchIndex == 2) return t.remove = t.pos + 1,
  713. t;
  714. } else if ("02" == e.month && "30" == e.day && void 0 !== t.c) return e.day = "03",
  715. e.date.setDate(3), e.date.setMonth(1), t.insert = [ {
  716. pos: t.pos,
  717. c: "0"
  718. }, {
  719. pos: t.pos + 1,
  720. c: t.c
  721. } ], t.caret = o.seekNext.call(this, t.pos + 1), t;
  722. return !1;
  723. }
  724. function S(e, t, i, a) {
  725. var n, o, s = "";
  726. for (P(i).lastIndex = 0; n = P(i).exec(e); ) {
  727. if (void 0 === t) if (o = x(n)) s += "(" + o[0] + ")"; else switch (n[0]) {
  728. case "[":
  729. s += "(";
  730. break;
  731. case "]":
  732. s += ")?";
  733. break;
  734. default:
  735. s += (0, r.default)(n[0]);
  736. } else if (o = x(n)) if (!0 !== a && o[3]) s += o[3].call(t.date); else o[2] ? s += t["raw" + o[2]] : s += n[0]; else s += n[0];
  737. }
  738. return s;
  739. }
  740. function M(e, t, i) {
  741. for (e = String(e), t = t || 2; e.length < t; ) e = i ? e + "0" : "0" + e;
  742. return e;
  743. }
  744. function _(e, t, i) {
  745. return "string" == typeof e ? new h(e, t, i) : e && "object" === u(e) && Object.prototype.hasOwnProperty.call(e, "date") ? e : void 0;
  746. }
  747. function O(e, t) {
  748. return S(t.inputFormat, {
  749. date: e
  750. }, t);
  751. }
  752. function T(e, t) {
  753. var i, a, n = 0, r = 0;
  754. for (P(t).lastIndex = 0; a = P(t).exec(t.inputFormat); ) {
  755. var o = new RegExp("\\d+$").exec(a[0]);
  756. if ((n += r = o ? parseInt(o[0]) : a[0].length) >= e + 1) {
  757. i = a, a = P(t).exec(t.inputFormat);
  758. break;
  759. }
  760. }
  761. return {
  762. targetMatchIndex: n - r,
  763. nextMatch: a,
  764. targetMatch: i
  765. };
  766. }
  767. a.default.extendAliases({
  768. datetime: {
  769. mask: function(e) {
  770. return e.numericInput = !1, g.S = e.i18n.ordinalSuffix.join("|"), e.inputFormat = k[e.inputFormat] || e.inputFormat,
  771. e.displayFormat = k[e.displayFormat] || e.displayFormat || e.inputFormat, e.outputFormat = k[e.outputFormat] || e.outputFormat || e.inputFormat,
  772. e.placeholder = "" !== e.placeholder ? e.placeholder : e.inputFormat.replace(/[[\]]/, ""),
  773. e.regex = S(e.inputFormat, void 0, e), e.min = _(e.min, e.inputFormat, e), e.max = _(e.max, e.inputFormat, e),
  774. null;
  775. },
  776. placeholder: "",
  777. inputFormat: "isoDateTime",
  778. displayFormat: null,
  779. outputFormat: null,
  780. min: null,
  781. max: null,
  782. skipOptionalPartCharacter: "",
  783. i18n: {
  784. dayNames: [ "Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday" ],
  785. 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" ],
  786. ordinalSuffix: [ "st", "nd", "rd", "th" ]
  787. },
  788. preValidation: function(e, t, i, a, n, r, o, s) {
  789. if (s) return !0;
  790. if (isNaN(i) && e[t] !== i) {
  791. var l = T(t, n);
  792. if (l.nextMatch && l.nextMatch[0] === i && l.targetMatch[0].length > 1) {
  793. var c = g[l.targetMatch[0]][0];
  794. if (new RegExp(c).test("0" + e[t - 1])) return e[t] = e[t - 1], e[t - 1] = "0",
  795. {
  796. fuzzy: !0,
  797. buffer: e,
  798. refreshFromBuffer: {
  799. start: t - 1,
  800. end: t + 1
  801. },
  802. pos: t + 1
  803. };
  804. }
  805. }
  806. return !0;
  807. },
  808. postValidation: function(e, t, i, a, n, r, o, l) {
  809. var c, u;
  810. if (o) return !0;
  811. if (!1 === a && (((c = T(t + 1, n)).targetMatch && c.targetMatchIndex === t && c.targetMatch[0].length > 1 && void 0 !== g[c.targetMatch[0]] || (c = T(t + 2, n)).targetMatch && c.targetMatchIndex === t + 1 && c.targetMatch[0].length > 1 && void 0 !== g[c.targetMatch[0]]) && (u = g[c.targetMatch[0]][0]),
  812. void 0 !== u && (void 0 !== r.validPositions[t + 1] && new RegExp(u).test(i + "0") ? (e[t] = i,
  813. e[t + 1] = "0", a = {
  814. pos: t + 2,
  815. caret: t
  816. }) : new RegExp(u).test("0" + i) && (e[t] = "0", e[t + 1] = i, a = {
  817. pos: t + 2
  818. })), !1 === a)) return a;
  819. if (a.fuzzy && (e = a.buffer, t = a.pos), (c = T(t, n)).targetMatch && c.targetMatch[0] && void 0 !== g[c.targetMatch[0]]) {
  820. var f = g[c.targetMatch[0]];
  821. u = f[0];
  822. var p = e.slice(c.targetMatchIndex, c.targetMatchIndex + c.targetMatch[0].length);
  823. if (!1 === new RegExp(u).test(p.join("")) && 2 === c.targetMatch[0].length && r.validPositions[c.targetMatchIndex] && r.validPositions[c.targetMatchIndex + 1] && (r.validPositions[c.targetMatchIndex + 1].input = "0"),
  824. "year" == f[2]) for (var d = s.getMaskTemplate.call(this, !1, 1, void 0, !0), h = t + 1; h < e.length; h++) e[h] = d[h],
  825. delete r.validPositions[h];
  826. }
  827. var v = a, k = _(e.join(""), n.inputFormat, n);
  828. return v && !isNaN(k.date.getTime()) && (n.prefillYear && (v = function(e, t, i) {
  829. if (e.year !== e.rawyear) {
  830. var a = m.toString(), n = e.rawyear.replace(/[^0-9]/g, ""), r = a.slice(0, n.length), o = a.slice(n.length);
  831. if (2 === n.length && n === r) {
  832. var s = new Date(m, e.month - 1, e.day);
  833. e.day == s.getDate() && (!i.max || i.max.date.getTime() >= s.getTime()) && (e.date.setFullYear(m),
  834. e.year = a, t.insert = [ {
  835. pos: t.pos + 1,
  836. c: o[0]
  837. }, {
  838. pos: t.pos + 2,
  839. c: o[1]
  840. } ]);
  841. }
  842. }
  843. return t;
  844. }(k, v, n)), v = function(e, t, i, a, n) {
  845. if (!t) return t;
  846. if (t && i.min && !isNaN(i.min.date.getTime())) {
  847. var r;
  848. for (e.reset(), P(i).lastIndex = 0; r = P(i).exec(i.inputFormat); ) {
  849. var o;
  850. if ((o = x(r)) && o[3]) {
  851. for (var s = o[1], l = e[o[2]], c = i.min[o[2]], u = i.max ? i.max[o[2]] : c, f = [], p = !1, d = 0; d < c.length; d++) void 0 !== a.validPositions[d + r.index] || p ? (f[d] = l[d],
  852. p = p || l[d] > c[d]) : (f[d] = c[d], "year" === o[2] && l.length - 1 == d && c != u && (f = (parseInt(f.join("")) + 1).toString().split("")),
  853. "ampm" === o[2] && c != u && i.min.date.getTime() > e.date.getTime() && (f[d] = u[d]));
  854. s.call(e._date, f.join(""));
  855. }
  856. }
  857. t = i.min.date.getTime() <= e.date.getTime(), e.reInit();
  858. }
  859. return t && i.max && (isNaN(i.max.date.getTime()) || (t = i.max.date.getTime() >= e.date.getTime())),
  860. t;
  861. }(k, v = w.call(this, k, v, n), n, r)), void 0 !== t && v && a.pos !== t ? {
  862. buffer: S(n.inputFormat, k, n).split(""),
  863. refreshFromBuffer: {
  864. start: t,
  865. end: a.pos
  866. },
  867. pos: a.caret || a.pos
  868. } : v;
  869. },
  870. onKeyDown: function(e, t, i, a) {
  871. e.ctrlKey && e.key === n.keys.ArrowRight && (this.inputmask._valueSet(O(new Date, a)),
  872. d(this).trigger("setvalue"));
  873. },
  874. onUnMask: function(e, t, i) {
  875. return t ? S(i.outputFormat, _(e, i.inputFormat, i), i, !0) : t;
  876. },
  877. casing: function(e, t, i, a) {
  878. return 0 == t.nativeDef.indexOf("[ap]") ? e.toLowerCase() : 0 == t.nativeDef.indexOf("[AP]") ? e.toUpperCase() : e;
  879. },
  880. onBeforeMask: function(e, t) {
  881. return "[object Date]" === Object.prototype.toString.call(e) && (e = O(e, t)), e;
  882. },
  883. insertMode: !1,
  884. insertModeVisual: !1,
  885. shiftPositions: !1,
  886. keepStatic: !1,
  887. inputmode: "numeric",
  888. prefillYear: !0
  889. }
  890. });
  891. },
  892. 3851: function(e, t, i) {
  893. var a, n = (a = i(2394)) && a.__esModule ? a : {
  894. default: a
  895. }, r = i(8711), o = i(4713);
  896. n.default.extendDefinitions({
  897. A: {
  898. validator: "[A-Za-z\u0410-\u044f\u0401\u0451\xc0-\xff\xb5]",
  899. casing: "upper"
  900. },
  901. "&": {
  902. validator: "[0-9A-Za-z\u0410-\u044f\u0401\u0451\xc0-\xff\xb5]",
  903. casing: "upper"
  904. },
  905. "#": {
  906. validator: "[0-9A-Fa-f]",
  907. casing: "upper"
  908. }
  909. });
  910. var s = new RegExp("25[0-5]|2[0-4][0-9]|[01][0-9][0-9]");
  911. function l(e, t, i, a, n) {
  912. return i - 1 > -1 && "." !== t.buffer[i - 1] ? (e = t.buffer[i - 1] + e, e = i - 2 > -1 && "." !== t.buffer[i - 2] ? t.buffer[i - 2] + e : "0" + e) : e = "00" + e,
  913. s.test(e);
  914. }
  915. n.default.extendAliases({
  916. cssunit: {
  917. regex: "[+-]?[0-9]+\\.?([0-9]+)?(px|em|rem|ex|%|in|cm|mm|pt|pc)"
  918. },
  919. url: {
  920. regex: "(https?|ftp)://.*",
  921. autoUnmask: !1,
  922. keepStatic: !1,
  923. tabThrough: !0
  924. },
  925. ip: {
  926. mask: "i{1,3}.j{1,3}.k{1,3}.l{1,3}",
  927. definitions: {
  928. i: {
  929. validator: l
  930. },
  931. j: {
  932. validator: l
  933. },
  934. k: {
  935. validator: l
  936. },
  937. l: {
  938. validator: l
  939. }
  940. },
  941. onUnMask: function(e, t, i) {
  942. return e;
  943. },
  944. inputmode: "decimal",
  945. substitutes: {
  946. ",": "."
  947. }
  948. },
  949. email: {
  950. mask: function(e) {
  951. var t = e.separator, i = e.quantifier, a = "*{1,64}[.*{1,64}][.*{1,64}][.*{1,63}]@-{1,63}.-{1,63}[.-{1,63}][.-{1,63}]", n = a;
  952. if (t) for (var r = 0; r < i; r++) n += "[".concat(t).concat(a, "]");
  953. return n;
  954. },
  955. greedy: !1,
  956. casing: "lower",
  957. separator: null,
  958. quantifier: 5,
  959. skipOptionalPartCharacter: "",
  960. onBeforePaste: function(e, t) {
  961. return (e = e.toLowerCase()).replace("mailto:", "");
  962. },
  963. definitions: {
  964. "*": {
  965. validator: "[0-9\uff11-\uff19A-Za-z\u0410-\u044f\u0401\u0451\xc0-\xff\xb5!#$%&'*+/=?^_`{|}~-]"
  966. },
  967. "-": {
  968. validator: "[0-9A-Za-z-]"
  969. }
  970. },
  971. onUnMask: function(e, t, i) {
  972. return e;
  973. },
  974. inputmode: "email"
  975. },
  976. mac: {
  977. mask: "##:##:##:##:##:##"
  978. },
  979. vin: {
  980. mask: "V{13}9{4}",
  981. definitions: {
  982. V: {
  983. validator: "[A-HJ-NPR-Za-hj-npr-z\\d]",
  984. casing: "upper"
  985. }
  986. },
  987. clearIncomplete: !0,
  988. autoUnmask: !0
  989. },
  990. ssn: {
  991. mask: "999-99-9999",
  992. postValidation: function(e, t, i, a, n, s, l) {
  993. var c = o.getMaskTemplate.call(this, !0, r.getLastValidPosition.call(this), !0, !0);
  994. return /^(?!219-09-9999|078-05-1120)(?!666|000|9.{2}).{3}-(?!00).{2}-(?!0{4}).{4}$/.test(c.join(""));
  995. }
  996. }
  997. });
  998. },
  999. 207: function(e, t, i) {
  1000. var a = s(i(2394)), n = s(i(7184)), r = i(8711), o = i(2839);
  1001. function s(e) {
  1002. return e && e.__esModule ? e : {
  1003. default: e
  1004. };
  1005. }
  1006. var l = a.default.dependencyLib;
  1007. function c(e, t) {
  1008. for (var i = "", n = 0; n < e.length; n++) a.default.prototype.definitions[e.charAt(n)] || t.definitions[e.charAt(n)] || t.optionalmarker[0] === e.charAt(n) || t.optionalmarker[1] === e.charAt(n) || t.quantifiermarker[0] === e.charAt(n) || t.quantifiermarker[1] === e.charAt(n) || t.groupmarker[0] === e.charAt(n) || t.groupmarker[1] === e.charAt(n) || t.alternatormarker === e.charAt(n) ? i += "\\" + e.charAt(n) : i += e.charAt(n);
  1009. return i;
  1010. }
  1011. function u(e, t, i, a) {
  1012. if (e.length > 0 && t > 0 && (!i.digitsOptional || a)) {
  1013. var n = e.indexOf(i.radixPoint), r = !1;
  1014. i.negationSymbol.back === e[e.length - 1] && (r = !0, e.length--), -1 === n && (e.push(i.radixPoint),
  1015. n = e.length - 1);
  1016. for (var o = 1; o <= t; o++) isFinite(e[n + o]) || (e[n + o] = "0");
  1017. }
  1018. return r && e.push(i.negationSymbol.back), e;
  1019. }
  1020. function f(e, t) {
  1021. var i = 0;
  1022. for (var a in "+" === e && (i = r.seekNext.call(this, t.validPositions.length - 1)),
  1023. t.tests) if ((a = parseInt(a)) >= i) for (var n = 0, o = t.tests[a].length; n < o; n++) if ((void 0 === t.validPositions[a] || "-" === e) && t.tests[a][n].match.def === e) return a + (void 0 !== t.validPositions[a] && "-" !== e ? 1 : 0);
  1024. return i;
  1025. }
  1026. function p(e, t) {
  1027. for (var i = -1, a = 0, n = t.validPositions.length; a < n; a++) {
  1028. var r = t.validPositions[a];
  1029. if (r && r.match.def === e) {
  1030. i = a;
  1031. break;
  1032. }
  1033. }
  1034. return i;
  1035. }
  1036. function d(e, t, i, a, n) {
  1037. var r = t.buffer ? t.buffer.indexOf(n.radixPoint) : -1, o = (-1 !== r || a && n.jitMasking) && new RegExp(n.definitions[9].validator).test(e);
  1038. return n._radixDance && -1 !== r && o && null == t.validPositions[r] ? {
  1039. insert: {
  1040. pos: r === i ? r + 1 : r,
  1041. c: n.radixPoint
  1042. },
  1043. pos: i
  1044. } : o;
  1045. }
  1046. a.default.extendAliases({
  1047. numeric: {
  1048. mask: function(e) {
  1049. e.repeat = 0, e.groupSeparator === e.radixPoint && e.digits && "0" !== e.digits && ("." === e.radixPoint ? e.groupSeparator = "," : "," === e.radixPoint ? e.groupSeparator = "." : e.groupSeparator = ""),
  1050. " " === e.groupSeparator && (e.skipOptionalPartCharacter = void 0), e.placeholder.length > 1 && (e.placeholder = e.placeholder.charAt(0)),
  1051. "radixFocus" === e.positionCaretOnClick && "" === e.placeholder && (e.positionCaretOnClick = "lvp");
  1052. var t = "0", i = e.radixPoint;
  1053. !0 === e.numericInput && void 0 === e.__financeInput ? (t = "1", e.positionCaretOnClick = "radixFocus" === e.positionCaretOnClick ? "lvp" : e.positionCaretOnClick,
  1054. e.digitsOptional = !1, isNaN(e.digits) && (e.digits = 2), e._radixDance = !1, i = "," === e.radixPoint ? "?" : "!",
  1055. "" !== e.radixPoint && void 0 === e.definitions[i] && (e.definitions[i] = {}, e.definitions[i].validator = "[" + e.radixPoint + "]",
  1056. e.definitions[i].placeholder = e.radixPoint, e.definitions[i].static = !0, e.definitions[i].generated = !0)) : (e.__financeInput = !1,
  1057. e.numericInput = !0);
  1058. var a, r = "[+]";
  1059. if (r += c(e.prefix, e), "" !== e.groupSeparator ? (void 0 === e.definitions[e.groupSeparator] && (e.definitions[e.groupSeparator] = {},
  1060. e.definitions[e.groupSeparator].validator = "[" + e.groupSeparator + "]", e.definitions[e.groupSeparator].placeholder = e.groupSeparator,
  1061. e.definitions[e.groupSeparator].static = !0, e.definitions[e.groupSeparator].generated = !0),
  1062. r += e._mask(e)) : r += "9{+}", void 0 !== e.digits && 0 !== e.digits) {
  1063. var o = e.digits.toString().split(",");
  1064. isFinite(o[0]) && o[1] && isFinite(o[1]) ? r += i + t + "{" + e.digits + "}" : (isNaN(e.digits) || parseInt(e.digits) > 0) && (e.digitsOptional || e.jitMasking ? (a = r + i + t + "{0," + e.digits + "}",
  1065. e.keepStatic = !0) : r += i + t + "{" + e.digits + "}");
  1066. } else e.inputmode = "numeric";
  1067. return r += c(e.suffix, e), r += "[-]", a && (r = [ a + c(e.suffix, e) + "[-]", r ]),
  1068. e.greedy = !1, function(e) {
  1069. void 0 === e.parseMinMaxOptions && (null !== e.min && (e.min = e.min.toString().replace(new RegExp((0,
  1070. n.default)(e.groupSeparator), "g"), ""), "," === e.radixPoint && (e.min = e.min.replace(e.radixPoint, ".")),
  1071. e.min = isFinite(e.min) ? parseFloat(e.min) : NaN, isNaN(e.min) && (e.min = Number.MIN_VALUE)),
  1072. null !== e.max && (e.max = e.max.toString().replace(new RegExp((0, n.default)(e.groupSeparator), "g"), ""),
  1073. "," === e.radixPoint && (e.max = e.max.replace(e.radixPoint, ".")), e.max = isFinite(e.max) ? parseFloat(e.max) : NaN,
  1074. isNaN(e.max) && (e.max = Number.MAX_VALUE)), e.parseMinMaxOptions = "done");
  1075. }(e), "" !== e.radixPoint && e.substituteRadixPoint && (e.substitutes["." == e.radixPoint ? "," : "."] = e.radixPoint),
  1076. r;
  1077. },
  1078. _mask: function(e) {
  1079. return "(" + e.groupSeparator + "999){+|1}";
  1080. },
  1081. digits: "*",
  1082. digitsOptional: !0,
  1083. enforceDigitsOnBlur: !1,
  1084. radixPoint: ".",
  1085. positionCaretOnClick: "radixFocus",
  1086. _radixDance: !0,
  1087. groupSeparator: "",
  1088. allowMinus: !0,
  1089. negationSymbol: {
  1090. front: "-",
  1091. back: ""
  1092. },
  1093. prefix: "",
  1094. suffix: "",
  1095. min: null,
  1096. max: null,
  1097. SetMaxOnOverflow: !1,
  1098. step: 1,
  1099. inputType: "text",
  1100. unmaskAsNumber: !1,
  1101. roundingFN: Math.round,
  1102. inputmode: "decimal",
  1103. shortcuts: {
  1104. k: "1000",
  1105. m: "1000000"
  1106. },
  1107. placeholder: "0",
  1108. greedy: !1,
  1109. rightAlign: !0,
  1110. insertMode: !0,
  1111. autoUnmask: !1,
  1112. skipOptionalPartCharacter: "",
  1113. usePrototypeDefinitions: !1,
  1114. stripLeadingZeroes: !0,
  1115. substituteRadixPoint: !0,
  1116. definitions: {
  1117. 0: {
  1118. validator: d
  1119. },
  1120. 1: {
  1121. validator: d,
  1122. definitionSymbol: "9"
  1123. },
  1124. 9: {
  1125. validator: "[0-9\uff10-\uff19\u0660-\u0669\u06f0-\u06f9]",
  1126. definitionSymbol: "*"
  1127. },
  1128. "+": {
  1129. validator: function(e, t, i, a, n) {
  1130. return n.allowMinus && ("-" === e || e === n.negationSymbol.front);
  1131. }
  1132. },
  1133. "-": {
  1134. validator: function(e, t, i, a, n) {
  1135. return n.allowMinus && e === n.negationSymbol.back;
  1136. }
  1137. }
  1138. },
  1139. preValidation: function(e, t, i, a, n, r, o, s) {
  1140. if (!1 !== n.__financeInput && i === n.radixPoint) return !1;
  1141. var l = e.indexOf(n.radixPoint), c = t;
  1142. if (t = function(e, t, i, a, n) {
  1143. return n._radixDance && n.numericInput && t !== n.negationSymbol.back && e <= i && (i > 0 || t == n.radixPoint) && (void 0 === a.validPositions[e - 1] || a.validPositions[e - 1].input !== n.negationSymbol.back) && (e -= 1),
  1144. e;
  1145. }(t, i, l, r, n), "-" === i || i === n.negationSymbol.front) {
  1146. if (!0 !== n.allowMinus) return !1;
  1147. var u = !1, d = p("+", r), h = p("-", r);
  1148. return -1 !== d && (u = [ d, h ]), !1 !== u ? {
  1149. remove: u,
  1150. caret: c - n.negationSymbol.back.length
  1151. } : {
  1152. insert: [ {
  1153. pos: f.call(this, "+", r),
  1154. c: n.negationSymbol.front,
  1155. fromIsValid: !0
  1156. }, {
  1157. pos: f.call(this, "-", r),
  1158. c: n.negationSymbol.back,
  1159. fromIsValid: void 0
  1160. } ],
  1161. caret: c + n.negationSymbol.back.length
  1162. };
  1163. }
  1164. if (i === n.groupSeparator) return {
  1165. caret: c
  1166. };
  1167. if (s) return !0;
  1168. if (-1 !== l && !0 === n._radixDance && !1 === a && i === n.radixPoint && void 0 !== n.digits && (isNaN(n.digits) || parseInt(n.digits) > 0) && l !== t) return {
  1169. caret: n._radixDance && t === l - 1 ? l + 1 : l
  1170. };
  1171. if (!1 === n.__financeInput) if (a) {
  1172. if (n.digitsOptional) return {
  1173. rewritePosition: o.end
  1174. };
  1175. if (!n.digitsOptional) {
  1176. if (o.begin > l && o.end <= l) return i === n.radixPoint ? {
  1177. insert: {
  1178. pos: l + 1,
  1179. c: "0",
  1180. fromIsValid: !0
  1181. },
  1182. rewritePosition: l
  1183. } : {
  1184. rewritePosition: l + 1
  1185. };
  1186. if (o.begin < l) return {
  1187. rewritePosition: o.begin - 1
  1188. };
  1189. }
  1190. } else if (!n.showMaskOnHover && !n.showMaskOnFocus && !n.digitsOptional && n.digits > 0 && "" === this.__valueGet.call(this.el)) return {
  1191. rewritePosition: l
  1192. };
  1193. return {
  1194. rewritePosition: t
  1195. };
  1196. },
  1197. postValidation: function(e, t, i, a, n, r, o) {
  1198. if (!1 === a) return a;
  1199. if (o) return !0;
  1200. if (null !== n.min || null !== n.max) {
  1201. var s = n.onUnMask(e.slice().reverse().join(""), void 0, l.extend({}, n, {
  1202. unmaskAsNumber: !0
  1203. }));
  1204. if (null !== n.min && s < n.min && (s.toString().length > n.min.toString().length || s < 0)) return !1;
  1205. if (null !== n.max && s > n.max) return !!n.SetMaxOnOverflow && {
  1206. refreshFromBuffer: !0,
  1207. buffer: u(n.max.toString().replace(".", n.radixPoint).split(""), n.digits, n).reverse()
  1208. };
  1209. }
  1210. return a;
  1211. },
  1212. onUnMask: function(e, t, i) {
  1213. if ("" === t && !0 === i.nullable) return t;
  1214. var a = e.replace(i.prefix, "");
  1215. return a = (a = a.replace(i.suffix, "")).replace(new RegExp((0, n.default)(i.groupSeparator), "g"), ""),
  1216. "" !== i.placeholder.charAt(0) && (a = a.replace(new RegExp(i.placeholder.charAt(0), "g"), "0")),
  1217. i.unmaskAsNumber ? ("" !== i.radixPoint && -1 !== a.indexOf(i.radixPoint) && (a = a.replace(n.default.call(this, i.radixPoint), ".")),
  1218. a = (a = a.replace(new RegExp("^" + (0, n.default)(i.negationSymbol.front)), "-")).replace(new RegExp((0,
  1219. n.default)(i.negationSymbol.back) + "$"), ""), Number(a)) : a;
  1220. },
  1221. isComplete: function(e, t) {
  1222. var i = (t.numericInput ? e.slice().reverse() : e).join("");
  1223. return i = (i = (i = (i = (i = i.replace(new RegExp("^" + (0, n.default)(t.negationSymbol.front)), "-")).replace(new RegExp((0,
  1224. n.default)(t.negationSymbol.back) + "$"), "")).replace(t.prefix, "")).replace(t.suffix, "")).replace(new RegExp((0,
  1225. n.default)(t.groupSeparator) + "([0-9]{3})", "g"), "$1"), "," === t.radixPoint && (i = i.replace((0,
  1226. n.default)(t.radixPoint), ".")), isFinite(i);
  1227. },
  1228. onBeforeMask: function(e, t) {
  1229. var i = t.radixPoint || ",";
  1230. isFinite(t.digits) && (t.digits = parseInt(t.digits)), "number" != typeof e && "number" !== t.inputType || "" === i || (e = e.toString().replace(".", i));
  1231. var a = "-" === e.charAt(0) || e.charAt(0) === t.negationSymbol.front, r = e.split(i), o = r[0].replace(/[^\-0-9]/g, ""), s = r.length > 1 ? r[1].replace(/[^0-9]/g, "") : "", l = r.length > 1;
  1232. e = o + ("" !== s ? i + s : s);
  1233. var c = 0;
  1234. if ("" !== i && (c = t.digitsOptional ? t.digits < s.length ? t.digits : s.length : t.digits,
  1235. "" !== s || !t.digitsOptional)) {
  1236. var f = Math.pow(10, c || 1);
  1237. e = e.replace((0, n.default)(i), "."), isNaN(parseFloat(e)) || (e = (t.roundingFN(parseFloat(e) * f) / f).toFixed(c)),
  1238. e = e.toString().replace(".", i);
  1239. }
  1240. if (0 === t.digits && -1 !== e.indexOf(i) && (e = e.substring(0, e.indexOf(i))),
  1241. null !== t.min || null !== t.max) {
  1242. var p = e.toString().replace(i, ".");
  1243. null !== t.min && p < t.min ? e = t.min.toString().replace(".", i) : null !== t.max && p > t.max && (e = t.max.toString().replace(".", i));
  1244. }
  1245. return a && "-" !== e.charAt(0) && (e = "-" + e), u(e.toString().split(""), c, t, l).join("");
  1246. },
  1247. onBeforeWrite: function(e, t, i, a) {
  1248. function r(e, t) {
  1249. if (!1 !== a.__financeInput || t) {
  1250. var i = e.indexOf(a.radixPoint);
  1251. -1 !== i && e.splice(i, 1);
  1252. }
  1253. if ("" !== a.groupSeparator) for (;-1 !== (i = e.indexOf(a.groupSeparator)); ) e.splice(i, 1);
  1254. return e;
  1255. }
  1256. var o, s;
  1257. if (a.stripLeadingZeroes && (s = function(e, t) {
  1258. var i = new RegExp("(^" + ("" !== t.negationSymbol.front ? (0, n.default)(t.negationSymbol.front) + "?" : "") + (0,
  1259. n.default)(t.prefix) + ")(.*)(" + (0, n.default)(t.suffix) + ("" != t.negationSymbol.back ? (0,
  1260. n.default)(t.negationSymbol.back) + "?" : "") + "$)").exec(e.slice().reverse().join("")), a = i ? i[2] : "", r = !1;
  1261. return a && (a = a.split(t.radixPoint.charAt(0))[0], r = new RegExp("^[0" + t.groupSeparator + "]*").exec(a)),
  1262. !(!r || !(r[0].length > 1 || r[0].length > 0 && r[0].length < a.length)) && r;
  1263. }(t, a))) for (var c = t.join("").lastIndexOf(s[0].split("").reverse().join("")) - (s[0] == s.input ? 0 : 1), f = s[0] == s.input ? 1 : 0, p = s[0].length - f; p > 0; p--) delete this.maskset.validPositions[c + p],
  1264. delete t[c + p];
  1265. if (e) switch (e.type) {
  1266. case "blur":
  1267. case "checkval":
  1268. if (null !== a.min) {
  1269. var d = a.onUnMask(t.slice().reverse().join(""), void 0, l.extend({}, a, {
  1270. unmaskAsNumber: !0
  1271. }));
  1272. if (null !== a.min && d < a.min) return {
  1273. refreshFromBuffer: !0,
  1274. buffer: u(a.min.toString().replace(".", a.radixPoint).split(""), a.digits, a).reverse()
  1275. };
  1276. }
  1277. if (t[t.length - 1] === a.negationSymbol.front) {
  1278. var h = new RegExp("(^" + ("" != a.negationSymbol.front ? (0, n.default)(a.negationSymbol.front) + "?" : "") + (0,
  1279. n.default)(a.prefix) + ")(.*)(" + (0, n.default)(a.suffix) + ("" != a.negationSymbol.back ? (0,
  1280. n.default)(a.negationSymbol.back) + "?" : "") + "$)").exec(r(t.slice(), !0).reverse().join(""));
  1281. 0 == (h ? h[2] : "") && (o = {
  1282. refreshFromBuffer: !0,
  1283. buffer: [ 0 ]
  1284. });
  1285. } else if ("" !== a.radixPoint) {
  1286. t.indexOf(a.radixPoint) === a.suffix.length && (o && o.buffer ? o.buffer.splice(0, 1 + a.suffix.length) : (t.splice(0, 1 + a.suffix.length),
  1287. o = {
  1288. refreshFromBuffer: !0,
  1289. buffer: r(t)
  1290. }));
  1291. }
  1292. if (a.enforceDigitsOnBlur) {
  1293. var m = (o = o || {}) && o.buffer || t.slice().reverse();
  1294. o.refreshFromBuffer = !0, o.buffer = u(m, a.digits, a, !0).reverse();
  1295. }
  1296. }
  1297. return o;
  1298. },
  1299. onKeyDown: function(e, t, i, a) {
  1300. var n, r = l(this);
  1301. if (3 != e.location) {
  1302. var s, c = e.key;
  1303. if ((s = a.shortcuts && a.shortcuts[c]) && s.length > 1) return this.inputmask.__valueSet.call(this, parseFloat(this.inputmask.unmaskedvalue()) * parseInt(s)),
  1304. r.trigger("setvalue"), !1;
  1305. }
  1306. if (e.ctrlKey) switch (e.key) {
  1307. case o.keys.ArrowUp:
  1308. return this.inputmask.__valueSet.call(this, parseFloat(this.inputmask.unmaskedvalue()) + parseInt(a.step)),
  1309. r.trigger("setvalue"), !1;
  1310. case o.keys.ArrowDown:
  1311. return this.inputmask.__valueSet.call(this, parseFloat(this.inputmask.unmaskedvalue()) - parseInt(a.step)),
  1312. r.trigger("setvalue"), !1;
  1313. }
  1314. if (!e.shiftKey && (e.key === o.keys.Delete || e.key === o.keys.Backspace || e.key === o.keys.BACKSPACE_SAFARI) && i.begin !== t.length) {
  1315. if (t[e.key === o.keys.Delete ? i.begin - 1 : i.end] === a.negationSymbol.front) return n = t.slice().reverse(),
  1316. "" !== a.negationSymbol.front && n.shift(), "" !== a.negationSymbol.back && n.pop(),
  1317. r.trigger("setvalue", [ n.join(""), i.begin ]), !1;
  1318. if (!0 === a._radixDance) {
  1319. var f = t.indexOf(a.radixPoint);
  1320. if (a.digitsOptional) {
  1321. if (0 === f) return (n = t.slice().reverse()).pop(), r.trigger("setvalue", [ n.join(""), i.begin >= n.length ? n.length : i.begin ]),
  1322. !1;
  1323. } else if (-1 !== f && (i.begin < f || i.end < f || e.key === o.keys.Delete && (i.begin === f || i.begin - 1 === f))) {
  1324. var p = void 0;
  1325. return i.begin === i.end && (e.key === o.keys.Backspace || e.key === o.keys.BACKSPACE_SAFARI ? i.begin++ : e.key === o.keys.Delete && i.begin - 1 === f && (p = l.extend({}, i),
  1326. i.begin--, i.end--)), (n = t.slice().reverse()).splice(n.length - i.begin, i.begin - i.end + 1),
  1327. n = u(n, a.digits, a).join(""), p && (i = p), r.trigger("setvalue", [ n, i.begin >= n.length ? f + 1 : i.begin ]),
  1328. !1;
  1329. }
  1330. }
  1331. }
  1332. }
  1333. },
  1334. currency: {
  1335. prefix: "",
  1336. groupSeparator: ",",
  1337. alias: "numeric",
  1338. digits: 2,
  1339. digitsOptional: !1
  1340. },
  1341. decimal: {
  1342. alias: "numeric"
  1343. },
  1344. integer: {
  1345. alias: "numeric",
  1346. inputmode: "numeric",
  1347. digits: 0
  1348. },
  1349. percentage: {
  1350. alias: "numeric",
  1351. min: 0,
  1352. max: 100,
  1353. suffix: " %",
  1354. digits: 0,
  1355. allowMinus: !1
  1356. },
  1357. indianns: {
  1358. alias: "numeric",
  1359. _mask: function(e) {
  1360. return "(" + e.groupSeparator + "99){*|1}(" + e.groupSeparator + "999){1|1}";
  1361. },
  1362. groupSeparator: ",",
  1363. radixPoint: ".",
  1364. placeholder: "0",
  1365. digits: 2,
  1366. digitsOptional: !1
  1367. }
  1368. });
  1369. },
  1370. 9380: function(e, t, i) {
  1371. var a;
  1372. Object.defineProperty(t, "__esModule", {
  1373. value: !0
  1374. }), t.default = void 0;
  1375. var n = ((a = i(8741)) && a.__esModule ? a : {
  1376. default: a
  1377. }).default ? window : {};
  1378. t.default = n;
  1379. },
  1380. 7760: function(e, t, i) {
  1381. Object.defineProperty(t, "__esModule", {
  1382. value: !0
  1383. }), t.HandleNativePlaceholder = function(e, t) {
  1384. var i = e ? e.inputmask : this;
  1385. if (s.ie) {
  1386. if (e.inputmask._valueGet() !== t && (e.placeholder !== t || "" === e.placeholder)) {
  1387. var a = r.getBuffer.call(i).slice(), n = e.inputmask._valueGet();
  1388. if (n !== t) {
  1389. var o = r.getLastValidPosition.call(i);
  1390. -1 === o && n === r.getBufferTemplate.call(i).join("") ? a = [] : -1 !== o && u.call(i, a),
  1391. p(e, a);
  1392. }
  1393. }
  1394. } else e.placeholder !== t && (e.placeholder = t, "" === e.placeholder && e.removeAttribute("placeholder"));
  1395. }, t.applyInputValue = c, t.checkVal = f, t.clearOptionalTail = u, t.unmaskedvalue = function(e) {
  1396. var t = e ? e.inputmask : this, i = t.opts, a = t.maskset;
  1397. if (e) {
  1398. if (void 0 === e.inputmask) return e.value;
  1399. e.inputmask && e.inputmask.refreshValue && c(e, e.inputmask._valueGet(!0));
  1400. }
  1401. for (var n = [], o = a.validPositions, s = 0, l = o.length; s < l; s++) o[s] && o[s].match && (1 != o[s].match.static || Array.isArray(a.metadata) && !0 !== o[s].generatedInput) && n.push(o[s].input);
  1402. var u = 0 === n.length ? "" : (t.isRTL ? n.reverse() : n).join("");
  1403. if ("function" == typeof i.onUnMask) {
  1404. var f = (t.isRTL ? r.getBuffer.call(t).slice().reverse() : r.getBuffer.call(t)).join("");
  1405. u = i.onUnMask.call(t, f, u, i);
  1406. }
  1407. return u;
  1408. }, t.writeBuffer = p;
  1409. var a = i(2839), n = i(4713), r = i(8711), o = i(7215), s = i(9845), l = i(6030);
  1410. function c(e, t) {
  1411. var i = e ? e.inputmask : this, a = i.opts;
  1412. e.inputmask.refreshValue = !1, "function" == typeof a.onBeforeMask && (t = a.onBeforeMask.call(i, t, a) || t),
  1413. f(e, !0, !1, t = t.toString().split("")), i.undoValue = i._valueGet(!0), (a.clearMaskOnLostFocus || a.clearIncomplete) && e.inputmask._valueGet() === r.getBufferTemplate.call(i).join("") && -1 === r.getLastValidPosition.call(i) && e.inputmask._valueSet("");
  1414. }
  1415. function u(e) {
  1416. e.length = 0;
  1417. for (var t, i = n.getMaskTemplate.call(this, !0, 0, !0, void 0, !0); void 0 !== (t = i.shift()); ) e.push(t);
  1418. return e;
  1419. }
  1420. function f(e, t, i, a, s) {
  1421. var c = e ? e.inputmask : this, u = c.maskset, f = c.opts, d = c.dependencyLib, h = a.slice(), m = "", v = -1, g = void 0, k = f.skipOptionalPartCharacter;
  1422. f.skipOptionalPartCharacter = "", r.resetMaskSet.call(c), u.tests = {}, v = f.radixPoint ? r.determineNewCaretPosition.call(c, {
  1423. begin: 0,
  1424. end: 0
  1425. }, !1, !1 === f.__financeInput ? "radixFocus" : void 0).begin : 0, u.p = v, c.caretPos = {
  1426. begin: v
  1427. };
  1428. var y = [], b = c.caretPos;
  1429. if (h.forEach((function(e, t) {
  1430. if (void 0 !== e) {
  1431. var a = new d.Event("_checkval");
  1432. a.key = e, m += e;
  1433. var o = r.getLastValidPosition.call(c, void 0, !0);
  1434. !function(e, t) {
  1435. for (var i = n.getMaskTemplate.call(c, !0, 0).slice(e, r.seekNext.call(c, e, !1, !1)).join("").replace(/'/g, ""), a = i.indexOf(t); a > 0 && " " === i[a - 1]; ) a--;
  1436. var o = 0 === a && !r.isMask.call(c, e) && (n.getTest.call(c, e).match.nativeDef === t.charAt(0) || !0 === n.getTest.call(c, e).match.static && n.getTest.call(c, e).match.nativeDef === "'" + t.charAt(0) || " " === n.getTest.call(c, e).match.nativeDef && (n.getTest.call(c, e + 1).match.nativeDef === t.charAt(0) || !0 === n.getTest.call(c, e + 1).match.static && n.getTest.call(c, e + 1).match.nativeDef === "'" + t.charAt(0)));
  1437. if (!o && a > 0 && !r.isMask.call(c, e, !1, !0)) {
  1438. var s = r.seekNext.call(c, e);
  1439. c.caretPos.begin < s && (c.caretPos = {
  1440. begin: s
  1441. });
  1442. }
  1443. return o;
  1444. }(v, m) ? (g = l.EventHandlers.keypressEvent.call(c, a, !0, !1, i, c.caretPos.begin)) && (v = c.caretPos.begin + 1,
  1445. m = "") : g = l.EventHandlers.keypressEvent.call(c, a, !0, !1, i, o + 1), g ? (void 0 !== g.pos && u.validPositions[g.pos] && !0 === u.validPositions[g.pos].match.static && void 0 === u.validPositions[g.pos].alternation && (y.push(g.pos),
  1446. c.isRTL || (g.forwardPosition = g.pos + 1)), p.call(c, void 0, r.getBuffer.call(c), g.forwardPosition, a, !1),
  1447. c.caretPos = {
  1448. begin: g.forwardPosition,
  1449. end: g.forwardPosition
  1450. }, b = c.caretPos) : void 0 === u.validPositions[t] && h[t] === n.getPlaceholder.call(c, t) && r.isMask.call(c, t, !0) ? c.caretPos.begin++ : c.caretPos = b;
  1451. }
  1452. })), y.length > 0) {
  1453. var x, P, w = r.seekNext.call(c, -1, void 0, !1);
  1454. if (!o.isComplete.call(c, r.getBuffer.call(c)) && y.length <= w || o.isComplete.call(c, r.getBuffer.call(c)) && y.length > 0 && y.length !== w && 0 === y[0]) for (var S = w; void 0 !== (x = y.shift()); ) {
  1455. var M = new d.Event("_checkval");
  1456. if ((P = u.validPositions[x]).generatedInput = !0, M.key = P.input, (g = l.EventHandlers.keypressEvent.call(c, M, !0, !1, i, S)) && void 0 !== g.pos && g.pos !== x && u.validPositions[g.pos] && !0 === u.validPositions[g.pos].match.static) y.push(g.pos); else if (!g) break;
  1457. S++;
  1458. }
  1459. }
  1460. t && p.call(c, e, r.getBuffer.call(c), g ? g.forwardPosition : c.caretPos.begin, s || new d.Event("checkval"), s && ("input" === s.type && c.undoValue !== r.getBuffer.call(c).join("") || "paste" === s.type)),
  1461. f.skipOptionalPartCharacter = k;
  1462. }
  1463. function p(e, t, i, n, s) {
  1464. var l = e ? e.inputmask : this, c = l.opts, u = l.dependencyLib;
  1465. if (n && "function" == typeof c.onBeforeWrite) {
  1466. var f = c.onBeforeWrite.call(l, n, t, i, c);
  1467. if (f) {
  1468. if (f.refreshFromBuffer) {
  1469. var p = f.refreshFromBuffer;
  1470. o.refreshFromBuffer.call(l, !0 === p ? p : p.start, p.end, f.buffer || t), t = r.getBuffer.call(l, !0);
  1471. }
  1472. void 0 !== i && (i = void 0 !== f.caret ? f.caret : i);
  1473. }
  1474. }
  1475. if (void 0 !== e && (e.inputmask._valueSet(t.join("")), void 0 === i || void 0 !== n && "blur" === n.type || r.caret.call(l, e, i, void 0, void 0, void 0 !== n && "keydown" === n.type && (n.key === a.keys.Delete || n.key === a.keys.Backspace)),
  1476. !0 === s)) {
  1477. var d = u(e), h = e.inputmask._valueGet();
  1478. e.inputmask.skipInputEvent = !0, d.trigger("input"), setTimeout((function() {
  1479. h === r.getBufferTemplate.call(l).join("") ? d.trigger("cleared") : !0 === o.isComplete.call(l, t) && d.trigger("complete");
  1480. }), 0);
  1481. }
  1482. }
  1483. },
  1484. 2394: function(e, t, i) {
  1485. Object.defineProperty(t, "__esModule", {
  1486. value: !0
  1487. }), t.default = void 0;
  1488. var a = i(157), n = v(i(3287)), r = v(i(9380)), o = i(2391), s = i(4713), l = i(8711), c = i(7215), u = i(7760), f = i(9716), p = v(i(7392)), d = v(i(3976)), h = v(i(8741));
  1489. function m(e) {
  1490. return m = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
  1491. return typeof e;
  1492. } : function(e) {
  1493. return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
  1494. }, m(e);
  1495. }
  1496. function v(e) {
  1497. return e && e.__esModule ? e : {
  1498. default: e
  1499. };
  1500. }
  1501. var g = r.default.document, k = "_inputmask_opts";
  1502. function y(e, t, i) {
  1503. if (h.default) {
  1504. if (!(this instanceof y)) return new y(e, t, i);
  1505. this.dependencyLib = n.default, this.el = void 0, this.events = {}, this.maskset = void 0,
  1506. !0 !== i && ("[object Object]" === Object.prototype.toString.call(e) ? t = e : (t = t || {},
  1507. e && (t.alias = e)), this.opts = n.default.extend(!0, {}, this.defaults, t), this.noMasksCache = t && void 0 !== t.definitions,
  1508. this.userOptions = t || {}, b(this.opts.alias, t, this.opts)), this.refreshValue = !1,
  1509. this.undoValue = void 0, this.$el = void 0, this.skipInputEvent = !1, this.validationEvent = !1,
  1510. this.ignorable = !1, this.maxLength, this.mouseEnter = !1, this.clicked = 0, this.originalPlaceholder = void 0,
  1511. this.isComposing = !1, this.hasAlternator = !1;
  1512. }
  1513. }
  1514. function b(e, t, i) {
  1515. var a = y.prototype.aliases[e];
  1516. return a ? (a.alias && b(a.alias, void 0, i), n.default.extend(!0, i, a), n.default.extend(!0, i, t),
  1517. !0) : (null === i.mask && (i.mask = e), !1);
  1518. }
  1519. y.prototype = {
  1520. dataAttribute: "data-inputmask",
  1521. defaults: d.default,
  1522. definitions: p.default,
  1523. aliases: {},
  1524. masksCache: {},
  1525. get isRTL() {
  1526. return this.opts.isRTL || this.opts.numericInput;
  1527. },
  1528. mask: function(e) {
  1529. var t = this;
  1530. return "string" == typeof e && (e = g.getElementById(e) || g.querySelectorAll(e)),
  1531. (e = e.nodeName ? [ e ] : Array.isArray(e) ? e : [].slice.call(e)).forEach((function(e, i) {
  1532. var s = n.default.extend(!0, {}, t.opts);
  1533. if (function(e, t, i, a) {
  1534. function o(t, n) {
  1535. var o = "" === a ? t : a + "-" + t;
  1536. null !== (n = void 0 !== n ? n : e.getAttribute(o)) && ("string" == typeof n && (0 === t.indexOf("on") ? n = r.default[n] : "false" === n ? n = !1 : "true" === n && (n = !0)),
  1537. i[t] = n);
  1538. }
  1539. if (!0 === t.importDataAttributes) {
  1540. var s, l, c, u, f = e.getAttribute(a);
  1541. if (f && "" !== f && (f = f.replace(/'/g, '"'), l = JSON.parse("{" + f + "}")),
  1542. l) for (u in c = void 0, l) if ("alias" === u.toLowerCase()) {
  1543. c = l[u];
  1544. break;
  1545. }
  1546. for (s in o("alias", c), i.alias && b(i.alias, i, t), t) {
  1547. if (l) for (u in c = void 0, l) if (u.toLowerCase() === s.toLowerCase()) {
  1548. c = l[u];
  1549. break;
  1550. }
  1551. o(s, c);
  1552. }
  1553. }
  1554. n.default.extend(!0, t, i), ("rtl" === e.dir || t.rightAlign) && (e.style.textAlign = "right");
  1555. ("rtl" === e.dir || t.numericInput) && (e.dir = "ltr", e.removeAttribute("dir"),
  1556. t.isRTL = !0);
  1557. return Object.keys(i).length;
  1558. }(e, s, n.default.extend(!0, {}, t.userOptions), t.dataAttribute)) {
  1559. var l = (0, o.generateMaskSet)(s, t.noMasksCache);
  1560. void 0 !== l && (void 0 !== e.inputmask && (e.inputmask.opts.autoUnmask = !0, e.inputmask.remove()),
  1561. e.inputmask = new y(void 0, void 0, !0), e.inputmask.opts = s, e.inputmask.noMasksCache = t.noMasksCache,
  1562. e.inputmask.userOptions = n.default.extend(!0, {}, t.userOptions), e.inputmask.el = e,
  1563. e.inputmask.$el = (0, n.default)(e), e.inputmask.maskset = l, n.default.data(e, k, t.userOptions),
  1564. a.mask.call(e.inputmask));
  1565. }
  1566. })), e && e[0] && e[0].inputmask || this;
  1567. },
  1568. option: function(e, t) {
  1569. return "string" == typeof e ? this.opts[e] : "object" === m(e) ? (n.default.extend(this.userOptions, e),
  1570. this.el && !0 !== t && this.mask(this.el), this) : void 0;
  1571. },
  1572. unmaskedvalue: function(e) {
  1573. if (this.maskset = this.maskset || (0, o.generateMaskSet)(this.opts, this.noMasksCache),
  1574. void 0 === this.el || void 0 !== e) {
  1575. var t = ("function" == typeof this.opts.onBeforeMask && this.opts.onBeforeMask.call(this, e, this.opts) || e).split("");
  1576. 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);
  1577. }
  1578. return u.unmaskedvalue.call(this, this.el);
  1579. },
  1580. remove: function() {
  1581. if (this.el) {
  1582. n.default.data(this.el, k, null);
  1583. var e = this.opts.autoUnmask ? (0, u.unmaskedvalue)(this.el) : this._valueGet(this.opts.autoUnmask);
  1584. e !== l.getBufferTemplate.call(this).join("") ? this._valueSet(e, this.opts.autoUnmask) : this._valueSet(""),
  1585. f.EventRuler.off(this.el), Object.getOwnPropertyDescriptor && Object.getPrototypeOf ? Object.getOwnPropertyDescriptor(Object.getPrototypeOf(this.el), "value") && this.__valueGet && Object.defineProperty(this.el, "value", {
  1586. get: this.__valueGet,
  1587. set: this.__valueSet,
  1588. configurable: !0
  1589. }) : g.__lookupGetter__ && this.el.__lookupGetter__("value") && this.__valueGet && (this.el.__defineGetter__("value", this.__valueGet),
  1590. this.el.__defineSetter__("value", this.__valueSet)), this.el.inputmask = void 0;
  1591. }
  1592. return this.el;
  1593. },
  1594. getemptymask: function() {
  1595. return this.maskset = this.maskset || (0, o.generateMaskSet)(this.opts, this.noMasksCache),
  1596. (this.isRTL ? l.getBufferTemplate.call(this).reverse() : l.getBufferTemplate.call(this)).join("");
  1597. },
  1598. hasMaskedValue: function() {
  1599. return !this.opts.autoUnmask;
  1600. },
  1601. isComplete: function() {
  1602. return this.maskset = this.maskset || (0, o.generateMaskSet)(this.opts, this.noMasksCache),
  1603. c.isComplete.call(this, l.getBuffer.call(this));
  1604. },
  1605. getmetadata: function() {
  1606. if (this.maskset = this.maskset || (0, o.generateMaskSet)(this.opts, this.noMasksCache),
  1607. Array.isArray(this.maskset.metadata)) {
  1608. var e = s.getMaskTemplate.call(this, !0, 0, !1).join("");
  1609. return this.maskset.metadata.forEach((function(t) {
  1610. return t.mask !== e || (e = t, !1);
  1611. })), e;
  1612. }
  1613. return this.maskset.metadata;
  1614. },
  1615. isValid: function(e) {
  1616. if (this.maskset = this.maskset || (0, o.generateMaskSet)(this.opts, this.noMasksCache),
  1617. e) {
  1618. var t = ("function" == typeof this.opts.onBeforeMask && this.opts.onBeforeMask.call(this, e, this.opts) || e).split("");
  1619. u.checkVal.call(this, void 0, !0, !1, t);
  1620. } else e = this.isRTL ? l.getBuffer.call(this).slice().reverse().join("") : l.getBuffer.call(this).join("");
  1621. for (var i = l.getBuffer.call(this), a = l.determineLastRequiredPosition.call(this), n = i.length - 1; n > a && !l.isMask.call(this, n); n--) ;
  1622. return i.splice(a, n + 1 - a), c.isComplete.call(this, i) && e === (this.isRTL ? l.getBuffer.call(this).slice().reverse().join("") : l.getBuffer.call(this).join(""));
  1623. },
  1624. format: function(e, t) {
  1625. this.maskset = this.maskset || (0, o.generateMaskSet)(this.opts, this.noMasksCache);
  1626. var i = ("function" == typeof this.opts.onBeforeMask && this.opts.onBeforeMask.call(this, e, this.opts) || e).split("");
  1627. u.checkVal.call(this, void 0, !0, !1, i);
  1628. var a = this.isRTL ? l.getBuffer.call(this).slice().reverse().join("") : l.getBuffer.call(this).join("");
  1629. return t ? {
  1630. value: a,
  1631. metadata: this.getmetadata()
  1632. } : a;
  1633. },
  1634. setValue: function(e) {
  1635. this.el && (0, n.default)(this.el).trigger("setvalue", [ e ]);
  1636. },
  1637. analyseMask: o.analyseMask
  1638. }, y.extendDefaults = function(e) {
  1639. n.default.extend(!0, y.prototype.defaults, e);
  1640. }, y.extendDefinitions = function(e) {
  1641. n.default.extend(!0, y.prototype.definitions, e);
  1642. }, y.extendAliases = function(e) {
  1643. n.default.extend(!0, y.prototype.aliases, e);
  1644. }, y.format = function(e, t, i) {
  1645. return y(t).format(e, i);
  1646. }, y.unmask = function(e, t) {
  1647. return y(t).unmaskedvalue(e);
  1648. }, y.isValid = function(e, t) {
  1649. return y(t).isValid(e);
  1650. }, y.remove = function(e) {
  1651. "string" == typeof e && (e = g.getElementById(e) || g.querySelectorAll(e)), (e = e.nodeName ? [ e ] : e).forEach((function(e) {
  1652. e.inputmask && e.inputmask.remove();
  1653. }));
  1654. }, y.setValue = function(e, t) {
  1655. "string" == typeof e && (e = g.getElementById(e) || g.querySelectorAll(e)), (e = e.nodeName ? [ e ] : e).forEach((function(e) {
  1656. e.inputmask ? e.inputmask.setValue(t) : (0, n.default)(e).trigger("setvalue", [ t ]);
  1657. }));
  1658. }, y.dependencyLib = n.default, r.default.Inputmask = y;
  1659. var x = y;
  1660. t.default = x;
  1661. },
  1662. 5296: function(e, t, i) {
  1663. function a(e) {
  1664. return a = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
  1665. return typeof e;
  1666. } : function(e) {
  1667. return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
  1668. }, a(e);
  1669. }
  1670. var n = h(i(9380)), r = h(i(2394)), o = h(i(8741));
  1671. function s(e, t) {
  1672. for (var i = 0; i < t.length; i++) {
  1673. var n = t[i];
  1674. n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0),
  1675. Object.defineProperty(e, (r = n.key, o = void 0, o = function(e, t) {
  1676. if ("object" !== a(e) || null === e) return e;
  1677. var i = e[Symbol.toPrimitive];
  1678. if (void 0 !== i) {
  1679. var n = i.call(e, t || "default");
  1680. if ("object" !== a(n)) return n;
  1681. throw new TypeError("@@toPrimitive must return a primitive value.");
  1682. }
  1683. return ("string" === t ? String : Number)(e);
  1684. }(r, "string"), "symbol" === a(o) ? o : String(o)), n);
  1685. }
  1686. var r, o;
  1687. }
  1688. function l(e, t) {
  1689. if (t && ("object" === a(t) || "function" == typeof t)) return t;
  1690. if (void 0 !== t) throw new TypeError("Derived constructors may only return object or undefined");
  1691. return function(e) {
  1692. if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  1693. return e;
  1694. }(e);
  1695. }
  1696. function c(e) {
  1697. var t = "function" == typeof Map ? new Map : void 0;
  1698. return c = function(e) {
  1699. if (null === e || (i = e, -1 === Function.toString.call(i).indexOf("[native code]"))) return e;
  1700. var i;
  1701. if ("function" != typeof e) throw new TypeError("Super expression must either be null or a function");
  1702. if (void 0 !== t) {
  1703. if (t.has(e)) return t.get(e);
  1704. t.set(e, a);
  1705. }
  1706. function a() {
  1707. return u(e, arguments, d(this).constructor);
  1708. }
  1709. return a.prototype = Object.create(e.prototype, {
  1710. constructor: {
  1711. value: a,
  1712. enumerable: !1,
  1713. writable: !0,
  1714. configurable: !0
  1715. }
  1716. }), p(a, e);
  1717. }, c(e);
  1718. }
  1719. function u(e, t, i) {
  1720. return u = f() ? Reflect.construct.bind() : function(e, t, i) {
  1721. var a = [ null ];
  1722. a.push.apply(a, t);
  1723. var n = new (Function.bind.apply(e, a));
  1724. return i && p(n, i.prototype), n;
  1725. }, u.apply(null, arguments);
  1726. }
  1727. function f() {
  1728. if ("undefined" == typeof Reflect || !Reflect.construct) return !1;
  1729. if (Reflect.construct.sham) return !1;
  1730. if ("function" == typeof Proxy) return !0;
  1731. try {
  1732. return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], (function() {}))),
  1733. !0;
  1734. } catch (e) {
  1735. return !1;
  1736. }
  1737. }
  1738. function p(e, t) {
  1739. return p = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
  1740. return e.__proto__ = t, e;
  1741. }, p(e, t);
  1742. }
  1743. function d(e) {
  1744. return d = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
  1745. return e.__proto__ || Object.getPrototypeOf(e);
  1746. }, d(e);
  1747. }
  1748. function h(e) {
  1749. return e && e.__esModule ? e : {
  1750. default: e
  1751. };
  1752. }
  1753. var m = n.default.document;
  1754. if (o.default && m && m.head && m.head.attachShadow && n.default.customElements && void 0 === n.default.customElements.get("input-mask")) {
  1755. var v = function(e) {
  1756. !function(e, t) {
  1757. if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function");
  1758. e.prototype = Object.create(t && t.prototype, {
  1759. constructor: {
  1760. value: e,
  1761. writable: !0,
  1762. configurable: !0
  1763. }
  1764. }), Object.defineProperty(e, "prototype", {
  1765. writable: !1
  1766. }), t && p(e, t);
  1767. }(u, e);
  1768. var t, i, a, n, o, c = (t = u, i = f(), function() {
  1769. var e, a = d(t);
  1770. if (i) {
  1771. var n = d(this).constructor;
  1772. e = Reflect.construct(a, arguments, n);
  1773. } else e = a.apply(this, arguments);
  1774. return l(this, e);
  1775. });
  1776. function u() {
  1777. var e;
  1778. !function(e, t) {
  1779. if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
  1780. }(this, u);
  1781. var t = (e = c.call(this)).getAttributeNames(), i = e.attachShadow({
  1782. mode: "closed"
  1783. }), a = m.createElement("input");
  1784. for (var n in a.type = "text", i.appendChild(a), t) Object.prototype.hasOwnProperty.call(t, n) && a.setAttribute(t[n], e.getAttribute(t[n]));
  1785. var o = new r.default;
  1786. return o.dataAttribute = "", o.mask(a), a.inputmask.shadowRoot = i, e;
  1787. }
  1788. return a = u, n && s(a.prototype, n), o && s(a, o), Object.defineProperty(a, "prototype", {
  1789. writable: !1
  1790. }), a;
  1791. }(c(HTMLElement));
  1792. n.default.customElements.define("input-mask", v);
  1793. }
  1794. },
  1795. 443: function(e, t, i) {
  1796. var a = o(i(7957)), n = o(i(2394));
  1797. function r(e) {
  1798. return r = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
  1799. return typeof e;
  1800. } : function(e) {
  1801. return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
  1802. }, r(e);
  1803. }
  1804. function o(e) {
  1805. return e && e.__esModule ? e : {
  1806. default: e
  1807. };
  1808. }
  1809. void 0 === a.default.fn.inputmask && (a.default.fn.inputmask = function(e, t) {
  1810. var i, o = this[0];
  1811. if (void 0 === t && (t = {}), "string" == typeof e) switch (e) {
  1812. case "unmaskedvalue":
  1813. return o && o.inputmask ? o.inputmask.unmaskedvalue() : (0, a.default)(o).val();
  1814. case "remove":
  1815. return this.each((function() {
  1816. this.inputmask && this.inputmask.remove();
  1817. }));
  1818. case "getemptymask":
  1819. return o && o.inputmask ? o.inputmask.getemptymask() : "";
  1820. case "hasMaskedValue":
  1821. return !(!o || !o.inputmask) && o.inputmask.hasMaskedValue();
  1822. case "isComplete":
  1823. return !o || !o.inputmask || o.inputmask.isComplete();
  1824. case "getmetadata":
  1825. return o && o.inputmask ? o.inputmask.getmetadata() : void 0;
  1826. case "setvalue":
  1827. n.default.setValue(o, t);
  1828. break;
  1829. case "option":
  1830. if ("string" != typeof t) return this.each((function() {
  1831. if (void 0 !== this.inputmask) return this.inputmask.option(t);
  1832. }));
  1833. if (o && void 0 !== o.inputmask) return o.inputmask.option(t);
  1834. break;
  1835. default:
  1836. return t.alias = e, i = new n.default(t), this.each((function() {
  1837. i.mask(this);
  1838. }));
  1839. } else {
  1840. if (Array.isArray(e)) return t.alias = e, i = new n.default(t), this.each((function() {
  1841. i.mask(this);
  1842. }));
  1843. if ("object" == r(e)) return i = new n.default(e), void 0 === e.mask && void 0 === e.alias ? this.each((function() {
  1844. if (void 0 !== this.inputmask) return this.inputmask.option(e);
  1845. i.mask(this);
  1846. })) : this.each((function() {
  1847. i.mask(this);
  1848. }));
  1849. if (void 0 === e) return this.each((function() {
  1850. (i = new n.default(t)).mask(this);
  1851. }));
  1852. }
  1853. });
  1854. },
  1855. 2839: function(e, t) {
  1856. function i(e, t) {
  1857. return function(e) {
  1858. if (Array.isArray(e)) return e;
  1859. }(e) || function(e, t) {
  1860. var i = null == e ? null : "undefined" != typeof Symbol && e[Symbol.iterator] || e["@@iterator"];
  1861. if (null != i) {
  1862. var a, n, r, o, s = [], l = !0, c = !1;
  1863. try {
  1864. if (r = (i = i.call(e)).next, 0 === t) {
  1865. if (Object(i) !== i) return;
  1866. l = !1;
  1867. } else for (;!(l = (a = r.call(i)).done) && (s.push(a.value), s.length !== t); l = !0) ;
  1868. } catch (e) {
  1869. c = !0, n = e;
  1870. } finally {
  1871. try {
  1872. if (!l && null != i.return && (o = i.return(), Object(o) !== o)) return;
  1873. } finally {
  1874. if (c) throw n;
  1875. }
  1876. }
  1877. return s;
  1878. }
  1879. }(e, t) || function(e, t) {
  1880. if (!e) return;
  1881. if ("string" == typeof e) return a(e, t);
  1882. var i = Object.prototype.toString.call(e).slice(8, -1);
  1883. "Object" === i && e.constructor && (i = e.constructor.name);
  1884. if ("Map" === i || "Set" === i) return Array.from(e);
  1885. if ("Arguments" === i || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)) return a(e, t);
  1886. }(e, t) || function() {
  1887. throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
  1888. }();
  1889. }
  1890. function a(e, t) {
  1891. (null == t || t > e.length) && (t = e.length);
  1892. for (var i = 0, a = new Array(t); i < t; i++) a[i] = e[i];
  1893. return a;
  1894. }
  1895. Object.defineProperty(t, "__esModule", {
  1896. value: !0
  1897. }), t.keys = t.keyCode = void 0, t.toKey = function(e, t) {
  1898. return r[e] || (t ? String.fromCharCode(e) : String.fromCharCode(e).toLowerCase());
  1899. }, t.toKeyCode = function(e) {
  1900. return n[e];
  1901. };
  1902. var n = {
  1903. AltGraph: 18,
  1904. ArrowDown: 40,
  1905. ArrowLeft: 37,
  1906. ArrowRight: 39,
  1907. ArrowUp: 38,
  1908. Backspace: 8,
  1909. BACKSPACE_SAFARI: 127,
  1910. CapsLock: 20,
  1911. Delete: 46,
  1912. End: 35,
  1913. Enter: 13,
  1914. Escape: 27,
  1915. Home: 36,
  1916. Insert: 45,
  1917. PageDown: 34,
  1918. PageUp: 33,
  1919. Space: 32,
  1920. Tab: 9,
  1921. c: 67,
  1922. x: 88,
  1923. z: 90,
  1924. Shift: 16,
  1925. Control: 17,
  1926. Alt: 18,
  1927. Pause: 19,
  1928. Meta_LEFT: 91,
  1929. Meta_RIGHT: 92,
  1930. ContextMenu: 93,
  1931. Process: 229,
  1932. Unidentified: 229,
  1933. F1: 112,
  1934. F2: 113,
  1935. F3: 114,
  1936. F4: 115,
  1937. F5: 116,
  1938. F6: 117,
  1939. F7: 118,
  1940. F8: 119,
  1941. F9: 120,
  1942. F10: 121,
  1943. F11: 122,
  1944. F12: 123
  1945. };
  1946. t.keyCode = n;
  1947. var r = Object.entries(n).reduce((function(e, t) {
  1948. var a = i(t, 2), n = a[0], r = a[1];
  1949. return e[r] = void 0 === e[r] ? n : e[r], e;
  1950. }), {}), o = Object.entries(n).reduce((function(e, t) {
  1951. var a = i(t, 2), n = a[0];
  1952. a[1];
  1953. return e[n] = "Space" === n ? " " : n, e;
  1954. }), {});
  1955. t.keys = o;
  1956. },
  1957. 2391: function(e, t, i) {
  1958. Object.defineProperty(t, "__esModule", {
  1959. value: !0
  1960. }), t.analyseMask = function(e, t, i) {
  1961. var a, o, s, l, c, u, f = /(?:[?*+]|\{[0-9+*]+(?:,[0-9+*]*)?(?:\|[0-9+*]*)?\})|[^.?*+^${[]()|\\]+|./g, p = /\[\^?]?(?:[^\\\]]+|\\[\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, d = !1, h = new n.default, m = [], v = [], g = !1;
  1962. function k(e, a, n) {
  1963. n = void 0 !== n ? n : e.matches.length;
  1964. var o = e.matches[n - 1];
  1965. if (t) {
  1966. if (0 === a.indexOf("[") || d && /\\d|\\s|\\w|\\p/i.test(a) || "." === a) {
  1967. var s = i.casing ? "i" : "";
  1968. /^\\p\{.*}$/i.test(a) && (s += "u"), e.matches.splice(n++, 0, {
  1969. fn: new RegExp(a, s),
  1970. static: !1,
  1971. optionality: !1,
  1972. newBlockMarker: void 0 === o ? "master" : o.def !== a,
  1973. casing: null,
  1974. def: a,
  1975. placeholder: void 0,
  1976. nativeDef: a
  1977. });
  1978. } else d && (a = a[a.length - 1]), a.split("").forEach((function(t, a) {
  1979. o = e.matches[n - 1], e.matches.splice(n++, 0, {
  1980. fn: /[a-z]/i.test(i.staticDefinitionSymbol || t) ? new RegExp("[" + (i.staticDefinitionSymbol || t) + "]", i.casing ? "i" : "") : null,
  1981. static: !0,
  1982. optionality: !1,
  1983. newBlockMarker: void 0 === o ? "master" : o.def !== t && !0 !== o.static,
  1984. casing: null,
  1985. def: i.staticDefinitionSymbol || t,
  1986. placeholder: void 0 !== i.staticDefinitionSymbol ? t : void 0,
  1987. nativeDef: (d ? "'" : "") + t
  1988. });
  1989. }));
  1990. d = !1;
  1991. } else {
  1992. var l = i.definitions && i.definitions[a] || i.usePrototypeDefinitions && r.default.prototype.definitions[a];
  1993. l && !d ? e.matches.splice(n++, 0, {
  1994. fn: l.validator ? "string" == typeof l.validator ? new RegExp(l.validator, i.casing ? "i" : "") : new function() {
  1995. this.test = l.validator;
  1996. } : new RegExp("."),
  1997. static: l.static || !1,
  1998. optionality: l.optional || !1,
  1999. defOptionality: l.optional || !1,
  2000. newBlockMarker: void 0 === o || l.optional ? "master" : o.def !== (l.definitionSymbol || a),
  2001. casing: l.casing,
  2002. def: l.definitionSymbol || a,
  2003. placeholder: l.placeholder,
  2004. nativeDef: a,
  2005. generated: l.generated
  2006. }) : (e.matches.splice(n++, 0, {
  2007. fn: /[a-z]/i.test(i.staticDefinitionSymbol || a) ? new RegExp("[" + (i.staticDefinitionSymbol || a) + "]", i.casing ? "i" : "") : null,
  2008. static: !0,
  2009. optionality: !1,
  2010. newBlockMarker: void 0 === o ? "master" : o.def !== a && !0 !== o.static,
  2011. casing: null,
  2012. def: i.staticDefinitionSymbol || a,
  2013. placeholder: void 0 !== i.staticDefinitionSymbol ? a : void 0,
  2014. nativeDef: (d ? "'" : "") + a
  2015. }), d = !1);
  2016. }
  2017. }
  2018. function y() {
  2019. if (m.length > 0) {
  2020. if (k(l = m[m.length - 1], o), l.isAlternator) {
  2021. c = m.pop();
  2022. for (var e = 0; e < c.matches.length; e++) c.matches[e].isGroup && (c.matches[e].isGroup = !1);
  2023. m.length > 0 ? (l = m[m.length - 1]).matches.push(c) : h.matches.push(c);
  2024. }
  2025. } else k(h, o);
  2026. }
  2027. function b(e) {
  2028. var t = new n.default(!0);
  2029. return t.openGroup = !1, t.matches = e, t;
  2030. }
  2031. function x() {
  2032. if ((s = m.pop()).openGroup = !1, void 0 !== s) if (m.length > 0) {
  2033. if ((l = m[m.length - 1]).matches.push(s), l.isAlternator) {
  2034. for (var e = (c = m.pop()).matches[0].matches ? c.matches[0].matches.length : 1, t = 0; t < c.matches.length; t++) c.matches[t].isGroup = !1,
  2035. c.matches[t].alternatorGroup = !1, null === i.keepStatic && e < (c.matches[t].matches ? c.matches[t].matches.length : 1) && (i.keepStatic = !0),
  2036. e = c.matches[t].matches ? c.matches[t].matches.length : 1;
  2037. m.length > 0 ? (l = m[m.length - 1]).matches.push(c) : h.matches.push(c);
  2038. }
  2039. } else h.matches.push(s); else y();
  2040. }
  2041. function P(e) {
  2042. var t = e.pop();
  2043. return t.isQuantifier && (t = b([ e.pop(), t ])), t;
  2044. }
  2045. t && (i.optionalmarker[0] = void 0, i.optionalmarker[1] = void 0);
  2046. for (;a = t ? p.exec(e) : f.exec(e); ) {
  2047. if (o = a[0], t) {
  2048. switch (o.charAt(0)) {
  2049. case "?":
  2050. o = "{0,1}";
  2051. break;
  2052. case "+":
  2053. case "*":
  2054. o = "{" + o + "}";
  2055. break;
  2056. case "|":
  2057. if (0 === m.length) {
  2058. var w = b(h.matches);
  2059. w.openGroup = !0, m.push(w), h.matches = [], g = !0;
  2060. }
  2061. }
  2062. switch (o) {
  2063. case "\\d":
  2064. o = "[0-9]";
  2065. break;
  2066. case "\\p":
  2067. o += p.exec(e)[0], o += p.exec(e)[0];
  2068. }
  2069. }
  2070. if (d) y(); else switch (o.charAt(0)) {
  2071. case "$":
  2072. case "^":
  2073. t || y();
  2074. break;
  2075. case i.escapeChar:
  2076. d = !0, t && y();
  2077. break;
  2078. case i.optionalmarker[1]:
  2079. case i.groupmarker[1]:
  2080. x();
  2081. break;
  2082. case i.optionalmarker[0]:
  2083. m.push(new n.default(!1, !0));
  2084. break;
  2085. case i.groupmarker[0]:
  2086. m.push(new n.default(!0));
  2087. break;
  2088. case i.quantifiermarker[0]:
  2089. var S = new n.default(!1, !1, !0), M = (o = o.replace(/[{}?]/g, "")).split("|"), _ = M[0].split(","), O = isNaN(_[0]) ? _[0] : parseInt(_[0]), T = 1 === _.length ? O : isNaN(_[1]) ? _[1] : parseInt(_[1]), E = isNaN(M[1]) ? M[1] : parseInt(M[1]);
  2090. "*" !== O && "+" !== O || (O = "*" === T ? 0 : 1), S.quantifier = {
  2091. min: O,
  2092. max: T,
  2093. jit: E
  2094. };
  2095. var j = m.length > 0 ? m[m.length - 1].matches : h.matches;
  2096. (a = j.pop()).isGroup || (a = b([ a ])), j.push(a), j.push(S);
  2097. break;
  2098. case i.alternatormarker:
  2099. if (m.length > 0) {
  2100. var A = (l = m[m.length - 1]).matches[l.matches.length - 1];
  2101. u = l.openGroup && (void 0 === A.matches || !1 === A.isGroup && !1 === A.isAlternator) ? m.pop() : P(l.matches);
  2102. } else u = P(h.matches);
  2103. if (u.isAlternator) m.push(u); else if (u.alternatorGroup ? (c = m.pop(), u.alternatorGroup = !1) : c = new n.default(!1, !1, !1, !0),
  2104. c.matches.push(u), m.push(c), u.openGroup) {
  2105. u.openGroup = !1;
  2106. var D = new n.default(!0);
  2107. D.alternatorGroup = !0, m.push(D);
  2108. }
  2109. break;
  2110. default:
  2111. y();
  2112. }
  2113. }
  2114. g && x();
  2115. for (;m.length > 0; ) s = m.pop(), h.matches.push(s);
  2116. h.matches.length > 0 && (!function e(a) {
  2117. a && a.matches && a.matches.forEach((function(n, r) {
  2118. var o = a.matches[r + 1];
  2119. (void 0 === o || void 0 === o.matches || !1 === o.isQuantifier) && n && n.isGroup && (n.isGroup = !1,
  2120. t || (k(n, i.groupmarker[0], 0), !0 !== n.openGroup && k(n, i.groupmarker[1]))),
  2121. e(n);
  2122. }));
  2123. }(h), v.push(h));
  2124. (i.numericInput || i.isRTL) && function e(t) {
  2125. for (var a in t.matches = t.matches.reverse(), t.matches) if (Object.prototype.hasOwnProperty.call(t.matches, a)) {
  2126. var n = parseInt(a);
  2127. if (t.matches[a].isQuantifier && t.matches[n + 1] && t.matches[n + 1].isGroup) {
  2128. var r = t.matches[a];
  2129. t.matches.splice(a, 1), t.matches.splice(n + 1, 0, r);
  2130. }
  2131. void 0 !== t.matches[a].matches ? t.matches[a] = e(t.matches[a]) : t.matches[a] = ((o = t.matches[a]) === i.optionalmarker[0] ? o = i.optionalmarker[1] : o === i.optionalmarker[1] ? o = i.optionalmarker[0] : o === i.groupmarker[0] ? o = i.groupmarker[1] : o === i.groupmarker[1] && (o = i.groupmarker[0]),
  2132. o);
  2133. }
  2134. var o;
  2135. return t;
  2136. }(v[0]);
  2137. return v;
  2138. }, t.generateMaskSet = function(e, t) {
  2139. var i;
  2140. function n(e, t) {
  2141. var i = t.repeat, a = t.groupmarker, n = t.quantifiermarker, r = t.keepStatic;
  2142. if (i > 0 || "*" === i || "+" === i) {
  2143. var l = "*" === i ? 0 : "+" === i ? 1 : i;
  2144. e = a[0] + e + a[1] + n[0] + l + "," + i + n[1];
  2145. }
  2146. if (!0 === r) {
  2147. var c = e.match(new RegExp("(.)\\[([^\\]]*)\\]", "g"));
  2148. c && c.forEach((function(t, i) {
  2149. var a = function(e, t) {
  2150. return function(e) {
  2151. if (Array.isArray(e)) return e;
  2152. }(e) || function(e, t) {
  2153. var i = null == e ? null : "undefined" != typeof Symbol && e[Symbol.iterator] || e["@@iterator"];
  2154. if (null != i) {
  2155. var a, n, r, o, s = [], l = !0, c = !1;
  2156. try {
  2157. if (r = (i = i.call(e)).next, 0 === t) {
  2158. if (Object(i) !== i) return;
  2159. l = !1;
  2160. } else for (;!(l = (a = r.call(i)).done) && (s.push(a.value), s.length !== t); l = !0) ;
  2161. } catch (e) {
  2162. c = !0, n = e;
  2163. } finally {
  2164. try {
  2165. if (!l && null != i.return && (o = i.return(), Object(o) !== o)) return;
  2166. } finally {
  2167. if (c) throw n;
  2168. }
  2169. }
  2170. return s;
  2171. }
  2172. }(e, t) || function(e, t) {
  2173. if (!e) return;
  2174. if ("string" == typeof e) return s(e, t);
  2175. var i = Object.prototype.toString.call(e).slice(8, -1);
  2176. "Object" === i && e.constructor && (i = e.constructor.name);
  2177. if ("Map" === i || "Set" === i) return Array.from(e);
  2178. if ("Arguments" === i || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)) return s(e, t);
  2179. }(e, t) || function() {
  2180. throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
  2181. }();
  2182. }(t.split("["), 2), n = a[0], r = a[1];
  2183. r = r.replace("]", ""), e = e.replace(new RegExp("".concat((0, o.default)(n), "\\[").concat((0,
  2184. o.default)(r), "\\]")), n.charAt(0) === r.charAt(0) ? "(".concat(n, "|").concat(n).concat(r, ")") : "".concat(n, "[").concat(r, "]"));
  2185. }));
  2186. }
  2187. return e;
  2188. }
  2189. function l(e, i, o) {
  2190. var s, l, c = !1;
  2191. return null !== e && "" !== e || ((c = null !== o.regex) ? e = (e = o.regex).replace(/^(\^)(.*)(\$)$/, "$2") : (c = !0,
  2192. e = ".*")), 1 === e.length && !1 === o.greedy && 0 !== o.repeat && (o.placeholder = ""),
  2193. e = n(e, o), l = c ? "regex_" + o.regex : o.numericInput ? e.split("").reverse().join("") : e,
  2194. null !== o.keepStatic && (l = "ks_" + o.keepStatic + l), void 0 === r.default.prototype.masksCache[l] || !0 === t ? (s = {
  2195. mask: e,
  2196. maskToken: r.default.prototype.analyseMask(e, c, o),
  2197. validPositions: [],
  2198. _buffer: void 0,
  2199. buffer: void 0,
  2200. tests: {},
  2201. excludes: {},
  2202. metadata: i,
  2203. maskLength: void 0,
  2204. jitOffset: {}
  2205. }, !0 !== t && (r.default.prototype.masksCache[l] = s, s = a.default.extend(!0, {}, r.default.prototype.masksCache[l]))) : s = a.default.extend(!0, {}, r.default.prototype.masksCache[l]),
  2206. s;
  2207. }
  2208. "function" == typeof e.mask && (e.mask = e.mask(e));
  2209. if (Array.isArray(e.mask)) {
  2210. if (e.mask.length > 1) {
  2211. null === e.keepStatic && (e.keepStatic = !0);
  2212. var c = e.groupmarker[0];
  2213. return (e.isRTL ? e.mask.reverse() : e.mask).forEach((function(t) {
  2214. c.length > 1 && (c += e.alternatormarker), void 0 !== t.mask && "function" != typeof t.mask ? c += t.mask : c += t;
  2215. })), l(c += e.groupmarker[1], e.mask, e);
  2216. }
  2217. e.mask = e.mask.pop();
  2218. }
  2219. i = e.mask && void 0 !== e.mask.mask && "function" != typeof e.mask.mask ? l(e.mask.mask, e.mask, e) : l(e.mask, e.mask, e);
  2220. null === e.keepStatic && (e.keepStatic = !1);
  2221. return i;
  2222. };
  2223. var a = l(i(3287)), n = l(i(9695)), r = l(i(2394)), o = l(i(7184));
  2224. function s(e, t) {
  2225. (null == t || t > e.length) && (t = e.length);
  2226. for (var i = 0, a = new Array(t); i < t; i++) a[i] = e[i];
  2227. return a;
  2228. }
  2229. function l(e) {
  2230. return e && e.__esModule ? e : {
  2231. default: e
  2232. };
  2233. }
  2234. },
  2235. 157: function(e, t, i) {
  2236. Object.defineProperty(t, "__esModule", {
  2237. value: !0
  2238. }), t.mask = function() {
  2239. var e = this, t = this.opts, i = this.el, u = this.dependencyLib;
  2240. o.EventRuler.off(i);
  2241. var f = function(t, i) {
  2242. "textarea" !== t.tagName.toLowerCase() && i.ignorables.push(a.keys.Enter);
  2243. var s = t.getAttribute("type"), l = "input" === t.tagName.toLowerCase() && i.supportsInputType.includes(s) || t.isContentEditable || "textarea" === t.tagName.toLowerCase();
  2244. if (!l) if ("input" === t.tagName.toLowerCase()) {
  2245. var c = document.createElement("input");
  2246. c.setAttribute("type", s), l = "text" === c.type, c = null;
  2247. } else l = "partial";
  2248. return !1 !== l ? function(t) {
  2249. var a, s;
  2250. function l() {
  2251. return this.inputmask ? this.inputmask.opts.autoUnmask ? this.inputmask.unmaskedvalue() : -1 !== n.getLastValidPosition.call(e) || !0 !== i.nullable ? (this.inputmask.shadowRoot || this.ownerDocument).activeElement === this && i.clearMaskOnLostFocus ? (e.isRTL ? r.clearOptionalTail.call(e, n.getBuffer.call(e).slice()).reverse() : r.clearOptionalTail.call(e, n.getBuffer.call(e).slice())).join("") : a.call(this) : "" : a.call(this);
  2252. }
  2253. function c(e) {
  2254. s.call(this, e), this.inputmask && (0, r.applyInputValue)(this, e);
  2255. }
  2256. if (!t.inputmask.__valueGet) {
  2257. if (!0 !== i.noValuePatching) {
  2258. if (Object.getOwnPropertyDescriptor) {
  2259. var f = Object.getPrototypeOf ? Object.getOwnPropertyDescriptor(Object.getPrototypeOf(t), "value") : void 0;
  2260. f && f.get && f.set ? (a = f.get, s = f.set, Object.defineProperty(t, "value", {
  2261. get: l,
  2262. set: c,
  2263. configurable: !0
  2264. })) : "input" !== t.tagName.toLowerCase() && (a = function() {
  2265. return this.textContent;
  2266. }, s = function(e) {
  2267. this.textContent = e;
  2268. }, Object.defineProperty(t, "value", {
  2269. get: l,
  2270. set: c,
  2271. configurable: !0
  2272. }));
  2273. } else document.__lookupGetter__ && t.__lookupGetter__("value") && (a = t.__lookupGetter__("value"),
  2274. s = t.__lookupSetter__("value"), t.__defineGetter__("value", l), t.__defineSetter__("value", c));
  2275. t.inputmask.__valueGet = a, t.inputmask.__valueSet = s;
  2276. }
  2277. t.inputmask._valueGet = function(t) {
  2278. return e.isRTL && !0 !== t ? a.call(this.el).split("").reverse().join("") : a.call(this.el);
  2279. }, t.inputmask._valueSet = function(t, i) {
  2280. s.call(this.el, null == t ? "" : !0 !== i && e.isRTL ? t.split("").reverse().join("") : t);
  2281. }, void 0 === a && (a = function() {
  2282. return this.value;
  2283. }, s = function(e) {
  2284. this.value = e;
  2285. }, function(t) {
  2286. if (u.valHooks && (void 0 === u.valHooks[t] || !0 !== u.valHooks[t].inputmaskpatch)) {
  2287. var a = u.valHooks[t] && u.valHooks[t].get ? u.valHooks[t].get : function(e) {
  2288. return e.value;
  2289. }, o = u.valHooks[t] && u.valHooks[t].set ? u.valHooks[t].set : function(e, t) {
  2290. return e.value = t, e;
  2291. };
  2292. u.valHooks[t] = {
  2293. get: function(t) {
  2294. if (t.inputmask) {
  2295. if (t.inputmask.opts.autoUnmask) return t.inputmask.unmaskedvalue();
  2296. var r = a(t);
  2297. return -1 !== n.getLastValidPosition.call(e, void 0, void 0, t.inputmask.maskset.validPositions) || !0 !== i.nullable ? r : "";
  2298. }
  2299. return a(t);
  2300. },
  2301. set: function(e, t) {
  2302. var i = o(e, t);
  2303. return e.inputmask && (0, r.applyInputValue)(e, t), i;
  2304. },
  2305. inputmaskpatch: !0
  2306. };
  2307. }
  2308. }(t.type), function(e) {
  2309. o.EventRuler.on(e, "mouseenter", (function() {
  2310. var e = this, t = e.inputmask._valueGet(!0);
  2311. t != (e.inputmask.isRTL ? n.getBuffer.call(e.inputmask).slice().reverse() : n.getBuffer.call(e.inputmask)).join("") && (0,
  2312. r.applyInputValue)(e, t);
  2313. }));
  2314. }(t));
  2315. }
  2316. }(t) : t.inputmask = void 0, l;
  2317. }(i, t);
  2318. if (!1 !== f) {
  2319. e.originalPlaceholder = i.placeholder, e.maxLength = void 0 !== i ? i.maxLength : void 0,
  2320. -1 === e.maxLength && (e.maxLength = void 0), "inputMode" in i && null === i.getAttribute("inputmode") && (i.inputMode = t.inputmode,
  2321. i.setAttribute("inputmode", t.inputmode)), !0 === f && (t.showMaskOnFocus = t.showMaskOnFocus && -1 === [ "cc-number", "cc-exp" ].indexOf(i.autocomplete),
  2322. s.iphone && (t.insertModeVisual = !1, i.setAttribute("autocorrect", "off")), o.EventRuler.on(i, "submit", c.EventHandlers.submitEvent),
  2323. o.EventRuler.on(i, "reset", c.EventHandlers.resetEvent), o.EventRuler.on(i, "blur", c.EventHandlers.blurEvent),
  2324. o.EventRuler.on(i, "focus", c.EventHandlers.focusEvent), o.EventRuler.on(i, "invalid", c.EventHandlers.invalidEvent),
  2325. o.EventRuler.on(i, "click", c.EventHandlers.clickEvent), o.EventRuler.on(i, "mouseleave", c.EventHandlers.mouseleaveEvent),
  2326. o.EventRuler.on(i, "mouseenter", c.EventHandlers.mouseenterEvent), o.EventRuler.on(i, "paste", c.EventHandlers.pasteEvent),
  2327. o.EventRuler.on(i, "cut", c.EventHandlers.cutEvent), o.EventRuler.on(i, "complete", t.oncomplete),
  2328. o.EventRuler.on(i, "incomplete", t.onincomplete), o.EventRuler.on(i, "cleared", t.oncleared),
  2329. !0 !== t.inputEventOnly && o.EventRuler.on(i, "keydown", c.EventHandlers.keyEvent),
  2330. (s.mobile || t.inputEventOnly) && i.removeAttribute("maxLength"), o.EventRuler.on(i, "input", c.EventHandlers.inputFallBackEvent)),
  2331. o.EventRuler.on(i, "setvalue", c.EventHandlers.setValueEvent), n.getBufferTemplate.call(e).join(""),
  2332. e.undoValue = e._valueGet(!0);
  2333. var p = (i.inputmask.shadowRoot || i.ownerDocument).activeElement;
  2334. if ("" !== i.inputmask._valueGet(!0) || !1 === t.clearMaskOnLostFocus || p === i) {
  2335. (0, r.applyInputValue)(i, i.inputmask._valueGet(!0), t);
  2336. var d = n.getBuffer.call(e).slice();
  2337. !1 === l.isComplete.call(e, d) && t.clearIncomplete && n.resetMaskSet.call(e), t.clearMaskOnLostFocus && p !== i && (-1 === n.getLastValidPosition.call(e) ? d = [] : r.clearOptionalTail.call(e, d)),
  2338. (!1 === t.clearMaskOnLostFocus || t.showMaskOnFocus && p === i || "" !== i.inputmask._valueGet(!0)) && (0,
  2339. r.writeBuffer)(i, d), p === i && n.caret.call(e, i, n.seekNext.call(e, n.getLastValidPosition.call(e)));
  2340. }
  2341. }
  2342. };
  2343. var a = i(2839), n = i(8711), r = i(7760), o = i(9716), s = i(9845), l = i(7215), c = i(6030);
  2344. },
  2345. 9695: function(e, t) {
  2346. Object.defineProperty(t, "__esModule", {
  2347. value: !0
  2348. }), t.default = function(e, t, i, a) {
  2349. this.matches = [], this.openGroup = e || !1, this.alternatorGroup = !1, this.isGroup = e || !1,
  2350. this.isOptional = t || !1, this.isQuantifier = i || !1, this.isAlternator = a || !1,
  2351. this.quantifier = {
  2352. min: 1,
  2353. max: 1
  2354. };
  2355. };
  2356. },
  2357. 3194: function() {
  2358. Array.prototype.includes || Object.defineProperty(Array.prototype, "includes", {
  2359. value: function(e, t) {
  2360. if (null == this) throw new TypeError('"this" is null or not defined');
  2361. var i = Object(this), a = i.length >>> 0;
  2362. if (0 === a) return !1;
  2363. for (var n = 0 | t, r = Math.max(n >= 0 ? n : a - Math.abs(n), 0); r < a; ) {
  2364. if (i[r] === e) return !0;
  2365. r++;
  2366. }
  2367. return !1;
  2368. }
  2369. });
  2370. },
  2371. 9302: function() {
  2372. var e = Function.bind.call(Function.call, Array.prototype.reduce), t = Function.bind.call(Function.call, Object.prototype.propertyIsEnumerable), i = Function.bind.call(Function.call, Array.prototype.concat), a = Object.keys;
  2373. Object.entries || (Object.entries = function(n) {
  2374. return e(a(n), (function(e, a) {
  2375. return i(e, "string" == typeof a && t(n, a) ? [ [ a, n[a] ] ] : []);
  2376. }), []);
  2377. });
  2378. },
  2379. 7149: function() {
  2380. function e(t) {
  2381. return e = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
  2382. return typeof e;
  2383. } : function(e) {
  2384. return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
  2385. }, e(t);
  2386. }
  2387. "function" != typeof Object.getPrototypeOf && (Object.getPrototypeOf = "object" === e("test".__proto__) ? function(e) {
  2388. return e.__proto__;
  2389. } : function(e) {
  2390. return e.constructor.prototype;
  2391. });
  2392. },
  2393. 4013: function() {
  2394. String.prototype.includes || (String.prototype.includes = function(e, t) {
  2395. return "number" != typeof t && (t = 0), !(t + e.length > this.length) && -1 !== this.indexOf(e, t);
  2396. });
  2397. },
  2398. 8711: function(e, t, i) {
  2399. Object.defineProperty(t, "__esModule", {
  2400. value: !0
  2401. }), t.caret = function(e, t, i, a, n) {
  2402. var r, o = this, s = this.opts;
  2403. if (void 0 === t) return "selectionStart" in e && "selectionEnd" in e ? (t = e.selectionStart,
  2404. i = e.selectionEnd) : window.getSelection ? (r = window.getSelection().getRangeAt(0)).commonAncestorContainer.parentNode !== e && r.commonAncestorContainer !== e || (t = r.startOffset,
  2405. i = r.endOffset) : document.selection && document.selection.createRange && (i = (t = 0 - (r = document.selection.createRange()).duplicate().moveStart("character", -e.inputmask._valueGet().length)) + r.text.length),
  2406. {
  2407. begin: a ? t : c.call(o, t),
  2408. end: a ? i : c.call(o, i)
  2409. };
  2410. if (Array.isArray(t) && (i = o.isRTL ? t[0] : t[1], t = o.isRTL ? t[1] : t[0]),
  2411. void 0 !== t.begin && (i = o.isRTL ? t.begin : t.end, t = o.isRTL ? t.end : t.begin),
  2412. "number" == typeof t) {
  2413. t = a ? t : c.call(o, t), i = "number" == typeof (i = a ? i : c.call(o, i)) ? i : t;
  2414. var l = parseInt(((e.ownerDocument.defaultView || window).getComputedStyle ? (e.ownerDocument.defaultView || window).getComputedStyle(e, null) : e.currentStyle).fontSize) * i;
  2415. if (e.scrollLeft = l > e.scrollWidth ? l : 0, e.inputmask.caretPos = {
  2416. begin: t,
  2417. end: i
  2418. }, s.insertModeVisual && !1 === s.insertMode && t === i && (n || i++), e === (e.inputmask.shadowRoot || e.ownerDocument).activeElement) if ("setSelectionRange" in e) e.setSelectionRange(t, i); else if (window.getSelection) {
  2419. if (r = document.createRange(), void 0 === e.firstChild || null === e.firstChild) {
  2420. var u = document.createTextNode("");
  2421. e.appendChild(u);
  2422. }
  2423. r.setStart(e.firstChild, t < e.inputmask._valueGet().length ? t : e.inputmask._valueGet().length),
  2424. r.setEnd(e.firstChild, i < e.inputmask._valueGet().length ? i : e.inputmask._valueGet().length),
  2425. r.collapse(!0);
  2426. var f = window.getSelection();
  2427. f.removeAllRanges(), f.addRange(r);
  2428. } else e.createTextRange && ((r = e.createTextRange()).collapse(!0), r.moveEnd("character", i),
  2429. r.moveStart("character", t), r.select());
  2430. }
  2431. }, t.determineLastRequiredPosition = function(e) {
  2432. var t, i, r = this, s = r.maskset, l = r.dependencyLib, c = a.getMaskTemplate.call(r, !0, o.call(r), !0, !0), u = c.length, f = o.call(r), p = {}, d = s.validPositions[f], h = void 0 !== d ? d.locator.slice() : void 0;
  2433. for (t = f + 1; t < c.length; t++) h = (i = a.getTestTemplate.call(r, t, h, t - 1)).locator.slice(),
  2434. p[t] = l.extend(!0, {}, i);
  2435. var m = d && void 0 !== d.alternation ? d.locator[d.alternation] : void 0;
  2436. for (t = u - 1; t > f && (((i = p[t]).match.optionality || i.match.optionalQuantifier && i.match.newBlockMarker || m && (m !== p[t].locator[d.alternation] && 1 != i.match.static || !0 === i.match.static && i.locator[d.alternation] && n.checkAlternationMatch.call(r, i.locator[d.alternation].toString().split(","), m.toString().split(",")) && "" !== a.getTests.call(r, t)[0].def)) && c[t] === a.getPlaceholder.call(r, t, i.match)); t--) u--;
  2437. return e ? {
  2438. l: u,
  2439. def: p[u] ? p[u].match : void 0
  2440. } : u;
  2441. }, t.determineNewCaretPosition = function(e, t, i) {
  2442. var n = this, c = n.maskset, u = n.opts;
  2443. t && (n.isRTL ? e.end = e.begin : e.begin = e.end);
  2444. if (e.begin === e.end) {
  2445. switch (i = i || u.positionCaretOnClick) {
  2446. case "none":
  2447. break;
  2448. case "select":
  2449. e = {
  2450. begin: 0,
  2451. end: r.call(n).length
  2452. };
  2453. break;
  2454. case "ignore":
  2455. e.end = e.begin = l.call(n, o.call(n));
  2456. break;
  2457. case "radixFocus":
  2458. if (n.clicked > 1 && 0 == c.validPositions.length) break;
  2459. if (function(e) {
  2460. if ("" !== u.radixPoint && 0 !== u.digits) {
  2461. var t = c.validPositions;
  2462. if (void 0 === t[e] || t[e].input === a.getPlaceholder.call(n, e)) {
  2463. if (e < l.call(n, -1)) return !0;
  2464. var i = r.call(n).indexOf(u.radixPoint);
  2465. if (-1 !== i) {
  2466. for (var o = 0, s = t.length; o < s; o++) if (t[o] && i < o && t[o].input !== a.getPlaceholder.call(n, o)) return !1;
  2467. return !0;
  2468. }
  2469. }
  2470. }
  2471. return !1;
  2472. }(e.begin)) {
  2473. var f = r.call(n).join("").indexOf(u.radixPoint);
  2474. e.end = e.begin = u.numericInput ? l.call(n, f) : f;
  2475. break;
  2476. }
  2477. default:
  2478. var p = e.begin, d = o.call(n, p, !0), h = l.call(n, -1 !== d || s.call(n, 0) ? d : -1);
  2479. if (p <= h) e.end = e.begin = s.call(n, p, !1, !0) ? p : l.call(n, p); else {
  2480. var m = c.validPositions[d], v = a.getTestTemplate.call(n, h, m ? m.match.locator : void 0, m), g = a.getPlaceholder.call(n, h, v.match);
  2481. if ("" !== g && r.call(n)[h] !== g && !0 !== v.match.optionalQuantifier && !0 !== v.match.newBlockMarker || !s.call(n, h, u.keepStatic, !0) && v.match.def === g) {
  2482. var k = l.call(n, h);
  2483. (p >= k || p === h) && (h = k);
  2484. }
  2485. e.end = e.begin = h;
  2486. }
  2487. }
  2488. return e;
  2489. }
  2490. }, t.getBuffer = r, t.getBufferTemplate = function() {
  2491. var e = this.maskset;
  2492. void 0 === e._buffer && (e._buffer = a.getMaskTemplate.call(this, !1, 1), void 0 === e.buffer && (e.buffer = e._buffer.slice()));
  2493. return e._buffer;
  2494. }, t.getLastValidPosition = o, t.isMask = s, t.resetMaskSet = function(e) {
  2495. var t = this.maskset;
  2496. t.buffer = void 0, !0 !== e && (t.validPositions = [], t.p = 0);
  2497. }, t.seekNext = l, t.seekPrevious = function(e, t) {
  2498. var i = this, n = e - 1;
  2499. if (e <= 0) return 0;
  2500. for (;n > 0 && (!0 === t && (!0 !== a.getTest.call(i, n).match.newBlockMarker || !s.call(i, n, void 0, !0)) || !0 !== t && !s.call(i, n, void 0, !0)); ) n--;
  2501. return n;
  2502. }, t.translatePosition = c;
  2503. var a = i(4713), n = i(7215);
  2504. function r(e) {
  2505. var t = this, i = t.maskset;
  2506. return void 0 !== i.buffer && !0 !== e || (i.buffer = a.getMaskTemplate.call(t, !0, o.call(t), !0),
  2507. void 0 === i._buffer && (i._buffer = i.buffer.slice())), i.buffer;
  2508. }
  2509. function o(e, t, i) {
  2510. var a = this.maskset, n = -1, r = -1, o = i || a.validPositions;
  2511. void 0 === e && (e = -1);
  2512. for (var s = 0, l = o.length; s < l; s++) o[s] && (t || !0 !== o[s].generatedInput) && (s <= e && (n = s),
  2513. s >= e && (r = s));
  2514. return -1 === n || n == e ? r : -1 == r || e - n < r - e ? n : r;
  2515. }
  2516. function s(e, t, i) {
  2517. var n = this, r = this.maskset, o = a.getTestTemplate.call(n, e).match;
  2518. if ("" === o.def && (o = a.getTest.call(n, e).match), !0 !== o.static) return o.fn;
  2519. if (!0 === i && void 0 !== r.validPositions[e] && !0 !== r.validPositions[e].generatedInput) return !0;
  2520. if (!0 !== t && e > -1) {
  2521. if (i) {
  2522. var s = a.getTests.call(n, e);
  2523. return s.length > 1 + ("" === s[s.length - 1].match.def ? 1 : 0);
  2524. }
  2525. var l = a.determineTestTemplate.call(n, e, a.getTests.call(n, e)), c = a.getPlaceholder.call(n, e, l.match);
  2526. return l.match.def !== c;
  2527. }
  2528. return !1;
  2529. }
  2530. function l(e, t, i) {
  2531. var n = this;
  2532. void 0 === i && (i = !0);
  2533. for (var r = e + 1; "" !== a.getTest.call(n, r).match.def && (!0 === t && (!0 !== a.getTest.call(n, r).match.newBlockMarker || !s.call(n, r, void 0, !0)) || !0 !== t && !s.call(n, r, void 0, i)); ) r++;
  2534. return r;
  2535. }
  2536. function c(e) {
  2537. var t = this.opts, i = this.el;
  2538. return !this.isRTL || "number" != typeof e || t.greedy && "" === t.placeholder || !i || (e = this._valueGet().length - e) < 0 && (e = 0),
  2539. e;
  2540. }
  2541. },
  2542. 4713: function(e, t, i) {
  2543. Object.defineProperty(t, "__esModule", {
  2544. value: !0
  2545. }), t.determineTestTemplate = c, t.getDecisionTaker = o, t.getMaskTemplate = function(e, t, i, a, n) {
  2546. var r = this, o = this.opts, u = this.maskset, f = o.greedy;
  2547. n && o.greedy && (o.greedy = !1, r.maskset.tests = {});
  2548. t = t || 0;
  2549. var d, h, m, v, g = [], k = 0;
  2550. do {
  2551. if (!0 === e && u.validPositions[k]) h = (m = n && u.validPositions[k].match.optionality && void 0 === u.validPositions[k + 1] && (!0 === u.validPositions[k].generatedInput || u.validPositions[k].input == o.skipOptionalPartCharacter && k > 0) ? c.call(r, k, p.call(r, k, d, k - 1)) : u.validPositions[k]).match,
  2552. d = m.locator.slice(), g.push(!0 === i ? m.input : !1 === i ? h.nativeDef : s.call(r, k, h)); else {
  2553. h = (m = l.call(r, k, d, k - 1)).match, d = m.locator.slice();
  2554. var y = !0 !== a && (!1 !== o.jitMasking ? o.jitMasking : h.jit);
  2555. (v = (v && h.static && h.def !== o.groupSeparator && null === h.fn || u.validPositions[k - 1] && h.static && h.def !== o.groupSeparator && null === h.fn) && u.tests[k] && 1 === u.tests[k].length) || !1 === y || void 0 === y || "number" == typeof y && isFinite(y) && y > k ? g.push(!1 === i ? h.nativeDef : s.call(r, g.length, h)) : v = !1;
  2556. }
  2557. k++;
  2558. } while (!0 !== h.static || "" !== h.def || t > k);
  2559. "" === g[g.length - 1] && g.pop();
  2560. !1 === i && void 0 !== u.maskLength || (u.maskLength = k - 1);
  2561. return o.greedy = f, g;
  2562. }, t.getPlaceholder = s, t.getTest = u, t.getTestTemplate = l, t.getTests = p, t.isSubsetOf = f;
  2563. var a, n = (a = i(2394)) && a.__esModule ? a : {
  2564. default: a
  2565. };
  2566. function r(e, t) {
  2567. var i = (null != e.alternation ? e.mloc[o(e)] : e.locator).join("");
  2568. if ("" !== i) for (;i.length < t; ) i += "0";
  2569. return i;
  2570. }
  2571. function o(e) {
  2572. var t = e.locator[e.alternation];
  2573. return "string" == typeof t && t.length > 0 && (t = t.split(",")[0]), void 0 !== t ? t.toString() : "";
  2574. }
  2575. function s(e, t, i) {
  2576. var a = this.opts, n = this.maskset;
  2577. if (void 0 !== (t = t || u.call(this, e).match).placeholder || !0 === i) return "function" == typeof t.placeholder ? t.placeholder(a) : t.placeholder;
  2578. if (!0 === t.static) {
  2579. if (e > -1 && void 0 === n.validPositions[e]) {
  2580. var r, o = p.call(this, e), s = [];
  2581. if (o.length > 1 + ("" === o[o.length - 1].match.def ? 1 : 0)) for (var l = 0; l < o.length; l++) if ("" !== o[l].match.def && !0 !== o[l].match.optionality && !0 !== o[l].match.optionalQuantifier && (!0 === o[l].match.static || void 0 === r || !1 !== o[l].match.fn.test(r.match.def, n, e, !0, a)) && (s.push(o[l]),
  2582. !0 === o[l].match.static && (r = o[l]), s.length > 1 && /[0-9a-bA-Z]/.test(s[0].match.def))) return a.placeholder.charAt(e % a.placeholder.length);
  2583. }
  2584. return t.def;
  2585. }
  2586. return a.placeholder.charAt(e % a.placeholder.length);
  2587. }
  2588. function l(e, t, i) {
  2589. return this.maskset.validPositions[e] || c.call(this, e, p.call(this, e, t ? t.slice() : t, i));
  2590. }
  2591. function c(e, t) {
  2592. var i = this.opts, a = 0, n = function(e, t) {
  2593. var i = 0, a = !1;
  2594. t.forEach((function(e) {
  2595. e.match.optionality && (0 !== i && i !== e.match.optionality && (a = !0), (0 === i || i > e.match.optionality) && (i = e.match.optionality));
  2596. })), i && (0 == e || 1 == t.length ? i = 0 : a || (i = 0));
  2597. return i;
  2598. }(e, t);
  2599. e = e > 0 ? e - 1 : 0;
  2600. var o, s, l, c = r(u.call(this, e));
  2601. i.greedy && t.length > 1 && "" === t[t.length - 1].match.def && (a = 1);
  2602. for (var f = 0; f < t.length - a; f++) {
  2603. var p = t[f];
  2604. o = r(p, c.length);
  2605. var d = Math.abs(o - c);
  2606. (void 0 === s || "" !== o && d < s || l && !i.greedy && l.match.optionality && l.match.optionality - n > 0 && "master" === l.match.newBlockMarker && (!p.match.optionality || p.match.optionality - n < 1 || !p.match.newBlockMarker) || l && !i.greedy && l.match.optionalQuantifier && !p.match.optionalQuantifier) && (s = d,
  2607. l = p);
  2608. }
  2609. return l;
  2610. }
  2611. function u(e, t) {
  2612. var i = this.maskset;
  2613. return i.validPositions[e] ? i.validPositions[e] : (t || p.call(this, e))[0];
  2614. }
  2615. function f(e, t, i) {
  2616. function a(e) {
  2617. for (var t, i = [], a = -1, n = 0, r = e.length; n < r; n++) if ("-" === e.charAt(n)) for (t = e.charCodeAt(n + 1); ++a < t; ) i.push(String.fromCharCode(a)); else a = e.charCodeAt(n),
  2618. i.push(e.charAt(n));
  2619. return i.join("");
  2620. }
  2621. return e.match.def === t.match.nativeDef || !(!(i.regex || e.match.fn instanceof RegExp && t.match.fn instanceof RegExp) || !0 === e.match.static || !0 === t.match.static) && -1 !== a(t.match.fn.toString().replace(/[[\]/]/g, "")).indexOf(a(e.match.fn.toString().replace(/[[\]/]/g, "")));
  2622. }
  2623. function p(e, t, i) {
  2624. var a, r, o = this, s = this.dependencyLib, l = this.maskset, u = this.opts, p = this.el, d = l.maskToken, h = t ? i : 0, m = t ? t.slice() : [ 0 ], v = [], g = !1, k = t ? t.join("") : "";
  2625. function y(t, i, r, s) {
  2626. function c(r, s, d) {
  2627. function m(e, t) {
  2628. var i = 0 === t.matches.indexOf(e);
  2629. return i || t.matches.every((function(a, n) {
  2630. return !0 === a.isQuantifier ? i = m(e, t.matches[n - 1]) : Object.prototype.hasOwnProperty.call(a, "matches") && (i = m(e, a)),
  2631. !i;
  2632. })), i;
  2633. }
  2634. function x(e, t, i) {
  2635. var a, n;
  2636. if ((l.tests[e] || l.validPositions[e]) && (l.tests[e] || [ l.validPositions[e] ]).every((function(e, r) {
  2637. if (e.mloc[t]) return a = e, !1;
  2638. var o = void 0 !== i ? i : e.alternation, s = void 0 !== e.locator[o] ? e.locator[o].toString().indexOf(t) : -1;
  2639. return (void 0 === n || s < n) && -1 !== s && (a = e, n = s), !0;
  2640. })), a) {
  2641. var r = a.locator[a.alternation];
  2642. return (a.mloc[t] || a.mloc[r] || a.locator).slice((void 0 !== i ? i : a.alternation) + 1);
  2643. }
  2644. return void 0 !== i ? x(e, t) : void 0;
  2645. }
  2646. function P(e, t) {
  2647. var i = e.alternation, a = void 0 === t || i === t.alternation && -1 === e.locator[i].toString().indexOf(t.locator[i]);
  2648. if (!a && i > t.alternation) for (var n = t.alternation; n < i; n++) if (e.locator[n] !== t.locator[n]) {
  2649. i = n, a = !0;
  2650. break;
  2651. }
  2652. if (a) {
  2653. e.mloc = e.mloc || {};
  2654. var r = e.locator[i];
  2655. if (void 0 !== r) {
  2656. if ("string" == typeof r && (r = r.split(",")[0]), void 0 === e.mloc[r] && (e.mloc[r] = e.locator.slice()),
  2657. void 0 !== t) {
  2658. for (var o in t.mloc) "string" == typeof o && (o = o.split(",")[0]), void 0 === e.mloc[o] && (e.mloc[o] = t.mloc[o]);
  2659. e.locator[i] = Object.keys(e.mloc).join(",");
  2660. }
  2661. return !0;
  2662. }
  2663. e.alternation = void 0;
  2664. }
  2665. return !1;
  2666. }
  2667. function w(e, t) {
  2668. if (e.locator.length !== t.locator.length) return !1;
  2669. for (var i = e.alternation + 1; i < e.locator.length; i++) if (e.locator[i] !== t.locator[i]) return !1;
  2670. return !0;
  2671. }
  2672. if (h > e + 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;
  2673. if (h === e && void 0 === r.matches) {
  2674. if (v.push({
  2675. match: r,
  2676. locator: s.reverse(),
  2677. cd: k,
  2678. mloc: {}
  2679. }), !r.optionality || void 0 !== d || !(u.definitions && u.definitions[r.nativeDef] && u.definitions[r.nativeDef].optional || n.default.prototype.definitions[r.nativeDef] && n.default.prototype.definitions[r.nativeDef].optional)) return !0;
  2680. g = !0, h = e;
  2681. } else if (void 0 !== r.matches) {
  2682. if (r.isGroup && d !== r) return function() {
  2683. if (r = c(t.matches[t.matches.indexOf(r) + 1], s, d)) return !0;
  2684. }();
  2685. if (r.isOptional) return function() {
  2686. var t = r, n = v.length;
  2687. if (r = y(r, i, s, d), v.length > 0) {
  2688. if (v.forEach((function(e, t) {
  2689. t >= n && (e.match.optionality = e.match.optionality ? e.match.optionality + 1 : 1);
  2690. })), a = v[v.length - 1].match, void 0 !== d || !m(a, t)) return r;
  2691. g = !0, h = e;
  2692. }
  2693. }();
  2694. if (r.isAlternator) return function() {
  2695. o.hasAlternator = !0;
  2696. var a, n, m, k = r, y = [], b = v.slice(), S = s.length, M = !1, _ = i.length > 0 ? i.shift() : -1;
  2697. if (-1 === _ || "string" == typeof _) {
  2698. var O, T = h, E = i.slice(), j = [];
  2699. if ("string" == typeof _) j = _.split(","); else for (O = 0; O < k.matches.length; O++) j.push(O.toString());
  2700. if (void 0 !== l.excludes[e]) {
  2701. for (var A = j.slice(), D = 0, B = l.excludes[e].length; D < B; D++) {
  2702. var C = l.excludes[e][D].toString().split(":");
  2703. s.length == C[1] && j.splice(j.indexOf(C[0]), 1);
  2704. }
  2705. 0 === j.length && (delete l.excludes[e], j = A);
  2706. }
  2707. (!0 === u.keepStatic || isFinite(parseInt(u.keepStatic)) && T >= u.keepStatic) && (j = j.slice(0, 1));
  2708. for (var R = 0; R < j.length; R++) {
  2709. O = parseInt(j[R]), v = [], i = "string" == typeof _ && x(h, O, S) || E.slice();
  2710. var F = k.matches[O];
  2711. if (F && c(F, [ O ].concat(s), d)) r = !0; else if (0 === R && (M = !0), F && F.matches && F.matches.length > k.matches[0].matches.length) break;
  2712. a = v.slice(), h = T, v = [];
  2713. for (var L = 0; L < a.length; L++) {
  2714. var I = a[L], V = !1;
  2715. I.match.jit = I.match.jit || M, I.alternation = I.alternation || S, P(I);
  2716. for (var N = 0; N < y.length; N++) {
  2717. var G = y[N];
  2718. if ("string" != typeof _ || void 0 !== I.alternation && j.includes(I.locator[I.alternation].toString())) {
  2719. if (I.match.nativeDef === G.match.nativeDef) {
  2720. V = !0, P(G, I);
  2721. break;
  2722. }
  2723. if (f(I, G, u)) {
  2724. P(I, G) && (V = !0, y.splice(y.indexOf(G), 0, I));
  2725. break;
  2726. }
  2727. if (f(G, I, u)) {
  2728. P(G, I);
  2729. break;
  2730. }
  2731. if (m = G, !0 === (n = I).match.static && !0 !== m.match.static && m.match.fn.test(n.match.def, l, e, !1, u, !1)) {
  2732. w(I, G) || void 0 !== p.inputmask.userOptions.keepStatic ? P(I, G) && (V = !0, y.splice(y.indexOf(G), 0, I)) : u.keepStatic = !0;
  2733. break;
  2734. }
  2735. }
  2736. }
  2737. V || y.push(I);
  2738. }
  2739. }
  2740. v = b.concat(y), h = e, g = v.length > 0, r = y.length > 0, i = E.slice();
  2741. } else r = c(k.matches[_] || t.matches[_], [ _ ].concat(s), d);
  2742. if (r) return !0;
  2743. }();
  2744. if (r.isQuantifier && d !== t.matches[t.matches.indexOf(r) - 1]) return function() {
  2745. for (var n = r, o = !1, f = i.length > 0 ? i.shift() : 0; f < (isNaN(n.quantifier.max) ? f + 1 : n.quantifier.max) && h <= e; f++) {
  2746. var p = t.matches[t.matches.indexOf(n) - 1];
  2747. if (r = c(p, [ f ].concat(s), p)) {
  2748. if (v.forEach((function(t, i) {
  2749. (a = b(p, t.match) ? t.match : v[v.length - 1].match).optionalQuantifier = f >= n.quantifier.min,
  2750. a.jit = (f + 1) * (p.matches.indexOf(a) + 1) > n.quantifier.jit, a.optionalQuantifier && m(a, p) && (g = !0,
  2751. h = e, u.greedy && null == l.validPositions[e - 1] && f > n.quantifier.min && -1 != [ "*", "+" ].indexOf(n.quantifier.max) && (v.pop(),
  2752. k = void 0), o = !0, r = !1), !o && a.jit && (l.jitOffset[e] = p.matches.length - p.matches.indexOf(a));
  2753. })), o) break;
  2754. return !0;
  2755. }
  2756. }
  2757. }();
  2758. if (r = y(r, i, s, d)) return !0;
  2759. } else h++;
  2760. }
  2761. for (var d = i.length > 0 ? i.shift() : 0; d < t.matches.length; d++) if (!0 !== t.matches[d].isQuantifier) {
  2762. var m = c(t.matches[d], [ d ].concat(r), s);
  2763. if (m && h === e) return m;
  2764. if (h > e) break;
  2765. }
  2766. }
  2767. function b(e, t) {
  2768. var i = -1 != e.matches.indexOf(t);
  2769. return i || e.matches.forEach((function(e, a) {
  2770. void 0 === e.matches || i || (i = b(e, t));
  2771. })), i;
  2772. }
  2773. if (e > -1) {
  2774. if (void 0 === t) {
  2775. for (var x, P = e - 1; void 0 === (x = l.validPositions[P] || l.tests[P]) && P > -1; ) P--;
  2776. void 0 !== x && P > -1 && (m = function(e, t) {
  2777. var i, a = [];
  2778. return Array.isArray(t) || (t = [ t ]), t.length > 0 && (void 0 === t[0].alternation || !0 === u.keepStatic ? 0 === (a = c.call(o, e, t.slice()).locator.slice()).length && (a = t[0].locator.slice()) : t.forEach((function(e) {
  2779. "" !== e.def && (0 === a.length ? (i = e.alternation, a = e.locator.slice()) : e.locator[i] && -1 === a[i].toString().indexOf(e.locator[i]) && (a[i] += "," + e.locator[i]));
  2780. }))), a;
  2781. }(P, x), k = m.join(""), h = P);
  2782. }
  2783. if (l.tests[e] && l.tests[e][0].cd === k) return l.tests[e];
  2784. for (var w = m.shift(); w < d.length; w++) {
  2785. if (y(d[w], m, [ w ]) && h === e || h > e) break;
  2786. }
  2787. }
  2788. return (0 === v.length || g) && v.push({
  2789. match: {
  2790. fn: null,
  2791. static: !0,
  2792. optionality: !1,
  2793. casing: null,
  2794. def: "",
  2795. placeholder: ""
  2796. },
  2797. locator: [],
  2798. mloc: {},
  2799. cd: k
  2800. }), void 0 !== t && l.tests[e] ? r = s.extend(!0, [], v) : (l.tests[e] = s.extend(!0, [], v),
  2801. r = l.tests[e]), v.forEach((function(e) {
  2802. e.match.optionality = e.match.defOptionality || !1;
  2803. })), r;
  2804. }
  2805. },
  2806. 7215: function(e, t, i) {
  2807. Object.defineProperty(t, "__esModule", {
  2808. value: !0
  2809. }), t.alternate = s, t.checkAlternationMatch = function(e, t, i) {
  2810. for (var a, n = this.opts.greedy ? t : t.slice(0, 1), r = !1, o = void 0 !== i ? i.split(",") : [], s = 0; s < o.length; s++) -1 !== (a = e.indexOf(o[s])) && e.splice(a, 1);
  2811. for (var l = 0; l < e.length; l++) if (n.includes(e[l])) {
  2812. r = !0;
  2813. break;
  2814. }
  2815. return r;
  2816. }, t.handleRemove = function(e, t, i, o, l) {
  2817. var c = this, u = this.maskset, f = this.opts;
  2818. if ((f.numericInput || c.isRTL) && (t === n.keys.Backspace ? t = n.keys.Delete : t === n.keys.Delete && (t = n.keys.Backspace),
  2819. c.isRTL)) {
  2820. var p = i.end;
  2821. i.end = i.begin, i.begin = p;
  2822. }
  2823. var d, h = r.getLastValidPosition.call(c, void 0, !0);
  2824. i.end >= r.getBuffer.call(c).length && h >= i.end && (i.end = h + 1);
  2825. t === n.keys.Backspace ? i.end - i.begin < 1 && (i.begin = r.seekPrevious.call(c, i.begin)) : t === n.keys.Delete && i.begin === i.end && (i.end = r.isMask.call(c, i.end, !0, !0) ? i.end + 1 : r.seekNext.call(c, i.end) + 1);
  2826. if (!1 !== (d = m.call(c, i))) {
  2827. if (!0 !== o && !1 !== f.keepStatic || null !== f.regex && -1 !== a.getTest.call(c, i.begin).match.def.indexOf("|")) {
  2828. var v = s.call(c, !0);
  2829. if (v) {
  2830. var g = void 0 !== v.caret ? v.caret : v.pos ? r.seekNext.call(c, v.pos.begin ? v.pos.begin : v.pos) : r.getLastValidPosition.call(c, -1, !0);
  2831. (t !== n.keys.Delete || i.begin > g) && i.begin;
  2832. }
  2833. }
  2834. !0 !== o && (u.p = t === n.keys.Delete ? i.begin + d : i.begin, u.p = r.determineNewCaretPosition.call(c, {
  2835. begin: u.p,
  2836. end: u.p
  2837. }, !1, !1 === f.insertMode && t === n.keys.Backspace ? "none" : void 0).begin);
  2838. }
  2839. }, t.isComplete = c, t.isSelection = u, t.isValid = f, t.refreshFromBuffer = d,
  2840. t.revalidateMask = m;
  2841. var a = i(4713), n = i(2839), r = i(8711), o = i(6030);
  2842. function s(e, t, i, n, o, l) {
  2843. var c, u, p, d, h, m, v, g, k, y, b, x = this, P = this.dependencyLib, w = this.opts, S = x.maskset, M = P.extend(!0, [], S.validPositions), _ = P.extend(!0, {}, S.tests), O = !1, T = !1, E = void 0 !== o ? o : r.getLastValidPosition.call(x);
  2844. if (l && (y = l.begin, b = l.end, l.begin > l.end && (y = l.end, b = l.begin)),
  2845. -1 === E && void 0 === o) c = 0, u = (d = a.getTest.call(x, c)).alternation; else for (;E >= 0; E--) if ((p = S.validPositions[E]) && void 0 !== p.alternation) {
  2846. if (E <= (e || 0) && d && d.locator[p.alternation] !== p.locator[p.alternation]) break;
  2847. c = E, u = S.validPositions[c].alternation, d = p;
  2848. }
  2849. if (void 0 !== u) {
  2850. v = parseInt(c), S.excludes[v] = S.excludes[v] || [], !0 !== e && S.excludes[v].push((0,
  2851. a.getDecisionTaker)(d) + ":" + d.alternation);
  2852. var j = [], A = -1;
  2853. for (h = v; h < r.getLastValidPosition.call(x, void 0, !0) + 1; h++) -1 === A && e <= h && void 0 !== t && (j.push(t),
  2854. A = j.length - 1), (m = S.validPositions[h]) && !0 !== m.generatedInput && (void 0 === l || h < y || h >= b) && j.push(m.input),
  2855. delete S.validPositions[h];
  2856. for (-1 === A && void 0 !== t && (j.push(t), A = j.length - 1); void 0 !== S.excludes[v] && S.excludes[v].length < 10; ) {
  2857. for (S.tests = {}, r.resetMaskSet.call(x, !0), O = !0, h = 0; h < j.length && (g = O.caret || r.getLastValidPosition.call(x, void 0, !0) + 1,
  2858. k = j[h], O = f.call(x, g, k, !1, n, !0)); h++) h === A && (T = O), 1 == e && O && (T = {
  2859. caretPos: h
  2860. });
  2861. if (O) break;
  2862. if (r.resetMaskSet.call(x), d = a.getTest.call(x, v), S.validPositions = P.extend(!0, [], M),
  2863. S.tests = P.extend(!0, {}, _), !S.excludes[v]) {
  2864. T = s.call(x, e, t, i, n, v - 1, l);
  2865. break;
  2866. }
  2867. var D = (0, a.getDecisionTaker)(d);
  2868. if (-1 !== S.excludes[v].indexOf(D + ":" + d.alternation)) {
  2869. T = s.call(x, e, t, i, n, v - 1, l);
  2870. break;
  2871. }
  2872. for (S.excludes[v].push(D + ":" + d.alternation), h = v; h < r.getLastValidPosition.call(x, void 0, !0) + 1; h++) delete S.validPositions[h];
  2873. }
  2874. }
  2875. return T && !1 === w.keepStatic || delete S.excludes[v], T;
  2876. }
  2877. function l(e, t, i) {
  2878. var a = this.opts, r = this.maskset;
  2879. switch (a.casing || t.casing) {
  2880. case "upper":
  2881. e = e.toUpperCase();
  2882. break;
  2883. case "lower":
  2884. e = e.toLowerCase();
  2885. break;
  2886. case "title":
  2887. var o = r.validPositions[i - 1];
  2888. e = 0 === i || o && o.input === String.fromCharCode(n.keyCode.Space) ? e.toUpperCase() : e.toLowerCase();
  2889. break;
  2890. default:
  2891. if ("function" == typeof a.casing) {
  2892. var s = Array.prototype.slice.call(arguments);
  2893. s.push(r.validPositions), e = a.casing.apply(this, s);
  2894. }
  2895. }
  2896. return e;
  2897. }
  2898. function c(e) {
  2899. var t = this, i = this.opts, n = this.maskset;
  2900. if ("function" == typeof i.isComplete) return i.isComplete(e, i);
  2901. if ("*" !== i.repeat) {
  2902. var o = !1, s = r.determineLastRequiredPosition.call(t, !0), l = r.seekPrevious.call(t, s.l);
  2903. if (void 0 === s.def || s.def.newBlockMarker || s.def.optionality || s.def.optionalQuantifier) {
  2904. o = !0;
  2905. for (var c = 0; c <= l; c++) {
  2906. var u = a.getTestTemplate.call(t, c).match;
  2907. if (!0 !== u.static && void 0 === n.validPositions[c] && !0 !== u.optionality && !0 !== u.optionalQuantifier || !0 === u.static && e[c] !== a.getPlaceholder.call(t, c, u)) {
  2908. o = !1;
  2909. break;
  2910. }
  2911. }
  2912. }
  2913. return o;
  2914. }
  2915. }
  2916. function u(e) {
  2917. var t = this.opts.insertMode ? 0 : 1;
  2918. return this.isRTL ? e.begin - e.end > t : e.end - e.begin > t;
  2919. }
  2920. function f(e, t, i, n, o, p, v) {
  2921. var g = this, k = this.dependencyLib, y = this.opts, b = g.maskset;
  2922. i = !0 === i;
  2923. var x = e;
  2924. function P(e) {
  2925. if (void 0 !== e) {
  2926. if (void 0 !== e.remove && (Array.isArray(e.remove) || (e.remove = [ e.remove ]),
  2927. e.remove.sort((function(e, t) {
  2928. return g.isRTL ? e.pos - t.pos : t.pos - e.pos;
  2929. })).forEach((function(e) {
  2930. m.call(g, {
  2931. begin: e,
  2932. end: e + 1
  2933. });
  2934. })), e.remove = void 0), void 0 !== e.insert && (Array.isArray(e.insert) || (e.insert = [ e.insert ]),
  2935. e.insert.sort((function(e, t) {
  2936. return g.isRTL ? t.pos - e.pos : e.pos - t.pos;
  2937. })).forEach((function(e) {
  2938. "" !== e.c && f.call(g, e.pos, e.c, void 0 === e.strict || e.strict, void 0 !== e.fromIsValid ? e.fromIsValid : n);
  2939. })), e.insert = void 0), e.refreshFromBuffer && e.buffer) {
  2940. var t = e.refreshFromBuffer;
  2941. d.call(g, !0 === t ? t : t.start, t.end, e.buffer), e.refreshFromBuffer = void 0;
  2942. }
  2943. void 0 !== e.rewritePosition && (x = e.rewritePosition, e = !0);
  2944. }
  2945. return e;
  2946. }
  2947. function w(t, i, o) {
  2948. var s = !1;
  2949. return a.getTests.call(g, t).every((function(c, f) {
  2950. var p = c.match;
  2951. if (r.getBuffer.call(g, !0), !1 !== (s = (!p.jit || void 0 !== b.validPositions[r.seekPrevious.call(g, t)]) && (null != p.fn ? p.fn.test(i, b, t, o, y, u.call(g, e)) : (i === p.def || i === y.skipOptionalPartCharacter) && "" !== p.def && {
  2952. c: a.getPlaceholder.call(g, t, p, !0) || p.def,
  2953. pos: t
  2954. }))) {
  2955. var d = void 0 !== s.c ? s.c : i, h = t;
  2956. return d = d === y.skipOptionalPartCharacter && !0 === p.static ? a.getPlaceholder.call(g, t, p, !0) || p.def : d,
  2957. !0 !== (s = P(s)) && void 0 !== s.pos && s.pos !== t && (h = s.pos), !0 !== s && void 0 === s.pos && void 0 === s.c ? !1 : (!1 === m.call(g, e, k.extend({}, c, {
  2958. input: l.call(g, d, p, h)
  2959. }), n, h) && (s = !1), !1);
  2960. }
  2961. return !0;
  2962. })), s;
  2963. }
  2964. void 0 !== e.begin && (x = g.isRTL ? e.end : e.begin);
  2965. var S = !0, M = k.extend(!0, {}, b.validPositions);
  2966. if (!1 === y.keepStatic && void 0 !== b.excludes[x] && !0 !== o && !0 !== n) for (var _ = x; _ < (g.isRTL ? e.begin : e.end); _++) void 0 !== b.excludes[_] && (b.excludes[_] = void 0,
  2967. delete b.tests[_]);
  2968. if ("function" == typeof y.preValidation && !0 !== n && !0 !== p && (S = P(S = y.preValidation.call(g, r.getBuffer.call(g), x, t, u.call(g, e), y, b, e, i || o))),
  2969. !0 === S) {
  2970. if (S = w(x, t, i), (!i || !0 === n) && !1 === S && !0 !== p) {
  2971. var O = b.validPositions[x];
  2972. if (!O || !0 !== O.match.static || O.match.def !== t && t !== y.skipOptionalPartCharacter) {
  2973. if (y.insertMode || void 0 === b.validPositions[r.seekNext.call(g, x)] || e.end > x) {
  2974. var T = !1;
  2975. if (b.jitOffset[x] && void 0 === b.validPositions[r.seekNext.call(g, x)] && !1 !== (S = f.call(g, x + b.jitOffset[x], t, !0, !0)) && (!0 !== o && (S.caret = x),
  2976. T = !0), e.end > x && (b.validPositions[x] = void 0), !T && !r.isMask.call(g, x, y.keepStatic && 0 === x)) for (var E = x + 1, j = r.seekNext.call(g, x, !1, 0 !== x); E <= j; E++) if (!1 !== (S = w(E, t, i))) {
  2977. S = h.call(g, x, void 0 !== S.pos ? S.pos : E) || S, x = E;
  2978. break;
  2979. }
  2980. }
  2981. } else S = {
  2982. caret: r.seekNext.call(g, x)
  2983. };
  2984. }
  2985. g.hasAlternator && !0 !== o && !i && (!1 === S && y.keepStatic && (c.call(g, r.getBuffer.call(g)) || 0 === x) ? S = s.call(g, x, t, i, n, void 0, e) : (u.call(g, e) && b.tests[x] && b.tests[x].length > 1 && y.keepStatic || 1 == S && !0 !== y.numericInput && b.tests[x] && b.tests[x].length > 1 && r.getLastValidPosition.call(g, void 0, !0) > x) && (S = s.call(g, !0))),
  2986. !0 === S && (S = {
  2987. pos: x
  2988. });
  2989. }
  2990. if ("function" == typeof y.postValidation && !0 !== n && !0 !== p) {
  2991. var A = y.postValidation.call(g, r.getBuffer.call(g, !0), void 0 !== e.begin ? g.isRTL ? e.end : e.begin : e, t, S, y, b, i, v);
  2992. void 0 !== A && (S = !0 === A ? S : A);
  2993. }
  2994. S && void 0 === S.pos && (S.pos = x), !1 === S || !0 === p ? (r.resetMaskSet.call(g, !0),
  2995. b.validPositions = k.extend(!0, [], M)) : h.call(g, void 0, x, !0);
  2996. var D = P(S);
  2997. void 0 !== g.maxLength && (r.getBuffer.call(g).length > g.maxLength && !n && (r.resetMaskSet.call(g, !0),
  2998. b.validPositions = k.extend(!0, [], M), D = !1));
  2999. return D;
  3000. }
  3001. function p(e, t, i) {
  3002. for (var n = this.maskset, r = !1, o = a.getTests.call(this, e), s = 0; s < o.length; s++) {
  3003. if (o[s].match && (o[s].match.nativeDef === t.match[i.shiftPositions ? "def" : "nativeDef"] && (!i.shiftPositions || !t.match.static) || o[s].match.nativeDef === t.match.nativeDef || i.regex && !o[s].match.static && o[s].match.fn.test(t.input, n, e, !1, i))) {
  3004. r = !0;
  3005. break;
  3006. }
  3007. if (o[s].match && o[s].match.def === t.match.nativeDef) {
  3008. r = void 0;
  3009. break;
  3010. }
  3011. }
  3012. return !1 === r && void 0 !== n.jitOffset[e] && (r = p.call(this, e + n.jitOffset[e], t, i)),
  3013. r;
  3014. }
  3015. function d(e, t, i) {
  3016. var a, n, s = this, l = this.maskset, c = this.opts, u = this.dependencyLib, f = c.skipOptionalPartCharacter, p = s.isRTL ? i.slice().reverse() : i;
  3017. if (c.skipOptionalPartCharacter = "", !0 === e) r.resetMaskSet.call(s), l.tests = {},
  3018. e = 0, t = i.length, n = r.determineNewCaretPosition.call(s, {
  3019. begin: 0,
  3020. end: 0
  3021. }, !1).begin; else {
  3022. for (a = e; a < t; a++) delete l.validPositions[a];
  3023. n = e;
  3024. }
  3025. var d = new u.Event("keypress");
  3026. for (a = e; a < t; a++) {
  3027. d.key = p[a].toString(), s.ignorable = !1;
  3028. var h = o.EventHandlers.keypressEvent.call(s, d, !0, !1, !1, n);
  3029. !1 !== h && void 0 !== h && (n = h.forwardPosition);
  3030. }
  3031. c.skipOptionalPartCharacter = f;
  3032. }
  3033. function h(e, t, i) {
  3034. var n = this, o = this.maskset, s = this.dependencyLib;
  3035. if (void 0 === e) for (e = t - 1; e > 0 && !o.validPositions[e]; e--) ;
  3036. for (var l = e; l < t; l++) {
  3037. if (void 0 === o.validPositions[l] && !r.isMask.call(n, l, !1)) if (0 == l ? a.getTest.call(n, l) : o.validPositions[l - 1]) {
  3038. var c = a.getTests.call(n, l).slice();
  3039. "" === c[c.length - 1].match.def && c.pop();
  3040. var u, p = a.determineTestTemplate.call(n, l, c);
  3041. if (p && (!0 !== p.match.jit || "master" === p.match.newBlockMarker && (u = o.validPositions[l + 1]) && !0 === u.match.optionalQuantifier) && ((p = s.extend({}, p, {
  3042. input: a.getPlaceholder.call(n, l, p.match, !0) || p.match.def
  3043. })).generatedInput = !0, m.call(n, l, p, !0), !0 !== i)) {
  3044. var d = o.validPositions[t].input;
  3045. return o.validPositions[t] = void 0, f.call(n, t, d, !0, !0);
  3046. }
  3047. }
  3048. }
  3049. }
  3050. function m(e, t, i, n) {
  3051. var o = this, s = this.maskset, l = this.opts, c = this.dependencyLib;
  3052. function u(e, t, i) {
  3053. var a = t[e];
  3054. if (void 0 !== a && !0 === a.match.static && !0 !== a.match.optionality && (void 0 === t[0] || void 0 === t[0].alternation)) {
  3055. var n = i.begin <= e - 1 ? t[e - 1] && !0 === t[e - 1].match.static && t[e - 1] : t[e - 1], r = i.end > e + 1 ? t[e + 1] && !0 === t[e + 1].match.static && t[e + 1] : t[e + 1];
  3056. return n && r;
  3057. }
  3058. return !1;
  3059. }
  3060. var d = 0, h = void 0 !== e.begin ? e.begin : e, m = void 0 !== e.end ? e.end : e, v = !0;
  3061. if (e.begin > e.end && (h = e.end, m = e.begin), n = void 0 !== n ? n : h, void 0 === i && (h !== m || l.insertMode && void 0 !== s.validPositions[n] || void 0 === t || t.match.optionalQuantifier || t.match.optionality)) {
  3062. var g, k = c.extend(!0, {}, s.validPositions), y = r.getLastValidPosition.call(o, void 0, !0);
  3063. for (s.p = h, g = y; g >= h; g--) delete s.validPositions[g], void 0 === t && delete s.tests[g + 1];
  3064. var b, x, P = n, w = P;
  3065. for (t && (s.validPositions[n] = c.extend(!0, {}, t), w++, P++), g = t ? m : m - 1; g <= y; g++) {
  3066. if (void 0 !== (b = k[g]) && !0 !== b.generatedInput && (g >= m || g >= h && u(g, k, {
  3067. begin: h,
  3068. end: m
  3069. }))) {
  3070. for (;"" !== a.getTest.call(o, w).match.def; ) {
  3071. if (!1 !== (x = p.call(o, w, b, l)) || "+" === b.match.def) {
  3072. "+" === b.match.def && r.getBuffer.call(o, !0);
  3073. var S = f.call(o, w, b.input, "+" !== b.match.def, !0);
  3074. if (v = !1 !== S, P = (S.pos || w) + 1, !v && x) break;
  3075. } else v = !1;
  3076. if (v) {
  3077. void 0 === t && b.match.static && g === e.begin && d++;
  3078. break;
  3079. }
  3080. if (!v && r.getBuffer.call(o), w > s.maskLength) break;
  3081. w++;
  3082. }
  3083. "" == a.getTest.call(o, w).match.def && (v = !1), w = P;
  3084. }
  3085. if (!v) break;
  3086. }
  3087. if (!v) return s.validPositions = c.extend(!0, [], k), r.resetMaskSet.call(o, !0),
  3088. !1;
  3089. } else t && a.getTest.call(o, n).match.cd === t.match.cd && (s.validPositions[n] = c.extend(!0, {}, t));
  3090. return r.resetMaskSet.call(o, !0), d;
  3091. }
  3092. },
  3093. 7957: function(t) {
  3094. t.exports = e;
  3095. }
  3096. }, i = {};
  3097. function a(e) {
  3098. var n = i[e];
  3099. if (void 0 !== n) return n.exports;
  3100. var r = i[e] = {
  3101. exports: {}
  3102. };
  3103. return t[e](r, r.exports, a), r.exports;
  3104. }
  3105. var n = {};
  3106. return function() {
  3107. var e = n;
  3108. Object.defineProperty(e, "__esModule", {
  3109. value: !0
  3110. }), e.default = void 0;
  3111. var t, i = (t = a(3046)) && t.__esModule ? t : {
  3112. default: t
  3113. };
  3114. a(443);
  3115. var r = i.default;
  3116. e.default = r;
  3117. }(), n;
  3118. }();
  3119. }));