+
    LV-j~  ã                  ó€   € ^ RI Ht ^ RIHt ^ RIt^ RIHt ^RIH	t	 ^RIH
t
 R R lt ! R R	]P                  4      tR# )
é    )ÚannotationsN)Úcontextmanager)Ú_ansi_re)Úterm_lenc               ó$   € V ^8„  d   QhRRRRRR/# )é   ÚtextÚstrÚnÚintÚreturn© )Úformats   "Ú`/Volumes/fast/ai/experiments/ui-tars-smoke/.venv/lib/python3.14/site-packages/click/_textwrap.pyÚ__annotate__r      s!   € ÷ ñ ˜Cð  Cð ¨Cñ ó    c                óÞ   € V^ 8:  d   R# ^ p^ p^ p\        V 4      pW58  dJ   \        P                  ! W4      pVe   VP                  4       pK2  V^,          pV^,          pTpW!8¼  g   KN   V RV # )zèReturn the longest prefix of ``text`` containing at most ``n`` visible
characters.

ANSI escape sequences inside the prefix are kept intact and do not count
toward the visible width. A cut is never placed inside an escape sequence.
Ú N)Úlenr   ÚmatchÚend)r	   r   ÚvisibleÚiÚcutr   Úms   &&     r   Ú_truncate_visibler      sw   € ð 	ˆA„vÙà€GØ	€AØ
€CÜ
ˆd‹)€CØ
Œ'Ü�NŠN˜4Ó#ˆØŠ=Ø—‘“ˆAÙØ�1�ˆØ	ˆQ�ˆØˆØŽ<ØØ��ˆ:Ðr   c                  óT   € ] tR t^&tRtR R ltR R lt]R R l4       tR R	 lt	R
t
R# )ÚTextWrapperar  ``textwrap.TextWrapper`` variant that measures widths by visible
character count.

ANSI escape sequences embedded in chunks, indents, or the placeholder are
excluded from the width budget. Without this, styled help text (a styled
``Usage:`` prefix, a colorized option name, ...) would be wrapped earlier
than its visible length warrants and tokens would split mid-word.
c          
     ó,   € V ^8„  d   QhRRRRRRRRRR/# )	r   Úreversed_chunksú	list[str]Úcur_lineÚcur_lenr   Úwidthr   ÚNoner   )r   s   "r   r   ÚTextWrapper.__annotate__0   s<   € ÷ 3ñ 3à"ð3ð ð3ð ð	3ð
 ð3ð 
ñ3r   c                	ó  € \        WC,
          ^4      pV P                  '       d:   VR,          p\        We4      pV\        V4      R pVP	                  V4       W�R&   R# V'       g"   VP	                  VP                  4       4       R# R# )é   Néÿÿÿÿ)ÚmaxÚbreak_long_wordsr   r   ÚappendÚpop)	Úselfr    r"   r#   r$   Ú
space_leftÚlastr   Úress	   &&&&&    r   Ú_handle_long_wordÚTextWrapper._handle_long_word0   ss   € ô ˜�¨!Ó,ˆ
à× × Ð Ø" 2Õ&ˆDÜ# DÓ5ˆCØ”s˜3“x�zÐ"ˆCØ�O‰O˜CÔ Ø"%˜BÓßØ�O‰O˜O×/Ñ/Ó1Ö2ñ r   c               ó    € V ^8„  d   QhRRRR/# )r   Úchunksr!   r   r   )r   s   "r   r   r&   B   s   € ÷ `ñ ` 9ð `°ñ `r   c                óZ  € . pV P                   ^ 8:  d   \        RV P                   : R24      hV P                  ex   V P                  ^8”  d   V P                  pMV P                  p\        V4      \        V P                  P                  4       4      ,           V P                   8”  d   \        R4      hVP                  4        V'       Ed`   . p^ pV'       d   V P                  pMV P                  pV P                   \        V4      ,
          pV P                  '       d(   VR,          P                  4       R8X  d   V'       d   VR V'       dJ   \        VR,          4      pWW,           V8:  d*   VP                  VP                  4       4       WW,          pKP   V'       dC   \        VR,          4      V8”  d,   V P                  WWV4       \        \        \
        V4      4      pV P                  '       dA   V'       d9   VR,          P                  4       R8X  d   V\        VR,          4      ,          pVR V'       g   EK{  V P                  eo   \!        V4      ^,           V P                  8  gN   V'       d@   V P                  '       d^   \!        V4      ^8X  dN   V^ ,          P                  4       '       g1   WV8:  d+   VP                  VRP#                  V4      ,           4       EK!  V'       d£   VR,          P                  4       '       dh   V\        V P                  4      ,           V8:  dG   VP                  V P                  4       VP                  VRP#                  V4      ,           4         V# V\        VR,          4      ,          pVR Kª  V'       dd   VR,          P%                  4       p\        V4      \        V P                  4      ,           V P                   8:  d   W€P                  ,           VR&    V# VP                  W0P                  P                  4       ,           4        V# V# )aA  Wrap chunks counting widths in visible characters.

Mirrors the algorithm of :meth:`textwrap.TextWrapper._wrap_chunks`
with every width measurement routed through
:func:`click._compat.term_len` instead of :func:`len`, so ANSI escape
bytes in chunks, indents, or the placeholder do not inflate the count.

.. seealso::
    :class:`textwrap.TextWrapper` in the Python standard library documentation:
    https://docs.python.org/3/library/textwrap.html#textwrap.TextWrapper

    Reference implementation in CPython:
    https://github.com/python/cpython/blob/main/Lib/textwrap.py
zinvalid width z (must be > 0)z#placeholder too large for max widthr   r)   )r$   Ú
ValueErrorÚ	max_linesÚsubsequent_indentÚinitial_indentr   ÚplaceholderÚlstripÚreverseÚdrop_whitespaceÚstripr,   r-   r2   ÚsumÚmapr   ÚjoinÚrstrip)	r.   r5   ÚlinesÚindentr"   r#   r$   r   Ú	prev_lines	   &&       r   Ú_wrap_chunksÚTextWrapper._wrap_chunksB   s  € ð ˆØ�:‰:˜Œ?Ü˜~¨d¯j©j©^¸>ÐJÓKÐKØ�>‰>Ò%Ø�~‰~ Ô!Ø×/Ñ/‘à×,Ñ,�Ü˜Ó¤(¨4×+;Ñ+;×+BÑ+BÓ+DÓ"EÕEÈÏ
É
ÔRÜ Ð!FÓGÐGà�‰ÔçˆfØ"$ˆHØˆGçØ×/Ñ/‘à×,Ñ,�à—J‘J¤¨&Ó!1Õ1ˆEà×#×#Ð#¨¨r­
×(8Ñ(8Ó(:¸bÔ(@ÇUØ˜2�JçÜ˜V B�ZÓ(�à•; %Ô'Ø—O‘O F§J¡J£LÔ1Ø•L’Gð çœ( 6¨"¥:Ó.°Ô6Ø×&Ñ& v¸ÔHÜœc¤(¨HÓ5Ó6�à×#×#Ð#¯°X¸bµ\×5GÑ5GÓ5IÈRÔ5OØœ8 H¨R¥LÓ1Õ1�Ø˜R�LçŠxà—N‘NÒ*Ü˜5“z A•~¨¯©Ô6ç"Ø×/×/Ð/Ü ›K¨1Ô,Ø & q¥	§¡× 1Ò 1àÔ(à—L‘L ¨"¯'©'°(Ó*;Õ!;×<ç"à$ R�L×.Ñ.×0Ò0Ø '¬(°4×3CÑ3CÓ*DÕ DÈÔ Mà$ŸO™O¨D×,<Ñ,<Ô=Ø!ŸL™L¨°"·'±'¸(Ó2CÕ)CÔDØ!ð àˆð  ¤8¨H°R­LÓ#9Õ9˜Ø$ RšLç Ø(-¨b­	×(8Ñ(8Ó(:˜Iä (¨Ó 3´h¸t×?OÑ?OÓ6PÕ PØ#'§:¡:ô!.ð -6×8HÑ8HÕ,H  b¡	Ø %ð ˆð Ÿ™ V×.>Ñ.>×.EÑ.EÓ.GÕ%GÔHØàˆˆuˆr   c               ó    € V ^8„  d   QhRRRR/# )r   rE   r
   r   zcabc.Iterator[None]r   )r   s   "r   r   r&   ¥   s   € ÷ 
;ñ 
; 3ð 
;Ð+>ñ 
;r   c              #  	óæ   "  € V P                   pV P                  pV ;P                   V,          un         V ;P                  V,          un         R x € W n         W0n        R #   Y n         Y0n        i ; i5i)N©r:   r9   )r.   rE   Úold_initial_indentÚold_subsequent_indents   &&  r   Úextra_indentÚTextWrapper.extra_indent¤   sb   é € à!×0Ñ0ÐØ $× 6Ñ 6ÐØ×Ò˜vÕ%ÕØ×Ò &Õ(Õð	;Ûà"4ÔØ%:Ö"øð #5ÔØ%:Õ"üs   ‚AA1ÁA  ÁA1Á A.Á.A1c               ó    € V ^8„  d   QhRRRR/# )r   r	   r
   r   r   )r   s   "r   r   r&   ±   s   € ÷ ñ  ð ¨ñ r   c                	óÔ   € . p\        VP                  4       4       F9  w  r4V P                  pV^ 8”  d   V P                  pVP	                  V V 24       K;  	  RP                  V4      # )r   Ú
)Ú	enumerateÚ
splitlinesr:   r9   r,   rB   )r.   r	   ÚrvÚidxÚlinerE   s   &&    r   Úindent_onlyÚTextWrapper.indent_only±   sa   € Øˆä" 4§?¡?Ó#4Ö5‰IˆCØ×(Ñ(ˆFà�QŒwØ×/Ñ/�à�I‰I˜˜  Ð'Ö(ñ 6ð �y‰y˜‹}Ðr   rK   N)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r2   rG   r   rN   rX   Ú__static_attributes__r   r   r   r   r   &   s1   † ñõ3õ$`ðD ô
;ó ð
;÷ñ r   r   )Ú
__future__r   Úcollections.abcÚabcÚcabcÚtextwrapÚ
contextlibr   Ú_compatr   r   r   r   r   r   r   Ú<module>rg      s0   ðÝ "å Û Ý %å Ý õô6V�(×&Ñ&ö Vr   