Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

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