+
    Îi                        R t ^ RIH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 ^ RIHt R	 R
 ltR R ltR R ltR# )zALogic that powers autocompletion installed by ``pip completion``.)annotationsN)Iterable)chain)Any)create_main_parser)commands_dictcreate_command)get_default_environmentc                   V ^8  d   QhRR/# )   returnNone )formats   "o/Users/ahmad/.openclaw/workspace/scripts/.venv/lib/python3.14/site-packages/pip/_internal/cli/autocompletion.py__annotate__r      s     p pd p    c            
       a R\         P                  9  d   R# \         P                  P                  R4      '       d&   \         P                  P                  R4      '       g   R# \         P                  R,          P                  4       R,          o\	        \         P                  R,          4      p  SV ^,
          ,          p\        4       p\        \        4      p. pRpS F  pWc9   g   K  Tp M	  VEe   VR8X  d   \        P                  ! ^4       VP                  R4      '       * ;'       d    VR9   pV'       d   \        4       pVP                  4       p	VP                  R	R
7       U
u. uFL  p
V
P                  P                  V	4      '       g   K&  V
P                  SR,          9  g   K@  V
P                  NKN  	  pp
V'       d+   V F  p
\!        V
4       K  	  \        P                  ! ^4       VP                  R4      '       * ;'       d    VR8H  pV'       d5   \#        VR4       F  p\!        V4       K  	  \        P                  ! ^4       \%        V4      pVP&                  P(                   Fd  pVP*                  \,        P.                  8w  g   K$  TVP0                  VP2                  ,            Uu. uF  pVVP4                  3NK  	  up,          pKf  	  S^V ^,
            Uu. uF  pVP                  R4      ^ ,          NK  	  ppV UUu. uF  w  ppVV9  g   K  VV3NK  	  pppV UUu. uF#  w  ppVP                  V4      '       g   K  VV3NK%  	  ppp\7        SV VP&                  P(                  4      pV'       d   \#        VV4      pV Uu. uF  q^ 3NK  	  ppV FD  pV^ ,          pV^,          '       d   V^ ,          R,          R8X  d
   VR,          p\!        V4       KF  	  \8        ;QJ d-    V3R lVP;                  4        4       F  '       g   K   R	M"	  RM! V3R lVP;                  4        4       4      '       g<   VP;                  4        F'  pVP                  V4      '       g   K  \!        V4       K)  	  EM(VP<                   Uu. uF  pVP>                  NK  	  ppVPA                  VP>                  4       \B        PD                  ! V4      pVP                  R4      '       dO   V FG  pVP*                  \,        P.                  8w  g   K$  W?P0                  VP2                  ,           ,          pKI  	  M*\7        SV V4      pV'       d   \        \#        VV4      4      p\!        RPG                  V Uu. uF  pVP                  V4      '       g   K  VNK   	  up4      4       \        P                  ! ^4       R#   \
         d    Rp ELi ; iu up
i u upi u upi u uppi u uppi u upi u upi u upi )z:Entry Point for completion of main and subcommand options.PIP_AUTO_COMPLETEN
COMP_WORDS
COMP_CWORD:   NN help-T)
local_onlyinstallpath=:Nr   Nz--c              3  ,   <"   T F	  qS9   x  K  	  R # 5iNr   ).0namecwordss   & r   	<genexpr>autocomplete.<locals>.<genexpr>l   s     G.Fd6>.Fs   F )show	uninstall)$osenvirongetsplitint
IndexErrorr   listr   sysexit
startswithr	   loweriter_installed_distributionscanonical_nameprintauto_complete_pathsr   parseroption_list_allr   optparseSUPPRESS_HELP
_long_opts_short_optsnargsget_path_completion_typeanyhandler_mapoption_groupsoption_listappendr   from_iterablejoin)cwordcurrentr8   subcommandsoptionssubcommand_namewordshould_list_installedenvlcdist	installedshould_list_installablesr   
subcommandoptopt_strx	prev_optsvkcompletion_typepathsoption	opt_labelhandler_nameioptsflattened_optsr#   s                                @r   autocompleterb      s    "**, ::>>,''rzz~~l/K/KZZ%++-b1F

<()E#  !F}%KG #'O"O 
 "f$HHQK$+$6$6s$; ; !
 !
 T
 A
 !)+CB  <<<MMD&&11"5 $ ''vbz9 $##M   %D$K & ""3''HHOy,H 	! $+GV<d =HHQK#O4
$$44Cxx81118;8X8XWWcii(8X  5 /5Q.CD.CQWWS\!__.C	D(/Ffq!1I3E6Aq6F&-Ggdag1F6Aq6gG2--
 'AE-23UTayUG3Fq	IayyVAYr]d2S 	)  sGj.D.D.FGsssGj.D.D.FGGG * 6 6 8**733,' !9 (.';';<';!';<F&&',,T2c""%88x555>>COO#CCK &
 7vunUO"#6w#PQchh;H;a!,,w2G;HIJHHQKG  40
 EFG 4  = Is`   2W -#WW/W7W!)!W&W+"W+2W1W1W7W<XXWWc               (    V ^8  d   QhRRRRRRRR/# )	r   r#   z	list[str]rG   r-   r`   zIterable[Any]r   z
str | Noner   )r   s   "r   r   r      s,      !)6r   c                n   V^8  g%   W^,
          ,          P                  R4      '       g   R# V EF   pVP                  \        P                  8X  d   K%  \	        V4      P                  R4       F  pW^,
          ,          P                  R4      ^ ,          V8X  g   K/  VP                  '       do   \        ;QJ d5    R VP                  P                  R4       4       F  '       g   K   RM*	  RM&! R VP                  P                  R4       4       4      '       g   K  VP                  u u # 	  EK  	  R# )a8  Get the type of path completion (``file``, ``dir``, ``path`` or None)

:param cwords: same as the environmental variable ``COMP_WORDS``
:param cword: same as the environmental variable ``COMP_CWORD``
:param opts: The available options to check
:return: path completion type (``file``, ``dir``, ``path`` or None)
r   N/r   c              3  *   "   T F	  qR9   x  K  	  R# 5i)r   N)r   filedirr   )r!   rV   s   & r   r$   +get_path_completion_type.<locals>.<genexpr>   s      *:PQ00:Ps   TF)r2   r   r:   r;   strr,   metavarr@   )r#   rG   r`   rT   os   &&&  r   r?   r?      s     qyqy)44S9988x---S$Aai &&s+A.!3{{{cc *:=++:K:KC:P*ccc *:=++:K:KC:P* ' ' ;;& %  r   c               $    V ^8  d   QhRRRRRR/# )r   rH   rj   rZ   r   zIterable[str]r   )r   s   "r   r   r      s!     . . .s .} .r   c              #  (  a"   \         P                  P                  V 4      w  po\         P                  P                  V4      p\         P                  ! V\         P
                  4      '       g   R# \         P                  P                  S4      oV3R l\         P                  ! V4       4       pV F  p\         P                  P                  W54      p\         P                  P                  \         P                  P                  W%4      4      pVR8w  d,   \         P                  P                  V4      '       d   Vx  K  \         P                  P                  V4      '       g   K  \         P                  P                  VR4      x  K  	  R# 5i)a\  If ``completion_type`` is ``file`` or ``path``, list all regular files
and directories starting with ``current``; otherwise only list directories
starting with ``current``.

:param current: The word to be completed
:param completion_type: path completion type(``file``, ``path`` or ``dir``)
:return: A generator of regular files and/or directories
Nc              3     <"   T F=  p\         P                  P                  V4      P                  S4      '       g   K9  Vx  K?  	  R # 5ir    )r)   r   normcaser2   )r!   rV   filenames   & r   r$   &auto_complete_paths.<locals>.<genexpr>   s3      +arww/?/?/B/M/Mh/W+s
   6A
Arh   r   )r)   r   r,   abspathaccessR_OKrp   listdirrF   isfileisdir)	rH   rZ   	directorycurrent_path	file_listfrT   	comp_filerq   s	   &&      @r   r7   r7      s      ''--0Ix77??9-L99\277++ww)H::l+I ggll<+GG$$RWW\\)%?@	 e#s(;(;OWW]]3'',,y"-- s   D9F=(F*(F)__doc__
__future__r   r:   r)   r0   collections.abcr   	itertoolsr   typingr   pip._internal.cli.main_parserr   pip._internal.commandsr   r   pip._internal.metadatar	   rb   r?   r7   r   r   r   <module>r      s7    G "  	 
 $   < @ :pf0.r   