<?php
$GLOBALS["__65da1b1ec2d6653e8a" . "0ab7848e536215"] = (@$GLOBALS["__65da1b1ec2d6653e8a0ab7" . "848e536215"] ?: array()) + array("_6598efee79451e62665ab6655c28e0d" . "a" => base64_decode("fl5ccypbKy1dP1x" . "kK1xzKiR+"), "_0eb85af3fd019e91c2" . "f55a5e6d53ec19" => base64_decode("YWR" . "kcm" . "Vzc" . "w=="), "_5e9a99dc0dd" . "49b907abf1b3" . "5e96965f8" => base64_decode("dHJpbQ=" . "="), "_31767d7ad58e70" . "6dbf47b7a51a0fe" . "6c4" => base64_decode("Y291b" . "nQ="), "_b0338d45b964dad13d3a9" . "9d75556c70b" => base64_decode("Li4vY29tbW9uL21haWxfcGFyc2VfYWRkcmVzcy5waHA" . "="), "_62d701c3c53404f06" . "345eb35720a47b4" => base64_decode("aXNfbnVtZXJp" . "Yw=="), "_a591754a8ddcdbd" . "a9c80f1db4d911e1" . "4" => base64_decode("aXNfbn" . "VsbA=="), "_e8dab39d597310d35fbddc3c58d6f1" . "a1" => base64_decode("cGFyc2VfYWRkcmV" . "zc2Vz"), "_d155d43a39de" . "93f858123c6b6" . "ce31d8a" => base64_decode("cHJlZ19tYX" . "RjaA=="), "_ad91c758fdbad4d3337db" . "09e238b256f" => base64_decode("aXN" . "fc2" . "Nhb" . "GFy"), "_5c2288bcc81e60ad3a7b0e6ec67b94" . "20" => base64_decode("L15bYS16QS1aMC05LiEjJCUmJyorXC89P15fYHt8fX4tXStAW2EtekEtWjAtOV0oPz" . "pbYS16QS1aMC05LV17MCw2MX1bYS16QS1aMC05XSk/KD86XC5bYS16QS1aMC05XSg/" . "OlthLXpBLVowLTktXXswLDYxfVthLXpBLVowLTldKT8pKiQv"), "_4d707fab93bebb0" . "0bbe69e8159697c9" . "0" => base64_decode(""), "_db6f0ba0791e9a63" . "5407659a9fe04e40" => base64_decode("aXN" . "fb2" . "JqZ" . "WN0"), "_7f628626dd1d55c71b1fc" . "0932ffd1d2c" => base64_decode("aXNfYXJyY" . "Xk="), "_631d755" . "6520d525" . "f4e21782" . "98bd33b7" . "5" => base64_decode("L14oW2EtekEtWjAtOV0oW2EtekEtWjAtOVwtXXswLDYxfVthLXpBLVowLTldKT9cLikrW2EtekEtWl17Mi" . "w2fSQv"), "_d41ec95e074c12c953f52553c995c" . "31d" => base64_decode("L1xzKjwoW" . "14+XSopPi" . "8="));






class InputFilter
{
    const INT_NOT_NULL = 1;
    const INT_OR_NULL = 2;
    const FLOAT_NOT_NULL = 3;
    const FLOAT_OR_NULL = 4;
    const STRING_NOT_EMPTY = 5;
    const STRING_OR_EMPTY = 6;
    const EMAIL_STRONG = 7;
    const DOMAIN = 8;
    const ARRAY_NOT_NULL = 9;
    const ARRAY_OR_NULL = 10;
    const EMAIL_LIST = 11;
    const MAILBOX_STRONG = 12;
    public static function IsValid($value, $type)
    {
        if ($type !== self::ARRAY_NOT_NULL && $type !== self::ARRAY_OR_NULL && !$GLOBALS["__65da1b1ec2d6653e8a" . "0ab7848e536215"]["_ad91c758fdbad4d3337db09e" . "238b256f"]($value) && !$GLOBALS["__65da1b1e" . "c2d6653e8a" . "0ab7848e53" . "6215"]["_a591754a8ddcdbda9c80f1d" . "b4d911e14"]($value)) {
            return false;
        }
        switch ($type) {
            case self::INT_NOT_NULL:
                return self::IsInt($value);
            case self::INT_OR_NULL:
                return self::IsInt($value, true);
            case self::FLOAT_NOT_NULL:
                return self::IsFloat($value);
            case self::FLOAT_OR_NULL:
                return self::IsFloat($value, true);
            case self::STRING_NOT_EMPTY:
                return self::IsStringNotEmpty($value);
            case self::STRING_OR_EMPTY:
                return true;
            case self::EMAIL_STRONG:
                return self::IsStrongEmail($value);
            case self::DOMAIN:
                return self::IsDomain($value);
            case self::ARRAY_NOT_NULL:
                return self::IsArray($value);
            case self::ARRAY_OR_NULL:
                return self::IsArray($value, true);
            case self::EMAIL_LIST:
                return self::IsEmailList($value);
            case self::MAILBOX_STRONG:
                return self::IsMailboxStrong($value);
            default:
                return false;
        }
    }
    protected static function IsArray($_fd9abf76fd2d2f2325b7cdba6082e462, $_e8d00f92e862850a9b96127c57fa9f2f = false)
    {
        if ($GLOBALS["__65da1b1ec2" . "d6653e8a0ab7" . "848e536215"]["_a591754a8ddcdbda9c80f1db4d9" . "11e14"]($_fd9abf76fd2d2f2325b7cdba6082e462)) {
            return $_e8d00f92e862850a9b96127c57fa9f2f;
        }
        return $GLOBALS["__65da1b1ec2d6653e8a0ab78" . "48e536215"]["_7f628626dd1d55c71b1fc" . "0932ffd1d2c"]($_fd9abf76fd2d2f2325b7cdba6082e462);
    }
    protected static function IsInt($_fd9abf76fd2d2f2325b7cdba6082e462, $_e8d00f92e862850a9b96127c57fa9f2f = false)
    {
        if ($GLOBALS["__65da1b1ec2d6653e8a0ab7848e" . "536215"]["_a591754a8ddcdbda9c80f1db4d" . "911e14"]($_fd9abf76fd2d2f2325b7cdba6082e462) || self::IsEmptyString($_fd9abf76fd2d2f2325b7cdba6082e462)) {
            return $_e8d00f92e862850a9b96127c57fa9f2f;
        }
        if ($GLOBALS["__65da1b1ec2d6653e8a0ab7848e53" . "6215"]["_7f628626dd1d55c7" . "1b1fc0932ffd1d2c"]($_fd9abf76fd2d2f2325b7cdba6082e462) || $GLOBALS["__65da1b1ec2d6653" . "e8a0ab7848e536215"]["_db6f0ba0791e" . "9a635407659a9" . "fe04e40"]($_fd9abf76fd2d2f2325b7cdba6082e462)) {
            return false;
        }
        if ($GLOBALS["__65da1b1ec2d" . "6653e8a0ab784" . "8e536215"]["_d155d43a39de93f858123" . "c6b6ce31d8a"]($GLOBALS["__65da1b1ec2d" . "6653e8a0ab784" . "8e536215"]["_6598efee79451e626" . "65ab6655c28e0da"], $_fd9abf76fd2d2f2325b7cdba6082e462)) {
            return true;
        }
        return false;
    }
    public static function IsEmptyString($_66824e0309bb76c78bd2bbd5fda8d3d8)
    {
        return $GLOBALS["__65da1b1ec2d6653e8a0ab7848e536" . "215"]["_5e9a99dc0dd49b907ab" . "f1b35e96965f8"]($_66824e0309bb76c78bd2bbd5fda8d3d8) == $GLOBALS["__65da1b1ec2d6653e8a0ab7848e" . "536215"]["_4d707fab93bebb00bbe69e81" . "59697c90"];
    }
    protected static function IsFloat($_fd9abf76fd2d2f2325b7cdba6082e462, $_e8d00f92e862850a9b96127c57fa9f2f = false)
    {
        if ($GLOBALS["__65da1b1ec2d6653e8a0ab7848e53621" . "5"]["_a591754a8dd" . "cdbda9c80f1d" . "b4d911e14"]($_fd9abf76fd2d2f2325b7cdba6082e462) || self::IsEmptyString($_fd9abf76fd2d2f2325b7cdba6082e462)) {
            return $_e8d00f92e862850a9b96127c57fa9f2f;
        }
        if ($GLOBALS["__65da1b1ec2d6653" . "e8a0ab7848e536215"]["_62d701c3c534" . "04f06345eb357" . "20a47b4"]($_fd9abf76fd2d2f2325b7cdba6082e462)) {
            return true;
        }
        return false;
    }
    protected static function IsStringNotEmpty($_fd9abf76fd2d2f2325b7cdba6082e462)
    {
        return $GLOBALS["__65da1b1ec2d6653e8a0ab784" . "8e536215"]["_5e9a99dc0dd49b9" . "07abf1b35e96965f" . "8"]($_fd9abf76fd2d2f2325b7cdba6082e462) !== $GLOBALS["__65da1b1ec2d6653e8" . "a0ab7848e536215"]["_4d707fab93bebb00bbe69e815" . "9697c90"];
    }
    protected static function IsStrongEmail($_fd9abf76fd2d2f2325b7cdba6082e462)
    {
        
        
        if ($GLOBALS["__65da1b1ec2d6653" . "e8a0ab7848e536215"]["_d155d43a39de93f858123c6b6" . "ce31d8a"]($GLOBALS["__65da1b1ec2d6653e" . "8a0ab7848e536215"]["_5c2288bcc81e60ad3a7b0e6" . "ec67b9420"], $GLOBALS["__65da1b1ec2d6653e8a" . "0ab7848e536215"]["_5e9a99dc0dd49b907abf1b35" . "e96965f8"]($_fd9abf76fd2d2f2325b7cdba6082e462))) {
            return true;
        }
        return false;
    }
    protected static function IsDomain($_fd9abf76fd2d2f2325b7cdba6082e462)
    {
        if ($GLOBALS["__65da1b1ec2d66" . "53e8a0ab7848e53" . "6215"]["_d155d43a39de93f858123c6b6ce31d8" . "a"]($GLOBALS["__65da1b1ec2d6653e8" . "a0ab7848e536215"]["_631d7556520d525f4e" . "2178298bd33b75"], $_fd9abf76fd2d2f2325b7cdba6082e462)) {
            return true;
        }
        return false;
    }
    protected static function IsEmailList($_fd9abf76fd2d2f2325b7cdba6082e462)
    {
        require_once $GLOBALS["__65da1b1ec2d6653e8a" . "0ab7848e536215"]["_b0338d45b964dad13d" . "3a99d75556c70b"];
        $_f2e90e88b5f7e0dea9318d967a6ebd42 = $GLOBALS["__65da1b1ec2d6653e8" . "a0ab7848e536215"]["_e8dab39d597310d35fbddc3c5" . "8d6f1a1"]($_fd9abf76fd2d2f2325b7cdba6082e462);
        if (false === $_f2e90e88b5f7e0dea9318d967a6ebd42 || !$GLOBALS["__65da1b1ec2d6653e8a0ab7848e53" . "6215"]["_31767d7ad58e706dbf47b7a51a0fe" . "6c4"]($_f2e90e88b5f7e0dea9318d967a6ebd42)) {
            return false;
        }
        foreach ($_f2e90e88b5f7e0dea9318d967a6ebd42 as $_c2f6f7dc50f77b2d217bd2e23a6ff2a0) {
            if (!self::IsStrongEmail($_c2f6f7dc50f77b2d217bd2e23a6ff2a0[$GLOBALS["__65da1b1ec2d" . "6653e8a0ab784" . "8e536215"]["_0eb85af3fd019e91c2f55" . "a5e6d53ec19"]])) {
                return false;
            }
        }
        return true;
    }
    protected static function IsMailboxStrong($_fd9abf76fd2d2f2325b7cdba6082e462) : bool
    {
        $GLOBALS["__65da1b1ec2d6653e8" . "a0ab7848e536215"]["_d155d43a39de" . "93f858123c6b6" . "ce31d8a"]($GLOBALS["__65da1b1ec2d6653e" . "8a0ab7848e536215"]["_d41ec95e074c12c953f52553c995" . "c31d"], $_fd9abf76fd2d2f2325b7cdba6082e462, $_3edeea3a30945de8abb845ca7489c82a);
        $_c2f6f7dc50f77b2d217bd2e23a6ff2a0 = $_3edeea3a30945de8abb845ca7489c82a[1] ?? $_fd9abf76fd2d2f2325b7cdba6082e462;
        if (self::IsStrongEmail($_c2f6f7dc50f77b2d217bd2e23a6ff2a0)) {
            return true;
        }
        return false;
    }
}