o
    GÊÆh  ã                	   @  sf  d dl mZ d dlZd dlZd dlmZ d dlZd dlmZ d dl	m
Z
 er*d dlZi dd“dd	“d
d“dd“dd“dd“dd“dd“dd“dd“dd“dd“dd“dd “d!d"“d#d$“d%d&“i d'd(“d)d*“d+d,“d-d.“d/d0“d1d2“d3d“d4d5“d6d7“d8d9“d:d;“d<d=“d>d?“d@dA“dBdC“dDdE“dFdG“¥dHdIi¥ZdJdKdLdMd!dNdOdPdQœZdadVdW„Z	X	Y	dbdcd_d`„ZdS )dé    )ÚannotationsN)ÚTYPE_CHECKING)Úfind_stack_level)ÚVersionÚbs4z4.11.1Úbloscz1.21.0Ú
bottleneckz1.3.4zdataframe-api-compatz0.1.7Úfastparquetz0.8.1Úfsspecz	2022.05.0Úhtml5libz1.1Ú
hypothesisz6.46.1ÚgcsfsÚjinja2z3.1.2ú
lxml.etreez4.8.0Ú
matplotlibz3.6.1Únumbaz0.55.2Únumexprz2.8.0Úodfpyz1.4.1Úopenpyxlz3.0.10Ú
pandas_gbqz0.17.5Úpsycopg2z2.9.3Úpymysqlz1.0.2Úpyarrowz7.0.0Ú
pyreadstatz1.1.5Úpytestz7.3.2Úpyxlsbz1.0.9Ús3fsÚscipyz1.8.1Ú
sqlalchemyz1.4.36Útablesz3.7.0Útabulatez0.8.10Úxarrayz	2022.03.0Úxlrdz2.0.1Ú
xlsxwriterz3.0.3Ú	zstandardz0.17.0Útzdataz2022.1Úqtpyz2.2.0Úpyqt5z5.15.6Úbeautifulsoup4Ú
BottleneckÚJinja2Úlxmlz
pandas-gbqÚ
SQLAlchemyÚpytables)r   r   r   r   Úodfr   r   r   Úmoduleútypes.ModuleTypeÚreturnÚstrc                 C  s>   t | dd ƒ}|d u rtd| j› �ƒ‚| jdkr| ¡ d }|S )NÚ__version__zCan't determine version for r   r   )ÚgetattrÚImportErrorÚ__name__Úsplit)r/   Úversion© r9   úd/var/www/html/HyperOracle/crypto_trader/venv/lib/python3.10/site-packages/pandas/compat/_optional.pyÚget_versionF   s   
r;   Ú ÚraiseÚnameÚextraÚerrorsÚmin_versionú
str | Nonec                 C  s  |dv sJ ‚t  | ¡}|dur|n| }d|› d|› d|› d�}zt | ¡}W n ty8   |dkr5t|ƒ‚Y dS w |  d¡d }|| krL|}tj| }	n|}	|durT|nt |¡}
|
rŒt	|	ƒ}|rŒt
|ƒt
|
ƒk rŒd	|
› d
|› d|› d�}|dkr„tj|ttƒ d� dS |dkrŒt|ƒ‚|S )a9  
    Import an optional dependency.

    By default, if a dependency is missing an ImportError with a nice
    message will be raised. If a dependency is present, but too old,
    we raise.

    Parameters
    ----------
    name : str
        The module name.
    extra : str
        Additional text to include in the ImportError message.
    errors : str {'raise', 'warn', 'ignore'}
        What to do when a dependency is not found or its version is too old.

        * raise : Raise an ImportError
        * warn : Only applicable when a module's version is to old.
          Warns that the version is too old and returns None
        * ignore: If the module is not installed, return None, otherwise,
          return the module, even if the version is too old.
          It's expected that users validate the version locally when
          using ``errors="ignore"`` (see. ``io/html.py``)
    min_version : str, default None
        Specify a minimum version that is different from the global pandas
        minimum version required.
    Returns
    -------
    maybe_module : Optional[ModuleType]
        The imported module, when found and the version is correct.
        None is returned when the package is not found and `errors`
        is False, or when the package's version is too old and `errors`
        is ``'warn'``.
    >   Úwarnr=   ÚignoreNzMissing optional dependency 'z'. z Use pip or conda to install Ú.r=   r   zPandas requires version 'z' or newer of 'z' (version 'z' currently installed).rC   )Ú
stacklevel)ÚINSTALL_MAPPINGÚgetÚ	importlibÚimport_moduler5   r7   ÚsysÚmodulesÚVERSIONSr;   r   ÚwarningsrC   ÚUserWarningr   )r>   r?   r@   rA   Úpackage_nameÚinstall_nameÚmsgr/   ÚparentÚmodule_to_getÚminimum_versionr8   r9   r9   r:   Úimport_optional_dependencyQ   sJ   )
ÿÿýÿÿýrV   )r/   r0   r1   r2   )r<   r=   N)r>   r2   r?   r2   r@   r2   rA   rB   )Ú
__future__r   rI   rK   Útypingr   rN   Úpandas.util._exceptionsr   Úpandas.util.versionr   ÚtypesrM   rG   r;   rV   r9   r9   r9   r:   Ú<module>   s¼    ÿþýüûúùø	÷
öõôóòñðïîíìëêéèçæåäãâá à!ß"Þ#Ý*ø
ü