+
     h(  c                   sv   ^ RI t ^ RIHt ^ RIHtHtHt ] P                  R8  d   ^ RIHt M^ RI	Ht ^RI
Ht ^RIHt ^RIHt ^RIHt ^R	IHt ]'       d   ^R
IHtHtHtHt ]R,          t]R,          t ! R R]4      t ! R R]4      t]R8X  d   ^ RIHtHt ^ RI H!t! ^ RI"H#t# ]!! 4       t$]! 4       t]#! ]! ]PK                  ]$! R4      4      ]PM                  ]$! R4      4      ]PO                  ]$! R4      4      4      ^<RRR7      t(]PS                  ]PM                  ](RR]PT                  R7      4       R# R# )    N)chain)TYPE_CHECKINGIterableOptional)Literal)	Constrain)JupyterMixinMeasurement)Segment)	StyleType)ConsoleConsoleOptionsRenderableTypeRenderResultmiddlec            
       s   a  ] tR t^t o RtRRRRRRRRR/V 3R lR	 llltV 3R
 lR lt]RRRRRRRRR/V 3R lR lll4       t]RRRRRRRRR/V 3R lR lll4       t	]RRRRRRRRR/V 3R lR lll4       t
V 3R lR ltV 3R lR ltRtV tR# )Aligna  Align a renderable by adding spaces if necessary.

Args:
    renderable (RenderableType): A console renderable.
    align (AlignMethod): One of "left", "center", or "right""
    style (StyleType, optional): An optional style to apply to the background.
    vertical (Optional[VerticalAlignMethod], optional): Optional vertical align, one of "top", "middle", or "bottom". Defaults to None.
    pad (bool, optional): Pad the right with spaces. Defaults to True.
    width (int, optional): Restrict contents to given width, or None to use default width. Defaults to None.
    height (int, optional): Set height of align renderable, or None to fit to contents. Defaults to None.

Raises:
    ValueError: if ``align`` is not one of the expected values.
NverticalpadTwidthheightc                s   < V ^8  d   QhRRRS[ RS[S[,          RS[S[,          RS[RS[S[,          RS[S[,          R	R
/# )   
renderabler   alignstyler   r   r   r   returnN)AlignMethodr   r   VerticalAlignMethodboolintformat__classdict__   ";/usr/lib/python3.14/site-packages/pip/_vendor/rich/align.py__annotate__Align.__annotate__'   sn      $  	"	 ./  }  
    c               s    VR9  d   \        RV: R24      hVe   VR9  d   \        RV: R24      hWn        W n        W0n        W@n        WPn        W`n        Wpn        R# )leftzDinvalid value for align, expected "left", "center", or "right" (not )NzGinvalid value for vertical, expected "top", "middle", or "bottom" (not r'   centerrighttopr   Zbottom)Z
ValueErrorr   r   r   r   r   r   r   )selfr   r   r   r   r   r   r   s   &&&&$$$$r#   __init__ZAlign.__init__'   sz     33VW\V__`a  H4O$OYZbYeefg  %

 
r&   c                    < V ^8  d   QhRS[ /# r   r   Zstrr   r"   r#   r$   r%   B   s     = =# =r&   c                s@    R V P                   : RV P                  : R2# )zAlign(z, r(   )r   r   r.      &r#   __repr__ZAlign.__repr__B   s     *"TZZN!<<r&   c                   < V ^8  d   QhRRRS[ S[,          RS[ S[,          RS[RS[ S[,          RS[ S[,          RR	/# 
r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r"   r#   r$   r%   F   d     
 
$
 	"

 ./
 
 }
 
 

r&   c          
          V ! VRVVVVVR7      # )zAlign a renderable to the left.r'   r   r   r   r   r    Zclsr   r   r   r   r   r      &&&$$$$r#   r'   Z
Align.leftE   s&     
 	
r&   c                r6   r7   r8   r   r"   r#   r$   r%   \   r9   r&   c          
     r:   )z!Align a renderable to the center.r*   r;   r<   r=   r>   r#   r*   ZAlign.center[   s&     
 	
r&   c                r6   r7   r8   r   r"   r#   r$   r%   r   r9   r&   c          
     r:   )z Align a renderable to the right.r+   r;   r<   r=   r>   r#   r+   ZAlign.rightq   s&     
 	
r&   c                &   < V ^8  d   QhRRRRRR/# r   consoler   optionsr   r   r   r<   r   r"   r#   r$   r%      s*     Z! Z! Z!+;Z!	Z!r&   c           	   #  s  a aaaaaa"   S P                   oVP                  S P                  VR 7      P                  pTP	                  \        S P                  S P                  f   TM\        VS P                  4      4      VP                  RR7      4      p\        \        P                  ! V4      4      o\        P                  ! S4      w  r5\        P                  ! SW54      o\        P                  ! 4       oVP                  V,
          oS P                   e   VP#                  S P                   4      MRoR VVVVV V3R llpS P$                  '       d5   \        RS P                  ;'       g    VP                  ,           R2S4      M
\        R4      oR V3R llpS P&                  ;'       g    VP&                  pS P(                  '       d   Ve   S P(                  R	8X  d!   W,
          p	\+        V! 4       V! V	4      4      p
MuS P(                  R
8X  d>   W,
          ^,          pW,
          V,
          p	\+        V! V4      V! 4       V! V	4      4      p
M'W,
          p\+        V! V4      V! 4       4      p
MV! 4       p
S P                   '       d3   VP#                  S P                   4      o\        P,                  ! V
S4      p
T
 Rj  xL
  R#  L5i))rB   Nr   c                s:    V ^8  d   QhR\         \        ,          /# r1   )r   r
   r       "r#   r$   ,Align.__rich_console__.<locals>.__annotate__   s     %	# %	#8G#4 %	#r&   c               3   sz  <"   S^ 8:  d   S F  p T  Rj  xL
  Sx  K  	  R# SR8X  dM   SP                   '       d   \        RS,          S	4      MRpS F  p T  Rj  xL
  V'       d   Vx  Sx  K  	  R# SR8X  d|   S^,          p\        RV,          S	4      pSP                   '       d   \        RSV,
          ,          S	4      MRpS F)  p V'       d   Vx  T  Rj  xL
  V'       d   Vx  Sx  K+  	  R# SR8X  d1   \        RS,          S	4      pS F  p Vx  T  Rj  xL
  Sx  K  	  R# R#  EL L LX L5i)r    Nr'    r*   r+   )r   r
   )
liner   r'   Z	pad_rightr   excess_spacelinesnew_liner.   r   s
       r#   generate_segmentsZ1Align.__rich_console__.<locals>.generate_segments   s%    q !D#OO"N " &<@HHHgcL0%8$!D#OO!	"N	 " ("#q(cDj%0CG888GC<$#67?QU  "D!	#OO '"N " '!cL0%8!DI#OO"N " "7 $ $ $ $sW   D;D2&D;D;D5D;)A5D;D7D;+6D;!D9"D;5D;7D;9D;rG   Z
c                F    V ^8  d   QhR\         R\        \        ,          /# r   countr   r   r   r
   rD   rE   r#   r$   rF      s     	% 	%s 	%x'8 	%r&   c              3   sN   <"   V ^ 8  d   \        V 4       F  pSx  K	  	  R# R# 5i)r    NZrange)rO   _
blank_lines   & r#   blank_linesZ+Align.__rich_console__.<locals>.blank_lines   s&     qyuA$$ & s   "%r-   r   )r   measurer   ZmaximumZrenderr   r   ZminupdateZlistr
   Zsplit_lines	get_shapeZ	set_shaperH   Z	max_widthr   	get_styler   r   r   r   Zapply_style)r.   rA   rB   r   Zrenderedr   rL   rT   Zvertical_heightbottom_spaceZiter_segments	top_spacer   rS   rI   rJ   rK   r   s   f&&         @@@@@@r#   __rich_console__ZAlign.__rich_console__   s1     

AII>>$***<#eTZZBX NN$N'	
 W((23))%0!!%7<<>((50151G!!$**-T%	# %	#R xxx sdjj==G,=,=>?rBEJ 		% 	%
 ++77===_8}}%.7 %&7&9;|;T U(*,5!;	.:VC %	*%'-! ,4	 %k)&<>O>Q R-/M:::%%djj1E#//uEM   s2   EKK1AK3KB;K7KKKc                (   < V ^8  d   QhRRRRRS[ /# r   rA   r   rB   r   r   r   r   r"   r#   r$   r%      %       +;	r&   c                H    \         P                  ! WV P                  4      pV# Nr	   Zgetr   r.   rA   rB   Zmeasurement   &&& r#   __rich_measure__ZAlign.__rich_measure__        "oogHr&   )r   r   r   r   r   r   r   )r'   Nr`   )__name__
__module____qualname____firstlineno____doc__r/   r5   Zclassmethodr'   r*   r+   r[   rd   __static_attributes____classdictcell__r!      @r#   r   r      s      37   $ !% 6= = 

 37
 
  $
 !%
 
 
* 

 37
 
  $
 !%
 
 
* 

 37
 
  $
 !%
 
 
*Z! Z!x r&   r   c                   sp   a  ] tR t^t o RtRV 3R lR lltV 3R lR ltV 3R lR ltV 3R	 lR
 ltRt	V t
R# )VerticalCentera8  Vertically aligns a renderable.

Warn:
    This class is deprecated and may be removed in a future version. Use Align class with
    `vertical="middle"`.

Args:
    renderable (RenderableType): A renderable object.
    style (StyleType, optional): An optional style to apply to the background. Defaults to None.
Nc                s8   < V ^8  d   QhRRRS[ S[,          RR/# )r   r   r   r   r   N)r   r   r   r"   r#   r$   VerticalCenter.__annotate__   s.      $ 	" 
	r&   c                s    Wn         W n        R # r`   r   r   )r.   r   r   s   &&&r#   r/   ZVerticalCenter.__init__   s    
 %
r&   c                r0   r1   r2   r   r"   r#   r$   rp      s     6 6# 6r&   c                s$    R V P                   : R2# )zVerticalCenter(r(   )r   r3   r4   r#   r5   ZVerticalCenter.__repr__   s      3155r&   c                r?   r@   r<   r   r"   r#   r$   rp     s%     1 1 1+;1	1r&   c              #  s  aa"   V P                   e   VP                  V P                   4      MR pVP                  V P                  VP	                  R R7      RR7      p\
        P                  ! V4      w  rV\
        P                  ! 4       oVP                  ;'       g    VP                  P                  pV\        V4      ,
          ^,          pWx,
          \        V4      ,
          p	\        RV,           V4      oR VV3R llp
V^ 8  d   V
! V4       R j  xL
  V F  pT R j  xL
  Sx  K  	  V	^ 8  d   V
! V	4       R j  xL
  R # R #  L6 L) L5i)NrC   F)r   rG   c                rM   rN   rP   rD   rE   r#   r$   Z5VerticalCenter.__rich_console__.<locals>.__annotate__  s     	 	s 	x'8 	r&   c              3   sD   <"   \        V 4       F  pSx  Sx  K  	  R # 5ir`   rQ   )rO   rR   rS   rK   s   & r#   rT   Z4VerticalCenter.__rich_console__.<locals>.blank_lines  s     5\   "s    )r   rX   Zrender_linesr   rV   r
   rW   rH   r   ZsizeZlen)r.   rA   rB   r   rJ   r   Z_heightr   rZ   rY   rT   rH   rS   rK   s   &&&         @@r#   r[   ZVerticalCenter.__rich_console__  s#     261G!!$**-T$$OOW^^4^8e % 
 !**51<<>667<<#6#6c%j(Q.	)CJ6e}u5
	 	
 q="9---DOON  !"<000 	 . 1s=   BEA8EEE%E&EE	EEEc                r\   r]   r   r   r"   r#   r$   rp     r^   r&   c                r_   r`   ra   rb   rc   r#   rd   ZVerticalCenter.__rich_measure__  re   r&   rq   r`   )rf   rg   rh   ri   rj   r/   r5   r[   rd   rk   rl   rm   rn   r#   ro   ro      s2     	 6 61 16 r&   ro   Z__main__)r   Group)ReprHighlighter)Panelzalign='left'zalign='center'zalign='right'zon dark_blue)r   r   Ztitlezon red)r   r   r   )i   i   r)   r,   )+ZsysZ	itertoolsr   Ztypingr   r   r   Zversion_infor   Zpip._vendor.typing_extensionsZ	constrainr   Zjupyterr   rU   r	   Zsegmentr
   r   r   rA   r   r   r   r   r   r   r   ro   rf   Zpip._vendor.rich.consolerr   Zpip._vendor.rich.highlighterrs   Zpip._vendor.rich.panelrt   Zhighlighterr'   r*   r+   ZpanelZprintr   r<   r&   r#   <module>ru      s   
  4 4v5   !    NN/078 PL Pf6\ 6r z7<,!#KiGJJ{>23LL%567KKO45	

 	E MMUXXgnnU' r&   