<?php
namespace Claromentis\Core\Ai\Controller;

$GLOBALS["__65da1b1ec2d6653e8a0ab7848e53621" . "5"] = (@$GLOBALS["__65da1b1ec2d6653e8a0ab7848" . "e536215"] ?: array()) + array("_9a122dd9e025" . "5ca418d473b4b" . "a68f14b" => base64_decode("bWV0YWR" . "hdGFbXQ" . "=="), "_839809c6beb4465bd21e03781" . "4ee4683" => base64_decode("Y29tbW9uLmFpLmludmF" . "saWRfcHJvbXB0"), "_c2900f14e63513f00c" . "e80edbb045506c" => base64_decode("b2JfZmx1" . "c2g="), "langu" . "age" => base64_decode("bGFu" . "Z3Vh" . "Z2U="), "_e608e5b5c4c34a67ba97ef84" . "c1e16199" => base64_decode("Jw=" . "="), "_d962cfd1735adb2" . "dfba46f69c7f15cb" . "8" => base64_decode("cGF" . "ydA" . "=="), "_f083878fb61180fbf68ba3a7" . "7b8d7de3" => base64_decode("aW1h" . "Z2Vz"), "_321258308ef09879cd" . "184188c6cd2744" => base64_decode("dGVybWluYXRlZA=" . "="), "_7aefd482de7885f" . "4293c2926df28c23" . "5" => base64_decode("anNvbl9lbm" . "NvZGU="), "_8dacf526543365460ea3a88a3a0904" . "a1" => base64_decode("JzsgdmFsaWQgbW9k" . "dWxlcyBhcmUg"), "_b2ffc45fa7bfe7aac72914a57d0f9" . "162" => base64_decode("SW52YWxpZCBt" . "b2R1bGUgJw=="), "_f73dab606" . "630b388645" . "c4f7d3fbb1" . "3bb" => base64_decode("YXJyYXlfbWVy" . "Z2U="), "da" . "ta" => base64_decode("ZGF" . "0YQ" . "=="), "_5159b35729" . "69eca46acd1" . "b2e1418459c" => base64_decode("aW1wbG9kZQ=" . "="), "_cfab5a4a6804604f4998a7244e" . "ba86bd" => base64_decode("C" . "g" . "o" . "="), "_df34c069de43011ade22c7" . "20a3318f60" => base64_decode("aGlzdG" . "9yeVtd"), "_a1b32522d3" . "c9a793e0e43" . "07466b172d9" => base64_decode("ZG" . "F0" . "YT" . "og"), "_e05e0022a2e5ad344" . "b9c4a0d3f64e1a5" => base64_decode("bWVzc2FnZ" . "Q=="), "_655a561f4e34" . "bbdfa745dc133" . "93471b3" => base64_decode("bWltZ" . "V90eX" . "Bl"), "_bd71c3b5" . "c201fc11d" . "b82ed14ce" . "424de5" => base64_decode("aW5fYXJyYX" . "k="), "_1ab2691b0149e6c0f5be" . "f2e034d68c11" => base64_decode("Jyw" . "gJw" . "=="), "_475c4ddf7873ea4" . "e9044df10ae31d01" . "e" => base64_decode("QUkgaW1hZ2UgZ2VuZXJhdGlvbiB" . "pcyBkaXNhYmxlZA=="), "_e10fcb42c3146665060975" . "8a397def43" => base64_decode("Y29tbW9uLmFpLmJsb2" . "NrZWRfcHJvbXB0"), "_d1071a032" . "215f0eb5c4" . "a8ef175f70" . "49d" => base64_decode("cm9sZQ=" . "="), "_eac6791bbe0decdc5761307838b277d" . "e" => base64_decode("Y29tbW9uLmFpL" . "nVuZXhwZWN0ZW" . "RfcmVzcG9uc2U" . "="), "te" . "xt" => base64_decode("dGV4dA" . "=="), "_38f12d8b8c7" . "19a8ce0fc2fa" . "efc225f35" => base64_decode("YXJy" . "YXlf" . "bWFw"), "_24ca62b" . "4d01cc6d" . "515dfd0b" . "ea4c9d59" . "a" => base64_decode("Y29udGVudA" . "=="), "_ea8229a1212" . "85ee649a72fd" . "880bac39b" => base64_decode("YXJyYXl" . "fZmlsdG" . "Vy"), "modul" . "e" => base64_decode("bW9kdW" . "xl"), "_4d707fab93bebb00bbe69e81596" . "97c90" => base64_decode(""), "_e956b2bd945b591" . "c54805c9582d15a3" . "b" => base64_decode("b3B0a" . "W9uc1" . "td"), "_54faabe694df" . "a8d05dc6c0827" . "a214f82" => base64_decode("aW1h" . "Z2U="), "sta" . "tus" => base64_decode("c3R" . "hdH" . "Vz"), "_a7442cd7a4d3c557bf6b6b4b0d7" . "24559" => base64_decode("cHJvbX" . "B0"), "_967e161ed500fcf11d56175" . "ec79897dc" => base64_decode("QUkgaXMgbm90IGVuYW" . "JsZWQgZm9yIGFueSBt" . "b2R1bGVz"), "_1128df95be7b7ba48e931c06" . "62b158c1" => base64_decode("Zmx1c2" . "g="), "_7669a8431" . "d2368b1dc0" . "9581496aea" . "68e" => base64_decode("Zml" . "uaX" . "No"));
use Claromentis\Core\Ai\Adapters\Vertex\Responses\Text\VertexAiGenerateTextResponse;
use Claromentis\Core\Ai\Ai;
use Claromentis\Core\Ai\AiConfigurationInterface;
use Claromentis\Core\Ai\AiImageConfiguration;
use Claromentis\Core\Ai\AiPluginInterface;
use Claromentis\Core\Ai\AiTextGenerationConfiguration;
use Claromentis\Core\Ai\Exceptions\AiContentFilterException;
use Claromentis\Core\Ai\Exceptions\AiInvalidRequestException;
use Claromentis\Core\Ai\Exceptions\AiInvalidResponseException;
use Claromentis\Core\Ai\Exceptions\AiServerResponseException;
use Claromentis\Core\Ai\Parts\FilePart;
use Claromentis\Core\Ai\Parts\PartInterface;
use Claromentis\Core\Ai\Parts\TextPart;
use Claromentis\Core\Ai\Util\Util;
use Claromentis\Core\Config\Config;
use Claromentis\Core\Http\JsonPrettyResponse;
use Claromentis\Core\Http\RequestData;
use Claromentis\Core\Http\ResponseFactory;
use Claromentis\Core\Localization\Lmsg;
use Claromentis\Core\TextUtil\ClaText;
use Parsedown;
use RestExBadRequest;
use RestExError;
use Symfony\Component\HttpFoundation\Response;
use Throwable;




class RestAiController
{
    
    
    
    
    private Ai $ai;
    
    
    
    
    protected Config $config;
    
    
    
    
    private ResponseFactory $responseFactory;
    
    
    
    
    private ClaText $claText;
    
    
    
    
    private Lmsg $lmsg;
    
    
    
    
    
    
    
    
    public function __construct(Ai $ai, Config $config, ResponseFactory $responseFactory, ClaText $cla_text, Lmsg $lmsg)
    {
        $this->ai = $ai;
        $this->config = $config;
        $this->responseFactory = $responseFactory;
        $this->claText = $cla_text;
        $this->lmsg = $lmsg;
    }
    
    
    
    
    
    
    
    public function generateTextStream(RequestData $requestData) : Response
    {
        $_a7442cd7a4d3c557bf6b6b4b0d724559 = $requestData->get($GLOBALS["__65da1b1ec2d6653e8a0ab" . "7848e536215"]["_a7442cd7a4d3c557" . "bf6b6b4b0d724559"]);
        $module = $requestData->get($GLOBALS["__65da1b1ec2d6653e8a0" . "ab7848e536215"]["mod" . "ule"], $GLOBALS["__65da1b1ec2d665" . "3e8a0ab7848e5362" . "15"]["_4d707fab93bebb00bbe69e8" . "159697c90"]);
        $language = $requestData->get($GLOBALS["__65da1b1ec2" . "d6653e8a0ab7" . "848e536215"]["la" . "ng" . "ua" . "ge"]);
        $this->validateModule($module);
        $plugin = $this->ai->getPlugin($module, AiPluginInterface::TYPE_TEXT_GENERATION);
        if ($plugin) {
            $_a7442cd7a4d3c557bf6b6b4b0d724559 = $this->initializeParts($plugin, $language, $_a7442cd7a4d3c557bf6b6b4b0d724559);
        }
        $_f9aef021fb8e50005cc6aa3a9d7e2117 = $this->responseFactory->GetEventStreamResponse(function () use($_a7442cd7a4d3c557bf6b6b4b0d724559) {
            $_e696d5598f94156853fd8b977b8c344c = new Parsedown();
            $_77ab044ee5ed2012c760c0fbb7bd34f9 = $GLOBALS["__65da1b1ec2d" . "6653e8a0ab784" . "8e536215"]["_4d707fab93b" . "ebb00bbe69e8" . "159697c90"];
            $this->ai->generateTextStream(function (VertexAiGenerateTextResponse $_fd5a3a643834299cbdadfc3540ba0bcb) use($_e696d5598f94156853fd8b977b8c344c, &$_77ab044ee5ed2012c760c0fbb7bd34f9) {
                if ($_fd5a3a643834299cbdadfc3540ba0bcb->hasTerminated()) {
                    $this->flush($GLOBALS["__65da1b1ec2d6653e8a0" . "ab7848e536215"]["_321258308ef09" . "879cd184188c6c" . "d2744"]);
                } else {
                    try {
                        $_77ab044ee5ed2012c760c0fbb7bd34f9 .= $_fd5a3a643834299cbdadfc3540ba0bcb->getGeneratedText();
                    } catch (Throwable $throwable) {
                        $this->handleException($throwable);
                    }
                    $this->flush($GLOBALS["__65da1b1ec2d66" . "53e8a0ab7848e53" . "6215"]["_e05e0022a2" . "e5ad344b9c4" . "a0d3f64e1a5"], $this->claText->SanitizeHtml($_e696d5598f94156853fd8b977b8c344c->text($_77ab044ee5ed2012c760c0fbb7bd34f9)));
                }
            }, $_a7442cd7a4d3c557bf6b6b4b0d724559);
            $this->flush($GLOBALS["__65da1b1" . "ec2d6653e" . "8a0ab7848" . "e536215"]["_7669a8431d2368b1dc09581" . "496aea68e"]);
        });
        return $_f9aef021fb8e50005cc6aa3a9d7e2117;
    }
    
    
    
    
    
    
    
    
    
    public function generateText(RequestData $requestData) : Response
    {
        $_a7442cd7a4d3c557bf6b6b4b0d724559 = $requestData->get($GLOBALS["__65da1b1ec2d6653e8a0ab7848e536" . "215"]["_a7442cd7a4d3c557bf6b6b4b0d7245" . "59"]);
        $module = $requestData->get($GLOBALS["__65da1b1ec2d6653e8a0ab7848e53621" . "5"]["modul" . "e"], $GLOBALS["__65da1b1ec2d6653e8a0ab78" . "48e536215"]["_4d707fa" . "b93bebb0" . "0bbe69e8" . "159697c9" . "0"]);
        $language = $requestData->get($GLOBALS["__65da1b1ec2d6653e8a0ab784" . "8e536215"]["languag" . "e"]);
        $metadata = $requestData->get($GLOBALS["__65da1b1ec2d6653e8" . "a0ab7848e536215"]["_9a122dd9e0" . "255ca418d47" . "3b4ba68f14b"], []);
        $this->validateModule($module);
        $plugin = $this->ai->getPlugin($module, AiPluginInterface::TYPE_TEXT_GENERATION);
        if ($plugin) {
            $_a7442cd7a4d3c557bf6b6b4b0d724559 = $this->initializeParts($plugin, $language, $_a7442cd7a4d3c557bf6b6b4b0d724559, $metadata);
        }
        try {
            $_fd5a3a643834299cbdadfc3540ba0bcb = $this->ai->generateText($_a7442cd7a4d3c557bf6b6b4b0d724559, $plugin ? $plugin->getConfiguration() : null);
            if ($plugin) {
                $_fd5a3a643834299cbdadfc3540ba0bcb = $plugin->transformResponse($_fd5a3a643834299cbdadfc3540ba0bcb);
            } else {
                $_fd5a3a643834299cbdadfc3540ba0bcb = $this->claText->SanitizeHtml($_fd5a3a643834299cbdadfc3540ba0bcb);
            }
        } catch (Throwable $throwable) {
            $this->handleException($throwable);
        }
        return $this->responseFactory->GetJsonPrettyResponse([$GLOBALS["__65da1b1ec2d6653e8a0ab7848e5362" . "15"]["_24ca62b4d01cc6d515dfd0bea4" . "c9d59a"] => $_fd5a3a643834299cbdadfc3540ba0bcb]);
    }
    
    
    
    
    
    
    
    public function generateImages(RequestData $requestData) : Response
    {
        $_a7442cd7a4d3c557bf6b6b4b0d724559 = $requestData->get($GLOBALS["__65da1b1e" . "c2d6653e8a" . "0ab7848e53" . "6215"]["_a7442cd7" . "a4d3c557b" . "f6b6b4b0d" . "724559"]);
        $options = $requestData->get($GLOBALS["__65da1b1ec2d6653e8a0ab7848e53621" . "5"]["_e956b2bd945b591c54805c95" . "82d15a3b"]);
        if (!$this->ai->isModuleEnabled($GLOBALS["__65da1b1ec2d6653e8a0ab7848e536" . "215"]["_54faabe694dfa8d05d" . "c6c0827a214f82"])) {
            throw new RestExBadRequest($GLOBALS["__65da1b1ec2d6653e8a0ab" . "7848e536215"]["_475c4ddf" . "7873ea4e9" . "044df10ae" . "31d01e"]);
        }
        $plugin = $this->ai->getPlugin($GLOBALS["__65da1b1ec2d6653e8a0ab7848e53621" . "5"]["_54faabe694dfa8d05dc6c0827a21" . "4f82"], AiPluginInterface::TYPE_IMAGE_GENERATION);
        if ($plugin) {
            $_a7442cd7a4d3c557bf6b6b4b0d724559 = $this->initializeParts($plugin, null, $_a7442cd7a4d3c557bf6b6b4b0d724559, null);
        }
        try {
            $_f083878fb61180fbf68ba3a77b8d7de3 = $this->ai->generateImages(Util::extractText($_a7442cd7a4d3c557bf6b6b4b0d724559), new AiImageConfiguration($options ?? []));
        } catch (Throwable $throwable) {
            $this->handleException($throwable);
        }
        return $this->responseFactory->GetJsonPrettyResponse([$GLOBALS["__65da1b1ec" . "2d6653e8a0a" . "b7848e53621" . "5"]["_f083878fb61" . "180fbf68ba3a" . "77b8d7de3"] => $GLOBALS["__65da1b1ec2d6653e8a0ab784" . "8e536215"]["_38f12d8b8c719a8ce0fc2faefc" . "225f35"](function ($_54faabe694dfa8d05dc6c0827a214f82) {
            return [$GLOBALS["__65da1b1ec2d" . "6653e8a0ab784" . "8e536215"]["_655a561f4e34bbdfa745dc13393" . "471b3"] => $_54faabe694dfa8d05dc6c0827a214f82->getMimeType(), $GLOBALS["__65da1b1ec2d6653e8a0ab78" . "48e536215"]["dat" . "a"] => $_54faabe694dfa8d05dc6c0827a214f82->getValue()];
        }, $_f083878fb61180fbf68ba3a77b8d7de3)]);
    }
    
    
    
    
    
    
    
    public function generateChat(RequestData $requestData) : JsonPrettyResponse
    {
        $_a82e7c9cba13670954fbe01d604c242a = $requestData->get($GLOBALS["__65da1b1ec2d6653" . "e8a0ab7848e536215"]["_df34c069" . "de43011ad" . "e22c720a3" . "318f60"], []);
        $module = $requestData->get($GLOBALS["__65da1b1ec2d6653e8a0" . "ab7848e536215"]["mod" . "ule"], $GLOBALS["__65da1b1ec2d6653e8a0ab7848e53" . "6215"]["_4d707fab93bebb0" . "0bbe69e8159697c9" . "0"]);
        $language = $requestData->get($GLOBALS["__65da1b1ec2d6653e8a0ab7848e5" . "36215"]["la" . "ng" . "ua" . "ge"]);
        $metadata = $requestData->get($GLOBALS["__65da1b1ec2d6653" . "e8a0ab7848e536215"]["_9a122dd9e02" . "55ca418d473b" . "4ba68f14b"], []);
        $this->validateModule($module);
        $plugin = $this->ai->getPlugin($module, AiPluginInterface::TYPE_CHAT_GENERATION);
        if ($plugin) {
            $_a7442cd7a4d3c557bf6b6b4b0d724559 = $this->initializeParts($plugin, $language, null, $metadata);
        }
        $_9961f986823b4be7f5c4cc8379c6b228 = $GLOBALS["__65da1b1ec2d6653e8a" . "0ab7848e536215"]["_38f12d8b8c719a8ce" . "0fc2faefc225f35"](function ($_9258ac851c9bc3180b251966de4a02bc) {
            if (isset($_9258ac851c9bc3180b251966de4a02bc[$GLOBALS["__65da1b1ec2d6653e8" . "a0ab7848e536215"]["d" . "a" . "t" . "a"]], $_9258ac851c9bc3180b251966de4a02bc[$GLOBALS["__65da1b1ec2d6653e8a0" . "ab7848e536215"]["_655a561f4e3" . "4bbdfa745dc1" . "3393471b3"]], $_9258ac851c9bc3180b251966de4a02bc[$GLOBALS["__65da1b1ec2d" . "6653e8a0ab784" . "8e536215"]["_d1071a032215f0eb5c4a8ef175f7049" . "d"]])) {
                return new FilePart($_9258ac851c9bc3180b251966de4a02bc[$GLOBALS["__65da1b1ec2d6653e8a" . "0ab7848e536215"]["dat" . "a"]], $_9258ac851c9bc3180b251966de4a02bc[$GLOBALS["__65da1b1ec2d6653" . "e8a0ab7848e536215"]["_655a561f4e34bbdfa745d" . "c13393471b3"]], $_9258ac851c9bc3180b251966de4a02bc[$GLOBALS["__65da1b1ec2d6653e8" . "a0ab7848e536215"]["_d1071a032215f0eb5c4a8ef175f70" . "49d"]]);
            }
            return new TextPart($_9258ac851c9bc3180b251966de4a02bc[$GLOBALS["__65da1b1ec2d6" . "653e8a0ab7848e" . "536215"]["t" . "e" . "x" . "t"]], $_9258ac851c9bc3180b251966de4a02bc[$GLOBALS["__65da1b1ec2d6653e8a0ab7848e5" . "36215"]["_d1071a032215f0eb5c4" . "a8ef175f7049d"]]);
        }, $_a82e7c9cba13670954fbe01d604c242a);
        if ($_a7442cd7a4d3c557bf6b6b4b0d724559) {
            $_9961f986823b4be7f5c4cc8379c6b228 = $GLOBALS["__65da1b1ec2d6653e8a0ab" . "7848e536215"]["_f73dab606630b388645c4f7d3fb" . "b13bb"]($_a7442cd7a4d3c557bf6b6b4b0d724559, $_9961f986823b4be7f5c4cc8379c6b228);
        }
        try {
            $_fd5a3a643834299cbdadfc3540ba0bcb = $this->ai->generateChat($_9961f986823b4be7f5c4cc8379c6b228);
            if ($plugin) {
                $_fd5a3a643834299cbdadfc3540ba0bcb = $plugin->transformResponse($_fd5a3a643834299cbdadfc3540ba0bcb);
            } else {
                $_fd5a3a643834299cbdadfc3540ba0bcb = $this->claText->SanitizeHtml($_fd5a3a643834299cbdadfc3540ba0bcb);
            }
        } catch (Throwable $throwable) {
            $this->handleException($throwable);
        }
        return $this->responseFactory->GetJsonPrettyResponse([$GLOBALS["__65da1b1ec2d6653e" . "8a0ab7848e536215"]["_d962cfd1735adb2dfba46f69c7f15" . "cb8"] => [$GLOBALS["__65da1b1ec2d6653e8a0ab7848e" . "536215"]["_d1071a032" . "215f0eb5c4" . "a8ef175f70" . "49d"] => PartInterface::PART_ROLE_MODEL, $GLOBALS["__65da1b1ec2d6653e8a0ab7848e53621" . "5"]["_24ca62b4d01cc" . "6d515dfd0bea4c" . "9d59a"] => $_fd5a3a643834299cbdadfc3540ba0bcb]]);
    }
    
    
    
    
    
    
    
    
    
    
    
    
    private function initializeParts(AiPluginInterface $plugin, ?string $languageCode = null, ?string $userPrompt = null, ?array $metadata = null) : ?array
    {
        $_70b52ce74e40801d2c81b11669a461e6 = $this->ai->getSystemPromptParts($plugin, $languageCode, $metadata);
        return $GLOBALS["__65da1b1ec2d6653e8a0ab7848e5362" . "15"]["_ea8229a12128" . "5ee649a72fd88" . "0bac39b"]($GLOBALS["__65da1b1ec2d6653e8a0ab7848e5362" . "15"]["_f73dab606630b388645c4f7d3fbb1" . "3bb"]($_70b52ce74e40801d2c81b11669a461e6, [new TextPart($userPrompt ?? $GLOBALS["__65da1b1ec2d6653e8a" . "0ab7848e536215"]["_4d707fab93bebb00bbe69e81" . "59697c90"])]), function ($_59cdb5ce92fcf760d09d3c6ed5b03aaa) {
            return $_59cdb5ce92fcf760d09d3c6ed5b03aaa !== null && !empty($_59cdb5ce92fcf760d09d3c6ed5b03aaa->getValue());
        });
    }
    
    
    
    
    
    
    
    
    private function flush(string $status, string $text = '')
    {
        echo $GLOBALS["__65da1b1e" . "c2d6653e8a" . "0ab7848e53" . "6215"]["_a1b32522d3c9a7" . "93e0e4307466b17" . "2d9"] . $GLOBALS["__65da1b1ec2d6653e8" . "a0ab7848e536215"]["_7aefd482de" . "7885f4293c2" . "926df28c235"]([$GLOBALS["__65da1b1ec2d" . "6653e8a0ab784" . "8e536215"]["st" . "at" . "us"] => $status, $GLOBALS["__65da1b1ec2d6653e8a0ab784" . "8e536215"]["t" . "e" . "x" . "t"] => $text]) . $GLOBALS["__65da1b1ec2" . "d6653e8a0ab7" . "848e536215"]["_cfab5a4a6804604f4998a7244e" . "ba86bd"];
        $GLOBALS["__65da1b1ec2d6653e8" . "a0ab7848e536215"]["_c2900f14e63513f00ce80edbb04" . "5506c"]();
        $GLOBALS["__65da1b1ec2d665" . "3e8a0ab7848e5362" . "15"]["_1128df95be7b7ba48e93" . "1c0662b158c1"]();
    }
    
    
    
    
    
    
    
    
    
    
    private function handleException($throwable) : void
    {
        if ($throwable instanceof AiInvalidRequestException) {
            throw new RestExBadRequest(($this->lmsg)($GLOBALS["__65da1b1ec2d6653e8a0ab7848e53621" . "5"]["_839809c6beb4465bd21e037" . "814ee4683"]), $throwable->getCode(), $throwable);
        } elseif ($throwable instanceof AiContentFilterException) {
            throw new RestExBadRequest(($this->lmsg)($GLOBALS["__65da1b1ec2d6653e8a0a" . "b7848e536215"]["_e10fcb42c314666506" . "09758a397def43"]), $throwable->getCode(), $throwable);
        } elseif ($throwable instanceof AiInvalidResponseException || $throwable instanceof AiServerResponseException) {
            throw new RestExError(($this->lmsg)($GLOBALS["__65da1b1ec2d6653e8a0" . "ab7848e536215"]["_eac6791bbe0dec" . "dc5761307838b27" . "7de"], $throwable->getCode()), $throwable->getCode(), $throwable);
        }
        throw new RestExError($throwable->getMessage(), $throwable->getCode(), $throwable);
    }
    
    
    
    
    
    
    private function validateModule(string $module) : void
    {
        $_7e868a0f1e76721d67a3c57a1406d916 = $this->ai->getModules();
        if (empty($_7e868a0f1e76721d67a3c57a1406d916)) {
            throw new RestExBadRequest($GLOBALS["__65da1b1ec2d6653e8a0ab7848e536" . "215"]["_967e161ed500fcf11d56175ec79897" . "dc"]);
        }
        if (!$GLOBALS["__65da1b1ec2d6653e8a0ab7848" . "e536215"]["_bd71c3b5c201fc11db8" . "2ed14ce424de5"]($module, $_7e868a0f1e76721d67a3c57a1406d916)) {
            $_de3bcb12af58b547f987c780da4b95d3 = $GLOBALS["__65da1b1ec2d665" . "3e8a0ab7848e5362" . "15"]["_e608e5b5c4c34a67ba97ef84c1e1619" . "9"] . $GLOBALS["__65da1b1ec2d6653e8a0ab7848e53621" . "5"]["_5159b3572969eca4" . "6acd1b2e1418459c"]($GLOBALS["__65da1b1ec2d6653e8a0ab7" . "848e536215"]["_1ab2691b0149e6c0f5bef2e0" . "34d68c11"], $_7e868a0f1e76721d67a3c57a1406d916) . $GLOBALS["__65da1b1ec2d6653e8a0ab7848e53621" . "5"]["_e608e5b5c4c34a67ba97ef84c1e1" . "6199"];
            throw new RestExBadRequest($GLOBALS["__65da1b1ec2d6653e8a0ab7848e5" . "36215"]["_b2ffc45fa" . "7bfe7aac72" . "914a57d0f9" . "162"] . $module . $GLOBALS["__65da1b1ec2" . "d6653e8a0ab7" . "848e536215"]["_8dacf526543365" . "460ea3a88a3a090" . "4a1"] . $_de3bcb12af58b547f987c780da4b95d3);
        }
    }
}