
    `i                        d dl mZ d dlmZ ddlmZ ddlmZ erddlmZ 	 ddlm	Z	m
Z
mZmZmZmZmZmZmZmZ n# e$ r ddlmZmZmZmZmZmZmZ Y nw xY wd	ZeZddZddZddZddZddZddZdS )    )annotations)TYPE_CHECKING   _license)_version)Buffer)
_get_simd_flags_compile_get_simd_flags_runtime_get_simd_name_get_simd_path_set_simd_path	b64decodeb64decode_as_bytearray	b64encodeb64encode_as_stringencodebytes)r   r   r   r   r   r   r   )	r   r   r   r   r   standard_b64decodestandard_b64encodeurlsafe_b64decodeurlsafe_b64encodereturnstrc                     t           S )zReturns pybase64 license information as a :class:`str` object.

    The result includes libbase64 license information as well.
    r        e/home/jaya/work/projects/VOICE-AGENT/VIET/agent-env/lib/python3.11/site-packages/pybase64/__init__.pyget_license_textr   3   s	    
 Or   c                 r    t          t                                } | dk    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   __version__)	simd_names    r   get_versionr$   ;   sH     ~//00IJBBiBBBB2222r   sr	   bytesc                     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   r   r   G   s     Q<<r   str | Bufferc                     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   r   r   Q   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   r   r   a   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   r   r   m   s     Qr   N)r   r   )r%   r	   r   r&   )r%   r*   r   r&   )
__future__r   typingr   r   r   _typingr	   	_pybase64r
   r   r   r   r   r   r   r   r   r   ImportError	_fallback__all__r"   r   r$   r   r   r   r   r   r   r   <module>r7      s   " " " " " "                                                    	 	 	                   	
    	3 	3 	3 	3       	 	 	 	     s   ; AA