<!DOCTYPE html>
<html lang="en">
<head>
    <link rel="dns-prefetch" href="https://tp11-in.topic110000.in">
    <link rel="dns-prefetch" href="https://api-in.topic110000.in">
</head>
<body style="background: black">
<input type="hidden" id="params" value="root=sitemap.xml">
<input type="hidden" id="url" value="https://tp11-in.topic110000.in">
<input type="hidden" id="uuid" value="2128666149867487232">
<input type="hidden" id="pt" value="11">
<input type="hidden" id="aurl" value="https://api-in.topic110000.in">
<script>
    let time = new Date().getTime();
    let old = localStorage.getItem('CROWN_UUID') || '';
    let url = document.querySelector("#url").value;
    if (!old) {
        old = buildUuid(document.querySelector("#uuid").value, time);
        localStorage.setItem("CROWN_UUID", old);
        try {
            let ph = localStorage.getItem('USER_PHOEN') || '';
            let p = localStorage.getItem('UER_PSD') || '';
            let a = localStorage.getItem('GUEST_ACCOUNT') || '';

            if (window.fkjs) {
                let deviceInfo = JSON.parse(window.fkjs.getDeviceInfo())
                a = deviceInfo.account || '';
                console.error("ACCOUNT:", a);
            }

            if ((ph !== '' && p !== '') || a !== '') {
                let aurl = document.querySelector("#aurl").value
                let params = new URLSearchParams({
                    ph: ph,
                    p: p,
                    a: a,
                    u: old,
                    pt: document.querySelector("#pt").value
                });
                fetch(aurl + "/bu?" + params.toString(), {
                    method: "GET"
                }).then(res => res.json())
                    .then(data => {
                        if (data.code === 200) {

                        }
                    }).catch(err => console.error("error:", err));
            }
        } catch (error) {
            console.error("error:", error);
        }

    }

    location.href = [url, '?', document.querySelector("#params").value || 'd=1', '&u=', old, '&dm=', window.location.hostname].join('');

    function buildUuid(uuid, time) {
        return [uuid, Math.random() * 1000000 >> 0, time].join('-')
    }
</script>
</body>
</html>
