
    BNe                       d dl mZ d dlmZ d dlmZmZmZ d dlm	Z	 d dl
mZmZmZ d dlmZmZ g dZdrd
ZdrdZdsdZi ddddddddddddddddddddddd dd!dd"dd#dd$dd%dd&diZi d'd(d)d*d+d,d-d.d/dd0d1d2d1d3dd4d5d6d7d8d7d9d:d;d<d=d>d?d>d@d,dAdBi dCdDdEdFdGdHdIdJdKdLdMdNdOdPdQdRdSdRdTdUdVdWdXdUdYdZd[d\d]d\d^d_d`dadbdcdddedNdfd_dgdhd_didjdkZ e            r/ e            s% e            se                    dldmdmdndodp           i Ze                    e           dqS )t    )annotations)Dict)	BaseStyleStylemerge_styles)style_from_pygments_cls)is_conemu_ansi
is_windowsis_windows_vt100_supported)get_all_stylesget_style_by_name)get_all_code_stylesget_all_ui_stylesgenerate_stylereturndict[str, BaseStyle]c                 n    d t                      D             } t          j        t                    | d<   | S )z=
    Return a mapping from style names to their classes.
    c                H    i | ]}|t          t          |                     S  )r   r   ).0names     x/home/feoh/.cache/pypoetry/virtualenvs/veilid-python-play-bIboZq2W-py3.11/lib/python3.11/site-packages/ptpython/style.py
<dictcomp>z'get_all_code_styles.<locals>.<dictcomp>   s<     $ $ $ 	%&7&=&=>>$ $ $    win32)r   r   	from_dictwin32_code_style)results    r   r   r      sA    $ $"$$$ $ $F o&677F7OMr   c                 h    t          j        t                    t          j        t                    dS )z>
    Return a dict mapping {ui_style_name -> style_dict}.
    )defaultblue)r   r   default_ui_styleblue_ui_styler   r   r   r   r      s.    
 ?#344..  r   python_styler   ui_stylec                $    t          | |g          S )zY
    Generate Pygments Style class from two dictionaries
    containing style rules.
    )r   )r$   r%   s     r   r   r   #   s    
 x0111r   zpygments.commentz#00ff00zpygments.keywordz#44ff44zpygments.number zpygments.operatorzpygments.stringz#ff44ffzpygments.namezpygments.name.decoratorz#ff4444zpygments.name.classzpygments.name.functionzpygments.name.builtinzpygments.name.attributezpygments.name.constantzpygments.name.entityzpygments.name.exceptionzpygments.name.labelzpygments.name.namespacezpygments.name.tagzpygments.name.variablezcontrol-characteransibluepromptboldzprompt.dots	noinheritinzbold #008800z	in.numberoutz#ff0000z
out.numberzcompletion.builtinzcompletion.paramz#006666 italiczcompletion.keywordz
fg:#008800z$completion.keyword fuzzymatch.insidez%completion.keyword fuzzymatch.outsidez
fg:#44aa44	separatorz#bbbbbbzsystem-toolbarz#22aaaa noinheritzarg-toolbarzarg-toolbar.textzsignature-toolbarzbg:#44bbbb #000000zsignature-toolbar current-namezbg:#008888 #ffffff boldzsignature-toolbar operatorz#000000 bold	docstringz#888888zvalidation-toolbarzbg:#440000 #aaaaaazstatus-toolbarzbg:#222222 #aaaaaazstatus-toolbar.title	underlinezstatus-toolbar.inputmodezbg:#222222 #ffffaazstatus-toolbar.keyzbg:#000000 #888888zstatus-toolbar keyzstatus-toolbar.pastemodeonzbg:#aa4444 #ffffffzstatus-toolbar.pythonversionzbg:#222222 #ffffff boldzstatus-toolbar paste-mode-onrecordzbg:#884444 whitezstatus-toolbar morez#ffff44zstatus-toolbar.input-modesidebarzbg:#bbbbbb #000000sidebar.titlezbg:#668866 #ffffffzbg:#bbbbbb #222222zbg:#dddddd #000011zbg:#222222 #eeeeeezbg:#444444 #ffffff boldzbg:#bbddbb #000000 boldzbg:#fdf6e3 #000011z#aaaaaazbg:#ffff88 #444444zbg:#884444 #ffffff)zsidebar.labelzsidebar.statuszsidebar.label selectedzsidebar.status selectedzsidebar.separatorzsidebar.keyzsidebar.key.descriptionzsidebar.helptextzwindow-borderzwindow-titlezaccept-messagezexit-confirmationzbg:#00ff00 #ffffffzbg:#ff4444 #ffffffzbg:#ffffff #000000zbg:#aaaaaa #000000)r3   exitconfirmationztoolbar.validationzmenu.completions.completionz#menu.completions.completion.currentN)r   r   )r$   r   r%   r   r   r   )
__future__r   typingr   prompt_toolkit.stylesr   r   r   prompt_toolkit.styles.pygmentsr   prompt_toolkit.utilsr	   r
   r   pygments.stylesr   r   __all__r   r   r   r   r"   updater#   r   r   r   <module>r=      sn   " " " " " "       @ @ @ @ @ @ @ @ @ @ B B B B B B W W W W W W W W W W = = = = = = = =
H
H
H	 	 	 	   2 2 2 2		 r 	
 y R y 9 i Y r b B r 2  r!" #$ b%  ,CC fC ;	C 	.C C 
9C )C "C (C ,C +LC  ,\!C$ %C( ))C, &-C. /C2 -3C C4 %&?5C6 !.7C8 9C< .=C@ *ACB KCCD  4ECF .GCH .ICJ !"6KCL #$=MCN #$8OCP  QCR 9SCT  UCX #YCZ )[C C\ **28$,3, (*-EC C C P :<< 	(( 	1K1K1M1M 	1 4"6+?3G	
 	
      % & & & & &r   