
    ,h                        d Z ddlmZ ddlmZmZmZmZmZm	Z	m
Z
mZmZmZ ddlmZ ddlmZ dgZi edededej&                  d	ed
ej(                  d	e
j*                  dej,                  d	ej.                  dej0                  dej2                  dej4                  d	ej6                  dej8                  dej:                  dej<                  d	ej>                  dede	d
ej@                  dejB                  dejD                  dejF                  dejH                  dej                  dedi	Z% G d de      Z&y)z
    pygments.formatters.terminal
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    Formatter for terminal output with ANSI sequences.

    :copyright: Copyright 2006-2025 by the Pygments team, see AUTHORS.
    :license: BSD, see LICENSE for details.
    )	Formatter)
KeywordNameCommentStringErrorNumberOperatorGenericToken
Whitespace)
ansiformat)get_choice_optTerminalFormatter) r   )graybrightblack)cyan
brightcyan)blue
brightblue)magentabrightmagenta)greenbrightgreen)_cyan__brightcyan_)_green__brightgreen_)r   r   )red	brightred)r   r   )yellowr"   )r!   r!   )**r#   )z	*magenta*z*brightmagenta*)_brightred_r$   c                   >    e Zd ZdZdZddgZg Zd Zd Zd Z	d Z
d	 Zy
)r   a  
    Format tokens with ANSI color sequences, for output in a text console.
    Color sequences are terminated at newlines, so that paging the output
    works correctly.

    The `get_style_defs()` method doesn't do anything special since there is
    no support for common styles.

    Options accepted:

    `bg`
        Set to ``"light"`` or ``"dark"`` depending on the terminal's background
        (default: ``"light"``).

    `colorscheme`
        A dictionary mapping token types to (lightbg, darkbg) color names or
        ``None`` (default: ``None`` = use builtin colorscheme).

    `linenos`
        Set to ``True`` to have line numbers on the terminal output as well
        (default: ``False`` = no line numbers).
    Terminalterminalconsolec                     t        j                  | fi | t        |dddgd      dk(  | _        |j	                  dd       xs t
        | _        |j	                  dd      | _        d| _        y )NbglightdarkcolorschemelinenosFr   )	r   __init__r   darkbggetTERMINAL_COLORSr-   r.   _lineno)selfoptionss     ^/var/www/html/Resume-Scraper/venv/lib/python3.12/site-packages/pygments/formatters/terminal.pyr/   zTerminalFormatter.__init__S   sj    4+7+$Wd&-v%6ADJK";;}d;N{{9e4    c                 0    t        j                  | ||      S N)r   format)r4   tokensourceoutfiles      r6   r:   zTerminalFormatter.format[   s    k7;;r7   c                     | xj                   dz  c_         |j                  d| j                   dk7  xr dxs d| j                   fz         y )N   z%s%04d: 
r   )r3   write)r4   r<   s     r6   _write_linenozTerminalFormatter._write_lineno^   s=    jDLLA$5$>$$D"dll#SSTr7   c                     | j                   j                  |      }|*|j                  }| j                   j                  |      }|*|| j                     S r9   )r-   r1   parentr0   )r4   ttypecolorss      r6   
_get_colorzTerminalFormatter._get_colorb   sV     !!%%e,nLLE%%))%0F n dkk""r7   c           
         | j                   r| j                  |       |D ]  \  }}| j                  |      }|j                  d      D ]  }|r+|j	                  t        ||j                  d                   n |j	                  |j                  d             |j                  d      sb| j                   r| j                  |       |j	                  d         | j                   r|j	                  d       y y )NTr?   )r.   rA   rF   
splitlinesr@   r   rstripendswith)r4   r;   r<   rD   valuecolorlines          r6   format_unencodedz"TerminalFormatter.format_unencodedl   s    <<w'' 	,LE5OOE*E((. 	,MM*UDKK4E"FGMM$++d"34==&||**73d+	,	, <<MM$ r7   N)__name__
__module____qualname____doc__namealiases	filenamesr/   r:   rA   rF   rN    r7   r6   r   r   8   s7    , D9%GI<U# r7   N)'rR   pygments.formatterr   pygments.tokenr   r   r   r   r   r	   r
   r   r   r   pygments.consoler   pygments.utilr   __all__PreprocTypeWordBuiltinFunction	NamespaceClass	Exception	DecoratorVariableConstant	AttributeTagDeletedInsertedHeading
SubheadingPromptr2   r   rV   r7   r6   <module>rn      s   )1 1 1 ' ( 

	+ 1 1	
 OO5 1 LL5 MM9 	LL5 	MM2 	NN7 	JJ4 	NN5 	NN2 	MM0  	MM0!" 	NN5#$ 	HH;%& 2
1OO91OO,:NN,MM9	;;BG 	 G r7   