function GCB_loadScript(url,success){var script=document.createElement('script');script.src=url;var head=document.getElementsByTagName('head')[0],done=false;head.appendChild(script);script.onload=script.onreadystatechange=function(){if(!done&&(!this.readyState||this.readyState=='loaded'||this.readyState=='complete')){done=true;success();script.onload=script.onreadystatechange=null;head.removeChild(script);}};}
function GCB_disableRightClick(){document.addEventListener('contextmenu',function(event){event.preventDefault();});}
function GCB_main(){console.log('%c------ Blocky: Fraud Country Blocker by Effective Apps is Initializing ------','color: cyan');console.log('%c------ Contact us at support@effectify.co for help and questions about the app ------','color: cyan');if(window.GCB_SCRIPT_INJECTED===undefined){window.isLs=GCB_isLSAvailable();window.GCB_SCRIPT_INJECTED=true;if('3'==='7'&&null===GCB_getLsWithExpiry('gcb_payg_i')){jQuery.get('https://app.blocky-app.com/ri/0444cb0cb4a411ee9dee7204a6c02a32.js');GCB_setLsWithExpiry('gcb_payg_i','true',604800000);}
window.GCB_BLOCKED_COUNTRIES='AF,AX,AL,DZ,AD,AO,AI,AQ,AG,AR,AM,AW,AZ,BH,BD,BB,BY,BJ,BZ,BM,BT,BO,BA,BW,BV,BN,BF,BI,KH,CM,CV,KY,CF,TD,CN,CL,CX,CC,KM,CG,CD,CK,CI,HR,CU,CY,CZ,DJ,DM,EG,SV,GQ,ER,EE,ET,FK,FO,FJ,GA,GM,GH,GI,GT,GG,GN,GW,GY,HT,HM,VA,HN,HK,IN,ID,IR,IQ,IM,JM,JP,JE,JO,KZ,KE,KI,KP,KR,KW,KG,LA,LV,LB,LS,LR,LY,LI,LT,LU,MO,MK,MG,MW,MY,MV,ML,MT,MH,MQ,MR,MU,YT,FM,MD,MC,MN,ME,MS,MA,MZ,MM,NA,NR,NP,NC,NI,NE,NG,NU,OM,PK,PW,PS,PA,PG,PY,PE,PH,PN,QA,RE,RO,RU,RW,SH,KN,LC,PM,VC,SM,ST,SA,SN,CS,RS,SC,SL,SG,SK,SI,SB,SO,ZA,GS,LK,SD,SR,SJ,SZ,SY,TW,TJ,TZ,TL,TG,TK,TO,TT,TN,TM,TC,TV,UG,UA,AE,UY,UZ,VU,VE,VN,WF,EH,YE,ZM';window.GCB_BLOCKED_IPS='157.100.87.123,157.100.*.*,216.238.82.66,162.243.62.19,201.132.82.46,216.238.69.214,190.63.115.196';window.GCB_WHITELISTED_IPS='';window.EFFECTIVE_APPS_GCB_BLOCKED_MESSAGE=`<head></head><body style="background-color: #000000;"><p style="text-align: center;">&nbsp;</p>
<p style="text-align: center;"><span style="background-color: #000000; color: #ffffff; font-size: 36px;"><strong><span style="background-color: #000000;">🚫Restricted Access🚫</span></strong></span></p>
<p style="text-align: center;"><span style="background-color: #000000; color: #ffffff;"><strong><span style="font-size: 18px; background-color: #000000;">❌You cannot visit this website❌</span></strong></span></p>
<p style="text-align: center;"><span style="background-color: #000000; color: #ffffff;"><strong><span style="font-size: 18px; background-color: #000000;">VPN and Proxy Servers are blocked to prevent bots</span></strong></span></p>
<p style="text-align: center;"><span style="background-color: #000000; color: #ffffff;"><strong><span style="font-size: 18px; background-color: #000000;">Email Sales@Cropsalt.com for help</span></strong></span></p>
<p style="text-align: center;">&nbsp;</p></body>`;window.EFFECTIVE_APPS_GCB_IB_BLOCKED=false;window.EFFECTIVE_APPS_GCB_CB_BLOCKED=false;if('True'==='True'){GCB_disableRightClick();}
if(location.href.indexOf('gcb_preview=true')>-1){blockPage(false);return;}
if(location.href.indexOf('gcb_override=true')>-1&&'True'==='True'){GCB_setLsWithExpiry('gcb_override','true',300000);}
if((typeof Shopify!=='undefined'&&Shopify.hasOwnProperty('designMode')&&Shopify.designMode)||document.getElementById('admin-bar-iframe')!==null||document.getElementById('PBarNextFrame')!==null||document.getElementById('PBarNextFrameWrapper')!==null){return;}
if('True'==='True'&&GCB_getLsWithExpiry('gcb_override')==='true'){return;}
if('False'==='True'){GCB_superBlocker();}
if('False'==='True'||'False'==='True'){try{GCB_getGeolocationCountry(runCBCRLogic);}
catch(err){}}
else{GCB_getGeolocationCountry(function(geolocationCountry,ipAddress){GCB_lIp(ipAddress,geolocationCountry,false);})}
if('False'==='True'){try{GCB_getIPAddress(runIBLogic);}
catch(err){}}
else{GCB_getIPAddress(function(ipAddress,geolocationCountry){GCB_lIp(ipAddress,geolocationCountry,false);})}}}
function GCB_rCr(callback){jQuery.get('https://app.blocky-app.com/rcr/0444cb0cb4a411ee9dee7204a6c02a32');callback();}
function GCB_rCb(){jQuery.get('https://app.blocky-app.com/rcb/0444cb0cb4a411ee9dee7204a6c02a32');}
function GCB_rIb(){jQuery.get('https://app.blocky-app.com/rib/0444cb0cb4a411ee9dee7204a6c02a32');}
function blockPage(saveLS=true){window.GCB_BLOCKED_PAGE_INTERVAL=setInterval(function(){document.querySelector("html").innerHTML=window.EFFECTIVE_APPS_GCB_BLOCKED_MESSAGE;},1000);if(saveLS){GCB_setLsWithExpiry('effective_apps_gcb_blocked','true',604800000);}}
function runCBCRLogic(geolocationCountry,ipAddress){if('False'==='True'){let redirectionRules=JSON.parse('[]');for(var i=0;i<redirectionRules.length;i++){var rule=redirectionRules[i];if(rule['country']===geolocationCountry){if(location.href.indexOf(rule['url'])===-1){GCB_rCr(function(){location.href=rule['url'];});}
break;}}}
if('False'==='True'){let blockedCountries=window.GCB_BLOCKED_COUNTRIES.split(',');let whitelistedIpAddresses=window.GCB_WHITELISTED_IPS.split(',');if(whitelistedIpAddresses.indexOf(ipAddress)>-1){GCB_lIp(ipAddress,geolocationCountry,false);return;}
else if(window.GCB_WHITELISTED_IPS.indexOf("*")>-1){for(let whitelistedIpPattern of whitelistedIpAddresses){var wlIpPattern=whitelistedIpPattern.replaceAll('*','(\\d{1,3})').replaceAll('.','\\.');var wlIpRegex=new RegExp(wlIpPattern,'gm');if(ipAddress.match(wlIpRegex)!==null){GCB_lIp(ipAddress,geolocationCountry,false);return;}}}
if(blockedCountries.indexOf(geolocationCountry)>-1&&window.EFFECTIVE_APPS_GCB_IB_BLOCKED===false){window.EFFECTIVE_APPS_GCB_CB_BLOCKED=true;GCB_rCb();blockPage();GCB_lIp(ipAddress,geolocationCountry,true);return;}
else{GCB_lIp(ipAddress,geolocationCountry,false);return;}}}
function GCB_lIp(ip_address,country_code,was_blocked){if('True'==='True'&&GCB_getLsWithExpiry('already_reported')===null){browser=GCB_getBrowserType();jQuery.post('https://app.blocky-app.com/li/0444cb0cb4a411ee9dee7204a6c02a32',{"browser":browser,"ip_address":ip_address,"country_code":country_code,"was_blocked":was_blocked});GCB_setLsWithExpiry('already_reported','true',3600000);}}
function runIBLogic(ipAddress,geolocationCountry){let blockedIpAddresses=window.GCB_BLOCKED_IPS.split(',');let whitelistedIpAddresses=window.GCB_WHITELISTED_IPS.split(',');if(whitelistedIpAddresses.indexOf(ipAddress)>-1){GCB_lIp(ipAddress,geolocationCountry,false);return;}
else if(window.GCB_WHITELISTED_IPS.indexOf("*")>-1){for(let whitelistedIpPattern of whitelistedIpAddresses){var wlIpPattern=whitelistedIpPattern.replaceAll('*','(\\d{1,3})').replaceAll('.','\\.');var wlIpRegex=new RegExp(wlIpPattern,'gm');if(ipAddress.match(wlIpRegex)!==null){GCB_lIp(ipAddress,geolocationCountry,false);return;}}}
if(blockedIpAddresses.indexOf(ipAddress)>-1&&window.EFFECTIVE_APPS_GCB_CB_BLOCKED===false){window.EFFECTIVE_APPS_GCB_IB_BLOCKED=true;GCB_rIb();GCB_lIp(ipAddress,geolocationCountry,true);blockPage();return;}
else if(window.GCB_BLOCKED_IPS.indexOf("*")>-1&&window.EFFECTIVE_APPS_GCB_CB_BLOCKED===false){for(let blockedIpPattern of blockedIpAddresses){var bIpPattern=blockedIpPattern.replaceAll('*','(\\d{1,3})').replaceAll('.','\\.');var blockedIpRegex=new RegExp(bIpPattern,'gm');if(ipAddress.match(blockedIpRegex)!==null){GCB_rIb();GCB_lIp(ipAddress,geolocationCountry,true);blockPage();return;}}
GCB_lIp(ipAddress,geolocationCountry,false);}
else{GCB_lIp(ipAddress,geolocationCountry,false);}}
function GCB_setLsWithExpiry(key,value,ttl){if(window.isLs===false){return false;}
const now=new Date()
const item={value:value,expiry:now.getTime()+ttl,}
localStorage.setItem(key,JSON.stringify(item))}
function GCB_getLsWithExpiry(key){if(window.isLs===false){return null;}
const itemStr=localStorage.getItem(key)
if(!itemStr){return null}
const item=JSON.parse(itemStr)
const now=new Date()
if(now.getTime()>item.expiry){localStorage.removeItem(key)
return null}
return item.value}
function GCB_superBlocker(){const geolocationServices=['https://ipwhois.app/json/','https://ip-api.io/json','https://ipapi.co/json','https://get.geojs.io/v1/ip/geo.json'];let intervalCounter=0;window.GCB_COUNTRY_SUPER_BLOCKER_INTERVAL=setInterval(function(){for(let service of geolocationServices){try{if(['https://ip-api.io/json','https://ipapi.co/json'].indexOf(service)>-1&&intervalCounter>2){continue;}
jQuery.getJSON(service).then(function(response){const countryCode=response.country_code;const ipAddress=response.ip;if(ipAddress===undefined||countryCode===undefined){return;}
if('False'==='True'){runCBCRLogic(countryCode,ipAddress);}
if('False'==='True'){runIBLogic(ipAddress,countryCode);}
if('False'==='True'){try{jQuery.getJSON('https://app.blocky-app.com/cini/').then(function(response){if(response.result===true){document.querySelector("html").innerHTML=window.EFFECTIVE_APPS_GCB_BLOCKED_MESSAGE;}});jQuery.getJSON('https://app.blocky-app.com/ci/'+ipAddress).then(function(response){if(response.result===true){document.querySelector("html").innerHTML=window.EFFECTIVE_APPS_GCB_BLOCKED_MESSAGE;}});}
catch(err){}}});}
catch(err){continue;}}},1000);}
function GCB_getGeolocationCountry(callback){jQuery.getJSON('https://ipv4.geojs.io/v1/ip/geo.json',function(result){callback(result.country_code,result.ip);});}
function GCB_getIPAddress(callback){jQuery.getJSON('https://ipv4.geojs.io/v1/ip/geo.json',function(result){callback(result.ip,result.country_code);});}
function GCB_getBrowserType(){try{const userAgent=navigator.userAgent.toLowerCase();if(userAgent.includes("chrome")&&!userAgent.includes("edg")&&!userAgent.includes("opr")&&!userAgent.includes("brave")){if(navigator.brave){return"b";}
return"c";}else if(userAgent.includes("brave")){return"b";}else if(userAgent.includes("firefox")){return"ff";}else if(userAgent.includes("safari")&&!userAgent.includes("chrome")&&!userAgent.includes("chromium")){return"s";}else if(userAgent.includes("edg")){return"e";}else if(userAgent.includes("opr")||userAgent.includes("opera")){return"o";}else if(userAgent.includes("trident")||userAgent.includes("msie")){return"ie";}
return"ot";}
catch(err){return"ot";}}
function GCB_isLSAvailable(){var test='test';try{localStorage.setItem(test,test);localStorage.removeItem(test);return true;}catch(e){return false;}}
if(typeof jQuery==='undefined'){GCB_loadScript('https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.1/jquery.min.js',GCB_main);}
else{GCB_main();}