+
     h  c                   sr   ^ RI Ht ^RIHt ^RIHtHt ^RIHtH	t	H
t
 ^RIHt ^RIHt ^RIHt ^RIHt  ! R	 R
]4      t]R8X  d`   ^ RIt^ RIHt  ]P.                  ^,          t]! 4       t]P3                  ]! ]R7      4       ]! 4       t]P3                  ]! R4      ^R7       R# R#   ] d    Rt LNi ; i)i    )Union)AlignMethod)cell_lenset_cell_sizeConsoleConsoleOptionsRenderResult)JupyterMixinMeasurement)Style)Textc            	       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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# )Ruleu  A console renderable to draw a horizontal rule (line).

Args:
    title (Union[str, Text], optional): Text to render in the rule. Defaults to "".
    characters (str, optional): Character(s) used to draw the line. Defaults to "─".
    style (StyleType, optional): Style of Rule. Defaults to "rule.line".
    end (str, optional): Character at end of Rule. defaults to "\\n"
    align (str, optional): How to align the title, one of "left", "center", or "right". Defaults to "center".

charactersu   ─stylez	rule.lineend
aligncenterc                sh   < V ^8  d   QhRS[ S[S[3,          RS[RS[ S[S[3,          RS[RS[RR/# )   titler   r   r   r   returnN)r    strr   r   r   Zformat__classdict__   ":/usr/lib/python3.14/site-packages/pip/_vendor/rich/rule.py__annotate__Rule.__annotate__   sY      S$Y 	
 S%Z    
    c               s    \        V4      ^8  d   \        R4      hVR9  d   \        RV: R24      hWn        W n        W0n        W@n        WPn        R# )   z:'characters' argument must have a cell width of at least 1zAinvalid value for align, expected "left", "center", "right" (not )N)leftr   right)r   Z
ValueErrorr   r   r   r   r   )selfr   r   r   r   r   s   &&$$$$r   __init__ZRule.__init__   sc     J!#L  33STYS\\]^  
$

r   c                s    < V ^8  d   QhRS[ /# )r   r   )r   r   r   r   r   r   .   s     < <# <r   c                s@    R V P                   : RV P                  : R2# )zRule(z, r    )r   r   )r#   s   &r   __repr__ZRule.__repr__.   s     tzznBt&9;;r   c                ,   < V ^8  d   QhRS[ RS[RS[/# r   consoleoptionsr   r   r   r   r   r   r   1   s%     6 66)76	6r   c              #  s  "   VP                   pVP                  '       d#   V P                  P                  4       '       g   R MV P                  p\	        V4      pV P
                  '       g   V P                  WS4      x  R# \        V P
                  \        4      '       d   V P
                  pMVP                  V P
                  RR7      pVP                  P                  RR4      Vn
        VP                  4        V P                  R8X  d   ^M^p\        ^ W7,
          4      pV'       g   V P                  WS4      x  R# \        V P                  R7      p	V P                  R8X  Ed@   VP!                  VRR	7       V\	        VP                  4      ,
          ^,          p
\        WJV,          ^,           ,          4      pVP!                  V
^,
          4       V\	        VP                  4      ,
          \	        VP                  4      ,
          p\        WJV,          ^,           ,          4      pVP!                  V4       V	P#                  VP                  R,           V P$                  4       V	P#                  V4       V	P#                  RVP                  ,           V P$                  4       MV P                  R
8X  dj   VP!                  VRR	7       V	P#                  V4       V	P#                  R4       V	P#                  WCV	P                  ,
          ,          V P$                  4       MV P                  R8X  dp   VP!                  VRR	7       V	P#                  WCVP                  ,
          ^,
          ,          V P$                  4       V	P#                  R4       V	P#                  V4       \'        V	P                  V4      V	n
        V	x  R# 5i)Z-Nz	rule.text)r   r   Z r   )r   Zellipsis)Zoverflowr!   r"   )Z	max_widthZ
ascii_onlyr   Zisasciir   r   
_rule_lineZ
isinstancer   Z
render_strplainZreplaceZexpand_tabsr   Zmaxr   truncateZappendr   r   )r#   r(   r)   widthr   	chars_lenZ
title_textZrequired_spaceZtruncate_width	rule_textZ
side_widthr!   Zright_lengthr"   s   &&&           r   __rich_console__ZRule.__rich_console__1   s     !! """4??+B+B+D+D  	 Z(	zzz//)33djj$''J ++DJJk+JJ%++33D#>
 "jjH4!Q 67//)33TXX&	::!D(:+;+;"<<BJ
I&=&ABCDMM*q.) 8DJJ#77(:CSCS:TTLY'>'BCDENN<(TZZ#-tzz:Z(S5;;.

;ZZ6!DZ(S!Z93E3E+EF

SZZ7"DZ:3F3F+F+JKTZZXS!Z('	?	s   >ONOc                s,   < V ^8  d   QhRS[ RS[ RS[/# )r   r.   r-   r   )Zintr   r   r   r   r   r   i   s"      C   r   c                s    \        V P                  W!,          ^,           ,          V P                  4      pVP                  V4       \	        VP
                  V4      Vn        V# r   )r   r   r   r,   r   r+   )r#   r.   r-   r/   s   &&& r   r*   ZRule._rule_linei   sI    U-?1,DEtzzR	5!'	?	r   c                r&   r'   )r   r   r
   r   r   r   r   r   o   s%     ! !!)7!	!r   c                s    \        ^^4      # r1   r	   )r#   r(   r)   s   &&&r   __rich_measure__ZRule.__rich_measure__o   s     1a  r   )r   r   r   r   r   N)Z )__name__Z
__module__Z__qualname__Z__firstlineno__Z__doc__r$   r%   r0   r*   r2   Z__static_attributes__Z__classdictcell__)r   s   @r   r   r      se       	
 $/  & .< <6 6p ! !r   r   Z__main__N)r   zHello, World)r   Zfoo)r-   )Ztypingr    r   r   Zcellsr   r   r(   r   r   r   Zjupyterr   Zmeasurer
   r   r   Ztextr   r   r3   ZsysZpip._vendor.rich.consoleZargvZ
IndexErrorZprint) r   r   <module>r4      s      * : : !    f!< f!R z0xx{ iGMM$T"#iGMM$u+QM'   s   B* *	B65B6