+
    Ti                         ^ RI HtHtHt ^RIHt ^RIHtHtH	t	H
t
 ^RIHt ^RIHtHt ^RIHt ^RIHt ]R,          t ! R R	4      tR
# )    )LiteralOptionalTuple)	loop_last)ConsoleConsoleOptionsRenderableTypeRenderResultControl)ControlTypeSegment)	StyleType)Textc                      a  ] tR t^t o RtRV 3R lR llt]V 3R lR l4       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# )
LiveRenderzCreates a renderable that may be updated.

Args:
    renderable (RenderableType): Any renderable object.
    style (StyleType, optional): An optional style to apply to the renderable. Defaults to "".
c                0   < V ^8  d   QhRS[ RS[RS[RR/# )   
renderablestylevertical_overflowreturnN)r	   r   VerticalOverflowMethod)format__classdict__s   "[/home/kuhnn/.local/share/uv/tools/nano-pdf/lib/python3.14/site-packages/rich/live_render.py__annotate__LiveRender.__annotate__   s3     	6 	6"	6 	6 2		6
 
	6    c                8    Wn         W n        W0n        R V n        R # )N)r   r   r   _shape)selfr   r   r   s   &&&&r   __init__LiveRender.__init__   s     %
!215r   c                    < V ^8  d   QhRS[ /# r   r   )int)r   r   s   "r   r   r   !   s      C r   c                H    V P                   f   ^ # V P                   ^,          # )ziThe number of lines in the last render (may be 0 if nothing was rendered).

Returns:
    Height in lines
)r!   )r"   s   &r   last_render_heightLiveRender.last_render_height    s     ;;{{1~r   c                $   < V ^8  d   QhRS[ RR/# )r   r   r   N)r	   )r   r   s   "r   r   r   +   s     % % %D %r   c                    Wn         R# )zdSet a new renderable.

Args:
    renderable (RenderableType): Any renderable object, including str.
N)r   )r"   r   s   &&r   set_renderableLiveRender.set_renderable+   s	     %r   c                    < V ^8  d   QhRS[ /# r&   r   )r   r   s   "r   r   r   3   s       r   c                   V P                   ek   V P                   w  r\        \        P                  \        P                  ^3.\        P
                  ^3\        P                  ^33V^,
          ,          O5!  # \        4       # )z}Get control codes to move cursor to beginning of live render.

Returns:
    Control: A control instance that may be printed.
)r!   r   r   CARRIAGE_RETURNERASE_IN_LINE	CURSOR_UPr"   _heights   &  r   position_cursorLiveRender.position_cursor3   s}     ;;"IA++**A.

 %..2$22A6 z	#	
 
 yr   c                    < V ^8  d   QhRS[ /# r&   r   )r   r   s   "r   r   r   H   s       r   c                    V P                   eS   V P                   w  r\        \        P                  .\        P                  ^3\        P
                  ^33V,          O5!  # \        4       # )zGet control codes to clear the render and restore the cursor to its previous position.

Returns:
    Control: A Control instance that may be printed.
)r!   r   r   r1   r3   r2   r4   s   &  r   restore_cursorLiveRender.restore_cursorH   sb     ;;"IA++((!,{/H/H!.LMPVV  yr   c                ,   < V ^8  d   QhRS[ RS[RS[/# )r   consoleoptionsr   )r   r   r
   )r   r   s   "r   r   r   V   s%      )7	r   c              #     "   V P                   pVP                  V P                  4      pVP                  W2VR R7      p\        P
                  ! V4      pVw  rxWP                  P                  8  d   V P                  R8X  d1   VRVP                  P                   p\        P
                  ! V4      pMV P                  R8X  dp   VRVP                  P                  ^,
           p\        RRRRRR	7      p	VP                  \        VP                  V	4      4      4       \        P
                  ! V4      pW`n        \        P                  ! 4       p
\        V4       F  w  rT Rj  xL
  V'       d   K  V
x  K  	  R#  L5i)
F)r   padcropNellipsisz...center zlive.ellipsis)overflowjustifyendr   )r   	get_styler   render_linesr   	get_shapesizer6   r   r   appendlistrenderr!   liner   )r"   r>   r?   r   r   linesshaper5   r6   overflow_textnew_linelastrP   s   &&&          r   __rich_console__LiveRender.__rich_console__V   s;     __
!!$**-$$Z5$Q!!%(	LL'''%%/3 3 34))%0'':59!4!4q!8: $#$)! T'.."?@A))%0<<>#E*JDOO4 +s   E!E>#E<$	E>2E>)r!   r   r   r   N)rE   rC   )__name__
__module____qualname____firstlineno____doc__r#   propertyr)   r-   r7   r;   rV   __static_attributes____classdictcell__)r   s   @r   r   r      sP     	6 	6  % % *  r   r   N)rB   rC   visible)typingr   r   r   _loopr   r>   r   r   r	   r
   controlr   segmentr   r   r   r   textr   r   r    r   r   <module>rg      s8    + +  J J  )   !>? g gr   