Ë
    ��h�  ã                   óÎ   — d dl mZmZ d dlmZ d dlmZmZ d dlm	Z	 d dl
mZ ddlmZmZmZmZ  G d„ d	e«      Z G d
„ de«      Z G d„ de«      Z G d„ de«      Z G d„ de«      Zy)é    )ÚAnyÚOptional)ÚSpecifierSet)ÚNormalizedNameÚcanonicalize_name)Úinstall_req_drop_extras)ÚInstallRequirementé   )Ú	CandidateÚCandidateLookupÚRequirementÚformat_namec                   ó¤   — e Zd Zdeddfd„Zdefd„Zdefd„Zdefd„Z	de
defd	„Zedefd
„«       Zedefd„«       Zdefd„Zdefd„Zdedefd„Zy)ÚExplicitRequirementÚ	candidateÚreturnNc                 ó   — || _         y ©N©r   ©Úselfr   s     ún/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/pip/_internal/resolution/resolvelib/requirements.pyÚ__init__zExplicitRequirement.__init__   s	   € Ø"ˆ�ó    c                 ó,   — t        | j                  «      S r   )Ústrr   ©r   s    r   Ú__str__zExplicitRequirement.__str__   s   € Ü�4—>‘>Ó"Ð"r   c                 óN   — | j                   j                  › d| j                  ›d�S ©Nú(ú))Ú	__class__Ú__name__r   r   s    r   Ú__repr__zExplicitRequirement.__repr__   s%   € Ø—.‘.×)Ñ)Ð*¨!¨D¯N©NÐ+=¸QÐ?Ð?r   c                 ó,   — t        | j                  «      S r   )Úhashr   r   s    r   Ú__hash__zExplicitRequirement.__hash__   s   € Ü�D—N‘NÓ#Ð#r   Úotherc                 óV   — t        |t        «      sy| j                  |j                  k(  S ©NF)Ú
isinstancer   r   ©r   r)   s     r   Ú__eq__zExplicitRequirement.__eq__   s#   € Ü˜%Ô!4Ô5ØØ�~‰~ §¡Ñ0Ð0r   c                 ó.   — | j                   j                  S r   )r   Úproject_namer   s    r   r0   z ExplicitRequirement.project_name   s   € ð �~‰~×*Ñ*Ð*r   c                 ó.   — | j                   j                  S r   )r   Únamer   s    r   r2   zExplicitRequirement.name#   s   € ð �~‰~×"Ñ"Ð"r   c                 ó6   — | j                   j                  «       S r   )r   Úformat_for_errorr   s    r   r4   z$ExplicitRequirement.format_for_error(   s   € Ø�~‰~×.Ñ.Ó0Ð0r   c                 ó   — | j                   d fS r   r   r   s    r   Úget_candidate_lookupz(ExplicitRequirement.get_candidate_lookup+   s   € Ø�~‰~˜tÐ#Ð#r   c                 ó    — || j                   k(  S r   r   r   s     r   Úis_satisfied_byz#ExplicitRequirement.is_satisfied_by.   s   € Ø˜DŸN™NÑ*Ð*r   )r$   Ú
__module__Ú__qualname__r   r   r   r   r%   Úintr(   r   Úboolr.   Úpropertyr   r0   r2   r4   r   r6   r8   © r   r   r   r      s¯   „ ð# )ð #°ó #ð#˜ó #ð@˜#ó @ð$˜#ó $ð1˜Cð 1 Dó 1ð
 ð+˜nò +ó ð+ð ð#�cò #ó ð#ð1 #ó 1ð$ oó $ð+¨ð +°tô +r   r   c                   óº   — e Zd Zdeddfd„Zedefd„«       Zdefd„Zdefd„Z	de
defd	„Zdefd
„Zedefd„«       Zedefd„«       Zdefd„Zdefd„Zdedefd„Zy)ÚSpecifierRequirementÚireqr   Nc                 óª   — |j                   �J d«       ‚|| _        d | _        d | _        t	        d„ | j                  j
                  D «       «      | _        y )NúThis is a link, not a specifierc              3   ó2   K  — | ]  }t        |«      –— Œ y ­wr   ©r   ©Ú.0Úes     r   ú	<genexpr>z0SpecifierRequirement.__init__.<locals>.<genexpr>8   ó   è ø€ Ò Q¸!Ô!2°1×!5Ñ Qùó   ‚)ÚlinkÚ_ireqÚ_equal_cacheÚ_hashÚ	frozensetÚextrasÚ_extras©r   rA   s     r   r   zSpecifierRequirement.__init__3   sJ   € Ø�y‰yÐ ÐCÐ"CÓCÐ ØˆŒ
Ø+/ˆÔØ$(ˆŒ
Ü Ñ Q¸t¿z¹z×?PÑ?PÔ QÓQˆ�r   c                 ó~   — | j                   �| j                   S t        | j                  «      | _         | j                   S r   ©rN   r   rM   r   s    r   Ú_equalzSpecifierRequirement._equal:   ó6   € à×ÑÐ(Ø×$Ñ$Ð$ä §
¡
›OˆÔØ× Ñ Ð r   c                 ó@   — t        | j                  j                  «      S r   )r   rM   Úreqr   s    r   r   zSpecifierRequirement.__str__B   s   € Ü�4—:‘:—>‘>Ó"Ð"r   c                 ót   — | j                   j                  › dt        | j                  j                  «      ›d�S r    )r#   r$   r   rM   rY   r   s    r   r%   zSpecifierRequirement.__repr__E   s.   € Ø—.‘.×)Ñ)Ð*¨!¬C°·
±
·±Ó,?Ð+BÀ!ÐDÐDr   r)   c                 ó`   — t        |t        «      st        S | j                  |j                  k(  S r   )r,   r@   ÚNotImplementedrV   r-   s     r   r.   zSpecifierRequirement.__eq__H   s&   € Ü˜%Ô!5Ô6Ü!Ð!Ø�{‰{˜eŸl™lÑ*Ð*r   c                 ó~   — | j                   �| j                   S t        | j                  «      | _         | j                   S r   ©rO   r'   rV   r   s    r   r(   zSpecifierRequirement.__hash__M   ó0   € Ø�:‰:Ð!Ø—:‘:Ðä˜$Ÿ+™+Ó&ˆŒ
Ø�z‰zÐr   c                 óŽ   — | j                   j                  sJ d«       ‚t        | j                   j                  j                  «      S )Nú'Specifier-backed ireq is always PEP 508)rM   rY   r   r2   r   s    r   r0   z!SpecifierRequirement.project_nameT   s1   € à�z‰z�~Š~ÐHÐHÓHˆ~Ü  §¡§¡×!4Ñ!4Ó5Ð5r   c                 óB   — t        | j                  | j                  «      S r   )r   r0   rR   r   s    r   r2   zSpecifierRequirement.nameY   s   € ä˜4×,Ñ,¨d¯l©lÓ;Ð;r   c                 óô   — t        | «      j                  d«      D �cg c]  }|j                  «       ‘Œ }}t        |«      dk(  ryt        |«      dk(  r|d   S dj	                  |d d «      dz   |d   z   S c c}w )Nú,r   Ú r
   z, éÿÿÿÿz and )r   ÚsplitÚstripÚlenÚjoin)r   ÚsÚpartss      r   r4   z%SpecifierRequirement.format_for_error]   st   € ô
 %(¨£I§O¡O°CÓ$8Ö9˜q�—‘•Ð9ˆÐ9Üˆu‹:˜Š?ØÜ�‹Z˜1Š_Ø˜‘8ˆOà�y‰y˜˜s ˜Ó$ wÑ.°°r±Ñ:Ð:ùò :s   �A5c                 ó   — d | j                   fS r   )rM   r   s    r   r6   z)SpecifierRequirement.get_candidate_lookupj   s   € Ø�T—Z‘ZÐÐr   r   c                 ó*  — |j                   | j                   k(  s!J d|j                   › d| j                   › �«       ‚| j                  j                  sJ d«       ‚| j                  j                  j                  }|j	                  |j
                  d¬«      S )Nz6Internal issue: Candidate is not for this requirement z vs ra   T©Úprereleases)r2   rM   rY   Ú	specifierÚcontainsÚversion)r   r   Úspecs      r   r8   z$SpecifierRequirement.is_satisfied_bym   s   € Ø�~‰~ §¡Ò*ð 	
ØDØ�~‰~Ð˜d 4§9¡9 +ð/ó	
Ð*ð �z‰z�~Š~ÐHÐHÓHˆ~Ø�z‰z�~‰~×'Ñ'ˆØ�}‰}˜Y×.Ñ.¸Dˆ}ÓAÐAr   )r$   r9   r:   r	   r   r=   r   rV   r   r%   Úobjectr<   r.   r;   r(   r   r0   r2   r4   r   r6   r   r8   r>   r   r   r@   r@   2   sÑ   „ ðRÐ/ð R°Dó Rð ð!˜ò !ó ð!ð#˜ó #ðE˜#ó Eð+˜Fð + tó +ð
˜#ó ð ð6˜nò 6ó ð6ð ð<�cò <ó ð<ð; #ó ;ð  oó  ð
B¨ð 
B°tô 
Br   r@   c                   óR   — e Zd ZdZdeddfd„Zedefd„«       Zde	de
fd„Zdefd	„Zy)
Ú!SpecifierWithoutExtrasRequirementz‰
    Requirement backed by an install requirement on a base package.
    Trims extras from its install requirement if there are any.
    rA   r   Nc                 ó¼   — |j                   �J d«       ‚t        |«      | _        d | _        d | _        t        d„ | j                  j                  D «       «      | _        y )NrC   c              3   ó2   K  — | ]  }t        |«      –— Œ y ­wr   rE   rF   s     r   rI   z=SpecifierWithoutExtrasRequirement.__init__.<locals>.<genexpr>…   rJ   rK   )rL   r   rM   rN   rO   rP   rQ   rR   rS   s     r   r   z*SpecifierWithoutExtrasRequirement.__init__€   sO   € Ø�y‰yÐ ÐCÐ"CÓCÐ Ü,¨TÓ2ˆŒ
Ø+/ˆÔØ$(ˆŒ
Ü Ñ Q¸t¿z¹z×?PÑ?PÔ QÓQˆ�r   c                 ó~   — | j                   �| j                   S t        | j                  «      | _         | j                   S r   rU   r   s    r   rV   z(SpecifierWithoutExtrasRequirement._equal‡   rW   r   r)   c                 ó`   — t        |t        «      st        S | j                  |j                  k(  S r   )r,   rw   r\   rV   r-   s     r   r.   z(SpecifierWithoutExtrasRequirement.__eq__�   s&   € Ü˜%Ô!BÔCÜ!Ð!Ø�{‰{˜eŸl™lÑ*Ð*r   c                 ó~   — | j                   �| j                   S t        | j                  «      | _         | j                   S r   r^   r   s    r   r(   z*SpecifierWithoutExtrasRequirement.__hash__”   r_   r   )r$   r9   r:   Ú__doc__r	   r   r=   r   rV   ru   r<   r.   r;   r(   r>   r   r   rw   rw   z   sX   „ ñð
RÐ/ð R°Dó Rð ð!˜ò !ó ð!ð+˜Fð + tó +ð
˜#ô r   rw   c                   ó¬   — e Zd ZdZdededdfd„Zdefd„Zdefd„Z	de
fd	„Zd
edefd„Zedefd„«       Zedefd„«       Zdefd„Zdefd„Zdedefd„Zy)ÚRequiresPythonRequirementz4A requirement representing Requires-Python metadata.rq   Úmatchr   Nc                 óN   — || _         t        |«      | _        d | _        || _        y r   )rq   r   Ú_specifier_stringrO   Ú
_candidate)r   rq   r€   s      r   r   z"RequiresPythonRequirement.__init__Ÿ   s#   € Ø"ˆŒÜ!$ Y£ˆÔØ$(ˆŒ
Øˆ�r   c                 ó    — d| j                   › �S )NzPython )rq   r   s    r   r   z!RequiresPythonRequirement.__str__¥   s   € Ø˜Ÿ™Ð(Ð)Ð)r   c                 ó`   — | j                   j                  › dt        | j                  «      ›d�S r    )r#   r$   r   rq   r   s    r   r%   z"RequiresPythonRequirement.__repr__¨   s*   € Ø—.‘.×)Ñ)Ð*¨!¬C°·±Ó,?Ð+BÀ!ÐDÐDr   c                 ó–   — | j                   �| j                   S t        | j                  | j                  f«      | _         | j                   S r   )rO   r'   r‚   rƒ   r   s    r   r(   z"RequiresPythonRequirement.__hash__«   s;   € Ø�:‰:Ð!Ø—:‘:Ðä˜4×1Ñ1°4·?±?ÐCÓDˆŒ
Ø�z‰zÐr   r)   c                 óŒ   — t        |t        «      sy| j                  |j                  k(  xr | j                  |j                  k(  S r+   )r,   r   r‚   rƒ   r-   s     r   r.   z RequiresPythonRequirement.__eq__²   s@   € Ü˜%Ô!:Ô;Øà×"Ñ" e×&=Ñ&=Ñ=ò 4Ø—‘ 5×#3Ñ#3Ñ3ð	
r   c                 ó.   — | j                   j                  S r   )rƒ   r0   r   s    r   r0   z&RequiresPythonRequirement.project_nameº   s   € à�‰×+Ñ+Ð+r   c                 ó.   — | j                   j                  S r   )rƒ   r2   r   s    r   r2   zRequiresPythonRequirement.name¾   s   € à�‰×#Ñ#Ð#r   c                 ó   — t        | «      S r   ©r   r   s    r   r4   z*RequiresPythonRequirement.format_for_errorÂ   ó   € Ü�4‹yÐr   c                 ó‚   — | j                   j                  | j                  j                  d¬«      r| j                  d fS y)NTro   ©NN)rq   rr   rƒ   rs   r   s    r   r6   z.RequiresPythonRequirement.get_candidate_lookupÅ   s5   € Ø�>‰>×"Ñ" 4§?¡?×#:Ñ#:ÈÐ"ÔMØ—?‘? DÐ(Ð(Ør   r   c                 ó¤   — |j                   | j                  j                   k(  sJ d«       ‚| j                  j                  |j                  d¬«      S )NzNot Python candidateTro   )r2   rƒ   rq   rr   rs   r   s     r   r8   z)RequiresPythonRequirement.is_satisfied_byÊ   sF   € Ø�~‰~ §¡×!5Ñ!5Ò5ÐMÐ7MÓMÐ5ð �~‰~×&Ñ& y×'8Ñ'8ÀdÐ&ÓKÐKr   )r$   r9   r:   r}   r   r   r   r   r   r%   r;   r(   r   r<   r.   r=   r   r0   r2   r4   r   r6   r8   r>   r   r   r   r   œ   s¼   „ Ù>ð  ,ð  °yð  ÀTó  ð*˜ó *ðE˜#ó Eð˜#ó ð
˜Cð 
 Dó 
ð ð,˜nò ,ó ð,ð ð$�cò $ó ð$ð #ó ð oó ð
L¨ð L°tô Lr   r   c                   ó¨   — e Zd ZdZdeddfd„Zdefd„Zdefd„Zde	de
fd	„Zdefd
„Zedefd„«       Zedefd„«       Zdefd„Zdefd„Zdede
fd„Zy)ÚUnsatisfiableRequirementz'A requirement that cannot be satisfied.r2   r   Nc                 ó   — || _         y r   ©Ú_name)r   r2   s     r   r   z!UnsatisfiableRequirement.__init__Õ   s	   € Øˆ�
r   c                 ó    — | j                   › d�S )Nz (unavailable)r“   r   s    r   r   z UnsatisfiableRequirement.__str__Ø   s   € Ø—*‘*�˜^Ð,Ð,r   c                 ó`   — | j                   j                  › dt        | j                  «      ›d�S r    )r#   r$   r   r”   r   s    r   r%   z!UnsatisfiableRequirement.__repr__Û   s)   € Ø—.‘.×)Ñ)Ð*¨!¬C°·
±
«OÐ+>¸aÐ@Ð@r   r)   c                 ó`   — t        |t        «      st        S | j                  |j                  k(  S r   )r,   r‘   r\   r”   r-   s     r   r.   zUnsatisfiableRequirement.__eq__Þ   s&   € Ü˜%Ô!9Ô:Ü!Ð!Ø�z‰z˜UŸ[™[Ñ(Ð(r   c                 ó,   — t        | j                  «      S r   )r'   r”   r   s    r   r(   z!UnsatisfiableRequirement.__hash__ã   s   € Ü�D—J‘JÓÐr   c                 ó   — | j                   S r   r“   r   s    r   r0   z%UnsatisfiableRequirement.project_nameæ   ó   € à�z‰zÐr   c                 ó   — | j                   S r   r“   r   s    r   r2   zUnsatisfiableRequirement.nameê   rš   r   c                 ó   — t        | «      S r   r‹   r   s    r   r4   z)UnsatisfiableRequirement.format_for_errorî   rŒ   r   c                  ó   — y)NrŽ   r>   r   s    r   r6   z-UnsatisfiableRequirement.get_candidate_lookupñ   s   € Ør   r   c                  ó   — yr+   r>   r   s     r   r8   z(UnsatisfiableRequirement.is_satisfied_byô   s   € Ør   )r$   r9   r:   r}   r   r   r   r   r%   ru   r<   r.   r;   r(   r=   r0   r2   r4   r   r6   r   r8   r>   r   r   r‘   r‘   Ò   s²   „ Ù1ð˜^ð °ó ð-˜ó -ðA˜#ó Að)˜Fð ) tó )ð
 ˜#ó  ð ð˜nò ó ðð ð�cò ó ðð #ó ð oó ð¨ð °tô r   r‘   N)Útypingr   r   Ú pip._vendor.packaging.specifiersr   Úpip._vendor.packaging.utilsr   r   Úpip._internal.req.constructorsr   Úpip._internal.req.req_installr	   Úbaser   r   r   r   r   r@   rw   r   r‘   r>   r   r   ú<module>r¥      sa   ðß  å 9ß Iå BÝ <ç FÓ Fô#+˜+ô #+ôLEB˜;ô EBôPÐ(<ô ôD3L ô 3Lôl#˜{õ #r   