1!function(t){"object"==typeof module&&module.exports?module.exports=t():window.intlTelInput=t()}((()=>(()=>{var t=Object.defineProperty,e=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,a={};((e,i)=>{for(var s in i)t(e,s,{get:i[s],enumerable:!0})})(a,{Iti:()=>b,default:()=>C});var n=[["af","93"],["ax","358",1],["al","355"],["dz","213"],["as","1",5,["684"]],["ad","376"],["ao","244"],["ai","1",6,["264"]],["ag","1",7,["268"]],["ar","54"],["am","374"],["aw","297"],["ac","247"],["au","61",0,null,"0"],["at","43"],["az","994"],["bs","1",8,["242"]],["bh","973"],["bd","880"],["bb","1",9,["246"]],["by","375"],["be","32"],["bz","501"],["bj","229"],["bm","1",10,["441"]],["bt","975"],["bo","591"],["ba","387"],["bw","267"],["br","55"],["io","246"],["vg","1",11,["284"]],["bn","673"],["bg","359"],["bf","226"],["bi","257"],["kh","855"],["cm","237"],["ca","1",1,["204","226","236","249","250","263","289","306","343","354","365","367","368","382","387","403","416","418","428","431","437","438","450","584","468","474","506","514","519","548","579","581","584","587","604","613","639","647","672","683","705","709","742","753","778","780","782","807","819","825","867","873","879","902","905"]],["cv","238"],["bq","599",1,["3","4","7"]],["ky","1",12,["345"]],["cf","236"],["td","235"],["cl","56"],["cn","86"],["cx","61",2,["89164"],"0"],["cc","61",1,["89162"],"0"],["co","57"],["km","269"],["cg","242"],["cd","243"],["ck","682"],["cr","506"],["ci","225"],["hr","385"],["cu","53"],["cw","599",0],["cy","357"],["cz","420"],["dk","45"],["dj","253"],["dm","1",13,["767"]],["do","1",2,["809","829","849"]],["ec","593"],["eg","20"],["sv","503"],["gq","240"],["er","291"],["ee","372"],["sz","268"],["et","251"],["fk","500"],["fo","298"],["fj","679"],["fi","358",0],["fr","33"],["gf","594"],["pf","689"],["ga","241"],["gm","220"],["ge","995"],["de","49"],["gh","233"],["gi","350"],["gr","30"],["gl","299"],["gd","1",14,["473"]],["gp","590",0],["gu","1",15,["671"]],["gt","502"],["gg","44",1,["1481","7781","7839","7911"],"0"],["gn","224"],["gw","245"],["gy","592"],["ht","509"],["hn","504"],["hk","852"],["hu","36"],["is","354"],["in","91"],["id","62"],["ir","98"],["iq","964"],["ie","353"],["im","44",2,["1624","74576","7524","7924","7624"],"0"],["il","972"],["it","39",0],["jm","1",4,["876","658"]],["jp","81"],["je","44",3,["1534","7509","7700","7797","7829","7937"],"0"],["jo","962"],["kz","7",1,["33","7"],"8"],["ke","254"],["ki","686"],["xk","383"],["kw","965"],["kg","996"],["la","856"],["lv","371"],["lb","961"],["ls","266"],["lr","231"],["ly","218"],["li","423"],["lt","370"],["lu","352"],["mo","853"],["mg","261"],["mw","265"],["my","60"],["mv","960"],["ml","223"],["mt","356"],["mh","692"],["mq","596"],["mr","222"],["mu","230"],["yt","262",1,["269","639"],"0"],["mx","52"],["fm","691"],["md","373"],["mc","377"],["mn","976"],["me","382"],["ms","1",16,["664"]],["ma","212",0,null,"0"],["mz","258"],["mm","95"],["na","264"],["nr","674"],["np","977"],["nl","31"],["nc","687"],["nz","64"],["ni","505"],["ne","227"],["ng","234"],["nu","683"],["nf","672"],["kp","850"],["mk","389"],["mp","1",17,["670"]],["no","47",0],["om","968"],["pk","92"],["pw","680"],["ps","970"],["pa","507"],["pg","675"],["py","595"],["pe","51"],["ph","63"],["pl","48"],["pt","351"],["pr","1",3,["787","939"]],["qa","974"],["re","262",0,null,"0"],["ro","40"],["ru","7",0,null,"8"],["rw","250"],["ws","685"],["sm","378"],["st","239"],["sa","966"],["sn","221"],["rs","381"],["sc","248"],["sl","232"],["sg","65"],["sx","1",21,["721"]],["sk","421"],["si","386"],["sb","677"],["so","252"],["za","27"],["kr","82"],["ss","211"],["es","34"],["lk","94"],["bl","590",1],["sh","290"],["kn","1",18,["869"]],["lc","1",19,["758"]],["mf","590",2],["pm","508"],["vc","1",20,["784"]],["sd","249"],["sr","597"],["sj","47",1,["79"]],["se","46"],["ch","41"],["sy","963"],["tw","886"],["tj","992"],["tz","255"],["th","66"],["tl","670"],["tg","228"],["tk","690"],["to","676"],["tt","1",22,["868"]],["tn","216"],["tr","90"],["tm","993"],["tc","1",23,["649"]],["tv","688"],["ug","256"],["ua","380"],["ae","971"],["gb","44",0,null,"0"],["us","1",0],["uy","598"],["vi","1",24,["340"]],["uz","998"],["vu","678"],["va","39",1,["06698"]],["ve","58"],["vn","84"],["wf","681"],["eh","212",1,["5288","5289"],"0"],["ye","967"],["zm","260"],["zw","263"]],r=[];for(let t=0;t<n.length;t++){let e=n[t];r[t]={name:"",iso2:e[0],dialCode:e[1],priority:e[2]||0,areaCodes:e[3]||null,
1nodeById:{},nationalPrefix:e[4]||null}}var o=r,l={ad:"Andorra",ae:"United Arab Emirates",af:"Afghanistan",ag:"Antigua & Barbuda",ai:"Anguilla",al:"Albania",am:"Armenia",ao:"Angola",ar:"Argentina",as:"American Samoa",at:"Austria",au:"Australia",aw:"Aruba",ax:"Ã
land Islands",az:"Azerbaijan",ba:"Bosnia & Herzegovina",bb:"Barbados",bd:"Bangladesh",be:"Belgium",bf:"Burkina Faso",bg:"Bulgaria",bh:"Bahrain",bi:"Burundi",bj:"Benin",bl:"St. Barthélemy",bm:"Bermuda",bn:"Brunei",bo:"Bolivia",bq:"Caribbean Netherlands",br:"Brazil",bs:"Bahamas",bt:"Bhutan",bw:"Botswana",by:"Belarus",bz:"Belize",ca:"Canada",cc:"Cocos (Keeling) Islands",cd:"Congo - Kinshasa",cf:"Central African Republic",cg:"Congo - Brazzaville",ch:"Switzerland",ci:"Côte dâIvoire",ck:"Cook Islands",cl:"Chile",cm:"Cameroon",cn:"China",co:"Colombia",cr:"Costa Rica",cu:"Cuba",cv:"Cape Verde",cw:"Curaçao",cx:"Christmas Island",cy:"Cyprus",cz:"Czechia",de:"Germany",dj:"Djibouti",dk:"Denmark",dm:"Dominica",do:"Dominican Republic",dz:"Algeria",ec:"Ecuador",ee:"Estonia",eg:"Egypt",eh:"Western Sahara",er:"Eritrea",es:"Spain",et:"Ethiopia",fi:"Finland",fj:"Fiji",fk:"Falkland Islands",fm:"Micronesia",fo:"Faroe Islands",fr:"France",ga:"Gabon",gb:"United Kingdom",gd:"Grenada",ge:"Georgia",gf:"French Guiana",gg:"Guernsey",gh:"Ghana",gi:"Gibraltar",gl:"Greenland",gm:"Gambia",gn:"Guinea",gp:"Guadeloupe",gq:"Equatorial Guinea",gr:"Greece",gt:"Guatemala",gu:"Guam",gw:"Guinea-Bissau",gy:"Guyana",hk:"Hong Kong SAR China",hn:"Honduras",hr:"Croatia",ht:"Haiti",hu:"Hungary",id:"Indonesia",ie:"Ireland",il:"Israel",im:"Isle of Man",in:"India",io:"British Indian Ocean Territory",iq:"Iraq",ir:"Iran",is:"Iceland",it:"Italy",je:"Jersey",jm:"Jamaica",jo:"Jordan",jp:"Japan",ke:"Kenya",kg:"Kyrgyzstan",kh:"Cambodia",ki:"Kiribati",km:"Comoros",kn:"St. Kitts & Nevis",kp:"North Korea",kr:"South Korea",kw:"Kuwait",ky:"Cayman Islands",kz:"Kazakhstan",la:"Laos",lb:"Lebanon",lc:"St. Lucia",li:"Liechtenstein",lk:"Sri Lanka",lr:"Liberia",ls:"Lesotho",lt:"Lithuania",lu:"Luxembourg",lv:"Latvia",ly:"Libya",ma:"Morocco",mc:"Monaco",md:"Moldova",me:"Montenegro",mf:"St. Martin",mg:"Madagascar",mh:"Marshall Islands",mk:"North Macedonia",ml:"Mali",mm:"Myanmar (Burma)",mn:"Mongolia",mo:"Macao SAR China",mp:"Northern Mariana Islands",mq:"Martinique",mr:"Mauritania",ms:"Montserrat",mt:"Malta",mu:"Mauritius",mv:"Maldives",mw:"Malawi",mx:"Mexico",my:"Malaysia",mz:"Mozambique",na:"Namibia",nc:"New Caledonia",ne:"Niger",nf:"Norfolk Island",ng:"Nigeria",ni:"Nicaragua",nl:"Netherlands",no:"Norway",np:"Nepal",nr:"Nauru",nu:"Niue",nz:"New Zealand",om:"Oman",pa:"Panama",pe:"Peru",pf:"French Polynesia",pg:"Papua New Guinea",ph:"Philippines",pk:"Pakistan",pl:"Poland",pm:"St. Pierre & Miquelon",pr:"Puerto Rico",ps:"Palestinian Territories",pt:"Portugal",pw:"Palau",py:"Paraguay",qa:"Qatar",re:"Réunion",ro:"Romania",rs:"Serbia",ru:"Russia",rw:"Rwanda",sa:"Saudi Arabia",sb:"Solomon Islands",sc:"Seychelles",sd:"Sudan",se:"Sweden",sg:"Singapore",sh:"St. Helena",si:"Slovenia",sj:"Svalbard & Jan Mayen",sk:"Slovakia",sl:"Sierra Leone",sm:"San Marino",sn:"Senegal",so:"Somalia",sr:"Suriname",ss:"South Sudan",st:"São Tomé & PrÃncipe",sv:"El Salvador",sx:"Sint Maarten",sy:"Syria",sz:"Eswatini",tc:"Turks & Caicos Islands",td:"Chad",tg:"Togo",th:"Thailand",tj:"Tajikistan",tk:"Tokelau",tl:"Timor-Leste",tm:"Turkmenistan",tn:"Tunisia",to:"Tonga",tr:"Turkey",tt:"Trinidad & Tobago",tv:"Tuvalu",tw:"Taiwan",tz:"Tanzania",ua:"Ukraine",ug:"Uganda",us:"United States",uy:"Uruguay",uz:"Uzbekistan",va:"Vatican City",vc:"St. Vincent & Grenadines",ve:"Venezuela",vg:"British Virgin Islands",vi:"U.S. Virgin Islands",vn:"Vietnam",vu:"Vanuatu",wf:"Wallis & Futuna",ws:"Samoa",ye:"Yemen",yt:"Mayotte",za:"South Africa",zm:"Zambia",zw:"Zimbabwe",selectedCountryAriaLabel:"Selected country",noCountrySelected:"No country selected",countryListAriaLabel:"List of countries",searchPlaceholder:"Search",zeroSearchResults:"No results found",oneSearchResult:"1 result found",multipleSearchResults:"${count} results found",ac:"Ascension Island",xk:"Kosovo"};for(let t=0;t<o.length;t++)o[t].name=l[o[t].iso2];var h,d=0,u={allowDropdown:!0,autoPlaceholder:"polite",containerClass:"",countryOrder:null,countrySearch:!0,customPlaceholder:null,dropdownContainer:null,excludeCountries:[],fixDropdownWidth:!0,formatAsYouType:!0,formatOnDisplay:!0,geoIpLookup:null,hiddenInput:null,i18n:{},initialCountry:"",loadUtils:null,nationalMode:!0,onlyCountries:[],placeholderNumberType:"MOBILE",showFlags:!0,separateDialCode:!1,strictMode:!1,useFullscreenPopup:typeof navigator<"u"&&typeof window<"u"&&(/Android.+Mobile|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)||window.innerWidth<=500),validationNumberTypes:["MOBILE"]},c=["800","822","833","844","855","866","877","880","881","882","883","884","885","886","887","888","889"],p=t=>t.replace(/\D/g,""),m=(t="")=>t.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase(),y=t=>{let e=p(t);if("1"===e.charAt(0)){let t=e.substr(1,3);return c.includes(t)}return!1},g=(t,e,i)=>{let s=document.createElement(t);return e&&Object.entries(e).forEach((([t,e])=>s.setAttribute(t,e))),i&&i.appendChild(s),s},_=(t,...e)=>{let{instances:i}=f;
1Object.values(i).forEach((i=>i[t](...e)))},b=class{constructor(t,e={}){this.id=d++,this.a=t,this.c=null,this.d=Object.assign({},u,e),this.e=!!t.getAttribute("placeholder")}_init(){this.d.useFullscreenPopup&&(this.d.fixDropdownWidth=!1),1===this.d.onlyCountries.length&&(this.d.initialCountry=this.d.onlyCountries[0]),this.d.separateDialCode&&(this.d.nationalMode=!1),this.d.allowDropdown&&!this.d.showFlags&&!this.d.separateDialCode&&(this.d.nationalMode=!1),this.d.useFullscreenPopup&&!this.d.dropdownContainer&&(this.d.dropdownContainer=document.body),this.isAndroid=typeof navigator<"u"&&/Android/i.test(navigator.userAgent),this.isRTL=!!this.a.closest("[dir=rtl]"),this.a.dir="ltr";let t=this.d.allowDropdown||this.d.separateDialCode;this.showSelectedCountryOnLeft=this.isRTL?!t:t,this.d.separateDialCode&&(this.isRTL?this.originalPaddingRight=this.a.style.paddingRight:this.originalPaddingLeft=this.a.style.paddingLeft),this.d.i18n={...l,...this.d.i18n};let e=new Promise(((t,e)=>{this.h=t,this.i=e})),i=new Promise(((t,e)=>{this.i0=t,this.i1=e}));this.promise=Promise.all([e,i]),this.s={},this._b(),this._f(),this._h(),this._i(),this._i3()}_b(){this._d(),this._d2(),this._d0(),this._sortCountries()}_sortCountries(){this.d.countryOrder&&(this.d.countryOrder=this.d.countryOrder.map((t=>t.toLowerCase()))),this.p.sort(((t,e)=>{let{countryOrder:i}=this.d;if(i){let s=i.indexOf(t.iso2),a=i.indexOf(e.iso2),n=s>-1,r=a>-1;if(n||r)return n&&r?s-a:n?-1:1}return t.name.localeCompare(e.name)}))}_c(t,e,i){e.length>this.dialCodeMaxLen&&(this.dialCodeMaxLen=e.length),this.q.hasOwnProperty(e)||(this.q[e]=[]);for(let i=0;i<this.q[e].length;i++)if(this.q[e][i]===t)return;let s=void 0!==i?i:this.q[e].length;this.q[e][s]=t}_d(){let{onlyCountries:t,excludeCountries:e}=this.d;if(t.length){let e=t.map((t=>t.toLowerCase()));this.p=o.filter((t=>e.includes(t.iso2)))}else if(e.length){let t=e.map((t=>t.toLowerCase()));this.p=o.filter((e=>!t.includes(e.iso2)))}else this.p=o}_d0(){for(let t=0;t<this.p.length;t++){let e=this.p[t].iso2.toLowerCase();this.d.i18n.hasOwnProperty(e)&&(this.p[t].name=this.d.i18n[e])}}_d2(){this.dialCodes={},this.dialCodeMaxLen=0,this.q={};for(let t=0;t<this.p.length;t++){let e=this.p[t];this.dialCodes[e.dialCode]||(this.dialCodes[e.dialCode]=!0),this._c(e.iso2,e.dialCode,e.priority)}for(let t=0;t<this.p.length;t++){let e=this.p[t];if(e.areaCodes){let t=this.q[e.dialCode][0];for(let i=0;i<e.areaCodes.length;i++){let s=e.areaCodes[i];for(let i=1;i<s.length;i++){let a=s.substr(0,i),n=e.dialCode+a;this._c(t,n),this._c(e.iso2,n)}this._c(e.iso2,e.dialCode+s)}}}}_f(){this.a.classList.add("iti__tel-input"),!this.a.hasAttribute("autocomplete")&&(!this.a.form||!this.a.form.hasAttribute("autocomplete"))&&this.a.setAttribute("autocomplete","off");let{allowDropdown:t,separateDialCode:e,showFlags:i,containerClass:s,hiddenInput:a,dropdownContainer:n,fixDropdownWidth:r,useFullscreenPopup:o,countrySearch:l,i18n:h}=this.d,d="iti";t&&(d+=" iti--allow-dropdown"),i&&(d+=" iti--show-flags"),s&&(d+=` ${s}`),o||(d+=" iti--inline-dropdown");let u=g("div",{class:d});if(this.a.parentNode?.insertBefore(u,this.a),t||i||e){this.k=g("div",{class:"iti__country-container"},u),this.showSelectedCountryOnLeft?this.k.style.left="0px":this.k.style.right="0px",t?(this.selectedCountry=g("button",{type:"button",class:"iti__selected-country","aria-expanded":"false","aria-label":this.d.i18n.selectedCountryAriaLabel,"aria-haspopup":"true","aria-controls":`iti-${this.id}__dropdown-content`,role:"combobox"},this.k),this.a.disabled&&this.selectedCountry.setAttribute("disabled","true")):this.selectedCountry=g("div",{class:"iti__selected-country"},this.k);let i=g("div",{class:"iti__selected-country-primary"},this.selectedCountry);if(this.l=g("div",{class:"iti__flag"},i),this.selectedCountryA11yText=g("span",{class:"iti__a11y-text"},this.l),t&&(this.u=g("div",{class:"iti__arrow","aria-hidden":"true"},i)),e&&(this.t=g("div",{class:"iti__selected-dial-code","aria-hidden":"true",dir:"ltr"},this.selectedCountry)),t){let t=r?"":"iti--flexible-dropdown-width";if(this.dropdownContent=g("div",{id:`iti-${this.id}__dropdown-content`,class:`iti__dropdown-content iti__hide ${t}`}),l&&(this.searchInput=g("input",{type:"text",class:"iti__search-input",placeholder:h.searchPlaceholder,role:"combobox","aria-expanded":"true","aria-label":h.searchPlaceholder,"aria-controls":`iti-${this.id}__country-listbox`,"aria-autocomplete":"list",autocomplete:"off"},this.dropdownContent),this.searchResultsA11yText=g("span",{class:"iti__a11y-text"},this.dropdownContent)),this.countryList=g("ul",{class:"iti__country-list",id:`iti-${this.id}__country-listbox`,role:"listbox","aria-label":h.countryListAriaLabel},this.dropdownContent),this._g(),l&&this._p4(),n){let t="iti iti--container";s&&(t+=` ${s}`),t+=o?" iti--fullscreen-popup":" iti--inline-dropdown",this.dropdown=g("div",{class:t}),this.dropdown.appendChild(this.dropdownContent)}else this.k.appendChild(this.dropdownContent)}}if(u.appendChild(this.a),this._updateInputPadding(),a){let t=a(this.a.getAttribute("name")||"");if(t.phone){let e=this.a.form?.querySelector(`input[name="${t.phone}"]`);e?this.hiddenInput=e:(this.hiddenInput=g("input",{type:"hidden",name:t.phone}),u.appendChild(this.hiddenInput))}if(t.country){let e=this.a.form?.querySelector(`input[name="${t.country}"]`);e?this.hiddenInputCountry=e:(this.hiddenInputCountry=g("input",{type:"hidden",name:t.country}),u.appendChild(this.hiddenInputCountry))}}}_g(){for(let t=0;t<this.p.length;t++){let e=this.p[t],i=0===t?"iti__highlight":"",s=g("li",{id:`iti-${this.id}__item-${e.iso2}`,class:`iti__country ${i}`,tabindex:"-1",role:"option","data-dial-code":e.dialCode,"data-country-code":e.iso2,"aria-selected":"false"},this.countryList);e.nodeById[this.id]=s;let a="";this.d.showFlags&&(a+=`<div class='iti__flag iti__${e.iso2}'></div>`),a+=`<span class='iti__country-name'>${e.name}</span>`,a+=`<span class='iti__dial-code' dir='ltr'>+${e.dialCode}</span>`,s.insertAdjacentHTML("beforeend",a)}}_h(t=!1){let e=this.a.getAttribute("value"),i=this.a.value,s=!e||"+"!==e.charAt(0)||i&&"+"===i.charAt(0)?i:e,a=this._5(s),n=y(s),{initialCountry:r,geoIpLookup:o}=this.d,l="auto"===r&&o;if(a&&!n)this._v(s);else if(!l||t){let t=r?r.toLowerCase():"";t&&this._y(t,!0)?(this._z(t),!this.a.value&&this.s.dialCode&&(this.a.value=`+${this.s.dialCode}`,this.manuallySelected=!1)):a&&n?this._z("us"):(this._z("us"),!this.a.value&&this.s.dialCode&&(this.a.value=`+${this.s.dialCode}`,this.manuallySelected=!1))}s&&this._u(s)}_i(){this._j(),this.d.allowDropdown&&this._i2(),(this.hiddenInput||this.hiddenInputCountry)&&this.a.form&&this._i0()}_i0(){this._a14=()=>{this.hiddenInput&&(this.hiddenInput.value=this.getNumber()),this.hiddenInputCountry&&(this.hiddenInputCountry.value=this.getSelectedCountryData().iso2||"")},this.a.form?.addEventListener("submit",this._a14)}_i2(){this._a9=t=>{this.dropdownContent.classList.contains("iti__hide")?this.a.focus():t.preventDefault()};let t=this.a.closest("label");t&&t.addEventListener("click",this._a9),this._a10=()=>{this.dropdownContent.classList.contains("iti__hide")&&!this.a.disabled&&!this.a.readOnly&&this._n()},this.selectedCountry.addEventListener("click",this._a10),this._a11=t=>{this.dropdownContent.classList.contains("iti__hide")&&["ArrowUp","ArrowDown"," ","Enter"].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),this._n()),"Tab"===t.key&&this._2()},this.k.addEventListener("keydown",this._a11)}_i3(){let{loadUtils:t,initialCountry:e,geoIpLookup:i}=this.d;t&&!f.utils?(this._handlePageLoad=()=>{window.removeEventListener("load",this._handlePageLoad),f.attachUtils(t)?.catch((()=>{}))},f.documentReady()?this._handlePageLoad():window.addEventListener("load",this._handlePageLoad)):this.i0(),"auto"===e&&i&&!this.s.iso2?this._i4():this.h()}_i4(){f.autoCountry?this.handleAutoCountry():f.startedLoadingAutoCountry||(f.startedLoadingAutoCountry=!0,"function"==typeof this.d.geoIpLookup&&this.d.geoIpLookup(((t="")=>{let e=t.toLowerCase();e&&this._y(e,!0)?(f.autoCountry=e,setTimeout((()=>_("handleAutoCountry")))):(this._h(!0),_("rejectAutoCountryPromise"))}),(()=>{this._h(!0),_("rejectAutoCountryPromise")})))}_nWithPlus(){this._n(),this.searchInput.value="+",this._p3("",!0)}_j(){let{strictMode:t,formatAsYouType:e,separateDialCode:i,formatOnDisplay:s,allowDropdown:a,countrySearch:n}=this.d,r=!1;/\p{L}/u.test(this.a.value)&&(r=!0);let o="";this.manuallySelected=!1,this._a12=l=>{if(this.isAndroid&&"+"===l?.data&&i&&a&&n){let t=this.a.selectionStart||0,e=this.a.value.substring(0,t-1),i=this.a.value.substring(t);return this.a.value=e+i,void this._nWithPlus()}let h=this.a.value;""!==h&&"+"!==h||(this.manuallySelected=!1),h.startsWith("+")&&!this.manuallySelected&&(o.length>1&&(h.length<=1||"+"===h)||h.length<=4||o.length<h.length)&&this._v(this.a.value)&&this._8();let d=l?.data&&/[^+0-9]/.test(l.data),u="insertFromPaste"===l?.inputType&&this.a.value;d||u&&!t?r=!0:/[^+0-9]/.test(this.a.value)||(r=!1);let c=l?.detail&&l.detail.isSetNumber&&!s;if(e&&!r&&!c){let t=this.a.selectionStart||0,e=this.a.value.substring(0,t).replace(/[^+0-9]/g,"").length,i="deleteContentForward"===l?.inputType,s=this._9(),a=((t,e,i,s)=>{if(0===i&&!s)return 0;let a=0;for(let i=0;i<e.length;i++){if(/[+0-9]/.test(e[i])&&a++,a===t&&!s)return i+1;if(s&&a===t+1)return i}return e.length})(e,s,t,i);this.a.value=s,this.a.setSelectionRange(a,a)}o=h},this.a.addEventListener("input",this._a12),(t||i)&&(this._handleKeydownEvent=e=>{if(e.key&&1===e.key.length&&!e.altKey&&!e.ctrlKey&&!e.metaKey){if(i&&a&&n&&"+"===e.key)return e.preventDefault(),void this._nWithPlus();if(t){let t=this.a.value,s=!("+"===t.charAt(0))&&0===this.a.selectionStart&&"+"===e.key,a=/^[0-9]$/.test(e.key),n=i?a:s||a,r=t.slice(0,this.a.selectionStart)+e.key+t.slice(this.a.selectionEnd),o=this._6(r),l=f.utils.getCoreNumber(o,this.s.iso2),h=this.maxCoreNumberLength&&l.length>this.maxCoreNumberLength,d=null!==this._getNewCountryFromNumber(o);(!n||h&&!d&&!s)&&e.preventDefault()}}},this.a.addEventListener("keydown",this._handleKeydownEvent))}_j2(t){let e=parseInt(this.a.getAttribute("maxlength")||"",10);return e&&t.length>e?t.substr(0,e):t}_trigger(t,e={}){let i=new CustomEvent(t,{bubbles:!0,cancelable:!0,detail:e});this.a.dispatchEvent(i)}_n(){let{fixDropdownWidth:t,countrySearch:e}=this.d;if(t&&(this.dropdownContent.style.width=`${this.a.offsetWidth}px`),this.dropdownContent.classList.remove("iti__hide"),this.selectedCountry.setAttribute("aria-expanded","true"),this._o(),e){let t=this.countryList.firstElementChild;t&&(this._x(t,!1),this.countryList.scrollTop=0),this.searchInput.focus()}this._p(),this.u.classList.add("iti__arrow--up"),this._trigger("open:countrydropdown")}_o(){if(this.d.dropdownContainer&&this.d.dropdownContainer.appendChild(this.dropdown),!this.d.useFullscreenPopup){let t=this.a.getBoundingClientRect(),e=this.a.offsetHeight;this.d.dropdownContainer&&(this.dropdown.style.top=`${t.top+e}px`,this.dropdown.style.left=`${t.left}px`,this._a4=()=>this._2(),window.addEventListener("scroll",this._a4))}}_p(){this._a0=t=>{let e=t.target?.closest(".iti__country");e&&this._x(e,!1)},this.countryList.addEventListener("mouseover",this._a0),this._a1=t=>{let e=t.target?.closest(".iti__country");e&&this._1(e)},this.countryList.addEventListener("click",this._a1);let t=!0;this._a2=()=>{t||this._2(),t=!1},document.documentElement.addEventListener("click",this._a2);let e="",i=null;if(this._a3=t=>{["ArrowUp","ArrowDown","Enter","Escape"].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),"ArrowUp"===t.key||"ArrowDown"===t.key?this._q(t.key):"Enter"===t.key?this._r():"Escape"===t.key&&this._2()),!this.d.countrySearch&&/^[a-zA-ZÃ-ÿа-ÑÐ-Я ]$/.test(t.key)&&(t.stopPropagation(),i&&clearTimeout(i),e+=t.key.toLowerCase(),this._searchForCountry(e),i=setTimeout((()=>{e=""}),1e3))},document.addEventListener("keydown",this._a3),this.d.countrySearch){let t=()=>{let t=this.searchInput.value.trim();t?this._p3(t):this._p3("",!0)},e=null;this._a7=()=>{e&&clearTimeout(e),e=setTimeout((()=>{t(),e=null}),100)},this.searchInput.addEventListener("input",this._a7),this.searchInput.addEventListener("click",(t=>t.stopPropagation()))}}_searchForCountry(t){for(let e=0;e<this.p.length;e++){let i=this.p[e];if(i.name.substr(0,t.length).toLowerCase()===t){let t=i.nodeById[this.id];this._x(t,!1),this._3(t);break}}}_p3(t,e=!1){let i=!0;this.countryList.innerHTML="";let s=m(t),a=s.length,n=[],r=[],o=[],l=[],h=[],d=[];for(let t=0;t<this.p.length;t++){let i=this.p[t],u=m(i.name),c=i.name.split(/[^a-zA-ZÃ-ÿа-ÑÐ-Я]/).map((t=>t[0])).join("").toLowerCase();e||0===a?o.push(i):i.iso2.toLowerCase()===s?n.push(i):u.startsWith(s)?r.push(i):u.includes(s)?o.push(i):s===i.dialCode||s===`+${i.dialCode}`?l.push(i):`+${i.dialCode}`.includes(s)?h.push(i):c.includes(s)&&d.push(i)}let u=[...n.sort(((t,e)=>t.priority-e.priority)),...r.sort(((t,e)=>t.priority-e.priority)),...o.sort(((t,e)=>t.priority-e.priority)),...l.sort(((t,e)=>t.priority-e.priority)),...h.sort(((t,e)=>t.priority-e.priority)),...d.sort(((t,e)=>t.priority-e.priority))];for(let t of u){let e=t.nodeById[this.id];e&&(this.countryList.appendChild(e),i&&(this._x(e,!1),i=!1))}i&&this._x(null,!1),this.countryList.scrollTop=0,this._p4()}_p4(){let t,{i18n:e}=this.d,i=this.countryList.childElementCount;t="searchResultsText"in e?e.searchResultsText(i):0===i?e.zeroSearchResults:1===i?e.oneSearchResult:e.multipleSearchResults.replace("${count}",i.toString()),this.searchResultsA11yText.textContent=t}_q(t){let e="ArrowUp"===t?this.c?.previousElementSibling:this.c?.nextElementSibling;!e&&this.countryList.childElementCount>1&&(e="ArrowUp"===t?this.countryList.lastElementChild:this.countryList.firstElementChild),e&&(this._3(e),this._x(e,!1))}_r(){this.c&&this._1(this.c)}_u(t){let e=t;if(this.d.formatOnDisplay&&f.utils&&this.s){let t=this.d.nationalMode||"+"!==e.charAt(0)&&!this.d.separateDialCode,{NATIONAL:i,INTERNATIONAL:s}=f.utils.numberFormat,a=t?i:s;e=f.utils.formatNumber(e,this.s.iso2,a)}e=this._7(e),this.a.value=e}_v(t){let e=this._getNewCountryFromNumber(t);return null!==e&&this._z(e)}_ensureHasDialCode(t){let{dialCode:e,nationalPrefix:i}=this.s;return"+"!==t.charAt(0)&&e?`+${e}${i&&t.charAt(0)===i&&!this.d.separateDialCode?t.substring(1):t}`:t}_getNewCountryFromNumber(t){let e=t.indexOf("+"),i=e?t.substring(e):t,s=this.s.iso2,a=this.s.dialCode;i=this._ensureHasDialCode(i);let n=this._5(i,!0),r=p(i);if(n){let t=p(n),e=this.q[t];if(!s&&this.j&&e.includes(this.j))return this.j;let i=this.s.areaCodes&&r.length>t.length,o=s&&e.includes(s)&&!i;if(!("1"===a&&y(r)||o)&&e&&e.length>0)return e.sort(((t,e)=>{let i=this._y(t,!1,!0)||{priority:99},s=this._y(e,!1,!0)||{priority:99};return i.priority-s.priority})),e[0]}else{if("+"===i.charAt(0)&&r.length)return"";if(!(i&&"+"!==i||this.s.iso2))return this.j}return null}_x(t,e){let i=this.c;if(i&&(i.classList.remove("iti__highlight"),i.setAttribute("aria-selected","false")),this.c=t,this.c){this.c.classList.add("iti__highlight"),this.c.setAttribute("aria-selected","true");let t=this.c.getAttribute("id")||"";this.selectedCountry.setAttribute("aria-activedescendant",t),this.d.countrySearch&&this.searchInput.setAttribute("aria-activedescendant",t)}e&&this.c.focus()}_y(t,e){for(let e=0;e<this.p.length;e++)if(this.p[e].iso2===t)return this.p[e];if(e)return null;if(this.p.length>0){let t=[...this.p].sort(((t,e)=>t.iso2.localeCompare(e.iso2)));return t[0]}throw new Error(`No country data for '${t}'`)}_z(t){let{separateDialCode:e,showFlags:i,i18n:s}=this.d,a=this.s.iso2?this.s:{};if(this.s=t&&this._y(t,!1)||{},this.s.iso2&&(this.j=this.s.iso2),this.l){let e="",a="";t&&i?(e=`iti__flag iti__${t}`,a=`${this.s.name} +${this.s.dialCode}`):(e="iti__flag iti__globe",a=s.noCountrySelected),this.l.className=e,this.selectedCountryA11yText.textContent=a}if(this._z3(t,e),e){let t=this.s.dialCode?`+${this.s.dialCode}`:"";this.t.innerHTML=t,this._updateInputPadding()}return this._0(),this._updateMaxLength(),a.iso2!==t}_updateInputPadding(){if(this.selectedCountry){let t=(this.selectedCountry.offsetWidth||this._z2())+6;this.showSelectedCountryOnLeft?this.a.style.paddingLeft=`${t}px`:this.a.style.paddingRight=`${t}px`}}_updateMaxLength(){let{strictMode:t,placeholderNumberType:e,validationNumberTypes:i}=this.d,{iso2:s}=this.s;
1if(t&&f.utils)if(s){let t=f.utils.numberType[e],a=f.utils.getExampleNumber(s,!1,t,!0),n=a;for(;f.utils.isPossibleNumber(a,s,i);)n=a,a+="0";let r=f.utils.getCoreNumber(n,s);this.maxCoreNumberLength=r.length,"by"===s&&(this.maxCoreNumberLength=r.length+1)}else this.maxCoreNumberLength=null}_z3(t=null,e){if(!this.selectedCountry)return;let i;i=t&&!e?`${this.s.name}: +${this.s.dialCode}`:t?this.s.name:"Unknown",this.selectedCountry.setAttribute("title",i)}_z2(){if(this.a.parentNode){let t=this.a.parentNode.cloneNode(!1);t.style.visibility="hidden",document.body.appendChild(t);let e=this.k.cloneNode();t.appendChild(e);let i=this.selectedCountry.cloneNode(!0);e.appendChild(i);let s=i.offsetWidth;return document.body.removeChild(t),s}return 0}_0(){let{autoPlaceholder:t,placeholderNumberType:e,nationalMode:i,customPlaceholder:s}=this.d,a="aggressive"===t||!this.e&&"polite"===t;if(f.utils&&a){let t=f.utils.numberType[e],a=this.s.iso2?f.utils.getExampleNumber(this.s.iso2,i,t):"";a=this._7(a),"function"==typeof s&&(a=s(a,this.s)),this.a.setAttribute("placeholder",a)}}_1(t){let e=this._z(t.getAttribute("data-country-code"));this._2(),this._4(t.getAttribute("data-dial-code")),this.a.focus(),this.manuallySelected=!0,e&&this._8()}_2(){this.dropdownContent.classList.add("iti__hide"),this.selectedCountry.setAttribute("aria-expanded","false"),this.selectedCountry.removeAttribute("aria-activedescendant"),this.c&&this.c.setAttribute("aria-selected","false"),this.d.countrySearch&&this.searchInput.removeAttribute("aria-activedescendant"),this.u.classList.remove("iti__arrow--up"),document.removeEventListener("keydown",this._a3),this.d.countrySearch&&this.searchInput.removeEventListener("input",this._a7),document.documentElement.removeEventListener("click",this._a2),this.countryList.removeEventListener("mouseover",this._a0),this.countryList.removeEventListener("click",this._a1),this.d.dropdownContainer&&(this.d.useFullscreenPopup||window.removeEventListener("scroll",this._a4),this.dropdown.parentNode&&this.dropdown.parentNode.removeChild(this.dropdown)),this._handlePageLoad&&window.removeEventListener("load",this._handlePageLoad),this._trigger("close:countrydropdown")}_3(t){let e=this.countryList,i=document.documentElement.scrollTop,s=e.offsetHeight,a=e.getBoundingClientRect().top+i,n=a+s,r=t.offsetHeight,o=t.getBoundingClientRect().top+i,l=o+r,h=o-a+e.scrollTop;if(o<a)e.scrollTop=h;else if(l>n){let t=s-r;e.scrollTop=h-t}}_4(t){let e,i=this.a.value,s=`+${t}`;if("+"===i.charAt(0)){let t=this._5(i);e=t?i.replace(t,s):s,this.a.value=e}}_5(t,e){let i="";if("+"===t.charAt(0)){let s="";for(let a=0;a<t.length;a++){let n=t.charAt(a);if(!isNaN(parseInt(n,10))){if(s+=n,e)this.q[s]&&(i=t.substr(0,a+1));else if(this.dialCodes[s]){i=t.substr(0,a+1);break}if(s.length===this.dialCodeMaxLen)break}}}return i}_6(t){let e,i=t||this.a.value.trim(),{dialCode:s}=this.s,a=p(i);return e=this.d.separateDialCode&&"+"!==i.charAt(0)&&s&&a?`+${s}`:"",e+i}_7(t){let e=t;if(this.d.separateDialCode){let t=this._5(e);if(t){t=`+${this.s.dialCode}`;let i=" "===e[t.length]||"-"===e[t.length]?t.length+1:t.length;e=e.substr(i)}}return this._j2(e)}_8(){this._trigger("countrychange")}_9(){let t=this._6(),e=f.utils?f.utils.formatNumberAsYouType(t,this.s.iso2):t,{dialCode:i}=this.s;return this.d.separateDialCode&&"+"!==this.a.value.charAt(0)&&e.includes(`+${i}`)?(e.split(`+${i}`)[1]||"").trim():e}handleAutoCountry(){"auto"===this.d.initialCountry&&f.autoCountry&&(this.j=f.autoCountry,this.s.iso2||this.l.classList.contains("iti__globe")||this.setCountry(this.j),this.h())}handleUtils(){f.utils&&(this.a.value&&this._u(this.a.value),this.s.iso2&&(this._0(),this._updateMaxLength())),this.i0()}destroy(){this.a.iti=void 0;let{allowDropdown:t,separateDialCode:e}=this.d;if(t){this._2(),this.selectedCountry.removeEventListener("click",this._a10),this.k.removeEventListener("keydown",this._a11);let t=this.a.closest("label");t&&t.removeEventListener("click",this._a9)}let{form:i}=this.a;this._a14&&i&&i.removeEventListener("submit",this._a14),this.a.removeEventListener("input",this._a12),this._handleKeydownEvent&&this.a.removeEventListener("keydown",this._handleKeydownEvent),this.a.removeAttribute("data-intl-tel-input-id"),e&&(this.isRTL?this.a.style.paddingRight=this.originalPaddingRight:this.a.style.paddingLeft=this.originalPaddingLeft);let s=this.a.parentNode;s?.parentNode?.insertBefore(this.a,s),s?.parentNode?.removeChild(s),delete f.instances[this.id]}getExtension(){return f.utils?f.utils.getExtension(this._6(),this.s.iso2):""}getNumber(t){if(f.utils){let{iso2:e}=this.s;return f.utils.formatNumber(this._6(),e,t)}return""}getNumberType(){return f.utils?f.utils.getNumberType(this._6(),this.s.iso2):-99}getSelectedCountryData(){return this.s}getValidationError(){if(f.utils){let{iso2:t}=this.s;return f.utils.getValidationError(this._6(),t)}return-99}isValidNumber(){if(!this.s.iso2)return!1;let t=this._6(),e=t.search(/\p{L}/u);if(e>-1){let i=t.substring(0,e),s=this._utilsIsPossibleNumber(i),a=this._utilsIsPossibleNumber(t);return s&&a}return this._utilsIsPossibleNumber(t)}_utilsIsPossibleNumber(t){return f.utils?f.utils.isPossibleNumber(t,this.s.iso2,this.d.validationNumberTypes):null}isValidNumberPrecise(){if(!this.s.iso2)return!1;let t=this._6(),e=t.search(/\p{L}/u);if(e>-1){let i=t.substring(0,e),s=this._utilsIsValidNumber(i),a=this._utilsIsValidNumber(t);return s&&a}return this._utilsIsValidNumber(t)}_utilsIsValidNumber(t){return f.utils?f.utils.isValidNumber(t,this.s.iso2,this.d.validationNumberTypes):null}setCountry(t){let e=t?.toLowerCase(),i=this.s.iso2;(t&&e!==i||!t&&i)&&(this._z(e),this._4(this.s.dialCode),this._8())}setNumber(t){let e=this._v(t);this._u(t),e&&this._8(),this._trigger("input",{isSetNumber:!0})}setPlaceholderNumberType(t){this.d.placeholderNumberType=t,this._0()}setDisabled(t){this.a.disabled=t,t?this.selectedCountry.setAttribute("disabled","true"):this.selectedCountry.removeAttribute("disabled")}},f=Object.assign(((t,e)=>{let i=new b(t,e);return i._init(),t.setAttribute("data-intl-tel-input-id",i.id.toString()),f.instances[i.id]=i,t.iti=i,i}),{defaults:u,documentReady:()=>"complete"===document.readyState,getCountryData:()=>o,getInstance:t=>{let e=t.getAttribute("data-intl-tel-input-id");return e?f.instances[e]:null},instances:{},attachUtils:t=>{if(!f.utils&&!f.startedLoadingUtilsScript){let e;if("function"!=typeof t)return Promise.reject(new TypeError("The argument passed to attachUtils must be a function that returns a promise for the utilities module, not "+typeof t));try{e=Promise.resolve(t())}catch(t){return Promise.reject(t)}return f.startedLoadingUtilsScript=!0,e.then((t=>{let e=t?.default;if(!e||"object"!=typeof e)throw new TypeError("The loader function passed to attachUtils did not resolve to a module object with utils as its default export.");return f.utils=e,_("handleUtils"),!0})).catch((t=>{throw _("rejectUtilsScriptPromise",t),t}))}return null},startedLoadingUtilsScript:!1,startedLoadingAutoCountry:!1,version:"25.5.2"}),C=f;return h=a,((a,n,r,o)=>{if(n&&"object"==typeof n||"function"==typeof n)for(let r of i(n))!s.call(a,r)&&undefined!==r&&t(a,r,{get:()=>n[r],enumerable:!(o=e(n,r))||o.enumerable});return a})(t({},"__esModule",{value:!0}),h)})().default));
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.