ó
    Ð]jM  ã                  óR   • S r SSKJr  SSKrSSKrSSKJr  SS jrS	S jrS
SS jjrg)z*
Utilities imported from ipython_genutils
é    )ÚannotationsN)Úindentc                ó   • [        U S5      $ )Nz    )Ú_indent)Úvals    ÚQ/home/mande/repo/quber/.venv/lib/python3.13/site-packages/traitlets/utils/text.pyr   r      s   € Ü�3˜ÓÐó    c                ó   • U R                  S5      (       a  [        R                  " U 5      $ U R                  SS5      n[	        U5      S:X  a  [        R                  " U 5      $ Uu  p#[        R                  " U5      nSR                  X#/5      $ )zAEquivalent of textwrap.dedent that ignores unindented first line.Ú
é   )Ú
startswithÚtextwrapÚdedentÚsplitÚlenÚjoin)ÚtextÚsplitsÚfirstÚrests       r   Ú_dedentr      su   € ð ‡��t×Ñä�Š˜tÓ$Ð$ð �Z‰Z˜˜aÓ €FÜ
ˆ6ƒ{�aÓä�Š˜tÓ$Ð$à�K€Eä�?Š?˜4Ó €DØ�9‰9�e�]Ó#Ð#r	   c                ó‚  • [         R                  " S[         R                  5      n[        U 5      R	                  5       n UR                  U 5      SSS2   n/ n[         R                  " S[         R                  5      nU H<  nUR                  U5      c  [        R                  " Xa5      nUR                  U5        M>     U$ )zðWrap multiple paragraphs to fit a specified width.

This is equivalent to textwrap.wrap, but with support for multiple
paragraphs, as separated by empty lines.

Returns
-------

list of complete paragraphs, wrapped to fill `ncols` columns.
z
\n(\s*\n)+Né   z\n\s+)
ÚreÚcompileÚ	MULTILINEr   Ústripr   Úsearchr   ÚfillÚappend)r   ÚncolsÚparagraph_reÚ
paragraphsÚout_psÚ	indent_reÚps          r   Úwrap_paragraphsr'   "   sš   € ô —:’:˜m¬R¯\©\Ó:€LÜ�4‹=×ÑÓ €DØ×#Ñ# DÓ)©#¨A¨#Ñ.€JØ€FÜ—
’
˜8¤R§\¡\Ó2€IÛˆð ×Ñ˜AÓÑ&ä—’˜aÓ'ˆAØ�‰�aÖñ ð €Mr	   )r   ÚstrÚreturnr(   )r   r(   r)   r(   )éP   )r   r(   r!   Úintr)   z	list[str])	Ú__doc__Ú
__future__r   r   r   r   r   r   r'   © r	   r   Ú<module>r/      s'   ðñõ #ã 	Û Ý &ô ô$÷&r	   