§
    JŠtjC  ã                   ód  — d Z ddlmZmZ ddlZddlZddlZddlZddlZej	        dk    rddl
mZ nddlmZ ej                             dd¦  «                             ¦   «         Zedk    rI ej        ¦   «         d	v rd
dlT dZn… ej        ¦   «         dv rd
dlT dZnm	 d
dlT dZne# e$ r	 d
dlT dZY nXw xY wedk    r	 d
dlT dZnF# e$ r	 d
dlT dZY n9w xY wedk    rd
dlT dZn(edk    rd
dlT dZnedk    rd
dlT dZn edez  ¦  «        ‚dZdZd
ZdZ	 	 	 	 	 	 	 dd„Zddededefd„Zddededefd„Z dS ) z=Python interface to the Zstandard (zstd) compression library.é    )Úabsolute_importÚunicode_literalsN)é   é   )ÚBuffer)Ú
ByteStringÚPYTHON_ZSTANDARD_IMPORT_POLICYÚdefault)ÚCPythoné   )Ú*Úcext)ÚPyPyÚcffiÚcffi_fallbackÚrustzKunknown module import policy: %s; use default, cffi_fallback, cext, or cffiz0.25.0é   Úrbc                 ó(  — |                      dd¦  «        }|dv r|pt          ¦   «         }d}	d}
nU|dv r/|pt          ¦   «         }d}	|}
|
                     d¦  «        s|
dz   }
n"t	          d	                     |¦  «        ¦  «        ‚t          t          d
¦  «        rt          t          t          j
        f}nt          t          f}t          | |¦  «        rt          j        | |
¦  «        }d}nAt          | d¦  «        st          | d¦  «        r| }t          |¦  «        }nt          d¦  «        ‚|	dk    r|                     ||¬¦  «        }n-|	dk    r|                     ||¬¦  «        }nt%          d¦  «        ‚d|vrt'          j        ||||¬¦  «        S |S )a¹  Create a file object with zstd (de)compression.

    The object returned from this function will be a
    :py:class:`ZstdDecompressionReader` if opened for reading in binary mode,
    a :py:class:`ZstdCompressionWriter` if opened for writing in binary mode,
    or an ``io.TextIOWrapper`` if opened for reading or writing in text mode.

    :param filename:
       ``bytes``, ``str``, or ``os.PathLike`` defining a file to open or a
       file object (with a ``read()`` or ``write()`` method).
    :param mode:
       ``str`` File open mode. Accepts any of the open modes recognized by
       ``open()``.
    :param cctx:
       ``ZstdCompressor`` to use for compression. If not specified and file
       is opened for writing, the default ``ZstdCompressor`` will be used.
    :param dctx:
       ``ZstdDecompressor`` to use for decompression. If not specified and file
       is opened for reading, the default ``ZstdDecompressor`` will be used.
    :param encoding:
        ``str`` that defines text encoding to use when file is opened in text
        mode.
    :param errors:
       ``str`` defining text encoding error handling mode.
    :param newline:
       ``str`` defining newline to use in text mode.
    :param closefd:
       ``bool`` whether to close the file when the returned object is closed.
        Only used if a file object is passed. If a filename is specified, the
        opened file is always closed when the returned object is closed.
    ÚtÚ )Úrr   r   r   )ÚwÚwbÚaÚabÚxÚxbr   ÚbzInvalid mode: {!r}ÚPathLikeTÚreadÚwritez6filename must be a str, bytes, file or PathLike object)Úclosefdz2logic error in zstandard.open() handling open mode)ÚencodingÚerrorsÚnewline)ÚreplaceÚZstdDecompressorÚZstdCompressorÚendswithÚ
ValueErrorÚformatÚhasattrÚosÚstrÚbytesr    Ú
isinstanceÚbuiltinsÚopenÚboolÚ	TypeErrorÚstream_readerÚstream_writerÚRuntimeErrorÚioÚTextIOWrapper)ÚfilenameÚmodeÚcctxÚdctxr$   r%   r&   r#   Únormalized_modeÚ	open_modeÚraw_open_modeÚtypesÚinner_fhÚfhs                 úP/var/www/html/CA-Chatbot/venv/lib/python3.11/site-packages/zstandard/__init__.pyr3   r3   a   sÓ  € ðR —l’l 3¨Ñ+Ô+€Oà˜+Ð%Ð%ØÐ)Õ'Ñ)Ô)ˆØˆ	ØˆˆØ	Ð=Ð	=Ð	=ØÐ'•~Ñ'Ô'ˆØˆ	Ø'ˆØ×%Ò% cÑ*Ô*ð 	0Ø)¨CÑ/ˆMøåÐ-×4Ò4°TÑ:Ô:Ñ;Ô;Ð;å�r�:ÑÔð Ý•e�Rœ[Ð)ˆˆå•e�ˆå�(˜EÑ"Ô"ð 	
Ý”= ¨=Ñ9Ô9ˆØˆˆÝ	�˜6Ñ	"Ô	"ð 
¥g¨h¸Ñ&@Ô&@ð 
ØˆÝ�w‘-”-ˆˆåØDñ
ô 
ð 	
ð �CÒÐØ×Ò °'ÐÑ:Ô:ˆˆØ	�cÒ	Ð	Ø×Ò °'ÐÑ:Ô:ˆˆåÐOÑPÔPÐPà
�/Ð!Ð!ÝÔØ˜¨&¸'ð
ñ 
ô 
ð 	
ð ˆ	ó    r   ÚdataÚlevelÚreturnc                 óL   — t          |¬¦  «        }|                     | ¦  «        S )aÌ  Compress source data using the zstd compression format.

    This performs one-shot compression using basic/default compression
    settings.

    This method is provided for convenience and is equivalent to calling
    ``ZstdCompressor(level=level).compress(data)``.

    If you find yourself calling this function in a tight loop,
    performance will be greater if you construct a single ``ZstdCompressor``
    and repeatedly call ``compress()`` on it.
    )rH   )r)   Úcompress)rG   rH   r=   s      rE   rK   rK   ¸   s&   € õ  Ð&Ñ&Ô&€Dà�=Š=˜ÑÔÐrF   Úmax_output_sizec                 óL   — t          ¦   «         }|                     | |¬¦  «        S )aä  Decompress a zstd frame into its original data.

    This performs one-shot decompression using basic/default compression
    settings.

    This method is provided for convenience and is equivalent to calling
    ``ZstdDecompressor().decompress(data, max_output_size=max_output_size)``.

    If you find yourself calling this function in a tight loop, performance
    will be greater if you construct a single ``ZstdDecompressor`` and
    repeatedly call ``decompress()`` on it.
    )rL   )r(   Ú
decompress)rG   rL   r>   s      rE   rN   rN   Ê   s%   € õ ÑÔ€Dà�?Š?˜4°ˆ?ÑAÔAÐArF   )r   NNNNNN)r   )r   )!Ú__doc__Ú
__future__r   r   r2   r9   r.   ÚplatformÚsysÚversion_infoÚcollections.abcr   Útypingr   ÚenvironÚgetÚstripÚ_module_policyÚpython_implementationÚ	backend_cÚbackendÚbackend_cffiÚImportErrorÚbackend_rustÚ__version__Ú_MODE_CLOSEDÚ
_MODE_READÚ_MODE_WRITEr3   Úintr0   rK   rN   © rF   rE   ú<module>rf      sá  ðð DÐ Cà 8Ð 8Ð 8Ð 8Ð 8Ð 8Ð 8Ð 8ð €€€Ø 	€	€	€	Ø 	€	€	€	Ø €€€Ø 
€
€
€
àÔ�wÒÐØ&Ð&Ð&Ð&Ð&Ð&Ð&à+Ð+Ð+Ð+Ð+Ð+ð ”—’Ø$ iñô ç‚%�'„'ð ð �YÒÐØ%€xÔ%Ñ'Ô'¨<Ð7Ð7Ø Ð Ð Ð àˆˆØ	'ˆÔ	'Ñ	)Ô	)¨YÐ	6Ð	6Ø#Ð#Ð#Ð#àˆˆð	Ø$Ð$Ð$Ð$àˆGˆGøØð 	ð 	ð 	Ø'Ð'Ð'Ð'àˆGˆGˆGð	øøøð �Ò&Ð&ðØ Ð Ð Ð àˆˆøØð ð ð Ø#Ð#Ð#Ð#àˆˆˆðøøøð �vÒÐØÐÐÐà€G€GØ�vÒÐØÐÐÐà€G€GØ�vÒÐØÐÐÐà€G€Gà
ˆ+ð	Ø(ñ	)ñô ð ð €à€Ø€
Ø€ð
 
Ø	Ø	ØØØØðTð Tð Tð Tðnð �6ð  #ð ¨eð ð ð ð ð$Bð B�Vð B¨cð B¸%ð Bð Bð Bð Bð Bð Bs$   ÂB" Â"B0Â/B0Â:C ÃCÃC