Ë
    §ŒjC  ã                   ón  — 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                  j                  dd«      j!                  «       Zedk(  r? ej$                  «       d	v rd
dl­ dZnd ej$                  «       dv rd
dl­ dZnI	 d
dl­ dZn@edk(  r		 d
dl­ dZn2edk(  rd
dl­ dZn%edk(  rd
dl­ dZnedk(  rd
dl­ 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 y# e$ r
 d
dl­ dZY Œ8w xY w# e$ r
 d
dl­ dZY ŒJw xY w)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é   c                 ó¶  — |j                  dd«      }|dv r|xs
 t        «       }d}	d}
nG|dv r)|xs
 t        «       }d}	|}
|
j                  d«      s |
dz   }
nt	        d	j                  |«      «      ‚t        t        d
«      rt        t        t        j                  f}nt        t        f}t        | |«      rt        j                  | |
«      }d}n1t        | d«      st        | d«      r| }t        |«      }nt        d«      ‚|	dk(  r|j!                  ||¬«      }n$|	dk(  r|j#                  ||¬«      }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Ú )ÚrÚrbr   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                 ú\/var/www/html/Fitness-lenito-AI-main/venv/lib/python3.12/site-packages/zstandard/__init__.pyr3   r3   a   sj  € ðR —l‘l 3¨Ó+€Oà˜+Ñ%ØÒ)Ô'Ó)ˆØˆ	Ø‰Ø	Ð=Ñ	=ØÒ'”~Ó'ˆØˆ	Ø'ˆØ×%Ñ% cÔ*Ø)¨CÑ/‰MäÐ-×4Ñ4°TÓ:Ó;Ð;äŒr�:ÔÜ”eœRŸ[™[Ð)‰ä”e�ˆä�(˜EÔ"Ü—=‘= ¨=Ó9ˆØ‰Ü	�˜6Ô	"¤g¨h¸Ô&@ØˆÜ�w“-‰äØDó
ð 	
ð �CÒØ×Ñ °'ÐÓ:‰Ø	�cÒ	Ø×Ñ °'ÐÓ:‰äÐOÓPÐPà
�/Ñ!Ü×ÑØ˜¨&¸'ô
ð 	
ð ˆ	ó    ÚdataÚlevelÚreturnc                 ó<   — t        |¬«      }|j                  | «      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                 ó<   — t        «       }|j                  | |¬«      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Ð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ç 8ó Û 	Û 	Û Û 
à×Ñ�wÒÞ&å+ð —‘—‘Ø$ ióç�%ƒ'ð ð �YÒØ%€x×%Ñ%Ó'¨<Ñ7Ü à‰Ø	'ˆ×	'Ñ	'Ó	)¨YÑ	6Ü#à‰ð	Ü$à‰Gð
 �Ò&ðÜ à‰ð
 �vÒÜà�GØ�vÒÜà�GØ�vÒÜà�Gá
ð	Ø(ñ	)óð ð €à€Ø€
Ø€ð
 
Ø	Ø	ØØØØóTñn�6ð  #ð ¨eó ñ$B�Vð B¨cð B¸%ô Bøða ò 	Ü'àŠGð	ûð ò Ü#àŠðús$   Â!D Â/D% ÄD"Ä!D"Ä%D4Ä3D4