<?php
namespace Claromentis\Core\Event;

$GLOBALS["__65da1b1" . "ec2d6653e" . "8a0ab7848" . "e536215"] = (@$GLOBALS["__65da1b1e" . "c2d6653e8a" . "0ab7848e53" . "6215"] ?: array()) + array("_249e641075c6a29865e" . "4c4b46d959e7f" => base64_decode("dHJpZ2dlcl" . "9kZXByZWNh" . "dGlvbg=="), "_d91a7be21d972" . "d4aac861a7352a" . "2079f" => base64_decode("c2V0TmF" . "tZQ=="), "_96be32a6f4" . "4bf54e635e1" . "736acf7a96c" => base64_decode("c2VyaWFsaXp" . "l"), "_f6ad69e5b7ae7662b1d0fa05847ada" . "65" => base64_decode("Y2xhcm9tZW50aXMvZnJ" . "hbWV3b3Jr"), "_7cf327515b98333" . "f2887781d2582ce8" . "7" => base64_decode("TWV0aG9kIHNpZ25hdHVyZSBkZXByZWNhdGVkIGZvciB0aGUgRXZlbnREaXNwYXRjaGVyOj" . "pkaXNwYXRjaCgpIHNpbmNlIENvcmUgMTAsIGR1ZSB0byBTeW1mb255IDUncyBjaGFuZ2Vz" . "OiBzd2FwIHRoZSBmaXJzdCB0d28gYXJndW1lbnRzIHRvIHRoaXMgbWV0aG9k"), "_9a9e2d14" . "785bdbaec" . "fc454cb00" . "9e47a7" => base64_decode("M" . "T" . "A" . "="), "_c244a470df52d1d5a7085138" . "ec94e393" => base64_decode("dW5zZXJpY" . "WxpemU="), "_db6f0ba0791e9a635407659a9f" . "e04e40" => base64_decode("aXNfb2" . "JqZWN0"), "_6edacb78" . "bd55c5015" . "af27c8ac1" . "fcd9af" => base64_decode("bWV0aG9" . "kX2V4aX" . "N0cw=="));
use Claromentis\Common\ApplicationMiscellany\Finisher;
use Claromentis\Core\Services;
use Symfony\Contracts\EventDispatcher\Event;
use Symfony\Component\EventDispatcher\EventDispatcher as BaseEventDispatcher;




class EventDispatcher extends BaseEventDispatcher implements EventDispatcherInterface
{
    
    
    
    
    
    
    protected ?Finisher $finisher;
    
    
    
    
    public function __construct(Finisher $_fea16585ee8de2b835a68ccd4bc60aef = null)
    {
        parent::__construct();
        $this->finisher = $_fea16585ee8de2b835a68ccd4bc60aef;
    }
    
    
    
    
    
    
    
    
    public static function Shared()
    {
        return Services::I()->dispatcher;
    }
    
    
    
    
    
    
    
    
    
    
    
    public function dispatch($event, $_2cf093f28f4c7e718a5e8af628894c7b = null, bool $_46d17db0bd1ac920366ce3e210c240c1 = false) : object
    {
        if ($GLOBALS["__65da1b1ec2d6653e8a0ab78" . "48e536215"]["_db6f0ba0" . "791e9a635" . "407659a9f" . "e04e40"]($event)) {
            return $this->bcAwareDispatch($event, $_2cf093f28f4c7e718a5e8af628894c7b, $_46d17db0bd1ac920366ce3e210c240c1);
        }
        $GLOBALS["__65da1b1ec2d6653e8a0ab7848e5" . "36215"]["_249e641075c6" . "a29865e4c4b46" . "d959e7f"]($GLOBALS["__65da1b1ec2d6653e8a0ab7848e536" . "215"]["_f6ad69e5b7ae7662b1d0fa058" . "47ada65"], $GLOBALS["__65da1b1ec2d6653e8a0ab7848e536" . "215"]["_9a9e2d14785bdba" . "ecfc454cb009e47a" . "7"], $GLOBALS["__65da1b1ec2" . "d6653e8a0ab7" . "848e536215"]["_7cf327515b98333" . "f2887781d2582ce8" . "7"]);
        return $this->bcAwareDispatch($_2cf093f28f4c7e718a5e8af628894c7b, $event, $_46d17db0bd1ac920366ce3e210c240c1);
    }
    
    
    
    
    
    
    
    
    
    private function bcAwareDispatch(object $event = null, ?string $_2cf093f28f4c7e718a5e8af628894c7b, bool $_46d17db0bd1ac920366ce3e210c240c1 = false) : object
    {
        if ($event === null) {
            $event = new Event();
        }
        if ($GLOBALS["__65da1b1ec2d66" . "53e8a0ab7848e53" . "6215"]["_6edacb78bd55" . "c5015af27c8ac" . "1fcd9af"]($event, $GLOBALS["__65da1b1ec2" . "d6653e8a0ab7" . "848e536215"]["_d91a7be21d972d4aac861a7352a" . "2079f"])) {
            $event->setName($_2cf093f28f4c7e718a5e8af628894c7b);
        }
        if (!$_46d17db0bd1ac920366ce3e210c240c1 || !isset($this->finisher)) {
            return parent::dispatch($event, $_2cf093f28f4c7e718a5e8af628894c7b);
        } else {
            $_a6a149597bf68ad5294d98abc0bda72b = $GLOBALS["__65da1b1ec2d6653e8a0ab7848e536" . "215"]["_96be32a6f4" . "4bf54e635e1" . "736acf7a96c"]($event);
            $this->finisher->FinishHim(function ($request, $_fd5a3a643834299cbdadfc3540ba0bcb) use($_2cf093f28f4c7e718a5e8af628894c7b, $_a6a149597bf68ad5294d98abc0bda72b) {
                $event = $GLOBALS["__65da1b1ec2d6653e8a0ab7848e5362" . "15"]["_c244a470df52d1d5a7" . "085138ec94e393"]($_a6a149597bf68ad5294d98abc0bda72b);
                $this->dispatch($event, $_2cf093f28f4c7e718a5e8af628894c7b, false);
            });
            return $event;
        }
    }
}