<!DOCTYPE html>
<html style="height: 100%; width: 100%">
<head>
    <meta charset="UTF-8" />
    <title></title>
    <style>
        .waf-verify {
            background: #ffffff;
            position: absolute;
            z-index: 10000;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
        }

        .waf-verify-content {
            position: absolute;
            width: 500px;
            height: 200px;
            top: 50%;
            left: 50%;
            margin-top: -100px;
            margin-left: -250px;
            font-size: 18px;
            text-align: center;
        }

        .waf-verify-content .custom-host {
            font-size: 24px;
            line-height: 50px;
        }

        .waf-loading {
            font-size: 14px;
            margin: 20px auto;
            width: 300px;
            padding: 15px 20px;
            background: #f8f8f8;
            border: 1px solid #d8d8d8;
            display: flex;
            align-items: center;
        }

        .waf-loading-content {
            margin-right: 20px;
            width: 40px;
            height: 40px;
            border: 2px solid #000000;
            border-radius: 100%;
            border-top-color: rgba(0, 0, 0, 0.2);
            border-right-color: rgba(0, 0, 0, 0.2);
            border-bottom-color: rgba(0, 0, 0, 0.2);
            animation: circle infinite 0.75s linear;
        }

        @keyframes circle {
            0% {
                transform: rotate(0deg);
            }

            100% {
                transform: rotate(360deg);
            }
        }
    </style>
</head>
<body style="width: 100%; height: 100%; margin: 0">
<div class="waf-verify">
    <div class="waf-verify-content">
        <p id="host" class="custom-host"></p>
        <p id="captcha-operation-tip"></p>
        <div class="waf-loading">
            <div class="waf-loading-content"></div>
            <p id="captcha-operation-tip-content"></p>
        </div>
    </div>
</div>
<form action="/sitemap.xml" method="get" id="res_form">
</form>
</body>
<script>
    function changeLanguage(value) {
        if (value === "zh") {
            changeLanguageZh();
        } else if (value === "en") {
            changeLanguageEn();
        } else {
            changeLanguageZh();
        }
    }
    function changeLanguageZh() {
        document.getElementsByTagName("title")[0].innerHTML = "访问被拦截！";
        document.getElementById("a").innerHTML = "您的请求疑似攻击行为！";
        document.getElementById("b").innerHTML =
            "如果您是站长，您可以前往WAF控制台进行误报屏蔽设置，让您的访问不再被拦截";
        document.getElementById("c").innerHTML = "事件ID：";
    }
    function changeLanguageEn() {
        document.getElementsByTagName("title")[0].innerHTML =
            "The access is blocked.";
        document.getElementById("a").innerHTML =
            "Sorry, your request has been intercepted because it appears to be an attack.";
        document.getElementById("b").innerHTML =
            "If you are the webmaster, configure related parameters on the WAF console to allow your requests.";
        document.getElementById("c").innerHTML = "Event ID:";
    }
    function showBlockPage(eventId) {
        var title = document.getElementsByTagName("title")[0];
        var body = document.getElementsByTagName("body")[0];
        var blockHtml = `<div><style type="text/css">.select { float: right; margin: 10px 20px 0 0; height: 32px; line-height: 20px; font-size: 14px; width: 80px; }</style><select id="select" class="select" name="language"><option id="option-zh" value="zh">中文</option><option id="option-en" value="en">English</option></select><div style="clear: both;"></div></div><div style="min-height:13.125rem;width:100%"><div style="margin-top:3.75rem;margin-left:18.4375rem;height:52.38;width:83.04%;"><svg xmlns="http://www.w3.org/2000/svg" style="width: 3.125rem;height: 3.125rem" viewBox="0 0 50 50"><path fill="#e84e4c" d="M25,0A25,25,0,1,0,50,25,25,25,0,0,0,25,0Zm1.6,37.16H22.85V33.41H26.6Zm0-6.63H22.85L22.35,13H27.1Z" /></svg><font style="font-family:MicrosoftYaHei;font-size:4.375rem;color:#e94d4c;margin-left: 0.75rem;font-weight: bold;">418</font></div><div style="margin-left:18.4375rem;height:47.62%;width:83.04%;"><font id="a" style="font-family:MicrosoftYaHei;font-size:1.875rem;color:#999999;word-wrap:break-word;">您的请求疑似攻击行为！</font><p style="font-family:MicrosoftYaHei;font-size:0.9rem;color:#999999;word-wrap:break-word;"><span id="c">事件ID：</span><span style="color:#499df2" id="d">${
            eventId || ""
        }</span></p></div></div><div style="height:15.625rem;width:100%;min-width:105rem;"><div style="margin-left:18.4375rem;float:left;width:50rem"><p id="b" style="margin-top:10px">如果您是站长，您可以前往WAF控制台进行误报屏蔽设置，让您的访问不再被拦截</p></div></div>`;
        title.innerHTML = "访问被拦截！";
        body.innerHTML = blockHtml;

        var select = document.getElementById("select");
        select.addEventListener("change", function () {
            changeLanguage(this.value);
        });
        var language = navigator.language || navigator.browserLanguage;
        if (language.match(/^zh/)) {
            changeLanguageZh();
            document.getElementById("option-zh").setAttribute("selected", true);
        } else {
            changeLanguageEn();
            document.getElementById("option-en").setAttribute("selected", true);
        }
    }
    let ft = function t(e) {
        function c(t, e) {
            return (t >>> e) | (t << (32 - e));
        }
        let l = Math.pow;
        let o = l(2, 32);
        let n = "length";
        let f;
        let a;
        let r = "";
        let i = [];
        let s = e[n] * 8;
        let u = (t.h = t.h || []);
        let h = (t.k = t.k || []);
        let p = h[n];
        let g = {};
        for (let t = 2; p < 64; t++) {
            if (!g[t]) {
                for (f = 0; f < 313; f += t) {
                    g[f] = t;
                }
                u[p] = (l(t, 0.5) * o) | 0;
                h[p++] = (l(t, 1 / 3) * o) | 0;
            }
        }
        e += "\x80";
        while ((e[n] % 64) - 56) e += "\x00";
        for (f = 0; f < e[n]; f++) {
            a = e.charCodeAt(f);
            if (a >> 8) return;
            i[f >> 2] |= a << (((3 - f) % 4) * 8);
        }
        i[i[n]] = (s / o) | 0;
        i[i[n]] = s;
        for (a = 0; a < i[n]; ) {
            let s = i.slice(a, (a += 16));
            let t = u;
            u = u.slice(0, 8);
            for (f = 0; f < 64; f++) {
                let t = f + a;
                let e = s[f - 15];
                let l = s[f - 2];
                let o = u[0];
                let n = u[4];
                let r =
                    u[7] +
                    (c(n, 6) ^ c(n, 11) ^ c(n, 25)) +
                    ((n & u[5]) ^ (~n & u[6])) +
                    h[f] +
                    (s[f] =
                        f < 16
                            ? s[f]
                            : (s[f - 16] +
                                (c(e, 7) ^ c(e, 18) ^ (e >>> 3)) +
                                s[f - 7] +
                                (c(l, 17) ^ c(l, 19) ^ (l >>> 10))) |
                            0);
                let i =
                    (c(o, 2) ^ c(o, 13) ^ c(o, 22)) +
                    ((o & u[1]) ^ (o & u[2]) ^ (u[1] & u[2]));
                u = [(r + i) | 0].concat(u);
                u[4] = (u[4] + r) | 0;
            }
            for (f = 0; f < 8; f++) {
                u[f] = (u[f] + t[f]) | 0;
            }
        }
        for (f = 0; f < 8; f++) {
            for (a = 3; a + 1; a--) {
                let t = (u[f] >> (a * 8)) & 255;
                r += (t < 16 ? 0 : "") + t.toString(16);
            }
        }
        return r;
    };
    const b2h = (t) => {
        const e = "0123456789abcdef";
        let l = new Uint8Array(t);
        let o = "";
        let n = 0;
        for (let t = 0; t < l.length; t++) {
            n = l[t] >> 4;
            o += e[n];
            n = l[t] & 15;
            o += e[n];
        }
        return o;
    };
    function fc(t) {
        const e = `; ${document.cookie}`;
        const l = e.split(`; ${t}=`);
        if (l.length === 2) {
            let t = l.pop();
            if (t !== null) {
                return t.split(";").shift();
            }
        }
        return "";
    }
    function fi(n, t, e, l) {
        let r = "";
        let i = e;
        let s = Math.floor(e / 4);
        let c = "0".repeat(s);
        let f = "";
        let a = (1 << (s * 4)) - 1;
        let u = parseInt("0x" + t.substr(t.length - 1, 1), 16);
        let h = t.substr(0, t.length - 1);
        for (let o = 0; o < 1 << i; ++o) {
            let t = o & a;
            let e = (c + t.toString(16)).slice(-s);
            let l = (u + (o >> (s << 2))).toString(16);
            r = h + l + e;
            const p = ft(r);
            if (p === n) {
                f = r;
                break;
            }
        }
        return f;
    }

    var lang = window.navigator.language || navigator.userLanguage ||  navigator.browserLanguage || "zh-CN";
    var isZh = lang === "zh" || lang === "zh-CN";

    document.getElementById("host").innerHTML = document.location.host;

    document.title = isZh
        ? "正在进行人机验证"
        : "CAPTCHA verification in progress";
    document.getElementById("captcha-operation-tip").innerHTML = isZh
        ? "正在进行人机验证，验证您是否为真人。请稍后…"
        : "CAPTCHA verification is in progress to verify whether you are a real person. Please wait a moment...";
    document.getElementById("captcha-operation-tip-content").innerHTML = isZh
        ? "正在验证中…"
        : "Verifying...";

    window.onload = function () {
        let t = fc("js_challenge_IlZ2");
        let e = t.split("#");
        let l = e[0];
        let o = e[1];
        let n = e[2];
        let r = e[3];
        let p = e[4];
        let q = e[5];
        let i = fi(o, l, n, r);
        let s =
            "/verify-challenge-IlZ2?h1_tag=" +
            l +
            "&h2=" +
            o +
            "&ts=" +
            r +
            "&st=" +
            n +
            "&h1=" +
            i +
            "&ev=" +
            p +
            "&h3=" +
            q;
        let c = new XMLHttpRequest();
        c.open("POST", s);
        c.setRequestHeader("Content-Type", "application/plain; charset=UTF-8");
        let f = `verify`;
        c.onload = () => {
            setTimeout(() => {
                document.cookie =
                    "js_challenge_IlZ2=deleted; expires=Thu, 01 Jan 1970 00:00:00 UTC;domain=.eascs.com; path=/;";
                if (c.status === 418) {
                    showBlockPage(
                        c.getResponseHeader("X-WAFSDK-JS-Challenge-Event-Id-1118")
                    );
                } else {
                    document.forms["res_form"].submit();
                }
            }, 1000)
        };
        c.send(f);
    };
</script>
</html>
