<?php

// scoper-autoload.php @generated by PhpScoper

// Backup the autoloaded Composer files
if (isset($GLOBALS['__composer_autoload_files'])) {
    $existingComposerAutoloadFiles = $GLOBALS['__composer_autoload_files'];
}

$loader = require_once __DIR__.'/autoload.php';
// Ensure InstalledVersions is available
$installedVersionsPath = __DIR__.'/composer/InstalledVersions.php';
if (file_exists($installedVersionsPath)) require_once $installedVersionsPath;

// Restore the backup
if (isset($existingComposerAutoloadFiles)) {
    $GLOBALS['__composer_autoload_files'] = $existingComposerAutoloadFiles;
} else {
    unset($GLOBALS['__composer_autoload_files']);
}

// Class aliases. For more information see:
// https://github.com/humbug/php-scoper/blob/master/docs/further-reading.md#class-aliases
if (!function_exists('humbug_phpscoper_expose_class')) {
    function humbug_phpscoper_expose_class(string $exposed, string $prefixed): void {
        if (!class_exists($exposed, false) && !interface_exists($exposed, false) && !trait_exists($exposed, false)) {
            spl_autoload_call($prefixed);
        }
    }
}
humbug_phpscoper_expose_class('FANCY_ANIMATIONS', '_FancyAnimations\FANCY_ANIMATIONS');
humbug_phpscoper_expose_class('Attribute', '_FancyAnimations\Attribute');
humbug_phpscoper_expose_class('PhpToken', '_FancyAnimations\PhpToken');
humbug_phpscoper_expose_class('Stringable', '_FancyAnimations\Stringable');
humbug_phpscoper_expose_class('UnhandledMatchError', '_FancyAnimations\UnhandledMatchError');
humbug_phpscoper_expose_class('ValueError', '_FancyAnimations\ValueError');

// Function aliases. For more information see:
// https://github.com/humbug/php-scoper/blob/master/docs/further-reading.md#function-aliases
if (!function_exists('fancy_animations_uninstall_plugin')) { function fancy_animations_uninstall_plugin() { return \_FancyAnimations\fancy_animations_uninstall_plugin(...func_get_args()); } }
if (!function_exists('fdiv')) { function fdiv() { return \_FancyAnimations\fdiv(...func_get_args()); } }
if (!function_exists('get_debug_type')) { function get_debug_type() { return \_FancyAnimations\get_debug_type(...func_get_args()); } }
if (!function_exists('get_resource_id')) { function get_resource_id() { return \_FancyAnimations\get_resource_id(...func_get_args()); } }
if (!function_exists('preg_last_error_msg')) { function preg_last_error_msg() { return \_FancyAnimations\preg_last_error_msg(...func_get_args()); } }
if (!function_exists('str_contains')) { function str_contains() { return \_FancyAnimations\str_contains(...func_get_args()); } }
if (!function_exists('str_ends_with')) { function str_ends_with() { return \_FancyAnimations\str_ends_with(...func_get_args()); } }
if (!function_exists('str_starts_with')) { function str_starts_with() { return \_FancyAnimations\str_starts_with(...func_get_args()); } }

return $loader;
