Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

2985 řádky
188KB

  1. /*!
  2. * dist/jquery.inputmask
  3. * https://github.com/RobinHerbots/Inputmask
  4. * Copyright (c) 2010 - 2021 Robin Herbots
  5. * Licensed under the MIT license
  6. * Version: 5.0.7
  7. */
  8. !function(e, t) {
  9. if ("object" == typeof exports && "object" == typeof module) module.exports = t(require("jquery")); else if ("function" == typeof define && define.amd) define([ "jquery" ], t); else {
  10. var i = "object" == typeof exports ? t(require("jquery")) : t(e.jQuery);
  11. for (var a in i) ("object" == typeof exports ? exports : e)[a] = i[a];
  12. }
  13. }(self, (function(e) {
  14. return function() {
  15. "use strict";
  16. var t = {
  17. 3046: function(e, t, i) {
  18. var a;
  19. Object.defineProperty(t, "__esModule", {
  20. value: !0
  21. }), t.default = void 0, i(3851), i(219), i(207), i(5296);
  22. var n = ((a = i(2394)) && a.__esModule ? a : {
  23. default: a
  24. }).default;
  25. t.default = n;
  26. },
  27. 8741: function(e, t) {
  28. Object.defineProperty(t, "__esModule", {
  29. value: !0
  30. }), t.default = void 0;
  31. var i = !("undefined" == typeof window || !window.document || !window.document.createElement);
  32. t.default = i;
  33. },
  34. 3976: function(e, t, i) {
  35. Object.defineProperty(t, "__esModule", {
  36. value: !0
  37. }), t.default = void 0;
  38. var a, n = (a = i(5581)) && a.__esModule ? a : {
  39. default: a
  40. };
  41. var r = {
  42. _maxTestPos: 500,
  43. placeholder: "_",
  44. optionalmarker: [ "[", "]" ],
  45. quantifiermarker: [ "{", "}" ],
  46. groupmarker: [ "(", ")" ],
  47. alternatormarker: "|",
  48. escapeChar: "\\",
  49. mask: null,
  50. regex: null,
  51. oncomplete: function() {},
  52. onincomplete: function() {},
  53. oncleared: function() {},
  54. repeat: 0,
  55. greedy: !1,
  56. autoUnmask: !1,
  57. removeMaskOnSubmit: !1,
  58. clearMaskOnLostFocus: !0,
  59. insertMode: !0,
  60. insertModeVisual: !0,
  61. clearIncomplete: !1,
  62. alias: null,
  63. onKeyDown: function() {},
  64. onBeforeMask: null,
  65. onBeforePaste: function(e, t) {
  66. return "function" == typeof t.onBeforeMask ? t.onBeforeMask.call(this, e, t) : e;
  67. },
  68. onBeforeWrite: null,
  69. onUnMask: null,
  70. showMaskOnFocus: !0,
  71. showMaskOnHover: !0,
  72. onKeyValidation: function() {},
  73. skipOptionalPartCharacter: " ",
  74. numericInput: !1,
  75. rightAlign: !1,
  76. undoOnEscape: !0,
  77. radixPoint: "",
  78. _radixDance: !1,
  79. groupSeparator: "",
  80. keepStatic: null,
  81. positionCaretOnTab: !0,
  82. tabThrough: !1,
  83. supportsInputType: [ "text", "tel", "url", "password", "search" ],
  84. ignorables: [ n.default.BACKSPACE, n.default.TAB, n.default["PAUSE/BREAK"], n.default.ESCAPE, n.default.PAGE_UP, n.default.PAGE_DOWN, n.default.END, n.default.HOME, n.default.LEFT, n.default.UP, n.default.RIGHT, n.default.DOWN, n.default.INSERT, n.default.DELETE, 93, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 0, 229 ],
  85. isComplete: null,
  86. preValidation: null,
  87. postValidation: null,
  88. staticDefinitionSymbol: void 0,
  89. jitMasking: !1,
  90. nullable: !0,
  91. inputEventOnly: !1,
  92. noValuePatching: !1,
  93. positionCaretOnClick: "lvp",
  94. casing: null,
  95. inputmode: "text",
  96. importDataAttributes: !0,
  97. shiftPositions: !0,
  98. usePrototypeDefinitions: !0,
  99. validationEventTimeOut: 3e3,
  100. substitutes: {}
  101. };
  102. t.default = r;
  103. },
  104. 7392: function(e, t) {
  105. Object.defineProperty(t, "__esModule", {
  106. value: !0
  107. }), t.default = void 0;
  108. t.default = {
  109. 9: {
  110. validator: "[0-9\uff10-\uff19]",
  111. definitionSymbol: "*"
  112. },
  113. a: {
  114. validator: "[A-Za-z\u0410-\u044f\u0401\u0451\xc0-\xff\xb5]",
  115. definitionSymbol: "*"
  116. },
  117. "*": {
  118. validator: "[0-9\uff10-\uff19A-Za-z\u0410-\u044f\u0401\u0451\xc0-\xff\xb5]"
  119. }
  120. };
  121. },
  122. 3287: function(e, t, i) {
  123. Object.defineProperty(t, "__esModule", {
  124. value: !0
  125. }), t.default = void 0;
  126. var a, n = (a = i(2047)) && a.__esModule ? a : {
  127. default: a
  128. };
  129. if (void 0 === n.default) throw "jQuery not loaded!";
  130. var r = n.default;
  131. t.default = r;
  132. },
  133. 9845: function(e, t, i) {
  134. Object.defineProperty(t, "__esModule", {
  135. value: !0
  136. }), t.ua = t.mobile = t.iphone = t.iemobile = t.ie = void 0;
  137. var a, n = (a = i(9380)) && a.__esModule ? a : {
  138. default: a
  139. };
  140. var r = n.default.navigator && n.default.navigator.userAgent || "", o = r.indexOf("MSIE ") > 0 || r.indexOf("Trident/") > 0, s = "ontouchstart" in n.default, l = /iemobile/i.test(r), u = /iphone/i.test(r) && !l;
  141. t.iphone = u, t.iemobile = l, t.mobile = s, t.ie = o, t.ua = r;
  142. },
  143. 7184: function(e, t) {
  144. Object.defineProperty(t, "__esModule", {
  145. value: !0
  146. }), t.default = function(e) {
  147. return e.replace(i, "\\$1");
  148. };
  149. var i = new RegExp("(\\" + [ "/", ".", "*", "+", "?", "|", "(", ")", "[", "]", "{", "}", "\\", "$", "^" ].join("|\\") + ")", "gim");
  150. },
  151. 6030: function(e, t, i) {
  152. Object.defineProperty(t, "__esModule", {
  153. value: !0
  154. }), t.EventHandlers = void 0;
  155. var a, n = i(8711), r = (a = i(5581)) && a.__esModule ? a : {
  156. default: a
  157. }, o = i(9845), s = i(7215), l = i(7760), u = i(4713);
  158. function c(e, t) {
  159. var i = "undefined" != typeof Symbol && e[Symbol.iterator] || e["@@iterator"];
  160. if (!i) {
  161. if (Array.isArray(e) || (i = function(e, t) {
  162. if (!e) return;
  163. if ("string" == typeof e) return f(e, t);
  164. var i = Object.prototype.toString.call(e).slice(8, -1);
  165. "Object" === i && e.constructor && (i = e.constructor.name);
  166. if ("Map" === i || "Set" === i) return Array.from(e);
  167. if ("Arguments" === i || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)) return f(e, t);
  168. }(e)) || t && e && "number" == typeof e.length) {
  169. i && (e = i);
  170. var a = 0, n = function() {};
  171. return {
  172. s: n,
  173. n: function() {
  174. return a >= e.length ? {
  175. done: !0
  176. } : {
  177. done: !1,
  178. value: e[a++]
  179. };
  180. },
  181. e: function(e) {
  182. throw e;
  183. },
  184. f: n
  185. };
  186. }
  187. throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
  188. }
  189. var r, o = !0, s = !1;
  190. return {
  191. s: function() {
  192. i = i.call(e);
  193. },
  194. n: function() {
  195. var e = i.next();
  196. return o = e.done, e;
  197. },
  198. e: function(e) {
  199. s = !0, r = e;
  200. },
  201. f: function() {
  202. try {
  203. o || null == i.return || i.return();
  204. } finally {
  205. if (s) throw r;
  206. }
  207. }
  208. };
  209. }
  210. function f(e, t) {
  211. (null == t || t > e.length) && (t = e.length);
  212. for (var i = 0, a = new Array(t); i < t; i++) a[i] = e[i];
  213. return a;
  214. }
  215. var d = {
  216. keydownEvent: function(e) {
  217. var t = this.inputmask, i = t.opts, a = t.dependencyLib, c = t.maskset, f = this, d = a(f), p = e.keyCode, h = n.caret.call(t, f), m = i.onKeyDown.call(this, e, n.getBuffer.call(t), h, i);
  218. if (void 0 !== m) return m;
  219. if (p === r.default.BACKSPACE || p === r.default.DELETE || o.iphone && p === r.default.BACKSPACE_SAFARI || e.ctrlKey && p === r.default.X && !("oncut" in f)) e.preventDefault(),
  220. s.handleRemove.call(t, f, p, h), (0, l.writeBuffer)(f, n.getBuffer.call(t, !0), c.p, e, f.inputmask._valueGet() !== n.getBuffer.call(t).join("")); else if (p === r.default.END || p === r.default.PAGE_DOWN) {
  221. e.preventDefault();
  222. var v = n.seekNext.call(t, n.getLastValidPosition.call(t));
  223. n.caret.call(t, f, e.shiftKey ? h.begin : v, v, !0);
  224. } else p === r.default.HOME && !e.shiftKey || p === r.default.PAGE_UP ? (e.preventDefault(),
  225. n.caret.call(t, f, 0, e.shiftKey ? h.begin : 0, !0)) : i.undoOnEscape && p === r.default.ESCAPE && !0 !== e.altKey ? ((0,
  226. l.checkVal)(f, !0, !1, t.undoValue.split("")), d.trigger("click")) : p !== r.default.INSERT || e.shiftKey || e.ctrlKey || void 0 !== t.userOptions.insertMode ? !0 === i.tabThrough && p === r.default.TAB ? !0 === e.shiftKey ? (h.end = n.seekPrevious.call(t, h.end, !0),
  227. !0 === u.getTest.call(t, h.end - 1).match.static && h.end--, h.begin = n.seekPrevious.call(t, h.end, !0),
  228. h.begin >= 0 && h.end > 0 && (e.preventDefault(), n.caret.call(t, f, h.begin, h.end))) : (h.begin = n.seekNext.call(t, h.begin, !0),
  229. h.end = n.seekNext.call(t, h.begin, !0), h.end < c.maskLength && h.end--, h.begin <= c.maskLength && (e.preventDefault(),
  230. n.caret.call(t, f, h.begin, h.end))) : e.shiftKey || i.insertModeVisual && !1 === i.insertMode && (p === r.default.RIGHT ? setTimeout((function() {
  231. var e = n.caret.call(t, f);
  232. n.caret.call(t, f, e.begin);
  233. }), 0) : p === r.default.LEFT && setTimeout((function() {
  234. var e = n.translatePosition.call(t, f.inputmask.caretPos.begin);
  235. n.translatePosition.call(t, f.inputmask.caretPos.end);
  236. t.isRTL ? n.caret.call(t, f, e + (e === c.maskLength ? 0 : 1)) : n.caret.call(t, f, e - (0 === e ? 0 : 1));
  237. }), 0)) : s.isSelection.call(t, h) ? i.insertMode = !i.insertMode : (i.insertMode = !i.insertMode,
  238. n.caret.call(t, f, h.begin, h.begin));
  239. t.ignorable = i.ignorables.includes(p);
  240. },
  241. keypressEvent: function(e, t, i, a, o) {
  242. var u = this.inputmask || this, c = u.opts, f = u.dependencyLib, d = u.maskset, p = u.el, h = f(p), m = e.keyCode;
  243. if (!(!0 === t || e.ctrlKey && e.altKey) && (e.ctrlKey || e.metaKey || u.ignorable)) return m === r.default.ENTER && u.undoValue !== u._valueGet(!0) && (u.undoValue = u._valueGet(!0),
  244. setTimeout((function() {
  245. h.trigger("change");
  246. }), 0)), u.skipInputEvent = !0, !0;
  247. if (m) {
  248. 44 !== m && 46 !== m || 3 !== e.location || "" === c.radixPoint || (m = c.radixPoint.charCodeAt(0));
  249. var v, g = t ? {
  250. begin: o,
  251. end: o
  252. } : n.caret.call(u, p), k = String.fromCharCode(m);
  253. k = c.substitutes[k] || k, d.writeOutBuffer = !0;
  254. var y = s.isValid.call(u, g, k, a, void 0, void 0, void 0, t);
  255. if (!1 !== y && (n.resetMaskSet.call(u, !0), v = void 0 !== y.caret ? y.caret : n.seekNext.call(u, y.pos.begin ? y.pos.begin : y.pos),
  256. d.p = v), v = c.numericInput && void 0 === y.caret ? n.seekPrevious.call(u, v) : v,
  257. !1 !== i && (setTimeout((function() {
  258. c.onKeyValidation.call(p, m, y);
  259. }), 0), d.writeOutBuffer && !1 !== y)) {
  260. var b = n.getBuffer.call(u);
  261. (0, l.writeBuffer)(p, b, v, e, !0 !== t);
  262. }
  263. if (e.preventDefault(), t) return !1 !== y && (y.forwardPosition = v), y;
  264. }
  265. },
  266. keyupEvent: function(e) {
  267. var t = this.inputmask;
  268. !t.isComposing || e.keyCode !== r.default.KEY_229 && e.keyCode !== r.default.ENTER || t.$el.trigger("input");
  269. },
  270. pasteEvent: function(e) {
  271. var t, i = this.inputmask, a = i.opts, r = i._valueGet(!0), o = n.caret.call(i, this);
  272. i.isRTL && (t = o.end, o.end = n.translatePosition.call(i, o.begin), o.begin = n.translatePosition.call(i, t));
  273. var s = r.substr(0, o.begin), u = r.substr(o.end, r.length);
  274. if (s == (i.isRTL ? n.getBufferTemplate.call(i).slice().reverse() : n.getBufferTemplate.call(i)).slice(0, o.begin).join("") && (s = ""),
  275. u == (i.isRTL ? n.getBufferTemplate.call(i).slice().reverse() : n.getBufferTemplate.call(i)).slice(o.end).join("") && (u = ""),
  276. window.clipboardData && window.clipboardData.getData) r = s + window.clipboardData.getData("Text") + u; else {
  277. if (!e.clipboardData || !e.clipboardData.getData) return !0;
  278. r = s + e.clipboardData.getData("text/plain") + u;
  279. }
  280. var f = r;
  281. if (i.isRTL) {
  282. f = f.split("");
  283. var d, p = c(n.getBufferTemplate.call(i));
  284. try {
  285. for (p.s(); !(d = p.n()).done; ) {
  286. var h = d.value;
  287. f[0] === h && f.shift();
  288. }
  289. } catch (e) {
  290. p.e(e);
  291. } finally {
  292. p.f();
  293. }
  294. f = f.join("");
  295. }
  296. if ("function" == typeof a.onBeforePaste) {
  297. if (!1 === (f = a.onBeforePaste.call(i, f, a))) return !1;
  298. f || (f = r);
  299. }
  300. (0, l.checkVal)(this, !0, !1, f.toString().split(""), e), e.preventDefault();
  301. },
  302. inputFallBackEvent: function(e) {
  303. var t = this.inputmask, i = t.opts, a = t.dependencyLib;
  304. var s = this, c = s.inputmask._valueGet(!0), f = (t.isRTL ? n.getBuffer.call(t).slice().reverse() : n.getBuffer.call(t)).join(""), p = n.caret.call(t, s, void 0, void 0, !0);
  305. if (f !== c) {
  306. c = function(e, i, a) {
  307. if (o.iemobile) {
  308. var r = i.replace(n.getBuffer.call(t).join(""), "");
  309. if (1 === r.length) {
  310. var s = i.split("");
  311. s.splice(a.begin, 0, r), i = s.join("");
  312. }
  313. }
  314. return i;
  315. }(0, c, p);
  316. var h = function(e, a, r) {
  317. for (var o, s, l, c = e.substr(0, r.begin).split(""), f = e.substr(r.begin).split(""), d = a.substr(0, r.begin).split(""), p = a.substr(r.begin).split(""), h = c.length >= d.length ? c.length : d.length, m = f.length >= p.length ? f.length : p.length, v = "", g = [], k = "~"; c.length < h; ) c.push(k);
  318. for (;d.length < h; ) d.push(k);
  319. for (;f.length < m; ) f.unshift(k);
  320. for (;p.length < m; ) p.unshift(k);
  321. var y = c.concat(f), b = d.concat(p);
  322. for (s = 0, o = y.length; s < o; s++) switch (l = u.getPlaceholder.call(t, n.translatePosition.call(t, s)),
  323. v) {
  324. case "insertText":
  325. b[s - 1] === y[s] && r.begin == y.length - 1 && g.push(y[s]), s = o;
  326. break;
  327. case "insertReplacementText":
  328. case "deleteContentBackward":
  329. y[s] === k ? r.end++ : s = o;
  330. break;
  331. default:
  332. y[s] !== b[s] && (y[s + 1] !== k && y[s + 1] !== l && void 0 !== y[s + 1] || (b[s] !== l || b[s + 1] !== k) && b[s] !== k ? b[s + 1] === k && b[s] === y[s + 1] ? (v = "insertText",
  333. g.push(y[s]), r.begin--, r.end--) : y[s] !== l && y[s] !== k && (y[s + 1] === k || b[s] !== y[s] && b[s + 1] === y[s + 1]) ? (v = "insertReplacementText",
  334. g.push(y[s]), r.begin--) : y[s] === k ? (v = "deleteContentBackward", (n.isMask.call(t, n.translatePosition.call(t, s), !0) || b[s] === i.radixPoint) && r.end++) : s = o : (v = "insertText",
  335. g.push(y[s]), r.begin--, r.end--));
  336. }
  337. return {
  338. action: v,
  339. data: g,
  340. caret: r
  341. };
  342. }(c, f, p);
  343. switch ((s.inputmask.shadowRoot || s.ownerDocument).activeElement !== s && s.focus(),
  344. (0, l.writeBuffer)(s, n.getBuffer.call(t)), n.caret.call(t, s, p.begin, p.end, !0),
  345. h.action) {
  346. case "insertText":
  347. case "insertReplacementText":
  348. h.data.forEach((function(e, i) {
  349. var n = new a.Event("keypress");
  350. n.keyCode = e.charCodeAt(0), t.ignorable = !1, d.keypressEvent.call(s, n);
  351. })), setTimeout((function() {
  352. t.$el.trigger("keyup");
  353. }), 0);
  354. break;
  355. case "deleteContentBackward":
  356. var m = new a.Event("keydown");
  357. m.keyCode = r.default.BACKSPACE, d.keydownEvent.call(s, m);
  358. break;
  359. default:
  360. (0, l.applyInputValue)(s, c);
  361. }
  362. e.preventDefault();
  363. }
  364. },
  365. compositionendEvent: function(e) {
  366. var t = this.inputmask;
  367. t.isComposing = !1, t.$el.trigger("input");
  368. },
  369. setValueEvent: function(e) {
  370. var t = this.inputmask, i = this, a = e && e.detail ? e.detail[0] : arguments[1];
  371. void 0 === a && (a = i.inputmask._valueGet(!0)), (0, l.applyInputValue)(i, a), (e.detail && void 0 !== e.detail[1] || void 0 !== arguments[2]) && n.caret.call(t, i, e.detail ? e.detail[1] : arguments[2]);
  372. },
  373. focusEvent: function(e) {
  374. var t = this.inputmask, i = t.opts, a = this, r = a.inputmask._valueGet();
  375. i.showMaskOnFocus && r !== n.getBuffer.call(t).join("") && (0, l.writeBuffer)(a, n.getBuffer.call(t), n.seekNext.call(t, n.getLastValidPosition.call(t))),
  376. !0 !== i.positionCaretOnTab || !1 !== t.mouseEnter || s.isComplete.call(t, n.getBuffer.call(t)) && -1 !== n.getLastValidPosition.call(t) || d.clickEvent.apply(a, [ e, !0 ]),
  377. t.undoValue = t._valueGet(!0);
  378. },
  379. invalidEvent: function(e) {
  380. this.inputmask.validationEvent = !0;
  381. },
  382. mouseleaveEvent: function() {
  383. var e = this.inputmask, t = e.opts, i = this;
  384. e.mouseEnter = !1, t.clearMaskOnLostFocus && (i.inputmask.shadowRoot || i.ownerDocument).activeElement !== i && (0,
  385. l.HandleNativePlaceholder)(i, e.originalPlaceholder);
  386. },
  387. clickEvent: function(e, t) {
  388. var i = this.inputmask, a = this;
  389. if ((a.inputmask.shadowRoot || a.ownerDocument).activeElement === a) {
  390. var r = n.determineNewCaretPosition.call(i, n.caret.call(i, a), t);
  391. void 0 !== r && n.caret.call(i, a, r);
  392. }
  393. },
  394. cutEvent: function(e) {
  395. var t = this.inputmask, i = t.maskset, a = this, o = n.caret.call(t, a), u = t.isRTL ? n.getBuffer.call(t).slice(o.end, o.begin) : n.getBuffer.call(t).slice(o.begin, o.end), c = t.isRTL ? u.reverse().join("") : u.join("");
  396. window.navigator.clipboard ? window.navigator.clipboard.writeText(c) : window.clipboardData && window.clipboardData.getData && window.clipboardData.setData("Text", c),
  397. s.handleRemove.call(t, a, r.default.DELETE, o), (0, l.writeBuffer)(a, n.getBuffer.call(t), i.p, e, t.undoValue !== t._valueGet(!0));
  398. },
  399. blurEvent: function(e) {
  400. var t = this.inputmask, i = t.opts, a = (0, t.dependencyLib)(this), r = this;
  401. if (r.inputmask) {
  402. (0, l.HandleNativePlaceholder)(r, t.originalPlaceholder);
  403. var o = r.inputmask._valueGet(), u = n.getBuffer.call(t).slice();
  404. "" !== o && (i.clearMaskOnLostFocus && (-1 === n.getLastValidPosition.call(t) && o === n.getBufferTemplate.call(t).join("") ? u = [] : l.clearOptionalTail.call(t, u)),
  405. !1 === s.isComplete.call(t, u) && (setTimeout((function() {
  406. a.trigger("incomplete");
  407. }), 0), i.clearIncomplete && (n.resetMaskSet.call(t), u = i.clearMaskOnLostFocus ? [] : n.getBufferTemplate.call(t).slice())),
  408. (0, l.writeBuffer)(r, u, void 0, e)), t.undoValue !== t._valueGet(!0) && (t.undoValue = t._valueGet(!0),
  409. a.trigger("change"));
  410. }
  411. },
  412. mouseenterEvent: function() {
  413. var e = this.inputmask, t = e.opts, i = this;
  414. if (e.mouseEnter = !0, (i.inputmask.shadowRoot || i.ownerDocument).activeElement !== i) {
  415. var a = (e.isRTL ? n.getBufferTemplate.call(e).slice().reverse() : n.getBufferTemplate.call(e)).join("");
  416. e.placeholder !== a && i.placeholder !== e.originalPlaceholder && (e.originalPlaceholder = i.placeholder),
  417. t.showMaskOnHover && (0, l.HandleNativePlaceholder)(i, a);
  418. }
  419. },
  420. submitEvent: function() {
  421. var e = this.inputmask, t = e.opts;
  422. e.undoValue !== e._valueGet(!0) && e.$el.trigger("change"), -1 === n.getLastValidPosition.call(e) && e._valueGet && e._valueGet() === n.getBufferTemplate.call(e).join("") && e._valueSet(""),
  423. t.clearIncomplete && !1 === s.isComplete.call(e, n.getBuffer.call(e)) && e._valueSet(""),
  424. t.removeMaskOnSubmit && (e._valueSet(e.unmaskedvalue(), !0), setTimeout((function() {
  425. (0, l.writeBuffer)(e.el, n.getBuffer.call(e));
  426. }), 0));
  427. },
  428. resetEvent: function() {
  429. var e = this.inputmask;
  430. e.refreshValue = !0, setTimeout((function() {
  431. (0, l.applyInputValue)(e.el, e._valueGet(!0));
  432. }), 0);
  433. }
  434. };
  435. t.EventHandlers = d;
  436. },
  437. 9716: function(e, t, i) {
  438. Object.defineProperty(t, "__esModule", {
  439. value: !0
  440. }), t.EventRuler = void 0;
  441. var a = s(i(2394)), n = s(i(5581)), r = i(8711), o = i(7760);
  442. function s(e) {
  443. return e && e.__esModule ? e : {
  444. default: e
  445. };
  446. }
  447. var l = {
  448. on: function(e, t, i) {
  449. var s = e.inputmask.dependencyLib, l = function(t) {
  450. t.originalEvent && (t = t.originalEvent || t, arguments[0] = t);
  451. var l, u = this, c = u.inputmask, f = c ? c.opts : void 0;
  452. if (void 0 === c && "FORM" !== this.nodeName) {
  453. var d = s.data(u, "_inputmask_opts");
  454. s(u).off(), d && new a.default(d).mask(u);
  455. } else {
  456. if ([ "submit", "reset", "setvalue" ].includes(t.type) || "FORM" === this.nodeName || !(u.disabled || u.readOnly && !("keydown" === t.type && t.ctrlKey && 67 === t.keyCode || !1 === f.tabThrough && t.keyCode === n.default.TAB))) {
  457. switch (t.type) {
  458. case "input":
  459. if (!0 === c.skipInputEvent || t.inputType && "insertCompositionText" === t.inputType) return c.skipInputEvent = !1,
  460. t.preventDefault();
  461. break;
  462. case "keydown":
  463. c.skipKeyPressEvent = !1, c.skipInputEvent = c.isComposing = t.keyCode === n.default.KEY_229;
  464. break;
  465. case "keyup":
  466. case "compositionend":
  467. c.isComposing && (c.skipInputEvent = !1);
  468. break;
  469. case "keypress":
  470. if (!0 === c.skipKeyPressEvent) return t.preventDefault();
  471. c.skipKeyPressEvent = !0;
  472. break;
  473. case "click":
  474. case "focus":
  475. return c.validationEvent ? (c.validationEvent = !1, e.blur(), (0, o.HandleNativePlaceholder)(e, (c.isRTL ? r.getBufferTemplate.call(c).slice().reverse() : r.getBufferTemplate.call(c)).join("")),
  476. setTimeout((function() {
  477. e.focus();
  478. }), f.validationEventTimeOut), !1) : (l = arguments, setTimeout((function() {
  479. e.inputmask && i.apply(u, l);
  480. }), 0), !1);
  481. }
  482. var p = i.apply(u, arguments);
  483. return !1 === p && (t.preventDefault(), t.stopPropagation()), p;
  484. }
  485. t.preventDefault();
  486. }
  487. };
  488. [ "submit", "reset" ].includes(t) ? (l = l.bind(e), null !== e.form && s(e.form).on(t, l)) : s(e).on(t, l),
  489. e.inputmask.events[t] = e.inputmask.events[t] || [], e.inputmask.events[t].push(l);
  490. },
  491. off: function(e, t) {
  492. if (e.inputmask && e.inputmask.events) {
  493. var i = e.inputmask.dependencyLib, a = e.inputmask.events;
  494. for (var n in t && ((a = [])[t] = e.inputmask.events[t]), a) {
  495. for (var r = a[n]; r.length > 0; ) {
  496. var o = r.pop();
  497. [ "submit", "reset" ].includes(n) ? null !== e.form && i(e.form).off(n, o) : i(e).off(n, o);
  498. }
  499. delete e.inputmask.events[n];
  500. }
  501. }
  502. }
  503. };
  504. t.EventRuler = l;
  505. },
  506. 219: function(e, t, i) {
  507. var a = d(i(2394)), n = d(i(5581)), r = d(i(7184)), o = i(8711), s = i(4713);
  508. function l(e) {
  509. return l = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
  510. return typeof e;
  511. } : function(e) {
  512. return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
  513. }, l(e);
  514. }
  515. function u(e, t) {
  516. return function(e) {
  517. if (Array.isArray(e)) return e;
  518. }(e) || function(e, t) {
  519. var i = null == e ? null : "undefined" != typeof Symbol && e[Symbol.iterator] || e["@@iterator"];
  520. if (null == i) return;
  521. var a, n, r = [], o = !0, s = !1;
  522. try {
  523. for (i = i.call(e); !(o = (a = i.next()).done) && (r.push(a.value), !t || r.length !== t); o = !0) ;
  524. } catch (e) {
  525. s = !0, n = e;
  526. } finally {
  527. try {
  528. o || null == i.return || i.return();
  529. } finally {
  530. if (s) throw n;
  531. }
  532. }
  533. return r;
  534. }(e, t) || function(e, t) {
  535. if (!e) return;
  536. if ("string" == typeof e) return c(e, t);
  537. var i = Object.prototype.toString.call(e).slice(8, -1);
  538. "Object" === i && e.constructor && (i = e.constructor.name);
  539. if ("Map" === i || "Set" === i) return Array.from(e);
  540. if ("Arguments" === i || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)) return c(e, t);
  541. }(e, t) || function() {
  542. throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
  543. }();
  544. }
  545. function c(e, t) {
  546. (null == t || t > e.length) && (t = e.length);
  547. for (var i = 0, a = new Array(t); i < t; i++) a[i] = e[i];
  548. return a;
  549. }
  550. function f(e, t) {
  551. for (var i = 0; i < t.length; i++) {
  552. var a = t[i];
  553. a.enumerable = a.enumerable || !1, a.configurable = !0, "value" in a && (a.writable = !0),
  554. Object.defineProperty(e, a.key, a);
  555. }
  556. }
  557. function d(e) {
  558. return e && e.__esModule ? e : {
  559. default: e
  560. };
  561. }
  562. var p = a.default.dependencyLib, h = function() {
  563. function e(t, i, a) {
  564. !function(e, t) {
  565. if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
  566. }(this, e), this.mask = t, this.format = i, this.opts = a, this._date = new Date(1, 0, 1),
  567. this.initDateObject(t, this.opts);
  568. }
  569. var t, i, a;
  570. return t = e, (i = [ {
  571. key: "date",
  572. get: function() {
  573. return void 0 === this._date && (this._date = new Date(1, 0, 1), this.initDateObject(void 0, this.opts)),
  574. this._date;
  575. }
  576. }, {
  577. key: "initDateObject",
  578. value: function(e, t) {
  579. var i;
  580. for (P(t).lastIndex = 0; i = P(t).exec(this.format); ) {
  581. var a = new RegExp("\\d+$").exec(i[0]), n = a ? i[0][0] + "x" : i[0], r = void 0;
  582. if (void 0 !== e) {
  583. if (a) {
  584. var o = P(t).lastIndex, s = O(i.index, t);
  585. P(t).lastIndex = o, r = e.slice(0, e.indexOf(s.nextMatch[0]));
  586. } else r = e.slice(0, n.length);
  587. e = e.slice(r.length);
  588. }
  589. Object.prototype.hasOwnProperty.call(g, n) && this.setValue(this, r, n, g[n][2], g[n][1]);
  590. }
  591. }
  592. }, {
  593. key: "setValue",
  594. value: function(e, t, i, a, n) {
  595. if (void 0 !== t && (e[a] = "ampm" === a ? t : t.replace(/[^0-9]/g, "0"), e["raw" + a] = t.replace(/\s/g, "_")),
  596. void 0 !== n) {
  597. var r = e[a];
  598. ("day" === a && 29 === parseInt(r) || "month" === a && 2 === parseInt(r)) && (29 !== parseInt(e.day) || 2 !== parseInt(e.month) || "" !== e.year && void 0 !== e.year || e._date.setFullYear(2012, 1, 29)),
  599. "day" === a && (v = !0, 0 === parseInt(r) && (r = 1)), "month" === a && (v = !0),
  600. "year" === a && (v = !0, r.length < 4 && (r = w(r, 4, !0))), "" === r || isNaN(r) || n.call(e._date, r),
  601. "ampm" === a && n.call(e._date, r);
  602. }
  603. }
  604. }, {
  605. key: "reset",
  606. value: function() {
  607. this._date = new Date(1, 0, 1);
  608. }
  609. }, {
  610. key: "reInit",
  611. value: function() {
  612. this._date = void 0, this.date;
  613. }
  614. } ]) && f(t.prototype, i), a && f(t, a), Object.defineProperty(t, "prototype", {
  615. writable: !1
  616. }), e;
  617. }(), m = (new Date).getFullYear(), v = !1, g = {
  618. d: [ "[1-9]|[12][0-9]|3[01]", Date.prototype.setDate, "day", Date.prototype.getDate ],
  619. dd: [ "0[1-9]|[12][0-9]|3[01]", Date.prototype.setDate, "day", function() {
  620. return w(Date.prototype.getDate.call(this), 2);
  621. } ],
  622. ddd: [ "" ],
  623. dddd: [ "" ],
  624. m: [ "[1-9]|1[012]", function(e) {
  625. var t = e ? parseInt(e) : 0;
  626. return t > 0 && t--, Date.prototype.setMonth.call(this, t);
  627. }, "month", function() {
  628. return Date.prototype.getMonth.call(this) + 1;
  629. } ],
  630. mm: [ "0[1-9]|1[012]", function(e) {
  631. var t = e ? parseInt(e) : 0;
  632. return t > 0 && t--, Date.prototype.setMonth.call(this, t);
  633. }, "month", function() {
  634. return w(Date.prototype.getMonth.call(this) + 1, 2);
  635. } ],
  636. mmm: [ "" ],
  637. mmmm: [ "" ],
  638. yy: [ "[0-9]{2}", Date.prototype.setFullYear, "year", function() {
  639. return w(Date.prototype.getFullYear.call(this), 2);
  640. } ],
  641. yyyy: [ "[0-9]{4}", Date.prototype.setFullYear, "year", function() {
  642. return w(Date.prototype.getFullYear.call(this), 4);
  643. } ],
  644. h: [ "[1-9]|1[0-2]", Date.prototype.setHours, "hours", Date.prototype.getHours ],
  645. hh: [ "0[1-9]|1[0-2]", Date.prototype.setHours, "hours", function() {
  646. return w(Date.prototype.getHours.call(this), 2);
  647. } ],
  648. hx: [ function(e) {
  649. return "[0-9]{".concat(e, "}");
  650. }, Date.prototype.setHours, "hours", function(e) {
  651. return Date.prototype.getHours;
  652. } ],
  653. H: [ "1?[0-9]|2[0-3]", Date.prototype.setHours, "hours", Date.prototype.getHours ],
  654. HH: [ "0[0-9]|1[0-9]|2[0-3]", Date.prototype.setHours, "hours", function() {
  655. return w(Date.prototype.getHours.call(this), 2);
  656. } ],
  657. Hx: [ function(e) {
  658. return "[0-9]{".concat(e, "}");
  659. }, Date.prototype.setHours, "hours", function(e) {
  660. return function() {
  661. return w(Date.prototype.getHours.call(this), e);
  662. };
  663. } ],
  664. M: [ "[1-5]?[0-9]", Date.prototype.setMinutes, "minutes", Date.prototype.getMinutes ],
  665. MM: [ "0[0-9]|1[0-9]|2[0-9]|3[0-9]|4[0-9]|5[0-9]", Date.prototype.setMinutes, "minutes", function() {
  666. return w(Date.prototype.getMinutes.call(this), 2);
  667. } ],
  668. s: [ "[1-5]?[0-9]", Date.prototype.setSeconds, "seconds", Date.prototype.getSeconds ],
  669. ss: [ "0[0-9]|1[0-9]|2[0-9]|3[0-9]|4[0-9]|5[0-9]", Date.prototype.setSeconds, "seconds", function() {
  670. return w(Date.prototype.getSeconds.call(this), 2);
  671. } ],
  672. l: [ "[0-9]{3}", Date.prototype.setMilliseconds, "milliseconds", function() {
  673. return w(Date.prototype.getMilliseconds.call(this), 3);
  674. } ],
  675. L: [ "[0-9]{2}", Date.prototype.setMilliseconds, "milliseconds", function() {
  676. return w(Date.prototype.getMilliseconds.call(this), 2);
  677. } ],
  678. t: [ "[ap]", y, "ampm", b, 1 ],
  679. tt: [ "[ap]m", y, "ampm", b, 2 ],
  680. T: [ "[AP]", y, "ampm", b, 1 ],
  681. TT: [ "[AP]M", y, "ampm", b, 2 ],
  682. Z: [ ".*", void 0, "Z", function() {
  683. var e = this.toString().match(/\((.+)\)/)[1];
  684. e.includes(" ") && (e = (e = e.replace("-", " ").toUpperCase()).split(" ").map((function(e) {
  685. return u(e, 1)[0];
  686. })).join(""));
  687. return e;
  688. } ],
  689. o: [ "" ],
  690. S: [ "" ]
  691. }, k = {
  692. isoDate: "yyyy-mm-dd",
  693. isoTime: "HH:MM:ss",
  694. isoDateTime: "yyyy-mm-dd'T'HH:MM:ss",
  695. isoUtcDateTime: "UTC:yyyy-mm-dd'T'HH:MM:ss'Z'"
  696. };
  697. function y(e) {
  698. var t = this.getHours();
  699. e.toLowerCase().includes("p") ? this.setHours(t + 12) : e.toLowerCase().includes("a") && t >= 12 && this.setHours(t - 12);
  700. }
  701. function b() {
  702. var e = this.getHours();
  703. return (e = e || 12) >= 12 ? "PM" : "AM";
  704. }
  705. function x(e) {
  706. var t = new RegExp("\\d+$").exec(e[0]);
  707. if (t && void 0 !== t[0]) {
  708. var i = g[e[0][0] + "x"].slice("");
  709. return i[0] = i[0](t[0]), i[3] = i[3](t[0]), i;
  710. }
  711. if (g[e[0]]) return g[e[0]];
  712. }
  713. function P(e) {
  714. if (!e.tokenizer) {
  715. var t = [], i = [];
  716. for (var a in g) if (/\.*x$/.test(a)) {
  717. var n = a[0] + "\\d+";
  718. -1 === i.indexOf(n) && i.push(n);
  719. } else -1 === t.indexOf(a[0]) && t.push(a[0]);
  720. e.tokenizer = "(" + (i.length > 0 ? i.join("|") + "|" : "") + t.join("+|") + ")+?|.",
  721. e.tokenizer = new RegExp(e.tokenizer, "g");
  722. }
  723. return e.tokenizer;
  724. }
  725. function E(e, t, i) {
  726. if (!v) return !0;
  727. 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;
  728. if ("29" == e.day) {
  729. var a = O(t.pos, i);
  730. if ("yyyy" === a.targetMatch[0] && t.pos - a.targetMatchIndex == 2) return t.remove = t.pos + 1,
  731. t;
  732. } else if ("02" == e.month && "30" == e.day && void 0 !== t.c) return e.day = "03",
  733. e.date.setDate(3), e.date.setMonth(1), t.insert = [ {
  734. pos: t.pos,
  735. c: "0"
  736. }, {
  737. pos: t.pos + 1,
  738. c: t.c
  739. } ], t.caret = o.seekNext.call(this, t.pos + 1), t;
  740. return !1;
  741. }
  742. function S(e, t, i, a) {
  743. var n, o, s = "";
  744. for (P(i).lastIndex = 0; n = P(i).exec(e); ) {
  745. if (void 0 === t) if (o = x(n)) s += "(" + o[0] + ")"; else switch (n[0]) {
  746. case "[":
  747. s += "(";
  748. break;
  749. case "]":
  750. s += ")?";
  751. break;
  752. default:
  753. s += (0, r.default)(n[0]);
  754. } else if (o = x(n)) if (!0 !== a && o[3]) s += o[3].call(t.date); else o[2] ? s += t["raw" + o[2]] : s += n[0]; else s += n[0];
  755. }
  756. return s;
  757. }
  758. function w(e, t, i) {
  759. for (e = String(e), t = t || 2; e.length < t; ) e = i ? e + "0" : "0" + e;
  760. return e;
  761. }
  762. function _(e, t, i) {
  763. return "string" == typeof e ? new h(e, t, i) : e && "object" === l(e) && Object.prototype.hasOwnProperty.call(e, "date") ? e : void 0;
  764. }
  765. function M(e, t) {
  766. return S(t.inputFormat, {
  767. date: e
  768. }, t);
  769. }
  770. function O(e, t) {
  771. var i, a, n = 0, r = 0;
  772. for (P(t).lastIndex = 0; a = P(t).exec(t.inputFormat); ) {
  773. var o = new RegExp("\\d+$").exec(a[0]);
  774. if ((n += r = o ? parseInt(o[0]) : a[0].length) >= e + 1) {
  775. i = a, a = P(t).exec(t.inputFormat);
  776. break;
  777. }
  778. }
  779. return {
  780. targetMatchIndex: n - r,
  781. nextMatch: a,
  782. targetMatch: i
  783. };
  784. }
  785. a.default.extendAliases({
  786. datetime: {
  787. mask: function(e) {
  788. return e.numericInput = !1, g.S = e.i18n.ordinalSuffix.join("|"), e.inputFormat = k[e.inputFormat] || e.inputFormat,
  789. e.displayFormat = k[e.displayFormat] || e.displayFormat || e.inputFormat, e.outputFormat = k[e.outputFormat] || e.outputFormat || e.inputFormat,
  790. e.placeholder = "" !== e.placeholder ? e.placeholder : e.inputFormat.replace(/[[\]]/, ""),
  791. e.regex = S(e.inputFormat, void 0, e), e.min = _(e.min, e.inputFormat, e), e.max = _(e.max, e.inputFormat, e),
  792. null;
  793. },
  794. placeholder: "",
  795. inputFormat: "isoDateTime",
  796. displayFormat: null,
  797. outputFormat: null,
  798. min: null,
  799. max: null,
  800. skipOptionalPartCharacter: "",
  801. i18n: {
  802. dayNames: [ "Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday" ],
  803. 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" ],
  804. ordinalSuffix: [ "st", "nd", "rd", "th" ]
  805. },
  806. preValidation: function(e, t, i, a, n, r, o, s) {
  807. if (s) return !0;
  808. if (isNaN(i) && e[t] !== i) {
  809. var l = O(t, n);
  810. if (l.nextMatch && l.nextMatch[0] === i && l.targetMatch[0].length > 1) {
  811. var u = g[l.targetMatch[0]][0];
  812. if (new RegExp(u).test("0" + e[t - 1])) return e[t] = e[t - 1], e[t - 1] = "0",
  813. {
  814. fuzzy: !0,
  815. buffer: e,
  816. refreshFromBuffer: {
  817. start: t - 1,
  818. end: t + 1
  819. },
  820. pos: t + 1
  821. };
  822. }
  823. }
  824. return !0;
  825. },
  826. postValidation: function(e, t, i, a, n, r, o, l) {
  827. var u, c;
  828. if (o) return !0;
  829. if (!1 === a && (((u = O(t + 1, n)).targetMatch && u.targetMatchIndex === t && u.targetMatch[0].length > 1 && void 0 !== g[u.targetMatch[0]] || (u = O(t + 2, n)).targetMatch && u.targetMatchIndex === t + 1 && u.targetMatch[0].length > 1 && void 0 !== g[u.targetMatch[0]]) && (c = g[u.targetMatch[0]][0]),
  830. void 0 !== c && (void 0 !== r.validPositions[t + 1] && new RegExp(c).test(i + "0") ? (e[t] = i,
  831. e[t + 1] = "0", a = {
  832. pos: t + 2,
  833. caret: t
  834. }) : new RegExp(c).test("0" + i) && (e[t] = "0", e[t + 1] = i, a = {
  835. pos: t + 2
  836. })), !1 === a)) return a;
  837. if (a.fuzzy && (e = a.buffer, t = a.pos), (u = O(t, n)).targetMatch && u.targetMatch[0] && void 0 !== g[u.targetMatch[0]]) {
  838. var f = g[u.targetMatch[0]];
  839. c = f[0];
  840. var d = e.slice(u.targetMatchIndex, u.targetMatchIndex + u.targetMatch[0].length);
  841. if (!1 === new RegExp(c).test(d.join("")) && 2 === u.targetMatch[0].length && r.validPositions[u.targetMatchIndex] && r.validPositions[u.targetMatchIndex + 1] && (r.validPositions[u.targetMatchIndex + 1].input = "0"),
  842. "year" == f[2]) for (var p = s.getMaskTemplate.call(this, !1, 1, void 0, !0), h = t + 1; h < e.length; h++) e[h] = p[h],
  843. delete r.validPositions[h];
  844. }
  845. var v = a, k = _(e.join(""), n.inputFormat, n);
  846. return v && k.date.getTime() == k.date.getTime() && (n.prefillYear && (v = function(e, t, i) {
  847. if (e.year !== e.rawyear) {
  848. var a = m.toString(), n = e.rawyear.replace(/[^0-9]/g, ""), r = a.slice(0, n.length), o = a.slice(n.length);
  849. if (2 === n.length && n === r) {
  850. var s = new Date(m, e.month - 1, e.day);
  851. e.day == s.getDate() && (!i.max || i.max.date.getTime() >= s.getTime()) && (e.date.setFullYear(m),
  852. e.year = a, t.insert = [ {
  853. pos: t.pos + 1,
  854. c: o[0]
  855. }, {
  856. pos: t.pos + 2,
  857. c: o[1]
  858. } ]);
  859. }
  860. }
  861. return t;
  862. }(k, v, n)), v = function(e, t, i, a, n) {
  863. if (!t) return t;
  864. if (t && i.min && i.min.date.getTime() == i.min.date.getTime()) {
  865. var r;
  866. for (e.reset(), P(i).lastIndex = 0; r = P(i).exec(i.inputFormat); ) {
  867. var o;
  868. if ((o = x(r)) && o[3]) {
  869. for (var s = o[1], l = e[o[2]], u = i.min[o[2]], c = i.max ? i.max[o[2]] : u, f = [], d = !1, p = 0; p < u.length; p++) void 0 !== a.validPositions[p + r.index] || d ? (f[p] = l[p],
  870. d = d || l[p] > u[p]) : (f[p] = u[p], "year" === o[2] && l.length - 1 == p && u != c && (f = (parseInt(f.join("")) + 1).toString().split("")),
  871. "ampm" === o[2] && u != c && i.min.date.getTime() > e.date.getTime() && (f[p] = c[p]));
  872. s.call(e._date, f.join(""));
  873. }
  874. }
  875. t = i.min.date.getTime() <= e.date.getTime(), e.reInit();
  876. }
  877. return t && i.max && i.max.date.getTime() == i.max.date.getTime() && (t = i.max.date.getTime() >= e.date.getTime()),
  878. t;
  879. }(k, v = E.call(this, k, v, n), n, r)), void 0 !== t && v && a.pos !== t ? {
  880. buffer: S(n.inputFormat, k, n).split(""),
  881. refreshFromBuffer: {
  882. start: t,
  883. end: a.pos
  884. },
  885. pos: a.caret || a.pos
  886. } : v;
  887. },
  888. onKeyDown: function(e, t, i, a) {
  889. e.ctrlKey && e.keyCode === n.default.RIGHT && (this.inputmask._valueSet(M(new Date, a)),
  890. p(this).trigger("setvalue"));
  891. },
  892. onUnMask: function(e, t, i) {
  893. return t ? S(i.outputFormat, _(e, i.inputFormat, i), i, !0) : t;
  894. },
  895. casing: function(e, t, i, a) {
  896. return 0 == t.nativeDef.indexOf("[ap]") ? e.toLowerCase() : 0 == t.nativeDef.indexOf("[AP]") ? e.toUpperCase() : e;
  897. },
  898. onBeforeMask: function(e, t) {
  899. return "[object Date]" === Object.prototype.toString.call(e) && (e = M(e, t)), e;
  900. },
  901. insertMode: !1,
  902. shiftPositions: !1,
  903. keepStatic: !1,
  904. inputmode: "numeric",
  905. prefillYear: !0
  906. }
  907. });
  908. },
  909. 3851: function(e, t, i) {
  910. var a, n = (a = i(2394)) && a.__esModule ? a : {
  911. default: a
  912. }, r = i(8711), o = i(4713);
  913. n.default.extendDefinitions({
  914. A: {
  915. validator: "[A-Za-z\u0410-\u044f\u0401\u0451\xc0-\xff\xb5]",
  916. casing: "upper"
  917. },
  918. "&": {
  919. validator: "[0-9A-Za-z\u0410-\u044f\u0401\u0451\xc0-\xff\xb5]",
  920. casing: "upper"
  921. },
  922. "#": {
  923. validator: "[0-9A-Fa-f]",
  924. casing: "upper"
  925. }
  926. });
  927. var s = new RegExp("25[0-5]|2[0-4][0-9]|[01][0-9][0-9]");
  928. function l(e, t, i, a, n) {
  929. return i - 1 > -1 && "." !== t.buffer[i - 1] ? (e = t.buffer[i - 1] + e, e = i - 2 > -1 && "." !== t.buffer[i - 2] ? t.buffer[i - 2] + e : "0" + e) : e = "00" + e,
  930. s.test(e);
  931. }
  932. n.default.extendAliases({
  933. cssunit: {
  934. regex: "[+-]?[0-9]+\\.?([0-9]+)?(px|em|rem|ex|%|in|cm|mm|pt|pc)"
  935. },
  936. url: {
  937. regex: "(https?|ftp)://.*",
  938. autoUnmask: !1,
  939. keepStatic: !1,
  940. tabThrough: !0
  941. },
  942. ip: {
  943. mask: "i{1,3}.j{1,3}.k{1,3}.l{1,3}",
  944. definitions: {
  945. i: {
  946. validator: l
  947. },
  948. j: {
  949. validator: l
  950. },
  951. k: {
  952. validator: l
  953. },
  954. l: {
  955. validator: l
  956. }
  957. },
  958. onUnMask: function(e, t, i) {
  959. return e;
  960. },
  961. inputmode: "decimal",
  962. substitutes: {
  963. ",": "."
  964. }
  965. },
  966. email: {
  967. mask: function(e) {
  968. var t = "*{1,64}[.*{1,64}][.*{1,64}][.*{1,63}]@-{1,63}.-{1,63}[.-{1,63}][.-{1,63}]", i = t;
  969. if (e.separator) for (var a = 0; a < e.quantifier; a++) i += "[".concat(e.separator).concat(t, "]");
  970. return i;
  971. },
  972. greedy: !1,
  973. casing: "lower",
  974. separator: null,
  975. quantifier: 5,
  976. skipOptionalPartCharacter: "",
  977. onBeforePaste: function(e, t) {
  978. return (e = e.toLowerCase()).replace("mailto:", "");
  979. },
  980. definitions: {
  981. "*": {
  982. validator: "[0-9\uff11-\uff19A-Za-z\u0410-\u044f\u0401\u0451\xc0-\xff\xb5!#$%&'*+/=?^_`{|}~-]"
  983. },
  984. "-": {
  985. validator: "[0-9A-Za-z-]"
  986. }
  987. },
  988. onUnMask: function(e, t, i) {
  989. return e;
  990. },
  991. inputmode: "email"
  992. },
  993. mac: {
  994. mask: "##:##:##:##:##:##"
  995. },
  996. vin: {
  997. mask: "V{13}9{4}",
  998. definitions: {
  999. V: {
  1000. validator: "[A-HJ-NPR-Za-hj-npr-z\\d]",
  1001. casing: "upper"
  1002. }
  1003. },
  1004. clearIncomplete: !0,
  1005. autoUnmask: !0
  1006. },
  1007. ssn: {
  1008. mask: "999-99-9999",
  1009. postValidation: function(e, t, i, a, n, s, l) {
  1010. var u = o.getMaskTemplate.call(this, !0, r.getLastValidPosition.call(this), !0, !0);
  1011. return /^(?!219-09-9999|078-05-1120)(?!666|000|9.{2}).{3}-(?!00).{2}-(?!0{4}).{4}$/.test(u.join(""));
  1012. }
  1013. }
  1014. });
  1015. },
  1016. 207: function(e, t, i) {
  1017. var a = s(i(2394)), n = s(i(5581)), r = s(i(7184)), o = i(8711);
  1018. function s(e) {
  1019. return e && e.__esModule ? e : {
  1020. default: e
  1021. };
  1022. }
  1023. var l = a.default.dependencyLib;
  1024. function u(e, t) {
  1025. for (var i = "", n = 0; n < e.length; n++) a.default.prototype.definitions[e.charAt(n)] || t.definitions[e.charAt(n)] || t.optionalmarker[0] === e.charAt(n) || t.optionalmarker[1] === e.charAt(n) || t.quantifiermarker[0] === e.charAt(n) || t.quantifiermarker[1] === e.charAt(n) || t.groupmarker[0] === e.charAt(n) || t.groupmarker[1] === e.charAt(n) || t.alternatormarker === e.charAt(n) ? i += "\\" + e.charAt(n) : i += e.charAt(n);
  1026. return i;
  1027. }
  1028. function c(e, t, i, a) {
  1029. if (e.length > 0 && t > 0 && (!i.digitsOptional || a)) {
  1030. var n = e.indexOf(i.radixPoint), r = !1;
  1031. i.negationSymbol.back === e[e.length - 1] && (r = !0, e.length--), -1 === n && (e.push(i.radixPoint),
  1032. n = e.length - 1);
  1033. for (var o = 1; o <= t; o++) isFinite(e[n + o]) || (e[n + o] = "0");
  1034. }
  1035. return r && e.push(i.negationSymbol.back), e;
  1036. }
  1037. function f(e, t) {
  1038. var i = 0;
  1039. if ("+" === e) {
  1040. for (i in t.validPositions) ;
  1041. i = o.seekNext.call(this, parseInt(i));
  1042. }
  1043. for (var a in t.tests) if ((a = parseInt(a)) >= i) for (var n = 0, r = t.tests[a].length; n < r; n++) if ((void 0 === t.validPositions[a] || "-" === e) && t.tests[a][n].match.def === e) return a + (void 0 !== t.validPositions[a] && "-" !== e ? 1 : 0);
  1044. return i;
  1045. }
  1046. function d(e, t) {
  1047. var i = -1;
  1048. for (var a in t.validPositions) {
  1049. var n = t.validPositions[a];
  1050. if (n && n.match.def === e) {
  1051. i = parseInt(a);
  1052. break;
  1053. }
  1054. }
  1055. return i;
  1056. }
  1057. function p(e, t, i, a, n) {
  1058. var r = t.buffer ? t.buffer.indexOf(n.radixPoint) : -1, o = (-1 !== r || a && n.jitMasking) && new RegExp(n.definitions[9].validator).test(e);
  1059. return n._radixDance && -1 !== r && o && null == t.validPositions[r] ? {
  1060. insert: {
  1061. pos: r === i ? r + 1 : r,
  1062. c: n.radixPoint
  1063. },
  1064. pos: i
  1065. } : o;
  1066. }
  1067. a.default.extendAliases({
  1068. numeric: {
  1069. mask: function(e) {
  1070. e.repeat = 0, e.groupSeparator === e.radixPoint && e.digits && "0" !== e.digits && ("." === e.radixPoint ? e.groupSeparator = "," : "," === e.radixPoint ? e.groupSeparator = "." : e.groupSeparator = ""),
  1071. " " === e.groupSeparator && (e.skipOptionalPartCharacter = void 0), e.placeholder.length > 1 && (e.placeholder = e.placeholder.charAt(0)),
  1072. "radixFocus" === e.positionCaretOnClick && "" === e.placeholder && (e.positionCaretOnClick = "lvp");
  1073. var t = "0", i = e.radixPoint;
  1074. !0 === e.numericInput && void 0 === e.__financeInput ? (t = "1", e.positionCaretOnClick = "radixFocus" === e.positionCaretOnClick ? "lvp" : e.positionCaretOnClick,
  1075. e.digitsOptional = !1, isNaN(e.digits) && (e.digits = 2), e._radixDance = !1, i = "," === e.radixPoint ? "?" : "!",
  1076. "" !== e.radixPoint && void 0 === e.definitions[i] && (e.definitions[i] = {}, e.definitions[i].validator = "[" + e.radixPoint + "]",
  1077. e.definitions[i].placeholder = e.radixPoint, e.definitions[i].static = !0, e.definitions[i].generated = !0)) : (e.__financeInput = !1,
  1078. e.numericInput = !0);
  1079. var a, n = "[+]";
  1080. if (n += u(e.prefix, e), "" !== e.groupSeparator ? (void 0 === e.definitions[e.groupSeparator] && (e.definitions[e.groupSeparator] = {},
  1081. e.definitions[e.groupSeparator].validator = "[" + e.groupSeparator + "]", e.definitions[e.groupSeparator].placeholder = e.groupSeparator,
  1082. e.definitions[e.groupSeparator].static = !0, e.definitions[e.groupSeparator].generated = !0),
  1083. n += e._mask(e)) : n += "9{+}", void 0 !== e.digits && 0 !== e.digits) {
  1084. var o = e.digits.toString().split(",");
  1085. isFinite(o[0]) && o[1] && isFinite(o[1]) ? n += i + t + "{" + e.digits + "}" : (isNaN(e.digits) || parseInt(e.digits) > 0) && (e.digitsOptional || e.jitMasking ? (a = n + i + t + "{0," + e.digits + "}",
  1086. e.keepStatic = !0) : n += i + t + "{" + e.digits + "}");
  1087. } else e.inputmode = "numeric";
  1088. return n += u(e.suffix, e), n += "[-]", a && (n = [ a + u(e.suffix, e) + "[-]", n ]),
  1089. e.greedy = !1, function(e) {
  1090. void 0 === e.parseMinMaxOptions && (null !== e.min && (e.min = e.min.toString().replace(new RegExp((0,
  1091. r.default)(e.groupSeparator), "g"), ""), "," === e.radixPoint && (e.min = e.min.replace(e.radixPoint, ".")),
  1092. e.min = isFinite(e.min) ? parseFloat(e.min) : NaN, isNaN(e.min) && (e.min = Number.MIN_VALUE)),
  1093. null !== e.max && (e.max = e.max.toString().replace(new RegExp((0, r.default)(e.groupSeparator), "g"), ""),
  1094. "," === e.radixPoint && (e.max = e.max.replace(e.radixPoint, ".")), e.max = isFinite(e.max) ? parseFloat(e.max) : NaN,
  1095. isNaN(e.max) && (e.max = Number.MAX_VALUE)), e.parseMinMaxOptions = "done");
  1096. }(e), "" !== e.radixPoint && (e.substitutes["." == e.radixPoint ? "," : "."] = e.radixPoint),
  1097. n;
  1098. },
  1099. _mask: function(e) {
  1100. return "(" + e.groupSeparator + "999){+|1}";
  1101. },
  1102. digits: "*",
  1103. digitsOptional: !0,
  1104. enforceDigitsOnBlur: !1,
  1105. radixPoint: ".",
  1106. positionCaretOnClick: "radixFocus",
  1107. _radixDance: !0,
  1108. groupSeparator: "",
  1109. allowMinus: !0,
  1110. negationSymbol: {
  1111. front: "-",
  1112. back: ""
  1113. },
  1114. prefix: "",
  1115. suffix: "",
  1116. min: null,
  1117. max: null,
  1118. SetMaxOnOverflow: !1,
  1119. step: 1,
  1120. inputType: "text",
  1121. unmaskAsNumber: !1,
  1122. roundingFN: Math.round,
  1123. inputmode: "decimal",
  1124. shortcuts: {
  1125. k: "1000",
  1126. m: "1000000"
  1127. },
  1128. placeholder: "0",
  1129. greedy: !1,
  1130. rightAlign: !0,
  1131. insertMode: !0,
  1132. autoUnmask: !1,
  1133. skipOptionalPartCharacter: "",
  1134. usePrototypeDefinitions: !1,
  1135. stripLeadingZeroes: !0,
  1136. definitions: {
  1137. 0: {
  1138. validator: p
  1139. },
  1140. 1: {
  1141. validator: p,
  1142. definitionSymbol: "9"
  1143. },
  1144. 9: {
  1145. validator: "[0-9\uff10-\uff19\u0660-\u0669\u06f0-\u06f9]",
  1146. definitionSymbol: "*"
  1147. },
  1148. "+": {
  1149. validator: function(e, t, i, a, n) {
  1150. return n.allowMinus && ("-" === e || e === n.negationSymbol.front);
  1151. }
  1152. },
  1153. "-": {
  1154. validator: function(e, t, i, a, n) {
  1155. return n.allowMinus && e === n.negationSymbol.back;
  1156. }
  1157. }
  1158. },
  1159. preValidation: function(e, t, i, a, n, r, o, s) {
  1160. if (!1 !== n.__financeInput && i === n.radixPoint) return !1;
  1161. var l = e.indexOf(n.radixPoint), u = t;
  1162. if (t = function(e, t, i, a, n) {
  1163. return n._radixDance && n.numericInput && t !== n.negationSymbol.back && e <= i && (i > 0 || t == n.radixPoint) && (void 0 === a.validPositions[e - 1] || a.validPositions[e - 1].input !== n.negationSymbol.back) && (e -= 1),
  1164. e;
  1165. }(t, i, l, r, n), "-" === i || i === n.negationSymbol.front) {
  1166. if (!0 !== n.allowMinus) return !1;
  1167. var c = !1, p = d("+", r), h = d("-", r);
  1168. return -1 !== p && (c = [ p, h ]), !1 !== c ? {
  1169. remove: c,
  1170. caret: u - n.negationSymbol.back.length
  1171. } : {
  1172. insert: [ {
  1173. pos: f.call(this, "+", r),
  1174. c: n.negationSymbol.front,
  1175. fromIsValid: !0
  1176. }, {
  1177. pos: f.call(this, "-", r),
  1178. c: n.negationSymbol.back,
  1179. fromIsValid: void 0
  1180. } ],
  1181. caret: u + n.negationSymbol.back.length
  1182. };
  1183. }
  1184. if (i === n.groupSeparator) return {
  1185. caret: u
  1186. };
  1187. if (s) return !0;
  1188. if (-1 !== l && !0 === n._radixDance && !1 === a && i === n.radixPoint && void 0 !== n.digits && (isNaN(n.digits) || parseInt(n.digits) > 0) && l !== t) return {
  1189. caret: n._radixDance && t === l - 1 ? l + 1 : l
  1190. };
  1191. if (!1 === n.__financeInput) if (a) {
  1192. if (n.digitsOptional) return {
  1193. rewritePosition: o.end
  1194. };
  1195. if (!n.digitsOptional) {
  1196. if (o.begin > l && o.end <= l) return i === n.radixPoint ? {
  1197. insert: {
  1198. pos: l + 1,
  1199. c: "0",
  1200. fromIsValid: !0
  1201. },
  1202. rewritePosition: l
  1203. } : {
  1204. rewritePosition: l + 1
  1205. };
  1206. if (o.begin < l) return {
  1207. rewritePosition: o.begin - 1
  1208. };
  1209. }
  1210. } else if (!n.showMaskOnHover && !n.showMaskOnFocus && !n.digitsOptional && n.digits > 0 && "" === this.__valueGet.call(this.el)) return {
  1211. rewritePosition: l
  1212. };
  1213. return {
  1214. rewritePosition: t
  1215. };
  1216. },
  1217. postValidation: function(e, t, i, a, n, r, o) {
  1218. if (!1 === a) return a;
  1219. if (o) return !0;
  1220. if (null !== n.min || null !== n.max) {
  1221. var s = n.onUnMask(e.slice().reverse().join(""), void 0, l.extend({}, n, {
  1222. unmaskAsNumber: !0
  1223. }));
  1224. if (null !== n.min && s < n.min && (s.toString().length > n.min.toString().length || s < 0)) return !1;
  1225. if (null !== n.max && s > n.max) return !!n.SetMaxOnOverflow && {
  1226. refreshFromBuffer: !0,
  1227. buffer: c(n.max.toString().replace(".", n.radixPoint).split(""), n.digits, n).reverse()
  1228. };
  1229. }
  1230. return a;
  1231. },
  1232. onUnMask: function(e, t, i) {
  1233. if ("" === t && !0 === i.nullable) return t;
  1234. var a = e.replace(i.prefix, "");
  1235. return a = (a = a.replace(i.suffix, "")).replace(new RegExp((0, r.default)(i.groupSeparator), "g"), ""),
  1236. "" !== i.placeholder.charAt(0) && (a = a.replace(new RegExp(i.placeholder.charAt(0), "g"), "0")),
  1237. i.unmaskAsNumber ? ("" !== i.radixPoint && -1 !== a.indexOf(i.radixPoint) && (a = a.replace(r.default.call(this, i.radixPoint), ".")),
  1238. a = (a = a.replace(new RegExp("^" + (0, r.default)(i.negationSymbol.front)), "-")).replace(new RegExp((0,
  1239. r.default)(i.negationSymbol.back) + "$"), ""), Number(a)) : a;
  1240. },
  1241. isComplete: function(e, t) {
  1242. var i = (t.numericInput ? e.slice().reverse() : e).join("");
  1243. return i = (i = (i = (i = (i = i.replace(new RegExp("^" + (0, r.default)(t.negationSymbol.front)), "-")).replace(new RegExp((0,
  1244. r.default)(t.negationSymbol.back) + "$"), "")).replace(t.prefix, "")).replace(t.suffix, "")).replace(new RegExp((0,
  1245. r.default)(t.groupSeparator) + "([0-9]{3})", "g"), "$1"), "," === t.radixPoint && (i = i.replace((0,
  1246. r.default)(t.radixPoint), ".")), isFinite(i);
  1247. },
  1248. onBeforeMask: function(e, t) {
  1249. var i = t.radixPoint || ",";
  1250. isFinite(t.digits) && (t.digits = parseInt(t.digits)), "number" != typeof e && "number" !== t.inputType || "" === i || (e = e.toString().replace(".", i));
  1251. var a = "-" === e.charAt(0) || e.charAt(0) === t.negationSymbol.front, n = e.split(i), o = n[0].replace(/[^\-0-9]/g, ""), s = n.length > 1 ? n[1].replace(/[^0-9]/g, "") : "", l = n.length > 1;
  1252. e = o + ("" !== s ? i + s : s);
  1253. var u = 0;
  1254. if ("" !== i && (u = t.digitsOptional ? t.digits < s.length ? t.digits : s.length : t.digits,
  1255. "" !== s || !t.digitsOptional)) {
  1256. var f = Math.pow(10, u || 1);
  1257. e = e.replace((0, r.default)(i), "."), isNaN(parseFloat(e)) || (e = (t.roundingFN(parseFloat(e) * f) / f).toFixed(u)),
  1258. e = e.toString().replace(".", i);
  1259. }
  1260. if (0 === t.digits && -1 !== e.indexOf(i) && (e = e.substring(0, e.indexOf(i))),
  1261. null !== t.min || null !== t.max) {
  1262. var d = e.toString().replace(i, ".");
  1263. null !== t.min && d < t.min ? e = t.min.toString().replace(".", i) : null !== t.max && d > t.max && (e = t.max.toString().replace(".", i));
  1264. }
  1265. return a && "-" !== e.charAt(0) && (e = "-" + e), c(e.toString().split(""), u, t, l).join("");
  1266. },
  1267. onBeforeWrite: function(e, t, i, a) {
  1268. function n(e, t) {
  1269. if (!1 !== a.__financeInput || t) {
  1270. var i = e.indexOf(a.radixPoint);
  1271. -1 !== i && e.splice(i, 1);
  1272. }
  1273. if ("" !== a.groupSeparator) for (;-1 !== (i = e.indexOf(a.groupSeparator)); ) e.splice(i, 1);
  1274. return e;
  1275. }
  1276. var o, s;
  1277. if (a.stripLeadingZeroes && (s = function(e, t) {
  1278. var i = new RegExp("(^" + ("" !== t.negationSymbol.front ? (0, r.default)(t.negationSymbol.front) + "?" : "") + (0,
  1279. r.default)(t.prefix) + ")(.*)(" + (0, r.default)(t.suffix) + ("" != t.negationSymbol.back ? (0,
  1280. r.default)(t.negationSymbol.back) + "?" : "") + "$)").exec(e.slice().reverse().join("")), a = i ? i[2] : "", n = !1;
  1281. return a && (a = a.split(t.radixPoint.charAt(0))[0], n = new RegExp("^[0" + t.groupSeparator + "]*").exec(a)),
  1282. !(!n || !(n[0].length > 1 || n[0].length > 0 && n[0].length < a.length)) && n;
  1283. }(t, a))) for (var u = t.join("").lastIndexOf(s[0].split("").reverse().join("")) - (s[0] == s.input ? 0 : 1), f = s[0] == s.input ? 1 : 0, d = s[0].length - f; d > 0; d--) delete this.maskset.validPositions[u + d],
  1284. delete t[u + d];
  1285. if (e) switch (e.type) {
  1286. case "blur":
  1287. case "checkval":
  1288. if (null !== a.min) {
  1289. var p = a.onUnMask(t.slice().reverse().join(""), void 0, l.extend({}, a, {
  1290. unmaskAsNumber: !0
  1291. }));
  1292. if (null !== a.min && p < a.min) return {
  1293. refreshFromBuffer: !0,
  1294. buffer: c(a.min.toString().replace(".", a.radixPoint).split(""), a.digits, a).reverse()
  1295. };
  1296. }
  1297. if (t[t.length - 1] === a.negationSymbol.front) {
  1298. var h = new RegExp("(^" + ("" != a.negationSymbol.front ? (0, r.default)(a.negationSymbol.front) + "?" : "") + (0,
  1299. r.default)(a.prefix) + ")(.*)(" + (0, r.default)(a.suffix) + ("" != a.negationSymbol.back ? (0,
  1300. r.default)(a.negationSymbol.back) + "?" : "") + "$)").exec(n(t.slice(), !0).reverse().join(""));
  1301. 0 == (h ? h[2] : "") && (o = {
  1302. refreshFromBuffer: !0,
  1303. buffer: [ 0 ]
  1304. });
  1305. } else if ("" !== a.radixPoint) {
  1306. 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),
  1307. o = {
  1308. refreshFromBuffer: !0,
  1309. buffer: n(t)
  1310. }));
  1311. }
  1312. if (a.enforceDigitsOnBlur) {
  1313. var m = (o = o || {}) && o.buffer || t.slice().reverse();
  1314. o.refreshFromBuffer = !0, o.buffer = c(m, a.digits, a, !0).reverse();
  1315. }
  1316. }
  1317. return o;
  1318. },
  1319. onKeyDown: function(e, t, i, a) {
  1320. var r, o, s = l(this), u = String.fromCharCode(e.keyCode).toLowerCase();
  1321. if ((o = a.shortcuts && a.shortcuts[u]) && o.length > 1) return this.inputmask.__valueSet.call(this, parseFloat(this.inputmask.unmaskedvalue()) * parseInt(o)),
  1322. s.trigger("setvalue"), !1;
  1323. if (e.ctrlKey) switch (e.keyCode) {
  1324. case n.default.UP:
  1325. return this.inputmask.__valueSet.call(this, parseFloat(this.inputmask.unmaskedvalue()) + parseInt(a.step)),
  1326. s.trigger("setvalue"), !1;
  1327. case n.default.DOWN:
  1328. return this.inputmask.__valueSet.call(this, parseFloat(this.inputmask.unmaskedvalue()) - parseInt(a.step)),
  1329. s.trigger("setvalue"), !1;
  1330. }
  1331. if (!e.shiftKey && (e.keyCode === n.default.DELETE || e.keyCode === n.default.BACKSPACE || e.keyCode === n.default.BACKSPACE_SAFARI) && i.begin !== t.length) {
  1332. if (t[e.keyCode === n.default.DELETE ? i.begin - 1 : i.end] === a.negationSymbol.front) return r = t.slice().reverse(),
  1333. "" !== a.negationSymbol.front && r.shift(), "" !== a.negationSymbol.back && r.pop(),
  1334. s.trigger("setvalue", [ r.join(""), i.begin ]), !1;
  1335. if (!0 === a._radixDance) {
  1336. var f = t.indexOf(a.radixPoint);
  1337. if (a.digitsOptional) {
  1338. if (0 === f) return (r = t.slice().reverse()).pop(), s.trigger("setvalue", [ r.join(""), i.begin >= r.length ? r.length : i.begin ]),
  1339. !1;
  1340. } else if (-1 !== f && (i.begin < f || i.end < f || e.keyCode === n.default.DELETE && i.begin === f)) return i.begin !== i.end || e.keyCode !== n.default.BACKSPACE && e.keyCode !== n.default.BACKSPACE_SAFARI || i.begin++,
  1341. (r = t.slice().reverse()).splice(r.length - i.begin, i.begin - i.end + 1), r = c(r, a.digits, a).join(""),
  1342. s.trigger("setvalue", [ r, i.begin >= r.length ? f + 1 : i.begin ]), !1;
  1343. }
  1344. }
  1345. }
  1346. },
  1347. currency: {
  1348. prefix: "",
  1349. groupSeparator: ",",
  1350. alias: "numeric",
  1351. digits: 2,
  1352. digitsOptional: !1
  1353. },
  1354. decimal: {
  1355. alias: "numeric"
  1356. },
  1357. integer: {
  1358. alias: "numeric",
  1359. inputmode: "numeric",
  1360. digits: 0
  1361. },
  1362. percentage: {
  1363. alias: "numeric",
  1364. min: 0,
  1365. max: 100,
  1366. suffix: " %",
  1367. digits: 0,
  1368. allowMinus: !1
  1369. },
  1370. indianns: {
  1371. alias: "numeric",
  1372. _mask: function(e) {
  1373. return "(" + e.groupSeparator + "99){*|1}(" + e.groupSeparator + "999){1|1}";
  1374. },
  1375. groupSeparator: ",",
  1376. radixPoint: ".",
  1377. placeholder: "0",
  1378. digits: 2,
  1379. digitsOptional: !1
  1380. }
  1381. });
  1382. },
  1383. 9380: function(e, t, i) {
  1384. var a;
  1385. Object.defineProperty(t, "__esModule", {
  1386. value: !0
  1387. }), t.default = void 0;
  1388. var n = ((a = i(8741)) && a.__esModule ? a : {
  1389. default: a
  1390. }).default ? window : {};
  1391. t.default = n;
  1392. },
  1393. 7760: function(e, t, i) {
  1394. Object.defineProperty(t, "__esModule", {
  1395. value: !0
  1396. }), t.HandleNativePlaceholder = function(e, t) {
  1397. var i = e ? e.inputmask : this;
  1398. if (l.ie) {
  1399. if (e.inputmask._valueGet() !== t && (e.placeholder !== t || "" === e.placeholder)) {
  1400. var a = o.getBuffer.call(i).slice(), n = e.inputmask._valueGet();
  1401. if (n !== t) {
  1402. var r = o.getLastValidPosition.call(i);
  1403. -1 === r && n === o.getBufferTemplate.call(i).join("") ? a = [] : -1 !== r && f.call(i, a),
  1404. p(e, a);
  1405. }
  1406. }
  1407. } else e.placeholder !== t && (e.placeholder = t, "" === e.placeholder && e.removeAttribute("placeholder"));
  1408. }, t.applyInputValue = c, t.checkVal = d, t.clearOptionalTail = f, t.unmaskedvalue = function(e) {
  1409. var t = e ? e.inputmask : this, i = t.opts, a = t.maskset;
  1410. if (e) {
  1411. if (void 0 === e.inputmask) return e.value;
  1412. e.inputmask && e.inputmask.refreshValue && c(e, e.inputmask._valueGet(!0));
  1413. }
  1414. var n = [], r = a.validPositions;
  1415. for (var s in r) r[s] && r[s].match && (1 != r[s].match.static || Array.isArray(a.metadata) && !0 !== r[s].generatedInput) && n.push(r[s].input);
  1416. var l = 0 === n.length ? "" : (t.isRTL ? n.reverse() : n).join("");
  1417. if ("function" == typeof i.onUnMask) {
  1418. var u = (t.isRTL ? o.getBuffer.call(t).slice().reverse() : o.getBuffer.call(t)).join("");
  1419. l = i.onUnMask.call(t, u, l, i);
  1420. }
  1421. return l;
  1422. }, t.writeBuffer = p;
  1423. var a, n = (a = i(5581)) && a.__esModule ? a : {
  1424. default: a
  1425. }, r = i(4713), o = i(8711), s = i(7215), l = i(9845), u = i(6030);
  1426. function c(e, t) {
  1427. var i = e ? e.inputmask : this, a = i.opts;
  1428. e.inputmask.refreshValue = !1, "function" == typeof a.onBeforeMask && (t = a.onBeforeMask.call(i, t, a) || t),
  1429. d(e, !0, !1, t = t.toString().split("")), i.undoValue = i._valueGet(!0), (a.clearMaskOnLostFocus || a.clearIncomplete) && e.inputmask._valueGet() === o.getBufferTemplate.call(i).join("") && -1 === o.getLastValidPosition.call(i) && e.inputmask._valueSet("");
  1430. }
  1431. function f(e) {
  1432. e.length = 0;
  1433. for (var t, i = r.getMaskTemplate.call(this, !0, 0, !0, void 0, !0); void 0 !== (t = i.shift()); ) e.push(t);
  1434. return e;
  1435. }
  1436. function d(e, t, i, a, n) {
  1437. var l = e ? e.inputmask : this, c = l.maskset, f = l.opts, d = l.dependencyLib, h = a.slice(), m = "", v = -1, g = void 0, k = f.skipOptionalPartCharacter;
  1438. f.skipOptionalPartCharacter = "", o.resetMaskSet.call(l), c.tests = {}, v = f.radixPoint ? o.determineNewCaretPosition.call(l, {
  1439. begin: 0,
  1440. end: 0
  1441. }, !1, !1 === f.__financeInput ? "radixFocus" : void 0).begin : 0, c.p = v, l.caretPos = {
  1442. begin: v
  1443. };
  1444. var y = [], b = l.caretPos;
  1445. if (h.forEach((function(e, t) {
  1446. if (void 0 !== e) {
  1447. var a = new d.Event("_checkval");
  1448. a.keyCode = e.toString().charCodeAt(0), m += e;
  1449. var n = o.getLastValidPosition.call(l, void 0, !0);
  1450. !function(e, t) {
  1451. for (var i = r.getMaskTemplate.call(l, !0, 0).slice(e, o.seekNext.call(l, e, !1, !1)).join("").replace(/'/g, ""), a = i.indexOf(t); a > 0 && " " === i[a - 1]; ) a--;
  1452. var n = 0 === a && !o.isMask.call(l, e) && (r.getTest.call(l, e).match.nativeDef === t.charAt(0) || !0 === r.getTest.call(l, e).match.static && r.getTest.call(l, e).match.nativeDef === "'" + t.charAt(0) || " " === r.getTest.call(l, e).match.nativeDef && (r.getTest.call(l, e + 1).match.nativeDef === t.charAt(0) || !0 === r.getTest.call(l, e + 1).match.static && r.getTest.call(l, e + 1).match.nativeDef === "'" + t.charAt(0)));
  1453. if (!n && a > 0 && !o.isMask.call(l, e, !1, !0)) {
  1454. var s = o.seekNext.call(l, e);
  1455. l.caretPos.begin < s && (l.caretPos = {
  1456. begin: s
  1457. });
  1458. }
  1459. return n;
  1460. }(v, m) ? (g = u.EventHandlers.keypressEvent.call(l, a, !0, !1, i, l.caretPos.begin)) && (v = l.caretPos.begin + 1,
  1461. m = "") : g = u.EventHandlers.keypressEvent.call(l, a, !0, !1, i, n + 1), g ? (void 0 !== g.pos && c.validPositions[g.pos] && !0 === c.validPositions[g.pos].match.static && void 0 === c.validPositions[g.pos].alternation && (y.push(g.pos),
  1462. l.isRTL || (g.forwardPosition = g.pos + 1)), p.call(l, void 0, o.getBuffer.call(l), g.forwardPosition, a, !1),
  1463. l.caretPos = {
  1464. begin: g.forwardPosition,
  1465. end: g.forwardPosition
  1466. }, b = l.caretPos) : void 0 === c.validPositions[t] && h[t] === r.getPlaceholder.call(l, t) && o.isMask.call(l, t, !0) ? l.caretPos.begin++ : l.caretPos = b;
  1467. }
  1468. })), y.length > 0) {
  1469. var x, P, E = o.seekNext.call(l, -1, void 0, !1);
  1470. if (!s.isComplete.call(l, o.getBuffer.call(l)) && y.length <= E || s.isComplete.call(l, o.getBuffer.call(l)) && y.length > 0 && y.length !== E && 0 === y[0]) for (var S = E; void 0 !== (x = y.shift()); ) {
  1471. var w = new d.Event("_checkval");
  1472. if ((P = c.validPositions[x]).generatedInput = !0, w.keyCode = P.input.charCodeAt(0),
  1473. (g = u.EventHandlers.keypressEvent.call(l, w, !0, !1, i, S)) && void 0 !== g.pos && g.pos !== x && c.validPositions[g.pos] && !0 === c.validPositions[g.pos].match.static) y.push(g.pos); else if (!g) break;
  1474. S++;
  1475. }
  1476. }
  1477. t && p.call(l, e, o.getBuffer.call(l), g ? g.forwardPosition : l.caretPos.begin, n || new d.Event("checkval"), n && ("input" === n.type && l.undoValue !== o.getBuffer.call(l).join("") || "paste" === n.type)),
  1478. f.skipOptionalPartCharacter = k;
  1479. }
  1480. function p(e, t, i, a, r) {
  1481. var l = e ? e.inputmask : this, u = l.opts, c = l.dependencyLib;
  1482. if (a && "function" == typeof u.onBeforeWrite) {
  1483. var f = u.onBeforeWrite.call(l, a, t, i, u);
  1484. if (f) {
  1485. if (f.refreshFromBuffer) {
  1486. var d = f.refreshFromBuffer;
  1487. s.refreshFromBuffer.call(l, !0 === d ? d : d.start, d.end, f.buffer || t), t = o.getBuffer.call(l, !0);
  1488. }
  1489. void 0 !== i && (i = void 0 !== f.caret ? f.caret : i);
  1490. }
  1491. }
  1492. if (void 0 !== e && (e.inputmask._valueSet(t.join("")), void 0 === i || void 0 !== a && "blur" === a.type || o.caret.call(l, e, i, void 0, void 0, void 0 !== a && "keydown" === a.type && (a.keyCode === n.default.DELETE || a.keyCode === n.default.BACKSPACE)),
  1493. !0 === r)) {
  1494. var p = c(e), h = e.inputmask._valueGet();
  1495. e.inputmask.skipInputEvent = !0, p.trigger("input"), setTimeout((function() {
  1496. h === o.getBufferTemplate.call(l).join("") ? p.trigger("cleared") : !0 === s.isComplete.call(l, t) && p.trigger("complete");
  1497. }), 0);
  1498. }
  1499. }
  1500. },
  1501. 2394: function(e, t, i) {
  1502. Object.defineProperty(t, "__esModule", {
  1503. value: !0
  1504. }), t.default = void 0, i(7149), i(3194);
  1505. var a = i(157), n = v(i(3287)), r = v(i(9380)), o = i(2391), s = i(4713), l = i(8711), u = i(7215), c = i(7760), f = i(9716), d = v(i(7392)), p = v(i(3976)), h = v(i(8741));
  1506. function m(e) {
  1507. return m = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
  1508. return typeof e;
  1509. } : function(e) {
  1510. return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
  1511. }, m(e);
  1512. }
  1513. function v(e) {
  1514. return e && e.__esModule ? e : {
  1515. default: e
  1516. };
  1517. }
  1518. var g = r.default.document, k = "_inputmask_opts";
  1519. function y(e, t, i) {
  1520. if (h.default) {
  1521. if (!(this instanceof y)) return new y(e, t, i);
  1522. this.dependencyLib = n.default, this.el = void 0, this.events = {}, this.maskset = void 0,
  1523. !0 !== i && ("[object Object]" === Object.prototype.toString.call(e) ? t = e : (t = t || {},
  1524. e && (t.alias = e)), this.opts = n.default.extend(!0, {}, this.defaults, t), this.noMasksCache = t && void 0 !== t.definitions,
  1525. this.userOptions = t || {}, b(this.opts.alias, t, this.opts)), this.refreshValue = !1,
  1526. this.undoValue = void 0, this.$el = void 0, this.skipKeyPressEvent = !1, this.skipInputEvent = !1,
  1527. this.validationEvent = !1, this.ignorable = !1, this.maxLength, this.mouseEnter = !1,
  1528. this.originalPlaceholder = void 0, this.isComposing = !1;
  1529. }
  1530. }
  1531. function b(e, t, i) {
  1532. var a = y.prototype.aliases[e];
  1533. return a ? (a.alias && b(a.alias, void 0, i), n.default.extend(!0, i, a), n.default.extend(!0, i, t),
  1534. !0) : (null === i.mask && (i.mask = e), !1);
  1535. }
  1536. y.prototype = {
  1537. dataAttribute: "data-inputmask",
  1538. defaults: p.default,
  1539. definitions: d.default,
  1540. aliases: {},
  1541. masksCache: {},
  1542. get isRTL() {
  1543. return this.opts.isRTL || this.opts.numericInput;
  1544. },
  1545. mask: function(e) {
  1546. var t = this;
  1547. return "string" == typeof e && (e = g.getElementById(e) || g.querySelectorAll(e)),
  1548. (e = e.nodeName ? [ e ] : Array.isArray(e) ? e : Array.from(e)).forEach((function(e, i) {
  1549. var s = n.default.extend(!0, {}, t.opts);
  1550. if (function(e, t, i, a) {
  1551. function o(t, n) {
  1552. var o = "" === a ? t : a + "-" + t;
  1553. null !== (n = void 0 !== n ? n : e.getAttribute(o)) && ("string" == typeof n && (0 === t.indexOf("on") ? n = r.default[n] : "false" === n ? n = !1 : "true" === n && (n = !0)),
  1554. i[t] = n);
  1555. }
  1556. if (!0 === t.importDataAttributes) {
  1557. var s, l, u, c, f = e.getAttribute(a);
  1558. if (f && "" !== f && (f = f.replace(/'/g, '"'), l = JSON.parse("{" + f + "}")),
  1559. l) for (c in u = void 0, l) if ("alias" === c.toLowerCase()) {
  1560. u = l[c];
  1561. break;
  1562. }
  1563. for (s in o("alias", u), i.alias && b(i.alias, i, t), t) {
  1564. if (l) for (c in u = void 0, l) if (c.toLowerCase() === s.toLowerCase()) {
  1565. u = l[c];
  1566. break;
  1567. }
  1568. o(s, u);
  1569. }
  1570. }
  1571. n.default.extend(!0, t, i), ("rtl" === e.dir || t.rightAlign) && (e.style.textAlign = "right");
  1572. ("rtl" === e.dir || t.numericInput) && (e.dir = "ltr", e.removeAttribute("dir"),
  1573. t.isRTL = !0);
  1574. return Object.keys(i).length;
  1575. }(e, s, n.default.extend(!0, {}, t.userOptions), t.dataAttribute)) {
  1576. var l = (0, o.generateMaskSet)(s, t.noMasksCache);
  1577. void 0 !== l && (void 0 !== e.inputmask && (e.inputmask.opts.autoUnmask = !0, e.inputmask.remove()),
  1578. e.inputmask = new y(void 0, void 0, !0), e.inputmask.opts = s, e.inputmask.noMasksCache = t.noMasksCache,
  1579. e.inputmask.userOptions = n.default.extend(!0, {}, t.userOptions), e.inputmask.el = e,
  1580. e.inputmask.$el = (0, n.default)(e), e.inputmask.maskset = l, n.default.data(e, k, t.userOptions),
  1581. a.mask.call(e.inputmask));
  1582. }
  1583. })), e && e[0] && e[0].inputmask || this;
  1584. },
  1585. option: function(e, t) {
  1586. return "string" == typeof e ? this.opts[e] : "object" === m(e) ? (n.default.extend(this.userOptions, e),
  1587. this.el && !0 !== t && this.mask(this.el), this) : void 0;
  1588. },
  1589. unmaskedvalue: function(e) {
  1590. if (this.maskset = this.maskset || (0, o.generateMaskSet)(this.opts, this.noMasksCache),
  1591. void 0 === this.el || void 0 !== e) {
  1592. var t = ("function" == typeof this.opts.onBeforeMask && this.opts.onBeforeMask.call(this, e, this.opts) || e).split("");
  1593. c.checkVal.call(this, void 0, !1, !1, t), "function" == typeof this.opts.onBeforeWrite && this.opts.onBeforeWrite.call(this, void 0, l.getBuffer.call(this), 0, this.opts);
  1594. }
  1595. return c.unmaskedvalue.call(this, this.el);
  1596. },
  1597. remove: function() {
  1598. if (this.el) {
  1599. n.default.data(this.el, k, null);
  1600. var e = this.opts.autoUnmask ? (0, c.unmaskedvalue)(this.el) : this._valueGet(this.opts.autoUnmask);
  1601. e !== l.getBufferTemplate.call(this).join("") ? this._valueSet(e, this.opts.autoUnmask) : this._valueSet(""),
  1602. f.EventRuler.off(this.el), Object.getOwnPropertyDescriptor && Object.getPrototypeOf ? Object.getOwnPropertyDescriptor(Object.getPrototypeOf(this.el), "value") && this.__valueGet && Object.defineProperty(this.el, "value", {
  1603. get: this.__valueGet,
  1604. set: this.__valueSet,
  1605. configurable: !0
  1606. }) : g.__lookupGetter__ && this.el.__lookupGetter__("value") && this.__valueGet && (this.el.__defineGetter__("value", this.__valueGet),
  1607. this.el.__defineSetter__("value", this.__valueSet)), this.el.inputmask = void 0;
  1608. }
  1609. return this.el;
  1610. },
  1611. getemptymask: function() {
  1612. return this.maskset = this.maskset || (0, o.generateMaskSet)(this.opts, this.noMasksCache),
  1613. l.getBufferTemplate.call(this).join("");
  1614. },
  1615. hasMaskedValue: function() {
  1616. return !this.opts.autoUnmask;
  1617. },
  1618. isComplete: function() {
  1619. return this.maskset = this.maskset || (0, o.generateMaskSet)(this.opts, this.noMasksCache),
  1620. u.isComplete.call(this, l.getBuffer.call(this));
  1621. },
  1622. getmetadata: function() {
  1623. if (this.maskset = this.maskset || (0, o.generateMaskSet)(this.opts, this.noMasksCache),
  1624. Array.isArray(this.maskset.metadata)) {
  1625. var e = s.getMaskTemplate.call(this, !0, 0, !1).join("");
  1626. return this.maskset.metadata.forEach((function(t) {
  1627. return t.mask !== e || (e = t, !1);
  1628. })), e;
  1629. }
  1630. return this.maskset.metadata;
  1631. },
  1632. isValid: function(e) {
  1633. if (this.maskset = this.maskset || (0, o.generateMaskSet)(this.opts, this.noMasksCache),
  1634. e) {
  1635. var t = ("function" == typeof this.opts.onBeforeMask && this.opts.onBeforeMask.call(this, e, this.opts) || e).split("");
  1636. c.checkVal.call(this, void 0, !0, !1, t);
  1637. } else e = this.isRTL ? l.getBuffer.call(this).slice().reverse().join("") : l.getBuffer.call(this).join("");
  1638. for (var i = l.getBuffer.call(this), a = l.determineLastRequiredPosition.call(this), n = i.length - 1; n > a && !l.isMask.call(this, n); n--) ;
  1639. return i.splice(a, n + 1 - a), u.isComplete.call(this, i) && e === (this.isRTL ? l.getBuffer.call(this).slice().reverse().join("") : l.getBuffer.call(this).join(""));
  1640. },
  1641. format: function(e, t) {
  1642. this.maskset = this.maskset || (0, o.generateMaskSet)(this.opts, this.noMasksCache);
  1643. var i = ("function" == typeof this.opts.onBeforeMask && this.opts.onBeforeMask.call(this, e, this.opts) || e).split("");
  1644. c.checkVal.call(this, void 0, !0, !1, i);
  1645. var a = this.isRTL ? l.getBuffer.call(this).slice().reverse().join("") : l.getBuffer.call(this).join("");
  1646. return t ? {
  1647. value: a,
  1648. metadata: this.getmetadata()
  1649. } : a;
  1650. },
  1651. setValue: function(e) {
  1652. this.el && (0, n.default)(this.el).trigger("setvalue", [ e ]);
  1653. },
  1654. analyseMask: o.analyseMask
  1655. }, y.extendDefaults = function(e) {
  1656. n.default.extend(!0, y.prototype.defaults, e);
  1657. }, y.extendDefinitions = function(e) {
  1658. n.default.extend(!0, y.prototype.definitions, e);
  1659. }, y.extendAliases = function(e) {
  1660. n.default.extend(!0, y.prototype.aliases, e);
  1661. }, y.format = function(e, t, i) {
  1662. return y(t).format(e, i);
  1663. }, y.unmask = function(e, t) {
  1664. return y(t).unmaskedvalue(e);
  1665. }, y.isValid = function(e, t) {
  1666. return y(t).isValid(e);
  1667. }, y.remove = function(e) {
  1668. "string" == typeof e && (e = g.getElementById(e) || g.querySelectorAll(e)), (e = e.nodeName ? [ e ] : e).forEach((function(e) {
  1669. e.inputmask && e.inputmask.remove();
  1670. }));
  1671. }, y.setValue = function(e, t) {
  1672. "string" == typeof e && (e = g.getElementById(e) || g.querySelectorAll(e)), (e = e.nodeName ? [ e ] : e).forEach((function(e) {
  1673. e.inputmask ? e.inputmask.setValue(t) : (0, n.default)(e).trigger("setvalue", [ t ]);
  1674. }));
  1675. }, y.dependencyLib = n.default, r.default.Inputmask = y;
  1676. var x = y;
  1677. t.default = x;
  1678. },
  1679. 5296: function(e, t, i) {
  1680. function a(e) {
  1681. return a = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
  1682. return typeof e;
  1683. } : function(e) {
  1684. return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
  1685. }, a(e);
  1686. }
  1687. var n = h(i(9380)), r = h(i(2394)), o = h(i(8741));
  1688. function s(e, t) {
  1689. for (var i = 0; i < t.length; i++) {
  1690. var a = t[i];
  1691. a.enumerable = a.enumerable || !1, a.configurable = !0, "value" in a && (a.writable = !0),
  1692. Object.defineProperty(e, a.key, a);
  1693. }
  1694. }
  1695. function l(e, t) {
  1696. if (t && ("object" === a(t) || "function" == typeof t)) return t;
  1697. if (void 0 !== t) throw new TypeError("Derived constructors may only return object or undefined");
  1698. return function(e) {
  1699. if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  1700. return e;
  1701. }(e);
  1702. }
  1703. function u(e) {
  1704. var t = "function" == typeof Map ? new Map : void 0;
  1705. return u = function(e) {
  1706. if (null === e || (i = e, -1 === Function.toString.call(i).indexOf("[native code]"))) return e;
  1707. var i;
  1708. if ("function" != typeof e) throw new TypeError("Super expression must either be null or a function");
  1709. if (void 0 !== t) {
  1710. if (t.has(e)) return t.get(e);
  1711. t.set(e, a);
  1712. }
  1713. function a() {
  1714. return c(e, arguments, p(this).constructor);
  1715. }
  1716. return a.prototype = Object.create(e.prototype, {
  1717. constructor: {
  1718. value: a,
  1719. enumerable: !1,
  1720. writable: !0,
  1721. configurable: !0
  1722. }
  1723. }), d(a, e);
  1724. }, u(e);
  1725. }
  1726. function c(e, t, i) {
  1727. return c = f() ? Reflect.construct : function(e, t, i) {
  1728. var a = [ null ];
  1729. a.push.apply(a, t);
  1730. var n = new (Function.bind.apply(e, a));
  1731. return i && d(n, i.prototype), n;
  1732. }, c.apply(null, arguments);
  1733. }
  1734. function f() {
  1735. if ("undefined" == typeof Reflect || !Reflect.construct) return !1;
  1736. if (Reflect.construct.sham) return !1;
  1737. if ("function" == typeof Proxy) return !0;
  1738. try {
  1739. return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], (function() {}))),
  1740. !0;
  1741. } catch (e) {
  1742. return !1;
  1743. }
  1744. }
  1745. function d(e, t) {
  1746. return d = Object.setPrototypeOf || function(e, t) {
  1747. return e.__proto__ = t, e;
  1748. }, d(e, t);
  1749. }
  1750. function p(e) {
  1751. return p = Object.setPrototypeOf ? Object.getPrototypeOf : function(e) {
  1752. return e.__proto__ || Object.getPrototypeOf(e);
  1753. }, p(e);
  1754. }
  1755. function h(e) {
  1756. return e && e.__esModule ? e : {
  1757. default: e
  1758. };
  1759. }
  1760. var m = n.default.document;
  1761. if (o.default && m && m.head && m.head.attachShadow && n.default.customElements && void 0 === n.default.customElements.get("input-mask")) {
  1762. var v = function(e) {
  1763. !function(e, t) {
  1764. if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function");
  1765. Object.defineProperty(e, "prototype", {
  1766. value: Object.create(t && t.prototype, {
  1767. constructor: {
  1768. value: e,
  1769. writable: !0,
  1770. configurable: !0
  1771. }
  1772. }),
  1773. writable: !1
  1774. }), t && d(e, t);
  1775. }(c, e);
  1776. var t, i, a, n, o, u = (t = c, i = f(), function() {
  1777. var e, a = p(t);
  1778. if (i) {
  1779. var n = p(this).constructor;
  1780. e = Reflect.construct(a, arguments, n);
  1781. } else e = a.apply(this, arguments);
  1782. return l(this, e);
  1783. });
  1784. function c() {
  1785. var e;
  1786. !function(e, t) {
  1787. if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
  1788. }(this, c);
  1789. var t = (e = u.call(this)).getAttributeNames(), i = e.attachShadow({
  1790. mode: "closed"
  1791. }), a = m.createElement("input");
  1792. for (var n in a.type = "text", i.appendChild(a), t) Object.prototype.hasOwnProperty.call(t, n) && a.setAttribute(t[n], e.getAttribute(t[n]));
  1793. var o = new r.default;
  1794. return o.dataAttribute = "", o.mask(a), a.inputmask.shadowRoot = i, e;
  1795. }
  1796. return a = c, n && s(a.prototype, n), o && s(a, o), Object.defineProperty(a, "prototype", {
  1797. writable: !1
  1798. }), a;
  1799. }(u(HTMLElement));
  1800. n.default.customElements.define("input-mask", v);
  1801. }
  1802. },
  1803. 443: function(e, t, i) {
  1804. var a = o(i(2047)), n = o(i(2394));
  1805. function r(e) {
  1806. return r = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
  1807. return typeof e;
  1808. } : function(e) {
  1809. return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
  1810. }, r(e);
  1811. }
  1812. function o(e) {
  1813. return e && e.__esModule ? e : {
  1814. default: e
  1815. };
  1816. }
  1817. void 0 === a.default.fn.inputmask && (a.default.fn.inputmask = function(e, t) {
  1818. var i, o = this[0];
  1819. if (void 0 === t && (t = {}), "string" == typeof e) switch (e) {
  1820. case "unmaskedvalue":
  1821. return o && o.inputmask ? o.inputmask.unmaskedvalue() : (0, a.default)(o).val();
  1822. case "remove":
  1823. return this.each((function() {
  1824. this.inputmask && this.inputmask.remove();
  1825. }));
  1826. case "getemptymask":
  1827. return o && o.inputmask ? o.inputmask.getemptymask() : "";
  1828. case "hasMaskedValue":
  1829. return !(!o || !o.inputmask) && o.inputmask.hasMaskedValue();
  1830. case "isComplete":
  1831. return !o || !o.inputmask || o.inputmask.isComplete();
  1832. case "getmetadata":
  1833. return o && o.inputmask ? o.inputmask.getmetadata() : void 0;
  1834. case "setvalue":
  1835. n.default.setValue(o, t);
  1836. break;
  1837. case "option":
  1838. if ("string" != typeof t) return this.each((function() {
  1839. if (void 0 !== this.inputmask) return this.inputmask.option(t);
  1840. }));
  1841. if (o && void 0 !== o.inputmask) return o.inputmask.option(t);
  1842. break;
  1843. default:
  1844. return t.alias = e, i = new n.default(t), this.each((function() {
  1845. i.mask(this);
  1846. }));
  1847. } else {
  1848. if (Array.isArray(e)) return t.alias = e, i = new n.default(t), this.each((function() {
  1849. i.mask(this);
  1850. }));
  1851. if ("object" == r(e)) return i = new n.default(e), void 0 === e.mask && void 0 === e.alias ? this.each((function() {
  1852. if (void 0 !== this.inputmask) return this.inputmask.option(e);
  1853. i.mask(this);
  1854. })) : this.each((function() {
  1855. i.mask(this);
  1856. }));
  1857. if (void 0 === e) return this.each((function() {
  1858. (i = new n.default(t)).mask(this);
  1859. }));
  1860. }
  1861. });
  1862. },
  1863. 2391: function(e, t, i) {
  1864. Object.defineProperty(t, "__esModule", {
  1865. value: !0
  1866. }), t.analyseMask = function(e, t, i) {
  1867. var a, o, s, l, u, c, f = /(?:[?*+]|\{[0-9+*]+(?:,[0-9+*]*)?(?:\|[0-9+*]*)?\})|[^.?*+^${[]()|\\]+|./g, d = /\[\^?]?(?:[^\\\]]+|\\[\S\s]?)*]?|\\(?:0(?:[0-3][0-7]{0,2}|[4-7][0-7]?)?|[1-9][0-9]*|x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4}|c[A-Za-z]|[\S\s]?)|\((?:\?[:=!]?)?|(?:[?*+]|\{[0-9]+(?:,[0-9]*)?\})\??|[^.?*+^${[()|\\]+|./g, p = !1, h = new n.default, m = [], v = [], g = !1;
  1868. function k(e, a, n) {
  1869. n = void 0 !== n ? n : e.matches.length;
  1870. var o = e.matches[n - 1];
  1871. if (t) 0 === a.indexOf("[") || p && /\\d|\\s|\\w/i.test(a) || "." === a ? e.matches.splice(n++, 0, {
  1872. fn: new RegExp(a, i.casing ? "i" : ""),
  1873. static: !1,
  1874. optionality: !1,
  1875. newBlockMarker: void 0 === o ? "master" : o.def !== a,
  1876. casing: null,
  1877. def: a,
  1878. placeholder: void 0,
  1879. nativeDef: a
  1880. }) : (p && (a = a[a.length - 1]), a.split("").forEach((function(t, a) {
  1881. o = e.matches[n - 1], e.matches.splice(n++, 0, {
  1882. fn: /[a-z]/i.test(i.staticDefinitionSymbol || t) ? new RegExp("[" + (i.staticDefinitionSymbol || t) + "]", i.casing ? "i" : "") : null,
  1883. static: !0,
  1884. optionality: !1,
  1885. newBlockMarker: void 0 === o ? "master" : o.def !== t && !0 !== o.static,
  1886. casing: null,
  1887. def: i.staticDefinitionSymbol || t,
  1888. placeholder: void 0 !== i.staticDefinitionSymbol ? t : void 0,
  1889. nativeDef: (p ? "'" : "") + t
  1890. });
  1891. }))), p = !1; else {
  1892. var s = i.definitions && i.definitions[a] || i.usePrototypeDefinitions && r.default.prototype.definitions[a];
  1893. s && !p ? e.matches.splice(n++, 0, {
  1894. fn: s.validator ? "string" == typeof s.validator ? new RegExp(s.validator, i.casing ? "i" : "") : new function() {
  1895. this.test = s.validator;
  1896. } : new RegExp("."),
  1897. static: s.static || !1,
  1898. optionality: s.optional || !1,
  1899. newBlockMarker: void 0 === o || s.optional ? "master" : o.def !== (s.definitionSymbol || a),
  1900. casing: s.casing,
  1901. def: s.definitionSymbol || a,
  1902. placeholder: s.placeholder,
  1903. nativeDef: a,
  1904. generated: s.generated
  1905. }) : (e.matches.splice(n++, 0, {
  1906. fn: /[a-z]/i.test(i.staticDefinitionSymbol || a) ? new RegExp("[" + (i.staticDefinitionSymbol || a) + "]", i.casing ? "i" : "") : null,
  1907. static: !0,
  1908. optionality: !1,
  1909. newBlockMarker: void 0 === o ? "master" : o.def !== a && !0 !== o.static,
  1910. casing: null,
  1911. def: i.staticDefinitionSymbol || a,
  1912. placeholder: void 0 !== i.staticDefinitionSymbol ? a : void 0,
  1913. nativeDef: (p ? "'" : "") + a
  1914. }), p = !1);
  1915. }
  1916. }
  1917. function y() {
  1918. if (m.length > 0) {
  1919. if (k(l = m[m.length - 1], o), l.isAlternator) {
  1920. u = m.pop();
  1921. for (var e = 0; e < u.matches.length; e++) u.matches[e].isGroup && (u.matches[e].isGroup = !1);
  1922. m.length > 0 ? (l = m[m.length - 1]).matches.push(u) : h.matches.push(u);
  1923. }
  1924. } else k(h, o);
  1925. }
  1926. function b(e) {