var COOKIE_EXPIRE=12096e5,REQUEST_TIMEOUT=6e5,gcid_attempts_gB3ylx=0,yclid_attempts_gB3ylx=0,referral_code_gB3ylx="gB3ylx",operator_gB3ylx="11",user_data_gB3ylx={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_gB3ylx,yandex_client_id:null,operator:operator_gB3ylx};function checkGAClientID_gB3ylx(){var e=getGAClientID_gB3ylx();return gcid_attempts_gB3ylx++,!e&&gcid_attempts_gB3ylx<60?(setTimeout(checkGAClientID_gB3ylx,200),!1):!!e&&void(user_data_gB3ylx.referral_log_id&&getAdvNum_gB3ylx())}function yidTimer_gB3ylx(){var e=getYclid_gB3ylx();if(yclid_attempts_gB3ylx++,!e&&yclid_attempts_gB3ylx<60)return setTimeout(yidTimer_gB3ylx,200),!1;e&&getAdvNum_gB3ylx()}function advNumReady_gB3ylx(e){"REFERRAL_LOG_ID"in e&&"ADVERTISEMENT_TEL_NUMBER"in e&&(user_data_gB3ylx.referral_log_id=e.REFERRAL_LOG_ID,user_data_gB3ylx.adv_tel_number=e.ADVERTISEMENT_TEL_NUMBER,user_data_gB3ylx.actualized=(new Date).getTime(),saveData_gB3ylx(user_data_gB3ylx)),!user_data_gB3ylx.google_client_id&&user_data_gB3ylx.referral_log_id&&checkGAClientID_gB3ylx(),user_data_gB3ylx.yandex_client_id||yidTimer_gB3ylx()}function getAdvNum_gB3ylx(){user_data_gB3ylx.google_client_id||(user_data_gB3ylx.google_client_id=getGAClientID_gB3ylx()),user_data_gB3ylx.yandex_client_id||(user_data_gB3ylx.yandex_client_id=getYclid_gB3ylx());var e="https://api.sunsim.ru/call-tracking/get-adv-num2";e+="?referral_log_id="+encodeURIComponent(user_data_gB3ylx.referral_log_id)+"&utm="+encodeURIComponent(user_data_gB3ylx.utm)+"&full_url="+encodeURIComponent(user_data_gB3ylx.full_url)+"&google_client_id="+encodeURIComponent(user_data_gB3ylx.google_client_id)+"&referral_code="+encodeURIComponent(user_data_gB3ylx.referral_code)+"&yandex_client_id="+encodeURIComponent(user_data_gB3ylx.yandex_client_id),user_data_gB3ylx.region&&(e+="®ion="+encodeURIComponent(user_data_gB3ylx.region)),operator_gB3ylx&&(e+="&operator="+encodeURIComponent(operator_gB3ylx));var t=document.createElement("script");t.setAttribute("src",e),t.onload=t.onerror=setAdvNum_gB3ylx,document.getElementsByTagName("head")[0].appendChild(t)}function setAdvNum_gB3ylx(){var e=document.getElementsByClassName("js-adv-ctcode-"+referral_code_gB3ylx);if(e.length||(e=document.getElementsByClassName("js-adv-num")),user_data_gB3ylx.adv_tel_number&&user_data_gB3ylx.adv_tel_number.length)for(var t=0;t=0;d--)/\d/.test(r[d])&&n=REQUEST_TIMEOUT?getAdvNum_gB3ylx():setAdvNum_gB3ylx()}));