1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,75433,86694,56764,49627,29265,90695,t=>{"use strict";var e=[];for(let t of[["af","93",0,null,"0"],["ax","358",1,["18","4"],"0"],["al","355",0,null,"0"],["dz","213",0,null,"0"],["as","1",5,["684"],"1"],["ad","376"],["ao","244"],["ai","1",6,["264"],"1"],["ag","1",7,["268"],"1"],["ar","54",0,null,"0"],["am","374",0,null,"0"],["aw","297"],["ac","247"],["au","61",0,["4"],"0"],["at","43",0,null,"0"],["az","994",0,null,"0"],["bs","1",8,["242"],"1"],["bh","973"],["bd","880",0,null,"0"],["bb","1",9,["246"],"1"],["by","375",0,null,"8"],["be","32",0,null,"0"],["bz","501"],["bj","229"],["bm","1",10,["441"],"1"],["bt","975"],["bo","591",0,null,"0"],["ba","387",0,null,"0"],["bw","267"],["br","55",0,null,"0"],["io","246"],["vg","1",11,["284"],"1"],["bn","673"],["bg","359",0,null,"0"],["bf","226"],["bi","257"],["kh","855",0,null,"0"],["cm","237"],["ca","1",1,["204","226","236","249","250","257","263","289","306","343","354","365","367","368","382","403","416","418","428","431","437","438","450","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","942"],"1"],["cv","238"],["bq","599",1,["3","4","7"]],["ky","1",12,["345"],"1"],["cf","236"],["td","235"],["cl","56"],["cn","86",0,null,"0"],["cx","61",2,["4","89164"],"0"],["cc","61",1,["4","89162"],"0"],["co","57",0,null,"0"],["km","269"],["cg","242"],["cd","243",0,null,"0"],["ck","682"],["cr","506"],["ci","225"],["hr","385",0,null,"0"],["cu","53",0,null,"0"],["cw","599",0],["cy","357"],["cz","420"],["dk","45"],["dj","253"],["dm","1",13,["767"],"1"],["do","1",2,["809","829","849"],"1"],["ec","593",0,null,"0"],["eg","20",0,null,"0"],["sv","503"],["gq","240"],["er","291",0,null,"0"],["ee","372"],["sz","268"],["et","251",0,null,"0"],["fk","500"],["fo","298"],["fj","679"],["fi","358",0,["4"],"0"],["fr","33",0,null,"0"],["gf","594",0,null,"0"],["pf","689"],["ga","241"],["gm","220"],["ge","995",0,null,"0"],["de","49",0,null,"0"],["gh","233",0,null,"0"],["gi","350"],["gr","30"],["gl","299"],["gd","1",14,["473"],"1"],["gp","590",0,null,"0"],["gu","1",15,["671"],"1"],["gt","502"],["gg","44",1,["1481","7781","7839","7911"],"0"],["gn","224"],["gw","245"],["gy","592"],["ht","509"],["hn","504"],["hk","852"],["hu","36",0,null,"06"],["is","354"],["in","91",0,null,"0"],["id","62",0,null,"0"],["ir","98",0,null,"0"],["iq","964",0,null,"0"],["ie","353",0,null,"0"],["im","44",2,["1624","74576","7524","7624","7924"],"0"],["il","972",0,null,"0"],["it","39",0,["3"]],["jm","1",4,["658","876"],"1"],["jp","81",0,null,"0"],["je","44",3,["1534","7509","7700","7797","7829","7937"],"0"],["jo","962",0,null,"0"],["kz","7",1,["33","7"],"8"],["ke","254",0,null,"0"],["ki","686",0,null,"0"],["xk","383",0,null,"0"],["kw","965"],["kg","996",0,null,"0"],["la","856",0,null,"0"],["lv","371"],["lb","961",0,null,"0"],["ls","266"],["lr","231",0,null,"0"],["ly","218",0,null,"0"],["li","423",0,null,"0"],["lt","370",0,null,"0"],["lu","352"],["mo","853"],["mg","261",0,null,"0"],["mw","265",0,null,"0"],["my","60",0,null,"0"],["mv","960"],["ml","223"],["mt","356"],["mh","692",0,null,"1"],["mq","596",0,null,"0"],["mr","222"],["mu","230"],["yt","262",1,["269","639"],"0"],["mx","52"],["fm","691"],["md","373",0,null,"0"],["mc","377",0,null,"0"],["mn","976",0,null,"0"],["me","382",0,null,"0"],["ms","1",16,["664"],"1"],["ma","212",0,["6","7"],"0"],["mz","258"],["mm","95",0,null,"0"],["na","264",0,null,"0"],["nr","674"],["np","977",0,null,"0"],["nl","31",0,null,"0"],["nc","687"],["nz","64",0,null,"0"],["ni","505"],["ne","227"],["ng","234",0,null,"0"],["nu","683"],["nf","672"],["kp","850",0,null,"0"],["mk","389",0,null,"0"],["mp","1",17,["670"],"1"],["no","47",0,["4","9"]],["om","968"],["pk","92",0,null,"0"],["pw","680"],["ps","970",0,null,"0"],["pa","507"],["pg","675"],["py","595",0,null,"0"],["pe","51",0,null,"0"],["ph","63",0,null,"0"],["pl","48"],["pt","351"],["pr","1",3,["787","939"],"1"],["qa","974"],["re","262",0,null,"0"],["ro","40",0,null,"0"],["ru","7",0,["33"],"8"],["rw","250",0,null,"0"],["ws","685"],["sm","378"],["st","239"],["sa","966",0,null,"0"],["sn","221"],["rs","381",0,null,"0"],["sc","248"],["sl","232",0,null,"0"],["sg","65"],["sx","1",21,["721"],"1"],["sk","421",0,null,"0"],["si","386",0,null,"0"],["sb","677"],["so","252",0,null,"0"],["za","27",0,null,"0"],["kr","82",0,null,"0"],["ss","211",0,null,"0"],["es","34"],["lk","94",0,null,"0"],["bl","590",1,null,"0"],["sh","290"],["kn","1",18,["869"],"1"],["lc","1",19,["758"],"1"],["mf","590",2,null,"0"],["pm","508",0,null,"0"],["vc","1",20,["784"],"1"],["sd","249",0,null,"0"],["sr","597"],["sj","47",1,["4","79","9"]],["se","46",0,null,"0"],["ch","41",0,null,"0"],["sy","963",0,null,"0"],["tw","886",0,null,"0"],["tj","992"],["tz","255",0,null,"0"],["th","66",0,null,"0"],["tl","670"],["tg","228"],["tk","690"],["to","676"],["tt","1",22,["868"],"1"],["tn","216"],["tr","90",0,null,"0"],["tm","993",0,null,"8"],["tc","1",23,["649"],"1"],["tv","688"],["vi","1",24,["340"],"1"],["ug","256",0,null,"0"],["ua","380",0,null,"0"],["ae","971",0,null,"0"],["gb","44",0,null,"0"],["us","1",0,null,"1"],["uy","598",0,null,"0"],["uz","998"],["vu","678"],["va","39",1,["06698","3"]],["ve","58",0,null,"0"],["vn","84",0,null,"0"],["wf","681"],["eh","212",1,["5288","5289","6","7"],"0"],["ye","967",0,null,"0"],["zm","260",0,null,"0"],["zw","263",0,null,"0"]])e.push({name:"",iso2:t[0],dialCode:t[1],priority:t[2]||0,areaCodes:t[3]||null,
1nationalPrefix:t[4]||null});var i=new Set(e.map(t=>t.iso2)),s=t=>i.has(t),l="input",n="strict:reject",r="iti__hide",o="iti__v-hide",a="iti__arrow--up",u="iti__flag",h="iti__loading",d="iti__country",c="iti__highlight",p="iti__strict-reject-animation",y="ArrowUp",m="ArrowDown",g="Enter",C="Escape",f=/\p{L}/u,b=/[^+0-9]/,E=/[^+0-9]/g,I=/^[a-zA-ZÃ-ÿа-ÑÐ-Я ]$/,S={AGGRESSIVE:"AGGRESSIVE",POLITE:"POLITE",OFF:"OFF"},L=["OFF","DROPDOWN","FULLSCREEN","AUTO"],v=["FIXED_LINE","MOBILE","FIXED_LINE_OR_MOBILE","TOLL_FREE","PREMIUM_RATE","SHARED_COST","VOIP","PERSONAL_NUMBER","PAGER","UAN","VOICEMAIL","UNKNOWN"],w=t=>Object.fromEntries(t.map(t=>[t,t])),A=w(["E164","INTERNATIONAL","NATIONAL","RFC3966"]),N=w(v),x=w(["IS_POSSIBLE","INVALID_COUNTRY_CODE","TOO_SHORT","TOO_LONG","IS_POSSIBLE_LOCAL_ONLY","INVALID_LENGTH"]),_=w(L),T="iso2",k="dialCode",O="intlTelInputId",D="aria-expanded",P="aria-label",F="aria-selected",R="aria-activedescendant",$="aria-controls",M="aria-hidden",j={selectedCountryAriaLabel:"Change country for phone number, currently selected ${countryName} (${dialCode})",noCountrySelected:"Select country for phone number",countryListAriaLabel:"List of countries",searchPlaceholder:"Search",clearSearchAriaLabel:"Clear search",searchEmptyState:"No results found",searchSummaryAria:t=>0===t?"No results found":1===t?"1 result found":`${t} results found`},V=t=>"u">typeof window&&"function"==typeof window.matchMedia&&window.matchMedia(t).matches,U=()=>V("(max-width: 500px)"),W={countrySelectorMode:_.AUTO,allowedNumberTypes:[N.MOBILE,N.FIXED_LINE],allowNumberExtensions:!1,allowPhonewords:!1,containerClass:"",countryNameLocale:"en",countryNameOverrides:{},countryOrder:null,countrySearch:!0,customPlaceholder:null,dropdownAlwaysOpen:!1,dropdownParent:null,excludeCountries:null,matchDropdownWidth:!0,formatAsYouType:!0,hiddenInputs:null,uiTranslations:{},initialCountry:"",initialCountryLookup:null,loadUtils:null,numberDisplayFormat:A.INTERNATIONAL,onlyCountries:null,placeholderNumberPolicy:S.POLITE,placeholderNumberType:N.MOBILE,searchInputClass:"",separateDialCode:!0,strictRejectAnimation:!0,showFlags:!0,strictMode:!0},B=t=>!!t&&"object"==typeof t&&!Array.isArray(t),z=t=>"function"==typeof t,H=t=>!!t&&"object"==typeof t&&1===t.nodeType&&"string"==typeof t.tagName&&"function"==typeof t.appendChild,K=new Set(Object.values(S)),q=t=>{console.warn(`[intl-tel-input] ${t}`)},G=(t,e,i)=>{q(`Option '${t}' must be ${e}; got ${JSON.stringify(i)}. Ignoring.`)},Y=(t,e)=>{let i="an array of iso2 country code strings";if(!Array.isArray(e))return G(t,i,e),!1;let l=[];for(let n of e){if("string"!=typeof n)return G(t,i,e),!1;s(n.toLowerCase())?l.push(n):q(`Invalid iso2 code in '${t}': '${n}'. Skipping.`)}return l},J=(t="")=>t.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase(),Q=t=>Object.keys(t).filter(e=>!!t[e]).join(" "),X=(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},Z=([t,e,i])=>{let s=document.createElementNS("http://www.w3.org/2000/svg",t);if(e)for(let t in e)s.setAttribute(t,String(e[t]));if(i)for(let t of i)s.appendChild(Z(t));return s},tt=()=>Z(["svg",{width:256,height:256,viewBox:"0 0 512 512",class:"iti__globe-svg"},[["path",{d:"M508 213a240 240 0 0 0-449-87l-2 5-2 5c-8 14-13 30-17 46a65 65 0 0 1 56 4c16-10 35-19 56-27l9-3c-6 23-10 48-10 74h-16l4 6c3 4 5 8 6 13h6c0 22 3 44 8 65l2 10-25-10-4 5 12 18 9 3 6 2 8 3 9 26 1 2 16-7h1l-5-13-1-2c24 6 49 9 75 10v26l11 10 7 7v-30l1-13c22 0 44-3 65-8l10-2-21 48-1 1a317 317 0 0 1-14 23l-21 5h-2c6 16 7 33 1 50a240 240 0 0 0 211-265m-401-56-11 6c19-44 54-79 98-98-11 20-21 44-29 69-21 6-40 15-58 23m154 182v4c-29-1-57-6-81-13-7-25-12-52-13-81h94zm0-109h-94c1-29 6-56 13-81 24-7 52-12 81-13zm0-112c-22 1-44 4-65 8l-10 2 12-30 9-17 1-2a332 332 0 0 1 13-23c13-4 26-6 40-7zm187 69 6 4c4 12 6 25 6 38v1h-68c-1-26-4-51-10-74l48 20 1 1 14 8zm-14-44 10 20c-20-11-43-21-68-29-8-25-18-49-29-69 37 16 67 44 87 78M279 49h1c13 1 27 3 39 7l14 23 1 2a343 343 0 0 1 12 26l2 5 6 16c-23-6-48-9-74-10h-1zm0 87h1c29 1 56 6 81 13 7 24 12 51 12 80v1h-94zm2 207h-2v-94h95c-1 29-6 56-13 81-24 7-51 12-80 13m86 60-20 10c11-20 21-43 29-68 25-8 48-18 68-29-16 37-43 67-77 87m87-115-7 5-16 9-2 1a337 337 0 0 1-47 21c6-24 9-49 10-75h68c0 13-2 27-6 39"}],["path",{d:"m261 428-2-2-22-21a40 40 0 0 0-32-11h-1a37 37 0 0 0-18 8l-1 1-4 2-2 2-5 4c-9-3-36-31-47-44s-32-45-34-55l3-2a151 151 0 0 0 11-9v-1a39 39 0 0 0 5-48l-3-3-11-19-3-4-5-7h-1l-3-3-4-3-5-2a35 35 0 0 0-16-3h-5c-4 1-14 5-24 11l-4 2-4 3-4 2c-9 8-17 17-18 27a380 380 0 0 0 212 259h3c12 0 25-10 36-21l10-12 6-11a39 39 0 0 0-8-40"}]]]),te=t=>J(t).replace(/[^\p{L}]+/gu," ").trim(),ti=class t{#t;static toAscii(t){return t?t.replace(/[Ù -Ù©]/g,t=>String.fromCharCode(48+(t.charCodeAt(0)-1632))).replace(/[Û°-Û¹]/g,t=>String.fromCharCode(48+(t.charCodeAt(0)-1776))):""}constructor(t){t&&this.#e(t)}#e(t){/[Ù -Ù©]/.test(t)?this.#t="arabic-indic":/[Û°-Û¹]/.test(t)?this.#t="persian":this.#t="ascii"}denormalise(t){if(!this.#t||"ascii"===this.#t)return t;let e="arabic-indic"===this.#t?1632:1776;return t.replace(/[0-9]/g,t=>String.fromCharCode(e+Number(t)))}normalise(e){return e?(this.#e(e),"ascii"===this.#t)?e:t.toAscii(e):""}isAscii(){return!this.#t||"ascii"===this.#t}},ts="u">typeof CSS&&"function"==typeof CSS.supports&&CSS.supports("anchor-name: --x"),tl=class{#i;#s;#l;#n="";#r;#o;#a=null;#u;#h=!1;#d;#c;#p;#y;#m;#g;#C;#f;#b;#E;#I;#S;#L;#v;#w;#A=null;#N=null;#x=new Map;#_=null;#T;telInputEl;hadInitialPlaceholder;constructor(t,e,i){t.dataset[O]=i.toString(),this.telInputEl=t,this.#i=e,this.#s=i,this.hadInitialPlaceholder=!!t.getAttribute("placeholder"),this.#l=!!this.telInputEl.closest("[dir=rtl]"),this.#n=this.telInputEl.style.paddingLeft}static validateInput(t){let e=t?.tagName;if(!(t&&"object"==typeof t&&"INPUT"===e&&"function"==typeof t.setAttribute)){let e=Object.prototype.toString.call(t);throw TypeError(`The first argument must be an HTMLInputElement, not ${e}`)}}buildMarkup(t,e){this.#r=t,this.#o=e,this.telInputEl.classList.add("iti__tel-input"),this.telInputEl.hasAttribute("type")||this.telInputEl.setAttribute("type","tel"),this.telInputEl.hasAttribute("autocomplete")||this.telInputEl.setAttribute("autocomplete","tel"),this.telInputEl.hasAttribute("inputmode")||this.telInputEl.setAttribute("inputmode","tel");let i=this.#k();this.#O(i),i.appendChild(this.telInputEl),this.#D(),this.#P(),this.#F(i),this.ensureDropdownWidthSet()}#k(){let{countrySelectorMode:t,showFlags:e,containerClass:i}=this.#i,s=X("div",{class:Q({iti:!0,"iti--input-container":!0,"iti--has-country-selector":t!==_.OFF,"iti--show-flags":e,"iti--inline-country-selector":t!==_.FULLSCREEN,[i]:!!i})});return this.#l&&s.setAttribute("dir","ltr"),this.telInputEl.before(s),s}
1#O(t){let{countrySelectorMode:e,separateDialCode:i,showFlags:s}=this.#i,l=e!==_.OFF;if(!l&&!s&&!i)return;this.#d=X("div",{class:`iti__country-container ${o}`},t),l?(this.#c=X("button",{type:"button",class:"iti__selected-country",[D]:"false",[P]:this.#i.uiTranslations.noCountrySelected,"aria-haspopup":"dialog",[$]:`iti-${this.#s}__country-selector`},this.#d),this.telInputEl.disabled&&this.#c.setAttribute("disabled","true")):this.#c=X("div",{class:"iti__selected-country"},this.#d);let n=X("div",{class:"iti__selected-country-primary"},this.#c);this.#p=X("div",{class:u},n),l&&(this.#m=X("div",{class:"iti__arrow",[M]:"true"},n)),i&&(this.#y=X("div",{class:"iti__selected-dial-code"},this.#c)),l&&this.#R()}ensureDropdownWidthSet(){let{matchDropdownWidth:t,countrySelectorMode:e}=this.#i;if(e===_.OFF||!t||this.#g.style.width)return;let i=this.telInputEl.offsetWidth;i>0&&(this.#g.style.width=`${i}px`)}#R(){let{matchDropdownWidth:t,countrySelectorMode:e,countrySearch:i,uiTranslations:s,containerClass:l}=this.#i,n=e===_.FULLSCREEN,o=this.#$();if(this.#g=X("div",{id:`iti-${this.#s}__country-selector`,class:`iti__country-selector ${r} ${t?"":"iti--flexible-dropdown-width"}`,role:"dialog","aria-modal":"true"}),this.#l&&this.#g.setAttribute("dir","rtl"),i&&this.#M(),this.#E=X("ul",{class:"iti__country-list",id:`iti-${this.#s}__country-listbox`,role:"listbox",[P]:s.countryListAriaLabel},this.#g),this.#j(),i&&this.#V(),o){let t=Q({iti:!0,"iti--detached-country-selector":!0,"iti--fullscreen-popup":n,"iti--inline-country-selector":!n,[l]:!!l});this.#w=X("div",{class:t}),this.#w.appendChild(this.#g)}else this.#d.appendChild(this.#g)}#$(){let{countrySelectorMode:t,dropdownParent:e}=this.#i;return t===_.FULLSCREEN?document.body:t===_.DROPDOWN?e:null}#M(){var t;let e,{uiTranslations:i,searchInputClass:s}=this.#i,l=X("div",{class:"iti__search-input-wrapper"},this.#g);this.#C=X("span",{class:"iti__search-icon",[M]:"true"},l),this.#C.appendChild(Z(["svg",{class:"iti__search-icon-svg",width:14,height:14,viewBox:"0 0 24 24",focusable:"false",[M]:"true"},[["circle",{cx:11,cy:11,r:7}],["line",{x1:21,y1:21,x2:16.65,y2:16.65}]]])),this.#f=X("input",{id:`iti-${this.#s}__search-input`,type:"search",class:`iti__search-input ${s}`,placeholder:i.searchPlaceholder,role:"combobox",[D]:"true",[P]:i.searchPlaceholder,[$]:`iti-${this.#s}__country-listbox`,"aria-autocomplete":"list",autocomplete:"off"},l),this.#b=X("button",{type:"button",class:`iti__search-clear ${r}`,[P]:i.clearSearchAriaLabel,tabindex:"-1"},l),this.#b.appendChild((t=this.#s,Z(["svg",{class:"iti__search-clear-svg",width:12,height:12,viewBox:"0 0 16 16",[M]:"true",focusable:"false"},[["mask",{id:e=`iti-${t}-clear-mask`,maskUnits:"userSpaceOnUse"},[["rect",{width:16,height:16,fill:"white"}],["path",{d:"M5.2 5.2 L10.8 10.8 M10.8 5.2 L5.2 10.8",stroke:"black","stroke-linecap":"round",class:"iti__search-clear-x"}]]],["circle",{cx:8,cy:8,r:8,class:"iti__search-clear-bg",mask:`url(#${e})`}]]]))),this.#v=X("span",{class:"iti__a11y-text"},this.#g),this.#L=X("div",{class:`iti__no-results ${r}`,[M]:"true"},this.#g),this.#L.textContent=i.searchEmptyState??null}#D(){this.#d&&(this.#U(),this.#d.classList.remove(o))}#F(t){let{hiddenInputs:e}=this.#i;if(!e)return;let i=e(this.telInputEl.getAttribute("name")||"");if(i.phone){let e=this.telInputEl.form?.querySelector(`input[name="${i.phone}"]`);e?this.#I=e:(this.#I=X("input",{type:"hidden",name:i.phone}),t.appendChild(this.#I))}if(i.country){let e=this.telInputEl.form?.querySelector(`input[name="${i.country}"]`);e?this.#S=e:(this.#S=X("input",{type:"hidden",name:i.country}),t.appendChild(this.#S))}}#j(){let t=document.createDocumentFragment();for(let e=0;e<this.#r.length;e++){let i=this.#r[e],s=Q({[d]:!0}),l=X("li",{id:`iti-${this.#s}__item-${i.iso2}`,class:s,tabindex:"-1",role:"option",[F]:"false"});l.dataset[k]=i.dialCode,l.dataset[T]=i.iso2,this.#x.set(i.iso2,l),this.#i.showFlags&&X("div",{class:`${u} iti__${i.iso2}`},l);let n=X("span",{class:"iti__country-name"},l);n.textContent=`${i.name} `;let r=X("span",{class:"iti__dial-code"},n);this.#l&&r.setAttribute("dir","ltr"),r.textContent=`(+${i.dialCode})`,t.appendChild(l)}this.#E.appendChild(t)}#U(){if(this.#c){let t=this.#i.separateDialCode?78:42,e=this.#c.offsetWidth||this.#W()||t;this.telInputEl.style.paddingLeft=`${e+6}px`}}#P(){this.#c&&"u">typeof ResizeObserver&&(this.#T=new ResizeObserver(()=>{this.#c?.offsetWidth&&this.#U()}),this.#T.observe(this.#c))}
1#W(){if(!this.telInputEl.parentNode)return 0;let t=document.body,e=this.telInputEl.parentNode.cloneNode(!1);e.style.visibility="hidden",t.appendChild(e);let i=this.#d.cloneNode();e.appendChild(i);let s=this.#c.cloneNode(!0);i.appendChild(s);let l=s.offsetWidth;return t.removeChild(e),l}#B(){if(void 0!==this.#u)return;let{countrySearch:t,matchDropdownWidth:e}=this.#i,{height:i,width:s}=this.#z();this.#u=i,t&&(this.#g.style.height=`${i}px`,!e&&s>0&&(this.#g.style.width=`${s}px`))}#z(){let t=document.body,e=this.#g,i=e.parentNode,s=e.nextSibling;e.classList.remove(r);let l=X("div",{class:"iti iti--inline-country-selector"});l.appendChild(e),l.style.visibility="hidden",t.appendChild(l);let n=e.offsetHeight,o=e.offsetWidth;return t.removeChild(l),e.classList.add(r),i&&i.insertBefore(e,s),{height:n>0?n:200,width:o}}#V(){let{uiTranslations:t}=this.#i,e=this.#E.childElementCount;this.#v.textContent=t.searchSummaryAria(e)}#H(t){let e;if(""===t)e=this.#r;else{let i=ti.toAscii(t);e=((t,e,i)=>{let s=J(i),l=te(i),n=""!==s&&""===l,r=[],o=[],a=[],u=[],h=[],d=[],c=[];for(let i of t){let t=e.get(i.iso2);i.iso2===s?r.push(i):!n&&t.normalisedName.startsWith(l)?o.push(i):!n&&t.normalisedName.includes(l)?a.push(i):s===i.dialCode||s===t.dialCodePlus?u.push(i):t.dialCodePlus.includes(s)?h.push(i):t.initials.includes(s)&&d.push(i)}let p=l.split(" ").filter(Boolean);if(p.length>1&&0===r.length&&0===o.length&&0===a.length){let i=new Set([...u.map(t=>t.iso2),...h.map(t=>t.iso2),...d.map(t=>t.iso2)]);for(let s of t){if(i.has(s.iso2))continue;let t=e.get(s.iso2);p.some(e=>t.words.some(t=>t.startsWith(e)))&&c.push(s)}}let y=(t,e)=>t.priority-e.priority;return[...r,...o,...a,...u.sort(y),...h.sort(y),...d,...c]})(this.#r,this.#o,i)}this.#K(e)}prefillSearchWithPlus(){this.#f.value="+",this.#f.focus(),this.#H("")}#q(){let t=this.#f.value.trim();this.#H(t),this.#f.value?this.#b.classList.remove(r):this.#b.classList.add(r)}#G(){this.#a&&clearTimeout(this.#a),this.#a=setTimeout(()=>{this.#q(),this.#a=null},100)}#Y(){this.#f.value="",this.#f.focus(),this.#q()}#J(t){let e=this.#E,i=e.getBoundingClientRect(),s=t.getBoundingClientRect(),l=s.top-i.top+e.scrollTop;s.top<i.top?e.scrollTop=l:s.bottom>i.bottom&&(e.scrollTop=l-i.height+s.height)}#Q(t,e=!0){if(this.#N?.classList.remove(c),t){if(t.classList.add(c),this.#i.countrySearch){let e=t.getAttribute("id")||"";this.#f.setAttribute(R,e)}e&&this.#J(t),this.#N=t}else this.#N=null}bindHiddenInputSubmitListener(t,e,i){let s=this.telInputEl.form;s&&(this.#I||this.#S)&&s.addEventListener("submit",()=>{this.#I&&(this.#I.value=e()),this.#S&&(this.#S.value=i())},{signal:t})}bindAllInitialCountrySelectorListeners(t,e,i){let s=this.telInputEl.closest("label");s&&s.addEventListener("click",t=>{this.isCountrySelectorOpen()?t.preventDefault():this.telInputEl.focus()},{signal:t}),this.#c.addEventListener("click",()=>{this.isCountrySelectorOpen()||this.telInputEl.disabled||this.telInputEl.readOnly||e()},{signal:t}),this.#d.addEventListener("keydown",t=>{!this.isCountrySelectorOpen()&&[y,m," ",g].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),e()),"Tab"===t.key&&i()},{signal:t})}openCountrySelector(t,e){let{countrySearch:i,dropdownAlwaysOpen:s}=this.#i;if(this.#_=new AbortController,this.#i.countrySelectorMode!==_.FULLSCREEN&&this.#B(),this.ensureDropdownWidthSet(),this.#w)this.#X();else{let t=this.#Z(),e=this.telInputEl.offsetHeight+3;t?this.#g.style.top=`${e}px`:this.#g.style.bottom=`${e}px`}this.#g.classList.remove(r),this.#c.setAttribute(D,"true");let l=this.#A??this.#E.firstElementChild;l&&this.#Q(l),i&&!s&&this.#f.focus(),this.#i.countrySelectorMode===_.FULLSCREEN&&this.#w&&window.visualViewport&&window.visualViewport.addEventListener("resize",()=>{this.#tt(),this.#N&&this.#J(this.#N)},{signal:this.#_.signal}),this.#m.classList.add(a),this.#te(t,e)}#te(t,e){let i=this.#_.signal;this.#ti(i),this.#ts(i,t),this.#i.dropdownAlwaysOpen||this.#tl(i,e),this.#tn(i,t,e),this.#i.countrySearch&&this.#tr(i),this.#i.countrySelectorMode===_.DROPDOWN&&this.#i.dropdownParent&&!ts&&document.addEventListener("scroll",e,{signal:i,capture:!0,passive:!0})}#ti(t){this.#E.addEventListener("mouseover",t=>{let e=t.target?.closest(`.${d}`);e&&this.#Q(e,!1)},{signal:t})}#ts(t,e){this.#E.addEventListener("click",t=>{let i=t.target?.closest(`.${d}`);i&&e(i)},{signal:t})}#tl(t,e){setTimeout(()=>{document.documentElement.addEventListener("click",t=>{this.#g.contains(t.target)||e()},{signal:t})},0)}#tn(t,e,i){let s="",l=null,n=t=>{[y,m,g,C].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),t.key===y||t.key===m?this.#to(t.key):t.key!==g||t.isComposing?t.key===C&&(i(),this.#c.focus()):e(this.#N)),!this.#i.countrySearch&&I.test(t.key)&&(t.stopPropagation(),l&&clearTimeout(l),s+=t.key.toLowerCase(),this.#ta(s),l=setTimeout(()=>{s=""},1e3))};this.#c?.addEventListener("keydown",n,{signal:t}),this.#g?.addEventListener("keydown",n,{signal:t})}#tr(t){this.#f.addEventListener("input",()=>this.#G(),{signal:t}),this.#b.addEventListener("click",()=>this.#Y(),{signal:t})}#ta(t){let e=((t,e,i)=>{let s=te(i);for(let i of t){let{normalisedName:t}=e.get(i.iso2);if(t.startsWith(s))return i}return null})(this.#r,this.#o,t);if(e){let t=this.#x.get(e.iso2);this.#Q(t)}}#to(t){let e=t===y?this.#N?.previousElementSibling:this.#N?.nextElementSibling;!e&&this.#E.childElementCount>
11&&(e=t===y?this.#E.lastElementChild:this.#E.firstElementChild),e&&this.#Q(e)}#tu(t){if(this.#A&&this.#A.dataset[T]!==t&&(this.#A.setAttribute(F,"false"),this.#A.querySelector(".iti__country-check")?.remove(),this.#A=null),t&&!this.#A){let e=this.#E.querySelector(`[data-iso2="${t}"]`);e&&(e.setAttribute(F,"true"),X("span",{class:"iti__country-check",[M]:"true"},e).appendChild(Z(["svg",{class:"iti__country-check-svg",width:14,height:14,viewBox:"0 0 16 16",fill:"currentColor",focusable:"false",[M]:"true"},[["path",{d:"M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0m-3.97-3.03a.75.75 0 0 0-1.08.022L7.477 9.417 5.384 7.323a.75.75 0 0 0-1.06 1.06L6.97 11.03a.75.75 0 0 0 1.079-.02l3.992-4.99a.75.75 0 0 0-.01-1.05z"}]]])),this.#A=e,this.#i.dropdownAlwaysOpen&&this.#Q(e))}}#K(t){this.#E.replaceChildren();let e=!0;for(let i of t){let t=this.#x.get(i.iso2);t&&(this.#E.appendChild(t),e&&(this.#Q(t,!1),e=!1))}e?(this.#Q(null),this.#L&&this.#L.classList.remove(r)):this.#L&&this.#L.classList.add(r),this.#E.scrollTop=0,this.#V()}closeCountrySelector(){let{countrySearch:t}=this.#i;this.#_.abort(),this.#_=null,this.#g.classList.add(r),this.#c.setAttribute(D,"false"),t&&(this.#f.removeAttribute(R),this.#f.value="",this.#q(),this.#N&&(this.#N.classList.remove(c),this.#N=null)),this.#m.classList.remove(a),this.#w?(this.#w.remove(),this.#w.style.top="",this.#w.style.bottom="",this.#w.style.paddingLeft="",this.#w.style.paddingRight=""):(this.#g.style.top="",this.#g.style.bottom="")}#Z(){if(this.#i.dropdownAlwaysOpen)return!0;let t=this.telInputEl.getBoundingClientRect(),e=t.top,i=window.innerHeight-t.bottom;return i>=this.#u||i>=e}#X(){let t=this.#i.countrySelectorMode===_.FULLSCREEN,e=this.#$();if(t){if(window.innerWidth>=500){let t=this.telInputEl.getBoundingClientRect();this.#w.style.paddingLeft=`${t.left}px`,this.#w.style.paddingRight=`${window.innerWidth-t.right}px`}}else this.#th();if(!t&&!ts){let t=this.telInputEl.getBoundingClientRect();this.#w.style.left=`${t.left}px`,this.#Z()?this.#w.style.top=`${t.bottom+3}px`:(this.#w.style.top="unset",this.#w.style.bottom=`${window.innerHeight-t.top+3}px`)}e.appendChild(this.#w)}#th(){if(this.#h)return;this.#h=!0;let t=`--iti-anchor-${this.#s}`,e=getComputedStyle(this.telInputEl).anchorName;this.telInputEl.style.anchorName=e&&"none"!==e?`${e}, ${t}`:t,this.#w.style.positionAnchor=t}#tt(){let t=window.visualViewport;if(!t||!this.#w)return;let e=window.innerHeight-t.height;this.#w.style.bottom=`${e}px`}isCountrySelectorOpen(){return!this.#g.classList.contains(r)}setLoading(t){this.#p.classList.toggle(h,t)}playStrictRejectAnimation(){if(!this.#i.strictRejectAnimation)return;let t=this.telInputEl.parentElement;t&&(t.classList.remove(p),t.offsetWidth,t.classList.add(p),t.addEventListener("animationend",()=>t.classList.remove(p),{once:!0}))}isLoading(){return this.#p.classList.contains(h)}setDisabled(t){this.telInputEl.disabled=t,this.#c&&(t?this.#c.setAttribute("disabled","true"):this.#c.removeAttribute("disabled"))}setReadonly(t){this.telInputEl.readOnly=t,this.#c&&(t?this.#c.setAttribute("disabled","true"):this.#c.removeAttribute("disabled"))}setSelectedCountry(t){let{countrySelectorMode:e,showFlags:i,separateDialCode:s,uiTranslations:l}=this.#i,n=t?.name,r=t?.dialCode,o=t?.iso2??"";if(e!==_.OFF&&this.#tu(o),this.#c){let t,e,s=o&&i?`${u} iti__${o}`:`${u} iti__globe`,a=null;o?(e=n,t=l.selectedCountryAriaLabel.replace("${countryName}",n).replace("${dialCode}",`+${r}`),i||(a=tt())):(e=l.noCountrySelected,t=l.noCountrySelected,a=tt()),this.#p.className=s,this.#c.setAttribute("title",e),this.#c.setAttribute(P,t),a?this.#p.replaceChildren(a):this.#p.replaceChildren()}if(s){let t=r?`+${r}`:"";this.#y.textContent=t,this.#U()}}destroy(){this.telInputEl.iti=void 0,delete this.telInputEl.dataset[O],this.#T?.disconnect(),this.telInputEl.style.paddingLeft=this.#n;let t=this.telInputEl.parentNode;t&&(t.before(this.telInputEl),t.remove()),this.#x.clear()}},tn=new Set(["800","808","870","881","882","883","888","979"]),tr=t=>{let e=t.replace(/\D/g,"").slice(0,3);return t.startsWith("+")&&tn.has(e)},to=(t,e,i,s)=>{if(!i||!e)return t;let l=`+${s.dialCode}`,n=" "===t[l.length]||"-"===t[l.length]?l.length+1:l.length;return t.substring(n)},ta=new Set(["800","822","833","844","855","866","877","880","881","882","883","884","885","886","887","888","889"]),tu=t=>{let e=t.replace(/\D/g,"");if(e.startsWith("1")&&e.length>=4){let t=e.substring(1,4);return ta.has(t)}return!1},th=0,td=t=>{if(!tm.utils)throw Error(`intlTelInput.utils is required for ${t}(). See: https://intl-tel-input.com/docs/utils`)},tc=()=>{let t,e;return{promise:new Promise((i,s)=>{t=i,e=s}),resolve:t,reject:e}},tp=class t{id;promise;#td;#i;#tc;#r;#tp;#ty;#tm;#tg;#o;#tC=null;#tf=null;#tb;#tE=!0;#tI;#tS;#tL=!1;#tv=null;#tw;#tA;constructor(t,i={}){this.id=th++,tl.validateInput(t);const l=(t=>{if(void 0===t)return{};if(!B(t))return q(`The second argument must be an options object; got ${JSON.stringify(t)}. Using defaults.`),{};let e={};for(let[i,l]of Object.entries(t)){if(!Object.hasOwn(W,i)){q(`Unknown option '${i}'. Ignoring.`);continue}switch(i){case"allowNumberExtensions":case"allowPhonewords":case"countrySearch":case"dropdownAlwaysOpen":case"matchDropdownWidth":case"formatAsYouType":case"showFlags":case"separateDialCode":case"strictMode":case"strictRejectAnimation":if("boolean"!=typeof l){G(i,"a boolean",l);break}e[i]=l;break;case"countrySelectorMode":if("string"!=typeof l||!L.includes(l)){G("countrySelectorMode",`one of ${L.map(t=>`"${t}"`).join(", ")}`,l);break}e[i]=l;break;
1case"numberDisplayFormat":if("string"!=typeof l||l===A.RFC3966||l!==A.E164&&l!==A.INTERNATIONAL&&l!==A.NATIONAL){G("numberDisplayFormat",'one of "E164", "INTERNATIONAL", "NATIONAL"',l);break}e[i]=l;break;case"placeholderNumberPolicy":if("string"!=typeof l||!K.has(l)){let t=Array.from(K).join(", ");G("placeholderNumberPolicy",`one of ${t}`,l);break}e[i]=l;break;case"containerClass":case"searchInputClass":case"countryNameLocale":if("string"!=typeof l){G(i,"a string",l);break}e[i]=l;break;case"countryOrder":if(null===l)e[i]=l;else{let t=Y(i,l);!1!==t&&(e[i]=t)}break;case"customPlaceholder":case"hiddenInputs":case"initialCountryLookup":case"loadUtils":if(null!==l&&!z(l)){G(i,"a function or null",l);break}e[i]=l;break;case"dropdownParent":if(null!==l&&!H(l)){G("dropdownParent","an HTMLElement or null",l);break}e[i]=l;break;case"excludeCountries":case"onlyCountries":if(null===l)e[i]=l;else{let t=Y(i,l);!1!==t&&(e[i]=t)}break;case"uiTranslations":if(l&&!B(l)){G("uiTranslations","an object",l);break}e[i]=l;break;case"countryNameOverrides":if(l&&!B(l)){G("countryNameOverrides","an object",l);break}e[i]=l;break;case"initialCountry":{if("string"!=typeof l){G("initialCountry","a string",l);break}let t=l.toLowerCase();if(t&&!s(t)){G("initialCountry","a valid iso2 country code",l);break}e[i]=l;break}case"placeholderNumberType":if("string"!=typeof l||!v.includes(l)){let t=v.join(", ");G("placeholderNumberType",`one of ${t}`,l);break}e[i]=l;break;case"allowedNumberTypes":if(null!==l){if(!Array.isArray(l)){G("allowedNumberTypes","an array of number types or null",l);break}let t=!0;for(let e of l)if("string"!=typeof e||!v.includes(e)){let i=v.join(", ");G("allowedNumberTypes",`an array of valid number types (${i})`,e),t=!1;break}t&&(e[i]=l)}else e[i]=null}}return e})(i);this.#i={...W,...l},(t=>{t.initialCountry&&(t.initialCountry=t.initialCountry.toLowerCase()),t.onlyCountries?.length&&(t.onlyCountries=t.onlyCountries.map(t=>t.toLowerCase())),t.excludeCountries?.length&&(t.excludeCountries=t.excludeCountries.map(t=>t.toLowerCase())),t.countryOrder&&(t.countryOrder=t.countryOrder.map(t=>t.toLowerCase()))})(this.#i),(t=>{t.countrySelectorMode===_.AUTO&&(t.countrySelectorMode=(()=>{if("u">typeof navigator&&"u">typeof window){let t=V("(max-height: 600px)"),e=V("(pointer: coarse)");
1if(U()||e&&t)return _.FULLSCREEN}return _.DROPDOWN})()),t.dropdownAlwaysOpen&&(t.countrySelectorMode=_.DROPDOWN),t.countrySelectorMode===_.FULLSCREEN?t.matchDropdownWidth=!1:U()&&(t.matchDropdownWidth=!0),t.onlyCountries?.length===1&&(t.initialCountry=t.onlyCountries[0]),t.separateDialCode&&t.numberDisplayFormat===A.NATIONAL&&(t.numberDisplayFormat=A.INTERNATIONAL),t.countrySelectorMode===_.OFF||t.showFlags||t.separateDialCode||t.numberDisplayFormat!==A.NATIONAL||(t.numberDisplayFormat=A.INTERNATIONAL),t.uiTranslations={...j,...t.uiTranslations}})(this.#i),this.#td=new tl(t,this.#i,this.id),this.#tc="u">typeof navigator&&/Android/i.test(navigator.userAgent),this.#tS=new ti(t.value),this.promise=this.#tN(this.#i),this.#r=(t=>{let{onlyCountries:i,excludeCountries:s}=t;return i?.length?e.filter(t=>i.includes(t.iso2)):s?.length?e.filter(t=>!s.includes(t.iso2)):[...e]})(this.#i);const{dialCodes:n,dialCodeMaxLength:r,dialCodeToIso2Map:o}=(t=>{let e=new Set,i=0,s={},l=(t,e)=>{if(!t||!e)return;e.length>i&&(i=e.length),Object.hasOwn(s,e)||(s[e]=[]);let l=s[e];l.includes(t)||l.push(t)};for(let i of[...t].sort((t,e)=>t.priority-e.priority)){e.has(i.dialCode)||e.add(i.dialCode);for(let t=1;t<i.dialCode.length;t++){let e=i.dialCode.substring(0,t);l(i.iso2,e)}if(l(i.iso2,i.dialCode),i.areaCodes){let t=s[i.dialCode][0];for(let e of i.areaCodes){for(let s=1;s<e.length;s++){let n=e.substring(0,s),r=i.dialCode+n;l(t,r),l(i.iso2,r)}l(i.iso2,i.dialCode+e)}}}return{dialCodes:e,dialCodeMaxLength:i,dialCodeToIso2Map:s}})(this.#r);this.#tm=n,this.#tp=r,this.#ty=o,this.#tg=new Map(this.#r.map(t=>[t.iso2,t])),this.#tx()}#t_(){let t=this.#td.telInputEl.value.trim();return this.#tS.normalise(t)}#tT(t){this.#td.telInputEl.value=this.#tS.denormalise(t)}#tN(t){let{initialCountry:e,initialCountryLookup:i,loadUtils:s}=t,l=!!s&&!tm.utils;return!e&&i&&(this.#tw=tc()),l&&(this.#tA=tc()),Promise.all([this.#tw?.promise,this.#tA?.promise]).then(()=>{})}#tx(){this.#tI=new AbortController,this.#tk(),this.#td.buildMarkup(this.#r,this.#o),this.#tO(),this.#tD(),this.#tP(),this.#i.dropdownAlwaysOpen&&this.openCountrySelector()}#tk(){((t,e)=>{let i,{countryNameLocale:s,countryNameOverrides:l,uiTranslations:n}=e,r=n?.countryNames;try{i="u">typeof Intl&&"function"==typeof Intl.DisplayNames?new Intl.DisplayNames(s,{type:"region"}):null}catch(t){console.error(t),i=null}for(let e of t)e.name=l[e.iso2]||r?.[e.iso2]||i?.of(e.iso2.toUpperCase())||""})(this.#r,this.#i),((t,e)=>{let{countryOrder:i}=e;t.sort((t,e)=>{if(i){let s=i.indexOf(t.iso2),l=i.indexOf(e.iso2),n=s>-1,r=l>-1;if(n||r)return n&&r?s-l:n?-1:1}return t.name.localeCompare(e.name)})})(this.#r,this.#i),this.#o=(t=>{let e=new Map;for(let i of t){let t=te(i.name),s=t.split(" ").filter(Boolean),l=s.map(t=>t[0]||"").join("");e.set(i.iso2,{normalisedName:t,words:s,initials:l,dialCodePlus:`+${i.dialCode}`})}return e})(this.#r)}#tO(t=!1){let e=this.#td.telInputEl.getAttribute("value"),i=this.#tS.normalise(e??""),l=this.#t_(),n=i&&i.startsWith("+")&&(!l||!l.startsWith("+"))?i:l,r=this.#tF(n),o=tu(n),{initialCountry:a,initialCountryLookup:u}=this.#i,h=!a&&!!u,d=h&&tm.autoCountry?tm.autoCountry:a,c=h&&!t&&!tm.autoCountry,p=s(d);r?o?p?this.#tR(d):c||this.#tR("us"):(p&&this.#tR(d),this.#t$(n)):p?this.#tR(d):c||this.#tR(""),n&&this.#tM(n)}#tD(){this.#tj(),this.#i.countrySelectorMode!==_.OFF&&this.#td.bindAllInitialCountrySelectorListeners(this.#tI.signal,()=>this.openCountrySelector(),()=>this.#tV()),this.#td.bindHiddenInputSubmitListener(this.#tI.signal,()=>this.getNumber(),()=>this.#tC?.iso2||"")}#tP(){if(this.#tA){let{loadUtils:t}=this.#i,e=()=>{tm.attachUtils(t).catch(()=>{})};tm.documentReady()?e():window.addEventListener("load",e,{signal:this.#tI.signal})}this.#tw&&(this.#tC?this.#tw.resolve():this.#tU())}async #tU(){if(tm.autoCountry)return void this.#tW();if(this.#td.setLoading(!0),!tm.startedLoadingAutoCountry&&(tm.startedLoadingAutoCountry=!0,"function"==typeof this.#i.initialCountryLookup)){let e;try{let i=await Promise.race([this.#i.initialCountryLookup(),new Promise((t,i)=>{e=setTimeout(()=>i(Error("intl-tel-input: initialCountryLookup timed out after 10s")),1e4)})]),l="string"==typeof i?i.toLowerCase():"";if(!s(l)){tm.startedLoadingAutoCountry=!1,t.forEachInstance("handleAutoCountryFailure");return}tm.autoCountry=l,setTimeout(()=>t.forEachInstance("handleAutoCountryLoaded"))}catch{tm.startedLoadingAutoCountry=!1,t.forEachInstance("handleAutoCountryFailure")}finally{void 0!==e&&clearTimeout(e)}}}#tB(){this.openCountrySelector(),this.#td.prefillSearchWithPlus()}#tz(t){let e=this.#td.telInputEl.selectionStart||0,i=t.substring(0,e-1),s=t.substring(e);return this.#tT(i+s),e-1}#tj(){this.#tH(),this.#tK(),this.#tq()}#tG(t){this.#tz(t),this.#tB()}#tY(t,e){let i=this.#tz(t);this.#td.telInputEl.setSelectionRange(i,i),this.#td.playStrictRejectAnimation(),this.#tJ(n,{source:"key",rejectedInput
1:e,reason:"invalid"})}#tQ(t,e){var i,s,l,n;let r,o,a=this.#td.telInputEl.selectionStart||0,u=t.substring(0,a).replace(E,"").length,h=(i=this.#tX(),s=tm.utils,l=this.#tC,n=this.#i.separateDialCode,r=s?s.formatNumberAsYouType(i,l?.iso2):i,o=l?.dialCode,n&&"+"!==t.charAt(0)&&r.includes(`+${o}`)?(r.split(`+${o}`)[1]||"").trim():r),d=((t,e,i,s)=>{if(0===i&&!s)return 0;let l=0;for(let i=0;i<e.length;i++){if(/[+0-9]/.test(e[i])&&l++,l===t&&!s)return i+1;if(s&&l===t+1)return i}return e.length})(u,h,a,e);this.#tT(h),this.#td.telInputEl.setSelectionRange(d,d)}#tZ(t){if(t.startsWith("+")&&this.#tC&&this.#tF(t)){let e=to(t,!0,!0,this.#tC);this.#tT(e)}}#tH(){this.#tL=f.test(this.#t_()),this.#td.telInputEl.addEventListener("input",this.#t0,{signal:this.#tI.signal})}#t0=t=>{let{strictMode:e,formatAsYouType:i,separateDialCode:s,countrySelectorMode:n,countrySearch:r}=this.#i,o=t?.detail;if(o?.isCountryChange)return;let a=this.#t_(),u=t?.inputType==="insertFromPaste",h=e&&u;if(this.#tc&&!u&&t?.data==="+"&&s&&n!==_.OFF&&r)return void this.#tG(a);if(this.#tc&&!u&&e&&(t?.data===" "||t?.data==="-"||t?.data==="."))return void this.#tY(a,t.data);if(h){if(this.#t1())return;a=this.#t_()}this.#t$(a)&&(this.#t2(),this.#tJ(l,{isCountryChange:!0}));let d=!h&&t?.data&&b.test(t.data),c=u&&a&&!e;d||c?this.#tL=!0:b.test(a)||(this.#tL=!1),i&&!this.#tL&&!o?.isSetNumber&&this.#tS.isAscii()&&this.#tQ(a,t?.inputType==="deleteContentForward"),s&&this.#tZ(a)};#tK(){let{strictMode:t,separateDialCode:e}=this.#i;(t||e)&&this.#td.telInputEl.addEventListener("keydown",this.#t6,{signal:this.#tI.signal})}#t6=t=>{let{strictMode:e,separateDialCode:i,countrySelectorMode:s,countrySearch:l}=this.#i;if(!t.key||1!==t.key.length||t.altKey||t.ctrlKey||t.metaKey)return;if(i&&s!==_.OFF&&l&&"+"===t.key){t.preventDefault(),this.#tB();return}if(!e)return;let r=this.#t_(),o=!r.startsWith("+")&&0===this.#td.telInputEl.selectionStart&&"+"===t.key,a=this.#tS.normalise(t.key),u=/^[0-9]$/.test(a),h=i?u:o||u,d=this.#td.telInputEl,c=d.selectionStart,p=d.selectionEnd,y=r.slice(0,c??void 0),m=r.slice(p??void 0),g=this.#t4(y+a+m),C=!1;tm.utils&&this.#tf&&(C=tm.utils.getCoreNumber(g,this.#tC?.iso2).length>this.#tf);let f=this.#t3(g);h&&(!C||null!==f||o)||(this.#td.playStrictRejectAnimation(),this.#tJ(n,{source:"key",rejectedInput:t.key,reason:h?"max-length":"invalid"}),t.preventDefault())};#tq(){this.#i.strictMode&&this.#td.telInputEl.addEventListener("paste",this.#t8,{signal:this.#tI.signal})}#t8=t=>{let e=this.#td.telInputEl,i=this.#t_();this.#tv={pastedRaw:t.clipboardData?.getData("text")??"",value:i,selectionStart:e.selectionStart??i.length,selectionEnd:e.selectionEnd??i.length}};#t1(){let t=this.#td.telInputEl,e=this.#tv;if(this.#tv=null,!e)return!1;let i=e.pastedRaw,s=e.value,l=e.selectionStart,r=e.selectionEnd,o=s.slice(0,l),a=s.slice(r),u=this.#tC?.iso2,h=this.#tS.normalise(i),d=0===l&&r>0,c=!s.startsWith("+")||d,p=h.replace(E,""),y=p.startsWith("+"),m=p.replace(/\+/g,""),g=y&&c?`+${m}
1`:m,C=o+g+a,f=g!==h?"invalid":null;if(C.length>30)return this.#td.playStrictRejectAnimation(),this.#tJ(n,{source:"paste",rejectedInput:i,reason:"max-length"}),this.#t5(e),!0;if(C.length>5&&tm.utils){let t=tm.utils.getCoreNumber(C,u);for(;0===t.length&&C.length>0;)C=C.slice(0,-1),t=tm.utils.getCoreNumber(C,u);if(!t)return this.#td.playStrictRejectAnimation(),this.#tJ(n,{source:"paste",rejectedInput:i,reason:"max-length"}),this.#t5(e),!0;if(this.#tf&&t.length>this.#tf)if(r!==s.length)return this.#td.playStrictRejectAnimation(),this.#tJ(n,{source:"paste",rejectedInput:i,reason:"max-length"}),this.#t5(e),!0;else{let e=t.length-this.#tf;C=C.slice(0,C.length-e),f="max-length"}}this.#tT(C);let b=l+g.length;return t.setSelectionRange(b,b),f&&(h.length>0&&0===g.length&&this.#td.playStrictRejectAnimation(),this.#tJ(n,{source:"paste",rejectedInput:i,reason:f})),!1}#t5(t){this.#tT(t.value),this.#td.telInputEl.setSelectionRange(t.selectionStart,t.selectionEnd)}#t9(t){let e=Number(this.#td.telInputEl.getAttribute("maxlength"));return e&&t.length>e?t.substring(0,e):t}#tJ(t,e={}){let i=new CustomEvent(t,{bubbles:!0,cancelable:!0,detail:e});this.#td.telInputEl.dispatchEvent(i)}openCountrySelector(){this.#td.isCountrySelectorOpen()||(this.#td.openCountrySelector(t=>this.#t7(t),()=>this.#tV()),this.#tJ("open:countryselector"))}#tM(t){let{numberDisplayFormat:e,separateDialCode:i}=this.#i,s=t;if(tm.utils&&this.#tC){let l,n=tr(t),r=!s.startsWith("+")&&!i;l=e===A.NATIONAL&&!n||r?A.NATIONAL:e!==A.E164||n?A.INTERNATIONAL:A.E164,s=tm.utils.formatNumber(s,this.#tC?.iso2,l)}s=this.#et(s),this.#tT(s)}#t$(t){let e=this.#t3(t);return null!==e&&this.#tR(e)}#ee(t){let e=this.#tC?.dialCode,i=this.#tC?.nationalPrefix;if(t.startsWith("+")||!e)return t;let s=i&&t.startsWith(i)&&!this.#i.separateDialCode?t.substring(1):t;return`+${e}${s}`}#t3(t){let e=t.indexOf("+"),i=e>0?t.substring(e):t,s=this.#tC?.iso2;i=this.#ee(i);let l=this.#tF(i,!0),n=i.replace(/\D/g,"");if(l){let t=l.replace(/\D/g,""),e=this.#ty[t];return 1===e.length?e[0]===s?null:e[0]:this.#ei(e,t,n)}if(i.startsWith("+")&&n.length){let t=this.#tC?.dialCode||"";return t&&t.startsWith(n)?null:""}return i&&"+"!==i||s||!this.#tb?null:this.#tb}#ei(t,e,i){let s=this.#tC?.iso2,l=this.#tC?.dialCode;if(!s&&this.#tb&&t.includes(this.#tb))return this.#tb;if("1"===l&&tu(i))return null;let n=this.#tC?.areaCodes,r=this.#tC?.priority;if(n){for(let t of n.map(t=>`${l}${t}`))if(i.startsWith(t))return null}let o=n&&0!==r&&i.length>e.length,a=s&&t.includes(s)&&!o,u=s===t[0];return a||u?null:t[0]}#tR(t){let e=this.#tC?.iso2||"";return this.#tC=t?this.#tg.get(t):null,this.#tC&&(this.#tb=this.#tC.iso2),this.#td.setSelectedCountry(this.#tC),this.#es(),this.#el(),e!==t}#el(){let{strictMode:t,placeholderNumberType:e,allowedNumberTypes:i}=this.#i;if(!t||!tm.utils)return;let s=this.#tC?.iso2;if(!s){this.#tf=null;return}let l=tm.utils.getExampleNumber(s,e,A.E164),n=l;for(;tm.utils.isValidNumber(l,s,i);)n=l,l+="0";let r=tm.utils.getCoreNumber(n,s);this.#tf=r.length,"by"===s&&(this.#tf=r.length+1)}#es(){let{placeholderNumberPolicy:t,placeholderNumberType:e,numberDisplayFormat:i,customPlaceholder:s}=this.#i,l=t===S.AGGRESSIVE||!this.#td.hadInitialPlaceholder&&t===S.POLITE;if(!tm.utils||!l)return;let n=this.#tC?tm.utils.getExampleNumber(this.#tC.iso2,e,i):"";n=this.#et(n),"function"==typeof s&&(n=s(n,this.#tC)),this.#td.telInputEl.setAttribute("placeholder",n)}#t7(t){if(!t)return;let e=t.dataset[T],i=this.#tR(e);this.#tV();let s=t.dataset[k];this.#en(s);let n=this.#t_();this.#tM(n),this.#td.telInputEl.focus(),i&&(this.#t2(),this.#tJ(l,{isCountryChange:!0}))}closeCountrySelector(){this.#tV()}#tV(t){this.#td.isCountrySelectorOpen()&&(!this.#i.dropdownAlwaysOpen||t)&&(this.#td.closeCountrySelector(),this.#tJ("close:countryselector"))}#en(t){let e,i=this.#t_();if(!i.startsWith("+"))return;let s=`+${t}`,l=this.#tF(i);e=l?i.replace(l,s):s,this.#tT(e)}#tF(t,e){if(!t.startsWith("+"))return"";let i="",s="",l=!1;for(let n=0;n<t.length;n++){let r=t.charAt(n);if(/[0-9]/.test(r)){if(s+=r,!this.#ty[s])break;if(this.#tm.has(s)){if(i=t.substring(0,n+1),l=!0,!e)break}else e&&l&&(i=t.substring(0,n+1));if(s.length===this.#tp)break}}return i}#t4(t){let e=this.#tC?.dialCode,i=t.replace(/\D/g,"");return(this.#i.separateDialCode&&!t.startsWith("+")&&e&&i?`+${e}`:"")+t}#tX(){let t=this.#t_();return this.#t4(t)}#et(t){let e=!!this.#tF(t),i=to(t,e,this.#i.separateDialCode,this.#tC);return this.#t9(i)}#t2(){this.#tJ("countrychange",this.#tC??null)}#tW(){if(!this.#tw||!tm.autoCountry)return;
1if(!this.#tE)return void this.#tw.resolve();let t=document.activeElement===this.#td.telInputEl,e=!!this.#t_();this.#td.isLoading()&&!(t&&e)?this.setSelectedCountry(tm.autoCountry):this.#tb=tm.autoCountry,this.#td.setLoading(!1),this.#tw.resolve()}#er(){this.#tE&&(this.#tO(!0),this.#td.setLoading(!1)),this.#tw?.reject()}#eo(){if(!this.#tE||!tm.utils)return void this.#tA?.resolve();let t=this.#t_(),e=document.activeElement===this.#td.telInputEl;t&&!e&&this.#tM(t),this.#tC&&(this.#es(),this.#el()),this.#tA?.resolve()}#ea(t){this.#tE,this.#tA?.reject(t)}destroy(){this.#tE&&(this.#tE=!1,this.#i.countrySelectorMode!==_.OFF&&this.#tV(!0),this.#tI.abort(),this.#td.destroy(),tm.instances.delete(String(this.id)))}isActive(){return this.#tE}getExtension(){return this.#tE?(td("getExtension"),tm.utils.getExtension(this.#tX(),this.#tC?.iso2)):""}getNumber(t){if(!this.#tE)return"";td("getNumber");let e=this.#tC?.iso2,i=this.#tX(),s=tm.utils.formatNumber(i,e,t);return this.#tS.denormalise(s)}getNumberType(){return this.#tE?(td("getNumberType"),tm.utils.getNumberType(this.#tX(),this.#tC?.iso2)):null}getSelectedCountry(){return this.#tC??null}getValidationError(){if(!this.#tE)return null;td("getValidationError");let t=this.#tC?.iso2;return tm.utils.getValidationError(this.#tX(),t)}isValidNumber(){if(!this.#tE)return null;td("isValidNumber");let t=this.#tC?.dialCode,e=this.#tC?.iso2,i=this.#tX(),s=tm.utils.getCoreNumber(i,e);if(s){if("44"===t&&"7"===s[0]&&10!==s.length)return!1;if(!f.test(i)&&t){let e=(i.startsWith("+")?i.slice(1+t.length):i).replace(/\D/g,"").length;if(s.length>e)return!1}}return this.#eu("possible")}isValidNumberPrecise(){return this.#tE?(td("isValidNumberPrecise"),this.#eu("precise")):null}#eu(t){let{allowNumberExtensions:e,allowPhonewords:i,allowedNumberTypes:s}=this.#i,l=this.#tC?.iso2,n=this.#tX();return(!!this.#tC||!!tr(n))&&!!("precise"===t?tm.utils.isValidNumberPrecise:tm.utils.isValidNumber)(n,l,s)&&(!f.test(n)||(tm.utils.getExtension(n,l)?e:i))}setSelectedCountry(t){if(!this.#tE)return;let e=t?.toLowerCase();if(!s(e))throw Error(`Invalid iso2 code: '${e}'`);let i=this.#tC?.iso2;if(!(t&&e!==i||!t&&i))return;this.#tR(e),this.#en(this.#tC?.dialCode||"");let n=this.#t_();this.#tM(n),this.#t2(),this.#tJ(l,{isCountryChange:!0})}setNumber(t){if(!this.#tE)return;let e=this.#tS.normalise(t),i=this.#t$(e);this.#tM(e),i&&this.#t2(),this.#tJ(l,{isSetNumber:!0})}setPlaceholderNumberType(t){this.#tE&&(this.#i.placeholderNumberType=t,this.#es())}setDisabled(t){this.#tE&&this.#td.setDisabled(t)}setReadonly(t){this.#tE&&this.#td.setReadonly(t)}static forEachInstance(e,...i){let s=[...tm.instances.values()],l=i[0];s.forEach(i=>{if(i instanceof t)switch(e){case"handleUtilsLoaded":i.#eo();break;case"handleUtilsFailure":i.#ea(l);break;case"handleAutoCountryLoaded":i.#tW();break;case"handleAutoCountryFailure":i.#er()}})}},ty=async t=>{if(tm.utils||tm.startedLoadingUtils)return null;if("function"!=typeof t)throw TypeError(`The argument passed to attachUtils must be a function that returns a promise for the utils module, not ${typeof t}`);tm.startedLoadingUtils=!0;try{let e=await t(),i=e?.default;if(!i||"object"!=typeof i)throw TypeError("The loader function passed to attachUtils did not resolve to a module object with utils as its default export.");return tm.utils=i,tp.forEachInstance("handleUtilsLoaded"),!0}catch(t){throw tp.forEachInstance("handleUtilsFailure",t),t}},tm=Object.assign((t,e)=>{let i=new tp(t,e);return tm.instances.set(String(i.id),i),t.iti=i,i},{defaults:W,documentReady:()=>"complete"===document.readyState,getAllCountries:()=>e,getInstance:t=>{let e=t.dataset[O];return e?tm.instances.get(e)??null:null},instances:new Map,attachUtils:ty,startedLoadingUtils:!1,startedLoadingAutoCountry:!1,version:"29.1.2",NUMBER_FORMAT:A,NUMBER_TYPE:N,VALIDATION_ERROR:x,PLACEHOLDER_POLICY:S,COUNTRY_SELECTOR_MODE:_});t.s(["default",0,tm],75433),t.s(["de",0,{selectedCountryAriaLabel:"Land der Telefonnummer ändern, ausgewählt ${countryName} (${dialCode})",noCountrySelected:"Land der Telefonnummer auswählen",countryListAriaLabel:"Liste der Länder",searchPlaceholder:"Suchen",clearSearchAriaLabel:"Suche löschen",searchEmptyState:"Keine Suchergebnisse",searchSummaryAria:t=>
10===t?"Keine Suchergebnisse":1===t?"1 Suchergebnis":`${t} Suchergebnisse`}],86694),t.s(["en",0,{selectedCountryAriaLabel:"Change country for phone number, currently selected ${countryName} (${dialCode})",noCountrySelected:"Select country for phone number",countryListAriaLabel:"List of countries",searchPlaceholder:"Search",clearSearchAriaLabel:"Clear search",searchEmptyState:"No results found",searchSummaryAria:t=>0===t?"No results found":1===t?"1 result found":`${t} results found`}],56764);let tg=` 2 :where(.iti__a11y-text) { 3 position: absolute; 4 width: 1px; 5 height: 1px; 6 overflow: hidden; 7 clip: rect(1px, 1px, 1px, 1px); 8 clip-path: inset(50%); 9 white-space: nowrap; 10 } 11 12 :where(.iti__hide) { 13 display: none !important; 14 } 15 16 :where(.iti__v-hide) { 17 visibility: hidden !important; 18 } 19 20 :where([data-maxmove-phone-input]) :where(.iti), 21 :where([data-maxmove-phone-input]) :where(.iti) * { 22 box-sizing: border-box; 23 } 24 25 :where([data-maxmove-phone-input]) :where(.iti__country-container) { 26 position: absolute; 27 top: 0; 28 bottom: 0; 29 left: 0; 30 padding: 1px; 31 } 32 33 :where([data-maxmove-phone-input]) :where(.iti__selected-country) { 34 position: relative; 35 z-index: 1; 36 display: flex; 37 align-items: center; 38 height: 100%; 39 margin: 0; 40 padding: 0; 41 border: 0; 42 border-radius: 0; 43 background: none; 44 color: inherit; 45 font: inherit; 46 } 47 48 :where([data-maxmove-phone-input]) :where(.iti__selected-country-primary) { 49 display: flex; 50 align-items: center; 51 height: 100%; 52 padding: 0 7px 0 10px; 53 } 54 55 :where([data-maxmove-phone-input]) :where(.iti__country-selector) { 56 position: absolute; 57 z-index: 2; 58 left: 0; 59 width: 100%; 60 max-width: calc(100vw - 32px); 61 max-height: 240px; 62 overflow: hidden; 63 border: 1px solid var(--iti-border-color, #cccccc); 64 border-radius: 10px; 65 background: var(--iti-country-selector-bg, #ffffff); 66 box-shadow: 0 8px 24px rgb(25 35 56 / 8%); 67 color: var(--phone-text-color, #192338); 68 font-family: inherit; 69 } 70 71 :where([data-maxmove-phone-input]) :where(.iti__search-input-wrapper) { 72 position: relative; 73 display: flex; 74 align-items: center; 75 border-bottom: 1px solid var(--iti-border-color, #cccccc); 76 } 77 78 :where([data-maxmove-phone-input]) :where(.iti__search-input) { 79 width: 100%; 80 padding: 8px 40px; 81 border: 0; 82 border-radius: 10px 10px 0 0; 83 background: #ffffff; 84 color: inherit; 85 font: inherit; 86 } 87 88 :where([data-maxmove-phone-input]) :where(.iti__search-input:focus) { 89 outline: none; 90 } 91 92 :where([data-maxmove-phone-input]) :where(.iti__search-icon) { 93 position: absolute; 94 left: 10px; 95 display: flex; 96 pointer-events: none; 97 } 98 99 :where([data-maxmove-phone-input]) :where(.iti__search-icon-svg) { 100 display: block; 101 width: 17px; 102 height: 17px; 103 } 104 105 :where([data-maxmove-phone-input]) :where(.iti__search-clear) { 106 position: absolute; 107 right: 5px; 108 display: flex; 109 align-items: center; 110 justify-content: center; 111 padding: 5px; 112 border: 0; 113 background: transparent; 114 } 115 116 :where([data-maxmove-phone-input]) :where(.iti__search-clear-svg) { 117 display: block; 118 width: 15px; 119 height: 15px; 120 } 121 122 :where([data-maxmove-phone-input]) :where(.iti__country-list) { 123 max-height: 185px; 124 margin: 0; 125 padding: 0; 126 overflow-y: auto; 127 list-style: none; 128 cursor: pointer; 129 } 130 131 :where([data-maxmove-phone-input]) :where(.iti__country) { 132 display: flex; 133 align-items: center; 134 padding: 8px 10px; 135 outline: none; 136 } 137 138 :where([data-maxmove-phone-input]) :where(.iti__country-name) { 139 flex-grow: 1; 140 } 141 142 :where([data-maxmove-phone-input]) :where(.iti__country-check) { 143 display: flex; 144 align-items: center; 145 margin-left: 10px; 146 } 147 148 :where([data-maxmove-phone-input]) :where(.iti__country-check-svg) { 149 display: block; 150 width: 15px; 151 height: 15px; 152 } 153 154 :where([data-maxmove-phone-input]) :where(.iti__no-results) { 155 padding: 30px 0; 156 text-align: center; 157 } 158 159 :where(.iti--fullscreen-popup.iti--detached-country-selector) { 160 position: fixed; 161 z-index: 1060; 162 inset: 0; 163 display: flex; 164 flex-direction: column; 165 justify-content: flex-start; 166 padding: 30px; 167 background: rgb(0 0 0 / 50%); 168 } 169 170 :where(.iti--fullscreen-popup) :where(.iti__country-selector) { 171 position: relative; 172 display: flex; 173 flex-direction: column; 174 max-height: 100%; 175 overflow: hidden; 176 border-radius: 10px; 177 background: var(--iti-country-selector-bg, #ffffff); 178 } 179 180 :where(.iti--fullscreen-popup) :where(.iti__country-list) { 181 min-height: 0; 182 margin: 0; 183 padding: 0; 184 overflow-y: auto; 185 list-style: none; 186 } 187`;t.s(["INTL_TEL_INPUT_FALLBACK_STYLES",0,tg],49627),t.s(["DEFAULT_COUNTRY",0,"de","DEFAULT_PREFERRED_COUNTRIES",0,["de","at","ch","nl","be","lu","fr","cz","pl","dk"]],29265),t.s(["nameCountrySelectorDialog",0,(t,e)=>{let i=t.closest(".iti")?.querySelector('[role="dialog"]');!i||i.getAttribute("aria-label")||i.getAttribute("aria-labelledby")||i.setAttribute("aria-label",e)}],90695)},3586,t=>{t.v({error:"PhoneInput-module__bnv96q__error",flagFallback:"PhoneInput-module__bnv96q__flagFallback",input:"PhoneInput-module__bnv96q__input",label:"PhoneInput-module__bnv96q__label",wrapper:"PhoneInput-module__bnv96q__wrapper"})}]);
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.