+
    Îi                         ^ RI t ^ RIt^ RIt^ RIt^ RIt^ RIHt ^ RIH	t	 ^ RI
Ht ^ RIHt ^ RIHtHt ]P"                  ! ]4      t]! RR7       ! R	 R
4      4       tR# )    N)	dataclass)canonicalize_name)PyPI)has_tls)normalize_pathredact_auth_from_urlT)frozenc                   x   a  ] tR t^t o Rt. ROt]V 3R lR l4       tV 3R lR ltV 3R lR lt	V 3R lt
R	tV tR
# )SearchScopez>
Encapsulates the locations that pip is configured to search.
c                P   < V ^8  d   QhRS[ S[,          RS[ S[,          RS[RR/# )   
find_links
index_urlsno_indexreturnr   liststrbool)format__classdict__s   "p/Users/ahmad/.openclaw/workspace/scripts/.venv/lib/python3.14/site-packages/pip/_internal/models/search_scope.py__annotate__SearchScope.__annotate__   s;     '
 '
I'
 I'
 	'

 
'
    c                   . pV F]  pVP                  R4      '       d3   \        V4      p\        P                  P	                  V4      '       d   TpVP                  V4       K_  	  \        4       '       ge   \        P                  ! W$4       FJ  p\        P                  P                  V4      pVP                  R8X  g   K5  \        P                  R4        M	  V ! VVVR7      # )zA
Create a SearchScope object after normalizing the `find_links`.
~httpszipip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.r   r   r   )
startswithr   ospathexistsappendr   	itertoolschainurllibparseurlparseschemeloggerwarning)clsr   r   r   built_find_linkslinknew_linkparseds   &&&&    r   createSearchScope.create   s     ')Ds##)$/77>>(++#D##D)  yy!
E..t4==G+NN%
  F '!
 	
r   c                    < V ^8  d   QhRS[ /# )r   r   r   )r   r   s   "r   r   r   G   s     !  !  ! r   c                   . p. pV P                   '       d   V P                   \        P                  .8w  d   V P                    Fx  p\        V4      p\        P
                  P                  V4      pVP                  '       g)   VP                  '       g   \        P                  R V4       VP                  V4       Kz  	  VP                  RP                  RP                  V4      4      4       V P                  '       dA   VP                  RP                  RP                  R V P                   4       4      4      4       RP                  V4      # )z:The index url "%s" seems invalid, please provide a scheme.zLooking in indexes: {}z, zLooking in links: {}c              3   8   "   T F  p\        V4      x  K  	  R # 5i)N)r   ).0urls   & r   	<genexpr>6SearchScope.get_formatted_locations.<locals>.<genexpr>e   s     S?C2377?s   
)r   r   
simple_urlr   r'   r(   urlsplitr*   netlocr+   r,   r$   r   joinr   )selflinesredacted_index_urlsr9   redacted_index_urlpurls   &     r   get_formatted_locations#SearchScope.get_formatted_locationsG   s     ???t4??2CC%9#%>" ||,,-?@ {{{4;;;NNT*
 $**+=># '& LL(//		:M0NO ???LL&--IIS4??SS
 yyr   c                6   < V ^8  d   QhRS[ RS[S[ ,          /# )r   project_namer   )r   r   )r   r   s   "r   r   r   j   s#     @ @S @T#Y @r   c                b   a R V3R llpV P                    Uu. uF
  q2! V4      NK  	  up# u upi )zReturns the locations found via self.index_urls

Checks the url_name on the main (first in the list) index and
use this url_name to produce all locations
c                0    V ^8  d   QhR\         R\         /# )r   r9   r   r5   )r   s   "r   r   :SearchScope.get_index_urls_locations.<locals>.__annotate__q   s     	 	 	 	r   c                    < \         P                  ! V \        P                  P	                  \        S4      4      4      pVP                  R 4      '       g
   VR ,           pV# )/)	posixpathr@   r'   r(   quoter   endswith)r9   locrI   s   & r   mkurl_pypi_url<SearchScope.get_index_urls_locations.<locals>.mkurl_pypi_urlq   sJ    ..V\\''(9,(GHC <<$$CiJr   )r   )rA   rI   rS   r9   s   &f  r   get_index_urls_locations$SearchScope.get_index_urls_locationsj   s0    	 	 04?s#???s   ,c                ^   < V ^8  d   Qh/ S[ S[,          ;R&   S[ S[,          ;R&   S[;R&   # )r   r   r   r   r   )r   r   s   "r   r   r      s3      S	  S	  N r    Nr   )__name__
__module____qualname____firstlineno____doc__	__slots__classmethodr2   rF   rU   __annotate_func____static_attributes____classdictcell__)r   s   @r   r   r      sE      9I '
 '
R!  ! F@ @s  r   r   )r%   loggingr!   rO   urllib.parser'   dataclassesr   pip._vendor.packaging.utilsr   pip._internal.models.indexr   pip._internal.utils.compatr   pip._internal.utils.miscr   r   	getLoggerrY   r+   r   rX   r   r   <module>rk      sW      	   ! 9 + . I			8	$ $l@ l@ l@r   