
    !<i                     p    d dl Z d dlZd dlmZ d dlmZ d dlmZ d Zd Z	d Z
edk    r e
             dS dS )	    N)Console)RestructuredText)TerminalThemec                     | ||fS )a  
    Function to represent color in RGB format.

    Parameters
    ----------
    r : int
        Red color value.
    g : int
        Green color value.
    b : int
        Blue color value.

    Returns
    -------
    tuple
        A tuple representing the RGB color.
     )rgbs      /Users/kimhansen/Desktop/03 Workspace/ceo-agents/chl-effectiveness/mcp-servers/whoop/.venv/lib/python3.11/site-packages/rich_rst/__main__.pyrgbr      s    $ q!9    c                     t          j        d          } |                     ddd           |                     ddd	d
dd           |                     dddt          dd           |                     ddt          ddd           |                     ddt          ddd           |                     ddd t          d!d"           |                     d#d$t          d%d&d'           |                     d(d)d*d
d&d+           |                     d,d-d
d.d&d/0           |                     d1d2d
d3d&d40           |                     d5d6t          d7d8d9           |                     d:d;d
d<d&d=0           |                                 S )>zParse command line arguments.z4Render reStructuredText to the console with rich-rst)descriptionpathPATHzpath to file, or - for stdin)metavarhelpz-cz--force-colorforce_color
store_trueNzforce color for non-terminals)destactiondefaultr   z-ez
--encodingencodingzutf-8z"encoding for file (default: utf-8))r   typer   r   z-wz--widthwidthz*width of output (default will auto-detect))r   r   r   r   z-hwz--html-width
html_width1675pxz&width of html output (default: 1675px)z-tz--code-theme
code_thememonokaizpygments code themez-htmlz--save-htmlhtml_filenameFzsave to htmlz-rz--wrap	word_wrapzword wrap long linesz-sz--soft-wrap	soft_wrapzenable soft wrapping mode)r   r   r   r   z-glz--guess-lexerguess_lexerzEWhether to guess the lexer for code blocks without specified languagez-dlz--default-lexerdefault_lexerpythonzbThe default lexer for code blocks without specified language if no lexer could be guessed or foundz-hez--hide-errorshide_errorszWhether to hide errors or not)argparseArgumentParseradd_argumentstrint
parse_args)parsers    r   parse_argumentsr.      s,   $1ghhhF
5STTT
oM,`d  lK  L  L  L
l#w  ^B  C  C  C
ic  UA  B  B  B
~ClT\  dL  M  M  M
n<cS\cxyyy
SX]drsss
h[W\cyzzz
mL{\a  iD  E  E  E
|-af  nu  v  v  v
0sZb  jN  O  O  O
|-af  nM  N  N  Nr   c                     t                      } t          t          ddd          t          ddd          t          ddd          t          ddd          t          dd	d
          t          dd	d          t          ddd          t          ddd          t          ddd          t          ddd          gt          ddd          t          ddd          t          dd	d
          t          dd	d          t          ddd          t          ddd          t          ddd          t          ddd          g          }d| j         d}t	          | j        | j        t          | j                            }| j	        dk    rt          j                                        n-t          | j	        d| j                                                  }t          || j        | j        | j        | j         | j	        dk    r| j	        nd          }|                    || j                   | j        r|                    | j        ||           dS dS ) zThe main function.(   *   6            U   P      {                  y               z    <!DOCTYPE html>
    <head>
    <meta charset="UTF-8">
    <style>
    {stylesheet}
    body {
        color: {foreground};
        background-color: {background};
        max-width: a  
    }
    pre {
        white-space: pre-wrap;       /* Since CSS 2.1 */
        white-space: -moz-pre-wrap;  /* Mozilla, since 1999 */
        white-space: -pre-wrap;      /* Opera 4-6 */
        white-space: -o-pre-wrap;    /* Opera 7 */
        word-wrap: break-word;       /* Internet Explorer 5.5+ */
    }
    ::-moz-selection { /* Code for Firefox */
      background: #44475a;
    }
    ::selection {
      background: #44475a;
    }
    </style>
    </head>
    <html>
    <body>
        <code>
            <pre style="font-family:ui-monospace,'Fira Code',Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace">{code}</pre>
        </code>
    </body>
    </html>
    )force_terminalr   record-rt)r   z<stdin>)r   r#   r$   show_errorsfilename)r"   )themecode_formatN)r.   r   r   r   r   r   r   boolr    r   sysstdinreadopenr   r   r   r#   r$   r&   printr"   	save_html)argsDRACULA_TERMINAL_THEMECONSOLE_HTML_FORMATconsolecodersts         r   mainrY   ,   sY   D*BBCcBOORCS#S#S#S#S#		
 BOORCS#S#S#S#S#		
 0! O! ! !D T%5TZPTUYUgPhPhiiiG#yC//39>>T$)TTXTa5b5b5b5g5g5i5iD
?$((("i3..I  C MM#M000 m$,4JXklllllm mr   __main__)r'   rM   rich.consoler   rich_rstr   rich.terminal_themer   r   r.   rY   __name__r   r   r   <module>r_      s     



             % % % % % % - - - - - -  (  "Im Im ImV zDFFFFF r   