
                            S r SSKJr  SSKJr  SSKJr  SSKJr  SSKJr  SSK	J
r
  SSK	Jr   " S	 S
\5      r\" \R                  R                  \R                   " S5      \R                  R"                  \R                   " S5      \R                  R$                  \R                   " S5      \R                  R&                  \R                   " S5      \R                  R(                  \R                   " S5      \R                  R*                  \R                   " S5      \R                  R,                  \R                   " S5      \R                  R.                  \R                   " S5      \R                  R0                  \R                   " S5      0	5      r\" \R                  R                  \R                   " S\
R4                  R6                  / S9\R                  R"                  \R                   " S\
R4                  R6                  / S9\R                  R$                  \R                   " S\
R4                  R8                  \
R:                  R<                  /S9\R                  R&                  \R                   " SS/ S9\R                  R(                  \R                   " SS\
R:                  R>                  /S9\R                  R*                  \R                   " S\
R4                  R@                  / S9\R                  R,                  \R                   " S\
R4                  RB                  / S9\R                  R.                  \R                   " S\
R4                  R@                  S9\R                  R0                  \R                   " S\
R4                  RD                  S90	5      r#\" \R                  R                  \R                   " S\
R4                  RH                  / S9\R                  R"                  \R                   " S\
R4                  RH                  / S9\R                  R$                  \R                   " S\
R4                  RJ                  \
R:                  R<                  /S9\R                  R&                  \R                   " SS/ S9\R                  R(                  \R                   " SS\
R:                  R>                  /S9\R                  R*                  \R                   " S\
R4                  RL                  / S9\R                  R,                  \R                   " S\
R4                  RN                  / S9\R                  R.                  \R                   " S\
R4                  R@                  S9\R                  R0                  \R                   " S\
R4                  RD                  S90	5      r(\" \)" \R                  R                  \R                  R"                  \R                  R$                  \R                  R&                  \R                  R(                  \R                  R*                  \R                  R,                  \R                  R.                  \R                  R0                  4	 V s/ s H/  n U \R!                  SRU                  U RV                  5      5      4PM1     sn 5      5      r,SS jr-gs  sn f )zEMappings from TextTypes to TextAttributes used by the TextTypeParser.    )absolute_import)division)unicode_literals)
properties)console_attr)ansi)textc                   $    \ rS rSrSrS rS rSrg)StyleMapping   z'Mapping of TextTypes to TextAttributes.c                     Xl         g)zCreates a StyleMapping object to be used by a StyledLogger.

Args:
  mappings: (dict[TextTypes, TextAttributes]), the mapping
    to be used for this StyleMapping object.
Nmappings)selfr   s     1lib/googlecloudsdk/core/console/style/mappings.py__init__StyleMapping.__init__   s	     M    c                 @    XR                   ;   a  U R                   U   $ g Nr   )r   keys     r   __getitem__StyleMapping.__getitem__'   s    
mm]]3r   r   N)__name__
__module____qualname____firstlineno____doc__r   r   __static_attributes__ r   r   r   r      s    /r   r   z[{}]z{})colorattrsN)r!   z
[{{}}]({})c                    U =(       d    [         R                  " 5       n [        R                  R                  R
                  R                  5       n[        R                  R                  R                  R                  5       S:X  a  [        $ U(       dg  U R                  5       (       aR  [        R                  R                  R                  R                  5       S:w  a  U R                  S:X  a  [        $ [        $ [        $ )zAGets the style mappings based on the console and user properties.testingoffzxterm-256color)r   GetConsoleAttrr   VALUESaccessibilityscreen_readerGetBoolcorecolor_themeGetSTYLE_MAPPINGS_TESTINGSupportsAnsi_termSTYLE_MAPPINGS_ANSI_256STYLE_MAPPINGS_ANSISTYLE_MAPPINGS_BASIC)console_attributesis_screen_readers     r   GetStyleMappingsr6      s    )J\-H-H-J&&44BBJJL''++-:!!''))**..0E9#33$$  r   r   ).r   
__future__r   r   r   googlecloudsdk.corer   googlecloudsdk.core.consoler   !googlecloudsdk.core.console.styler   r	   objectr   	TextTypesRESOURCE_NAMETextAttributesOUTPUT
USER_INPUTURIURLCOMMANDINFO
PT_SUCCESS
PT_FAILUREr3   ColorsBLUECYANAttrsBOLD	UNDERLINEGREENYELLOWREDr2   COLOR_33COLOR_81COLOR_34	COLOR_167r1   dictformatnamer.   r6   )	text_types   0r   <module>rX      s]   L &  ' * 4 2 26 $ $NN  $"5"5f"=NN4..t4NNt2248NN++D1NN++D1NND//5NN,,T2NNt2248NNt2248
% 
  #NN  $"5"5kk# 	NN4..kk 	NNt22kkzz ! 	NN++ 	NN++zz##$& 	NND//kk 	NN,,kk   	NNt22DKK%% 'NNt22DKKOO %?!$ ! H 'NN  $"5"5kk""# 	NN4..kk"" 	NNt22kk""zz ! 	NN++ 	NN++zz##$& 	NND//kk"" 	NN,,kk## 	NNt22DKK%% 'NNt22DKKOO %?!( ! H &d 	$$!!!!!!	#,$	#	 ##L$7$7	$GHI	#,$ '% &  ,$s   ?6[