
    q"h0o              
          S r SSKrSSKrSSKr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  SSKJr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  SSKJr  SS	KJr  \(       a   SS
K J!r!  SSK"J#r#J$r$  SSK%J&r&  SSK'J(r(  SSK)J*r*  \RV                  " \,5      r-S\.S\/4S jr0S\\\.4   S\S\.S\.S\4
S jr1 " S S\25      r3 " S S\35      r4 " S S\35      r5 " S S\35      r6 " S S\45      r7 " S  S!\45      r8 " S" S#\35      r9 " S$ S%\65      r: " S& S'\65      r; " S( S)\65      r< " S* S+\65      r= " S, S-\35      r> " S. S/\35      r? " S0 S1\35      r@ " S2 S3\35      rA " S4 S5\35      rB " S6 S7\65      rC " S8 S9\65      rD " S: S;\65      rE " S< S=\65      rF " S> S?\65      rG " S@ SA\4\65      rH " SB SC\H\65      rI " SD SE\65      rJ " SF SG\65      rK " SH SI\K5      rL " SJ SK\K5      rM " SL SM\K5      rN " SN SO\K5      rO " SP SQ\K5      rP " SR SS\65      rQ " ST SU\55      rRSV\R                   SW3rT " SX SY\45      rU " SZ S[\45      rV " S\ S]\45      rW " S^ S_\45      rX " S` Sa\45      rY " Sb Sc\45      rZg)dzExceptions used throughout package.

This module MUST NOT try to import from anything within `pip._internal` to
operate. This is expected to be importable from any/all files within the
subpackage and, thus, should not depend on them.
    N)chaingroupbyrepeat)TYPE_CHECKINGDictIteratorListLiteralOptionalUnion)InvalidRequirement)InvalidVersion)ConsoleConsoleOptionsRenderResult)escape)Text)_Hash)RequestResponse)BaseDistribution)Link)InstallRequirementsreturnc                 4    [         R                  " SU 5      S L$ )Nz^[a-z]+(-[a-z]+)*$)rematch)r   s    J/var/www/html/env/lib/python3.13/site-packages/pip/_internal/exceptions.py_is_kebab_caser    '   s    88)1-T99    consoleprefixindentc                    [        U [        5      (       a  U nOUR                  U 5      nUR                  USS9UR                  SU 3SS9R                  UR	                  SS95      -   $ )Nignore)overflow
T)allow_blank)
isinstancer   
render_strjoinsplit)r   r"   r#   r$   texts        r   _prefix_with_indentr/   +   sv     !T!!!$fx87;M;M
VH <N <
d4::$:'() )r!   c                       \ rS rSrSrSrg)PipError<   zThe base pip error. N__name__
__module____qualname____firstlineno____doc____static_attributes__r3   r!   r   r1   r1   <   s    r!   r1   c                      ^  \ rS rSr% Sr\\S'   SSSSS.SSS\\   S	\\\	4   S
\\\\	4      S\\\\	4      S\\\\	4      S\\   SS4U 4S jjjr
S\4S jrS\S\S\4S jrSrU =r$ )DiagnosticPipError@   a  An error, that presents diagnostic information to the user.

This contains a bunch of logic, to enable pretty presentation of our error
messages. Each error gets a unique reference. Each error can also include
additional context, a hint and/or a note -- which are presented with the
main error message in a consistent style.

This is adapted from the error output styling in `sphinx-theme-builder`.
	referenceerrorN)kindr>   	note_stmtlinkr@   zLiteral["error", "warning"]messagecontext	hint_stmtrA   rB   r   c                >  > Uc$  [        U S5      (       d   S5       eU R                  n[        U5      (       d   S5       eXl        X l        X0l        X@l        X`l        XPl        Xpl        [        TU ])  SU R                  R                   SU R                   S35        g )Nr>   zerror reference not provided!z#error reference must be kebab-case!<z: >)hasattrr>   r    r@   rC   rD   rA   rE   rB   super__init__	__class__r5   )	selfr@   r>   rC   rD   rE   rA   rB   rL   s	           r   rK   DiagnosticPipError.__init__M   s     4--N/NN-Ii((O*OO(	"""	1T^^445R7GqIJr!   c                     SU R                   R                   SU R                  < SU R                  < SU R                  < SU R
                  < SU R                  < S3$ )NrG   z(reference=z
, message=z
, context=z, note_stmt=z, hint_stmt=z)>)rL   r5   r>   rC   rD   rA   rE   rM   s    r   __repr__DiagnosticPipError.__repr__k   sl    ''( )* +||& '||& '* +*	
r!   r"   optionsc              #     #    U R                   S:X  a  SOSnSU SU R                    SU R                   S3v   Sv   UR                  (       dg  U R                  bA  [	        U R
                  USU S	3SU S
3S9v   [	        U R                  USU S3SU S3S9v   OF[	        U R
                  USSS9v   O-U R
                  v   U R                  b  Sv   U R                  v   U R                  c  U R                  b  Sv   U R                  b  [	        U R                  USSS9v   U R                  b  [	        U R                  USSS9v   U R                  b  Sv   SU R                   3v   g g 7f)Nr?   redyellow[z bold]z[/]: [bold]z[/] u   ]×[/] u   ]│[/] )r#   r$   u   ]╰─>[/] z]   [/] u   [red]×[/] z  z[magenta bold]note[/]: z      z[cyan bold]hint[/]: zLink: )	r@   r>   
ascii_onlyrD   r/   rC   rA   rE   rB   )rM   r"   rS   colours       r   __rich_console__#DiagnosticPipError.__rich_console__v   s    
 ))w.H&		{+dnn5ESII!!||')LLvhg.vhh/	  *LLvhl3vhh/	  *LL(	  ,,||'ll">>%)CH>>%%0	  >>%%-	  99 H499+&& !s   E,E.)rD   rE   r@   rB   rC   rA   r>   )r5   r6   r7   r8   r9   str__annotations__r   r   r   rK   rQ   r   r   r   r[   r:   __classcell__rL   s   @r   r<   r<   @   s     N
 /6#' 15"K ,K C=	K
 sDy!K %T	*+K E#t),-K E#t),-K smK 
K K<	
# 	
:':'  :' 
	:' :'r!   r<   c                       \ rS rSrSrSrg)ConfigurationError   z"General exception in configurationr3   Nr4   r3   r!   r   rb   rb      s    ,r!   rb   c                       \ rS rSrSrSrg)InstallationError   z%General exception during installationr3   Nr4   r3   r!   r   re   re      s    /r!   re   c                   <   ^  \ rS rSrSrSrS\SS4U 4S jjrSrU =r	$ )	MissingPyProjectBuildRequires   zNRaised when pyproject.toml has `build-system`, but no `build-system.requires`.z'missing-pyproject-build-system-requirespackager   Nc                b   > [         TU ]  S[        U5       3[        S5      S[        S5      S9  g )NCan not process zrThis package has an invalid pyproject.toml file.
The [build-system] table is missing the mandatory `requires` key.;This is an issue with the package mentioned above, not pip.+See PEP 518 for the detailed specification.rC   rD   rA   rE   rJ   rK   r   r   )rM   rj   rL   s     r   rK   &MissingPyProjectBuildRequires.__init__   sA    &vg&78T THI 	 	
r!   r3   
r5   r6   r7   r8   r9   r>   r]   rK   r:   r_   r`   s   @r   rh   rh      s#    X9I	
3 	
4 	
 	
r!   rh   c                   @   ^  \ rS rSrSrSrS\S\SS4U 4S jjrS	rU =r	$ )
InvalidPyProjectBuildRequires   z>Raised when pyproject.toml an invalid `build-system.requires`.z'invalid-pyproject-build-system-requiresrj   reasonr   Nc                h   > [         TU ]  S[        U5       3[        SU 35      S[        S5      S9  g )Nrl   zKThis package has an invalid `build-system.requires` key in pyproject.toml.
rm   rn   ro   rp   )rM   rj   rv   rL   s      r   rK   &InvalidPyProjectBuildRequires.__init__   sJ    &vg&78$$*8- THI 	 	
r!   r3   rr   r`   s   @r   rt   rt      s*    H9I	
3 	
 	
 	
 	
r!   rt   c                   <    \ rS rSrSrSSS\SS4S jrS\4S	 jrS
rg)NoneMetadataError   a   Raised when accessing a Distribution's "METADATA" or "PKG-INFO".

This signifies an inconsistency, when the Distribution claims to have
the metadata file (if not, raise ``FileNotFoundError`` instead), but is
not actually able to produce its content. This may be due to permission
errors.
distr   metadata_namer   Nc                     Xl         X l        g)z
:param dist: A Distribution object.
:param metadata_name: The name of the metadata being accessed
    (can be "METADATA" or "PKG-INFO").
Nr|   r}   )rM   r|   r}   s      r   rK   NoneMetadataError.__init__   s     	*r!   c                 :    SU R                    SU R                   3$ )NzNone z" metadata found for distribution: )r}   r|   rP   s    r   __str__NoneMetadataError.__str__   s#     t))**LTYYKXXr!   r   	r5   r6   r7   r8   r9   r]   rK   r   r:   r3   r!   r   rz   rz      s6    + + + 
	+Y Yr!   rz   c                   &    \ rS rSrSrS\4S jrSrg)UserInstallationInvalid   zBA --user install is requested on an environment without user site.r   c                     g)Nz$User base directory is not specifiedr3   rP   s    r   r   UserInstallationInvalid.__str__   s    5r!   r3   N)r5   r6   r7   r8   r9   r]   r   r:   r3   r!   r   r   r      s    L6 6r!   r   c                   "    \ rS rSrS\4S jrSrg)InvalidSchemeCombinationi  r   c                 x    SR                  S U R                  S S  5       5      nSU SU R                  S    S3$ )Nz, c              3   8   #    U  H  n[        U5      v   M     g 7fN)r]   ).0as     r   	<genexpr>3InvalidSchemeCombination.__str__.<locals>.<genexpr>  s     :>a3q66>s   zCannot set z and z	 together)r,   args)rM   befores     r   r    InvalidSchemeCombination.__str__  s=    :499Sb>::VHE$))B-	BBr!   r3   N)r5   r6   r7   r8   r]   r   r:   r3   r!   r   r   r     s    C Cr!   r   c                       \ rS rSrSrSrg)DistributionNotFoundi	  zCRaised when a distribution cannot be found to satisfy a requirementr3   Nr4   r3   r!   r   r   r   	  s    Mr!   r   c                       \ rS rSrSrSrg)RequirementsFileParseErrori  zDRaised when a general error occurs parsing a requirements file line.r3   Nr4   r3   r!   r   r   r     s    Nr!   r   c                       \ rS rSrSrSrg)BestVersionAlreadyInstalledi  zJRaised when the most up-to-date version of a package is already
installed.r3   Nr4   r3   r!   r   r   r     s    r!   r   c                       \ rS rSrSrSrg)
BadCommandi  z0Raised when virtualenv or a command is not foundr3   Nr4   r3   r!   r   r   r     s    :r!   r   c                       \ rS rSrSrSrg)CommandErrori  z7Raised when there is an error in command-line argumentsr3   Nr4   r3   r!   r   r   r     s    Ar!   r   c                       \ rS rSrSrSrg)PreviousBuildDirErrori  z:Raised when there's a previous conflicting build directoryr3   Nr4   r3   r!   r   r   r     s    Dr!   r   c            	       b   ^  \ rS rSrSr  SS\S\S   S\S   S	S4U 4S
 jjjrS	\4S jrSr	U =r
$ )NetworkConnectionErrori"  zHTTP connection errorN	error_msgresponser   requestr   r   c                    > X l         X0l        Xl        U R                   b=  U R                  (       d,  [        US5      (       a  U R                   R                  U l        [        TU ]  XU5        g)zK
Initialize NetworkConnectionError with  `request` and `response`
objects.
Nr   )r   r   r   rI   rJ   rK   )rM   r   r   r   rL   s       r   rK   NetworkConnectionError.__init__%  sR     !"MM%LL),,==00DLg6r!   c                 ,    [        U R                  5      $ r   )r]   r   rP   s    r   r   NetworkConnectionError.__str__:  s    4>>""r!   )r   r   r   )NN)r5   r6   r7   r8   r9   r]   r   rK   r   r:   r_   r`   s   @r   r   r   "  sY    
 *.'+	77 :&7 )$	7
 
7 7*# # #r!   r   c                       \ rS rSrSrSrg)InvalidWheelFilenamei>  zInvalid wheel filename.r3   Nr4   r3   r!   r   r   r   >  s    !r!   r   c                       \ rS rSrSrSrg)UnsupportedWheeliB  zUnsupported wheel.r3   Nr4   r3   r!   r   r   r   B  s    r!   r   c                   8    \ rS rSrSrS\S\4S jrS\4S jrSrg	)
InvalidWheeliF  zInvalid (e.g. corrupt) wheel.locationnamec                     Xl         X l        g r   r   r   )rM   r   r   s      r   rK   InvalidWheel.__init__I  s     	r!   r   c                 <    SU R                    SU R                   S3$ )NzWheel 'z' located at z is invalid.)r   r   rP   s    r   r   InvalidWheel.__str__M  s    =|LLr!   r   Nr   r3   r!   r   r   r   F  s&    ' C M Mr!   r   c            
       D    \ rS rSrSrSSS\S\S\SS	4
S
 jrS\4S jrSrg	)MetadataInconsistentiQ  a  Built metadata contains inconsistent information.

This is raised when the metadata contains values (e.g. name and version)
that do not match the information previously obtained from sdist filename,
user-supplied ``#egg=`` value, or an install requirement name.
ireqr   fieldf_valm_valr   Nc                 4    Xl         X l        X0l        X@l        g r   r   r   r   r   )rM   r   r   r   r   s        r   rK   MetadataInconsistent.__init__Y  s     	


r!   c                 r    SU R                    SU R                   SU R                  < SU R                  < 3$ )N
Requested z has inconsistent z: expected z, but metadata has r   rP   s    r   r   MetadataInconsistent.__str__a  s=    #5djj\ B

~%8H	
r!   )r   r   r   r   r   r3   r!   r   r   r   Q  s@    (14=@IL	
 
r!   r   c                   <    \ rS rSrSrSSS\SS4S jrS\4S	 jrS
rg)MetadataInvalidih  zMetadata is invalid.r   r   r?   r   Nc                     Xl         X l        g r   r   r?   )rM   r   r?   s      r   rK   MetadataInvalid.__init__k  s    	
r!   c                 :    SU R                    SU R                   3$ )Nr   z has invalid metadata: r   rP   s    r   r   MetadataInvalid.__str__o  s    DII;&=djj\JJr!   )r?   r   r   r3   r!   r   r   r   h  s.    1 # $ K Kr!   r   c                   ^   ^  \ rS rSrSrSrS\S\S\\	\      SS4U 4S	 jjr
S\4S
 jrSrU =r$ )InstallationSubprocessErroris  zA subprocess call failed.zsubprocess-exited-with-errorcommand_description	exit_codeoutput_linesr   Nc                $  > Uc  [        S5      nOU[         R                  " S[        U5       S35      [        SR                  U5      5      -   [         R                  " S5      -   n[        TU ]  S[        U5       SU 3US SS	9  Xl        X l        g )
NzSee above for output.z[red][z lines of output][/]
rX   z[red]\[end of output][/]z[green]z)[/] did not run successfully.
exit code: zNThis error originates from a subprocess, and is likely not a problem with pip.rC   rD   rE   rA   )	r   from_markuplenr,   rJ   rK   r   r   r   )rM   r   r   r   output_promptrL   s        r   rK   $InstallationSubprocessError.__init__x  s      !89M   6#l*;)<<R!STrww|,-.""#>?@  	&!456 7'[* "$ 	 	
 $7 "r!   c                 8    U R                    SU R                   3$ )Nz exited with r   r   rP   s    r   r   #InstallationSubprocessError.__str__  s    **+=8HIIr!   r   )r5   r6   r7   r8   r9   r>   r]   intr   r	   rK   r   r:   r_   r`   s   @r   r   r   s  sV    #.I# !# 	#
 tCy)# 
#@J J Jr!   r   c                   F   ^  \ rS rSrSrS\SS4U 4S jjrS\4S jrSrU =r	$ )	MetadataGenerationFailedi  zmetadata-generation-failedpackage_detailsr   Nc                @   > [         [        U ]  S[        U5      SSS9  g )Nz4Encountered error while generating package metadata.zSee above for details.rm   r   )rJ   r   rK   r   )rM   r   rL   s     r   rK   !MetadataGenerationFailed.__init__  s+    
 	)49J?+.S	 	: 	
r!   c                     g)Nzmetadata generation failedr3   rP   s    r   r    MetadataGenerationFailed.__str__  s    +r!   r3   )
r5   r6   r7   r8   r>   r]   rK   r   r:   r_   r`   s   @r   r   r     s2    ,I

 

 
	

, , ,r!   r   c                   H    \ rS rSrSrS
S jrSS jrS\4S jrS\	4S jr
S	rg)
HashErrorsi  z:Multiple HashError instances rolled into one for reportingr   Nc                     / U l         g r   errorsrP   s    r   rK   HashErrors.__init__  s	    ')r!   c                 :    U R                   R                  U5        g r   )r   append)rM   r?   s     r   r   HashErrors.append  s    5!r!   c                    / nU R                   R                  S S9  [        U R                   S 5       H8  u  p#UR                  UR                  5        UR                  S U 5       5        M:     U(       a  SR                  U5      $ g)Nc                     U R                   $ r   )orderes    r   <lambda>$HashErrors.__str__.<locals>.<lambda>  s    qwwr!   )keyc                     U R                   $ r   r`   r   s    r   r   r     s    r!   c              3   @   #    U  H  oR                  5       v   M     g 7fr   )body)r   r   s     r   r   %HashErrors.__str__.<locals>.<genexpr>  s     9=a=s   r(   rX   )r   sortr   r   headextendr,   )rM   linesclserrors_of_clss       r   r   HashErrors.__str__  sp    ./")$++7L"MCLL"LL9=99 #N 99U##r!   c                 ,    [        U R                  5      $ r   )boolr   rP   s    r   __bool__HashErrors.__bool__  s    DKK  r!   r   r   N)r?   	HashErrorr   N)r5   r6   r7   r8   r9   rK   r   r]   r   r   r   r:   r3   r!   r   r   r     s'    D*" !$ !r!   r   c                   j    \ rS rSr% SrSr\S   \S'   SrSr	\
\S'   S	\4S
 jrS	\4S jrS	\4S jrSrg)r  i  ad  
A failure to verify a package against known-good hashes

:cvar order: An int sorting hash exception classes by difficulty of
    recovery (lower being harder), so the user doesn't bother fretting
    about unpinned packages when he has deeper issues, like VCS
    dependencies, to deal with. Also keeps error reports in a
    deterministic order.
:cvar head: A section heading for display above potentially many
    exceptions of this kind
:ivar req: The InstallRequirement that triggered this error. This is
    pasted on after the exception is instantiated, because it's not
    typically available earlier.

Nr   reqrX   r   r   r   c                 (    SU R                  5        3$ )a  Return a summary of me for display under the heading.

This default implementation simply prints a description of the
triggering requirement.

:param req: The InstallRequirement that provoked this error, with
    its link already populated by the resolver's _populate_link().

    )_requirement_namerP   s    r   r   HashError.body  s     d,,./00r!   c                 @    U R                    SU R                  5        3$ )Nr(   )r   r   rP   s    r   r   HashError.__str__  s    ))Btyy{m,,r!   c                 R    U R                   (       a  [        U R                   5      $ S$ )zReturn a description of the requirement that triggered me.

This default implementation returns long description of the req, with
line numbers

unknown package)r  r]   rP   s    r   r  HashError._requirement_name  s     !%s488}?.??r!   r3   )r5   r6   r7   r8   r9   r  r   r^   r   r   r   r]   r   r   r  r:   r3   r!   r   r  r    sM      +/C&	'.DE3O
1c 
1- -@3 @r!   r  c                        \ rS rSrSrSrSrSrg)VcsHashUnsupportedi  qA hash was provided for a version-control-system-based requirement, but
we don't have a method for hashing those.r   zlCan't verify hashes for these requirements because we don't have a way to hash version control repositories:r3   Nr5   r6   r7   r8   r9   r   r   r:   r3   r!   r   r  r    s    1 E	; 	r!   r  c                        \ rS rSrSrSrSrSrg)DirectoryUrlHashUnsupportedi  r     zUCan't verify hashes for these file:// requirements because they point to directories:r3   Nr  r3   r!   r   r  r    s    1 E	  	r!   r  c                   @    \ rS rSrSrSrSrS\SS4S jrS\4S	 jr	S
r
g)HashMissingi
  z2A hash was needed for a requirement but is absent.   aw  Hashes are required in --require-hashes mode, but they are missing from some requirements. Here is a list of those requirements along with the hashes their downloaded archives actually had. Add lines like these to your requirements files to prevent tampering. (If you did not enable --require-hashes manually, note that it turns on automatically when any package has a hash.)gotten_hashr   Nc                     Xl         g)zY
:param gotten_hash: The hash of the (possibly malicious) archive we
    just downloaded
Nr  )rM   r  s     r   rK   HashMissing.__init__  s
    
 'r!   c                    SSK Jn  S nU R                  (       aH  U R                  R                  (       a  U R                  R                  O[        U R                  SS 5      nSR                  U=(       d    SXR                  5      $ )Nr   )FAVORITE_HASHr  z    {} --hash={}:{}r  )pip._internal.utils.hashesr  r  	is_directoriginal_linkgetattrformatr  )rM   r  rj   s      r   r   HashMissing.body  sl    <88 88%% && TXXud3  %++((-9I9I
 	
r!   r  )r5   r6   r7   r8   r9   r   r   r]   rK   r   r:   r3   r!   r   r  r  
  s3    <E	 	'C 'D '
c 
r!   r  c                        \ rS rSrSrSrSrSrg)HashUnpinnedi4  zLA requirement had a hash specified but was not pinned to a specific
version.   zaIn --require-hashes mode, all requirements must have their versions pinned with ==. These do not:r3   Nr  r3   r!   r   r&  r&  4  s     E	1 	r!   r&  c                   l    \ rS rSrSrSrSrS\\\	\   4   S\\S4   SS	4S
 jr
S\4S jrS\4S jrSrg	)HashMismatchi?  z
Distribution file hash values don't match.

:ivar package_name: The name of the package that triggered the hash
    mismatch. Feel free to write to this after the exception is raise to
    improve its error message.

   zTHESE PACKAGES DO NOT MATCH THE HASHES FROM THE REQUIREMENTS FILE. If you have updated the package versions, please update the hashes. Otherwise, examine the package contents carefully; someone may have tampered with them.allowedgotsr   r   Nc                     Xl         X l        g)z
:param allowed: A dict of algorithm names pointing to lists of allowed
    hex digests
:param gots: A dict of algorithm names pointing to hashes we
    actually got from the files under suspicion
Nr+  r,  )rM   r+  r,  s      r   rK   HashMismatch.__init__Q  s     	r!   c                 J    SU R                  5        SU R                  5        3$ )Nr  :
)r  _hash_comparisonrP   s    r   r   HashMismatch.body[  s)    d,,./s43H3H3J2KLLr!   c                 0  ^ S[         SS4S jn/ nU R                  R                  5        HX  u  p4U" U5      mUR                  U4S jU 5       5        UR	                  SU R
                  U   R                  5        S35        MZ     SR                  U5      $ )a  
Return a comparison of actual and expected hash values.

Example::

       Expected sha256 abcdeabcdeabcdeabcdeabcdeabcdeabcdeabcdeabcde
                    or 123451234512345123451234512345123451234512345
            Got        bcdefbcdefbcdefbcdefbcdefbcdefbcdefbcdefbcdef

	hash_namer   z
chain[str]c                 .    [        U /[        S5      5      $ )Nz    or)r   r   )r5  s    r   hash_then_or3HashMismatch._hash_comparison.<locals>.hash_then_orj  s     )fX&677r!   c              3   F   >#    U  H  nS [        T5       SU 3v   M     g7f)z        Expected  N)next)r   r   r#   s     r   r   0HashMismatch._hash_comparison.<locals>.<genexpr>r  s#     U9a-d6l^1QC@9s   !z             Got        r(   )r]   r+  itemsr   r   r,  	hexdigestr,   )rM   r7  r   r5  	expectedsr#   s        @r   r2  HashMismatch._hash_comparison^  s    	8C 	8L 	8
 $(LL$6$6$8 I!),FLLU9UULL*499Y+?+I+I+K*LBO %9 yyr!   r.  )r5   r6   r7   r8   r9   r   r   r   r]   r	   rK   r   r2  r:   r3   r!   r   r)  r)  ?  sc     E	/ 	S$s)^ 4 Dg<N SW Mc M #  r!   r)  c                       \ rS rSrSrSrg)UnsupportedPythonVersioniy  zIUnsupported python version according to Requires-Python package
metadata.r3   Nr4   r3   r!   r   rB  rB  y  s    r!   rB  c            	       x   ^  \ rS rSrSr   SS\S\\   S\\R                     SS4U 4S jjjr	S\4S	 jr
S
rU =r$ )!ConfigurationFileCouldNotBeLoadedi~  z8When there are errors while loading a configuration fileNrv   fnamer?   r   c                 H   > [         TU ]  U5        Xl        X l        X0l        g r   )rJ   rK   rv   rE  r?   )rM   rv   rE  r?   rL   s       r   rK   *ConfigurationFileCouldNotBeLoaded.__init__  s!     	

r!   c                     U R                   b  SU R                    S3nOU R                  c   eSU R                   S3nSU R                   U 3$ )Nz in .z.
r(   zConfiguration file )rE  r?   rv   )rM   message_parts     r   r   )ConfigurationFileCouldNotBeLoaded.__str__  sU    ::!!$**Q/L::))) B/L$T[[M,@@r!   )r?   rE  rv   )zcould not be loadedNN)r5   r6   r7   r8   r9   r]   r   configparserErrorrK   r   r:   r_   r`   s   @r   rD  rD  ~  sd    B ,#.2			 }	 **+		
 
	 	A A Ar!   rD  zThe Python environment under z is managed externally, and may not be
manipulated by the user. Please use specific tooling from the distributor of
the Python installation to interact with this environment instead.
c                      ^  \ rS rSrSrSrS\\   SS4U 4S jjr\	S\
\   4S j5       r\S	\\R                  \4   SS 4S
 j5       rSrU =r$ )ExternallyManagedEnvironmenti  a<  The current environment is externally managed.

This is raised when the current environment is externally managed, as
defined by `PEP 668`_. The ``EXTERNALLY-MANAGED`` configuration is checked
and displayed when the error is bubbled up to the user.

:param error: The error message read from ``EXTERNALLY-MANAGED``.
zexternally-managed-environmentr?   r   Nc                 t   > Uc  [        [        5      nO[        U5      n[        TU ]  SUS[        S5      S9  g )Nz&This environment is externally managedzIf you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.z+See PEP 668 for the detailed specification.ro   )r   !_DEFAULT_EXTERNALLY_MANAGED_ERRORrJ   rK   )rM   r?   rD   rL   s      r   rK   %ExternallyManagedEnvironment.__init__  sE    =<=G5kG<J
 HI 	 
	
r!   c               #      #     [         R                  n [         R                  " U 5      u  pUb4  SU 3v   S H'  nUR	                  U5      u  pEnU(       d  M   SU 3v   M)     Sv   g ! [         a    S n NJf = f7f)NzError-)-_rM  )localeLC_MESSAGES	getlocaleAttributeError	partition)categorylangrU  sepr   founds         r   #_iter_externally_managed_error_keys@ExternallyManagedEnvironment._iter_externally_managed_error_keys  s     	1))H &&x0GD4&/!!#'>>##6 qvh''	 "
   	'"&D	's(   A:A( AA:(A74A:6A77A:configc                    [         R                  " S S9n UR                  USS9  US   nU R                  5        H1  n[        R
                  " [        5         U " X4   5      sS S S 5        s  $    U " S 5      $ ! , (       d  f       ML  = f! [         a     N&[        [        [         R                  4 a2    SSK
Jn  [        R                  U5      n[        R                  SXS9   Nuf = f)	N)interpolationzutf-8)encodingzexternally-managedr   )VERBOSEzFailed to read %s)exc_info)rL  ConfigParserreadr_  
contextlibsuppressKeyErrorOSErrorUnicodeDecodeErrorParsingErrorpip._internal.utils._logre  loggerisEnabledForwarning)r   ra  parsersectionr   re  rf  s          r   from_config(ExternallyManagedEnvironment.from_config  s    
 **>	KKKK112G>>@((2w|, 32 A 4y 32 	+\-F-FG 	K8**73HNN.NJ		Ks7   AB
 
A8"B
 .B
 8
B	B
 

C&AC&%C&r3   )r5   r6   r7   r8   r9   r>   r   r]   rK   staticmethodr   r_  classmethodr   pathlibPathru  r:   r_   r`   s   @r   rO  rO    sy     1I
hsm 
 
" #  * gllC'( 
( r!   rO  c                   0   ^  \ rS rSrSrSU 4S jjrSrU =r$ )UninstallMissingRecordi  zuninstall-no-record-filec                  > UR                   nU(       a  US:X  a8  UR                   SUR                   3n[        R                  " SSU 3S45      nO[        SU S35      n[
        TU ]  [        SU 35      S	UR                   S
3US9  g )Npipz==z,You might be able to recover from this via: z(pip install --force-reinstall --no-deps greenzThe package was installed by z3. You should check if it can uninstall the package.Cannot uninstall zAThe package's contents are unknown: no RECORD file was found for rI  rC   rD   rE   )	installerraw_nameversionr   assemblerJ   rK   )rM   distributionr  dephintrL   s        r   rK   UninstallMissingRecord.__init__  s     **	I.!**+2l.B.B-CDC==>;C5A7KD
 /	{ ;D DD
 	,\N;<00<0E0E/FaI  	 	
r!   r3   r  r   r   Nr5   r6   r7   r8   r>   rK   r:   r_   r`   s   @r   r|  r|    s    *I
 
r!   r|  c                   0   ^  \ rS rSrSrSU 4S jjrSrU =r$ )LegacyDistutilsInstalli   z%uninstall-distutils-installed-packagec                <   > [         TU ]  [        SU 35      SS S9  g )Nr  zIt is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.r  )rJ   rK   r   )rM   r  rL   s     r   rK   LegacyDistutilsInstall.__init__  s/    ,\N;<  	 	
r!   r3   r  r  r`   s   @r   r  r     s    7I	
 	
r!   r  c                   F   ^  \ rS rSrSrSSS\\\4   SS4U 4S jjrS	r	U =r
$ )
InvalidInstalledPackagei  zinvalid-installed-packager|   r   invalid_excr   Nc          
         > UR                   n[        U[        5      (       a  SnOSn[        TU ]  [        SU S3U(       a  SU< S3OS-   SU SUR                  S	    3-   5      S
U S3SS9  g )Nrequirementr  z!Cannot process installed package r:  zin rX   zbecause it has an invalid r1  r   z.Starting with pip 24.1, packages with invalid zs can not be processed.z,To proceed this package must be uninstalled.r  )installed_locationr*   r   rJ   rK   r   r   )rM   r|   r  r  invalid_typerL   s        r   rK    InvalidInstalledPackage.__init__  s     "44k#566(L$L3D6;4FS+.a0BP.|nC@P@PQR@S?TUV A. 79 E 	 	
r!   r3   )r5   r6   r7   r8   r>   r   r   r   rK   r:   r_   r`   s   @r   r  r    s;    +I
 !
 -~=>	

 

 
r!   r  c            
       H   ^  \ rS rSrSrSrSSS\S\S\S	S
4
U 4S jjrSrU =r	$ )IncompleteDownloadErrori-  z]Raised when the downloader receives fewer bytes than advertised
in the Content-Length header.zincomplete-downloadrB   r   receivedexpectedretriesr   Nc                   > SSK Jn  U" U5       SU" U5       3nU(       a	  SU S3nSnOSnSn[        S	U S
U S35      n	[        T
U ]  U	SUR
                   3USS9  g )Nr   )format_size/zafter z
 attempts z7Use --resume-retries to configure resume attempt limit.rX   z>Consider using --resume-retries to enable download resumption.zDownload failed z(because not enough bytes were received ()zURL: z4This is an issue with network connectivity, not pip.r   )pip._internal.utils.miscr  r   rJ   rK   redacted_url)rM   rB   r  r  r  r  download_statusretry_statusr  rC   rL   s             r   rK    IncompleteDownloadError.__init__3  s     	9(231[5J4KL#G9J7LLDLSD|n --.a1

 	D--./L	 	 	
r!   r3   )
r5   r6   r7   r8   r9   r>   r   rK   r:   r_   r`   s   @r   r  r  -  sA    % &I

&)
58
FI
	
 
r!   r  c                   4   ^  \ rS rSrSrSrSU 4S jjrSrU =r$ )ResolutionTooDeepErroriM  zHRaised when the dependency resolver exceeds the maximum recursion depth.zresolution-too-deepc                 &   > [         TU ]  SSSSS9  g )Nz,Dependency resolution exceeded maximum depthzpPip cannot resolve the current dependencies as the dependency graph is too complex for pip to solve efficiently.zqTry adding lower bounds to constrain your dependencies, for example: 'package>=2.0.0' instead of just 'package'. z_https://pip.pypa.io/en/stable/topics/dependency-resolution/#handling-resolution-too-deep-errors)rC   rD   rE   rB   )rJ   rK   )rM   rL   s    r   rK   ResolutionTooDeepError.__init__R  s)    B?L s 	 	
r!   r3   r  )	r5   r6   r7   r8   r9   r>   rK   r:   r_   r`   s   @r   r  r  M  s    R%I
 
r!   r  )[r9   rL  ri  rV  loggingry  r   sys	itertoolsr   r   r   typingr   r   r   r	   r
   r   r   "pip._vendor.packaging.requirementsr   pip._vendor.packaging.versionr   pip._vendor.rich.consoler   r   r   pip._vendor.rich.markupr   pip._vendor.rich.textr   hashlibr   pip._vendor.requests.modelsr   r   pip._internal.metadatar   pip._internal.models.linkr   pip._internal.req.req_installr   	getLoggerr5   rp  r]   r   r    r/   	Exceptionr1   r<   rb   re   rh   rt   rz   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r  r  r  r  r&  r)  rB  rD  r#   rQ  rO  r|  r  r  r  r  r3   r!   r   <module>r     s        	 
 , , P P P A 8 J J * &=7.@			8	$:c :d :)T3Y)) 	)
 ) 
)"y p' p'l- -0 0
$6 
"
$6 
"Y Y86/ 6C0 CN, NO!2 O( 
; ;B8 BEH E#X #8", "( M$ M
, 
.K' K&J"46G &JR,:<M ,&!" !.+@! +@\ ) '
) '
T9 7 9 7 t0 
A(: A.)!jj\ *% !F#5 FR
/ 
6
/ 

0 
<
0 
@
/ 
r!   