inputmask.js 181 KB

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