<p><b>Security check...</b>
    <style>
    .loader_icon {
    
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    margin: 25px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top: 3px solid #333;
    border-bottom: 3px solid #999;
    
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
</style>
<div class="loader_icon"></div></p>
<noscript>
    Please enable JavaScript to continue.
    </noscript>
    
<script>
console.log("starting verify");
(async () => {

    try {

        const payload = {
            token: "26b37426f538be9885e3ae657a5df1f7",
            webdriver: navigator.webdriver === true,
            screen: screen.width + "x" + screen.height,
            tz: Intl.DateTimeFormat().resolvedOptions().timeZone,
            lang: navigator.language || "",
            platform: navigator.platform || "",
            cookies: navigator.cookieEnabled,
            ua: navigator.userAgent,
            time: performance.now()
        };

        const res = await fetch("/bot_score", {
            method: "POST",
            headers: {"Content-Type": "application/json"},
            credentials: "same-origin",
            body: JSON.stringify(payload)
        });

        if (!res.ok) {
            location.href = "/challenge";
            return;
        }

        const data = await res.json();
console.log("data:", data);
console.log("verify:", JSON.stringify(data.verify));
            
        if (data.verify === "ok") {
            location.href = data.redirect || "\/feed";
        } else {
            location.href = "/challenge";
        }
        
    } catch(e) {
        location.href = "/challenge";
    }

})();
</script>
