var COOKIE_EXPIRE=12096e5,REQUEST_TIMEOUT=6e5,gcid_attempts_KxhFU4=0,yclid_attempts_KxhFU4=0,referral_code_KxhFU4="KxhFU4",operator_KxhFU4="11",user_data_KxhFU4={referral_log_id:null,experie_time:null,adv_tel_number:null,actualized:0,utm_source:null,full_url:null,google_client_id:null,region:null,referral_code:referral_code_KxhFU4,yandex_client_id:null,operator:operator_KxhFU4};function checkGAClientID_KxhFU4(){var e=getGAClientID_KxhFU4();return gcid_attempts_KxhFU4++,!e&&gcid_attempts_KxhFU4<60?(setTimeout(checkGAClientID_KxhFU4,200),!1):!!e&&void(user_data_KxhFU4.referral_log_id&&getAdvNum_KxhFU4())}function yidTimer_KxhFU4(){var e=getYclid_KxhFU4();if(yclid_attempts_KxhFU4++,!e&&yclid_attempts_KxhFU4<60)return setTimeout(yidTimer_KxhFU4,200),!1;e&&getAdvNum_KxhFU4()}function advNumReady_KxhFU4(e){"REFERRAL_LOG_ID"in e&&"ADVERTISEMENT_TEL_NUMBER"in e&&(user_data_KxhFU4.referral_log_id=e.REFERRAL_LOG_ID,user_data_KxhFU4.adv_tel_number=e.ADVERTISEMENT_TEL_NUMBER,user_data_KxhFU4.actualized=(new Date).getTime(),saveData_KxhFU4(user_data_KxhFU4)),!user_data_KxhFU4.google_client_id&&user_data_KxhFU4.referral_log_id&&checkGAClientID_KxhFU4(),user_data_KxhFU4.yandex_client_id||yidTimer_KxhFU4()}function getAdvNum_KxhFU4(){user_data_KxhFU4.google_client_id||(user_data_KxhFU4.google_client_id=getGAClientID_KxhFU4()),user_data_KxhFU4.yandex_client_id||(user_data_KxhFU4.yandex_client_id=getYclid_KxhFU4());var e="https://api.sunsim.ru/call-tracking/get-adv-num2";e+="?referral_log_id="+encodeURIComponent(user_data_KxhFU4.referral_log_id)+"&utm="+encodeURIComponent(user_data_KxhFU4.utm)+"&full_url="+encodeURIComponent(user_data_KxhFU4.full_url)+"&google_client_id="+encodeURIComponent(user_data_KxhFU4.google_client_id)+"&referral_code="+encodeURIComponent(user_data_KxhFU4.referral_code)+"&yandex_client_id="+encodeURIComponent(user_data_KxhFU4.yandex_client_id),user_data_KxhFU4.region&&(e+="®ion="+encodeURIComponent(user_data_KxhFU4.region)),operator_KxhFU4&&(e+="&operator="+encodeURIComponent(operator_KxhFU4));var t=document.createElement("script");t.setAttribute("src",e),t.onload=t.onerror=setAdvNum_KxhFU4,document.getElementsByTagName("head")[0].appendChild(t)}function setAdvNum_KxhFU4(){var e=document.getElementsByClassName("js-adv-ctcode-"+referral_code_KxhFU4);if(e.length||(e=document.getElementsByClassName("js-adv-num")),user_data_KxhFU4.adv_tel_number&&user_data_KxhFU4.adv_tel_number.length)for(var t=0;t=0;d--)/\d/.test(r[d])&&n=REQUEST_TIMEOUT?getAdvNum_KxhFU4():setAdvNum_KxhFU4()}));