+
     h$  c            
       s   ^ RI HtHtHtHt ^RIHtHt ^RIH	t	H
t
HtHt ^RIHt ^RIHt ^RIHt ^RIHtHtHt ^RIHt ]]]]]3,          t ! R	 R
]4      t]R8X  Ed   ^ RIHt ^ RIH t  ^ RI!H"t" ^ RI#H$t$ ^ RI%H&t& ]&! RR.R7      t']'PQ                  RRRR7       ]'PQ                  RRR7       ]'PQ                  RRRR7       ]'PS                  RR R!4       ]'PS                  R"R#R$4       ]'PS                  R%R&R'4       ]'PS                  R(R)R*4       R+t*]$! ]*R,R-RR.7      t+] ! R/4      t,]! R0RRR17      t-]-P]                  R2R3R47      t/]/P]                  R5R6R47      t0]0P]                  ]! R7]+4      4       ]0P]                  ]! R8]"! ],RR97      4      4       ]/P]                  R:R;R47      t1R]1n2        ]"Pf                  ! R<R3R97      t4]1P]                  ]! R=]44      4       ]1P]                  ]! R>]'4      4       ]	! 4       t]Pk                  ]-4       R?# R?# )@    )IteratorListOptionalTuple)
loop_first	loop_last)ConsoleConsoleOptionsRenderableTypeRenderResult)JupyterMixin)Measurement)Segment)Style
StyleStack	StyleType)Styledc            
       s   a  ] tR t^t o RtRt. ROtRRRRRRRR	R
R	/V 3R lR lltRRRRRRRR	/V 3R lR lltV 3R lR lt	V 3R lR lt
RtV tR# )Treea  A renderable for a tree structure.

Attributes:
    ASCII_GUIDES (GuideType): Guide lines used when Console.ascii_only is True.
    TREE_GUIDES (List[GuideType, GuideType, GuideType]): Default guide lines.

Args:
    label (RenderableType): The renderable or str for the tree label.
    style (StyleType, optional): Style of this tree. Defaults to "tree".
    guide_style (StyleType, optional): Style of the guide lines. Defaults to "tree.line".
    expanded (bool, optional): Also display children. Defaults to True.
    highlight (bool, optional): Highlight renderable (if str). Defaults to False.
    hide_root (bool, optional): Hide the root node. Defaults to False.
styletreeguide_stylez	tree.lineexpandedT	highlightF	hide_rootc                sB   < V ^8  d   QhRS[ RS[RS[RS[RS[RS[RR/# )	   labelr   r   r   r   r   returnN)r	   r   boolformat__classdict__   ":/usr/lib/python3.14/site-packages/pip/_vendor/rich/tree.py__annotate__Tree.__annotate__%   sQ     # ## 	#
 # # # # 
#    c               s\    Wn         W n        W0n        . V n        W@n        WPn        W`n        R # N)r   r   r   childrenr   r   r   )selfr   r   r   r   r   r   s   &&$$$$$r!   __init__ZTree.__init__%   s*     

&$& ""r$   Nc                sl   < V ^8  d   QhRS[ RS[S[,          RS[S[,          RS[RS[S[,          RR/# )r   r   r   r   r   r   r   r   )r	   r   r   r   r   r    r!   r"   r#   7   sU       	"	
 i(  D> 
r$   c               s    \        TVf   V P                  MTVf   V P                  MTTVf   V P                  MTR7      pV P                  P                  V4       V# )a  Add a child tree.

Args:
    label (RenderableType): The renderable or str for the tree label.
    style (StyleType, optional): Style of this tree. Defaults to "tree".
    guide_style (StyleType, optional): Style of the guide lines. Defaults to "tree.line".
    expanded (bool, optional): Also display children. Defaults to True.
    highlight (Optional[bool], optional): Highlight renderable (if str). Defaults to False.

Returns:
    Tree: A new child Tree, which may be further modified.
)r   r   r   r   )r   r   r   r   r&   append)r'   r   r   r   r   r   nodes   &&$$$$ r!   addZTree.add7   sX    *  %$**5,7,?(([(1(9dnny
 	T"r$   c                &   < V ^8  d   QhRRRRRR/# )r   consoler   optionsr   r   r
    r   r    r!   r"   r#   V   s*     X X X+;X	Xr$   c           
   #  s  a aa"   . pVP                   pVP                  p\        P                  ! 4       pVP                  p\
        P                  ! 4       pV! S P                  R R7      ;'       g    Tp	\        ^4      w  rr\        oR VVV 3R llpV! W4      .pV! \        \        S .4      4      4       \        V! S P                  4      4      p\        V! S P                  4      4      p\        RRR7      p^ pV'       Ed   V! 4       p \        V4      w  ppT! T4       T'       d'   T! YR,          P                  ;'       g    T4      TR&   TP                  T! TP                  4      ,           p	TP                  T! TP                  4      ,           pTS P                   '       d   ^M^R pTP#                  \%        TP&                  T4      SP)                  SP*                  \-        R T 4       4      ,
          S P.                  RR7      SP0                  RJR	7      pT^ 8X  d   S P                   '       g   \3        T4       F  w  ppT'       d'   SP5                  TTP6                  TR
7       Rj  xL
  T Rj  xL
  Tx  T'       g   KL  T'       g   KV  T! T'       d   T
MTTR,          P                  ;'       g    T4      TR&   K  	  TP8                  '       g   EK  TP:                  '       g   EK  T! T'       d   T
MTTR,          P                  ;'       g    T4      TR&   TP                  T! \=        TP:                  4      ^8X  d   TMTT	4      4       TP?                  T! TP                  4      4       TP?                  T! TP                  4      4       T! \        \        TP:                  4      4      4       T^,          pEK  R#   \         df    TP                  4        T'       dI   TR,          P                  ;'       g    Tp	T! Y4      TR&   TP                  4        TP                  4         EKF  i ; i EL EL5i) )Zdefaultc                s<    V ^8  d   QhR\         R\        R\        /# )r   indexr   r   )Zintr   r   )r   s   "r!   r"   Z+Tree.__rich_console__.<locals>.__annotate__e   s!     	) 	)c 	)% 	)G 	)r$   c                s  < SP                   '       d   SP                  V ,          pMXVP                  '       d   ^MVP                  '       d   ^M^ pSP                  SP
                  '       d   ^ MT,          V ,          pS! W!4      # )z.Make a Segment for a level of the guide lines.)Z
ascii_onlyASCII_GUIDESbold
underline2TREE_GUIDESZlegacy_windows)r1   r   lineZguide_Segmentr.   r'   s   &&  r!   
make_guideZ)Tree.__rich_console__.<locals>.make_guidee   si    !!!((/"ZZZ53C3C3Ca''W-C-C-COPUVD((r$   F)r3   r4   Nc              3   s8   "   T F  qP                   x  K  	  R # 5ir%   )Zcell_length)Z.0levels   & r!   Z	<genexpr>Z(Tree.__rich_console__.<locals>.<genexpr>   s     @++s   )Zwidthr   Zheight)Zpad)Z
post_stylei) popr)   r   r6   	get_styler   Znullr   Zrangeiterr   r   r   nextStopIterationZcurrentr   Zrender_linesr   r   ZupdateZ	max_widthZsumr   justifyr   Zapply_styleZbackground_styler   r&   Zlenpush)r'   r-   r.   stackr:   r@   Znew_liner;   Z
null_styler   ZSPACEZCONTINUEZFORKZENDr8   ZlevelsZguide_style_stackZstyle_stackZremove_guide_stylesZdepthZ
stack_nodeZlastr*   r   ZprefixZrenderable_linesZfirstr6   r7   s   f&f                         @r!   __rich_console__ZTree.__rich_console__V   s     46ii||<<>%%	ZZ\
 0 0"=KK%*1X"	) 	) ",H!B CT)TF#$%&y1A1A'BC 4::!67#5AeJ	!*-
d 'BZ-=-=-K-KLr
+33i@P@P6QQK'')DJJ*??E$...Qa:;F&33tzz5)!++@@@A"nn	   OO4/  4 	  QJ4>>>#-.>#?KE4#+#7#7"!22': $8 $  
  $OO"Nu%/%)Ex9I9I9W9WZ&r
 $@ }}}'!Ex1A1A1O1OZr
 c$--&8A&=s4U   4::!67!&&y1A1A'BCT)DMM234
o  ! 

"(*"2"2"@"@jK!+D!>F2J%))+OO%:
 $s   C?QQO Q+QA"Q*BQ::Q4Q5	Q>Q	?QQ	Q%QQ%Q:	QQ!B2Q"Q6Q.Q>QQQ	Qc                r,   )r   r-   r   r.   r   r   r   r/   r   r    r!   r"   r#      s%     - - -+;-	-r$   c                s*   \        V .4      .pVP                  pVP                  p^ p^ p\        P                  p^ p	V'       d   V! 4       p
 \        V
4      pT! T
4       T! YTP                  4      w  rT	^,          p\        Y,           T4      p\        Y,           T4      pTP                  '       g   Ky  TP                  '       g   K  T! \        TP                  4      4       T	^,          p	K  \        Wg4      #   \         d    T	^,          p	 K  i ; i)r    )r<   r:   r)   r   Zgetr=   r>   r   Zmaxr   r&   )r'   r-   r.   rA   r:   r@   ZminimumZmaximummeasurer9   Z	iter_treer   Zmin_measureZmax_measureZindents   &&&            r!   __rich_measure__ZTree.__rich_measure__   s     (,TF|nii||//II O'.w'L$KQYF+.8G+.8G}}}T$--()
7,, ! 
s   C: :DD)r&   r   r   r   r   r   r   )    z|   z+-- z`-- ))rE   u   │   u
   ├── u
   └── )rE   u   ┃   u
   ┣━━ u
   ┗━━ )rE   u   ║   u
   ╠══ u
   ╚══ )__name__Z
__module__Z__qualname__Z__firstlineno__Z__doc__r2   r5   r(   r+   rB   rD   Z__static_attributes__Z__classdictcell__)r   s   @r!   r   r      s      4LK# "	#
 "-# #  #  # #$ &*	
 ,0  %* >X Xt- -r$   r   Z__main__)Group)Markdown)Panel)Syntax)Tabler0   Zdim)Z
row_stylesZReleasedZcyanT)r   Zno_wrapZTitleZmagenta)r   z
Box OfficeZrightZgreen)r?   r   zDec 20, 2019z Star Wars: The Rise of Skywalkerz$952,110,690zMay 25, 2018zSolo: A Star Wars Storyz$393,151,347zDec 15, 2017z!Star Wars Ep. V111: The Last Jediz$1,332,539,889zDec 16, 2016zRogue One: A Star Wars Storyz$1,332,439,889zmclass Segment(NamedTuple):
    text: str = ""
    style: Optional[Style] = None
    is_control: bool = False
ZpythonZmonokai)ZthemeZline_numbersz=### example.md
> Hello, World!
>
> Markdown _all_ the things
u   🌲 [b green]Rich Tree)r   r   z:file_folder: RenderablesZred)r   z!:file_folder: [bold yellow]Atomiczuu greenu   📄 Syntaxu   📄 Markdown)Zborder_stylez&:file_folder: [bold magenta]Containerszbold magentazJust a panelu   📄 Panelsu   📄 [b magenta]TableN)6Ztypingr   r   r   r   Z_loopr   r   r-   r   r   r	   r
   Zjupyterr   rC   r   Zsegmentr   r   r   r   r   Zstyledr   ZstrZ	GuideTyper   rF   Zpip._vendor.rich.consolerG   Zpip._vendor.rich.markdownrH   Zpip._vendor.rich.panelrI   Zpip._vendor.rich.syntaxrJ   Zpip._vendor.rich.tablerK   ZtableZ
add_columnZadd_rowZcodeZsyntaxZmarkdownZrootr+   r*   Zsimple_nodeZcontainers_noder   ZfitZpanelZprintr/   r$   r!   <module>rL      s   2 2 ( J J !    / / #sC$%	{-< {-| z.2,.,b%[)E	Zvt<	WI.	\7'B	MM."DnU	MM.";^L	MM."EGWX	MM."@BRSD D()$GF	H )TTJD88/U8CD((>J(WKOOE-01OOE/5+PQRhh0n  O  $OIIn59EmU345u=>iGMM$k r$   