
    tf
                         d dl mZ ddlmZ ddlmZ 	 ddlmZmZmZm	Z	m
Z
mZmZ defdZdefdZd	edefd
Zd	edefdZd	edefdZd	edefdZy# e$ r ddlmZmZmZm	Z	m
Z
mZmZ Y Fw xY w)    )Any   _license)__version__)_get_simd_name_get_simd_path	b64decodeb64decode_as_bytearray	b64encodeb64encode_as_stringencodebytesreturnc                      t         S )zReturns pybase64 license information as a :class:`str` object.

    The result includes libbase64 license information as well.
    r        [/var/www/html/software/conda/envs/higlass/lib/python3.12/site-packages/pybase64/__init__.pyget_license_textr      s	    
 Or   c                  \    t        t                     } | dk7  rt         d|  dS t         dS )zReturns pybase64 version as a :class:`str` object.

    The result reports if the C extension is used or not.
    e.g. `1.0.0 (C extension active - AVX2)`
    fallbackz (C extension active - )z (C extension inactive))r   r	   r   )	simd_names    r   get_versionr   $   s;     ~/0IJ5i[BB]122r   sc                     t        |       S )zEncode bytes using the standard Base64 alphabet.

    Argument ``s`` is a :term:`bytes-like object` to encode.

    The result is returned as a :class:`bytes` object.
    r   r   s    r   standard_b64encoder   0   s     Q<r   c                     t        |       S )au  Decode bytes encoded with the standard Base64 alphabet.

    Argument ``s`` is a :term:`bytes-like object` or ASCII string to
    decode.

    The result is returned as a :class:`bytes` object.

    A :exc:`binascii.Error` is raised if the input is incorrectly padded.

    Characters that are not in the standard alphabet are discarded prior
    to the padding check.
    r
   r   s    r   standard_b64decoder!   :   s     Q<r   c                     t        | d      S )zEncode bytes using the URL- and filesystem-safe Base64 alphabet.

    Argument ``s`` is a :term:`bytes-like object` to encode.

    The result is returned as a :class:`bytes` object.

    The alphabet uses '-' instead of '+' and '_' instead of '/'.
       -_r   r   s    r   urlsafe_b64encoder$   J   s     Qr   c                     t        | d      S )a  Decode bytes using the URL- and filesystem-safe Base64 alphabet.

    Argument ``s`` is a :term:`bytes-like object` or ASCII string to
    decode.

    The result is returned as a :class:`bytes` object.

    A :exc:`binascii.Error` is raised if the input is incorrectly padded.

    Characters that are not in the URL-safe base-64 alphabet, and are not
    a plus '+' or slash '/', are discarded prior to the padding check.

    The alphabet uses '-' instead of '+' and '_' instead of '/'.
    r#   r    r   s    r   urlsafe_b64decoder&   V   s     Qr   N)typingr   r   _versionr   	_pybase64r   r	   r
   r   r   r   r   ImportError	_fallbackstrr   r   bytesr   r!   r$   r&   r   r   r   <module>r.      s      !  *# 	3S 	3# % # %  	 	 	  M  	  	s   A A-,A-