<?php

if (class_exists('WPO_IPS_PRO_Vendor_Google_Client', false)) {
    // Prevent error with preloading in PHP 7.4
    // @see https://github.com/googleapis/google-api-php-client/issues/1976
    return;
}

$classMap = [
    'WPO\\WC\\PDF_Invoices_Pro\\Vendor\\Google\\Client' => 'WPO_IPS_PRO_Vendor_Google_Client',
    'WPO\\WC\\PDF_Invoices_Pro\\Vendor\\Google\\Service' => 'WPO_IPS_PRO_Vendor_Google_Service',
    'WPO\\WC\\PDF_Invoices_Pro\\Vendor\\Google\\AccessToken\\Revoke' => 'WPO_IPS_PRO_Vendor_Google_AccessToken_Revoke',
    'WPO\\WC\\PDF_Invoices_Pro\\Vendor\\Google\\AccessToken\\Verify' => 'WPO_IPS_PRO_Vendor_Google_AccessToken_Verify',
    'WPO\\WC\\PDF_Invoices_Pro\\Vendor\\Google\\Model' => 'WPO_IPS_PRO_Vendor_Google_Model',
    'WPO\\WC\\PDF_Invoices_Pro\\Vendor\\Google\\Utils\\UriTemplate' => 'WPO_IPS_PRO_Vendor_Google_Utils_UriTemplate',
    'WPO\\WC\\PDF_Invoices_Pro\\Vendor\\Google\\AuthHandler\\Guzzle6AuthHandler' => 'WPO_IPS_PRO_Vendor_Google_AuthHandler_Guzzle6AuthHandler',
    'WPO\\WC\\PDF_Invoices_Pro\\Vendor\\Google\\AuthHandler\\Guzzle7AuthHandler' => 'WPO_IPS_PRO_Vendor_Google_AuthHandler_Guzzle7AuthHandler',
    'WPO\\WC\\PDF_Invoices_Pro\\Vendor\\Google\\AuthHandler\\AuthHandlerFactory' => 'WPO_IPS_PRO_Vendor_Google_AuthHandler_AuthHandlerFactory',
    'WPO\\WC\\PDF_Invoices_Pro\\Vendor\\Google\\Http\\Batch' => 'WPO_IPS_PRO_Vendor_Google_Http_Batch',
    'WPO\\WC\\PDF_Invoices_Pro\\Vendor\\Google\\Http\\MediaFileUpload' => 'WPO_IPS_PRO_Vendor_Google_Http_MediaFileUpload',
    'WPO\\WC\\PDF_Invoices_Pro\\Vendor\\Google\\Http\\REST' => 'WPO_IPS_PRO_Vendor_Google_Http_REST',
    'WPO\\WC\\PDF_Invoices_Pro\\Vendor\\Google\\Task\\Retryable' => 'WPO_IPS_PRO_Vendor_Google_Task_Retryable',
    'WPO\\WC\\PDF_Invoices_Pro\\Vendor\\Google\\Task\\Exception' => 'WPO_IPS_PRO_Vendor_Google_Task_Exception',
    'WPO\\WC\\PDF_Invoices_Pro\\Vendor\\Google\\Task\\Runner' => 'WPO_IPS_PRO_Vendor_Google_Task_Runner',
    'WPO\\WC\\PDF_Invoices_Pro\\Vendor\\Google\\Collection' => 'WPO_IPS_PRO_Vendor_Google_Collection',
    'WPO\\WC\\PDF_Invoices_Pro\\Vendor\\Google\\Service\\Exception' => 'WPO_IPS_PRO_Vendor_Google_Service_Exception',
    'WPO\\WC\\PDF_Invoices_Pro\\Vendor\\Google\\Service\\Resource' => 'WPO_IPS_PRO_Vendor_Google_Service_Resource',
    'WPO\\WC\\PDF_Invoices_Pro\\Vendor\\Google\\Exception' => 'WPO_IPS_PRO_Vendor_Google_Exception',
];

foreach ($classMap as $class => $alias) {
    class_alias($class, $alias);
}

/**
 * This class needs to be defined explicitly as scripts must be recognized by
 * the autoloader.
 */
class WPO_IPS_PRO_Vendor_Google_Task_Composer extends \WPO\WC\PDF_Invoices_Pro\Vendor\Google\Task\Composer
{
}

/** @phpstan-ignore-next-line */
if (\false) {
    class WPO_IPS_PRO_Vendor_Google_AccessToken_Revoke extends \WPO\WC\PDF_Invoices_Pro\Vendor\Google\AccessToken\Revoke
    {
    }
    class WPO_IPS_PRO_Vendor_Google_AccessToken_Verify extends \WPO\WC\PDF_Invoices_Pro\Vendor\Google\AccessToken\Verify
    {
    }
    class WPO_IPS_PRO_Vendor_Google_AuthHandler_AuthHandlerFactory extends \WPO\WC\PDF_Invoices_Pro\Vendor\Google\AuthHandler\AuthHandlerFactory
    {
    }
    class WPO_IPS_PRO_Vendor_Google_AuthHandler_Guzzle6AuthHandler extends \WPO\WC\PDF_Invoices_Pro\Vendor\Google\AuthHandler\Guzzle6AuthHandler
    {
    }
    class WPO_IPS_PRO_Vendor_Google_AuthHandler_Guzzle7AuthHandler extends \WPO\WC\PDF_Invoices_Pro\Vendor\Google\AuthHandler\Guzzle7AuthHandler
    {
    }
    class WPO_IPS_PRO_Vendor_Google_Client extends \WPO\WC\PDF_Invoices_Pro\Vendor\Google\Client
    {
    }
    class WPO_IPS_PRO_Vendor_Google_Collection extends \WPO\WC\PDF_Invoices_Pro\Vendor\Google\Collection
    {
    }
    class WPO_IPS_PRO_Vendor_Google_Exception extends \WPO\WC\PDF_Invoices_Pro\Vendor\Google\Exception
    {
    }
    class WPO_IPS_PRO_Vendor_Google_Http_Batch extends \WPO\WC\PDF_Invoices_Pro\Vendor\Google\Http\Batch
    {
    }
    class WPO_IPS_PRO_Vendor_Google_Http_MediaFileUpload extends \WPO\WC\PDF_Invoices_Pro\Vendor\Google\Http\MediaFileUpload
    {
    }
    class WPO_IPS_PRO_Vendor_Google_Http_REST extends \WPO\WC\PDF_Invoices_Pro\Vendor\Google\Http\REST
    {
    }
    class WPO_IPS_PRO_Vendor_Google_Model extends \WPO\WC\PDF_Invoices_Pro\Vendor\Google\Model
    {
    }
    class WPO_IPS_PRO_Vendor_Google_Service extends \WPO\WC\PDF_Invoices_Pro\Vendor\Google\Service
    {
    }
    class WPO_IPS_PRO_Vendor_Google_Service_Exception extends \WPO\WC\PDF_Invoices_Pro\Vendor\Google\Service\Exception
    {
    }
    class WPO_IPS_PRO_Vendor_Google_Service_Resource extends \WPO\WC\PDF_Invoices_Pro\Vendor\Google\Service\Resource
    {
    }
    class WPO_IPS_PRO_Vendor_Google_Task_Exception extends \WPO\WC\PDF_Invoices_Pro\Vendor\Google\Task\Exception
    {
    }
    interface WPO_IPS_PRO_Vendor_Google_Task_Retryable extends \WPO\WC\PDF_Invoices_Pro\Vendor\Google\Task\Retryable
    {
    }
    class WPO_IPS_PRO_Vendor_Google_Task_Runner extends \WPO\WC\PDF_Invoices_Pro\Vendor\Google\Task\Runner
    {
    }
    class WPO_IPS_PRO_Vendor_Google_Utils_UriTemplate extends \WPO\WC\PDF_Invoices_Pro\Vendor\Google\Utils\UriTemplate
    {
    }
}
