ó
    Eñiè  ã                   óx  • S r SSKrSSKrSSKrSSKrSSKJr  SSKJr  SSK	J
r
  SSKJr  / SQ\" \5      -   r0 r0 rS rS	 rS
 rS rS rSS jrS r " S S\R0                  5      r\R4                  \   r\" \5      r\R<                  R?                  \R<                  5        \\R4                  \'   \?\?\?\?g)z®
pygments.formatters
~~~~~~~~~~~~~~~~~~~

Pygments formatters.

:copyright: Copyright 2006-present by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
é    N)Úbasename)Ú
FORMATTERS)Úfind_plugin_formatters)ÚClassNotFound)Úget_formatter_by_nameÚget_formatter_for_filenameÚget_all_formattersÚload_formatter_from_filec                 óÎ   • U[         ;  aD  [        R                  " [        R                  " U5      5      =n[         U'   UR                  U 5      $ [         U   R                  U 5      $ )zBReturn whether the supplied file name fn matches pattern filename.)Ú_pattern_cacheÚreÚcompileÚfnmatchÚ	translateÚmatch)ÚfnÚglobÚpatterns      ÚY/home/mande/repo/quber/.venv/lib/python3.13/site-packages/pygments/formatters/__init__.pyÚ_fn_matchesr      sR   € à”>Ó!Ü)+¯ª´G×4EÒ4EÀdÓ4KÓ)LÐLˆ”. Ñ&Ø�}‰}˜RÓ Ð Ü˜$Ñ×%Ñ% bÓ)Ð)ó    c                 ó„   • [        U SSS/5      nUR                   H!  n[        X5      nU[        UR                  '   M#     g)z4Load a formatter (and all others in the module too).NÚ__all__)Ú
__import__r   ÚgetattrÚ_formatter_cacheÚname)Úmodule_nameÚmodÚformatter_nameÚclss       r   Ú_load_formattersr"   $   s;   € ä
�[ $¨¨y¨kÓ
:€CØŸ+œ+ˆÜ�cÓ*ˆØ%(Ô˜Ÿ™Ó"ò &r   c               #   óÄ   #   • [         R                  " 5        H,  n U S   [        ;  a  [        U S   5        [        U S      v •  M.     [	        5        H	  u  pUv •  M     g7f)z-Return a generator for all formatter classes.é   r   N)r   Úvaluesr   r"   r   )ÚinfoÚ_Ú	formatters      r   r	   r	   ,   sX   é € ô ×!Ò!Ö#ˆØ�‰7Ô*Ó*Ü˜T !™WÔ%Ü˜t A™wÑ'Ô'ñ $ô /Ö0‰ˆØŒò 1ùs   ‚AA c                 óÜ   • [         R                  " 5        H-  u  pn  nX;   d  M  U[        ;  a  [        U5        [        U   s  $    [	        5        H  u  pEXR
                  ;   d  M  Us  $    g)z9Lookup a formatter by alias.

Returns None if not found.
N)r   r%   r   r"   r   Úaliases)Úaliasr   r   r*   r'   r!   s         r   Úfind_formatter_classr,   7   sc   € ô
 -7×,=Ò,=Ö,?Ñ(ˆ˜7 A qØÕØÔ+Ó+Ü  Ô-Ü# DÑ)Ò)ñ	 -@ô
 )Ö*‰ˆØ—K‘KÕØŠJò +r   c                 óL   • [        U 5      nUc  [        SU < 35      eU" S0 UD6$ )zð
Return an instance of a :class:`.Formatter` subclass that has `alias` in its
aliases list. The formatter is given the `options` at its instantiation.

Will raise :exc:`pygments.util.ClassNotFound` if no formatter with that
alias is found.
zno formatter found for name © )r,   r   )Ú_aliasÚoptionsr!   s      r   r   r   F   s2   € ô ˜vÓ
&€CØ
�{ÜÐ:¸6¹*ÐEÓFÐFÙ‰>�‰>Ðr   c                 ó\  •  0 n[        U S5       n[        UR                  5       U5        SSS5        X;  a  [        SU SU  35      eX1   nU" S0 UD6$ ! , (       d  f       N0= f! [         a  n[        SU  SU 35      eSnAf[         a    e [
         a  n[        SU 35      eSnAff = f)	aû  
Return a `Formatter` subclass instance loaded from the provided file, relative
to the current directory.

The file is expected to contain a Formatter class named ``formattername``
(by default, CustomFormatter). Users should be very careful with the input, because
this method is equivalent to running ``eval()`` on the input file. The formatter is
given the `options` at its instantiation.

:exc:`pygments.util.ClassNotFound` is raised if there are any errors loading
the formatter.

.. versionadded:: 2.2
ÚrbNz	no valid z class found in zcannot read z: z%error when loading custom formatter: r.   )ÚopenÚexecÚreadr   ÚOSErrorÚ	Exception)ÚfilenameÚformatternamer0   Úcustom_namespaceÚfÚformatter_classÚerrs          r   r
   r
   T   sÂ   € ðKàÐÜ�(˜DÔ! QÜ�—‘“Ð+Ô,÷ "ð Ó0Ü )¨M¨?Ð:JÈ8È*Ð UÓVÐVØ*Ñ9ˆáÑ) Ñ)Ð)÷ "Õ!ûô ó >Ü˜l¨8¨*°B°s°eÐ<Ó=Ð=ûÜó ØÜó KÜÐCÀCÀ5ÐIÓJÐJûðKús9   ‚A& �A«)A& Á
A#ÁA& Á&
B+Á0BÂB+ÂB&Â&B+c                 ó|  • [        U 5      n [        R                  " 5        HH  u  p#pEnU H;  n[        X5      (       d  M  U[        ;  a  [        U5        [        U   " S0 UD6s  s  $    MJ     [        5        H4  u  pxUR                   H  n[        X5      (       d  M  U" S0 UD6s  s  $    M6     [        SU < 35      e)zñ
Return a :class:`.Formatter` subclass instance that has a filename pattern
matching `fn`. The formatter is given the `options` at its instantiation.

Will raise :exc:`pygments.util.ClassNotFound` if no formatter for that filename
is found.
z!no formatter found for file name r.   )	r   r   r%   r   r   r"   r   Ú	filenamesr   )	r   r0   Úmodnamer   r'   r?   r8   Ú_namer!   s	            r   r   r   v   s«   € ô 
�"‹€BÜ*4×*;Ò*;Ö*=Ñ&ˆ�q QÛ!ˆHÜ˜2×(Ó(ØÔ/Ó/Ü$ WÔ-Ü'¨Ò-Ñ8°Ñ8Ô8ó	 "ñ +>ô -Ö.‰
ˆØŸœˆHÜ˜2×(Ó(Ù‘~˜W‘~Ô%ó &ñ /ô Ð;¸B¹6ÐBÓ
CÐCr   c                   ó   • \ rS rSrSrS rSrg)Ú_automoduleéŒ   z Automatically import formatters.c                 ó¢   • [         R                  " U5      nU(       a(  [        US   5        [        US      n[	        XU5        U$ [        U5      e)Nr   r$   )r   Úgetr"   r   ÚsetattrÚAttributeError)Úselfr   r&   r!   s       r   Ú__getattr__Ú_automodule.__getattr__�   sG   € Ü�~Š~˜dÓ#ˆÞÜ˜T !™WÔ%Ü" 4¨¡7Ñ+ˆCÜ�D Ô$ØˆJÜ˜TÓ"Ð"r   r.   N)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__rJ   Ú__static_attributes__r.   r   r   rC   rC   Œ   s
   † Ù*õ#r   rC   )ÚCustomFormatter) rP   r   ÚsysÚtypesr   Úos.pathr   Úpygments.formatters._mappingr   Úpygments.pluginr   Úpygments.utilr   Úlistr   r   r   r   r"   r	   r,   r   r
   r   Ú
ModuleTyperC   ÚmodulesrL   ÚoldmodÚnewmodÚ__dict__Úupdater.   r   r   Ú<module>r`      sÍ   ðñó 
Û 
Û Û Ý å 3Ý 2Ý 'ò=Ù?CÀJÓ?OñP€ð Ð Ø€ò*ò)òòòôKòDDô,
#�%×"Ñ"ô 
#ð 
�‰�XÑ	€Ù	�XÓ	€Ø ‡�× Ñ �v—‘Ô 'Ø€‡�ˆHÑ Ø
€M�6�= & *¨f©lr   