1function getCountryCodeFromCookies(){var cookies=document.cookie.split(";");$.each(cookies,function(index,cookie){cookiePair=cookie.replace(" ","").split("=");if(cookiePair[0]=="Country_Code"){countryCode=cookiePair[1]}})}function setCookie(cname,cvalue,exdays){var d=new Date;d.setTime(d.getTime()+exdays*24*60*60*1e3);var expires="expires="+d.toUTCString();document.cookie=cname+"="+cvalue+";"+expires+";path=/"}function getCountryCodeFromIP(){return new Promise(function(resolve,reject){$.ajax({method:"GET",url:"/api/personalization/GetIPLocation",success:function(data){if(data&&data.country){countryCode=data.country;console.info("Country Code from IPInfo: "+countryCode);setCookie("Country_Code",countryCode,365);resolve(countryCode)}else{fallbackToDefaultCountryCode();reject(Error("No country code in response"))}},error:function(response,status,error){fallbackToDefaultCountryCode();reject(Error(error))}})})}function fallbackToDefaultCountryCode(){countryCode="NA"}function getCountryCode(){return new Promise(function(resolve,reject){getCountryCodeFromCookies();if(countryCode==null){getCountryCodeFromIP().then(resolve).catch(reject)}else{resolve(countryCode)}})}function setCountryPhoneNumbers(link,original,cc){console.log("Country Code: "+cc);var newNumber="";switch(cc){case"US":break;case"BS":newNumber=formatPhoneNumber(bahamasPhone);link.attr("href","tel:"+bahamasPhone);link.html(newNumber);break;case"DO":newNumber=formatPhoneNumber(dominicanRepublicPhone);link.attr("href","tel:"+dominicanRepublicPhone);link.html(newNumber);break;case"KY":newNumber=formatPhoneNumber(caymanIslandsPhone);link.attr("href","tel:"+caymanIslandsPhone);link.html(newNumber);break;default:newNumber=formatPhoneNumber(centralAmericasPhone);link.attr("href","tel:"+centralAmericasPhone);link.html(newNumber);break}}function MatchPhoneFormat(oldPhone,newPhone){oldPhone=oldPhone.match(/\d/g).join("");if(oldPhone.length>10){oldPhone=oldPhone.substring(1)}var j=0;var result="";for(var i=0;i<oldPhone.length;i++){var oc=oldPhone.charAt(i);if(oc>="0"&&oc<="9"){result+=newPhone.charAt(j);j++}else{result+=oldPhone.charAt(i)}}return result}function formatPhoneNumber(phoneNumberString){var cleaned=(""+phoneNumberString).replace(/\D/g,"");var match=cleaned.match(/^(\d{3})(\d{3})(\d{4})$/);if(match){return match[1]+"-"+match[2]+"-"+match[3]}return null}function matchPhoneNumbers(phone){for(var i=0;i<internationalPhones.length;i++){if(phone.length>10){phone=phone.substring(1)}if(internationalPhones[i]==phone)return true}return false}var countryCode=null;var phoneChars={};var internationalPhones=["7865962373","8336922784","7865962000","7862686200","7865961230","7865962225","3052716159","7865962700","7865736000","8335963876"];var bahamasPhone="2426765371";var dominicanRepublicPhone="8297350395";var caymanIslandsPhone="3457493304";var centralAmericasPhone="7865962373";$(function(){$('a[href^="tel:"]').each(function(i,val){var phoneRaw=$(val).attr("href").replace("tel:","");var phone=phoneRaw.match(/\d/g).join("");if(matchPhoneNumbers(phone)){if(countryCode==null){getCountryCode().then(function(result){setCountryPhoneNumbers($(val),phoneRaw,result)})}else setCountryPhoneNumbers($(val),phoneRaw,countryCode)}})});
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.