
    ]h:
                         S SK JrJr  S SKJr  S SKJr  S SKJr  S SK	J
r
  S\\\\4      S\\   4S jrS	\\\4   S\\\\4      S\\   4S
 jrS\\   S\\\4   4S jrS\S\\\4   4S jrg)    )IterableIterator)Any)DependencyGroupResolver)InstallationError)tomllibgroupsreturnc                 N    [        S U  5       5      n[        [        X5      5      $ )z
Parse dependency groups data as provided via the CLI, in a `[path:]group` syntax.

Raises InstallationErrors if anything goes wrong.
c              3   *   #    U  H	  u  pUv   M     g 7fN ).0path_s      X/var/www/html/env/lib/python3.13/site-packages/pip/_internal/req/req_dependency_group.py	<genexpr>*parse_dependency_groups.<locals>.<genexpr>   s      >v)4vs   )_build_resolverslist_resolve_all_groups)r	   	resolverss     r   parse_dependency_groupsr   
   s%     ! >v >>I#I677    r   c           
   #      #    U H*  u  p#X   n S UR                  U5       5        Sh  vN   M,     g N	! [        [        [        4 a  n[	        SU SU SU 35      UeSnAff = f7f)zd
Run all resolution, converting any error from `DependencyGroupResolver` into
an InstallationError.
c              3   8   #    U  H  n[        U5      v   M     g 7fr   )str)r   reqs     r   r   &_resolve_all_groups.<locals>.<genexpr>   s     H,GSC,Gs   Nz+[dependency-groups] resolution failed for 'z' from 'z': )resolve
ValueError	TypeErrorLookupErrorr   )r   r	   r   	groupnameresolveres         r   r   r      s      "?	HH,<,<Y,GHHH " II{3 	#=i[ Ic!& 	s1   A(646A(6A%A  A%%A(pathsc                     0 nU  H`  nX!;   a  M
  [        U5      nSU;  a  [        SU S35      eUS   n[        U[        5      (       d  [        SU S35      e[	        U5      X'   Mb     U$ )Nzdependency-groupsz,[dependency-groups] table was missing from 'z#'. Cannot resolve '--group' option.z+[dependency-groups] table was malformed in z". Cannot resolve '--group' option.)_load_pyprojectr   
isinstancedictr   )r'   r   r   	pyprojectraw_dependency_groupss        r   r   r   &   s    I#D)	i/#>tf E3 3  !**= >/66#=dV D3 3 
 22GH	# $ r   r   c                 F    [        U S5       n[        R                  " U5      sSSS5        $ ! , (       d  f       g= f! [         a    [	        U  S35      e[        R
                   a  n[	        SU  SU 35      UeSnAf[         a  n[	        SU  SU 35      UeSnAff = f)ze
This helper loads a pyproject.toml as TOML.

It raises an InstallationError if the operation fails.
rbNz, not found. Cannot resolve '--group' option.zError parsing z: zError reading )openr   loadFileNotFoundErrorr   TOMLDecodeErrorOSError)r   fpr&   s      r   r)   r)   =   s    E$<<#  W4&(T UVV"" E.b <=1D E.b <=1DEs5   ? .	? 
<? ? +B *A<<B 	BB N)collections.abcr   r   typingr   pip._vendor.dependency_groupsr   pip._internal.exceptionsr   pip._internal.utils.compatr   r   tupler   r   r+   r   r   r)   r   r   r   <module>r<      s    .  A 6 .8DsCx$9 8d3i 8C001;?c3h;Pc]$HSM d38n .E# E$sCx. Er   