ó
    �Rj[  ã                   óP  • S SK r S SKrS SKrS SKrS SKJrJrJrJrJ	r	J
r
  S SKJr  S SKJr  SSKJrJrJrJrJr  / SQrS\4S	 jrSS
 jr " S S\5      r\R4                  " SS9S\4S j5       rS\4S jrS\\\      S\4S jrS\S\4S jrS\S\S\4S jr S\!S\S\S\4S jr"g)é    N)ÚListÚLiteralÚOptionalÚProtocolÚTypeÚcast)Ú
deprecated)Ú	strtoboolé   )ÚBaseDistributionÚBaseEnvironmentÚFilesystemWheelÚMemoryWheelÚWheel)	r   r   r   r   r   Úget_default_environmentÚget_environmentÚget_wheel_distributionÚselect_backendÚreturnc                  ó\  • [         R                  S:¼  a  g[        R                  " [        [
        5         [        [        [        R                  S   5      5      sSSS5        $ ! , (       d  f       O= f[         R                  S:  a  gSSK
n [        [        U R                  SS5      5      $ )a¿  Whether to use the ``importlib.metadata`` or ``pkg_resources`` backend.

By default, pip uses ``importlib.metadata`` on Python 3.11+, and
``pkg_resources`` otherwise. Up to Python 3.13, This can be
overridden by a couple of ways:

* If environment variable ``_PIP_USE_IMPORTLIB_METADATA`` is set, it
  dictates whether ``importlib.metadata`` is used, for Python <3.14.
* On Python 3.11, 3.12 and 3.13, Python distributors can patch
  ``importlib.metadata`` to add a global constant
  ``_PIP_USE_IMPORTLIB_METADATA = False``. This makes pip use
  ``pkg_resources`` (unless the user set the aforementioned environment
  variable to *True*).

On Python 3.14+, the ``pkg_resources`` backend cannot be used.
)é   é   TÚ_PIP_USE_IMPORTLIB_METADATAN©r   é   Fr   )ÚsysÚversion_infoÚ
contextlibÚsuppressÚKeyErrorÚ
ValueErrorÚboolr
   ÚosÚenvironÚimportlib.metadataÚgetattrÚmetadata©Ú	importlibs    ÚKD:\diplom_project\venv\Lib\site-packages\pip/_internal/metadata/__init__.pyÚ_should_use_importlib_metadatar+      s{   € ô" ×Ñ˜7Ó"àÜ	×	Ò	œX¤zÕ	2ä”IœbŸj™jÐ)FÑGÓHÓI÷ 
3×	2×	2úô ×Ñ˜'Ó!ð ãä”˜	×*Ñ*Ð,IÈ4ÓPÓQÐQs   µ%A$Á$
A2c                  ó†   • [         R                  S:  a  g SS Kn [        U R                  S5      (       a  g [        SSSSS9  g )	Nr   r   r   z7Using the pkg_resources metadata backend is deprecated.zpto use the default importlib.metadata backend, by unsetting the _PIP_USE_IMPORTLIB_METADATA environment variablez26.3i4  )ÚreasonÚreplacementÚgone_inÚissue)r   r   r%   Úhasattrr'   r	   r(   s    r*   Ú)_emit_pkg_resources_deprecation_if_neededr2   :   sL   € Ü
×Ñ˜'Ó!ð 	ãäˆy×!Ñ!Ð#@×AÑAð 	ô ØHðPð Øóó    c                   ó@   • \ rS rSr% S\S'   \\   \S'   \\   \S'   Srg)ÚBackendéS   z%Literal["importlib", "pkg_resources"]ÚNAMEÚDistributionÚEnvironment© N)	Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__annotations__r   r   r   Ú__static_attributes__r:   r3   r*   r5   r5   S   s   ‡ Ø
1Ó1ØÐ'Ñ(Ó(Ø�oÑ&Ö&r3   r5   )Úmaxsizec                  óŒ   • [        5       (       a  SSKJn   [        [        U 5      $ [        5         SSKJn  [        [        U5      $ )Nr   r(   )Úpkg_resources)r+   Ú r)   r   r5   r2   rC   )r)   rC   s     r*   r   r   Y   s1   € ä%×'Ñ'Ýä”G˜YÓ'Ð'ä-Ô/åä”˜Ó'Ð'r3   c                  óF   • [        5       R                  R                  5       $ )zøGet the default representation for the current environment.

This returns an Environment instance from the chosen backend. The default
Environment instance should be built from ``sys.path`` and may use caching
to share instance state across calls.
)r   r9   Údefaultr:   r3   r*   r   r   g   s   € ô Ó×'Ñ'×/Ñ/Ó1Ð1r3   Úpathsc                 óH   • [        5       R                  R                  U 5      $ )a  Get a representation of the environment specified by ``paths``.

This returns an Environment instance from the chosen backend based on the
given import paths. The backend must build a fresh instance representing
the state of installed distributions when this function is called.
)r   r9   Ú
from_paths)rG   s    r*   r   r   q   s   € ô Ó×'Ñ'×2Ñ2°5Ó9Ð9r3   Ú	directoryc                 óH   • [        5       R                  R                  U 5      $ )z¼Get the distribution metadata representation in the specified directory.

This returns a Distribution instance from the chosen backend based on
the given on-disk ``.dist-info`` directory.
)r   r8   Úfrom_directory)rJ   s    r*   Úget_directory_distributionrM   {   s   € ô Ó×(Ñ(×7Ñ7¸	ÓBÐBr3   ÚwheelÚcanonical_namec                 óH   • [        5       R                  R                  X5      $ )zþGet the representation of the specified wheel's distribution metadata.

This returns a Distribution instance from the chosen backend based on
the given wheel's ``.dist-info`` directory.

:param canonical_name: Normalized project name of the given wheel.
)r   r8   Ú
from_wheel)rN   rO   s     r*   r   r   „   s   € ô Ó×(Ñ(×3Ñ3°EÓJÐJr3   Úmetadata_contentsÚfilenamec                 óL   • [        5       R                  R                  U UU5      $ )a¯  Get the dist representation of the specified METADATA file contents.

This returns a Distribution instance from the chosen backend sourced from the data
in `metadata_contents`.

:param metadata_contents: Contents of a METADATA file within a dist, or one served
                          via PEP 658.
:param filename: Filename for the dist this metadata represents.
:param canonical_name: Normalized project name of the given dist.
)r   r8   Úfrom_metadata_file_contents)rR   rS   rO   s      r*   Úget_metadata_distributionrV   �   s)   € ô Ó×(Ñ(×DÑDØØØóð r3   )r   N)#r   Ú	functoolsr#   r   Útypingr   r   r   r   r   r   Úpip._internal.utils.deprecationr	   Úpip._internal.utils.miscr
   Úbaser   r   r   r   r   Ú__all__r"   r+   r2   r5   Ú	lru_cacher   r   Ústrr   rM   r   ÚbytesrV   r:   r3   r*   Ú<module>r`      s÷   ðÛ Û Û 	Û 
ß @× @å 6Ý .ç XÕ Xò
€ðR¨ô RôBô2'ˆhô 'ð ×Ò˜TÑ"ð
(˜ó 
(ó #ð
(ð2 ô 2ð:˜8 D¨¡IÑ.ð :°?ô :ðC¨#ð CÐ2Bô CðK %ð K¸ð KÐAQô KðØðàðð ðð õ	r3   