+
    uG9j,                        ^ RI t ^ RIt^ RIt^ RIt^ RIHtHt ^ RIHt ^ RIHt ^ RI	H
t
 ^ RI	Ht ^ RI	Ht ^ RI	Ht ^ R	I	Ht ^ R
I	Ht ^ RI	Ht ^ RI	Ht ^ RI	Ht ^ RIt^ RIHt ^ RIHt ^ RIHtHt ^ RIHt ] P:                  ! ]4      tRt R.t!]"t#]"t$]"t%]"t&R R lt'RRRR/t(R R lt)R R lt*R R lt+R R  lt,R! R" lt-R# )#    N)
EntryPointDistribution)entry_points)version_info)Any)Callable)Dict)List)Optional)Tuple)cast)Set)Union)Table)DefaultPlaceholder)consoleselect_from_list)__version__zanaconda_cli.subcommandcloudc                    V ^8  d   QhR\         R\        \        \        \        \
        P                  \        \        R3,          3,          ,          /# )   groupreturnN)	strr
   r   
PluginName
ModuleNametyperTyperr   r   )formats   "9lib/python3.14/site-packages/anaconda_cli_base/plugins.py__annotate__r!   '   s=      	%
JU<;M5NN
OP    c                 b   \         P                  ^8X  dT   \         P                  ^	8:  d?   \        \        \
        R3,          \        4       P                  V \        4       4      4      pM#\        \        4       P                  V R7      4      p. pV F  p\        P                  ! 4       ;_uu_ 4        \        P                  ! R\        R7       VP                  4       pRRR4       VP                  VP                   VP"                  XVP$                  34       K  	  V#   + '       g   i     LI; i)   .)r   ignore)categoryN)r   majorminorr   r   r   r   gettupleselectwarningscatch_warningsfilterwarningsDeprecationWarningloadappendnamevaluedist)r   found_entry_pointsloadedentry_pointmodules   &    r    _load_entry_points_for_groupr9   '   s    
 Q<#5#5#:!*c/"Nueg.

 #<>#8#8u#8#EFF)$$&&##H7IJ"-"2"2"4F ' 	{''):):FKDTDTUV * M '&s   0-DD.anaconda.comorganaconda.orgc                   V ^8  d   QhR\         P                  R\        \        ,          R\        \        ,          R\        \        ,          R\        \        ,          R\        R\
        \        \         P                  3,          R\        \        \        \        3,          ,          R	\        \        \        \        ,          3,          /	# )
r   ctxathostnameusernamepasswordhelpauth_handlersauth_handlers_dropdownr   )r   Contextr   r   boolr	   r   r
   r   SiteNameSiteDisplayNamer   list)r   s   "r    r!   r!   E   s     \ \	\ 	\ sm	\
 sm\ sm\ \ U[[()\ !x'@!AB\ 8T#Y\r"   c                ~   V'       gi   V'       ga   V'       gY   V P                   P                  P                  RR4      '       g-   V P                   P                  P                  RR4      '       d   RpVf&   \        V4      ^8  d   \	        RV4      pMVw  pVw  rW9  d[   RP                  V U	U
u. uF
  w  rRV
 2NK  	  up
p	4      pV RV 2p\        P                  ! V4       \        P                  ! 4       hWa,          pV'       d   R	.pW3# VR8X  d   . pV'       d   VP                  R
V.4       V'       d   VP                  RV.4       V'       d   VP                  RV.4       R R lpV! . RO4      p\        P                  RV^,            V,           \        n         \        P                  P                  R4      p\        P                  RV \        P                  V^,           R ,           \        n        TpW3# V P                  pV\         P"                  R&   W3# u up
p	i   \         d     L:i ; i)zSelect the appropriate auth handler, and construct its arguments, depending on
user input. Isolated to enable better testing to support legacy anaconda.org login
flows.
siteNtokenr<   zchoose destination: z
* z. is not an allowed value for --at. Use one of --helpz
--hostnamez
--usernamez
--passwordc                F    V ^8  d   QhR\         \        ,          R\        /# )r   subcommandsr   )rJ   r   int)r   s   "r    r!   3_select_auth_handler_and_args.<locals>.__annotate__   s"     	Q 	QS	 	Qc 	Qr"   c                     R P                  V 4      pV  F#  p \        P                  P                  V4      u # 	  \	        RV R24      h  \         d     KD  i ; i)/zMust use a valid subcommand '')joinsysargvindex
ValueError)rQ   subcommands_strss   &  r    _find_subcommand_index=_select_auth_handler_and_args.<locals>._find_subcommand_index   s^    !hh{3O 88>>!,, ! <_<MQOPP " s   A

AAz--atANACONDA_DEFAULT_SITEloginlogoutwhoami)objparamsr)   lenr   rW   r   printr   AbortextendrX   rY   rZ   r[   argsosenviron)r>   r?   r@   rA   rB   rC   rD   rE   default_auth_handler_display_namehandlersmsghandlerrk   legacy_client_argsr^   subcommand_indexat_indexs   $$$$$$$$           r    _select_auth_handler_and_argsrw   E   s   $ 	77>>fd++77>>gt,, 
z%&*!"79OPB '=#!*GR	77:PQ:PqtL>":PQ
 B8*MckkmG zZ =Y 
~	
  %%|X&>?%%|X&>?%%|X&>?	Q 22OP882.236HH	xx~~f-Hxx	*SXXhln-EECH " =	 xx /1

*+=o R\  		s   2H(
'AH. .H<;H<c          	          V ^8  d   QhR\         P                  R\        \        \         P                  3,          R\        \
        \        \        3,          ,          RR/# )r   apprD   rE   r   N)r   r   r	   r   r
   r   rH   rI   )r   s   "r    r!   r!      sQ     < <	<U[[()< !x'@!AB< 
	<r"   c           	        aa R  R lpS UUu. uF  w  rEVNK	  	  ppp\         P                  ! RRV 2VR7      \         P                  ! RRR7      \         P                  ! RRR7      \         P                  ! RRR7      \         P                  ! RRR	4      3R
 VV3R lllpRRRRRR/pR F*  p	V P                  V	RRRR/RW,          R7      p
V
! V4       K,  	  R# u uppi )c          	          V ^8  d   QhR\         P                  R\        R\        \        ,          R\        \        ,          /# )r   r>   ro   r?   r   )r   rF   r   r   r   )r   s   "r    r!   ._add_auth_actions_to_app.<locals>.__annotate__   s5      %-- C Xc] xPS} r"   c                     V P                   P                  R R4      RJ pV'       d<   V P                  4       p\        P                  ! V4       \
        P                  ! 4       hV# )rC   FT)rf   r)   get_helpr   rh   r   Exit)r>   ro   r?   	show_helphelp_strs   &&&  r    handler_help._add_auth_actions_to_app.<locals>.handler_help   sF    JJNN651T9	||~HMM(#**,	r"   NzChoose from )rC   callbackThiddenFrO   z-hc                    V ^8  d   QhR\         P                  R\        \        ,          R\        \        ,          R\        \        ,          R\        \        ,          R\        RR/# )	r   r>   r?   r@   rA   rB   rC   r   N)r   rF   r   r   rG   )r   s   "r    r!   r|      sk     D D]]DSMD 3-D 3-D 3-D D 
Dr"   c                   < V P                   P                  P                  R 4      pV'       d   V'       d   \        R4      h\	        T T;'       g    TVVVVS	S
R7      w  rxV! V P
                  P                  .VOV P                   R7      # )r?   z--at was specified twice)r>   r?   r@   rA   rB   rC   rD   rE   )rk   re   )re   rf   r)   r[   rw   commandr2   )r>   r?   r@   rA   rB   rC   ctx_atrs   rk   rD   rE   s   &&&&&&   r    _action)_add_auth_actions_to_app.<locals>._action   s}     ##D)b7885||'#9	
 S[[--55377CCr"   rb   zSign into Anaconda servicesrc   zSign out from Anaconda servicesrd   zDisplay account informationallow_extra_argsignore_unknown_optionsAuthentication)context_settingsrich_help_panelrC   ra   )r   Optionr   )ry   rD   rE   r   	site_namero   
site_namesr   help_docaction	decorators   &ff        r    _add_auth_actions_to_appr      s     1GG0F	)0FJG "LLj\2\
 #(,,tD"A"',,tD"A"',,tD"A\\%48D D8 	.3/H .KK0$8PRVW,!	   
	 	' .G Hs   Cc                    V ^8  d   QhR\         P                  R\        R\        \        \         P                  3,          R\        \
        \        \        3,          ,          RR/# )r   subcommand_appr2   rD   auth_handler_selectorsr   N)r   r   r   r	   r
   r   rH   rI   )r   s   "r    r!   r!      s[     $6 $6KK$6
$6 
EKK/0$6 !x'@!AB	$6
 
$6r"   c                   WV&   VR8X  d    ^ RI Hp V! 4       pVP                  P                  P	                  4        F]  w  rgTpWgP
                  8w  d   VRVP
                   R2,          pWeP                  8X  d
   VR,          pWV&   VP                  Wh34       K_  	  R# VR8X  d   R# \        P                  V4      ;p
'       d   WV
&   VP                  W34       R# R#   \         d   p	T	hRp	?	ii ; i)zLoad a specific auth handler, populating the dropdown and auth_handlers
mappings as we go. This allows users to dynamically select a specific
implementation when logging in or out.
auth)AnacondaAuthSitesConfigz ()z [cyan]\[default][/cyan]Nr   )anaconda_auth.configr   sitesrootitemsdomaindefault_siter1   ImportErrorAUTH_HANDLER_ALIASESr)   )r   r2   rD   r   r   site_configr   rL   rp   ealiass   &&&&       r    _load_auth_handlerr      s     )$v~	D13K#.#4#4#9#9#?#?#A	(+ bQ$77L 8 88 $??L+9i(&--y.GH $B 
&**40	0	0-e%%un5 
1  	G	s   BC! !C3,C..C3c                    V ^8  d   QhR\         \        \        3,          R\         \        \         \        \        3,          3,          /# )r   itemr   )r   rH   rI   rR   )r   s   "r    r!   r!   
  s:      
/)
*
3h/001r"   c                 T    V w  rR V9   d   ^ V 3# VR8X  d   ^V 3# VR8X  d   ^V 3# ^V 3# )defaultr:   r<    )r   r2   rp   s   &  r    _sort_selectorsr   
  sL     DL 4y~%4y~%4y4yr"   c                <    V ^8  d   QhR\         P                  RR/# )r   ry   r   N)r   r   )r   s   "r    r!   r!     s     2 2U[[ 2T 2r"   c                  a \        \        4      p/ p. pR\        30oV F  w  rErgVe(   SP                  VP                  VP
                  34       \        VP                  P                  \        4      '       d   RVP                  n        RVP                   Uu. uF  qP                  NK  	  up9   d   \        WdW#4       V P                  VVV\        9   RR7       K  	  V'       d7   \        V\        R7      p	\!        V VV	R7       \"        P%                  R	XX4       V P'                  R
RR7      R V3R ll4       p
R# u upi )z"Load all subcommands from plugins.zanaconda-cli-baseNTrb   Plugins)r2   r   r   )key)ry   rD   rE   z Loaded subcommand '%s' from '%s'versionsr   c                    V ^8  d   QhRR/# )r   r   Nr   )r   s   "r    r!   1load_registered_subcommands.<locals>.__annotate__E  s      d r"   c                     < \        R RRR7      p S F  w  rV P                  W4       K  	  \        P                  ! V 4       \        P
                  ! 4       h)PackageVersionz
bold green)header_style)r   add_rowr   rh   r   r   )tablepluginversionplugin_versionss      r    r   -load_registered_subcommands.<locals>.versionsD  sA    iF.OFMM&*  /ejjlr"   )r9   PLUGIN_GROUP_NAMEr   addr2   r   
isinstanceinfono_args_is_helpr   registered_commandsr   	add_typerHIDDEN_PLUGINSsortedr   r   logdebugr   )ry   subcommand_entry_pointsrD   r   r2   r3   r   distributioncmdrE   r   r   s   &          @r    load_registered_subcommandsr     s?   :;LM35MEG	k*-O 6M1^ #!2!2L4H4H IJn))99;MNN26N/>+M+MN+MCxx+MNNm 	>)%	 	 	
 6M* !'(>O!T '#9	
 			.	
 	[[D[) *7 Os   E).loggingrl   rX   r,   importlib.metadatar   r   r   r   typingr   r   r	   r
   r   r   r   r   r   r   
rich.tabler   typer.modelsr   anaconda_cli_base.consoler   r   anaconda_cli_baser   	getLogger__name__r   r   r   r   r   r   rH   rI   r9   r   rw   r   r   r   r   r   r"   r    <module>r      s     	 
  7 +             + ? )!-   

2 ^	> \~<~$6N2r"   