jquery.inputmask.js 228 KB

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