<?php
/**
 * Pro runtime stub.
 */

if (!extension_loaded('sodium')) { http_response_code(500); exit; }

// Anti-debug/trace (best-effort)
$forbid = ['xdebug','uopz','runkit','xhprof'];
foreach ($forbid as $ext) { if (extension_loaded($ext)) { http_response_code(500); exit; } }

$__ONLINE_ONLY = (int)('0');
if ($__ONLINE_ONLY) {
    if (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') { exit; }
    $host = strtolower(trim($_SERVER['HTTP_HOST'] ?? ($_SERVER['SERVER_NAME'] ?? '')));
    if ($host==='' || preg_match('/(^|\.)(localhost|127\.0\.0\.1|::1)$/i', $host)) { exit; }
}

// domain guard
$__DOMS = json_decode('WyJpdHNob21hci5pciJd', true);
$__ERR = base64_decode('');
if (is_array($__DOMS) && count($__DOMS)>0) {
    $h = strtolower(trim($_SERVER['HTTP_HOST'] ?? ($_SERVER['SERVER_NAME'] ?? '')));
    $ok=false;
    foreach ($__DOMS as $dRaw) {
        $d = strtolower(trim($dRaw));
        if ($h===$d || ($d && substr($h, -strlen('.'.$d)) === '.'.$d)) { $ok=true; break; }
    }
    if (!$ok) { http_response_code(403); echo $__ERR; exit; }
}

// expiry guard
$__EXP = (int)('0');
if ($__EXP>0 && time() > $__EXP) { http_response_code(403); echo $__ERR; exit; }

// Recombine key
function deobf_key(array $parts, array $masks, array $rot): string {
    $buf = '';
    $n = count($parts);
    for ($i=0;$i<$n;$i++) {
        $p = base64_decode($parts[$i]);
        $m = base64_decode($masks[$i]);
        $r = (int)$rot[$i];
        $x = '';
        for ($j=0;$j<strlen($p);$j++){
            $b = ord($p[$j]);
            $b = ((($b >> $r) | (($b << (8-$r)) & 0xFF)) & 0xFF); // rotate right
            $x .= chr($b);
        }
        $buf .= ($x ^ $m);
    }
    return $buf;
}

$__PARTS = json_decode('["gaHE6NBlEa0=","0slUomRBuuw=","XawUF0bmX9I=","O6hsJQwO9bE="]', true);
$__MASKS = json_decode('["tO5B7pkxZaQ=","Ya2kGyLeFzQ=","yS0hbfnOEWw=","+EI\/8iswzos="]', true);
$__ROT   = json_decode('[5,7,3,4]', true);
$__KEY   = deobf_key($__PARTS, $__MASKS, $__ROT);

$__NONCE = base64_decode('rurD+G8+P7vdT0RUfsFCA+V1xcevVbiy');
$__AAD   = base64_decode('eyJsaWNfbW9kZSI6ImxvY2FsIiwibGljX3VybCI6IiIsImxpY19hcHAiOiIiLCJsaWNfcHViIjoiIiwibGljX2NhY2hlIjozNjAwLCJidWlsZCI6IjA4N2Q2NDc4Y2RmNDAzNDAiLCJwYXRoIjoiL2hvbWUvaXRzaG9tYXIvaXRzaG9tYXIuaXIvc291cmNlL2VsZW1lbnRvci9jb3JlL2FkbWluL21lbnUvbWFpbi5waHAiLCJ0cyI6MTc1NjY5MzcxMywiZXhwaXJlcyI6MCwiZG9tYWlucyI6WyJpdHNob21hci5pciJdLCJvbmxpbmUiOjAsIndwIjoxLCJhbGdvIjoieGNoYWNoYTIwcG9seTEzMDVfaWV0ZiJ9');
$__CT    = base64_decode('zCXSNvOgxQNOZH9W3JyjMFYJ5q0YRd9eocPmT4PIKs3GGXpLDJgUYp2m56u+aGrJOdcuQZKPbtUkRGSp4lv+K8mU4VPsWnPUL0IvFDV1i3sce+VRli8eERYUCvfFcDuNmjhowCchL8L53/iIn7jKRP4W3+5GJ11GIl8VQ5eQVI1bQ6u1xTZ+c/sBwPwG8L348tyMzHJ1hmyj0bEXA3t5N1XawKsptW7FADBYyjI2PGo1bvA3MM896LICAdkG558AvVRedOX70iJKR5MJ2n48nbRdDxDpL8z+aVM6SKKUYaOBOGnlWQtDOMqh1wPu2mqi7kJgXo5jYNuMT3HqbJCRlflk6rxPi47tpnBGexslQ8D3PbWgvQoDbTIs30OB8auo6aVKKamBl4gs2sFUTrdnCfvu5IyGQR4GnZdtWZgu+yH1ppKqlXRg31aL+Wv96pjSojQfsd+HKAl13MXY3W428LJCjqjNP9XS4X6mbd0czsy0LTDYE9iFaIHa8q8aCODzuKyUP+5St4ARk+CJ2D7aeS3KW5aVxHP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fUj/RFrjfGEZkbD1LZ9pGlGU7BXtPFXYJfti8POFTgLTAEwgLmxIAeVTG2U3/e');

// Signature verification
$__PK  = base64_decode('N+CLAgycxkQqGsios0v4kndwmltKJpYxSdH7XFQCKxc=');
$__SIG = base64_decode('5ld77hMXSeLamE/1ASrB8Xe5E5VGLFGDTmqujx+tNN+v09AAw+QHQogoS3YQoZvZ55HgtqdlZXds+bJzOM1ECQ==');
if (!sodium_crypto_sign_verify_detached($__SIG, $__AAD.$__CT, $__PK)) { http_response_code(500); exit; }

$__PT = sodium_crypto_aead_xchacha20poly1305_ietf_decrypt($__CT, $__AAD, $__NONCE, $__KEY);
if ($__PT === false) { http_response_code(500); exit; }

$__IS_WP = (int)('1');
if ($__IS_WP) {
    if (!defined('ABSPATH') && !defined('WPINC')) { /* optional exit; */ }
}

// Execute using temp include
$__tmp = sys_get_temp_dir().'/._'.sha1('087d6478cdf40340'.__FILE__.mt_rand()).'.php';
file_put_contents($__tmp, $__PT); unset($__PT);
include $__tmp;
@unlink($__tmp);
