!(function () { var el = document.createElement("style"); (el.innerHTML = ".iti__flag{background-image:url(https://fs.getcourse.ru/fileservice/file/download/a/163304/sc/422/h/4509c850253053857c023dac77814f85.png)!important}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.iti__flag{background-image:url(https://fs.getcourse.ru/fileservice/file/download/a/163304/sc/270/h/cb6bd6950b93ba8c14eb5a04d11ce180.png)!important}}.iti{position:relative;display:inline-block}.iti *{box-sizing:border-box;-moz-box-sizing:border-box}.iti__hide{display:none}.iti__v-hide{visibility:hidden}.iti input,.iti input[type=tel],.iti input[type=text]{position:relative;z-index:0;margin-top:0!important;margin-bottom:0!important;padding-right:36px;margin-right:0}.iti__flag-container{position:absolute;top:0;bottom:0;right:0;padding:1px}.iti__selected-flag{z-index:1;position:relative;display:flex;align-items:center;height:100%;padding:0 6px 0 8px}.iti__arrow{margin-left:6px;width:0;height:0;border-left:3px solid transparent;border-right:3px solid transparent;border-top:4px solid #555}.iti__arrow--up{border-top:none;border-bottom:4px solid #555}.iti__country-list{position:absolute;z-index:2;list-style:none;text-align:left;padding:0;margin:0 0 0 -1px;box-shadow:1px 1px 4px rgba(0,0,0,.2);background-color:#fff;border:1px solid #ccc;white-space:nowrap;max-height:200px;overflow-y:scroll;-webkit-overflow-scrolling:touch}.iti__country-list--dropup{bottom:100%;margin-bottom:-1px}@media (max-width:500px){.iti__country-list{white-space:normal}}.iti__flag-box{display:inline-block;width:20px}.iti__divider{padding-bottom:5px;margin-bottom:5px;border-bottom:1px solid #ccc}.iti__country{padding:5px 10px;outline:0}.iti__dial-code{color:#999}.iti__country.iti__highlight{background-color:rgba(0,0,0,.05)}.iti__country-name,.iti__dial-code,.iti__flag-box{vertical-align:middle}.iti__country-name,.iti__flag-box{margin-right:6px}.iti--allow-dropdown input,.iti--allow-dropdown input[type=tel],.iti--allow-dropdown input[type=text],.iti--separate-dial-code input,.iti--separate-dial-code input[type=tel],.iti--separate-dial-code input[type=text]{padding-right:6px;padding-left:52px;margin-left:0}.iti--allow-dropdown .iti__flag-container,.iti--separate-dial-code .iti__flag-container{right:auto;left:0}.iti--allow-dropdown .iti__flag-container:hover{cursor:pointer}.iti--allow-dropdown .iti__flag-container:hover .iti__selected-flag{background-color:rgba(0,0,0,.05)}.iti--allow-dropdown input[disabled]+.iti__flag-container:hover,.iti--allow-dropdown input[readonly]+.iti__flag-container:hover{cursor:default}.iti--allow-dropdown input[disabled]+.iti__flag-container:hover .iti__selected-flag,.iti--allow-dropdown input[readonly]+.iti__flag-container:hover .iti__selected-flag{background-color:transparent}.iti--separate-dial-code .iti__selected-flag{background-color:rgba(0,0,0,.05)}.iti--separate-dial-code .iti__selected-dial-code{margin-left:6px}.iti--container{position:absolute;top:-1000px;left:-1000px;z-index:1060;padding:1px}.iti--container:hover{cursor:pointer}.iti-mobile .iti--container{top:30px;bottom:30px;left:30px;right:30px;position:fixed}.iti-mobile .iti__country-list{max-height:100%;width:100%}.iti-mobile .iti__country{padding:10px 10px;line-height:1.5em}.iti__flag{width:20px}.iti__flag.iti__be{width:18px}.iti__flag.iti__ch{width:15px}.iti__flag.iti__mc{width:19px}.iti__flag.iti__ne{width:18px}.iti__flag.iti__np{width:13px}.iti__flag.iti__va{width:15px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.iti__flag{background-size:5652px 15px}}.iti__flag.iti__ac{height:10px;background-position:0 0}.iti__flag.iti__ad{height:14px;background-position:-22px 0}.iti__flag.iti__ae{height:10px;background-position:-44px 0}.iti__flag.iti__af{height:14px;background-position:-66px 0}.iti__flag.iti__ag{height:14px;background-position:-88px 0}.iti__flag.iti__ai{height:10px;background-position:-110px 0}.iti__flag.iti__al{height:15px;background-position:-132px 0}.iti__flag.iti__am{height:10px;background-position:-154px 0}.iti__flag.iti__ao{height:14px;background-position:-176px 0}.iti__flag.iti__aq{height:14px;background-position:-198px 0}.iti__flag.iti__ar{height:13px;background-position:-220px 0}.iti__flag.iti__as{height:10px;background-position:-242px 0}.iti__flag.iti__at{height:14px;background-position:-264px 0}.iti__flag.iti__au{height:10px;background-position:-286px 0}.iti__flag.iti__aw{height:14px;background-position:-308px 0}.iti__flag.iti__ax{height:13px;background-position:-330px 0}.iti__flag.iti__az{height:10px;background-position:-352px 0}.iti__flag.iti__ba{height:10px;background-position:-374px 0}.iti__flag.iti__bb{height:14px;background-position:-396px 0}.iti__flag.iti__bd{height:12px;background-position:-418px 0}.iti__flag.iti__be{height:15px;background-position:-440px 0}.iti__flag.iti__bf{height:14px;background-position:-460px 0}.iti__flag.iti__bg{height:12px;background-position:-482px 0}.iti__flag.iti__bh{height:12px;background-position:-504px 0}.iti__flag.iti__bi{height:12px;background-position:-526px 0}.iti__flag.iti__bj{height:14px;background-position:-548px 0}.iti__flag.iti__bl{height:14px;background-position:-570px 0}.iti__flag.iti__bm{height:10px;background-position:-592px 0}.iti__flag.iti__bn{height:10px;background-position:-614px 0}.iti__flag.iti__bo{height:14px;background-position:-636px 0}.iti__flag.iti__bq{height:14px;background-position:-658px 0}.iti__flag.iti__br{height:14px;background-position:-680px 0}.iti__flag.iti__bs{height:10px;background-position:-702px 0}.iti__flag.iti__bt{height:14px;background-position:-724px 0}.iti__flag.iti__bv{height:15px;background-position:-746px 0}.iti__flag.iti__bw{height:14px;background-position:-768px 0}.iti__flag.iti__by{height:10px;background-position:-790px 0}.iti__flag.iti__bz{height:14px;background-position:-812px 0}.iti__flag.iti__ca{height:10px;background-position:-834px 0}.iti__flag.iti__cc{height:10px;background-position:-856px 0}.iti__flag.iti__cd{height:15px;background-position:-878px 0}.iti__flag.iti__cf{height:14px;background-position:-900px 0}.iti__flag.iti__cg{height:14px;background-position:-922px 0}.iti__flag.iti__ch{height:15px;background-position:-944px 0}.iti__flag.iti__ci{height:14px;background-position:-961px 0}.iti__flag.iti__ck{height:10px;background-position:-983px 0}.iti__flag.iti__cl{height:14px;background-position:-1005px 0}.iti__flag.iti__cm{height:14px;background-position:-1027px 0}.iti__flag.iti__cn{height:14px;background-position:-1049px 0}.iti__flag.iti__co{height:14px;background-position:-1071px 0}.iti__flag.iti__cp{height:14px;background-position:-1093px 0}.iti__flag.iti__cr{height:12px;background-position:-1115px 0}.iti__flag.iti__cu{height:10px;background-position:-1137px 0}.iti__flag.iti__cv{height:12px;background-position:-1159px 0}.iti__flag.iti__cw{height:14px;background-position:-1181px 0}.iti__flag.iti__cx{height:10px;background-position:-1203px 0}.iti__flag.iti__cy{height:14px;background-position:-1225px 0}.iti__flag.iti__cz{height:14px;background-position:-1247px 0}.iti__flag.iti__de{height:12px;background-position:-1269px 0}.iti__flag.iti__dg{height:10px;background-position:-1291px 0}.iti__flag.iti__dj{height:14px;background-position:-1313px 0}.iti__flag.iti__dk{height:15px;background-position:-1335px 0}.iti__flag.iti__dm{height:10px;background-position:-1357px 0}.iti__flag.iti__do{height:14px;background-position:-1379px 0}.iti__flag.iti__dz{height:14px;background-position:-1401px 0}.iti__flag.iti__ea{height:14px;background-position:-1423px 0}.iti__flag.iti__ec{height:14px;background-position:-1445px 0}.iti__flag.iti__ee{height:13px;background-position:-1467px 0}.iti__flag.iti__eg{height:14px;background-position:-1489px 0}.iti__flag.iti__eh{height:10px;background-position:-1511px 0}.iti__flag.iti__er{height:10px;background-position:-1533px 0}.iti__flag.iti__es{height:14px;background-position:-1555px 0}.iti__flag.iti__et{height:10px;background-position:-1577px 0}.iti__flag.iti__eu{height:14px;background-position:-1599px 0}.iti__flag.iti__fi{height:12px;background-position:-1621px 0}.iti__flag.iti__fj{height:10px;background-position:-1643px 0}.iti__flag.iti__fk{height:10px;background-position:-1665px 0}.iti__flag.iti__fm{height:11px;background-position:-1687px 0}.iti__flag.iti__fo{height:15px;background-position:-1709px 0}.iti__flag.iti__fr{height:14px;background-position:-1731px 0}.iti__flag.iti__ga{height:15px;background-position:-1753px 0}.iti__flag.iti__gb{height:10px;background-position:-1775px 0}.iti__flag.iti__gd{height:12px;background-position:-1797px 0}.iti__flag.iti__ge{height:14px;background-position:-1819px 0}.iti__flag.iti__gf{height:14px;background-position:-1841px 0}.iti__flag.iti__gg{height:14px;background-position:-1863px 0}.iti__flag.iti__gh{height:14px;background-position:-1885px 0}.iti__flag.iti__gi{height:10px;background-position:-1907px 0}.iti__flag.iti__gl{height:14px;background-position:-1929px 0}.iti__flag.iti__gm{height:14px;background-position:-1951px 0}.iti__flag.iti__gn{height:14px;background-position:-1973px 0}.iti__flag.iti__gp{height:14px;background-position:-1995px 0}.iti__flag.iti__gq{height:14px;background-position:-2017px 0}.iti__flag.iti__gr{height:14px;background-position:-2039px 0}.iti__flag.iti__gs{height:10px;background-position:-2061px 0}.iti__flag.iti__gt{height:13px;background-position:-2083px 0}.iti__flag.iti__gu{height:11px;background-position:-2105px 0}.iti__flag.iti__gw{height:10px;background-position:-2127px 0}.iti__flag.iti__gy{height:12px;background-position:-2149px 0}.iti__flag.iti__hk{height:14px;background-position:-2171px 0}.iti__flag.iti__hm{height:10px;background-position:-2193px 0}.iti__flag.iti__hn{height:10px;background-position:-2215px 0}.iti__flag.iti__hr{height:10px;background-position:-2237px 0}.iti__flag.iti__ht{height:12px;background-position:-2259px 0}.iti__flag.iti__hu{height:10px;background-position:-2281px 0}.iti__flag.iti__ic{height:14px;background-position:-2303px 0}.iti__flag.iti__id{height:14px;background-position:-2325px 0}.iti__flag.iti__ie{height:10px;background-position:-2347px 0}.iti__flag.iti__il{height:15px;background-position:-2369px 0}.iti__flag.iti__im{height:10px;background-position:-2391px 0}.iti__flag.iti__in{height:14px;background-position:-2413px 0}.iti__flag.iti__io{height:10px;background-position:-2435px 0}.iti__flag.iti__iq{height:14px;background-position:-2457px 0}.iti__flag.iti__ir{height:12px;background-position:-2479px 0}.iti__flag.iti__is{height:15px;background-position:-2501px 0}.iti__flag.iti__it{height:14px;background-position:-2523px 0}.iti__flag.iti__je{height:12px;background-position:-2545px 0}.iti__flag.iti__jm{height:10px;background-position:-2567px 0}.iti__flag.iti__jo{height:10px;background-position:-2589px 0}.iti__flag.iti__jp{height:14px;background-position:-2611px 0}.iti__flag.iti__ke{height:14px;background-position:-2633px 0}.iti__flag.iti__kg{height:12px;background-position:-2655px 0}.iti__flag.iti__kh{height:13px;background-position:-2677px 0}.iti__flag.iti__ki{height:10px;background-position:-2699px 0}.iti__flag.iti__km{height:12px;background-position:-2721px 0}.iti__flag.iti__kn{height:14px;background-position:-2743px 0}.iti__flag.iti__kp{height:10px;background-position:-2765px 0}.iti__flag.iti__kr{height:14px;background-position:-2787px 0}.iti__flag.iti__kw{height:10px;background-position:-2809px 0}.iti__flag.iti__ky{height:10px;background-position:-2831px 0}.iti__flag.iti__kz{height:10px;background-position:-2853px 0}.iti__flag.iti__la{height:14px;background-position:-2875px 0}.iti__flag.iti__lb{height:14px;background-position:-2897px 0}.iti__flag.iti__lc{height:10px;background-position:-2919px 0}.iti__flag.iti__li{height:12px;background-position:-2941px 0}.iti__flag.iti__lk{height:10px;background-position:-2963px 0}.iti__flag.iti__lr{height:11px;background-position:-2985px 0}.iti__flag.iti__ls{height:14px;background-position:-3007px 0}.iti__flag.iti__lt{height:12px;background-position:-3029px 0}.iti__flag.iti__lu{height:12px;background-position:-3051px 0}.iti__flag.iti__lv{height:10px;background-position:-3073px 0}.iti__flag.iti__ly{height:10px;background-position:-3095px 0}.iti__flag.iti__ma{height:14px;background-position:-3117px 0}.iti__flag.iti__mc{height:15px;background-position:-3139px 0}.iti__flag.iti__md{height:10px;background-position:-3160px 0}.iti__flag.iti__me{height:10px;background-position:-3182px 0}.iti__flag.iti__mf{height:14px;background-position:-3204px 0}.iti__flag.iti__mg{height:14px;background-position:-3226px 0}.iti__flag.iti__mh{height:11px;background-position:-3248px 0}.iti__flag.iti__mk{height:10px;background-position:-3270px 0}.iti__flag.iti__ml{height:14px;background-position:-3292px 0}.iti__flag.iti__mm{height:14px;background-position:-3314px 0}.iti__flag.iti__mn{height:10px;background-position:-3336px 0}.iti__flag.iti__mo{height:14px;background-position:-3358px 0}.iti__flag.iti__mp{height:10px;background-position:-3380px 0}.iti__flag.iti__mq{height:14px;background-position:-3402px 0}.iti__flag.iti__mr{height:14px;background-position:-3424px 0}.iti__flag.iti__ms{height:10px;background-position:-3446px 0}.iti__flag.iti__mt{height:14px;background-position:-3468px 0}.iti__flag.iti__mu{height:14px;background-position:-3490px 0}.iti__flag.iti__mv{height:14px;background-position:-3512px 0}.iti__flag.iti__mw{height:14px;background-position:-3534px 0}.iti__flag.iti__mx{height:12px;background-position:-3556px 0}.iti__flag.iti__my{height:10px;background-position:-3578px 0}.iti__flag.iti__mz{height:14px;background-position:-3600px 0}.iti__flag.iti__na{height:14px;background-position:-3622px 0}.iti__flag.iti__nc{height:10px;background-position:-3644px 0}.iti__flag.iti__ne{height:15px;background-position:-3666px 0}.iti__flag.iti__nf{height:10px;background-position:-3686px 0}.iti__flag.iti__ng{height:10px;background-position:-3708px 0}.iti__flag.iti__ni{height:12px;background-position:-3730px 0}.iti__flag.iti__nl{height:14px;background-position:-3752px 0}.iti__flag.iti__no{height:15px;background-position:-3774px 0}.iti__flag.iti__np{height:15px;background-position:-3796px 0}.iti__flag.iti__nr{height:10px;background-position:-3811px 0}.iti__flag.iti__nu{height:10px;background-position:-3833px 0}.iti__flag.iti__nz{height:10px;background-position:-3855px 0}.iti__flag.iti__om{height:10px;background-position:-3877px 0}.iti__flag.iti__pa{height:14px;background-position:-3899px 0}.iti__flag.iti__pe{height:14px;background-position:-3921px 0}.iti__flag.iti__pf{height:14px;background-position:-3943px 0}.iti__flag.iti__pg{height:15px;background-position:-3965px 0}.iti__flag.iti__ph{height:10px;background-position:-3987px 0}.iti__flag.iti__pk{height:14px;background-position:-4009px 0}.iti__flag.iti__pl{height:13px;background-position:-4031px 0}.iti__flag.iti__pm{height:14px;background-position:-4053px 0}.iti__flag.iti__pn{height:10px;background-position:-4075px 0}.iti__flag.iti__pr{height:14px;background-position:-4097px 0}.iti__flag.iti__ps{height:10px;background-position:-4119px 0}.iti__flag.iti__pt{height:14px;background-position:-4141px 0}.iti__flag.iti__pw{height:13px;background-position:-4163px 0}.iti__flag.iti__py{height:11px;background-position:-4185px 0}.iti__flag.iti__qa{height:8px;background-position:-4207px 0}.iti__flag.iti__re{height:14px;background-position:-4229px 0}.iti__flag.iti__ro{height:14px;background-position:-4251px 0}.iti__flag.iti__rs{height:14px;background-position:-4273px 0}.iti__flag.iti__ru{height:14px;background-position:-4295px 0}.iti__flag.iti__rw{height:14px;background-position:-4317px 0}.iti__flag.iti__sa{height:14px;background-position:-4339px 0}.iti__flag.iti__sb{height:10px;background-position:-4361px 0}.iti__flag.iti__sc{height:10px;background-position:-4383px 0}.iti__flag.iti__sd{height:10px;background-position:-4405px 0}.iti__flag.iti__se{height:13px;background-position:-4427px 0}.iti__flag.iti__sg{height:14px;background-position:-4449px 0}.iti__flag.iti__sh{height:10px;background-position:-4471px 0}.iti__flag.iti__si{height:10px;background-position:-4493px 0}.iti__flag.iti__sj{height:15px;background-position:-4515px 0}.iti__flag.iti__sk{height:14px;background-position:-4537px 0}.iti__flag.iti__sl{height:14px;background-position:-4559px 0}.iti__flag.iti__sm{height:15px;background-position:-4581px 0}.iti__flag.iti__sn{height:14px;background-position:-4603px 0}.iti__flag.iti__so{height:14px;background-position:-4625px 0}.iti__flag.iti__sr{height:14px;background-position:-4647px 0}.iti__flag.iti__ss{height:10px;background-position:-4669px 0}.iti__flag.iti__st{height:10px;background-position:-4691px 0}.iti__flag.iti__sv{height:12px;background-position:-4713px 0}.iti__flag.iti__sx{height:14px;background-position:-4735px 0}.iti__flag.iti__sy{height:14px;background-position:-4757px 0}.iti__flag.iti__sz{height:14px;background-position:-4779px 0}.iti__flag.iti__ta{height:10px;background-position:-4801px 0}.iti__flag.iti__tc{height:10px;background-position:-4823px 0}.iti__flag.iti__td{height:14px;background-position:-4845px 0}.iti__flag.iti__tf{height:14px;background-position:-4867px 0}.iti__flag.iti__tg{height:13px;background-position:-4889px 0}.iti__flag.iti__th{height:14px;background-position:-4911px 0}.iti__flag.iti__tj{height:10px;background-position:-4933px 0}.iti__flag.iti__tk{height:10px;background-position:-4955px 0}.iti__flag.iti__tl{height:10px;background-position:-4977px 0}.iti__flag.iti__tm{height:14px;background-position:-4999px 0}.iti__flag.iti__tn{height:14px;background-position:-5021px 0}.iti__flag.iti__to{height:10px;background-position:-5043px 0}.iti__flag.iti__tr{height:14px;background-position:-5065px 0}.iti__flag.iti__tt{height:12px;background-position:-5087px 0}.iti__flag.iti__tv{height:10px;background-position:-5109px 0}.iti__flag.iti__tw{height:14px;background-position:-5131px 0}.iti__flag.iti__tz{height:14px;background-position:-5153px 0}.iti__flag.iti__ua{height:14px;background-position:-5175px 0}.iti__flag.iti__ug{height:14px;background-position:-5197px 0}.iti__flag.iti__um{height:11px;background-position:-5219px 0}.iti__flag.iti__un{height:14px;background-position:-5241px 0}.iti__flag.iti__us{height:11px;background-position:-5263px 0}.iti__flag.iti__uy{height:14px;background-position:-5285px 0}.iti__flag.iti__uz{height:10px;background-position:-5307px 0}.iti__flag.iti__va{height:15px;background-position:-5329px 0}.iti__flag.iti__vc{height:14px;background-position:-5346px 0}.iti__flag.iti__ve{height:14px;background-position:-5368px 0}.iti__flag.iti__vg{height:10px;background-position:-5390px 0}.iti__flag.iti__vi{height:14px;background-position:-5412px 0}.iti__flag.iti__vn{height:14px;background-position:-5434px 0}.iti__flag.iti__vu{height:12px;background-position:-5456px 0}.iti__flag.iti__wf{height:14px;background-position:-5478px 0}.iti__flag.iti__ws{height:10px;background-position:-5500px 0}.iti__flag.iti__xk{height:15px;background-position:-5522px 0}.iti__flag.iti__ye{height:14px;background-position:-5544px 0}.iti__flag.iti__yt{height:14px;background-position:-5566px 0}.iti__flag.iti__za{height:14px;background-position:-5588px 0}.iti__flag.iti__zm{height:14px;background-position:-5610px 0}.iti__flag.iti__zw{height:10px;background-position:-5632px 0}.iti__flag{height:15px;box-shadow:0 0 1px 0 #888;background-image:url(https://fs.getcourse.ru/fileservice/file/download/a/163304/sc/422/h/4509c850253053857c023dac77814f85.png);background-repeat:no-repeat;background-color:#dbdbdb;background-position:20px 0}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.iti__flag{background-image:url(https://fs.getcourse.ru/fileservice/file/download/a/163304/sc/270/h/cb6bd6950b93ba8c14eb5a04d11ce180.png)}}.iti__flag.iti__np{background-color:transparent}"), document.head.appendChild(el); })(); var phoneAutoMask = (function () { "use strict"; function _typeof(e) { return (_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (e) { return typeof e; } : function (e) { return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e; })(e); } function _extends() { return (_extends = Object.assign || function (e) { for (var t = 1; t < arguments.length; t++) { var n = arguments[t]; for (var a in n) Object.prototype.hasOwnProperty.call(n, a) && (e[a] = n[a]); } return e; }).apply(this, arguments); } var commonjsGlobal = "undefined" != typeof globalThis ? globalThis : "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof self ? self : {}; function createCommonjsModule(e, t) { return e((t = { exports: {} }), t.exports), t.exports; } var window_1 = createCommonjsModule(function (module, exports) { module.exports = "undefined" != typeof window ? window : new (eval("require('jsdom').JSDOM"))("").window; }), inputmask_dependencyLib = createCommonjsModule(function (e, t) { e.exports = (function (t) { var f = t.document; function a(e, t) { for (var n = 0, a = e.length; n < a; n++) if (e[n] === t) return n; return -1; } function i(e) { return null != e && e === e.window; } function r(e) { var t = "length" in e && e.length, n = _typeof(e); return ( "function" !== n && !i(e) && (!(1 !== e.nodeType || !t) || "array" === n || 0 === t || ("number" == typeof t && t > 0 && t - 1 in e)) ); } function p(e) { return e instanceof Element; } function h(e) { return e instanceof h ? e : this instanceof h ? void ( null != e && e !== t && ((this[0] = e.nodeName ? e : void 0 !== e[0] && e[0].nodeName ? e[0] : f.querySelector(e)), void 0 !== this[0] && null !== this[0] && (this[0].eventRegistry = this[0].eventRegistry || {})) ) : new h(e); } return ( (h.prototype = { on: function e(t, a) { if (p(this[0])) for ( var i = this[0].eventRegistry, r = this[0], n = function e(t, n) { r.addEventListener ? r.addEventListener(t, a, !1) : r.attachEvent && r.attachEvent("on" + t, a), (i[t] = i[t] || {}), (i[t][n] = i[t][n] || []), i[t][n].push(a); }, s = t.split(" "), o = 0; o < s.length; o++ ) { var c = s[o].split("."), u, l; n(c[0], c[1] || "global"); } return this; }, off: function e(t, c) { if (p(this[0])) for ( var u = this[0].eventRegistry, r = this[0], n = function e(t, n, a) { if ((t in u) == !0) if ( (r.removeEventListener ? r.removeEventListener(t, a, !1) : r.detachEvent && r.detachEvent("on" + t, a), "global" === n) ) for (var i in u[t]) u[t][i].splice(u[t][i].indexOf(a), 1); else u[t][n].splice(u[t][n].indexOf(a), 1); }, a = function e(t, n) { var a = [], i, r; if (t.length > 0) if (void 0 === c) for (i = 0, r = u[t][n].length; i < r; i++) a.push({ ev: t, namespace: n && n.length > 0 ? n : "global", handler: u[t][n][i], }); else a.push({ ev: t, namespace: n && n.length > 0 ? n : "global", handler: c, }); else if (n.length > 0) for (var s in u) for (var o in u[s]) if (o === n) if (void 0 === c) for (i = 0, r = u[s][o].length; i < r; i++) a.push({ ev: s, namespace: o, handler: u[s][o][i], }); else a.push({ ev: s, namespace: o, handler: c }); return a; }, i = t.split(" "), s = 0; s < i.length; s++ ) for ( var o = i[s].split("."), l = a(o[0], o[1]), d = 0, m = l.length; d < m; d++ ) n(l[d].ev, l[d].namespace, l[d].handler); return this; }, trigger: function e(t) { if (p(this[0])) for ( var n = this[0].eventRegistry, a = this[0], i = "string" == typeof t ? t.split(" ") : [t.type], r = 0; r < i.length; r++ ) { var s = i[r].split("."), o = s[0], c = s[1] || "global"; if (void 0 !== f && "global" === c) { var u, l, d = { bubbles: !0, cancelable: !0, detail: arguments[1] }; if (f.createEvent) { try { u = new CustomEvent(o, d); } catch (e) { (u = f.createEvent("CustomEvent")).initCustomEvent( o, d.bubbles, d.cancelable, d.detail ); } t.type && h.extend(u, t), a.dispatchEvent(u); } else ((u = f.createEventObject()).eventType = o), (u.detail = arguments[1]), t.type && h.extend(u, t), a.fireEvent("on" + u.eventType, u); } else if (void 0 !== n[o]) if ( ((arguments[0] = arguments[0].type ? arguments[0] : h.Event(arguments[0])), "global" === c) ) for (var m in n[o]) for (l = 0; l < n[o][m].length; l++) n[o][m][l].apply(a, arguments); else for (l = 0; l < n[o][c].length; l++) n[o][c][l].apply(a, arguments); } return this; }, }), (h.isFunction = function (e) { return "function" == typeof e; }), (h.noop = function () {}), (h.isArray = Array.isArray), (h.inArray = function (e, t, n) { return null == t ? -1 : a(t, e); }), (h.valHooks = void 0), (h.isPlainObject = function (e) { return ( "object" === _typeof(e) && !e.nodeType && !i(e) && !( e.constructor && !Object.hasOwnProperty.call( e.constructor.prototype, "isPrototypeOf" ) ) ); }), (h.extend = function () { var e, t, n, a, i, r, s = arguments[0] || {}, o = 1, c = arguments.length, u = !1; for ( "boolean" == typeof s && ((u = s), (s = arguments[o] || {}), o++), "object" === _typeof(s) || h.isFunction(s) || (s = {}), o === c && ((s = this), o--); o < c; o++ ) if (null != (e = arguments[o])) for (t in e) (n = s[t]), s !== (a = e[t]) && (u && a && (h.isPlainObject(a) || (i = h.isArray(a))) ? (i ? ((i = !1), (r = n && h.isArray(n) ? n : [])) : (r = n && h.isPlainObject(n) ? n : {}), (s[t] = h.extend(u, r, a))) : void 0 !== a && (s[t] = a)); return s; }), (h.each = function (e, t) { var n, a = 0; if (r(e)) for ( var i = e.length; a < i && !1 !== (n = t.call(e[a], a, e[a])); a++ ); else for (a in e) if (!1 === (n = t.call(e[a], a, e[a]))) break; return e; }), (h.data = function (e, t, n) { if (void 0 === n) return e.__data ? e.__data[t] : null; (e.__data = e.__data || {}), (e.__data[t] = n); }), "function" == typeof t.CustomEvent ? (h.Event = t.CustomEvent) : ((h.Event = function (e, t) { t = t || { bubbles: !1, cancelable: !1, detail: void 0 }; var n = f.createEvent("CustomEvent"); return ( n.initCustomEvent(e, t.bubbles, t.cancelable, t.detail), n ); }), (h.Event.prototype = t.Event.prototype)), h ); })(window_1); }), inputmask = createCommonjsModule(function (e, t) { e.exports = (function (re, se, oe) { var ce = se.document, e = navigator.userAgent, ue = e.indexOf("MSIE ") > 0 || e.indexOf("Trident/") > 0, le = pe("touchstart"), de = /iemobile/i.test(e), me = /iphone/i.test(e) && !de; function fe(e, t, n) { if (!(this instanceof fe)) return new fe(e, t, n); (this.el = oe), (this.events = {}), (this.maskset = oe), (this.refreshValue = !1), !0 !== n && (re.isPlainObject(e) ? (t = e) : ((t = t || {}), e && (t.alias = e)), (this.opts = re.extend(!0, {}, this.defaults, t)), (this.noMasksCache = t && t.definitions !== oe), (this.userOptions = t || {}), (this.isRTL = this.opts.numericInput), l(this.opts.alias, t, this.opts)); } function l(e, t, n) { var a = fe.prototype.aliases[e]; return a ? (a.alias && l(a.alias, oe, n), re.extend(!0, n, a), re.extend(!0, n, t), !0) : (null === n.mask && (n.mask = e), !1); } function r(n, o) { function e(e, t, n) { var a = !1; if ( ((null !== e && "" !== e) || ((a = null !== n.regex) ? (e = (e = n.regex).replace(/^(\^)(.*)(\$)$/, "$2")) : ((a = !0), (e = ".*"))), 1 === e.length && !1 === n.greedy && 0 !== n.repeat && (n.placeholder = ""), n.repeat > 0 || "*" === n.repeat || "+" === n.repeat) ) { var i = "*" === n.repeat ? 0 : "+" === n.repeat ? 1 : n.repeat; e = n.groupmarker[0] + e + n.groupmarker[1] + n.quantifiermarker[0] + i + "," + n.repeat + n.quantifiermarker[1]; } var r, s = a ? "regex_" + n.regex : n.numericInput ? e.split("").reverse().join("") : e; return ( fe.prototype.masksCache[s] === oe || !0 === o ? ((r = { mask: e, maskToken: fe.prototype.analyseMask(e, a, n), validPositions: {}, _buffer: oe, buffer: oe, tests: {}, excludes: {}, metadata: t, maskLength: oe, jitOffset: {}, }), !0 !== o && ((fe.prototype.masksCache[s] = r), (r = re.extend(!0, {}, fe.prototype.masksCache[s])))) : (r = re.extend(!0, {}, fe.prototype.masksCache[s])), r ); } var t; if ( (re.isFunction(n.mask) && (n.mask = n.mask(n)), re.isArray(n.mask)) ) { if (n.mask.length > 1) { if (null === n.keepStatic) { n.keepStatic = "auto"; for (var a = 0; a < n.mask.length; a++) if (n.mask[a].charAt(0) !== n.mask[0].charAt(0)) { n.keepStatic = !0; break; } } var i = n.groupmarker[0]; return ( re.each(n.isRTL ? n.mask.reverse() : n.mask, function (e, t) { i.length > 1 && (i += n.groupmarker[1] + n.alternatormarker + n.groupmarker[0]), t.mask === oe || re.isFunction(t.mask) ? (i += t) : (i += t.mask); }), e((i += n.groupmarker[1]), n.mask, n) ); } n.mask = n.mask.pop(); } return (t = n.mask && n.mask.mask !== oe && !re.isFunction(n.mask.mask) ? e(n.mask.mask, n.mask, n) : e(n.mask, n.mask, n)); } function pe(e) { var t = ce.createElement("input"), n = "on" + e, a = n in t; return ( a || (t.setAttribute(n, "return;"), (a = "function" == typeof t[n])), (t = null), a ); } function he(e, t, U) { (t = t || this.maskset), (U = U || this.opts); var d = this, u = this.el, g = this.isRTL, _, r, o = !1, l = !1, k = !1, v, i = !1, p, s, f = function e(t, n, a, i, r) { var s = U.greedy; r && (U.greedy = !1), (n = n || 0); var o = [], c, u = 0, l, d, m = x(); do { if (!0 === t && K().validPositions[u]) (l = (d = r && !0 === K().validPositions[u].match.optionality && K().validPositions[u + 1] === oe && (!0 === K().validPositions[u].generatedInput || (K().validPositions[u].input == U.skipOptionalPartCharacter && u > 0)) ? h(u, S(u, c, u - 1)) : K().validPositions[u]).match), (c = d.locator.slice()), o.push( !0 === a ? d.input : !1 === a ? l.nativeDef : R(u, l) ); else { (l = (d = y(u, c, u - 1)).match), (c = d.locator.slice()); var f = !0 !== i && (!1 !== U.jitMasking ? U.jitMasking : l.jit); (!1 === f || f === oe || ("number" == typeof f && isFinite(f) && f > u)) && o.push(!1 === a ? l.nativeDef : R(u, l)); } "auto" === U.keepStatic && l.newBlockMarker && null !== l.fn && (U.keepStatic = u - 1), u++; } while ( ((v === oe || u < v) && (null !== l.fn || "" !== l.def)) || n > u ); return ( "" === o[o.length - 1] && o.pop(), (!1 === a && K().maskLength !== oe) || (K().maskLength = u - 1), (U.greedy = s), o ); }; function K() { return t; } function C(e) { var t = K(); (t.buffer = oe), !0 !== e && ((t.validPositions = {}), (t.p = 0)); } function x(e, t, n) { var a = -1, i = -1, r = n || K().validPositions; for (var s in (e === oe && (e = -1), r)) { var o = parseInt(s); r[o] && (t || !0 !== r[o].generatedInput) && (o <= e && (a = o), o >= e && (i = o)); } return -1 === a || a == e ? i : -1 == i ? a : e - a < i - e ? a : i; } function w(e) { var t = e.locator[e.alternation]; return ( "string" == typeof t && t.length > 0 && (t = t.split(",")[0]), t !== oe ? t.toString() : "" ); } function m(e, t) { var n = (e.alternation != oe ? e.mloc[w(e)] : e.locator).join(""); if ("" !== n) for (; n.length < t; ) n += "0"; return n; } function h(e, t) { for ( var n, a = m(E((e = e > 0 ? e - 1 : 0))), i, r, s, o = 0; o < t.length; o++ ) { var c = t[o]; i = m(c, a.length); var u = Math.abs(i - a); (r === oe || ("" !== i && u < r) || (s && !U.greedy && s.match.optionality && "master" === s.match.newBlockMarker && (!c.match.optionality || !c.match.newBlockMarker)) || (s && s.match.optionalQuantifier && !c.match.optionalQuantifier)) && ((r = u), (s = c)); } return s; } function y(e, t, n) { return K().validPositions[e] || h(e, S(e, t ? t.slice() : t, n)); } function E(e, t) { return K().validPositions[e] ? K().validPositions[e] : (t || S(e))[0]; } function b(e, t) { for (var n = !1, a = S(e), i = 0; i < a.length; i++) if (a[i].match && a[i].match.def === t) { n = !0; break; } return n; } function S(O, e, t) { var n = K().maskToken, F = e ? t : 0, a = e ? e.slice() : [0], j = [], G = !1, B, R = e ? e.join("") : ""; function z(T, N, e, t) { function L(e, t, n) { function r(n, a) { var i = 0 === re.inArray(n, a.matches); return ( i || re.each(a.matches, function (e, t) { if ( (!0 === t.isQuantifier ? (i = r(n, a.matches[e - 1])) : t.hasOwnProperty("matches") && (i = r(n, t)), i) ) return !1; }), i ); } function a(e, i, r) { var s, o; if ( ((K().tests[e] || K().validPositions[e]) && re.each( K().tests[e] || [K().validPositions[e]], function (e, t) { if (t.mloc[i]) return (s = t), !1; var n = r !== oe ? r : t.alternation, a = t.locator[n] !== oe ? t.locator[n].toString().indexOf(i) : -1; (o === oe || a < o) && -1 !== a && ((s = t), (o = a)); } ), s) ) { var t = s.locator[s.alternation], n; return (s.mloc[i] || s.mloc[t] || s.locator).slice( (r !== oe ? r : s.alternation) + 1 ); } return r !== oe ? a(e, i) : oe; } function i(e, t) { function n(e) { for (var t = [], n, a, i = 0, r = e.length; i < r; i++) if ("-" === e.charAt(i)) for (a = e.charCodeAt(i + 1); ++n < a; ) t.push(String.fromCharCode(n)); else (n = e.charCodeAt(i)), t.push(e.charAt(i)); return t.join(""); } return U.regex && null !== e.match.fn && null !== t.match.fn ? -1 !== n(t.match.def.replace(/[\[\]]/g, "")).indexOf( n(e.match.def.replace(/[\[\]]/g, "")) ) : e.match.def === t.match.nativeDef; } function s(e, t) { var n, a, i = e.locator.slice(e.alternation).join("") == t.locator.slice(t.alternation).join(""); return (i = !(!i || null !== e.match.fn || null === t.match.fn) && t.match.fn.test(e.match.def, K(), O, !1, U, !1)); } function o(e, t) { if ( t === oe || (e.alternation === t.alternation && -1 === e.locator[e.alternation] .toString() .indexOf(t.locator[t.alternation])) ) { e.mloc = e.mloc || {}; var n = e.locator[e.alternation]; if (n !== oe) { if ( ("string" == typeof n && (n = n.split(",")[0]), e.mloc[n] === oe && (e.mloc[n] = e.locator.slice()), t !== oe) ) { for (var a in t.mloc) "string" == typeof a && (a = a.split(",")[0]), e.mloc[a] === oe && (e.mloc[a] = t.mloc[a]); e.locator[e.alternation] = Object.keys(e.mloc).join( "," ); } return !0; } e.alternation = oe; } return !1; } if (F > 500 && n !== oe) throw ( "Inputmask: There is probably an error in your mask definition or in the code. Create an issue on github with an example of the mask you are using. " + K().mask ); if (F === O && e.matches === oe) return ( j.push({ match: e, locator: t.reverse(), cd: R, mloc: {} }), !0 ); if (e.matches !== oe) { if (e.isGroup && n !== e) { if ((e = L(T.matches[re.inArray(e, T.matches) + 1], t, n))) return !0; } else if (e.isOptional) { var c = e; if ((e = z(e, N, t, n))) { if ( (re.each(j, function (e, t) { t.match.optionality = !0; }), (B = j[j.length - 1].match), n !== oe || !r(B, c)) ) return !0; (G = !0), (F = O); } } else if (e.isAlternator) { var u = e, l = [], d, m = j.slice(), f = t.length, p = N.length > 0 ? N.shift() : -1; if (-1 === p || "string" == typeof p) { var h = F, g = N.slice(), _ = [], v; if ("string" == typeof p) _ = p.split(","); else for (v = 0; v < u.matches.length; v++) _.push(v.toString()); if (K().excludes[O]) { for ( var k = _.slice(), y = 0, b = K().excludes[O].length; y < b; y++ ) _.splice(_.indexOf(K().excludes[O][y].toString()), 1); 0 === _.length && ((K().excludes[O] = oe), (_ = k)); } (!0 === U.keepStatic || (isFinite(parseInt(U.keepStatic)) && h >= U.keepStatic)) && (_ = _.slice(0, 1)); for (var C = !1, x = 0; x < _.length; x++) { (v = parseInt(_[x])), (j = []), (N = ("string" == typeof p && a(F, v, f)) || g.slice()), u.matches[v] && L(u.matches[v], [v].concat(t), n) ? (e = !0) : 0 === x && (C = !0), (d = j.slice()), (F = h), (j = []); for (var w = 0; w < d.length; w++) { var E = d[w], S = !1; (E.match.jit = E.match.jit || C), (E.alternation = E.alternation || f), o(E); for (var D = 0; D < l.length; D++) { var M = l[D]; if ( "string" != typeof p || (E.alternation !== oe && -1 !== re.inArray( E.locator[E.alternation].toString(), _ )) ) { if (E.match.nativeDef === M.match.nativeDef) { (S = !0), o(M, E); break; } if (i(E, M)) { o(E, M) && ((S = !0), l.splice(l.indexOf(M), 0, E)); break; } if (i(M, E)) { o(M, E); break; } if (s(E, M)) { o(E, M) && ((S = !0), l.splice(l.indexOf(M), 0, E)); break; } } } S || l.push(E); } } (j = m.concat(l)), (F = O), (G = j.length > 0), (e = l.length > 0), (N = g.slice()); } else e = L(u.matches[p] || T.matches[p], [p].concat(t), n); if (e) return !0; } else if ( e.isQuantifier && n !== T.matches[re.inArray(e, T.matches) - 1] ) for ( var A = e, I = N.length > 0 ? N.shift() : 0; I < (isNaN(A.quantifier.max) ? I + 1 : A.quantifier.max) && F <= O; I++ ) { var P = T.matches[re.inArray(A, T.matches) - 1]; if ((e = L(P, [I].concat(t), P))) { if ( (((B = j[j.length - 1].match).optionalQuantifier = I >= A.quantifier.min), (B.jit = (I || 1) * P.matches.indexOf(B) >= A.quantifier.jit), B.optionalQuantifier && r(B, P)) ) { (G = !0), (F = O); break; } return ( B.jit && (K().jitOffset[O] = P.matches.indexOf(B)), !0 ); } } else if ((e = z(e, N, t, n))) return !0; } else F++; } for ( var n = N.length > 0 ? N.shift() : 0; n < T.matches.length; n++ ) if (!0 !== T.matches[n].isQuantifier) { var a = L(T.matches[n], [n].concat(e), t); if (a && F === O) return a; if (F > O) break; } } function i(e, t) { var a = []; return ( re.isArray(t) || (t = [t]), t.length > 0 && (t[0].alternation === oe ? 0 === (a = h(e, t.slice()).locator.slice()).length && (a = t[0].locator.slice()) : re.each(t, function (e, t) { if ("" !== t.def) if (0 === a.length) a = t.locator.slice(); else for (var n = 0; n < a.length; n++) t.locator[n] && -1 === a[n].toString().indexOf(t.locator[n]) && (a[n] += "," + t.locator[n]); })), a ); } if (O > -1) { if (e === oe) { for ( var r = O - 1, s; (s = K().validPositions[r] || K().tests[r]) === oe && r > -1; ) r--; s !== oe && r > -1 && ((a = i(r, s)), (R = a.join("")), (F = r)); } if (K().tests[O] && K().tests[O][0].cd === R) return K().tests[O]; for (var o = a.shift(); o < n.length; o++) { var c; if ((z(n[o], a, [o]) && F === O) || F > O) break; } } return ( (0 === j.length || G) && j.push({ match: { fn: null, optionality: !1, casing: null, def: "", placeholder: "", }, locator: [], mloc: {}, cd: R, }), e !== oe && K().tests[O] ? re.extend(!0, [], j) : ((K().tests[O] = re.extend(!0, [], j)), K().tests[O]) ); } function D() { return ( K()._buffer === oe && ((K()._buffer = f(!1, 1)), K().buffer === oe && (K().buffer = K()._buffer.slice())), K()._buffer ); } function M(e) { return ( (K().buffer !== oe && !0 !== e) || ((K().buffer = f(!0, x(), !0)), K()._buffer === oe && (K()._buffer = K().buffer.slice())), K().buffer ); } function A(e, t, n) { var a, i; if (!0 === e) C(), (e = 0), (t = n.length); else for (a = e; a < t; a++) delete K().validPositions[a]; for (i = e, a = e; a < t; a++) if ((C(!0), n[a] !== U.skipOptionalPartCharacter)) { var r = N(i, n[a], !0, !0); !1 !== r && (C(!0), (i = r.caret !== oe ? r.caret : r.pos + 1)); } } function I(e, t, n) { switch (U.casing || t.casing) { case "upper": e = e.toUpperCase(); break; case "lower": e = e.toLowerCase(); break; case "title": var a = K().validPositions[n - 1]; e = 0 === n || (a && a.input === String.fromCharCode(fe.keyCode.SPACE)) ? e.toUpperCase() : e.toLowerCase(); break; default: if (re.isFunction(U.casing)) { var i = Array.prototype.slice.call(arguments); i.push(K().validPositions), (e = U.casing.apply(this, i)); } } return e; } function P(e, t, n) { for ( var a = U.greedy ? t : t.slice(0, 1), i = !1, r = n !== oe ? n.split(",") : [], s, o = 0; o < r.length; o++ ) -1 !== (s = e.indexOf(r[o])) && e.splice(s, 1); for (var c = 0; c < e.length; c++) if (-1 !== re.inArray(e[c], a)) { i = !0; break; } return i; } function T(e, t, n, a, i) { var r = re.extend(!0, {}, K().validPositions), s, o, c = !1, u, l, d, m, f, p = i !== oe ? i : x(); if (-1 === p && i === oe) o = (l = E((s = 0))).alternation; else for (; p >= 0; p--) if ((u = K().validPositions[p]) && u.alternation !== oe) { if ( l && l.locator[u.alternation] !== u.locator[u.alternation] ) break; (s = p), (o = K().validPositions[s].alternation), (l = u); } if (o !== oe) { (f = parseInt(s)), (K().excludes[f] = K().excludes[f] || []), !0 !== e && K().excludes[f].push(w(l)); var h = [], g = 0; for (d = f; d < x(oe, !0) + 1; d++) (m = K().validPositions[d]) && !0 !== m.generatedInput ? h.push(m.input) : d < e && g++, delete K().validPositions[d]; for (; K().excludes[f] && K().excludes[f].length < 10; ) { var _ = -1 * g, v = h.slice(); for (K().tests[f] = oe, C(!0), c = !0; v.length > 0; ) { var k = v.shift(); if (!(c = N(x(oe, !0) + 1, k, !1, a, !0))) break; } if (c && t !== oe) { var y = x(e) + 1; for (d = f; d < x() + 1; d++) ((m = K().validPositions[d]) === oe || null == m.match.fn) && d < e + _ && _++; c = N((e += _) > y ? y : e, t, n, a, !0); } if (c) break; if ( (C(), (l = E(f)), (K().validPositions = re.extend(!0, {}, r)), !K().excludes[f]) ) { c = T(e, t, n, a, f - 1); break; } var b = w(l); if (-1 !== K().excludes[f].indexOf(b)) { c = T(e, t, n, a, f - 1); break; } for (K().excludes[f].push(b), d = f; d < x(oe, !0) + 1; d++) delete K().validPositions[d]; } } return (K().excludes[f] = oe), c; } function N(u, e, t, l, n, a) { function d(e) { return g ? e.begin - e.end > 1 || e.begin - e.end == 1 : e.end - e.begin > 1 || e.end - e.begin == 1; } t = !0 === t; var i = u; function r(r, s, o) { var c = !1; return ( re.each(S(r), function (e, t) { var n = t.match; if ( (M(!0), !1 !== (c = null != n.fn ? n.fn.test(s, K(), r, o, U, d(u)) : (s === n.def || s === U.skipOptionalPartCharacter) && "" !== n.def && { c: R(r, n, !0) || n.def, pos: r, })) ) { var a = c.c !== oe ? c.c : s, i = r; return ( (a = a === U.skipOptionalPartCharacter && null === n.fn ? R(r, n, !0) || n.def : a), c.remove !== oe && (re.isArray(c.remove) || (c.remove = [c.remove]), re.each( c.remove.sort(function (e, t) { return t - e; }), function (e, t) { O({ begin: t, end: t + 1 }); } )), c.insert !== oe && (re.isArray(c.insert) || (c.insert = [c.insert]), re.each( c.insert.sort(function (e, t) { return e - t; }), function (e, t) { N(t.pos, t.c, !0, l); } )), !0 !== c && c.pos !== oe && c.pos !== r && (i = c.pos), !0 !== c && c.pos === oe && c.c === oe ? !1 : (O( u, re.extend({}, t, { input: I(a, n, i) }), l, i ) || (c = !1), !1) ); } }), c ); } u.begin !== oe && (i = g ? u.end : u.begin); var s = !0, o = re.extend(!0, {}, K().validPositions); if ( (re.isFunction(U.preValidation) && !t && !0 !== l && !0 !== a && (s = U.preValidation(M(), i, e, d(u), U, K())), !0 === s) ) { if ( (L(oe, i, !0), (v === oe || i < v) && ((s = r(i, e, t)), (!t || !0 === l) && !1 === s && !0 !== a)) ) { var c = K().validPositions[i]; if ( !c || null !== c.match.fn || (c.match.def !== e && e !== U.skipOptionalPartCharacter) ) { if ( (U.insertMode || K().validPositions[j(i)] === oe) && (!F(i, !0) || K().jitOffset[i]) ) if (K().jitOffset[i] && K().validPositions[j(i)] === oe) !1 !== (s = N(i + K().jitOffset[i], e, t)) && (s.caret = i); else for (var m = i + 1, f = j(i); m <= f; m++) if (!1 !== (s = r(m, e, t))) { (s = L(i, s.pos !== oe ? s.pos : m) || s), (i = m); break; } } else s = { caret: j(i) }; } !1 !== s || !1 === U.keepStatic || (null != U.regex && !Y(M())) || t || !0 === n || (s = T(i, e, t, l)), !0 === s && (s = { pos: i }); } if ( re.isFunction(U.postValidation) && !1 !== s && !t && !0 !== l && !0 !== a ) { var p = U.postValidation( M(!0), u.begin !== oe ? (g ? u.end : u.begin) : u, s, U ); if (p !== oe) { if (p.refreshFromBuffer && p.buffer) { var h = p.refreshFromBuffer; A(!0 === h ? h : h.start, h.end, p.buffer); } s = !0 === p ? s : p; } } return ( s && s.pos === oe && (s.pos = i), (!1 !== s && !0 !== a) || (C(!0), (K().validPositions = re.extend(!0, {}, o))), s ); } function L(e, t, n) { var a; if (e === oe) for (e = t - 1; e > 0 && !K().validPositions[e]; e--); for (var i = e; i < t; i++) { var r; if (K().validPositions[i] === oe && !F(i, !0)) if (0 == i ? E(i) : K().validPositions[i - 1]) { var s = S(i).slice(); "" === s[s.length - 1].match.def && s.pop(); var o = h(i, s); if ( (((o = re.extend({}, o, { input: R(i, o.match, !0) || o.match.def, })).generatedInput = !0), O(i, o, !0), !0 !== n) ) { var c = K().validPositions[t].input; (K().validPositions[t] = oe), (a = N(t, c, !0, !0)); } } } return a; } function O(e, t, n, a) { function i(e, t, n) { var a = t[e]; if ( a !== oe && ((null === a.match.fn && !0 !== a.match.optionality) || a.input === U.radixPoint) ) { var i = n.begin <= e - 1 ? t[e - 1] && null === t[e - 1].match.fn && t[e - 1] : t[e - 1], r = n.end > e + 1 ? t[e + 1] && null === t[e + 1].match.fn && t[e + 1] : t[e + 1]; return i && r; } return !1; } var r = e.begin !== oe ? e.begin : e, s = e.end !== oe ? e.end : e; if ( (e.begin > e.end && ((r = e.end), (s = e.begin)), (a = a !== oe ? a : r), r !== s || (U.insertMode && K().validPositions[a] !== oe && n === oe)) ) { var o = re.extend(!0, {}, K().validPositions), c = x(oe, !0), u; for (K().p = r, u = c; u >= r; u--) K().validPositions[u] && "+" === K().validPositions[u].match.nativeDef && (U.isNegative = !1), delete K().validPositions[u]; var l = !0, d = a, m = K().validPositions, f = !1, p = d, u = d; for ( t && ((K().validPositions[a] = re.extend(!0, {}, t)), p++, d++, r < s && u++); u <= c; u++ ) { var h = o[u]; if ( h !== oe && (u >= s || (u >= r && !0 !== h.generatedInput && i(u, o, { begin: r, end: s }))) ) { for (; "" !== E(p).match.def; ) { if ( !1 === f && o[p] && o[p].match.nativeDef === h.match.nativeDef ) (K().validPositions[p] = re.extend(!0, {}, o[p])), (K().validPositions[p].input = h.input), L(oe, p, !0), (d = p + 1), (l = !0); else if (U.shiftPositions && b(p, h.match.def)) { var g = N(p, h.input, !0, !0); (l = !1 !== g), (d = g.caret || g.insert ? x() : p + 1), (f = !0); } else l = !0 === h.generatedInput || (h.input === U.radixPoint && !0 === U.numericInput); if (l) break; if ( !l && p > s && F(p, !0) && (null !== h.match.fn || p > K().maskLength) ) break; p++; } "" == E(p).match.def && (l = !1), (p = d); } if (!l) break; } if (!l) return (K().validPositions = re.extend(!0, {}, o)), C(!0), !1; } else t && (K().validPositions[a] = re.extend(!0, {}, t)); return C(!0), !0; } function F(e, t) { var n = y(e).match; if (("" === n.def && (n = E(e).match), null != n.fn)) return n.fn; if (!0 !== t && e > -1) { var a = S(e); return a.length > 1 + ("" === a[a.length - 1].match.def ? 1 : 0); } return !1; } function j(e, t) { for ( var n = e + 1; "" !== E(n).match.def && ((!0 === t && (!0 !== E(n).match.newBlockMarker || !F(n))) || (!0 !== t && !F(n))); ) n++; return n; } function G(e, t) { var n = e, a; if (n <= 0) return 0; for ( ; --n > 0 && ((!0 === t && !0 !== E(n).match.newBlockMarker) || (!0 !== t && !F(n) && ((a = S(n)).length < 2 || (2 === a.length && "" === a[1].match.def)))); ); return n; } function B(e, t, n, a, i) { if (a && re.isFunction(U.onBeforeWrite)) { var r = U.onBeforeWrite.call(d, a, t, n, U); if (r) { if (r.refreshFromBuffer) { var s = r.refreshFromBuffer; A(!0 === s ? s : s.start, s.end, r.buffer || t), (t = M(!0)); } n !== oe && (n = r.caret !== oe ? r.caret : n); } } if ( e !== oe && (e.inputmask._valueSet(t.join("")), n === oe || (a !== oe && "blur" === a.type) ? $(e, n, 0 === t.length) : q(e, n), !0 === i) ) { var o = re(e), c = e.inputmask._valueGet(); (l = !0), o.trigger("input"), setTimeout(function () { c === D().join("") ? o.trigger("cleared") : !0 === Y(t) && o.trigger("complete"); }, 0); } } function R(e, t, n) { if ((t = t || E(e).match).placeholder !== oe || !0 === n) return re.isFunction(t.placeholder) ? t.placeholder(U) : t.placeholder; if (null === t.fn) { if (e > -1 && K().validPositions[e] === oe) { var a = S(e), i = [], r; if (a.length > 1 + ("" === a[a.length - 1].match.def ? 1 : 0)) for (var s = 0; s < a.length; s++) if ( !0 !== a[s].match.optionality && !0 !== a[s].match.optionalQuantifier && (null === a[s].match.fn || r === oe || !1 !== a[s].match.fn.test(r.match.def, K(), e, !0, U)) && (i.push(a[s]), null === a[s].match.fn && (r = a[s]), i.length > 1 && /[0-9a-bA-Z]/.test(i[0].match.def)) ) return U.placeholder.charAt(e % U.placeholder.length); } return t.def; } return U.placeholder.charAt(e % U.placeholder.length); } function c(e, t) { if (ue) { if ( e.inputmask._valueGet() !== t && (e.placeholder !== t || "" === e.placeholder) ) { var n = M().slice(), a = e.inputmask._valueGet(); if (a !== t) { var i = x(); -1 === i && a === D().join("") ? (n = []) : -1 !== i && Z(n), B(e, n); } } } else e.placeholder !== t && ((e.placeholder = t), "" === e.placeholder && e.removeAttribute("placeholder")); } var z = { on: function e(t, n, s) { var a = function e(t) { var n = this; if (n.inputmask === oe && "FORM" !== this.nodeName) { var a = re.data(n, "_inputmask_opts"); a ? new fe(a).mask(n) : z.off(n); } else { if ( "setvalue" === t.type || "FORM" === this.nodeName || !( n.disabled || (n.readOnly && !( ("keydown" === t.type && t.ctrlKey && 67 === t.keyCode) || (!1 === U.tabThrough && t.keyCode === fe.keyCode.TAB) )) ) ) { switch (t.type) { case "input": if (!0 === l) return (l = !1), t.preventDefault(); if (le) { var i = arguments; return ( setTimeout(function () { s.apply(n, i), q(n, n.inputmask.caretPos, oe, !0); }, 0), !1 ); } break; case "keydown": (o = !1), (l = !1); break; case "keypress": if (!0 === o) return t.preventDefault(); o = !0; break; case "click": if (de || me) { var i = arguments; return ( setTimeout(function () { s.apply(n, i); }, 0), !1 ); } } var r = s.apply(n, arguments); return ( !1 === r && (t.preventDefault(), t.stopPropagation()), r ); } t.preventDefault(); } }; (t.inputmask.events[n] = t.inputmask.events[n] || []), t.inputmask.events[n].push(a), -1 !== re.inArray(n, ["submit", "reset"]) ? null !== t.form && re(t.form).on(n, a) : re(t).on(n, a); }, off: function e(a, t) { var n; a.inputmask && a.inputmask.events && (t ? ((n = [])[t] = a.inputmask.events[t]) : (n = a.inputmask.events), re.each(n, function (e, t) { for (; t.length > 0; ) { var n = t.pop(); -1 !== re.inArray(e, ["submit", "reset"]) ? null !== a.form && re(a.form).off(e, n) : re(a).off(e, n); } delete a.inputmask.events[e]; })); }, }, H = { keydownEvent: function e(t) { var n = this, a = re(n), i = t.keyCode, r = q(n); if ( i === fe.keyCode.BACKSPACE || i === fe.keyCode.DELETE || (me && i === fe.keyCode.BACKSPACE_SAFARI) || (t.ctrlKey && i === fe.keyCode.X && !pe("cut")) ) t.preventDefault(), J(n, i, r), B( n, M(!0), K().p, t, n.inputmask._valueGet() !== M().join("") ); else if (i === fe.keyCode.END || i === fe.keyCode.PAGE_DOWN) { t.preventDefault(); var s = j(x()); q(n, t.shiftKey ? r.begin : s, s, !0); } else (i === fe.keyCode.HOME && !t.shiftKey) || i === fe.keyCode.PAGE_UP ? (t.preventDefault(), q(n, 0, t.shiftKey ? r.begin : 0, !0)) : ((U.undoOnEscape && i === fe.keyCode.ESCAPE) || (90 === i && t.ctrlKey)) && !0 !== t.altKey ? (V(n, !0, !1, _.split("")), a.trigger("click")) : i !== fe.keyCode.INSERT || t.shiftKey || t.ctrlKey ? !0 === U.tabThrough && i === fe.keyCode.TAB && (!0 === t.shiftKey ? (null === E(r.begin).match.fn && (r.begin = j(r.begin)), (r.end = G(r.begin, !0)), (r.begin = G(r.end, !0))) : ((r.begin = j(r.begin, !0)), (r.end = j(r.begin, !0)), r.end < K().maskLength && r.end--), r.begin < K().maskLength && (t.preventDefault(), q(n, r.begin, r.end))) : ((U.insertMode = !U.insertMode), n.setAttribute("im-insert", U.insertMode)); U.onKeyDown.call(this, t, M(), q(n).begin, U), (k = -1 !== re.inArray(i, U.ignorables)); }, keypressEvent: function e(t, n, a, i, r) { var s = this, o = re(s), c = t.which || t.charCode || t.keyCode; if ( !(!0 === n || (t.ctrlKey && t.altKey)) && (t.ctrlKey || t.metaKey || k) ) return ( c === fe.keyCode.ENTER && _ !== M().join("") && ((_ = M().join("")), setTimeout(function () { o.trigger("change"); }, 0)), !0 ); if (c) { 46 === c && !1 === t.shiftKey && "" !== U.radixPoint && (c = U.radixPoint.charCodeAt(0)); var u = n ? { begin: r, end: r } : q(s), l, d = String.fromCharCode(c), m = 0; if (U._radixDance && U.numericInput) { var f = M().indexOf(U.radixPoint.charAt(0)) + 1; u.begin <= f && (c === U.radixPoint.charCodeAt(0) && (m = 1), (u.begin -= 1), (u.end -= 1)); } K().writeOutBuffer = !0; var p = N(u, d, i); if ( (!1 !== p && (C(!0), (l = p.caret !== oe ? p.caret : j(p.pos.begin ? p.pos.begin : p.pos)), (K().p = l)), (l = (U.numericInput && p.caret === oe ? G(l) : l) + m), !1 !== a && (setTimeout(function () { U.onKeyValidation.call(s, c, p, U); }, 0), K().writeOutBuffer && !1 !== p)) ) { var h = M(); B(s, h, l, t, !0 !== n); } if ((t.preventDefault(), n)) return !1 !== p && (p.forwardPosition = l), p; } }, pasteEvent: function e(t) { var n = this, a = t.originalEvent || t, i = re(n), r = n.inputmask._valueGet(!0), s = q(n), o; g && ((o = s.end), (s.end = s.begin), (s.begin = o)); var c = r.substr(0, s.begin), u = r.substr(s.end, r.length); if ( (c === (g ? D().reverse() : D()).slice(0, s.begin).join("") && (c = ""), u === (g ? D().reverse() : D()).slice(s.end).join("") && (u = ""), se.clipboardData && se.clipboardData.getData) ) r = c + se.clipboardData.getData("Text") + u; else { if (!a.clipboardData || !a.clipboardData.getData) return !0; r = c + a.clipboardData.getData("text/plain") + u; } var l = r; if (re.isFunction(U.onBeforePaste)) { if (!1 === (l = U.onBeforePaste.call(d, r, U))) return t.preventDefault(); l || (l = r); } return ( V(n, !1, !1, l.toString().split("")), B(n, M(), j(x()), t, _ !== M().join("")), t.preventDefault() ); }, inputFallBackEvent: function e(t) { function n(e, t, n) { return ( "." === t.charAt(n.begin - 1) && "" !== U.radixPoint && (((t = t.split(""))[n.begin - 1] = U.radixPoint.charAt(0)), (t = t.join(""))), t ); } function a(e, t, n) { if (de) { var a = t.replace(M().join(""), ""); if (1 === a.length) { var i = t.split(""); i.splice(n.begin, 0, a), (t = i.join("")); } } return t; } var i = this, r = i.inputmask._valueGet(); if (M().join("") !== r) { var s = q(i); if ( ((r = n(i, r, s)), (r = a(i, r, s)), M().join("") !== r) ) { var o = M().join(""), c = !U.numericInput && r.length > o.length ? -1 : 0, u = r.substr(0, s.begin), l = r.substr(s.begin), d = o.substr(0, s.begin + c), m = o.substr(s.begin + c), f = s, p = "", h = !1; if (u !== d) { var g = (h = u.length >= d.length) ? u.length : d.length, _; for (_ = 0; u.charAt(_) === d.charAt(_) && _ < g; _++); h && ((f.begin = _ - c), (p += u.slice(_, f.end))); } if ( (l !== m && (l.length > m.length ? (p += l.slice(0, 1)) : l.length < m.length && ((f.end += m.length - l.length), h || "" === U.radixPoint || "" !== l || u.charAt(f.begin + c - 1) !== U.radixPoint || (f.begin--, (p = U.radixPoint)))), B(i, M(), { begin: f.begin + c, end: f.end + c }), p.length > 0) ) re.each(p.split(""), function (e, t) { var n = new re.Event("keypress"); (n.which = t.charCodeAt(0)), (k = !1), H.keypressEvent.call(i, n); }); else { f.begin === f.end - 1 && ((f.begin = G(f.begin + 1)), f.begin === f.end - 1 ? q(i, f.begin) : q(i, f.begin, f.end)); var v = new re.Event("keydown"); (v.keyCode = U.numericInput ? fe.keyCode.BACKSPACE : fe.keyCode.DELETE), H.keydownEvent.call(i, v); } t.preventDefault(); } } }, beforeInputEvent: function e(t) { if (t.cancelable) { var a = this; switch (t.inputType) { case "insertText": return ( re.each(t.data.split(""), function (e, t) { var n = new re.Event("keypress"); (n.which = t.charCodeAt(0)), (k = !1), H.keypressEvent.call(a, n); }), t.preventDefault() ); case "deleteContentBackward": var n; return ( ((n = new re.Event("keydown")).keyCode = fe.keyCode.BACKSPACE), H.keydownEvent.call(a, n), t.preventDefault() ); case "deleteContentForward": var n; return ( ((n = new re.Event("keydown")).keyCode = fe.keyCode.DELETE), H.keydownEvent.call(a, n), t.preventDefault() ); } } }, setValueEvent: function e(t) { this.inputmask.refreshValue = !1; var n = this, a, a = (a = t && t.detail ? t.detail[0] : arguments[1]) || n.inputmask._valueGet(!0); re.isFunction(U.onBeforeMask) && (a = U.onBeforeMask.call(d, a, U) || a), V(n, !0, !1, (a = a.toString().split(""))), (_ = M().join("")), (U.clearMaskOnLostFocus || U.clearIncomplete) && n.inputmask._valueGet() === D().join("") && n.inputmask._valueSet(""); }, focusEvent: function e(t) { var n = this, a = n.inputmask._valueGet(); U.showMaskOnFocus && (a !== M().join("") ? B(n, M(), j(x())) : !1 === i && q(n, j(x()))), !0 === U.positionCaretOnTab && !1 === i && H.clickEvent.apply(n, [t, !0]), (_ = M().join("")); }, mouseleaveEvent: function e(t) { var n = this; (i = !1), U.clearMaskOnLostFocus && ce.activeElement !== n && c(n, s); }, clickEvent: function e(t, u) { function l(e) { if ("" !== U.radixPoint) { var t = K().validPositions; if (t[e] === oe || t[e].input === R(e)) { if (e < j(-1)) return !0; var n = re.inArray(U.radixPoint, M()); if (-1 !== n) { for (var a in t) if (n < a && t[a].input !== R(a)) return !1; return !0; } } } return !1; } var d = this; setTimeout(function () { if (ce.activeElement === d) { var e = q(d); if ( (u && (g ? (e.end = e.begin) : (e.begin = e.end)), e.begin === e.end) ) switch (U.positionCaretOnClick) { case "none": break; case "select": q(d, 0, M().length); break; case "ignore": q(d, j(x())); break; case "radixFocus": if (l(e.begin)) { var t = M().join("").indexOf(U.radixPoint); q(d, U.numericInput ? j(t) : t); break; } default: var n = e.begin, a = x(n, !0), i = j(a); if (n < i) q(d, F(n, !0) || F(n - 1, !0) ? n : j(n)); else { var r = K().validPositions[a], s = y(i, r ? r.match.locator : oe, r), o = R(i, s.match); if ( ("" !== o && M()[i] !== o && !0 !== s.match.optionalQuantifier && !0 !== s.match.newBlockMarker) || (!F(i, U.keepStatic) && s.match.def === o) ) { var c = j(i); (n >= c || n === i) && (i = c); } q(d, i); } } } }, 0); }, cutEvent: function e(t) { var n = this, a = re(n), i = q(n), r = t.originalEvent || t, s = se.clipboardData || r.clipboardData, o = g ? M().slice(i.end, i.begin) : M().slice(i.begin, i.end); s.setData("text", g ? o.reverse().join("") : o.join("")), ce.execCommand && ce.execCommand("copy"), J(n, fe.keyCode.DELETE, i), B(n, M(), K().p, t, _ !== M().join("")); }, blurEvent: function e(t) { var n = re(this), a = this; if (a.inputmask) { c(a, s); var i = a.inputmask._valueGet(), r = M().slice(); ("" === i && p === oe) || (U.clearMaskOnLostFocus && (-1 === x() && i === D().join("") ? (r = []) : Z(r)), !1 === Y(r) && (setTimeout(function () { n.trigger("incomplete"); }, 0), U.clearIncomplete && (C(), (r = U.clearMaskOnLostFocus ? [] : D().slice()))), B(a, r, oe, t)), _ !== M().join("") && ((_ = r.join("")), n.trigger("change")); } }, mouseenterEvent: function e(t) { var n = this; (i = !0), ce.activeElement !== n && U.showMaskOnHover && c(n, (g ? M().slice().reverse() : M()).join("")); }, submitEvent: function e(t) { _ !== M().join("") && r.trigger("change"), U.clearMaskOnLostFocus && -1 === x() && u.inputmask._valueGet && u.inputmask._valueGet() === D().join("") && u.inputmask._valueSet(""), U.clearIncomplete && !1 === Y(M()) && u.inputmask._valueSet(""), U.removeMaskOnSubmit && (u.inputmask._valueSet(u.inputmask.unmaskedvalue(), !0), setTimeout(function () { B(u, M()); }, 0)); }, resetEvent: function e(t) { (u.inputmask.refreshValue = !0), setTimeout(function () { r.trigger("setvalue"); }, 0); }, }, X; function V(i, e, r, t, n) { var s = this || i.inputmask, o = t.slice(), c = "", u = -1, l = oe; function d(e, t) { var n; return ( -1 !== f(!0, 0, !1) .slice(e, j(e)) .join("") .replace(/'/g, "") .indexOf(t) && !F(e) && (E(e).match.nativeDef === t.charAt(0) || (null === E(e).match.fn && E(e).match.nativeDef === "'" + t.charAt(0)) || (" " === E(e).match.nativeDef && (E(e + 1).match.nativeDef === t.charAt(0) || (null === E(e + 1).match.fn && E(e + 1).match.nativeDef === "'" + t.charAt(0))))) ); } if ((C(), r || !0 === U.autoUnmask)) u = j(u); else { var a = D().slice(0, j(-1)).join(""), m = o.join("").match(new RegExp("^" + fe.escapeRegex(a), "g")); m && m.length > 0 && (o.splice(0, m.length * a.length), (u = j(u))); } -1 === u ? ((K().p = j(u)), (u = 0)) : (K().p = u), (s.caretPos = { begin: u }), re.each(o, function (e, t) { if (t !== oe) if ( K().validPositions[e] === oe && o[e] === R(e) && F(e, !0) && !1 === N(e, o[e], !0, oe, oe, !0) ) K().p++; else { var n = new re.Event("_checkval"); (n.which = t.charCodeAt(0)), (c += t); var a = x(oe, !0); d(u, c) ? (l = H.keypressEvent.call(i, n, !0, !1, r, a + 1)) : (l = H.keypressEvent.call( i, n, !0, !1, r, s.caretPos.begin )) && ((u = s.caretPos.begin + 1), (c = "")), l && (B(oe, M(), l.forwardPosition, n, !1), (s.caretPos = { begin: l.forwardPosition, end: l.forwardPosition, })); } }), e && B( i, M(), l ? l.forwardPosition : oe, n || new re.Event("checkval"), n && "input" === n.type ); } function n(e) { if (e) { if (e.inputmask === oe) return e.value; e.inputmask && e.inputmask.refreshValue && H.setValueEvent.call(e); } var t = [], n = K().validPositions; for (var a in n) n[a].match && null != n[a].match.fn && t.push(n[a].input); var i = 0 === t.length ? "" : (g ? t.reverse() : t).join(""); if (re.isFunction(U.onUnMask)) { var r = (g ? M().slice().reverse() : M()).join(""); i = U.onUnMask.call(d, r, i, U); } return i; } function q(e, t, n, a) { function i(e) { return ( !g || "number" != typeof e || (U.greedy && "" === U.placeholder) || !u || (e = u.inputmask._valueGet().length - e), e ); } var r; if (t === oe) return ( "selectionStart" in e ? ((t = e.selectionStart), (n = e.selectionEnd)) : se.getSelection ? ((r = se.getSelection().getRangeAt(0)) .commonAncestorContainer.parentNode !== e && r.commonAncestorContainer !== e) || ((t = r.startOffset), (n = r.endOffset)) : ce.selection && ce.selection.createRange && (n = (t = 0 - (r = ce.selection.createRange()) .duplicate() .moveStart( "character", -e.inputmask._valueGet().length )) + r.text.length), { begin: a ? t : i(t), end: a ? n : i(n) } ); if ( (re.isArray(t) && ((n = g ? t[0] : t[1]), (t = g ? t[1] : t[0])), t.begin !== oe && ((n = g ? t.begin : t.end), (t = g ? t.end : t.begin)), "number" == typeof t) ) { (t = a ? t : i(t)), (n = "number" == typeof (n = a ? n : i(n)) ? n : t); var s = parseInt( ((e.ownerDocument.defaultView || se).getComputedStyle ? (e.ownerDocument.defaultView || se).getComputedStyle( e, null ) : e.currentStyle ).fontSize ) * n; if ( ((e.scrollLeft = s > e.scrollWidth ? s : 0), (e.inputmask.caretPos = { begin: t, end: n }), e === ce.activeElement) ) { if ("selectionStart" in e) (e.selectionStart = t), (e.selectionEnd = n); else if (se.getSelection) { if ( ((r = ce.createRange()), e.firstChild === oe || null === e.firstChild) ) { var o = ce.createTextNode(""); e.appendChild(o); } r.setStart( e.firstChild, t < e.inputmask._valueGet().length ? t : e.inputmask._valueGet().length ), r.setEnd( e.firstChild, n < e.inputmask._valueGet().length ? n : e.inputmask._valueGet().length ), r.collapse(!0); var c = se.getSelection(); c.removeAllRanges(), c.addRange(r); } else e.createTextRange && ((r = e.createTextRange()).collapse(!0), r.moveEnd("character", n), r.moveStart("character", t), r.select()); $(e, { begin: t, end: n }); } } } function W(e) { var t = f(!0, x(), !0, !0), n = t.length, a, i = x(), r = {}, s = K().validPositions[i], o = s !== oe ? s.locator.slice() : oe, c; for (a = i + 1; a < t.length; a++) (o = (c = y(a, o, a - 1)).locator.slice()), (r[a] = re.extend(!0, {}, c)); var u = s && s.alternation !== oe ? s.locator[s.alternation] : oe; for ( a = n - 1; a > i && ((c = r[a]).match.optionality || (c.match.optionalQuantifier && c.match.newBlockMarker) || (u && ((u !== r[a].locator[s.alternation] && null != c.match.fn) || (null === c.match.fn && c.locator[s.alternation] && P( c.locator[s.alternation].toString().split(","), u.toString().split(",") ) && "" !== S(a)[0].def)))) && t[a] === R(a, c.match); a-- ) n--; return e ? { l: n, def: r[n] ? r[n].match : oe } : n; } function Z(e) { e.length = 0; for (var t = f(!0, 0, !0, oe, !0), n; (n = t.shift()) !== oe; ) e.push(n); return e; } function Y(e) { if (re.isFunction(U.isComplete)) return U.isComplete(e, U); if ("*" === U.repeat) return oe; var t = !1, n = W(!0), a = G(n.l); if ( n.def === oe || n.def.newBlockMarker || n.def.optionality || n.def.optionalQuantifier ) { t = !0; for (var i = 0; i <= a; i++) { var r = y(i).match; if ( (null !== r.fn && K().validPositions[i] === oe && !0 !== r.optionality && !0 !== r.optionalQuantifier) || (null === r.fn && e[i] !== R(i, r)) ) { t = !1; break; } } } return t; } function J(e, t, n, a, i) { if ( (U.numericInput || g) && (t === fe.keyCode.BACKSPACE ? (t = fe.keyCode.DELETE) : t === fe.keyCode.DELETE && (t = fe.keyCode.BACKSPACE), g) ) { var r = n.end; (n.end = n.begin), (n.begin = r); } if ( (t === fe.keyCode.BACKSPACE && n.end - n.begin < 1 ? ((n.begin = G(n.begin)), K().validPositions[n.begin] !== oe && K().validPositions[n.begin].input === U.groupSeparator && n.begin--) : t === fe.keyCode.DELETE && n.begin === n.end && ((n.end = F(n.end, !0) && K().validPositions[n.end] && K().validPositions[n.end].input !== U.radixPoint ? n.end + 1 : j(n.end) + 1), K().validPositions[n.begin] !== oe && K().validPositions[n.begin].input === U.groupSeparator && n.end++), O(n), (!0 !== a && !1 !== U.keepStatic) || null !== U.regex) ) { var s = T(!0); if (s) { var o = s.caret !== oe ? s.caret : s.pos ? j(s.pos.begin ? s.pos.begin : s.pos) : x(-1, !0); (t !== fe.keyCode.DELETE || n.begin > o) && n.begin; } } var c = x(n.begin, !0); if (c < n.begin || -1 === n.begin) K().p = j(c); else if (!0 !== a && ((K().p = n.begin), !0 !== i)) for (; K().p < c && K().validPositions[K().p] === oe; ) K().p++; } function Q(u) { var l = (u.ownerDocument.defaultView || se).getComputedStyle( u, null ); function t(e) { var t = ce.createElement("span"), n; for (var a in l) isNaN(a) && -1 !== a.indexOf("font") && (t.style[a] = l[a]); (t.style.textTransform = l.textTransform), (t.style.letterSpacing = l.letterSpacing), (t.style.position = "absolute"), (t.style.height = "auto"), (t.style.width = "auto"), (t.style.visibility = "hidden"), (t.style.whiteSpace = "nowrap"), ce.body.appendChild(t); var i = u.inputmask._valueGet(), r = 0, s; for (n = 0, s = i.length; n <= s; n++) { if (((t.innerHTML += i.charAt(n) || "_"), t.offsetWidth >= e)) { var o = e - r, c = t.offsetWidth - e; (t.innerHTML = i.charAt(n)), (n = (o -= t.offsetWidth / 3) < c ? n - 1 : n); break; } r = t.offsetWidth; } return ce.body.removeChild(t), n; } var e = ce.createElement("div"); (e.style.width = l.width), (e.style.textAlign = l.textAlign), (p = ce.createElement("div")), (u.inputmask.colorMask = p), (p.className = "im-colormask"), u.parentNode.insertBefore(p, u), u.parentNode.removeChild(u), p.appendChild(u), p.appendChild(e), (u.style.left = e.offsetLeft + "px"), re(p).on("mouseleave", function (e) { return H.mouseleaveEvent.call(u, [e]); }), re(p).on("mouseenter", function (e) { return H.mouseenterEvent.call(u, [e]); }), re(p).on("click", function (e) { return q(u, t(e.clientX)), H.clickEvent.call(u, [e]); }); } function $(e, t, n) { var a = [], i = !1, r, s, o, c = 0; function u(e) { if ( (e === oe && (e = ""), i || (null !== r.fn && s.input !== oe)) ) if (i && ((null !== r.fn && s.input !== oe) || "" === r.def)) { i = !1; var t = a.length; (a[t - 1] = a[t - 1] + ""), a.push(e); } else a.push(e); else (i = !0), a.push("" + e); } function l() { ce.activeElement === e && (a.splice( t.begin, 0, t.begin === t.end || t.end > K().maskLength ? '' : '' ), a.splice(t.end + 1, 0, "")); } if (p !== oe) { var d = M(); if ( (t === oe ? (t = q(e)) : t.begin === oe && (t = { begin: t, end: t }), !0 !== n) ) { var m = x(); do { K().validPositions[c] ? ((s = K().validPositions[c]), (r = s.match), (o = s.locator.slice()), u(d[c])) : ((s = y(c, o, c - 1)), (r = s.match), (o = s.locator.slice()), !1 === U.jitMasking || c < m || ("number" == typeof U.jitMasking && isFinite(U.jitMasking) && U.jitMasking > c) ? u(R(c, r)) : (i = !1)), c++; } while ( ((v === oe || c < v) && (null !== r.fn || "" !== r.def)) || m > c || i ); i && u(), l(); } var f = p.getElementsByTagName("div")[0]; (f.innerHTML = a.join("")), e.inputmask.positionColorMask(e, f); } } function a(e) { function t(e, c) { function t(e) { var t, n; function a(e) { if ( re.valHooks && (re.valHooks[e] === oe || !0 !== re.valHooks[e].inputmaskpatch) ) { var a = re.valHooks[e] && re.valHooks[e].get ? re.valHooks[e].get : function (e) { return e.value; }, r = re.valHooks[e] && re.valHooks[e].set ? re.valHooks[e].set : function (e, t) { return (e.value = t), e; }; re.valHooks[e] = { get: function e(t) { if (t.inputmask) { if (t.inputmask.opts.autoUnmask) return t.inputmask.unmaskedvalue(); var n = a(t); return -1 !== x(oe, oe, t.inputmask.maskset.validPositions) || !0 !== c.nullable ? n : ""; } return a(t); }, set: function e(t, n) { var a = re(t), i; return ( (i = r(t, n)), t.inputmask && a.trigger("setvalue", [n]), i ); }, inputmaskpatch: !0, }; } } function i() { return this.inputmask ? this.inputmask.opts.autoUnmask ? this.inputmask.unmaskedvalue() : -1 !== x() || !0 !== c.nullable ? ce.activeElement === this && c.clearMaskOnLostFocus ? (g ? Z(M().slice()).reverse() : Z(M().slice())).join( "" ) : t.call(this) : "" : t.call(this); } function r(e) { n.call(this, e), this.inputmask && re(this).trigger("setvalue", [e]); } function s(e) { z.on(e, "mouseenter", function (e) { var t = re(this), n, a; this.inputmask._valueGet() !== M().join("") && t.trigger("setvalue"); }); } if (!e.inputmask.__valueGet) { if (!0 !== c.noValuePatching) { if (Object.getOwnPropertyDescriptor) { "function" != typeof Object.getPrototypeOf && (Object.getPrototypeOf = "object" === _typeof("test".__proto__) ? function (e) { return e.__proto__; } : function (e) { return e.constructor.prototype; }); var o = Object.getPrototypeOf ? Object.getOwnPropertyDescriptor( Object.getPrototypeOf(e), "value" ) : oe; o && o.get && o.set ? ((t = o.get), (n = o.set), Object.defineProperty(e, "value", { get: i, set: r, configurable: !0, })) : "INPUT" !== e.tagName && ((t = function e() { return this.textContent; }), (n = function e(t) { this.textContent = t; }), Object.defineProperty(e, "value", { get: i, set: r, configurable: !0, })); } else ce.__lookupGetter__ && e.__lookupGetter__("value") && ((t = e.__lookupGetter__("value")), (n = e.__lookupSetter__("value")), e.__defineGetter__("value", i), e.__defineSetter__("value", r)); (e.inputmask.__valueGet = t), (e.inputmask.__valueSet = n); } (e.inputmask._valueGet = function (e) { return g && !0 !== e ? t.call(this.el).split("").reverse().join("") : t.call(this.el); }), (e.inputmask._valueSet = function (e, t) { n.call( this.el, null === e || e === oe ? "" : !0 !== t && g ? e.split("").reverse().join("") : e ); }), t === oe && ((t = function e() { return this.value; }), (n = function e(t) { this.value = t; }), a(e.type), s(e)); } } var n = e.getAttribute("type"), a = ("INPUT" === e.tagName && -1 !== re.inArray(n, c.supportsInputType)) || e.isContentEditable || "TEXTAREA" === e.tagName; if (!a) if ("INPUT" === e.tagName) { var i = ce.createElement("input"); i.setAttribute("type", n), (a = "text" === i.type), (i = null); } else a = "partial"; return !1 !== a ? t(e) : (e.inputmask = oe), a; } z.off(e); var n = t(e, U); if ( !1 !== n && ((r = re((u = e))), (s = u.placeholder), -1 === (v = u !== oe ? u.maxLength : oe) && (v = oe), !0 === U.colorMask && Q(u), le && ("inputMode" in u && ((u.inputmode = U.inputmode), u.setAttribute("inputmode", U.inputmode)), !0 === U.disablePredictiveText && ("autocorrect" in u ? (u.autocorrect = !1) : (!0 !== U.colorMask && Q(u), (u.type = "password")))), !0 === n && (u.setAttribute("im-insert", U.insertMode), z.on(u, "submit", H.submitEvent), z.on(u, "reset", H.resetEvent), z.on(u, "blur", H.blurEvent), z.on(u, "focus", H.focusEvent), !0 !== U.colorMask && (z.on(u, "click", H.clickEvent), z.on(u, "mouseleave", H.mouseleaveEvent), z.on(u, "mouseenter", H.mouseenterEvent)), z.on(u, "paste", H.pasteEvent), z.on(u, "cut", H.cutEvent), z.on(u, "complete", U.oncomplete), z.on(u, "incomplete", U.onincomplete), z.on(u, "cleared", U.oncleared), le || !0 === U.inputEventOnly ? u.removeAttribute("maxLength") : (z.on(u, "keydown", H.keydownEvent), z.on(u, "keypress", H.keypressEvent)), z.on(u, "input", H.inputFallBackEvent), z.on(u, "beforeinput", H.beforeInputEvent)), z.on(u, "setvalue", H.setValueEvent), (_ = D().join("")), "" !== u.inputmask._valueGet(!0) || !1 === U.clearMaskOnLostFocus || ce.activeElement === u) ) { var a = (re.isFunction(U.onBeforeMask) && U.onBeforeMask.call(d, u.inputmask._valueGet(!0), U)) || u.inputmask._valueGet(!0); "" !== a && V(u, !0, !1, a.split("")); var i = M().slice(); (_ = i.join("")), !1 === Y(i) && U.clearIncomplete && C(), U.clearMaskOnLostFocus && ce.activeElement !== u && (-1 === x() ? (i = []) : Z(i)), (!1 === U.clearMaskOnLostFocus || (U.showMaskOnFocus && ce.activeElement === u) || "" !== u.inputmask._valueGet(!0)) && B(u, i), ce.activeElement === u && q(u, j(x())); } } if (e !== oe) switch (e.action) { case "isComplete": return (u = e.el), Y(M()); case "unmaskedvalue": return ( (u !== oe && e.value === oe) || ((X = e.value), (X = ( (re.isFunction(U.onBeforeMask) && U.onBeforeMask.call(d, X, U)) || X ).split("")), V.call(this, oe, !1, !1, X), re.isFunction(U.onBeforeWrite) && U.onBeforeWrite.call(d, oe, M(), 0, U)), n(u) ); case "mask": a(u); break; case "format": return ( (X = ( (re.isFunction(U.onBeforeMask) && U.onBeforeMask.call(d, e.value, U)) || e.value ).split("")), V.call(this, oe, !0, !1, X), e.metadata ? { value: g ? M().slice().reverse().join("") : M().join(""), metadata: he.call( this, { action: "getmetadata" }, t, U ), } : g ? M().slice().reverse().join("") : M().join("") ); case "isValid": e.value ? ((X = e.value.split("")), V.call(this, oe, !0, !0, X)) : (e.value = M().join("")); for ( var ee = M(), te = W(), ne = ee.length - 1; ne > te && !F(ne); ne-- ); return ( ee.splice(te, ne + 1 - te), Y(ee) && e.value === M().join("") ); case "getemptymask": return D().join(""); case "remove": var ae; if (u && u.inputmask) re.data(u, "_inputmask_opts", null), (r = re(u)), u.inputmask._valueSet( U.autoUnmask ? n(u) : u.inputmask._valueGet(!0) ), z.off(u), u.inputmask.colorMask && ((p = u.inputmask.colorMask).removeChild(u), p.parentNode.insertBefore(u, p), p.parentNode.removeChild(p)), Object.getOwnPropertyDescriptor && Object.getPrototypeOf ? (ae = Object.getOwnPropertyDescriptor( Object.getPrototypeOf(u), "value" )) && u.inputmask.__valueGet && Object.defineProperty(u, "value", { get: u.inputmask.__valueGet, set: u.inputmask.__valueSet, configurable: !0, }) : ce.__lookupGetter__ && u.__lookupGetter__("value") && u.inputmask.__valueGet && (u.__defineGetter__("value", u.inputmask.__valueGet), u.__defineSetter__("value", u.inputmask.__valueSet)), (u.inputmask = oe); return u; case "getmetadata": if (re.isArray(t.metadata)) { var ie = f(!0, 0, !1).join(""); return ( re.each(t.metadata, function (e, t) { if (t.mask === ie) return (ie = t), !1; }), ie ); } return t.metadata; } } return ( (fe.prototype = { dataAttribute: "data-inputmask", defaults: { placeholder: "_", optionalmarker: ["[", "]"], quantifiermarker: ["{", "}"], groupmarker: ["(", ")"], alternatormarker: "|", escapeChar: "\\", mask: null, regex: null, oncomplete: re.noop, onincomplete: re.noop, oncleared: re.noop, repeat: 0, greedy: !1, autoUnmask: !1, removeMaskOnSubmit: !1, clearMaskOnLostFocus: !0, insertMode: !0, clearIncomplete: !1, alias: null, onKeyDown: re.noop, onBeforeMask: null, onBeforePaste: function (e, t) { return re.isFunction(t.onBeforeMask) ? t.onBeforeMask.call(this, e, t) : e; }, onBeforeWrite: null, onUnMask: null, showMaskOnFocus: !0, showMaskOnHover: !0, onKeyValidation: re.noop, skipOptionalPartCharacter: " ", numericInput: !1, rightAlign: !1, undoOnEscape: !0, radixPoint: "", _radixDance: !1, groupSeparator: "", keepStatic: null, positionCaretOnTab: !0, tabThrough: !1, supportsInputType: ["text", "tel", "url", "password", "search"], ignorables: [ 8, 9, 13, 19, 27, 33, 34, 35, 36, 37, 38, 39, 40, 45, 46, 93, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 0, 229, ], isComplete: null, preValidation: null, postValidation: null, staticDefinitionSymbol: oe, jitMasking: !1, nullable: !0, inputEventOnly: !1, noValuePatching: !1, positionCaretOnClick: "lvp", casing: null, inputmode: "verbatim", colorMask: !1, disablePredictiveText: !1, importDataAttributes: !0, shiftPositions: !0, }, definitions: { 9: { validator: "[0-91-9]", definitionSymbol: "*" }, a: { validator: "[A-Za-zА-яЁёÀ-ÿµ]", definitionSymbol: "*" }, "*": { validator: "[0-91-9A-Za-zА-яЁёÀ-ÿµ]" }, }, aliases: {}, masksCache: {}, mask: function (e) { var i = this; return ( "string" == typeof e && (e = ce.getElementById(e) || ce.querySelectorAll(e)), (e = e.nodeName ? [e] : e), re.each(e, function (e, t) { var n = re.extend(!0, {}, i.opts); if ( (function (n, e, a, i) { if (!0 === e.importDataAttributes) { var t, r, s, o, c = n.getAttribute(i), u = function (e, t) { null !== (t = t !== oe ? t : n.getAttribute(i + "-" + e)) && ("string" == typeof t && (0 === e.indexOf("on") ? (t = se[t]) : "false" === t ? (t = !1) : "true" === t && (t = !0)), (a[e] = t)); }; if ( (c && "" !== c && ((c = c.replace(/'/g, '"')), (r = JSON.parse("{" + c + "}"))), r) ) for (o in ((s = oe), r)) if ("alias" === o.toLowerCase()) { s = r[o]; break; } for (t in (u("alias", s), a.alias && l(a.alias, a, e), e)) { if (r) for (o in ((s = oe), r)) if (o.toLowerCase() === t.toLowerCase()) { s = r[o]; break; } u(t, s); } } return ( re.extend(!0, e, a), ("rtl" !== n.dir && !e.rightAlign) || (n.style.textAlign = "right"), ("rtl" !== n.dir && !e.numericInput) || ((n.dir = "ltr"), n.removeAttribute("dir"), (e.isRTL = !0)), Object.keys(a).length ); })(t, n, re.extend(!0, {}, i.userOptions), i.dataAttribute) ) { var a = r(n, i.noMasksCache); a !== oe && (t.inputmask !== oe && ((t.inputmask.opts.autoUnmask = !0), t.inputmask.remove()), (t.inputmask = new fe(oe, oe, !0)), (t.inputmask.opts = n), (t.inputmask.noMasksCache = i.noMasksCache), (t.inputmask.userOptions = re.extend( !0, {}, i.userOptions )), (t.inputmask.isRTL = n.isRTL || n.numericInput), ((t.inputmask.el = t).inputmask.maskset = a), re.data(t, "_inputmask_opts", n), he.call(t.inputmask, { action: "mask" })); } }), (e && e[0] && e[0].inputmask) || this ); }, option: function (e, t) { return "string" == typeof e ? this.opts[e] : "object" === _typeof(e) ? (re.extend(this.userOptions, e), this.el && !0 !== t && this.mask(this.el), this) : void 0; }, unmaskedvalue: function (e) { return ( (this.maskset = this.maskset || r(this.opts, this.noMasksCache)), he.call(this, { action: "unmaskedvalue", value: e }) ); }, remove: function () { return he.call(this, { action: "remove" }); }, getemptymask: function () { return ( (this.maskset = this.maskset || r(this.opts, this.noMasksCache)), he.call(this, { action: "getemptymask" }) ); }, hasMaskedValue: function () { return !this.opts.autoUnmask; }, isComplete: function () { return ( (this.maskset = this.maskset || r(this.opts, this.noMasksCache)), he.call(this, { action: "isComplete" }) ); }, getmetadata: function () { return ( (this.maskset = this.maskset || r(this.opts, this.noMasksCache)), he.call(this, { action: "getmetadata" }) ); }, isValid: function (e) { return ( (this.maskset = this.maskset || r(this.opts, this.noMasksCache)), he.call(this, { action: "isValid", value: e }) ); }, format: function (e, t) { return ( (this.maskset = this.maskset || r(this.opts, this.noMasksCache)), he.call(this, { action: "format", value: e, metadata: t }) ); }, setValue: function (e) { this.el && re(this.el).trigger("setvalue", [e]); }, analyseMask: function (e, r, s) { var t, n, a, i, o, c, u = /(?:[?*+]|\{[0-9\+\*]+(?:,[0-9\+\*]*)?(?:\|[0-9\+\*]*)?\})|[^.?*+^${[]()|\\]+|./g, l = /\[\^?]?(?:[^\\\]]+|\\[\S\s]?)*]?|\\(?:0(?:[0-3][0-7]{0,2}|[4-7][0-7]?)?|[1-9][0-9]*|x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4}|c[A-Za-z]|[\S\s]?)|\((?:\?[:=!]?)?|(?:[?*+]|\{[0-9]+(?:,[0-9]*)?\})\??|[^.?*+^${[()|\\]+|./g, d = !1, m = new h(), f = [], p = []; function h(e, t, n, a) { (this.matches = []), (this.openGroup = e || !1), (this.alternatorGroup = !1), (this.isGroup = e || !1), (this.isOptional = t || !1), (this.isQuantifier = n || !1), (this.isAlternator = a || !1), (this.quantifier = { min: 1, max: 1 }); } function g(n, e, a) { a = a !== oe ? a : n.matches.length; var i = n.matches[a - 1]; if (r) 0 === e.indexOf("[") || (d && /\\d|\\s|\\w]/i.test(e)) || "." === e ? n.matches.splice(a++, 0, { fn: new RegExp(e, s.casing ? "i" : ""), optionality: !1, newBlockMarker: i === oe ? "master" : i.def !== e, casing: null, def: e, placeholder: oe, nativeDef: e, }) : (d && (e = e[e.length - 1]), re.each(e.split(""), function (e, t) { (i = n.matches[a - 1]), n.matches.splice(a++, 0, { fn: null, optionality: !1, newBlockMarker: i === oe ? "master" : i.def !== t && null !== i.fn, casing: null, def: s.staticDefinitionSymbol || t, placeholder: s.staticDefinitionSymbol !== oe ? t : oe, nativeDef: (d ? "'" : "") + t, }); })), (d = !1); else { var t = (s.definitions ? s.definitions[e] : oe) || fe.prototype.definitions[e]; t && !d ? n.matches.splice(a++, 0, { fn: t.validator ? "string" == typeof t.validator ? new RegExp(t.validator, s.casing ? "i" : "") : new (function () { this.test = t.validator; })() : new RegExp("."), optionality: !1, newBlockMarker: i === oe ? "master" : i.def !== (t.definitionSymbol || e), casing: t.casing, def: t.definitionSymbol || e, placeholder: t.placeholder, nativeDef: e, }) : (n.matches.splice(a++, 0, { fn: null, optionality: !1, newBlockMarker: i === oe ? "master" : i.def !== e && null !== i.fn, casing: null, def: s.staticDefinitionSymbol || e, placeholder: s.staticDefinitionSymbol !== oe ? e : oe, nativeDef: (d ? "'" : "") + e, }), (d = !1)); } } function _() { if (0 < f.length) { if ((g((i = f[f.length - 1]), n), i.isAlternator)) { o = f.pop(); for (var e = 0; e < o.matches.length; e++) o.matches[e].isGroup && (o.matches[e].isGroup = !1); 0 < f.length ? (i = f[f.length - 1]).matches.push(o) : m.matches.push(o); } } else g(m, n); } function v(e) { var t = new h(!0); return (t.openGroup = !1), (t.matches = e), t; } for ( r && ((s.optionalmarker[0] = oe), (s.optionalmarker[1] = oe)); (t = r ? l.exec(e) : u.exec(e)); ) { if (((n = t[0]), r)) switch (n.charAt(0)) { case "?": n = "{0,1}"; break; case "+": case "*": n = "{" + n + "}"; } if (d) _(); else switch (n.charAt(0)) { case "(?=": case "(?!": case "(?<=": case "(?= e.day) && t ); } function n(e, t) { var n = !0; if (t.min) { if (e.rawyear) { var a = e.rawyear.replace(/[^0-9]/g, ""), i; n = t.min.year.substr(0, a.length) <= a; } e.year === e.rawyear && t.min.date.getTime() == t.min.date.getTime() && (n = t.min.date.getTime() <= e.date.getTime()); } return ( n && t.max && t.max.date.getTime() == t.max.date.getTime() && (n = t.max.date.getTime() >= e.date.getTime()), n ); } function s(e, t, n, a) { for (var i = "", r; (r = f(n).exec(e)); ) { var s; if (void 0 === t) if (m[r[0]]) i += "(" + m[r[0]][0] + ")"; else switch (r[0]) { case "[": i += "("; break; case "]": i += ")?"; break; default: i += o.escapeRegex(r[0]); } else if (m[r[0]]) if (!0 !== a && m[r[0]][3]) i += m[r[0]][3].call(t.date); else m[r[0]][2] ? (i += t["raw" + m[r[0]][2]]) : (i += r[0]); else i += r[0]; } return i; } function u(e, t) { for (e = String(e), t = t || 2; e.length < t; ) e = "0" + e; return e; } function l(e, t, r) { var n = { date: new Date(1, 0, 1) }, s, a = e, i, o, c; function u(e) { var t = e.replace(/[^0-9]/g, "0"); if (t != e) { var n = e.replace(/[^0-9]/g, ""), a = ((r.min && r.min[s]) || e).toString(), i = ((r.max && r.max[s]) || e).toString(); t = n + (n < a.slice(0, n.length) ? a.slice(n.length) : n > i.slice(0, n.length) ? i.slice(n.length) : t.toString().slice(n.length)); } return t; } function l(e, t, n) { (e[s] = u(t)), (e["raw" + s] = t), void 0 !== o && o.call(e.date, "month" == s ? parseInt(e[s]) - 1 : e[s]); } if ("string" == typeof a) { for (; (i = f(r).exec(t)); ) { var d = a.slice(0, i[0].length); m.hasOwnProperty(i[0]) && ((c = m[i[0]][0]), (s = m[i[0]][2]), (o = m[i[0]][1]), l(n, d)), (a = a.slice(d.length)); } return n; } if (a && "object" === _typeof(a) && a.hasOwnProperty("date")) return a; } return ( o.extendAliases({ datetime: { mask: function (e) { return ( (m.S = e.i18n.ordinalSuffix.join("|")), (e.inputFormat = t[e.inputFormat] || e.inputFormat), (e.displayFormat = t[e.displayFormat] || e.displayFormat || e.inputFormat), (e.outputFormat = t[e.outputFormat] || e.outputFormat || e.inputFormat), (e.placeholder = "" !== e.placeholder ? e.placeholder : e.inputFormat.replace(/[\[\]]/, "")), (e.regex = s(e.inputFormat, void 0, e)), null ); }, placeholder: "", inputFormat: "isoDateTime", displayFormat: void 0, outputFormat: void 0, min: null, max: null, i18n: { dayNames: [ "Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday", ], 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", ], ordinalSuffix: ["st", "nd", "rd", "th"], }, postValidation: function (e, t, n, a) { (a.min = l(a.min, a.inputFormat, a)), (a.max = l(a.max, a.inputFormat, a)); var i = n, r = l(e.join(""), a.inputFormat, a); return ( i && r.date.getTime() == r.date.getTime() && (i = (i = (function (e, t) { return ( (!isFinite(e.rawday) || ("29" == e.day && !isFinite(e.rawyear)) || new Date( e.date.getFullYear(), isFinite(e.rawmonth) ? e.month : e.date.getMonth() + 1, 0 ).getDate() >= e.day) && t ); })(r, i)) && (function (e, t) { var n = !0; if (t.min) { if (e.rawyear) { var a = e.rawyear.replace(/[^0-9]/g, ""), i; n = t.min.year.substr(0, a.length) <= a; } e.year === e.rawyear && t.min.date.getTime() == t.min.date.getTime() && (n = t.min.date.getTime() <= e.date.getTime()); } return ( n && t.max && t.max.date.getTime() == t.max.date.getTime() && (n = t.max.date.getTime() >= e.date.getTime()), n ); })(r, a)), t && i && n.pos !== t ? { buffer: s(a.inputFormat, r, a), refreshFromBuffer: { start: t, end: n.pos }, } : i ); }, onKeyDown: function (e, t, n, a) { if (e.ctrlKey && e.keyCode === o.keyCode.RIGHT) { for ( var i, r = new Date(), s = ""; (i = f(a).exec(a.inputFormat)); ) "d" === i[0].charAt(0) ? (s += u(r.getDate(), i[0].length)) : "m" === i[0].charAt(0) ? (s += u(r.getMonth() + 1, i[0].length)) : "yyyy" === i[0] ? (s += r.getFullYear().toString()) : "y" === i[0].charAt(0) && (s += u(r.getYear(), i[0].length)); this.inputmask._valueSet(s), c(this).trigger("setvalue"); } }, onUnMask: function (e, t, n) { return s(n.outputFormat, l(e, n.inputFormat, n), n, !0); }, casing: function (e, t) { return 0 == t.nativeDef.indexOf("[ap]") ? e.toLowerCase() : 0 == t.nativeDef.indexOf("[AP]") ? e.toUpperCase() : e; }, insertMode: !1, shiftPositions: !1, }, }), o ); })(inputmask); }), inputmask_numeric_extensions = createCommonjsModule(function (e, t) { e.exports = (function (g) { var _ = g.dependencyLib; function s(e, t) { for (var n = "", a = 0; a < e.length; a++) g.prototype.definitions[e.charAt(a)] || t.definitions[e.charAt(a)] || t.optionalmarker.start === e.charAt(a) || t.optionalmarker.end === e.charAt(a) || t.quantifiermarker.start === e.charAt(a) || t.quantifiermarker.end === e.charAt(a) || t.groupmarker.start === e.charAt(a) || t.groupmarker.end === e.charAt(a) || t.alternatormarker === e.charAt(a) ? (n += "\\" + e.charAt(a)) : (n += e.charAt(a)); return n; } function e(e, t, n) { if (0 < t) { var a = _.inArray(n.radixPoint, e); -1 === a && (e.push(n.radixPoint), (a = e.length - 1)); for (var i = 1; i <= t; i++) e[a + i] = e[a + i] || "0"; } return e; } return ( g.extendAliases({ numeric: { mask: function (e) { if ( (0 !== e.repeat && isNaN(e.integerDigits) && (e.integerDigits = e.repeat), (e.repeat = 0), e.groupSeparator === e.radixPoint && e.digits && "0" !== e.digits && ("." === e.radixPoint ? (e.groupSeparator = ",") : "," === e.radixPoint ? (e.groupSeparator = ".") : (e.groupSeparator = "")), " " === e.groupSeparator && (e.skipOptionalPartCharacter = void 0), (e.autoGroup = e.autoGroup && "" !== e.groupSeparator), e.autoGroup && ("string" == typeof e.groupSize && isFinite(e.groupSize) && (e.groupSize = parseInt(e.groupSize)), isFinite(e.integerDigits))) ) { var t = Math.floor(e.integerDigits / e.groupSize), n = e.integerDigits % e.groupSize; (e.integerDigits = parseInt(e.integerDigits) + (0 == n ? t - 1 : t)), e.integerDigits < 1 && (e.integerDigits = "*"); } 1 < e.placeholder.length && (e.placeholder = e.placeholder.charAt(0)), "radixFocus" === e.positionCaretOnClick && "" === e.placeholder && !1 === e.integerOptional && (e.positionCaretOnClick = "lvp"), (e.definitions[";"] = e.definitions["~"]), (e.definitions[";"].definitionSymbol = "~"), !0 === e.numericInput && ((e.positionCaretOnClick = "radixFocus" === e.positionCaretOnClick ? "lvp" : e.positionCaretOnClick), (e.digitsOptional = !1), isNaN(e.digits) && (e.digits = 2), (e.decimalProtect = !1)); var a = "[+]"; if ( ((a += s(e.prefix, e)), !0 === e.integerOptional ? (a += "~{1," + e.integerDigits + "}") : (a += "~{" + e.integerDigits + "}"), void 0 !== e.digits) ) { var i = e.decimalProtect ? ":" : e.radixPoint, r = e.digits.toString().split(","); isFinite(r[0]) && r[1] && isFinite(r[1]) ? (a += i + ";{" + e.digits + "}") : (isNaN(e.digits) || 0 < parseInt(e.digits)) && (e.digitsOptional ? (a += "[" + i + ";{1," + e.digits + "}]") : (a += i + ";{" + e.digits + "}")); } return (a += s(e.suffix, e)), (a += "[-]"), (e.greedy = !1), a; }, placeholder: "", greedy: !1, digits: "*", digitsOptional: !0, enforceDigitsOnBlur: !1, radixPoint: ".", positionCaretOnClick: "radixFocus", groupSize: 3, groupSeparator: "", autoGroup: !1, allowMinus: !0, negationSymbol: { front: "-", back: "" }, integerDigits: "+", integerOptional: !0, prefix: "", suffix: "", rightAlign: !0, decimalProtect: !0, min: null, max: null, step: 1, insertMode: !0, autoUnmask: !1, unmaskAsNumber: !1, inputType: "text", inputmode: "numeric", preValidation: function (e, t, n, a, i, r) { if ("-" === n || n === i.negationSymbol.front) return ( !0 === i.allowMinus && ((i.isNegative = void 0 === i.isNegative || !i.isNegative), "" === e.join("") || { caret: r.validPositions[t] ? t : void 0, dopost: !0, }) ); if ( !1 === a && n === i.radixPoint && void 0 !== i.digits && (isNaN(i.digits) || 0 < parseInt(i.digits)) ) { var s = _.inArray(i.radixPoint, e); if (-1 !== s && void 0 !== r.validPositions[s]) return !0 === i.numericInput ? t === s : { caret: s + 1 }; } return !0; }, postValidation: function (e, t, n, a) { var i = a.suffix.split(""), r = a.prefix.split(""); if (void 0 === n.pos && void 0 !== n.caret && !0 !== n.dopost) return n; var s = void 0 !== n.caret ? n.caret : n.pos, o = e.slice(); a.numericInput && ((s = o.length - s - 1), (o = o.reverse())); var c = o[s]; if ( (c === a.groupSeparator && (c = o[(s += 1)]), s === o.length - a.suffix.length - 1 && c === a.radixPoint) ) return n; void 0 !== c && c !== a.radixPoint && c !== a.negationSymbol.front && c !== a.negationSymbol.back && ((o[s] = "?"), 0 < a.prefix.length && s >= (!1 === a.isNegative ? 1 : 0) && s < a.prefix.length - 1 + (!1 === a.isNegative ? 1 : 0) ? (r[s - (!1 === a.isNegative ? 1 : 0)] = "?") : 0 < a.suffix.length && s >= o.length - a.suffix.length - (!1 === a.isNegative ? 1 : 0) && (i[ s - (o.length - a.suffix.length - (!1 === a.isNegative ? 1 : 0)) ] = "?")), (r = r.join("")), (i = i.join("")); var u = o.join("").replace(r, ""); if ( ((u = (u = (u = (u = u.replace(i, "")).replace( new RegExp(g.escapeRegex(a.groupSeparator), "g"), "" )).replace( new RegExp( "[-" + g.escapeRegex(a.negationSymbol.front) + "]", "g" ), "" )).replace( new RegExp(g.escapeRegex(a.negationSymbol.back) + "$"), "" )), isNaN(a.placeholder) && (u = u.replace( new RegExp(g.escapeRegex(a.placeholder), "g"), "" )), 1 < u.length && 1 !== u.indexOf(a.radixPoint) && ("0" === c && (u = u.replace(/^\?/g, "")), (u = u.replace(/^0/g, ""))), u.charAt(0) === a.radixPoint && "" !== a.radixPoint && !0 !== a.numericInput && (u = "0" + u), "" !== u) ) { if ( ((u = u.split("")), (!a.digitsOptional || (a.enforceDigitsOnBlur && "blur" === n.event)) && isFinite(a.digits)) ) { var l = _.inArray(a.radixPoint, u), d = _.inArray(a.radixPoint, o); -1 === l && (u.push(a.radixPoint), (l = u.length - 1)); for (var m = 1; m <= a.digits; m++) (a.digitsOptional && (!a.enforceDigitsOnBlur || "blur" !== n.event)) || (void 0 !== u[l + m] && u[l + m] !== a.placeholder.charAt(0)) ? -1 !== d && void 0 !== o[d + m] && (u[l + m] = u[l + m] || o[d + m]) : (u[l + m] = n.placeholder || a.placeholder.charAt(0)); } if ( !0 !== a.autoGroup || "" === a.groupSeparator || (c === a.radixPoint && void 0 === n.pos && !n.dopost) ) u = u.join(""); else { var f = u[u.length - 1] === a.radixPoint && n.c === a.radixPoint; (u = g( (function (e, t) { var n = ""; if ( ((n += "(" + t.groupSeparator + "*{" + t.groupSize + "}){*}"), "" !== t.radixPoint) ) { var a = e.join("").split(t.radixPoint); a[1] && (n += t.radixPoint + "*{" + a[1].match(/^\d*\??\d*/)[0].length + "}"); } return n; })(u, a), { numericInput: !0, jitMasking: !0, definitions: { "*": { validator: "[0-9?]", cardinality: 1 }, }, } ).format(u.join(""))), f && (u += a.radixPoint), u.charAt(0) === a.groupSeparator && u.substr(1); } } if ( (a.isNegative && "blur" === n.event && (a.isNegative = "0" !== u), (u = r + u), (u += i), a.isNegative && ((u = a.negationSymbol.front + u), (u += a.negationSymbol.back)), (u = u.split("")), void 0 !== c) ) if ( c !== a.radixPoint && c !== a.negationSymbol.front && c !== a.negationSymbol.back ) -1 < (s = _.inArray("?", u)) ? (u[s] = c) : (s = n.caret || 0); else if ( c === a.radixPoint || c === a.negationSymbol.front || c === a.negationSymbol.back ) { var p = _.inArray(c, u); -1 !== p && (s = p); } a.numericInput && ((s = u.length - s - 1), (u = u.reverse())); var h = { caret: (void 0 !== c && void 0 === n.pos) || void 0 === s ? s : s + (a.numericInput ? -1 : 1), buffer: u, refreshFromBuffer: n.dopost || e.join("") !== u.join(""), }; return h.refreshFromBuffer ? h : n; }, onBeforeWrite: function (e, t, n, a) { if (e) switch (e.type) { case "keydown": return a.postValidation( t, n, { caret: n, dopost: !0 }, a ); case "blur": case "checkval": var i; if ( (void 0 === (r = a).parseMinMaxOptions && (null !== r.min && ((r.min = r.min .toString() .replace( new RegExp( g.escapeRegex(r.groupSeparator), "g" ), "" )), "," === r.radixPoint && (r.min = r.min.replace(r.radixPoint, ".")), (r.min = isFinite(r.min) ? parseFloat(r.min) : NaN), isNaN(r.min) && (r.min = Number.MIN_VALUE)), null !== r.max && ((r.max = r.max .toString() .replace( new RegExp( g.escapeRegex(r.groupSeparator), "g" ), "" )), "," === r.radixPoint && (r.max = r.max.replace(r.radixPoint, ".")), (r.max = isFinite(r.max) ? parseFloat(r.max) : NaN), isNaN(r.max) && (r.max = Number.MAX_VALUE)), (r.parseMinMaxOptions = "done")), null !== a.min || null !== a.max) ) { if ( ((i = a.onUnMask( t.join(""), void 0, _.extend({}, a, { unmaskAsNumber: !0 }) )), null !== a.min && i < a.min) ) return ( (a.isNegative = a.min < 0), a.postValidation( a.min .toString() .replace(".", a.radixPoint) .split(""), n, { caret: n, dopost: !0, placeholder: "0" }, a ) ); if (null !== a.max && i > a.max) return ( (a.isNegative = a.max < 0), a.postValidation( a.max .toString() .replace(".", a.radixPoint) .split(""), n, { caret: n, dopost: !0, placeholder: "0" }, a ) ); } return a.postValidation( t, n, { caret: n, placeholder: "0", event: "blur" }, a ); case "_checkval": return { caret: n }; } var r; }, regex: { integerPart: function (e, t) { return t ? new RegExp( "[" + g.escapeRegex(e.negationSymbol.front) + "+]?" ) : new RegExp( "[" + g.escapeRegex(e.negationSymbol.front) + "+]?\\d+" ); }, integerNPart: function (e) { return new RegExp( "[\\d" + g.escapeRegex(e.groupSeparator) + g.escapeRegex(e.placeholder.charAt(0)) + "]+" ); }, }, definitions: { "~": { validator: function (e, t, n, a, i, r) { var s; if ("k" === e || "m" === e) { s = { insert: [], c: 0 }; for (var o = 0, c = "k" === e ? 2 : 5; o < c; o++) s.insert.push({ pos: n + o, c: 0 }); return (s.pos = n + c), s; } if ( !0 === (s = a ? new RegExp( "[0-9" + g.escapeRegex(i.groupSeparator) + "]" ).test(e) : new RegExp("[0-9]").test(e)) ) { if ( !0 !== i.numericInput && void 0 !== t.validPositions[n] && "~" === t.validPositions[n].match.def && !r ) { var u = t.buffer.join(""), l = (u = (u = u.replace( new RegExp( "[-" + g.escapeRegex(i.negationSymbol.front) + "]", "g" ), "" )).replace( new RegExp( g.escapeRegex(i.negationSymbol.back) + "$" ), "" )).split(i.radixPoint); 1 < l.length && (l[1] = l[1].replace(/0/g, i.placeholder.charAt(0))), "0" === l[0] && (l[0] = l[0].replace( /0/g, i.placeholder.charAt(0) )), (u = l[0] + i.radixPoint + l[1] || ""); var d = t._buffer.join(""); for ( u === i.radixPoint && (u = d); null === u.match(g.escapeRegex(d) + "$"); ) d = d.slice(1); s = void 0 === (u = (u = u.replace(d, "")).split(""))[n] ? { pos: n, remove: n } : { pos: n }; } } else a || e !== i.radixPoint || void 0 !== t.validPositions[n - 1] || (s = { insert: { pos: n, c: 0 }, pos: n + 1 }); return s; }, cardinality: 1, }, "+": { validator: function (e, t, n, a, i) { return ( i.allowMinus && ("-" === e || e === i.negationSymbol.front) ); }, cardinality: 1, placeholder: "", }, "-": { validator: function (e, t, n, a, i) { return i.allowMinus && e === i.negationSymbol.back; }, cardinality: 1, placeholder: "", }, ":": { validator: function (e, t, n, a, i) { var r = "[" + g.escapeRegex(i.radixPoint) + "]", s = new RegExp(r).test(e); return ( s && t.validPositions[n] && t.validPositions[n].match.placeholder === i.radixPoint && (s = { caret: n + 1 }), s ); }, cardinality: 1, placeholder: function (e) { return e.radixPoint; }, }, }, onUnMask: function (e, t, n) { if ("" === t && !0 === n.nullable) return t; var a = e.replace(n.prefix, ""); return ( (a = (a = a.replace(n.suffix, "")).replace( new RegExp(g.escapeRegex(n.groupSeparator), "g"), "" )), "" !== n.placeholder.charAt(0) && (a = a.replace( new RegExp(n.placeholder.charAt(0), "g"), "0" )), n.unmaskAsNumber ? ("" !== n.radixPoint && -1 !== a.indexOf(n.radixPoint) && (a = a.replace( g.escapeRegex.call(this, n.radixPoint), "." )), (a = (a = a.replace( new RegExp("^" + g.escapeRegex(n.negationSymbol.front)), "-" )).replace( new RegExp(g.escapeRegex(n.negationSymbol.back) + "$"), "" )), Number(a)) : a ); }, isComplete: function (e, t) { var n = (t.numericInput ? e.slice().reverse() : e).join(""); return ( (n = (n = (n = (n = (n = n.replace( new RegExp("^" + g.escapeRegex(t.negationSymbol.front)), "-" )).replace( new RegExp(g.escapeRegex(t.negationSymbol.back) + "$"), "" )).replace(t.prefix, "")).replace(t.suffix, "")).replace( new RegExp( g.escapeRegex(t.groupSeparator) + "([0-9]{3})", "g" ), "$1" )), "," === t.radixPoint && (n = n.replace(g.escapeRegex(t.radixPoint), ".")), isFinite(n) ); }, onBeforeMask: function (e, t) { t.isNegative = void 0; var n = t.radixPoint || ","; ("number" != typeof e && "number" !== t.inputType) || "" === n || (e = e.toString().replace(".", n)); var a = e.split(n), i = a[0].replace(/[^\-0-9]/g, ""), r = 1 < a.length ? a[1].replace(/[^0-9]/g, "") : ""; e = i + ("" !== r ? n + r : r); var s = 0; if ("" !== n && ((s = r.length), "" !== r)) { var o = Math.pow(10, s || 1); isFinite(t.digits) && ((s = parseInt(t.digits)), (o = Math.pow(10, s))), (e = e.replace(g.escapeRegex(n), ".")), isFinite(e) && (e = Math.round(parseFloat(e) * o) / o), (e = e.toString().replace(".", n)); } return ( 0 === t.digits && -1 !== e.indexOf(g.escapeRegex(n)) && (e = e.substring(0, e.indexOf(g.escapeRegex(n)))), (function (e, t, n) { if (0 < t) { var a = _.inArray(n.radixPoint, e); -1 === a && (e.push(n.radixPoint), (a = e.length - 1)); for (var i = 1; i <= t; i++) e[a + i] = e[a + i] || "0"; } return e; })(e.toString().split(""), s, t).join("") ); }, onKeyDown: function (e, t, n, a) { var i = _(this); if (e.ctrlKey) switch (e.keyCode) { case g.keyCode.UP: i.val( parseFloat(this.inputmask.unmaskedvalue()) + parseInt(a.step) ), i.trigger("setvalue"); break; case g.keyCode.DOWN: i.val( parseFloat(this.inputmask.unmaskedvalue()) - parseInt(a.step) ), i.trigger("setvalue"); } }, }, currency: { prefix: "$ ", groupSeparator: ",", alias: "numeric", placeholder: "0", autoGroup: !0, digits: 2, digitsOptional: !1, clearMaskOnLostFocus: !1, }, decimal: { alias: "numeric" }, integer: { alias: "numeric", digits: 0, radixPoint: "" }, percentage: { alias: "numeric", digits: 2, digitsOptional: !0, radixPoint: ".", placeholder: "0", autoGroup: !1, min: 0, max: 100, suffix: " %", allowMinus: !1, }, }), g ); })(inputmask); }), inputmask$1 = inputmask, inputmask_phone_extensions = createCommonjsModule(function (e, t) { e.exports = (function (t) { var s = t.dependencyLib; function n(e, t) { var n = (e.mask || e) .replace(/#/g, "0") .replace(/\)/, "0") .replace(/[+()#-]/g, ""), a = (t.mask || t) .replace(/#/g, "0") .replace(/\)/, "0") .replace(/[+()#-]/g, ""); return n.localeCompare(a); } var a = t.prototype.analyseMask; return ( (t.prototype.analyseMask = function (c, e, r) { var u = {}; return ( r.phoneCodes && (r.phoneCodes && 1e3 < r.phoneCodes.length && ((function e(t, n, a) { (a = a || u), "" !== (n = n || "") && (a[n] = {}); for ( var i = "", r = a[n] || a, s = t.length - 1; 0 <= s; s-- ) (r[(i = (c = t[s].mask || t[s]).substr(0, 1))] = r[i] || []), r[i].unshift(c.substr(1)), t.splice(s, 1); for (var o in r) 500 < r[o].length && e(r[o].slice(), o, r); })( (c = c.substr(1, c.length - 2)).split( r.groupmarker[1] + r.alternatormarker + r.groupmarker[0] ) ), (c = (function e(t) { var n = "", a = []; for (var i in t) s.isArray(t[i]) ? 1 === t[i].length ? a.push(i + t[i]) : a.push( i + r.groupmarker[0] + t[i].join( r.groupmarker[1] + r.alternatormarker + r.groupmarker[0] ) + r.groupmarker[1] ) : a.push(i + e(t[i])); return ( 1 === a.length ? (n += a[0]) : (n += r.groupmarker[0] + a.join( r.groupmarker[1] + r.alternatormarker + r.groupmarker[0] ) + r.groupmarker[1]), n ); })(u))), (c = c.replace(/9/g, "\\9"))), a.call(this, c, e, r) ); }), t.extendAliases({ abstractphone: { groupmarker: ["<", ">"], countrycode: "", phoneCodes: [], keepStatic: "auto", mask: function (e) { return ( (e.definitions = { "#": t.prototype.definitions[9] }), e.phoneCodes.sort(n) ); }, onBeforeMask: function (e, t) { var n = e.replace(/^0{1,2}/, "").replace(/[\s]/g, ""); return ( (1 < n.indexOf(t.countrycode) || -1 === n.indexOf(t.countrycode)) && (n = "+" + t.countrycode + n), n ); }, onUnMask: function (e) { return e.replace(/[()#-]/g, ""); }, inputmode: "tel", }, }), t ); })(inputmask$1); }), phone = createCommonjsModule(function (e, t) { e.exports = (function (e) { return ( e.extendAliases({ phone: { alias: "abstractphone", phoneCodes: [ { mask: "+247-####", cc: "AC", cd: "Ascension", desc_en: "", name_ru: "Остров Вознесения", desc_ru: "", }, { mask: "+376-###-###", cc: "AD", cd: "Andorra", desc_en: "", name_ru: "Андорра", desc_ru: "", }, { mask: "+971-5#-###-####", cc: "AE", cd: "United Arab Emirates", desc_en: "mobile", name_ru: "Объединенные Арабские Эмираты", desc_ru: "мобильные", }, { mask: "+971-#-###-####", cc: "AE", cd: "United Arab Emirates", desc_en: "", name_ru: "Объединенные Арабские Эмираты", desc_ru: "", }, { mask: "+93-##-###-####", cc: "AF", cd: "Afghanistan", desc_en: "", name_ru: "Афганистан", desc_ru: "", }, { mask: "+1(268)###-####", cc: "AG", cd: "Antigua & Barbuda", desc_en: "", name_ru: "Антигуа и Барбуда", desc_ru: "", }, { mask: "+1(264)###-####", cc: "AI", cd: "Anguilla", desc_en: "", name_ru: "Ангилья", desc_ru: "", }, { mask: "+355(###)###-###", cc: "AL", cd: "Albania", desc_en: "", name_ru: "Албания", desc_ru: "", }, { mask: "+374-##-###-###", cc: "AM", cd: "Armenia", desc_en: "", name_ru: "Армения", desc_ru: "", }, { mask: "+599-###-####", cc: "AN", cd: "Caribbean Netherlands", desc_en: "", name_ru: "Карибские Нидерланды", desc_ru: "", }, { mask: "+599-###-####", cc: "AN", cd: "Netherlands Antilles", desc_en: "", name_ru: "Нидерландские Антильские острова", desc_ru: "", }, { mask: "+599-9###-####", cc: "AN", cd: "Netherlands Antilles", desc_en: "Curacao", name_ru: "Нидерландские Антильские острова", desc_ru: "Кюрасао", }, { mask: "+244(###)###-###", cc: "AO", cd: "Angola", desc_en: "", name_ru: "Ангола", desc_ru: "", }, { mask: "+672-1##-###", cc: "AQ", cd: "Australian bases in Antarctica", desc_en: "", name_ru: "Австралийская антарктическая база", desc_ru: "", }, { mask: "+54(###)###-####", cc: "AR", cd: "Argentina", desc_en: "", name_ru: "Аргентина", desc_ru: "", }, { mask: "+1(684)###-####", cc: "AS", cd: "American Samoa", desc_en: "", name_ru: "Американское Самоа", desc_ru: "", }, { mask: "+43(###)###-####", cc: "AT", cd: "Austria", desc_en: "", name_ru: "Австрия", desc_ru: "", }, { mask: "+61-#-####-####", cc: "AU", cd: "Australia", desc_en: "", name_ru: "Австралия", desc_ru: "", }, { mask: "+297-###-####", cc: "AW", cd: "Aruba", desc_en: "", name_ru: "Аруба", desc_ru: "", }, { mask: "+994-##-###-##-##", cc: "AZ", cd: "Azerbaijan", desc_en: "", name_ru: "Азербайджан", desc_ru: "", }, { mask: "+387-##-#####", cc: "BA", cd: "Bosnia and Herzegovina", desc_en: "", name_ru: "Босния и Герцеговина", desc_ru: "", }, { mask: "+387-##-####", cc: "BA", cd: "Bosnia and Herzegovina", desc_en: "", name_ru: "Босния и Герцеговина", desc_ru: "", }, { mask: "+1(246)###-####", cc: "BB", cd: "Barbados", desc_en: "", name_ru: "Барбадос", desc_ru: "", }, { mask: "+880-##-###-###", cc: "BD", cd: "Bangladesh", desc_en: "", name_ru: "Бангладеш", desc_ru: "", }, { mask: "+32(###)###-###", cc: "BE", cd: "Belgium", desc_en: "", name_ru: "Бельгия", desc_ru: "", }, { mask: "+226-##-##-####", cc: "BF", cd: "Burkina Faso", desc_en: "", name_ru: "Буркина Фасо", desc_ru: "", }, { mask: "+359(###)###-###", cc: "BG", cd: "Bulgaria", desc_en: "", name_ru: "Болгария", desc_ru: "", }, { mask: "+973-####-####", cc: "BH", cd: "Bahrain", desc_en: "", name_ru: "Бахрейн", desc_ru: "", }, { mask: "+257-##-##-####", cc: "BI", cd: "Burundi", desc_en: "", name_ru: "Бурунди", desc_ru: "", }, { mask: "+229-##-##-####", cc: "BJ", cd: "Benin", desc_en: "", name_ru: "Бенин", desc_ru: "", }, { mask: "+1(441)###-####", cc: "BM", cd: "Bermuda", desc_en: "", name_ru: "Бермудские острова", desc_ru: "", }, { mask: "+673-###-####", cc: "BN", cd: "Brunei Darussalam", desc_en: "", name_ru: "Бруней-Даруссалам", desc_ru: "", }, { mask: "+591-#-###-####", cc: "BO", cd: "Bolivia", desc_en: "", name_ru: "Боливия", desc_ru: "", }, { mask: "+55-##-####-####", cc: "BR", cd: "Brazil", desc_en: "", name_ru: "Бразилия", desc_ru: "", }, { mask: "+55-##-#####-####", cc: "BR", cd: "Brazil", desc_en: "", name_ru: "Бразилия", desc_ru: "", }, { mask: "+1(242)###-####", cc: "BS", cd: "Bahamas", desc_en: "", name_ru: "Багамские Острова", desc_ru: "", }, { mask: "+975-17-###-###", cc: "BT", cd: "Bhutan", desc_en: "", name_ru: "Бутан", desc_ru: "", }, { mask: "+975-#-###-###", cc: "BT", cd: "Bhutan", desc_en: "", name_ru: "Бутан", desc_ru: "", }, { mask: "+267-##-###-###", cc: "BW", cd: "Botswana", desc_en: "", name_ru: "Ботсвана", desc_ru: "", }, { mask: "+375(##)###-##-##", cc: "BY", cd: "Belarus", desc_en: "", name_ru: "Беларусь (Белоруссия)", desc_ru: "", }, { mask: "+501-###-####", cc: "BZ", cd: "Belize", desc_en: "", name_ru: "Белиз", desc_ru: "", }, { mask: "+243(###)###-###", cc: "CD", cd: "Dem. Rep. Congo", desc_en: "", name_ru: "Дем. Респ. Конго (Киншаса)", desc_ru: "", }, { mask: "+236-##-##-####", cc: "CF", cd: "Central African Republic", desc_en: "", name_ru: "Центральноафриканская Республика", desc_ru: "", }, { mask: "+242-##-###-####", cc: "CG", cd: "Congo (Brazzaville)", desc_en: "", name_ru: "Конго (Браззавиль)", desc_ru: "", }, { mask: "+41-##-###-####", cc: "CH", cd: "Switzerland", desc_en: "", name_ru: "Швейцария", desc_ru: "", }, { mask: "+225-##-###-###", cc: "CI", cd: "Cote d’Ivoire (Ivory Coast)", desc_en: "", name_ru: "Кот-д’Ивуар", desc_ru: "", }, { mask: "+682-##-###", cc: "CK", cd: "Cook Islands", desc_en: "", name_ru: "Острова Кука", desc_ru: "", }, { mask: "+56-#-####-####", cc: "CL", cd: "Chile", desc_en: "", name_ru: "Чили", desc_ru: "", }, { mask: "+237-####-####", cc: "CM", cd: "Cameroon", desc_en: "", name_ru: "Камерун", desc_ru: "", }, { mask: "+86(###)####-####", cc: "CN", cd: "China (PRC)", desc_en: "", name_ru: "Китайская Н.Р.", desc_ru: "", }, { mask: "+86(###)####-###", cc: "CN", cd: "China (PRC)", desc_en: "", name_ru: "Китайская Н.Р.", desc_ru: "", }, { mask: "+86-##-#####-#####", cc: "CN", cd: "China (PRC)", desc_en: "", name_ru: "Китайская Н.Р.", desc_ru: "", }, { mask: "+57(###)###-####", cc: "CO", cd: "Colombia", desc_en: "", name_ru: "Колумбия", desc_ru: "", }, { mask: "+506-####-####", cc: "CR", cd: "Costa Rica", desc_en: "", name_ru: "Коста-Рика", desc_ru: "", }, { mask: "+53-#-###-####", cc: "CU", cd: "Cuba", desc_en: "", name_ru: "Куба", desc_ru: "", }, { mask: "+238(###)##-##", cc: "CV", cd: "Cape Verde", desc_en: "", name_ru: "Кабо-Верде", desc_ru: "", }, { mask: "+599-###-####", cc: "CW", cd: "Curacao", desc_en: "", name_ru: "Кюрасао", desc_ru: "", }, { mask: "+357-##-###-###", cc: "CY", cd: "Cyprus", desc_en: "", name_ru: "Кипр", desc_ru: "", }, { mask: "+420(###)###-###", cc: "CZ", cd: "Czech Republic", desc_en: "", name_ru: "Чехия", desc_ru: "", }, { mask: "+49(####)###-####", cc: "DE", cd: "Germany", desc_en: "", name_ru: "Германия", desc_ru: "", }, { mask: "+49(###)###-####", cc: "DE", cd: "Germany", desc_en: "", name_ru: "Германия", desc_ru: "", }, { mask: "+49(###)##-####", cc: "DE", cd: "Germany", desc_en: "", name_ru: "Германия", desc_ru: "", }, { mask: "+49(###)##-###", cc: "DE", cd: "Germany", desc_en: "", name_ru: "Германия", desc_ru: "", }, { mask: "+49(###)##-##", cc: "DE", cd: "Germany", desc_en: "", name_ru: "Германия", desc_ru: "", }, { mask: "+49-###-###", cc: "DE", cd: "Germany", desc_en: "", name_ru: "Германия", desc_ru: "", }, { mask: "+253-##-##-##-##", cc: "DJ", cd: "Djibouti", desc_en: "", name_ru: "Джибути", desc_ru: "", }, { mask: "+45-##-##-##-##", cc: "DK", cd: "Denmark", desc_en: "", name_ru: "Дания", desc_ru: "", }, { mask: "+1(767)###-####", cc: "DM", cd: "Dominica", desc_en: "", name_ru: "Доминика", desc_ru: "", }, { mask: "+1(809)###-####", cc: "DO", cd: "Dominican Republic", desc_en: "", name_ru: "Доминиканская Республика", desc_ru: "", }, { mask: "+1(829)###-####", cc: "DO", cd: "Dominican Republic", desc_en: "", name_ru: "Доминиканская Республика", desc_ru: "", }, { mask: "+1(849)###-####", cc: "DO", cd: "Dominican Republic", desc_en: "", name_ru: "Доминиканская Республика", desc_ru: "", }, { mask: "+213-##-###-####", cc: "DZ", cd: "Algeria", desc_en: "", name_ru: "Алжир", desc_ru: "", }, { mask: "+593-##-###-####", cc: "EC", cd: "Ecuador ", desc_en: "mobile", name_ru: "Эквадор ", desc_ru: "мобильные", }, { mask: "+593-#-###-####", cc: "EC", cd: "Ecuador", desc_en: "", name_ru: "Эквадор", desc_ru: "", }, { mask: "+372-####-####", cc: "EE", cd: "Estonia ", desc_en: "mobile", name_ru: "Эстония ", desc_ru: "мобильные", }, { mask: "+372-###-####", cc: "EE", cd: "Estonia", desc_en: "", name_ru: "Эстония", desc_ru: "", }, { mask: "+20(###)###-####", cc: "EG", cd: "Egypt", desc_en: "", name_ru: "Египет", desc_ru: "", }, { mask: "+291-#-###-###", cc: "ER", cd: "Eritrea", desc_en: "", name_ru: "Эритрея", desc_ru: "", }, { mask: "+34(###)###-###", cc: "ES", cd: "Spain", desc_en: "", name_ru: "Испания", desc_ru: "", }, { mask: "+251-##-###-####", cc: "ET", cd: "Ethiopia", desc_en: "", name_ru: "Эфиопия", desc_ru: "", }, { mask: "+358(###)###-##-##", cc: "FI", cd: "Finland", desc_en: "", name_ru: "Финляндия", desc_ru: "", }, { mask: "+679-##-#####", cc: "FJ", cd: "Fiji", desc_en: "", name_ru: "Фиджи", desc_ru: "", }, { mask: "+500-#####", cc: "FK", cd: "Falkland Islands", desc_en: "", name_ru: "Фолклендские острова", desc_ru: "", }, { mask: "+691-###-####", cc: "FM", cd: "F.S. Micronesia", desc_en: "", name_ru: "Ф.Ш. Микронезии", desc_ru: "", }, { mask: "+298-###-###", cc: "FO", cd: "Faroe Islands", desc_en: "", name_ru: "Фарерские острова", desc_ru: "", }, { mask: "+262-#####-####", cc: "FR", cd: "Mayotte", desc_en: "", name_ru: "Майотта", desc_ru: "", }, { mask: "+33-#-##-##-##-##", cc: "FR", cd: "France", desc_en: "", name_ru: "Франция", desc_ru: "", }, { mask: "+508-##-####", cc: "FR", cd: "St Pierre & Miquelon", desc_en: "", name_ru: "Сен-Пьер и Микелон", desc_ru: "", }, { mask: "+590(###)###-###", cc: "FR", cd: "Guadeloupe", desc_en: "", name_ru: "Гваделупа", desc_ru: "", }, { mask: "+241-#-##-##-##", cc: "GA", cd: "Gabon", desc_en: "", name_ru: "Габон", desc_ru: "", }, { mask: "+1(473)###-####", cc: "GD", cd: "Grenada", desc_en: "", name_ru: "Гренада", desc_ru: "", }, { mask: "+995(###)###-###", cc: "GE", cd: "Rep. of Georgia", desc_en: "", name_ru: "Грузия", desc_ru: "", }, { mask: "+594-#####-####", cc: "GF", cd: "Guiana (French)", desc_en: "", name_ru: "Фр. Гвиана", desc_ru: "", }, { mask: "+233(###)###-###", cc: "GH", cd: "Ghana", desc_en: "", name_ru: "Гана", desc_ru: "", }, { mask: "+350-###-#####", cc: "GI", cd: "Gibraltar", desc_en: "", name_ru: "Гибралтар", desc_ru: "", }, { mask: "+299-##-##-##", cc: "GL", cd: "Greenland", desc_en: "", name_ru: "Гренландия", desc_ru: "", }, { mask: "+220(###)##-##", cc: "GM", cd: "Gambia", desc_en: "", name_ru: "Гамбия", desc_ru: "", }, { mask: "+224-##-###-###", cc: "GN", cd: "Guinea", desc_en: "", name_ru: "Гвинея", desc_ru: "", }, { mask: "+240-##-###-####", cc: "GQ", cd: "Equatorial Guinea", desc_en: "", name_ru: "Экваториальная Гвинея", desc_ru: "", }, { mask: "+30(###)###-####", cc: "GR", cd: "Greece", desc_en: "", name_ru: "Греция", desc_ru: "", }, { mask: "+502-#-###-####", cc: "GT", cd: "Guatemala", desc_en: "", name_ru: "Гватемала", desc_ru: "", }, { mask: "+1(671)###-####", cc: "GU", cd: "Guam", desc_en: "", name_ru: "Гуам", desc_ru: "", }, { mask: "+245-#-######", cc: "GW", cd: "Guinea-Bissau", desc_en: "", name_ru: "Гвинея-Бисау", desc_ru: "", }, { mask: "+592-###-####", cc: "GY", cd: "Guyana", desc_en: "", name_ru: "Гайана", desc_ru: "", }, { mask: "+852-####-####", cc: "HK", cd: "Hong Kong", desc_en: "", name_ru: "Гонконг", desc_ru: "", }, { mask: "+504-####-####", cc: "HN", cd: "Honduras", desc_en: "", name_ru: "Гондурас", desc_ru: "", }, { mask: "+385-(##)-###-###", cc: "HR", cd: "Croatia", desc_en: "", name_ru: "Хорватия", desc_ru: "", }, { mask: "+385-(##)-###-####", cc: "HR", cd: "Croatia", desc_en: "", name_ru: "Хорватия", desc_ru: "", }, { mask: "+385-1-####-###", cc: "HR", cd: "Croatia", desc_en: "", name_ru: "Хорватия", desc_ru: "", }, { mask: "+509-##-##-####", cc: "HT", cd: "Haiti", desc_en: "", name_ru: "Гаити", desc_ru: "", }, { mask: "+36(###)###-###", cc: "HU", cd: "Hungary", desc_en: "", name_ru: "Венгрия", desc_ru: "", }, { mask: "+62(8##)###-####", cc: "ID", cd: "Indonesia ", desc_en: "mobile", name_ru: "Индонезия ", desc_ru: "мобильные", }, { mask: "+62-##-###-##", cc: "ID", cd: "Indonesia", desc_en: "", name_ru: "Индонезия", desc_ru: "", }, { mask: "+62-##-###-###", cc: "ID", cd: "Indonesia", desc_en: "", name_ru: "Индонезия", desc_ru: "", }, { mask: "+62-##-###-####", cc: "ID", cd: "Indonesia", desc_en: "", name_ru: "Индонезия", desc_ru: "", }, { mask: "+62(8##)###-###", cc: "ID", cd: "Indonesia ", desc_en: "mobile", name_ru: "Индонезия ", desc_ru: "мобильные", }, { mask: "+62(8##)###-##-###", cc: "ID", cd: "Indonesia ", desc_en: "mobile", name_ru: "Индонезия ", desc_ru: "мобильные", }, { mask: "+353(###)###-###", cc: "IE", cd: "Ireland", desc_en: "", name_ru: "Ирландия", desc_ru: "", }, { mask: "+972-5#-###-####", cc: "IL", cd: "Israel ", desc_en: "mobile", name_ru: "Израиль ", desc_ru: "мобильные", }, { mask: "+972-#-###-####", cc: "IL", cd: "Israel", desc_en: "", name_ru: "Израиль", desc_ru: "", }, { mask: "+91(####)###-###", cc: "IN", cd: "India", desc_en: "", name_ru: "Индия", desc_ru: "", }, { mask: "+246-###-####", cc: "IO", cd: "Diego Garcia", desc_en: "", name_ru: "Диего-Гарсия", desc_ru: "", }, { mask: "+964(###)###-####", cc: "IQ", cd: "Iraq", desc_en: "", name_ru: "Ирак", desc_ru: "", }, { mask: "+98(###)###-####", cc: "IR", cd: "Iran", desc_en: "", name_ru: "Иран", desc_ru: "", }, { mask: "+354-###-####", cc: "IS", cd: "Iceland", desc_en: "", name_ru: "Исландия", desc_ru: "", }, { mask: "+39-###-###-##-##", cc: "IT", cd: "Italy", desc_en: "", name_ru: "Италия", desc_ru: "", }, { mask: "+1(876)###-####", cc: "JM", cd: "Jamaica", desc_en: "", name_ru: "Ямайка", desc_ru: "", }, { mask: "+962-#-####-####", cc: "JO", cd: "Jordan", desc_en: "", name_ru: "Иордания", desc_ru: "", }, { mask: "+81-##-####-####", cc: "JP", cd: "Japan ", desc_en: "mobile", name_ru: "Япония ", desc_ru: "мобильные", }, { mask: "+81(###)###-###", cc: "JP", cd: "Japan", desc_en: "", name_ru: "Япония", desc_ru: "", }, { mask: "+254-###-######", cc: "KE", cd: "Kenya", desc_en: "", name_ru: "Кения", desc_ru: "", }, { mask: "+996(###)###-###", cc: "KG", cd: "Kyrgyzstan", desc_en: "", name_ru: "Киргизия", desc_ru: "", }, { mask: "+855-##-###-###", cc: "KH", cd: "Cambodia", desc_en: "", name_ru: "Камбоджа", desc_ru: "", }, { mask: "+686-##-###", cc: "KI", cd: "Kiribati", desc_en: "", name_ru: "Кирибати", desc_ru: "", }, { mask: "+269-##-#####", cc: "KM", cd: "Comoros", desc_en: "", name_ru: "Коморы", desc_ru: "", }, { mask: "+1(869)###-####", cc: "KN", cd: "Saint Kitts & Nevis", desc_en: "", name_ru: "Сент-Китс и Невис", desc_ru: "", }, { mask: "+850-191-###-####", cc: "KP", cd: "DPR Korea (North) ", desc_en: "mobile", name_ru: "Корейская НДР ", desc_ru: "мобильные", }, { mask: "+850-##-###-###", cc: "KP", cd: "DPR Korea (North)", desc_en: "", name_ru: "Корейская НДР", desc_ru: "", }, { mask: "+850-###-####-###", cc: "KP", cd: "DPR Korea (North)", desc_en: "", name_ru: "Корейская НДР", desc_ru: "", }, { mask: "+850-###-###", cc: "KP", cd: "DPR Korea (North)", desc_en: "", name_ru: "Корейская НДР", desc_ru: "", }, { mask: "+850-####-####", cc: "KP", cd: "DPR Korea (North)", desc_en: "", name_ru: "Корейская НДР", desc_ru: "", }, { mask: "+850-####-#############", cc: "KP", cd: "DPR Korea (North)", desc_en: "", name_ru: "Корейская НДР", desc_ru: "", }, { mask: "+82-##-###-####", cc: "KR", cd: "Korea (South)", desc_en: "", name_ru: "Респ. Корея", desc_ru: "", }, { mask: "+965-####-####", cc: "KW", cd: "Kuwait", desc_en: "", name_ru: "Кувейт", desc_ru: "", }, { mask: "+1(345)###-####", cc: "KY", cd: "Cayman Islands", desc_en: "", name_ru: "Каймановы острова", desc_ru: "", }, { mask: "+7(6##)###-##-##", cc: "KZ", cd: "Kazakhstan", desc_en: "", name_ru: "Казахстан", desc_ru: "", }, { mask: "+7(7##)###-##-##", cc: "KZ", cd: "Kazakhstan", desc_en: "", name_ru: "Казахстан", desc_ru: "", }, { mask: "+856(20##)###-###", cc: "LA", cd: "Laos ", desc_en: "mobile", name_ru: "Лаос ", desc_ru: "мобильные", }, { mask: "+856-##-###-###", cc: "LA", cd: "Laos", desc_en: "", name_ru: "Лаос", desc_ru: "", }, { mask: "+961-##-###-###", cc: "LB", cd: "Lebanon ", desc_en: "mobile", name_ru: "Ливан ", desc_ru: "мобильные", }, { mask: "+961-#-###-###", cc: "LB", cd: "Lebanon", desc_en: "", name_ru: "Ливан", desc_ru: "", }, { mask: "+1(758)###-####", cc: "LC", cd: "Saint Lucia", desc_en: "", name_ru: "Сент-Люсия", desc_ru: "", }, { mask: "+423(###)###-####", cc: "LI", cd: "Liechtenstein", desc_en: "", name_ru: "Лихтенштейн", desc_ru: "", }, { mask: "+94-##-###-####", cc: "LK", cd: "Sri Lanka", desc_en: "", name_ru: "Шри-Ланка", desc_ru: "", }, { mask: "+231-##-###-###", cc: "LR", cd: "Liberia", desc_en: "", name_ru: "Либерия", desc_ru: "", }, { mask: "+266-#-###-####", cc: "LS", cd: "Lesotho", desc_en: "", name_ru: "Лесото", desc_ru: "", }, { mask: "+370(###)##-###", cc: "LT", cd: "Lithuania", desc_en: "", name_ru: "Литва", desc_ru: "", }, { mask: "+352-###-###", cc: "LU", cd: "Luxembourg", desc_en: "", name_ru: "Люксембург", desc_ru: "", }, { mask: "+352-####-###", cc: "LU", cd: "Luxembourg", desc_en: "", name_ru: "Люксембург", desc_ru: "", }, { mask: "+352-#####-###", cc: "LU", cd: "Luxembourg", desc_en: "", name_ru: "Люксембург", desc_ru: "", }, { mask: "+352-######-###", cc: "LU", cd: "Luxembourg", desc_en: "", name_ru: "Люксембург", desc_ru: "", }, { mask: "+371-##-###-###", cc: "LV", cd: "Latvia", desc_en: "", name_ru: "Латвия", desc_ru: "", }, { mask: "+218-##-###-###", cc: "LY", cd: "Libya", desc_en: "", name_ru: "Ливия", desc_ru: "", }, { mask: "+218-21-###-####", cc: "LY", cd: "Libya", desc_en: "Tripoli", name_ru: "Ливия", desc_ru: "Триполи", }, { mask: "+212-##-####-###", cc: "MA", cd: "Morocco", desc_en: "", name_ru: "Марокко", desc_ru: "", }, { mask: "+377(###)###-###", cc: "MC", cd: "Monaco", desc_en: "", name_ru: "Монако", desc_ru: "", }, { mask: "+377-##-###-###", cc: "MC", cd: "Monaco", desc_en: "", name_ru: "Монако", desc_ru: "", }, { mask: "+373-####-####", cc: "MD", cd: "Moldova", desc_en: "", name_ru: "Молдова", desc_ru: "", }, { mask: "+382-##-###-###", cc: "ME", cd: "Montenegro", desc_en: "", name_ru: "Черногория", desc_ru: "", }, { mask: "+261-##-##-#####", cc: "MG", cd: "Madagascar", desc_en: "", name_ru: "Мадагаскар", desc_ru: "", }, { mask: "+692-###-####", cc: "MH", cd: "Marshall Islands", desc_en: "", name_ru: "Маршалловы Острова", desc_ru: "", }, { mask: "+389-##-###-###", cc: "MK", cd: "Republic of Macedonia", desc_en: "", name_ru: "Респ. Македония", desc_ru: "", }, { mask: "+223-##-##-####", cc: "ML", cd: "Mali", desc_en: "", name_ru: "Мали", desc_ru: "", }, { mask: "+95-##-###-###", cc: "MM", cd: "Burma (Myanmar)", desc_en: "", name_ru: "Бирма (Мьянма)", desc_ru: "", }, { mask: "+95-#-###-###", cc: "MM", cd: "Burma (Myanmar)", desc_en: "", name_ru: "Бирма (Мьянма)", desc_ru: "", }, { mask: "+95-###-###", cc: "MM", cd: "Burma (Myanmar)", desc_en: "", name_ru: "Бирма (Мьянма)", desc_ru: "", }, { mask: "+976-##-##-####", cc: "MN", cd: "Mongolia", desc_en: "", name_ru: "Монголия", desc_ru: "", }, { mask: "+853-####-####", cc: "MO", cd: "Macau", desc_en: "", name_ru: "Макао", desc_ru: "", }, { mask: "+1(670)###-####", cc: "MP", cd: "Northern Mariana Islands", desc_en: "", name_ru: "Северные Марианские острова Сайпан", desc_ru: "", }, { mask: "+596(###)##-##-##", cc: "MQ", cd: "Martinique", desc_en: "", name_ru: "Мартиника", desc_ru: "", }, { mask: "+222-##-##-####", cc: "MR", cd: "Mauritania", desc_en: "", name_ru: "Мавритания", desc_ru: "", }, { mask: "+1(664)###-####", cc: "MS", cd: "Montserrat", desc_en: "", name_ru: "Монтсеррат", desc_ru: "", }, { mask: "+356-####-####", cc: "MT", cd: "Malta", desc_en: "", name_ru: "Мальта", desc_ru: "", }, { mask: "+230-###-####", cc: "MU", cd: "Mauritius", desc_en: "", name_ru: "Маврикий", desc_ru: "", }, { mask: "+960-###-####", cc: "MV", cd: "Maldives", desc_en: "", name_ru: "Мальдивские острова", desc_ru: "", }, { mask: "+265-1-###-###", cc: "MW", cd: "Malawi", desc_en: "Telecom Ltd", name_ru: "Малави", desc_ru: "Telecom Ltd", }, { mask: "+265-#-####-####", cc: "MW", cd: "Malawi", desc_en: "", name_ru: "Малави", desc_ru: "", }, { mask: "+52(###)###-####", cc: "MX", cd: "Mexico", desc_en: "", name_ru: "Мексика", desc_ru: "", }, { mask: "+52-##-##-####", cc: "MX", cd: "Mexico", desc_en: "", name_ru: "Мексика", desc_ru: "", }, { mask: "+60-##-###-####", cc: "MY", cd: "Malaysia ", desc_en: "mobile", name_ru: "Малайзия ", desc_ru: "мобильные", }, { mask: "+60-11-####-####", cc: "MY", cd: "Malaysia ", desc_en: "mobile", name_ru: "Малайзия ", desc_ru: "мобильные", }, { mask: "+60(###)###-###", cc: "MY", cd: "Malaysia", desc_en: "", name_ru: "Малайзия", desc_ru: "", }, { mask: "+60-##-###-###", cc: "MY", cd: "Malaysia", desc_en: "", name_ru: "Малайзия", desc_ru: "", }, { mask: "+60-#-###-###", cc: "MY", cd: "Malaysia", desc_en: "", name_ru: "Малайзия", desc_ru: "", }, { mask: "+258-##-###-###", cc: "MZ", cd: "Mozambique", desc_en: "", name_ru: "Мозамбик", desc_ru: "", }, { mask: "+264-##-###-####", cc: "NA", cd: "Namibia", desc_en: "", name_ru: "Намибия", desc_ru: "", }, { mask: "+687-##-####", cc: "NC", cd: "New Caledonia", desc_en: "", name_ru: "Новая Каледония", desc_ru: "", }, { mask: "+227-##-##-####", cc: "NE", cd: "Niger", desc_en: "", name_ru: "Нигер", desc_ru: "", }, { mask: "+672-3##-###", cc: "NF", cd: "Norfolk Island", desc_en: "", name_ru: "Норфолк (остров)", desc_ru: "", }, { mask: "+234(###)###-####", cc: "NG", cd: "Nigeria", desc_en: "", name_ru: "Нигерия", desc_ru: "", }, { mask: "+234-##-###-###", cc: "NG", cd: "Nigeria", desc_en: "", name_ru: "Нигерия", desc_ru: "", }, { mask: "+234-##-###-##", cc: "NG", cd: "Nigeria", desc_en: "", name_ru: "Нигерия", desc_ru: "", }, { mask: "+234(###)###-####", cc: "NG", cd: "Nigeria ", desc_en: "mobile", name_ru: "Нигерия ", desc_ru: "мобильные", }, { mask: "+505-####-####", cc: "NI", cd: "Nicaragua", desc_en: "", name_ru: "Никарагуа", desc_ru: "", }, { mask: "+31-##-###-####", cc: "NL", cd: "Netherlands", desc_en: "", name_ru: "Нидерланды", desc_ru: "", }, { mask: "+47(###)##-###", cc: "NO", cd: "Norway", desc_en: "", name_ru: "Норвегия", desc_ru: "", }, { mask: "+977-##-###-###", cc: "NP", cd: "Nepal", desc_en: "", name_ru: "Непал", desc_ru: "", }, { mask: "+674-###-####", cc: "NR", cd: "Nauru", desc_en: "", name_ru: "Науру", desc_ru: "", }, { mask: "+683-####", cc: "NU", cd: "Niue", desc_en: "", name_ru: "Ниуэ", desc_ru: "", }, { mask: "+64(###)###-###", cc: "NZ", cd: "New Zealand", desc_en: "", name_ru: "Новая Зеландия", desc_ru: "", }, { mask: "+64-##-###-###", cc: "NZ", cd: "New Zealand", desc_en: "", name_ru: "Новая Зеландия", desc_ru: "", }, { mask: "+64(###)###-####", cc: "NZ", cd: "New Zealand", desc_en: "", name_ru: "Новая Зеландия", desc_ru: "", }, { mask: "+968-##-###-###", cc: "OM", cd: "Oman", desc_en: "", name_ru: "Оман", desc_ru: "", }, { mask: "+507-###-####", cc: "PA", cd: "Panama", desc_en: "", name_ru: "Панама", desc_ru: "", }, { mask: "+51(###)###-###", cc: "PE", cd: "Peru", desc_en: "", name_ru: "Перу", desc_ru: "", }, { mask: "+689-##-##-##", cc: "PF", cd: "French Polynesia", desc_en: "", name_ru: "Французская Полинезия (Таити)", desc_ru: "", }, { mask: "+675(###)##-###", cc: "PG", cd: "Papua New Guinea", desc_en: "", name_ru: "Папуа-Новая Гвинея", desc_ru: "", }, { mask: "+63(###)###-####", cc: "PH", cd: "Philippines", desc_en: "", name_ru: "Филиппины", desc_ru: "", }, { mask: "+92(###)###-####", cc: "PK", cd: "Pakistan", desc_en: "", name_ru: "Пакистан", desc_ru: "", }, { mask: "+48(###)###-###", cc: "PL", cd: "Poland", desc_en: "", name_ru: "Польша", desc_ru: "", }, { mask: "+970-##-###-####", cc: "PS", cd: "Palestine", desc_en: "", name_ru: "Палестина", desc_ru: "", }, { mask: "+351-##-###-####", cc: "PT", cd: "Portugal", desc_en: "", name_ru: "Португалия", desc_ru: "", }, { mask: "+680-###-####", cc: "PW", cd: "Palau", desc_en: "", name_ru: "Палау", desc_ru: "", }, { mask: "+595(###)###-###", cc: "PY", cd: "Paraguay", desc_en: "", name_ru: "Парагвай", desc_ru: "", }, { mask: "+974-####-####", cc: "QA", cd: "Qatar", desc_en: "", name_ru: "Катар", desc_ru: "", }, { mask: "+262-#####-####", cc: "RE", cd: "Reunion", desc_en: "", name_ru: "Реюньон", desc_ru: "", }, { mask: "+40-##-###-####", cc: "RO", cd: "Romania", desc_en: "", name_ru: "Румыния", desc_ru: "", }, { mask: "+381-##-###-####", cc: "RS", cd: "Serbia", desc_en: "", name_ru: "Сербия", desc_ru: "", }, { mask: "+7(###)###-##-##", cc: "RU", cd: "Russia", desc_en: "", name_ru: "Россия", desc_ru: "", }, { mask: "+250(###)###-###", cc: "RW", cd: "Rwanda", desc_en: "", name_ru: "Руанда", desc_ru: "", }, { mask: "+966-5-####-####", cc: "SA", cd: "Saudi Arabia ", desc_en: "mobile", name_ru: "Саудовская Аравия ", desc_ru: "мобильные", }, { mask: "+966-#-###-####", cc: "SA", cd: "Saudi Arabia", desc_en: "", name_ru: "Саудовская Аравия", desc_ru: "", }, { mask: "+677-###-####", cc: "SB", cd: "Solomon Islands ", desc_en: "mobile", name_ru: "Соломоновы Острова ", desc_ru: "мобильные", }, { mask: "+677-#####", cc: "SB", cd: "Solomon Islands", desc_en: "", name_ru: "Соломоновы Острова", desc_ru: "", }, { mask: "+248-#-###-###", cc: "SC", cd: "Seychelles", desc_en: "", name_ru: "Сейшелы", desc_ru: "", }, { mask: "+249-##-###-####", cc: "SD", cd: "Sudan", desc_en: "", name_ru: "Судан", desc_ru: "", }, { mask: "+46-##-###-####", cc: "SE", cd: "Sweden", desc_en: "", name_ru: "Швеция", desc_ru: "", }, { mask: "+65-####-####", cc: "SG", cd: "Singapore", desc_en: "", name_ru: "Сингапур", desc_ru: "", }, { mask: "+290-####", cc: "SH", cd: "Saint Helena", desc_en: "", name_ru: "Остров Святой Елены", desc_ru: "", }, { mask: "+290-####", cc: "SH", cd: "Tristan da Cunha", desc_en: "", name_ru: "Тристан-да-Кунья", desc_ru: "", }, { mask: "+386-##-###-###", cc: "SI", cd: "Slovenia", desc_en: "", name_ru: "Словения", desc_ru: "", }, { mask: "+421(###)###-###", cc: "SK", cd: "Slovakia", desc_en: "", name_ru: "Словакия", desc_ru: "", }, { mask: "+232-##-######", cc: "SL", cd: "Sierra Leone", desc_en: "", name_ru: "Сьерра-Леоне", desc_ru: "", }, { mask: "+378-####-######", cc: "SM", cd: "San Marino", desc_en: "", name_ru: "Сан-Марино", desc_ru: "", }, { mask: "+221-##-###-####", cc: "SN", cd: "Senegal", desc_en: "", name_ru: "Сенегал", desc_ru: "", }, { mask: "+252-##-###-###", cc: "SO", cd: "Somalia", desc_en: "", name_ru: "Сомали", desc_ru: "", }, { mask: "+252-#-###-###", cc: "SO", cd: "Somalia", desc_en: "", name_ru: "Сомали", desc_ru: "", }, { mask: "+252-#-###-###", cc: "SO", cd: "Somalia ", desc_en: "mobile", name_ru: "Сомали ", desc_ru: "мобильные", }, { mask: "+597-###-####", cc: "SR", cd: "Suriname ", desc_en: "mobile", name_ru: "Суринам ", desc_ru: "мобильные", }, { mask: "+597-###-###", cc: "SR", cd: "Suriname", desc_en: "", name_ru: "Суринам", desc_ru: "", }, { mask: "+211-##-###-####", cc: "SS", cd: "South Sudan", desc_en: "", name_ru: "Южный Судан", desc_ru: "", }, { mask: "+239-##-#####", cc: "ST", cd: "Sao Tome and Principe", desc_en: "", name_ru: "Сан-Томе и Принсипи", desc_ru: "", }, { mask: "+503-##-##-####", cc: "SV", cd: "El Salvador", desc_en: "", name_ru: "Сальвадор", desc_ru: "", }, { mask: "+1(721)###-####", cc: "SX", cd: "Sint Maarten", desc_en: "", name_ru: "Синт-Маартен", desc_ru: "", }, { mask: "+963-##-####-###", cc: "SY", cd: "Syrian Arab Republic", desc_en: "", name_ru: "Сирийская арабская республика", desc_ru: "", }, { mask: "+268-##-##-####", cc: "SZ", cd: "Swaziland", desc_en: "", name_ru: "Свазиленд", desc_ru: "", }, { mask: "+1(649)###-####", cc: "TC", cd: "Turks & Caicos", desc_en: "", name_ru: "Тёркс и Кайкос", desc_ru: "", }, { mask: "+235-##-##-##-##", cc: "TD", cd: "Chad", desc_en: "", name_ru: "Чад", desc_ru: "", }, { mask: "+228-##-###-###", cc: "TG", cd: "Togo", desc_en: "", name_ru: "Того", desc_ru: "", }, { mask: "+66-##-###-####", cc: "TH", cd: "Thailand ", desc_en: "mobile", name_ru: "Таиланд ", desc_ru: "мобильные", }, { mask: "+66-##-###-###", cc: "TH", cd: "Thailand", desc_en: "", name_ru: "Таиланд", desc_ru: "", }, { mask: "+992-##-###-####", cc: "TJ", cd: "Tajikistan", desc_en: "", name_ru: "Таджикистан", desc_ru: "", }, { mask: "+690-####", cc: "TK", cd: "Tokelau", desc_en: "", name_ru: "Токелау", desc_ru: "", }, { mask: "+670-###-####", cc: "TL", cd: "East Timor", desc_en: "", name_ru: "Восточный Тимор", desc_ru: "", }, { mask: "+670-77#-#####", cc: "TL", cd: "East Timor", desc_en: "Timor Telecom", name_ru: "Восточный Тимор", desc_ru: "Timor Telecom", }, { mask: "+670-78#-#####", cc: "TL", cd: "East Timor", desc_en: "Timor Telecom", name_ru: "Восточный Тимор", desc_ru: "Timor Telecom", }, { mask: "+993-#-###-####", cc: "TM", cd: "Turkmenistan", desc_en: "", name_ru: "Туркменистан", desc_ru: "", }, { mask: "+216-##-###-###", cc: "TN", cd: "Tunisia", desc_en: "", name_ru: "Тунис", desc_ru: "", }, { mask: "+676-#####", cc: "TO", cd: "Tonga", desc_en: "", name_ru: "Тонга", desc_ru: "", }, { mask: "+90(###)###-####", cc: "TR", cd: "Turkey", desc_en: "", name_ru: "Турция", desc_ru: "", }, { mask: "+1(868)###-####", cc: "TT", cd: "Trinidad & Tobago", desc_en: "", name_ru: "Тринидад и Тобаго", desc_ru: "", }, { mask: "+688-90####", cc: "TV", cd: "Tuvalu ", desc_en: "mobile", name_ru: "Тувалу ", desc_ru: "мобильные", }, { mask: "+688-2####", cc: "TV", cd: "Tuvalu", desc_en: "", name_ru: "Тувалу", desc_ru: "", }, { mask: "+886-#-####-####", cc: "TW", cd: "Taiwan", desc_en: "", name_ru: "Тайвань", desc_ru: "", }, { mask: "+886-####-####", cc: "TW", cd: "Taiwan", desc_en: "", name_ru: "Тайвань", desc_ru: "", }, { mask: "+255-##-###-####", cc: "TZ", cd: "Tanzania", desc_en: "", name_ru: "Танзания", desc_ru: "", }, { mask: "+380(##)###-##-##", cc: "UA", cd: "Ukraine", desc_en: "", name_ru: "Украина", desc_ru: "", }, { mask: "+256(###)###-###", cc: "UG", cd: "Uganda", desc_en: "", name_ru: "Уганда", desc_ru: "", }, { mask: "+44-##-####-####", cc: "UK", cd: "United Kingdom", desc_en: "", name_ru: "Великобритания", desc_ru: "", }, { mask: "+598-#-###-##-##", cc: "UY", cd: "Uruguay", desc_en: "", name_ru: "Уругвай", desc_ru: "", }, { mask: "+998-##-###-####", cc: "UZ", cd: "Uzbekistan", desc_en: "", name_ru: "Узбекистан", desc_ru: "", }, { mask: "+39-#-###-#####", cc: "VA", cd: "Vatican City", desc_en: "", name_ru: "Ватикан", desc_ru: "", }, { mask: "+1(784)###-####", cc: "VC", cd: "Saint Vincent & the Grenadines", desc_en: "", name_ru: "Сент-Винсент и Гренадины", desc_ru: "", }, { mask: "+58(###)###-####", cc: "VE", cd: "Venezuela", desc_en: "", name_ru: "Венесуэла", desc_ru: "", }, { mask: "+1(284)###-####", cc: "VG", cd: "British Virgin Islands", desc_en: "", name_ru: "Британские Виргинские острова", desc_ru: "", }, { mask: "+1(340)###-####", cc: "VI", cd: "US Virgin Islands", desc_en: "", name_ru: "Американские Виргинские острова", desc_ru: "", }, { mask: "+84-##-####-###", cc: "VN", cd: "Vietnam", desc_en: "", name_ru: "Вьетнам", desc_ru: "", }, { mask: "+84(###)####-###", cc: "VN", cd: "Vietnam", desc_en: "", name_ru: "Вьетнам", desc_ru: "", }, { mask: "+678-##-#####", cc: "VU", cd: "Vanuatu ", desc_en: "mobile", name_ru: "Вануату ", desc_ru: "мобильные", }, { mask: "+678-#####", cc: "VU", cd: "Vanuatu", desc_en: "", name_ru: "Вануату", desc_ru: "", }, { mask: "+681-##-####", cc: "WF", cd: "Wallis and Futuna", desc_en: "", name_ru: "Уоллис и Футуна", desc_ru: "", }, { mask: "+685-##-####", cc: "WS", cd: "Samoa", desc_en: "", name_ru: "Самоа", desc_ru: "", }, { mask: "+967-###-###-###", cc: "YE", cd: "Yemen ", desc_en: "mobile", name_ru: "Йемен ", desc_ru: "мобильные", }, { mask: "+967-#-###-###", cc: "YE", cd: "Yemen", desc_en: "", name_ru: "Йемен", desc_ru: "", }, { mask: "+967-##-###-###", cc: "YE", cd: "Yemen", desc_en: "", name_ru: "Йемен", desc_ru: "", }, { mask: "+27-##-###-####", cc: "ZA", cd: "South Africa", desc_en: "", name_ru: "Южно-Африканская Респ.", desc_ru: "", }, { mask: "+260-##-###-####", cc: "ZM", cd: "Zambia", desc_en: "", name_ru: "Замбия", desc_ru: "", }, { mask: "+263-#-######", cc: "ZW", cd: "Zimbabwe", desc_en: "", name_ru: "Зимбабве", desc_ru: "", }, { mask: "+1(###)###-####", cc: ["US", "CA"], cd: "USA and Canada", desc_en: "", name_ru: "США и Канада", desc_ru: "", }, ], }, }), e ); })(inputmask_phone_extensions); }), intlTelInput = createCommonjsModule(function (e) { var t, p, h, f; (p = window), (h = document), (t = (function () { for ( var d = [ ["Afghanistan (‫افغانستان‬‎)", "af", "93"], ["Albania (Shqipëri)", "al", "355"], ["Algeria (‫الجزائر‬‎)", "dz", "213"], ["American Samoa", "as", "1", 5, ["684"]], ["Andorra", "ad", "376"], ["Angola", "ao", "244"], ["Anguilla", "ai", "1", 6, ["264"]], ["Antigua and Barbuda", "ag", "1", 7, ["268"]], ["Argentina", "ar", "54"], ["Armenia (Հայաստան)", "am", "374"], ["Aruba", "aw", "297"], ["Australia", "au", "61", 0], ["Austria (Österreich)", "at", "43"], ["Azerbaijan (Azərbaycan)", "az", "994"], ["Bahamas", "bs", "1", 8, ["242"]], ["Bahrain (‫البحرين‬‎)", "bh", "973"], ["Bangladesh (বাংলাদেশ)", "bd", "880"], ["Barbados", "bb", "1", 9, ["246"]], ["Belarus (Беларусь)", "by", "375"], ["Belgium (België)", "be", "32"], ["Belize", "bz", "501"], ["Benin (Bénin)", "bj", "229"], ["Bermuda", "bm", "1", 10, ["441"]], ["Bhutan (འབྲུག)", "bt", "975"], ["Bolivia", "bo", "591"], ["Bosnia and Herzegovina (Босна и Херцеговина)", "ba", "387"], ["Botswana", "bw", "267"], ["Brazil (Brasil)", "br", "55"], ["British Indian Ocean Territory", "io", "246"], ["British Virgin Islands", "vg", "1", 11, ["284"]], ["Brunei", "bn", "673"], ["Bulgaria (България)", "bg", "359"], ["Burkina Faso", "bf", "226"], ["Burundi (Uburundi)", "bi", "257"], ["Cambodia (កម្ពុជា)", "kh", "855"], ["Cameroon (Cameroun)", "cm", "237"], [ "Canada", "ca", "1", 1, [ "204", "226", "236", "249", "250", "289", "306", "343", "365", "387", "403", "416", "418", "431", "437", "438", "450", "506", "514", "519", "548", "579", "581", "587", "604", "613", "639", "647", "672", "705", "709", "742", "778", "780", "782", "807", "819", "825", "867", "873", "902", "905", ], ], ["Cape Verde (Kabu Verdi)", "cv", "238"], ["Caribbean Netherlands", "bq", "599", 1, ["3", "4", "7"]], ["Cayman Islands", "ky", "1", 12, ["345"]], [ "Central African Republic (République centrafricaine)", "cf", "236", ], ["Chad (Tchad)", "td", "235"], ["Chile", "cl", "56"], ["China (中国)", "cn", "86"], ["Christmas Island", "cx", "61", 2], ["Cocos (Keeling) Islands", "cc", "61", 1], ["Colombia", "co", "57"], ["Comoros (‫جزر القمر‬‎)", "km", "269"], ["Congo (DRC) (Jamhuri ya Kidemokrasia ya Kongo)", "cd", "243"], ["Congo (Republic) (Congo-Brazzaville)", "cg", "242"], ["Cook Islands", "ck", "682"], ["Costa Rica", "cr", "506"], ["Côte d’Ivoire", "ci", "225"], ["Croatia (Hrvatska)", "hr", "385"], ["Cuba", "cu", "53"], ["Curaçao", "cw", "599", 0], ["Cyprus (Κύπρος)", "cy", "357"], ["Czech Republic (Česká republika)", "cz", "420"], ["Denmark (Danmark)", "dk", "45"], ["Djibouti", "dj", "253"], ["Dominica", "dm", "1", 13, ["767"]], [ "Dominican Republic (República Dominicana)", "do", "1", 2, ["809", "829", "849"], ], ["Ecuador", "ec", "593"], ["Egypt (‫مصر‬‎)", "eg", "20"], ["El Salvador", "sv", "503"], ["Equatorial Guinea (Guinea Ecuatorial)", "gq", "240"], ["Eritrea", "er", "291"], ["Estonia (Eesti)", "ee", "372"], ["Ethiopia", "et", "251"], ["Falkland Islands (Islas Malvinas)", "fk", "500"], ["Faroe Islands (Føroyar)", "fo", "298"], ["Fiji", "fj", "679"], ["Finland (Suomi)", "fi", "358", 0], ["France", "fr", "33"], ["French Guiana (Guyane française)", "gf", "594"], ["French Polynesia (Polynésie française)", "pf", "689"], ["Gabon", "ga", "241"], ["Gambia", "gm", "220"], ["Georgia (საქართველო)", "ge", "995"], ["Germany (Deutschland)", "de", "49"], ["Ghana (Gaana)", "gh", "233"], ["Gibraltar", "gi", "350"], ["Greece (Ελλάδα)", "gr", "30"], ["Greenland (Kalaallit Nunaat)", "gl", "299"], ["Grenada", "gd", "1", 14, ["473"]], ["Guadeloupe", "gp", "590", 0], ["Guam", "gu", "1", 15, ["671"]], ["Guatemala", "gt", "502"], ["Guernsey", "gg", "44", 1, ["1481", "7781", "7839", "7911"]], ["Guinea (Guinée)", "gn", "224"], ["Guinea-Bissau (Guiné Bissau)", "gw", "245"], ["Guyana", "gy", "592"], ["Haiti", "ht", "509"], ["Honduras", "hn", "504"], ["Hong Kong (香港)", "hk", "852"], ["Hungary (Magyarország)", "hu", "36"], ["Iceland (Ísland)", "is", "354"], ["India (भारत)", "in", "91"], ["Indonesia", "id", "62"], ["Iran (‫ایران‬‎)", "ir", "98"], ["Iraq (‫العراق‬‎)", "iq", "964"], ["Ireland", "ie", "353"], [ "Isle of Man", "im", "44", 2, ["1624", "74576", "7524", "7924", "7624"], ], ["Israel (‫ישראל‬‎)", "il", "972"], ["Italy (Italia)", "it", "39", 0], ["Jamaica", "jm", "1", 4, ["876", "658"]], ["Japan (日本)", "jp", "81"], [ "Jersey", "je", "44", 3, ["1534", "7509", "7700", "7797", "7829", "7937"], ], ["Jordan (‫الأردن‬‎)", "jo", "962"], ["Kazakhstan (Казахстан)", "kz", "7", 1, ["33", "7"]], ["Kenya", "ke", "254"], ["Kiribati", "ki", "686"], ["Kosovo", "xk", "383"], ["Kuwait (‫الكويت‬‎)", "kw", "965"], ["Kyrgyzstan (Кыргызстан)", "kg", "996"], ["Laos (ລາວ)", "la", "856"], ["Latvia (Latvija)", "lv", "371"], ["Lebanon (‫لبنان‬‎)", "lb", "961"], ["Lesotho", "ls", "266"], ["Liberia", "lr", "231"], ["Libya (‫ليبيا‬‎)", "ly", "218"], ["Liechtenstein", "li", "423"], ["Lithuania (Lietuva)", "lt", "370"], ["Luxembourg", "lu", "352"], ["Macau (澳門)", "mo", "853"], ["Macedonia (FYROM) (Македонија)", "mk", "389"], ["Madagascar (Madagasikara)", "mg", "261"], ["Malawi", "mw", "265"], ["Malaysia", "my", "60"], ["Maldives", "mv", "960"], ["Mali", "ml", "223"], ["Malta", "mt", "356"], ["Marshall Islands", "mh", "692"], ["Martinique", "mq", "596"], ["Mauritania (‫موريتانيا‬‎)", "mr", "222"], ["Mauritius (Moris)", "mu", "230"], ["Mayotte", "yt", "262", 1, ["269", "639"]], ["Mexico (México)", "mx", "52"], ["Micronesia", "fm", "691"], ["Moldova (Republica Moldova)", "md", "373"], ["Monaco", "mc", "377"], ["Mongolia (Монгол)", "mn", "976"], ["Montenegro (Crna Gora)", "me", "382"], ["Montserrat", "ms", "1", 16, ["664"]], ["Morocco (‫المغرب‬‎)", "ma", "212", 0], ["Mozambique (Moçambique)", "mz", "258"], ["Myanmar (Burma) (မြန်မာ)", "mm", "95"], ["Namibia (Namibië)", "na", "264"], ["Nauru", "nr", "674"], ["Nepal (नेपाल)", "np", "977"], ["Netherlands (Nederland)", "nl", "31"], ["New Caledonia (Nouvelle-Calédonie)", "nc", "687"], ["New Zealand", "nz", "64"], ["Nicaragua", "ni", "505"], ["Niger (Nijar)", "ne", "227"], ["Nigeria", "ng", "234"], ["Niue", "nu", "683"], ["Norfolk Island", "nf", "672"], ["North Korea (조선 민주주의 인민 공화국)", "kp", "850"], ["Northern Mariana Islands", "mp", "1", 17, ["670"]], ["Norway (Norge)", "no", "47", 0], ["Oman (‫عُمان‬‎)", "om", "968"], ["Pakistan (‫پاکستان‬‎)", "pk", "92"], ["Palau", "pw", "680"], ["Palestine (‫فلسطين‬‎)", "ps", "970"], ["Panama (Panamá)", "pa", "507"], ["Papua New Guinea", "pg", "675"], ["Paraguay", "py", "595"], ["Peru (Perú)", "pe", "51"], ["Philippines", "ph", "63"], ["Poland (Polska)", "pl", "48"], ["Portugal", "pt", "351"], ["Puerto Rico", "pr", "1", 3, ["787", "939"]], ["Qatar (‫قطر‬‎)", "qa", "974"], ["Réunion (La Réunion)", "re", "262", 0], ["Romania (România)", "ro", "40"], ["Russia (Россия)", "ru", "7", 0], ["Rwanda", "rw", "250"], ["Saint Barthélemy", "bl", "590", 1], ["Saint Helena", "sh", "290"], ["Saint Kitts and Nevis", "kn", "1", 18, ["869"]], ["Saint Lucia", "lc", "1", 19, ["758"]], [ "Saint Martin (Saint-Martin (partie française))", "mf", "590", 2, ], [ "Saint Pierre and Miquelon (Saint-Pierre-et-Miquelon)", "pm", "508", ], ["Saint Vincent and the Grenadines", "vc", "1", 20, ["784"]], ["Samoa", "ws", "685"], ["San Marino", "sm", "378"], ["São Tomé and Príncipe (São Tomé e Príncipe)", "st", "239"], ["Saudi Arabia (‫المملكة العربية السعودية‬‎)", "sa", "966"], ["Senegal (Sénégal)", "sn", "221"], ["Serbia (Србија)", "rs", "381"], ["Seychelles", "sc", "248"], ["Sierra Leone", "sl", "232"], ["Singapore", "sg", "65"], ["Sint Maarten", "sx", "1", 21, ["721"]], ["Slovakia (Slovensko)", "sk", "421"], ["Slovenia (Slovenija)", "si", "386"], ["Solomon Islands", "sb", "677"], ["Somalia (Soomaaliya)", "so", "252"], ["South Africa", "za", "27"], ["South Korea (대한민국)", "kr", "82"], ["South Sudan (‫جنوب السودان‬‎)", "ss", "211"], ["Spain (España)", "es", "34"], ["Sri Lanka (ශ්‍රී ලංකාව)", "lk", "94"], ["Sudan (‫السودان‬‎)", "sd", "249"], ["Suriname", "sr", "597"], ["Svalbard and Jan Mayen", "sj", "47", 1, ["79"]], ["Swaziland", "sz", "268"], ["Sweden (Sverige)", "se", "46"], ["Switzerland (Schweiz)", "ch", "41"], ["Syria (‫سوريا‬‎)", "sy", "963"], ["Taiwan (台灣)", "tw", "886"], ["Tajikistan", "tj", "992"], ["Tanzania", "tz", "255"], ["Thailand (ไทย)", "th", "66"], ["Timor-Leste", "tl", "670"], ["Togo", "tg", "228"], ["Tokelau", "tk", "690"], ["Tonga", "to", "676"], ["Trinidad and Tobago", "tt", "1", 22, ["868"]], ["Tunisia (‫تونس‬‎)", "tn", "216"], ["Turkey (Türkiye)", "tr", "90"], ["Turkmenistan", "tm", "993"], ["Turks and Caicos Islands", "tc", "1", 23, ["649"]], ["Tuvalu", "tv", "688"], ["U.S. Virgin Islands", "vi", "1", 24, ["340"]], ["Uganda", "ug", "256"], ["Ukraine (Україна)", "ua", "380"], [ "United Arab Emirates (‫الإمارات العربية المتحدة‬‎)", "ae", "971", ], ["United Kingdom", "gb", "44", 0], ["United States", "us", "1", 0], ["Uruguay", "uy", "598"], ["Uzbekistan (Oʻzbekiston)", "uz", "998"], ["Vanuatu", "vu", "678"], ["Vatican City (Città del Vaticano)", "va", "39", 1, ["06698"]], ["Venezuela", "ve", "58"], ["Vietnam (Việt Nam)", "vn", "84"], ["Wallis and Futuna (Wallis-et-Futuna)", "wf", "681"], [ "Western Sahara (‫الصحراء الغربية‬‎)", "eh", "212", 1, ["5288", "5289"], ], ["Yemen (‫اليمن‬‎)", "ye", "967"], ["Zambia", "zm", "260"], ["Zimbabwe", "zw", "263"], ["Åland Islands", "ax", "358", 1, ["18"]], ], e = 0; e < d.length; e++ ) { var t = d[e]; d[e] = { name: t[0], iso2: t[1], dialCode: t[2], priority: t[3] || 0, areaCodes: t[4] || null, }; } function r(e, t) { if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function"); } function a(e, t) { for (var n = 0; n < t.length; n++) { var a = t[n]; (a.enumerable = a.enumerable || !1), (a.configurable = !0), "value" in a && (a.writable = !0), Object.defineProperty(e, a.key, a); } } function n(e, t, n) { return t && a(e.prototype, t), n && a(e, n), e; } p.intlTelInputGlobals = { getInstance: function e(t) { var n = t.getAttribute("data-intl-tel-input-id"); return p.intlTelInputGlobals.instances[n]; }, instances: {}, }; var s = 0, o = { allowDropdown: !0, autoHideDialCode: !0, autoPlaceholder: "polite", customContainer: "", customPlaceholder: null, dropdownContainer: null, excludeCountries: [], formatOnDisplay: !0, geoIpLookup: null, hiddenInput: "", initialCountry: "", localizedCountries: null, nationalMode: !0, onlyCountries: [], placeholderNumberType: "MOBILE", preferredCountries: ["us", "gb"], separateDialCode: !1, utilsScript: "", }, c = [ "800", "822", "833", "844", "855", "866", "877", "880", "881", "882", "883", "884", "885", "886", "887", "888", "889", ]; p.addEventListener("load", function () { p.intlTelInputGlobals.windowLoaded = !0; }); var u = function e(t, n) { for (var a = Object.keys(t), i = 0; i < a.length; i++) n(a[i], t[a[i]]); }, l = function e(t) { u(p.intlTelInputGlobals.instances, function (e) { p.intlTelInputGlobals.instances[e][t](); }); }, i = (function () { function i(e, t) { var n = this; r(this, i), (this.id = s++), (this.telInput = e), (this.activeItem = null), (this.highlightedItem = null); var a = t || {}; (this.options = {}), u(o, function (e, t) { n.options[e] = a.hasOwnProperty(e) ? a[e] : t; }), (this.hadInitialPlaceholder = Boolean( e.getAttribute("placeholder") )); } return ( n(i, [ { key: "_init", value: function e() { var n = this; if ( (this.options.nationalMode && (this.options.autoHideDialCode = !1), this.options.separateDialCode && (this.options.autoHideDialCode = this.options.nationalMode = !1), (this.isMobile = /Android.+Mobile|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test( navigator.userAgent )), this.isMobile && (h.body.classList.add("iti-mobile"), this.options.dropdownContainer || (this.options.dropdownContainer = h.body)), "undefined" != typeof Promise) ) { var t = new Promise(function (e, t) { (n.resolveAutoCountryPromise = e), (n.rejectAutoCountryPromise = t); }), a = new Promise(function (e, t) { (n.resolveUtilsScriptPromise = e), (n.rejectUtilsScriptPromise = t); }); this.promise = Promise.all([t, a]); } else (this.resolveAutoCountryPromise = this.rejectAutoCountryPromise = function () {}), (this.resolveUtilsScriptPromise = this.rejectUtilsScriptPromise = function () {}); (this.selectedCountryData = {}), this._processCountryData(), this._generateMarkup(), this._setInitialState(), this._initListeners(), this._initRequests(); }, }, { key: "_processCountryData", value: function e() { this._processAllCountries(), this._processCountryCodes(), this._processPreferredCountries(), this.options.localizedCountries && this._translateCountriesByLocale(), (this.options.onlyCountries.length || this.options.localizedCountries) && this.countries.sort(this._countryNameSort); }, }, { key: "_addCountryCode", value: function e(t, n, a) { n.length > this.dialCodeMaxLen && (this.dialCodeMaxLen = n.length), this.countryCodes.hasOwnProperty(n) || (this.countryCodes[n] = []); for (var i = 0; i < this.countryCodes[n].length; i++) if (this.countryCodes[n][i] === t) return; var r = a !== f ? a : this.countryCodes[n].length; this.countryCodes[n][r] = t; }, }, { key: "_processAllCountries", value: function e() { if (this.options.onlyCountries.length) { for ( var t = this.options.onlyCountries, n = function e(t) { return t.toLowerCase(); }, a = [], i = 0; i < t.length; i++ ) a.push(n(t[i], i, t)); var r = a; this.countries = d.filter(function (e) { return r.indexOf(e.iso2) > -1; }); } else if (this.options.excludeCountries.length) { for ( var s = this.options.excludeCountries, o = function e(t) { return t.toLowerCase(); }, c = [], u = 0; u < s.length; u++ ) c.push(o(s[u], u, s)); var l = c; this.countries = d.filter(function (e) { return -1 === l.indexOf(e.iso2); }); } else this.countries = d; }, }, { key: "_translateCountriesByLocale", value: function e() { for (var t = 0; t < this.countries.length; t++) { var n = this.countries[t].iso2.toLowerCase(); this.options.localizedCountries.hasOwnProperty(n) && (this.countries[t].name = this.options.localizedCountries[n]); } }, }, { key: "_countryNameSort", value: function e(t, n) { return t.name.localeCompare(n.name); }, }, { key: "_processCountryCodes", value: function e() { (this.dialCodeMaxLen = 0), (this.countryCodes = {}); for (var t = 0; t < this.countries.length; t++) { var n = this.countries[t]; this._addCountryCode(n.iso2, n.dialCode, n.priority); } for (var a = 0; a < this.countries.length; a++) { var i = this.countries[a]; if (i.areaCodes) for ( var r = this.countryCodes[i.dialCode][0], s = 0; s < i.areaCodes.length; s++ ) { for ( var o = i.areaCodes[s], c = 1; c < o.length; c++ ) { var u = i.dialCode + o.substr(0, c); this._addCountryCode(r, u), this._addCountryCode(i.iso2, u); } this._addCountryCode(i.iso2, i.dialCode + o); } } }, }, { key: "_processPreferredCountries", value: function e() { this.preferredCountries = []; for ( var t = 0; t < this.options.preferredCountries.length; t++ ) { var n = this.options.preferredCountries[t].toLowerCase(), a = this._getCountryData(n, !1, !0); a && this.preferredCountries.push(a); } }, }, { key: "_createEl", value: function e(t, n, a) { var i = h.createElement(t); return ( n && u(n, function (e, t) { return i.setAttribute(e, t); }), a && a.appendChild(i), i ); }, }, { key: "_generateMarkup", value: function e() { this.telInput.setAttribute("autocomplete", "off"); var t = "iti"; this.options.allowDropdown && (t += " iti--allow-dropdown"), this.options.separateDialCode && (t += " iti--separate-dial-code"), this.options.customContainer && ((t += " "), (t += this.options.customContainer)); var n = this._createEl("div", { class: t }); if ( (this.telInput.parentNode.insertBefore( n, this.telInput ), (this.flagsContainer = this._createEl( "div", { class: "iti__flag-container" }, n )), n.appendChild(this.telInput), (this.selectedFlag = this._createEl( "div", { class: "iti__selected-flag", role: "combobox", "aria-owns": "country-listbox", }, this.flagsContainer )), (this.selectedFlagInner = this._createEl( "div", { class: "iti__flag" }, this.selectedFlag )), this.options.separateDialCode && (this.selectedDialCode = this._createEl( "div", { class: "iti__selected-dial-code" }, this.selectedFlag )), this.options.allowDropdown && (this.selectedFlag.setAttribute("tabindex", "0"), (this.dropdownArrow = this._createEl( "div", { class: "iti__arrow" }, this.selectedFlag )), (this.countryList = this._createEl("ul", { class: "iti__country-list iti__hide", id: "country-listbox", "aria-expanded": "false", role: "listbox", })), this.preferredCountries.length && (this._appendListItems( this.preferredCountries, "iti__preferred" ), this._createEl( "li", { class: "iti__divider", role: "separator", "aria-disabled": "true", }, this.countryList )), this._appendListItems( this.countries, "iti__standard" ), this.options.dropdownContainer ? ((this.dropdown = this._createEl("div", { class: "iti iti--container", })), this.dropdown.appendChild(this.countryList)) : this.flagsContainer.appendChild( this.countryList )), this.options.hiddenInput) ) { var a = this.options.hiddenInput, i = this.telInput.getAttribute("name"); if (i) { var r = i.lastIndexOf("["); -1 !== r && (a = "".concat(i.substr(0, r), "[").concat(a, "]")); } (this.hiddenInput = this._createEl("input", { type: "hidden", name: a, })), n.appendChild(this.hiddenInput); } }, }, { key: "_appendListItems", value: function e(t, n) { for (var a = "", i = 0; i < t.length; i++) { var r = t[i]; (a += "
  • ")), (a += "
    " )), (a += "".concat( r.name, "" )), (a += "+".concat( r.dialCode, "" )), (a += "
  • "); } this.countryList.insertAdjacentHTML("beforeend", a); }, }, { key: "_setInitialState", value: function e() { var t = this.telInput.value, n = this._getDialCode(t), a = this._isRegionlessNanp(t), i = this.options, r = i.initialCountry, s = i.nationalMode, o = i.autoHideDialCode, c = i.separateDialCode; n && !a ? this._updateFlagFromNumber(t) : "auto" !== r && (r ? this._setFlag(r.toLowerCase()) : n && a ? this._setFlag("us") : ((this.defaultCountry = this.preferredCountries .length ? this.preferredCountries[0].iso2 : this.countries[0].iso2), t || this._setFlag(this.defaultCountry)), t || s || o || c || (this.telInput.value = "+".concat( this.selectedCountryData.dialCode ))), t && this._updateValFromNumber(t); }, }, { key: "_initListeners", value: function e() { this._initKeyListeners(), this.options.autoHideDialCode && this._initBlurListeners(), this.options.allowDropdown && this._initDropdownListeners(), this.hiddenInput && this._initHiddenInputListener(); }, }, { key: "_initHiddenInputListener", value: function e() { var t = this; (this._handleHiddenInputSubmit = function () { t.hiddenInput.value = t.getNumber(); }), this.telInput.form && this.telInput.form.addEventListener( "submit", this._handleHiddenInputSubmit ); }, }, { key: "_getClosestLabel", value: function e() { for (var t = this.telInput; t && "LABEL" !== t.tagName; ) t = t.parentNode; return t; }, }, { key: "_initDropdownListeners", value: function e() { var n = this; this._handleLabelClick = function (e) { n.countryList.classList.contains("iti__hide") ? n.telInput.focus() : e.preventDefault(); }; var t = this._getClosestLabel(); t && t.addEventListener("click", this._handleLabelClick), (this._handleClickSelectedFlag = function () { !n.countryList.classList.contains("iti__hide") || n.telInput.disabled || n.telInput.readOnly || n._showDropdown(); }), this.selectedFlag.addEventListener( "click", this._handleClickSelectedFlag ), (this._handleFlagsContainerKeydown = function (e) { var t; n.countryList.classList.contains("iti__hide") && -1 !== [ "ArrowUp", "Up", "ArrowDown", "Down", " ", "Enter", ].indexOf(e.key) && (e.preventDefault(), e.stopPropagation(), n._showDropdown()), "Tab" === e.key && n._closeDropdown(); }), this.flagsContainer.addEventListener( "keydown", this._handleFlagsContainerKeydown ); }, }, { key: "_initRequests", value: function e() { var t = this; this.options.utilsScript && !p.intlTelInputUtils ? p.intlTelInputGlobals.windowLoaded ? p.intlTelInputGlobals.loadUtils( this.options.utilsScript ) : p.addEventListener("load", function () { p.intlTelInputGlobals.loadUtils( t.options.utilsScript ); }) : this.resolveUtilsScriptPromise(), "auto" === this.options.initialCountry ? this._loadAutoCountry() : this.resolveAutoCountryPromise(); }, }, { key: "_loadAutoCountry", value: function e() { p.intlTelInputGlobals.autoCountry ? this.handleAutoCountry() : p.intlTelInputGlobals.startedLoadingAutoCountry || ((p.intlTelInputGlobals.startedLoadingAutoCountry = !0), "function" == typeof this.options.geoIpLookup && this.options.geoIpLookup( function (e) { (p.intlTelInputGlobals.autoCountry = e.toLowerCase()), setTimeout(function () { return l("handleAutoCountry"); }); }, function () { return l("rejectAutoCountryPromise"); } )); }, }, { key: "_initKeyListeners", value: function e() { var t = this; (this._handleKeyupEvent = function () { t._updateFlagFromNumber(t.telInput.value) && t._triggerCountryChange(); }), this.telInput.addEventListener( "keyup", this._handleKeyupEvent ), (this._handleClipboardEvent = function () { setTimeout(t._handleKeyupEvent); }), this.telInput.addEventListener( "cut", this._handleClipboardEvent ), this.telInput.addEventListener( "paste", this._handleClipboardEvent ); }, }, { key: "_cap", value: function e(t) { var n = this.telInput.getAttribute("maxlength"); return n && t.length > n ? t.substr(0, n) : t; }, }, { key: "_initBlurListeners", value: function e() { var t = this; (this._handleSubmitOrBlurEvent = function () { t._removeEmptyDialCode(); }), this.telInput.form && this.telInput.form.addEventListener( "submit", this._handleSubmitOrBlurEvent ), this.telInput.addEventListener( "blur", this._handleSubmitOrBlurEvent ); }, }, { key: "_removeEmptyDialCode", value: function e() { if ("+" === this.telInput.value.charAt(0)) { var t = this._getNumeric(this.telInput.value); (t && this.selectedCountryData.dialCode !== t) || (this.telInput.value = ""); } }, }, { key: "_getNumeric", value: function e(t) { return t.replace(/\D/g, ""); }, }, { key: "_trigger", value: function e(t) { var n = h.createEvent("Event"); n.initEvent(t, !0, !0), this.telInput.dispatchEvent(n); }, }, { key: "_showDropdown", value: function e() { this.countryList.classList.remove("iti__hide"), this.countryList.setAttribute("aria-expanded", "true"), this._setDropdownPosition(), this.activeItem && (this._highlightListItem(this.activeItem, !1), this._scrollTo(this.activeItem, !0)), this._bindDropdownListeners(), this.dropdownArrow.classList.add("iti__arrow--up"), this._trigger("open:countrydropdown"); }, }, { key: "_toggleClass", value: function e(t, n, a) { a && !t.classList.contains(n) ? t.classList.add(n) : !a && t.classList.contains(n) && t.classList.remove(n); }, }, { key: "_setDropdownPosition", value: function e() { var t = this; if ( (this.options.dropdownContainer && this.options.dropdownContainer.appendChild( this.dropdown ), !this.isMobile) ) { var n = this.telInput.getBoundingClientRect(), a = p.pageYOffset || h.documentElement.scrollTop, i = n.top + a, r = this.countryList.offsetHeight, s = i + this.telInput.offsetHeight + r < a + p.innerHeight, o = i - r > a; if ( (this._toggleClass( this.countryList, "iti__country-list--dropup", !s && o ), this.options.dropdownContainer) ) { var c = !s && o ? 0 : this.telInput.offsetHeight; (this.dropdown.style.top = "".concat(i + c, "px")), (this.dropdown.style.left = "".concat( n.left + h.body.scrollLeft, "px" )), (this._handleWindowScroll = function () { return t._closeDropdown(); }), p.addEventListener( "scroll", this._handleWindowScroll ); } } }, }, { key: "_getClosestListItem", value: function e(t) { for ( var n = t; n && n !== this.countryList && !n.classList.contains("iti__country"); ) n = n.parentNode; return n === this.countryList ? null : n; }, }, { key: "_bindDropdownListeners", value: function e() { var n = this; (this._handleMouseoverCountryList = function (e) { var t = n._getClosestListItem(e.target); t && n._highlightListItem(t, !1); }), this.countryList.addEventListener( "mouseover", this._handleMouseoverCountryList ), (this._handleClickCountryList = function (e) { var t = n._getClosestListItem(e.target); t && n._selectListItem(t); }), this.countryList.addEventListener( "click", this._handleClickCountryList ); var t = !0; (this._handleClickOffToClose = function () { t || n._closeDropdown(), (t = !1); }), h.documentElement.addEventListener( "click", this._handleClickOffToClose ); var a = "", i = null; (this._handleKeydownOnDropdown = function (e) { e.preventDefault(), "ArrowUp" === e.key || "Up" === e.key || "ArrowDown" === e.key || "Down" === e.key ? n._handleUpDownKey(e.key) : "Enter" === e.key ? n._handleEnterKey() : "Escape" === e.key ? n._closeDropdown() : /^[a-zA-ZÀ-ÿ ]$/.test(e.key) && (i && clearTimeout(i), (a += e.key.toLowerCase()), n._searchForCountry(a), (i = setTimeout(function () { a = ""; }, 1e3))); }), h.addEventListener( "keydown", this._handleKeydownOnDropdown ); }, }, { key: "_handleUpDownKey", value: function e(t) { var n = "ArrowUp" === t || "Up" === t ? this.highlightedItem.previousElementSibling : this.highlightedItem.nextElementSibling; n && (n.classList.contains("iti__divider") && (n = "ArrowUp" === t || "Up" === t ? n.previousElementSibling : n.nextElementSibling), this._highlightListItem(n, !0)); }, }, { key: "_handleEnterKey", value: function e() { this.highlightedItem && this._selectListItem(this.highlightedItem); }, }, { key: "_searchForCountry", value: function e(t) { for (var n = 0; n < this.countries.length; n++) if (this._startsWith(this.countries[n].name, t)) { var a = this.countryList.querySelector( "#iti-item-".concat(this.countries[n].iso2) ); this._highlightListItem(a, !1), this._scrollTo(a, !0); break; } }, }, { key: "_startsWith", value: function e(t, n) { return t.substr(0, n.length).toLowerCase() === n; }, }, { key: "_updateValFromNumber", value: function e(t) { var n = t; if ( this.options.formatOnDisplay && p.intlTelInputUtils && this.selectedCountryData ) { var a = !this.options.separateDialCode && (this.options.nationalMode || "+" !== n.charAt(0)), i = intlTelInputUtils.numberFormat, r = i.NATIONAL, s = i.INTERNATIONAL, o = a ? r : s; n = intlTelInputUtils.formatNumber( n, this.selectedCountryData.iso2, o ); } (n = this._beforeSetNumber(n)), (this.telInput.value = n); }, }, { key: "_updateFlagFromNumber", value: function e(t) { var n = t, a = this.selectedCountryData.dialCode, i = "1" === a; n && this.options.nationalMode && i && "+" !== n.charAt(0) && ("1" !== n.charAt(0) && (n = "1".concat(n)), (n = "+".concat(n))), this.options.separateDialCode && a && "+" !== n.charAt(0) && (n = "+".concat(a).concat(n)); var r = this._getDialCode(n), s = this._getNumeric(n), o = null; if (r) { var c = this.countryCodes[this._getNumeric(r)], u = -1 !== c.indexOf(this.selectedCountryData.iso2) && s.length <= r.length - 1, l; if (!(("1" === a && this._isRegionlessNanp(s)) || u)) for (var d = 0; d < c.length; d++) if (c[d]) { o = c[d]; break; } } else "+" === n.charAt(0) && s.length ? (o = "") : (n && "+" !== n) || (o = this.defaultCountry); return null !== o && this._setFlag(o); }, }, { key: "_isRegionlessNanp", value: function e(t) { var n = this._getNumeric(t); if ("1" === n.charAt(0)) { var a = n.substr(1, 3); return -1 !== c.indexOf(a); } return !1; }, }, { key: "_highlightListItem", value: function e(t, n) { var a = this.highlightedItem; a && a.classList.remove("iti__highlight"), (this.highlightedItem = t), this.highlightedItem.classList.add("iti__highlight"), n && this.highlightedItem.focus(); }, }, { key: "_getCountryData", value: function e(t, n, a) { for ( var i = n ? d : this.countries, r = 0; r < i.length; r++ ) if (i[r].iso2 === t) return i[r]; if (a) return null; throw new Error("No country data for '".concat(t, "'")); }, }, { key: "_setFlag", value: function e(t) { var n = this.selectedCountryData.iso2 ? this.selectedCountryData : {}; (this.selectedCountryData = t ? this._getCountryData(t, !1, !1) : {}), this.selectedCountryData.iso2 && (this.defaultCountry = this.selectedCountryData.iso2), this.selectedFlagInner.setAttribute( "class", "iti__flag iti__".concat(t) ); var a = t ? "" .concat(this.selectedCountryData.name, ": +") .concat(this.selectedCountryData.dialCode) : "Unknown"; if ( (this.selectedFlag.setAttribute("title", a), this.options.separateDialCode) ) { var i = this.selectedCountryData.dialCode ? "+".concat(this.selectedCountryData.dialCode) : ""; this.selectedDialCode.innerHTML = i; var r = this.selectedFlag.offsetWidth || this._getHiddenSelectedFlagWidth(); this.telInput.style.paddingLeft = "".concat( r + 6, "px" ); } if ( (this._updatePlaceholder(), this.options.allowDropdown) ) { var s = this.activeItem; if ( (s && (s.classList.remove("iti__active"), s.setAttribute("aria-selected", "false")), t) ) { var o = this.countryList.querySelector( "#iti-item-".concat(t) ); o.setAttribute("aria-selected", "true"), o.classList.add("iti__active"), (this.activeItem = o), this.countryList.setAttribute( "aria-activedescendant", o.getAttribute("id") ); } } return n.iso2 !== t; }, }, { key: "_getHiddenSelectedFlagWidth", value: function e() { var t = this.telInput.parentNode.cloneNode(); (t.style.visibility = "hidden"), h.body.appendChild(t); var n = this.selectedFlag.cloneNode(!0); t.appendChild(n); var a = n.offsetWidth; return t.parentNode.removeChild(t), a; }, }, { key: "_updatePlaceholder", value: function e() { var t = "aggressive" === this.options.autoPlaceholder || (!this.hadInitialPlaceholder && "polite" === this.options.autoPlaceholder); if (p.intlTelInputUtils && t) { var n = intlTelInputUtils.numberType[ this.options.placeholderNumberType ], a = this.selectedCountryData.iso2 ? intlTelInputUtils.getExampleNumber( this.selectedCountryData.iso2, this.options.nationalMode, n ) : ""; (a = this._beforeSetNumber(a)), "function" == typeof this.options.customPlaceholder && (a = this.options.customPlaceholder( a, this.selectedCountryData )), this.telInput.setAttribute("placeholder", a); } }, }, { key: "_selectListItem", value: function e(t) { var n = this._setFlag( t.getAttribute("data-country-code") ); this._closeDropdown(), this._updateDialCode( t.getAttribute("data-dial-code"), !0 ), this.telInput.focus(); var a = this.telInput.value.length; this.telInput.setSelectionRange(a, a), n && this._triggerCountryChange(); }, }, { key: "_closeDropdown", value: function e() { this.countryList.classList.add("iti__hide"), this.countryList.setAttribute("aria-expanded", "false"), this.dropdownArrow.classList.remove("iti__arrow--up"), h.removeEventListener( "keydown", this._handleKeydownOnDropdown ), h.documentElement.removeEventListener( "click", this._handleClickOffToClose ), this.countryList.removeEventListener( "mouseover", this._handleMouseoverCountryList ), this.countryList.removeEventListener( "click", this._handleClickCountryList ), this.options.dropdownContainer && (this.isMobile || p.removeEventListener( "scroll", this._handleWindowScroll ), this.dropdown.parentNode && this.dropdown.parentNode.removeChild( this.dropdown )), this._trigger("close:countrydropdown"); }, }, { key: "_scrollTo", value: function e(t, n) { var a = this.countryList, i = p.pageYOffset || h.documentElement.scrollTop, r = a.offsetHeight, s = a.getBoundingClientRect().top + i, o = s + r, c = t.offsetHeight, u = t.getBoundingClientRect().top + i, l = u + c, d = u - s + a.scrollTop, m = r / 2 - c / 2; if (u < s) n && (d -= m), (a.scrollTop = d); else if (l > o) { n && (d += m); var f = r - c; a.scrollTop = d - f; } }, }, { key: "_updateDialCode", value: function e(t, n) { var a = this.telInput.value, i = "+".concat(t), r; if ("+" === a.charAt(0)) { var s = this._getDialCode(a); r = s ? a.replace(s, i) : i; } else { if ( this.options.nationalMode || this.options.separateDialCode ) return; if (a) r = i + a; else { if (!n && this.options.autoHideDialCode) return; r = i; } } this.telInput.value = r; }, }, { key: "_getDialCode", value: function e(t) { var n = ""; if ("+" === t.charAt(0)) for (var a = "", i = 0; i < t.length; i++) { var r = t.charAt(i); if ( !isNaN(parseInt(r, 10)) && ((a += r), this.countryCodes[a] && (n = t.substr(0, i + 1)), a.length === this.dialCodeMaxLen) ) break; } return n; }, }, { key: "_getFullNumber", value: function e() { var t = this.telInput.value.trim(), n = this.selectedCountryData.dialCode, a, i = this._getNumeric(t); return ( (a = this.options.separateDialCode && "+" !== t.charAt(0) && n && i ? "+".concat(n) : "") + t ); }, }, { key: "_beforeSetNumber", value: function e(t) { var n = t; if (this.options.separateDialCode) { var a = this._getDialCode(n); if (a) { var i = " " === n[ (a = "+".concat( this.selectedCountryData.dialCode )).length ] || "-" === n[a.length] ? a.length + 1 : a.length; n = n.substr(i); } } return this._cap(n); }, }, { key: "_triggerCountryChange", value: function e() { this._trigger("countrychange"); }, }, { key: "handleAutoCountry", value: function e() { "auto" === this.options.initialCountry && ((this.defaultCountry = p.intlTelInputGlobals.autoCountry), this.telInput.value || this.setCountry(this.defaultCountry), this.resolveAutoCountryPromise()); }, }, { key: "handleUtils", value: function e() { p.intlTelInputUtils && (this.telInput.value && this._updateValFromNumber(this.telInput.value), this._updatePlaceholder()), this.resolveUtilsScriptPromise(); }, }, { key: "destroy", value: function e() { var t = this.telInput.form; if (this.options.allowDropdown) { this._closeDropdown(), this.selectedFlag.removeEventListener( "click", this._handleClickSelectedFlag ), this.flagsContainer.removeEventListener( "keydown", this._handleFlagsContainerKeydown ); var n = this._getClosestLabel(); n && n.removeEventListener( "click", this._handleLabelClick ); } this.hiddenInput && t && t.removeEventListener( "submit", this._handleHiddenInputSubmit ), this.options.autoHideDialCode && (t && t.removeEventListener( "submit", this._handleSubmitOrBlurEvent ), this.telInput.removeEventListener( "blur", this._handleSubmitOrBlurEvent )), this.telInput.removeEventListener( "keyup", this._handleKeyupEvent ), this.telInput.removeEventListener( "cut", this._handleClipboardEvent ), this.telInput.removeEventListener( "paste", this._handleClipboardEvent ), this.telInput.removeAttribute("data-intl-tel-input-id"); var a = this.telInput.parentNode; a.parentNode.insertBefore(this.telInput, a), a.parentNode.removeChild(a), delete p.intlTelInputGlobals.instances[this.id]; }, }, { key: "getExtension", value: function e() { return p.intlTelInputUtils ? intlTelInputUtils.getExtension( this._getFullNumber(), this.selectedCountryData.iso2 ) : ""; }, }, { key: "getNumber", value: function e(t) { if (p.intlTelInputUtils) { var n = this.selectedCountryData.iso2; return intlTelInputUtils.formatNumber( this._getFullNumber(), n, t ); } return ""; }, }, { key: "getNumberType", value: function e() { return p.intlTelInputUtils ? intlTelInputUtils.getNumberType( this._getFullNumber(), this.selectedCountryData.iso2 ) : -99; }, }, { key: "getSelectedCountryData", value: function e() { return this.selectedCountryData; }, }, { key: "getValidationError", value: function e() { if (p.intlTelInputUtils) { var t = this.selectedCountryData.iso2; return intlTelInputUtils.getValidationError( this._getFullNumber(), t ); } return -99; }, }, { key: "isValidNumber", value: function e() { var t = this._getFullNumber().trim(), n = this.options.nationalMode ? this.selectedCountryData.iso2 : ""; return p.intlTelInputUtils ? intlTelInputUtils.isValidNumber(t, n) : null; }, }, { key: "setCountry", value: function e(t) { var n = t.toLowerCase(); this.selectedFlagInner.classList.contains( "iti__".concat(n) ) || (this._setFlag(n), this._updateDialCode( this.selectedCountryData.dialCode, !1 ), this._triggerCountryChange()); }, }, { key: "setNumber", value: function e(t) { var n = this._updateFlagFromNumber(t); this._updateValFromNumber(t), n && this._triggerCountryChange(); }, }, { key: "setPlaceholderNumberType", value: function e(t) { (this.options.placeholderNumberType = t), this._updatePlaceholder(); }, }, ]), i ); })(); p.intlTelInputGlobals.getCountryData = function () { return d; }; var m = function e(t, n, a) { var i = h.createElement("script"); (i.onload = function () { l("handleUtils"), n && n(); }), (i.onerror = function () { l("rejectUtilsScriptPromise"), a && a(); }), (i.className = "iti-load-utils"), (i.async = !0), (i.src = t), h.body.appendChild(i); }; return ( (p.intlTelInputGlobals.loadUtils = function (n) { if ( !p.intlTelInputUtils && !p.intlTelInputGlobals.startedLoadingUtilsScript ) { if ( ((p.intlTelInputGlobals.startedLoadingUtilsScript = !0), "undefined" != typeof Promise) ) return new Promise(function (e, t) { return m(n, e, t); }); m(n); } return null; }), (p.intlTelInputGlobals.defaults = o), (p.intlTelInputGlobals.version = "16.0.7"), function (e, t) { var n = new i(e, t); return ( n._init(), e.setAttribute("data-intl-tel-input-id", n.id), (p.intlTelInputGlobals.instances[n.id] = n), n ); } ); })()), e.exports ? (e.exports = t) : (window.intlTelInput = t); }), ad = "Андорра (Andorra)", ae = "ОАЭ (‫الإمارات العربية المتحدة‬‎)", af = "Афганистан (افغانستان)", ag = "Антигуа и Барбуда (Antigua and Barbuda)", ai = "Ангилья (Anguilla)", al = "Албания (Shqipëri)", am = "Армения (Հայաստան)", ao = "Ангола (Angola)", ar = "Аргентина (Argentina)", as = "Американское Самоа (American Samoa)", at = "Австрия (Österreich)", au = "Австралия (Australia)", aw = "Аруба (Aruba)", ax = "Аландские о-ва (Åland Islands)", az = "Азербайджан (Azərbaycan)", ba = "Босния и Герцеговина (Босна и Херцеговина)", bb = "Барбадос (Barbados)", bd = "Бангладеш (বাংলাদেশ)", be = "Бельгия (België)", bf = "Буркина-Фасо (Burkina Faso)", bg = "Болгария (България)", bh = "Бахрейн (‫البحرين‬‎)", bi = "Бурунди (Uburundi)", bj = "Бенин (Bénin)", bl = "Сен-Бартелеми (Saint Barthélemy)", bm = "Бермудские о-ва (Bermuda)", bn = "Бруней-Даруссалам (Brunei)", bo = "Боливия (Bolivia)", bq = "Бонэйр, Синт-Эстатиус и Саба (Caribbean Netherlands)", br = "Бразилия (Brasil)", bs = "Багамы (Bahamas)", bt = "Бутан (འབྲུག)", bw = "Ботсвана (Botswana)", by = "Беларусь", bz = "Белиз (Belize)", ca = "Канада (Canada)", cc = "Кокосовые о-ва (Cocos (Keeling) Islands)", cd = "Конго - Киншаса (Jamhuri ya Kidemokrasia ya Kongo)", cf = "Центрально-Африканская Республика (République centrafricaine)", cg = "Конго - Браззавиль (Congo-Brazzaville)", ch = "Швейцария (Schweiz)", ci = "Кот-д’Ивуар (Côte d’Ivoire)", ck = "Острова Кука (Cook Islands)", cl = "Чили (Chile)", cm = "Камерун (Cameroun)", cn = "Китай (中国)", co = "Колумбия (Colombia)", cr = "Коста-Рика (Costa Rica)", cu = "Куба (Cuba)", cv = "Кабо-Верде (Kabu Verdi)", cw = "Кюрасао (Curaçao)", cx = "о-в Рождества (Christmas Island)", cy = "Кипр (Κύπρος)", cz = "Чехия (Česká republika)", de = "Германия (Deutschland)", dj = "Джибути (Djibouti)", dk = "Дания (Danmark)", dm = "Доминика (Dominica)", dz = "Алжир (‫الجزائر‬‎)", ec = "Эквадор (Ecuador)", ee = "Эстония (Eesti)", eg = "Египет (‫مصر‬‎)", eh = "Западная Сахара (‫الصحراء الغربية‬‎)", er = "Эритрея (Eritrea)", es = "Испания (España)", et = "Эфиопия (Ethiopia)", fi = "Финляндия (Suomi)", fj = "Фиджи (Fiji)", fk = "Фолклендские о-ва (Islas Malvinas)", fm = "Федеративные Штаты Микронезии (Micronesia)", fo = "Фарерские о-ва (Føroyar)", fr = "Франция (France)", ga = "Габон (Gabon)", gb = "Великобритания (United Kingdom)", gd = "Гренада (Grenada)", ge = "Грузия (საქართველო)", gf = "Французская Гвиана (Guyane française)", gg = "Гернси (Guernsey)", gh = "Гана (Gaana)", gi = "Гибралтар (Gibraltar)", gl = "Гренландия (Kalaallit Nunaat)", gm = "Гамбия (Gambia)", gn = "Гвинея (Guinée)", gp = "Гваделупа (Guadeloupe)", gq = "Экваториальная Гвинея (Guinea Ecuatorial)", gr = "Греция (Ελλάδα)", gt = "Гватемала (Guatemala)", gu = "Гуам (Guam)", gw = "Гвинея-Бисау (Guiné Bissau)", gy = "Гайана (Guyana)", hk = "Гонконг (САР) (香港)", hn = "Гондурас (Honduras)", hr = "Хорватия (Hrvatska)", ht = "Гаити (Haiti)", hu = "Венгрия (Magyarország)", id = "Индонезия (Indonesia)", ie = "Ирландия (Ireland)", il = "Израиль (‫ישראל‬‎)", im = "о-в Мэн (Isle of Man)", io = "Британская территория в Индийском океане (British Indian Ocean Territory)", iq = "Ирак (‫العراق‬‎)", ir = "Иран (‫ایران‬‎)", is = "Исландия (Ísland)", it = "Италия (Italia)", je = "Джерси (Jersey)", jm = "Ямайка (Jamaica)", jo = "Иордания (‫الأردن‬‎)", jp = "Япония (日本)", ke = "Кения (Kenya)", kg = "Киргизия (Кыргызстан)", kh = "Камбоджа (កម្ពុជា)", ki = "Кирибати (Kiribati)", km = "Коморы (‫جزر القمر‬‎)", kn = "Сент-Китс и Невис (Saint Kitts and Nevis)", kp = "КНДР (조선 민주주의 인민 공화국)", kr = "Республика Корея (대한민국)", kw = "Кувейт (‫الكويت‬‎)", ky = "Острова Кайман (Cayman Islands)", kz = "Казахстан", la = "Лаос (ລາວ)", lb = "Ливан (‫لبنان‬‎)", lc = "Сент-Люсия (Saint Lucia)", li = "Лихтенштейн (Liechtenstein)", lk = "Шри-Ланка (ශ්‍රී ලංකාව)", lr = "Либерия (Liberia)", ls = "Лесото (Lesotho)", lt = "Литва (Lietuva)", lu = "Люксембург (Luxembourg)", lv = "Латвия (Latvija)", ly = "Ливия (‫ليبيا‬‎)", ma = "Марокко (‫المغرب‬‎)", mc = "Монако (Monaco)", md = "Молдова (Moldova)", me = "Черногория (Crna Gora)", mf = "Сен-Мартен (Saint Martin)", mg = "Мадагаскар (Madagasikara)", mh = "Маршалловы Острова (Marshall Islands)", mk = "Северная Македония (Македонија)", ml = "Мали (Mali)", mm = "Мьянма (Бирма) (မြန်မာ)", mn = "Монголия (Монгол)", mo = "Макао (САР) (澳門)", mp = "Северные Марианские о-ва (Northern Mariana Islands)", mq = "Мартиника (Martinique)", mr = "Мавритания (‫موريتانيا‬‎)", ms = "Монтсеррат (Montserrat)", mt = "Мальта (Malta)", mu = "Маврикий (Moris)", mv = "Мальдивы (Maldives)", mw = "Малави (Malawi)", mx = "Мексика (México)", my = "Малайзия (Malaysia)", mz = "Мозамбик (Moçambique)", na = "Намибия (Namibië)", nc = "Новая Каледония (Nouvelle-Calédonie)", ne = "Нигер (Nijar)", nf = "о-в Норфолк (Norfolk Island)", ng = "Нигерия (Nigeria)", ni = "Никарагуа (Nicaragua)", nl = "Нидерланды (Nederland)", no = "Норвегия (Norge)", np = "Непал (नेपाल)", nr = "Науру (Nauru)", nu = "Ниуэ (Niue)", nz = "Новая Зеландия (New Zealand)", om = "Оман (‫عُمان‬‎)", pa = "Панама (Panamá)", pe = "Перу (Perú)", pf = "Французская Полинезия (Polynésie française)", pg = "Папуа — Новая Гвинея (Papua New Guinea)", ph = "Филиппины (Philippines)", pk = "Пакистан (‫پاکستان‬‎)", pl = "Польша (Polska)", pm = "Сен-Пьер и Микелон (Saint-Pierre-et-Miquelon)", pr = "Пуэрто-Рико (Puerto Rico)", ps = "Палестинские территории (‫فلسطين‬‎)", pt = "Португалия (Portugal)", pw = "Палау (Palau)", py = "Парагвай (Paraguay)", qa = "Катар (‫قطر‬‎)", re = "Реюньон (La Réunion)", ro = "Румыния (România)", rs = "Сербия (Србија)", ru = "Россия", rw = "Руанда (Rwanda)", sa = "Саудовская Аравия (‫المملكة العربية السعودية‬‎)", sb = "Соломоновы Острова (Solomon Islands)", sc = "Сейшельские Острова (Seychelles)", sd = "Судан (‫السودان‬‎)", se = "Швеция (Sverige)", sg = "Сингапур (Singapore)", sh = "о-в Св. Елены (Saint Helena)", si = "Словения (Slovenija)", sj = "Шпицберген и Ян-Майен (Svalbard and Jan Mayen)", sk = "Словакия (Slovensko)", sl = "Сьерра-Леоне (Sierra Leone)", sm = "Сан-Марино (San Marino)", sn = "Сенегал (Sénégal)", so = "Сомали (Soomaaliya)", sr = "Суринам (Suriname)", ss = "Южный Судан (‫جنوب السودان‬‎)", st = "Сан-Томе и Принсипи (São Tomé e Príncipe)", sv = "Сальвадор (El Salvador)", sx = "Синт-Мартен (Sint Maarten)", sy = "Сирия (‫سوريا‬‎)", sz = "Эсватини (Swaziland)", tc = "о-ва Тёркс и Кайкос (Turks and Caicos Islands)", td = "Чад (Tchad)", tg = "Того (Togo)", th = "Таиланд (ไทย)", tj = "Таджикистан (Tajikistan)", tk = "Токелау (Tokelau)", tl = "Восточный Тимор (Timor-Leste)", tm = "Туркменистан (Turkmenistan)", tn = "Тунис (‫تونس‬‎)", to = "Тонга (Tonga)", tr = "Турция (Türkiye)", tt = "Тринидад и Тобаго (Trinidad and Tobago)", tv = "Тувалу (Tuvalu)", tw = "Тайвань (台灣)", tz = "Танзания (Tanzania)", ua = "Украина (Україна)", ug = "Уганда (Uganda)", us = "Соединенные Штаты (United States)", uy = "Уругвай (Uruguay)", uz = "Узбекистан (Oʻzbekiston)", va = "Ватикан (Città del Vaticano)", vc = "Сент-Винсент и Гренадины (Saint Vincent and the Grenadines)", ve = "Венесуэла (Venezuela)", vg = "Виргинские о-ва (Великобритания) (British Virgin Islands)", vi = "Виргинские о-ва (США) (U.S. Virgin Islands)", vn = "Вьетнам (Việt Nam)", vu = "Вануату (Vanuatu)", wf = "Уоллис и Футуна (Wallis-et-Futuna)", ws = "Самоа (Samoa)", xk = "Косово (Kosovo)", ye = "Йемен (‫اليمن‬‎)", yt = "Майотта (Mayotte)", za = "Южно-Африканская Республика (South Africa)", zm = "Замбия (Zambia)", zw = "Зимбабве (Zimbabwe)", countries_ru = { ad: ad, ae: ae, af: af, ag: ag, ai: ai, al: al, am: am, ao: ao, ar: ar, as: as, at: at, au: au, aw: aw, ax: ax, az: az, ba: ba, bb: bb, bd: bd, be: be, bf: bf, bg: bg, bh: bh, bi: bi, bj: bj, bl: bl, bm: bm, bn: bn, bo: bo, bq: bq, br: br, bs: bs, bt: bt, bw: bw, by: by, bz: bz, ca: ca, cc: cc, cd: cd, cf: cf, cg: cg, ch: ch, ci: ci, ck: ck, cl: cl, cm: cm, cn: cn, co: co, cr: cr, cu: cu, cv: cv, cw: cw, cx: cx, cy: cy, cz: cz, de: de, dj: dj, dk: dk, dm: dm, do: "Доминиканская Республика (República Dominicana)", dz: dz, ec: ec, ee: ee, eg: eg, eh: eh, er: er, es: es, et: et, fi: fi, fj: fj, fk: fk, fm: fm, fo: fo, fr: fr, ga: ga, gb: gb, gd: gd, ge: ge, gf: gf, gg: gg, gh: gh, gi: gi, gl: gl, gm: gm, gn: gn, gp: gp, gq: gq, gr: gr, gt: gt, gu: gu, gw: gw, gy: gy, hk: hk, hn: hn, hr: hr, ht: ht, hu: hu, id: id, ie: ie, il: il, im: im, in: "Индия (भारत)", io: io, iq: iq, ir: ir, is: is, it: it, je: je, jm: jm, jo: jo, jp: jp, ke: ke, kg: kg, kh: kh, ki: ki, km: km, kn: kn, kp: kp, kr: kr, kw: kw, ky: ky, kz: kz, la: la, lb: lb, lc: lc, li: li, lk: lk, lr: lr, ls: ls, lt: lt, lu: lu, lv: lv, ly: ly, ma: ma, mc: mc, md: md, me: me, mf: mf, mg: mg, mh: mh, mk: mk, ml: ml, mm: mm, mn: mn, mo: mo, mp: mp, mq: mq, mr: mr, ms: ms, mt: mt, mu: mu, mv: mv, mw: mw, mx: mx, my: my, mz: mz, na: na, nc: nc, ne: ne, nf: nf, ng: ng, ni: ni, nl: nl, no: no, np: np, nr: nr, nu: nu, nz: nz, om: om, pa: pa, pe: pe, pf: pf, pg: pg, ph: ph, pk: pk, pl: pl, pm: pm, pr: pr, ps: ps, pt: pt, pw: pw, py: py, qa: qa, re: re, ro: ro, rs: rs, ru: ru, rw: rw, sa: sa, sb: sb, sc: sc, sd: sd, se: se, sg: sg, sh: sh, si: si, sj: sj, sk: sk, sl: sl, sm: sm, sn: sn, so: so, sr: sr, ss: ss, st: st, sv: sv, sx: sx, sy: sy, sz: sz, tc: tc, td: td, tg: tg, th: th, tj: tj, tk: tk, tl: tl, tm: tm, tn: tn, to: to, tr: tr, tt: tt, tv: tv, tw: tw, tz: tz, ua: ua, ug: ug, us: us, uy: uy, uz: uz, va: va, vc: vc, ve: ve, vg: vg, vi: vi, vn: vn, vu: vu, wf: wf, ws: ws, xk: xk, ye: ye, yt: yt, za: za, zm: zm, zw: zw, }, allLocalizedCountries = { ru: countries_ru, RU: countries_ru, ru_RU: countries_ru, }; inputmask.prototype.aliases.abstractphone.mask = function (e) { e.definitions = { "#": inputmask.prototype.definitions[9] }; for (var t, n = e.phoneCodes, a = [], i = 0; i < n.length; i++) a.push( ("string" == typeof (t = n[i]) && (t = { mask: t }), (t._cleanCode = t.mask.replace(/[^0-9]/g, "")), t) ); var r = a; r = r.sort(function (e, t) { return e._cleanCode.localeCompare(t._cleanCode); }); for ( var o = {}, s = r, c = function (e) { for (var t = 1; t < e._cleanCode.length; t++) { var n = e._cleanCode.substr(0, t); if (!o[n]) { for ( var a = e.mask, i = /[0-9]/g, r = 0, s = void 0; (s = i.exec(e.mask)); ) ++r > n.length && (a = a.substr(0, s.index) + "#" + a.substr(s.index + 1)); o[n] = _extends({}, e, { mask: a, _cleanCode: n }); } } o[e._cleanCode] = !0; }, u = 0; u < s.length; u++ ) c(s[u]); for (var l in o) o.hasOwnProperty(l) && "object" === _typeof(o[l]) && r.push(o[l]); return r.sort(function (e, t) { return e._cleanCode.length <= t._cleanCode.length ? 1 : -1; }); }; var ipInfoUrl = "https://ipinfo.io/json", STATE_READY = "READY", STATE_LOADING = "LOADING", currentState = STATE_READY, currentData = null, callbacks = [], getCookie = function (e) { for ( var t = e + "=", n = document.cookie.split(";"), a = !1, i = 0; i < n.length; i++ ) { for (var r = n[i]; " " === r.charAt(0); ) r = r.substring(1, r.length); if (0 === r.indexOf(t)) { a = r.substring(t.length, r.length); break; } } if (a) try { a = JSON.parse(a); } catch (e) { a = !1; } return a; }, setCookie = function (e, t, n) { var a = new Date(); a.setTime(a.getTime() + n), (n = "; expires=" + a.toUTCString()), (document.cookie = e + "=" + JSON.stringify(t) + n + "; path=/"); }, xhr = function (e, t) { var n = new XMLHttpRequest(); (n.onreadystatechange = function () { 4 === n.readyState && 200 === n.status && t(!1, n.responseText); }), (n.onerror = function () { t(!0); }), (n.timeout = e.timeout), n.open(e.method, e.url, !0), n.send(); }, handleResult = function (t, e) { var n = null; if (!t) try { var a = JSON.parse(e); a.ip ? (n = a) : (t = "ip not found"); } catch (e) { t = e; } for (var i = callbacks, r = 0; r < i.length; r++) (0, i[r])(t, n); return (callbacks = []), !t && n; }, myIpInfo = function (e, t) { var n = e.timeout || 5e3, a = e.cookieName || !1, i = e.cookieExpires || 6e5; if (!e.force) { var r = currentData || getCookie(a); if (r) return void t(!1, r); } callbacks.push(t), currentState === STATE_READY && ((currentState = STATE_LOADING), xhr({ method: "GET", url: ipInfoUrl, timeout: n }, function (e, t) { var n = handleResult(e, t); setCookie(a, (currentData = n), i), (currentState = STATE_READY); })); }, slice = Array.prototype.slice, domWalk = iterativelyWalk; function iterativelyWalk(e, t) { "length" in e || (e = [e]), (e = slice.call(e)); for (; e.length; ) { var n = e.shift(), a = t(n); if (a) return a; n.childNodes && n.childNodes.length && (e = slice.call(n.childNodes).concat(e)); } } var domComment = Comment; function Comment(e, t) { if (!(this instanceof Comment)) return new Comment(e, t); (this.data = e), (this.nodeValue = e), (this.length = e.length), (this.ownerDocument = t || null); } (Comment.prototype.nodeType = 8), (Comment.prototype.nodeName = "#comment"), (Comment.prototype.toString = function () { return "[object Comment]"; }); var domText = DOMText; function DOMText(e, t) { if (!(this instanceof DOMText)) return new DOMText(e); (this.data = e || ""), (this.length = this.data.length), (this.ownerDocument = t || null); } (DOMText.prototype.type = "DOMTextNode"), (DOMText.prototype.nodeType = 3), (DOMText.prototype.nodeName = "#text"), (DOMText.prototype.toString = function () { return this.data; }), (DOMText.prototype.replaceData = function (e, t, n) { var a = this.data, i = a.substring(0, e), r = a.substring(e + t, a.length); (this.data = i + n + r), (this.length = this.data.length); }); var dispatchEvent_1 = dispatchEvent; function dispatchEvent(e) { var t = this, n = e.type; e.target || (e.target = t), t.listeners || (t.listeners = {}); var a, i = t.listeners[n]; if (i) for (var r = i, s = 0; s < r.length; s++) (a = r[s]), (e.currentTarget = t), "function" == typeof a ? a(e) : a.handleEvent(e); else t.parentNode && t.parentNode.dispatchEvent(e); } var addEventListener_1 = addEventListener; function addEventListener(e, t) { var n = this; n.listeners || (n.listeners = {}), n.listeners[e] || (n.listeners[e] = []), -1 === n.listeners[e].indexOf(t) && n.listeners[e].push(t); } var removeEventListener_1 = removeEventListener; function removeEventListener(e, t) { if (this.listeners && this.listeners[e]) { var n = this.listeners[e], a = n.indexOf(t); -1 !== a && n.splice(a, 1); } } var serialize = serializeNode, voidElements = [ "area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "menuitem", "meta", "param", "source", "track", "wbr", ]; function serializeNode(e) { switch (e.nodeType) { case 3: return escapeText(e.data); case 8: return "\x3c!--" + e.data + "--\x3e"; default: return serializeElement(e); } } function serializeElement(e) { var t = [], n = e.tagName; if ( ("http://www.w3.org/1999/xhtml" === e.namespaceURI && (n = n.toLowerCase()), t.push("<" + n + properties(e) + datasetify(e)), -1 < voidElements.indexOf(n)) ) t.push(" />"); else { if ((t.push(">"), e.childNodes.length)) { for ( var a = e.childNodes, i = serializeNode, r = [], s = 0; s < a.length; s++ ) r.push(i(a[s], s, a)); t.push.apply(t, r); } else e.textContent || e.innerText ? t.push(escapeText(e.textContent || e.innerText)) : e.innerHTML && t.push(e.innerHTML); t.push(""); } return t.join(""); } function isProperty(e, t) { var n = _typeof(e[t]); return ( ("style" === t && 0 < Object.keys(e.style).length) || (e.hasOwnProperty(t) && ("string" === n || "boolean" === n || "number" === n) && "nodeName" !== t && "className" !== t && "tagName" !== t && "textContent" !== t && "innerText" !== t && "namespaceURI" !== t && "innerHTML" !== t) ); } function stylify(e) { if ("string" == typeof e) return e; for (var t, n, a = "", i = Object.keys(e), r = 0; r < i.length; r++) (n = e[(t = i[r])]), (a += (t = t.replace(/[A-Z]/g, function (e) { return "-" + e.toLowerCase(); })) + ":" + n + ";"); return a; } function datasetify(e) { var t = e.dataset, n = []; for (var a in t) n.push({ name: "data-" + a, value: t[a] }); return n.length ? stringify(n) : ""; } function stringify(e) { for (var t, n, a, i = [], r = e, s = 0; s < r.length; s++) (a = void 0), (n = (t = r[s]).name), (a = t.value), "style" === n && (a = stylify(a)), i.push(n + '="' + escapeAttributeValue(a) + '"'); return i.length ? " " + i.join(" ") : ""; } function properties(e) { var t = []; for (var n in e) isProperty(e, n) && t.push({ name: n, value: e[n] }); for (var a in e._attributes) for (var i in e._attributes[a]) { var r = e._attributes[a][i], s = (r.prefix ? r.prefix + ":" : "") + i; t.push({ name: s, value: r.value }); } return ( e.className && t.push({ name: "class", value: e.className }), t.length ? stringify(t) : "" ); } function escapeText(e) { var t = ""; return ( "string" == typeof e ? (t = e) : e && (t = e.toString()), t.replace(/&/g, "&").replace(//g, ">") ); } function escapeAttributeValue(e) { return escapeText(e).replace(/"/g, """); } var htmlns = "http://www.w3.org/1999/xhtml", domElement = DOMElement; function DOMElement(e, t, n) { if (!(this instanceof DOMElement)) return new DOMElement(e); var a = void 0 === n ? htmlns : n || null; (this.tagName = a === htmlns ? String(e).toUpperCase() : e), (this.nodeName = this.tagName), (this.className = ""), (this.dataset = {}), (this.childNodes = []), (this.parentNode = null), (this.style = {}), (this.ownerDocument = t || null), (this.namespaceURI = a), (this._attributes = {}), "INPUT" === this.tagName && (this.type = "text"); } (DOMElement.prototype.type = "DOMElement"), (DOMElement.prototype.nodeType = 1), (DOMElement.prototype.appendChild = function (e) { return ( e.parentNode && e.parentNode.removeChild(e), this.childNodes.push(e), (e.parentNode = this), e ); }), (DOMElement.prototype.replaceChild = function (e, t) { e.parentNode && e.parentNode.removeChild(e); var n = this.childNodes.indexOf(t); return ( (t.parentNode = null), ((this.childNodes[n] = e).parentNode = this), t ); }), (DOMElement.prototype.removeChild = function (e) { var t = this.childNodes.indexOf(e); return this.childNodes.splice(t, 1), (e.parentNode = null), e; }), (DOMElement.prototype.insertBefore = function (e, t) { e.parentNode && e.parentNode.removeChild(e); var n = null == t ? -1 : this.childNodes.indexOf(t); return ( -1 < n ? this.childNodes.splice(n, 0, e) : this.childNodes.push(e), (e.parentNode = this), e ); }), (DOMElement.prototype.setAttributeNS = function (e, t, n) { var a = null, i = t, r = t.indexOf(":"); -1 < r && ((a = t.substr(0, r)), (i = t.substr(r + 1))), "INPUT" === this.tagName && "type" === t ? (this.type = n) : ((this._attributes[e] || (this._attributes[e] = {}))[i] = { value: n, prefix: a, }); }), (DOMElement.prototype.getAttributeNS = function (e, t) { var n = this._attributes[e], a = n && n[t] && n[t].value; return "INPUT" === this.tagName && "type" === t ? this.type : "string" != typeof a ? null : a; }), (DOMElement.prototype.removeAttributeNS = function (e, t) { var n = this._attributes[e]; n && delete n[t]; }), (DOMElement.prototype.hasAttributeNS = function (e, t) { var n = this._attributes[e]; return !!n && t in n; }), (DOMElement.prototype.setAttribute = function (e, t) { return this.setAttributeNS(null, e, t); }), (DOMElement.prototype.getAttribute = function (e) { return this.getAttributeNS(null, e); }), (DOMElement.prototype.removeAttribute = function (e) { return this.removeAttributeNS(null, e); }), (DOMElement.prototype.hasAttribute = function (e) { return this.hasAttributeNS(null, e); }), (DOMElement.prototype.removeEventListener = removeEventListener_1), (DOMElement.prototype.addEventListener = addEventListener_1), (DOMElement.prototype.dispatchEvent = dispatchEvent_1), (DOMElement.prototype.focus = function () {}), (DOMElement.prototype.toString = function () { return serialize(this); }), (DOMElement.prototype.getElementsByClassName = function (e) { var n = e.split(" "), a = []; return ( domWalk(this, function (e) { if (1 === e.nodeType) { var t = (e.className || "").split(" "); n.every(function (e) { return -1 !== t.indexOf(e); }) && a.push(e); } }), a ); }), (DOMElement.prototype.getElementsByTagName = function (t) { t = t.toLowerCase(); var n = []; return ( domWalk(this.childNodes, function (e) { 1 !== e.nodeType || ("*" !== t && e.tagName.toLowerCase() !== t) || n.push(e); }), n ); }), (DOMElement.prototype.contains = function (t) { return ( domWalk(this, function (e) { return t === e; }) || !1 ); }); var domFragment = DocumentFragment; function DocumentFragment(e) { if (!(this instanceof DocumentFragment)) return new DocumentFragment(); (this.childNodes = []), (this.parentNode = null), (this.ownerDocument = e || null); } (DocumentFragment.prototype.type = "DocumentFragment"), (DocumentFragment.prototype.nodeType = 11), (DocumentFragment.prototype.nodeName = "#document-fragment"), (DocumentFragment.prototype.appendChild = domElement.prototype.appendChild), (DocumentFragment.prototype.replaceChild = domElement.prototype.replaceChild), (DocumentFragment.prototype.removeChild = domElement.prototype.removeChild), (DocumentFragment.prototype.toString = function () { for (var e, t = this.childNodes, n = [], a = 0; a < t.length; a++) n.push(((e = t[a]), String(e))); return n.join(""); }); var event = Event; function Event(e) {} (Event.prototype.initEvent = function (e, t, n) { (this.type = e), (this.bubbles = t), (this.cancelable = n); }), (Event.prototype.preventDefault = function () {}); var document$1 = Document; function Document() { if (!(this instanceof Document)) return new Document(); (this.head = this.createElement("head")), (this.body = this.createElement("body")), (this.documentElement = this.createElement("html")), this.documentElement.appendChild(this.head), this.documentElement.appendChild(this.body), (this.childNodes = [this.documentElement]), (this.nodeType = 9); } var proto = Document.prototype; (proto.createTextNode = function (e) { return new domText(e, this); }), (proto.createElementNS = function (e, t) { var n = null === e ? null : String(e); return new domElement(t, this, n); }), (proto.createElement = function (e) { return new domElement(e, this); }), (proto.createDocumentFragment = function () { return new domFragment(this); }), (proto.createEvent = function (e) { return new event(e); }), (proto.createComment = function (e) { return new domComment(e, this); }), (proto.getElementById = function (t) { return ( (t = String(t)), domWalk(this.childNodes, function (e) { if (String(e.id) === t) return e; }) || null ); }), (proto.getElementsByClassName = domElement.prototype.getElementsByClassName), (proto.getElementsByTagName = domElement.prototype.getElementsByTagName), (proto.contains = domElement.prototype.contains), (proto.removeEventListener = removeEventListener_1), (proto.addEventListener = addEventListener_1), (proto.dispatchEvent = dispatchEvent_1); var minDocument = new document$1(), topLevel = void 0 !== commonjsGlobal ? commonjsGlobal : "undefined" != typeof window ? window : {}, doccy; doccy = "undefined" != typeof document ? document : ((doccy = topLevel["__GLOBAL_DOCUMENT_CACHE@4"]), doccy || (topLevel["__GLOBAL_DOCUMENT_CACHE@4"] = minDocument)); var document_1 = doccy, applyMask = function (n, i) { var e = i.l10n || "en", t = _extends({}, { alias: "phone" }, i.inputmask); inputmask(t).mask(n), n.addEventListener("focus", function () { if ("" === n.value) { var e = r.getSelectedCountryData(); n.value = e.dialCode; var t = n.value.indexOf("_"); t && (n.selectionStart = t); } }), n.addEventListener("keydown", function (e) { 8 === e.keyCode && "" === n.value && e.preventDefault(); }); var a = _extends( {}, { initialCountry: "auto", geoIpLookup: function (n, a) { myIpInfo( { cookieName: "phone-auto-mask-myipinfo" }, function (e, t) { e || !t.country ? i.fallbackCountry ? n(i.fallbackCountry) : a() : n(t.country); } ); }, nationalMode: !1, }, i.intlTelInput ); allLocalizedCountries[e] && (a.localizedCountries = allLocalizedCountries[e]); var r = intlTelInput(n, a); }, phoneAutoMask = function (e, t) { var n, a = _extends({}, 1 < arguments.length && void 0 !== t ? t : {}); if ( ((a.inputmask = a.inputmask || {}), (a.intlTelInput = a.intlTelInput || {}), "string" == typeof e) ) for (var i = document_1.querySelectorAll(e), r = 0; r < i.length; r++) (n = i[r]), applyMask(n, a); else applyMask(e, a); }; return phoneAutoMask; })();