
    4Քh              #          S SK r S SKrS SKrS SKrS SKJrJr  S SKJr  S SK	J
r
  S SKJrJr  S SKJrJrJrJrJrJrJrJrJrJrJr  S SKJr  S SKJrJrJrJ r J!r!J"r"  S S	KJ#r$  S S
KJ%r%  S SK&J'r'  SSK(J)r)  SSK*J+r+J,r,  SSK-J.r.  SSK/J0r0J1r1J2r2J3r3J4r4J5r5  SSK6J7r7  SSK8J9r9J:r:  SSK;J<r<  SSK=J>r>  SSK?J@r@  SSKAJBrBJCrC  SS	KDJ#r#  SSKEJFrF  \R                  S:H  rHSrISrJS\CS\CS\\\K\K\K4      4S jrLSSS S!SS"S"\I\JS#SS#S$SS%.S&\\0   S'\\K   S(\\K   S)\KS*\\M   S+\NS,\NS-\KS.\KS/\NS0\\N   S1\NS2\\\M\4      S3\KS\\\O   \O\\   /\4   4S4 jjrP\ " S5 S65      5       rQ\ " S7 S85      5       rR\ " S9 S:5      5       rS\ " S; S<5      5       rT " S= S>\95      rU " S? S@5      rV\WSA:X  a)  \P" S#SB9  S SKrSC\SS4SD jrXSC\SS4SE jrYSGSF jrZ\Z" 5         gg)H    N)	dataclassfield)islice)walk_tb)
ModuleTypeTracebackType)AnyCallableDictIterableListOptionalSequenceSetTupleTypeUnion)guess_lexer_for_filename)CommentKeywordNameNumberOperatorString)Text)Token)ClassNotFound   )pretty)loop_first_last	loop_last)Columns)ConsoleConsoleOptionsConsoleRenderableGroupRenderResultgroup)	Constrain)RegexHighlighterReprHighlighter)Panel)render_scope)Style)SyntaxSyntaxPosition)Themewin32
   P   startendreturnc              #      #    U u  p#Uu  pEX$:X  a  X#U4v   g[        [        X$S-   5      5       H,  u  pgnU(       a  XS4v   M  U(       a	  USU4v   M%  USS4v   M.     g7f)zYield start and end positions per line.

Args:
    start: Start position.
    end: End position.

Returns:
    Iterable of (LINE, COLUMN1, COLUMN2).
r   r   N)r    range)	r5   r6   line1column1line2column2firstlastline_nos	            R/var/www/auris/envauris/lib/python3.13/site-packages/pip/_vendor/rich/traceback.py_iter_syntax_linesrC   7   sm      NENE~g%%$3E%4K$L E**q'))q"n$ %Ms   AAd   X      FT )consolewidth
code_widthextra_linestheme	word_wrapshow_localslocals_max_lengthlocals_max_stringlocals_hide_dunderlocals_hide_sunderindent_guidessuppress
max_framesrH   rI   rJ   rK   rL   rM   rN   rO   rP   rQ   rR   rS   rT   rU   c                   ^^^^^^^^^	^
^^^^^ U c	  [        SS9OU mTR                  (       a  T
c  SOT
m
S[        [           S[        S[        [
           SS4UUUU	U
UUUUUUUUU4S jjmS	[        SS4U4S
 jjn [        5       nU" U5        [        R                  $ ! [         a     [        R                  nT[        l	        Us $ f = f)a9  Install a rich traceback handler.

Once installed, any tracebacks will be printed with syntax highlighting and rich formatting.


Args:
    console (Optional[Console], optional): Console to write exception to. Default uses internal Console instance.
    width (Optional[int], optional): Width (in characters) of traceback. Defaults to 100.
    code_width (Optional[int], optional): Code width (in characters) of traceback. Defaults to 88.
    extra_lines (int, optional): Extra lines of code. Defaults to 3.
    theme (Optional[str], optional): Pygments theme to use in traceback. Defaults to ``None`` which will pick
        a theme appropriate for the platform.
    word_wrap (bool, optional): Enable word wrapping of long lines. Defaults to False.
    show_locals (bool, optional): Enable display of local variables. Defaults to False.
    locals_max_length (int, optional): Maximum length of containers before abbreviating, or None for no abbreviation.
        Defaults to 10.
    locals_max_string (int, optional): Maximum length of string before truncating, or None to disable. Defaults to 80.
    locals_hide_dunder (bool, optional): Hide locals prefixed with double underscore. Defaults to True.
    locals_hide_sunder (bool, optional): Hide locals prefixed with single underscore. Defaults to False.
    indent_guides (bool, optional): Enable indent guides in code and locals. Defaults to True.
    suppress (Sequence[Union[str, ModuleType]]): Optional sequence of modules or paths to exclude from traceback.

Returns:
    Callable: The previous exception handler that was replaced.

NT)stderrtype_value	tracebackr7   c                 ~   > [         R                  U UUTTTTTTT	T
T[        T5      TTTS9nTR                  U5        g )NrI   rJ   rK   rL   rM   rN   rO   rP   rQ   rR   rS   rT   rU   )	Tracebackfrom_exceptionboolprint)rX   rY   rZ   exception_tracebackrJ   rK   rS   rQ   rR   rO   rP   rU   rN   rT   rL   traceback_consolerI   rM   s       rB   
excepthookinstall.<locals>.excepthook   sb    
 (66!##//1#$67'!! 7 
$ 	 34    ipc           	         >^ ^^^ 0 mT R                   mS[        S[        SS 4UU4S jjnSS.S[        S[        S[        SS 4UU U4S jjjmTT l        UT l         U4S	 jT l        g )
Nargskwargsr7   c                     > UmT" U 0 UD6  g)zEwrap the default ip.showtraceback to store info for ip._showtracebackNrG   )rh   ri   default_showtracebacktb_datas     rB   ipy_show_tracebackCinstall.<locals>.ipy_excepthook_closure.<locals>.ipy_show_traceback   s     G!4262re   F)	is_syntaxro   c                   > T	R                  5       nU (       a  SOUS   nT
R                  SS5      nT
R                  S5      nUc  U(       a  SOSn[        U5       H  nUc    OUR                  nM     T" US   US   U5        0 m
g)z2Internally called traceback from ip._showtracebackN   running_compiled_codeF	tb_offsetr   r   )_get_exc_infogetr:   tb_next)ro   rh   ri   	exc_tupletbcompiledrs   _rc   rf   rl   s           rB   ipy_display_tracebackFinstall.<locals>.ipy_excepthook_closure.<locals>.ipy_display_traceback   s    
 ((*I 3<$1B {{#:EBHK0I !)Aq	9%:ZZ &
 y|Yq\26Gre   c                     > T" U SS0UD6$ )Nro   TrG   )rh   ri   r{   s     rB   <lambda>9install.<locals>.ipy_excepthook_closure.<locals>.<lambda>   s    5J6
!6
%+6
re   )showtracebackr	   r_   _showtracebackshowsyntaxerror)rf   rm   rk   r{   rl   rc   s   ` @@@rB   ipy_excepthook_closure'install.<locals>.ipy_excepthook_closure   s~     " 0 0	3c 	3S 	3T 	3 	3 +0		#'	;>		 	4 2-
re   )r#   
is_jupyterr   BaseExceptionr   r   r	   get_ipythonsysrc   	Exception)rH   rI   rJ   rK   rL   rM   rN   rO   rP   rQ   rR   rS   rT   rU   r   rf   old_excepthookrc   rb   s    `````````````   @@rB   installr   S   s    V 18t,W ((-?-G 	 5M"55 M*5 
	5 5 52)
3 )
4 )
V	]r"~~ #	s   >!B   'C
	C
c                       \ rS rSr% \\S'   \\S'   \\S'   Sr\\S'   Sr\	\
\\R                  4      \S'   Sr\	\\\\4   \\\4   4      \S	'   S
rg)Frame   filenamelinenoname lineNlocalslast_instructionrG   )__name__
__module____qualname____firstlineno__str__annotations__intr   r   r   r   r   Noder   r   __static_attributes__rG   re   rB   r   r      sa    MK
ID#N/3FHT#v{{*+,3JNhuU38_eCHo%EFGNre   r   c                   d    \ rS rSr% \\S'   \\S'   \\S'   \\S'   \\S'   \" \S9r	\
\   \S'   S	rg
)_SyntaxError   offsetr   r   r   msgdefault_factorynotesrG   N)r   r   r   r   r   r   r   r   listr   r   r   rG   re   rB   r   r      s.    KM
IK	HT2E492re   r   c                       \ rS rSr% \\S'   \\S'   Sr\\   \S'   Sr	\
\S'   \" \S9r\\   \S	'   \" \S9r\\   \S
'   Sr\
\S'   \" \S9r\S   \S'   Srg)Stack   exc_type	exc_valueNsyntax_errorFis_causer   framesr   is_groupTrace
exceptionsrG   )r   r   r   r   r   r   r   r   r   r   r_   r   r   r   r   r   r   r   r   r   rG   re   rB   r   r      sh    MN+/L(<(/Hd5FDK5T2E492Hd %d ;JW;re   r   c                   &    \ rS rSr% \\   \S'   Srg)r      stacksrG   N)r   r   r   r   r   r   r   r   rG   re   rB   r   r      s    Kre   r   c                       \ rS rSrS/rSrg)PathHighlighter   z(?P<dim>.*/)(?P<bold>.+)rG   N)r   r   r   r   
highlightsr   rG   re   rB   r   r      s
    -.Jre   r   c            $       F   \ rS rSrSrSSSSSS.r S2S	S
SSSS\\SSSSS	S.S\\	   S\\
   S\\
   S\
S\\   S\S\S\
S\
S\S\S\S\\\\4      S\
4S jjjr\S	S
SSSS\\SSSSS	S.S\\   S \S!\\   S\\
   S\\
   S\
S\\   S\S\S\
S\
S\S\S\S\\\\4      S\
S"S 4"S# jj5       r\S\\SSSS$.S\\   S \S!\\   S\S\
S\
S\S\S%\\\      S"\	4S& jj5       rS'\S(\S"\4S) jr\" 5       S*\S"\4S+ j5       r\S,\S-\S"\4S. j5       r \" 5       S/\!S"\4S0 j5       r"S1r#g)3r]      a  A Console renderable that renders a traceback.

Args:
    trace (Trace, optional): A `Trace` object produced from `extract`. Defaults to None, which uses
        the last exception.
    width (Optional[int], optional): Number of characters used to traceback. Defaults to 100.
    code_width (Optional[int], optional): Number of code characters used to traceback. Defaults to 88.
    extra_lines (int, optional): Additional lines of code to render. Defaults to 3.
    theme (str, optional): Override pygments theme used in traceback.
    word_wrap (bool, optional): Enable word wrapping of long lines. Defaults to False.
    show_locals (bool, optional): Enable display of local variables. Defaults to False.
    indent_guides (bool, optional): Enable indent guides in code and locals. Defaults to True.
    locals_max_length (int, optional): Maximum length of containers before abbreviating, or None for no abbreviation.
        Defaults to 10.
    locals_max_string (int, optional): Maximum length of string before truncating, or None to disable. Defaults to 80.
    locals_hide_dunder (bool, optional): Hide locals prefixed with double underscore. Defaults to True.
    locals_hide_sunder (bool, optional): Hide locals prefixed with single underscore. Defaults to False.
    suppress (Sequence[Union[str, ModuleType]]): Optional sequence of modules or paths to exclude from traceback.
    max_frames (int): Maximum number of frames to show in a traceback, 0 for no maximum. Defaults to 100.

textpythoncythonpyrex)r   z.pyz.pxdz.pyxz.pxiNrD   rE   rF   FTrG   r\   tracerI   rJ   rK   rL   rM   rN   rO   rP   rQ   rR   rS   rT   rU   c                   Uc?  [         R                  " 5       u  nnnUb  Ub  Uc  [        S5      eU R                  UUUUS9nXl        X l        X0l        X@l        [        R                  " U=(       d    S5      U l
        X`l        Xpl        Xl        Xl        Xl        Xl        Xl        / U l        U H  n['        U[(        5      (       dB  UR*                  c   U< S35       e[,        R.                  R1                  UR*                  5      nOUn[,        R.                  R3                  [,        R.                  R5                  U5      5      nU R$                  R7                  U5        M     US:  a  [9        SU5      U l        g SU l        g )Nz9Value for 'trace' required if not called in except: blockrN   	ansi_darkz+ must be a module with '__file__' attributer      )r   exc_info
ValueErrorextractr   rI   rJ   rK   r/   	get_themerL   rM   rN   rS   rO   rP   rQ   rR   rT   
isinstancer   __file__ospathdirnamenormpathabspathappendmaxrU   )selfr   rI   rJ   rK   rL   rM   rN   rO   rP   rQ   rR   rS   rT   rU   r   r   rZ   suppress_entityr   s                       rB   __init__Traceback.__init__  sa   $ =-0\\^*Hi9#4	8I O  LL)YK ! E 

$&%%e&:{;
"&*!2!2"4"4')'Oos33#,,8U%((STU8ww'?'?@&77##BGGOOD$9:DMM  &  ( 1;Q#a,Are   r   r   rZ   r7   c                T    U R                  UUUU	U
UUUS9nU " UUUUUUU	UU
UUUUUS9$ )a,  Create a traceback from exception info

Args:
    exc_type (Type[BaseException]): Exception type.
    exc_value (BaseException): Exception value.
    traceback (TracebackType): Python Traceback object.
    width (Optional[int], optional): Number of characters used to traceback. Defaults to 100.
    code_width (Optional[int], optional): Number of code characters used to traceback. Defaults to 88.
    extra_lines (int, optional): Additional lines of code to render. Defaults to 3.
    theme (str, optional): Override pygments theme used in traceback.
    word_wrap (bool, optional): Enable word wrapping of long lines. Defaults to False.
    show_locals (bool, optional): Enable display of local variables. Defaults to False.
    indent_guides (bool, optional): Enable indent guides in code and locals. Defaults to True.
    locals_max_length (int, optional): Maximum length of containers before abbreviating, or None for no abbreviation.
        Defaults to 10.
    locals_max_string (int, optional): Maximum length of string before truncating, or None to disable. Defaults to 80.
    locals_hide_dunder (bool, optional): Hide locals prefixed with double underscore. Defaults to True.
    locals_hide_sunder (bool, optional): Hide locals prefixed with single underscore. Defaults to False.
    suppress (Iterable[Union[str, ModuleType]]): Optional sequence of modules or paths to exclude from traceback.
    max_frames (int): Maximum number of frames to show in a traceback, 0 for no maximum. Defaults to 100.

Returns:
    Traceback: A Traceback instance that may be printed.
)rN   rO   rP   rQ   rR   )rI   rJ   rK   rL   rM   rN   rS   rO   rP   rQ   rR   rT   rU   )r   )clsr   r   rZ   rI   rJ   rK   rL   rM   rN   rO   rP   rQ   rR   rS   rT   rU   rich_tracebacks                     rB   r^   Traceback.from_exceptionS  si    Z #//11 % 	
 !##'//11!
 	
re   )rN   rO   rP   rQ   rR   _visited_exceptionsr   c                "	  ^^ / n
SnSSK Jn  [        USS5      =(       d    / nU	c
  [        5       OU	nS[        S[
        4S jn [        U" UR                  5      U" U5      UUS
9n[        R                  S:  a  [        U[        [        45      (       ay  S	Ul        UR                   Hb  nUU;   a  M  UR                  U5        UR                  R!                  ["        R%                  ['        U5      UUR(                  UUTTUS95        Md     [        U[*        5      (       ai  [-        UR.                  =(       d    SUR0                  =(       d    SUR2                  =(       d    SUR4                  =(       d    SUR6                  US9Ul        U
R!                  U5        UR:                  R                   nS[<        [>        [
        [@        4      S[<        [>        [
        [@        4      4UU4S jjn[C        U5       GH  u  nnURD                  RF                  nSn[        R                  S:  a[  URH                  S-  n[K        [M        URD                  RO                  5       UUS-   5      5      nUu  nnnnUb  Ub  Ub  Ub  UU4UU44nU(       aZ  URQ                  S5      (       dD  [R        RT                  RW                  U5      (       d   [R        RT                  RY                  UU5      nURZ                  R]                  SS5      (       a  GM  [_        U=(       d    SUURD                  R`                  U(       a  U" URZ                  Rc                  5       5       VVs0 s HW  u  nn[d        Rf                  " U5      (       a  M#  [d        Rh                  " U5      (       a  M@  U[j        Rl                  " UUUS9_MY     snnOSUS9n U" U 5        URZ                  R]                  SS5      (       d  GM  UR:                  SS2	 GM     U(       dt  [        USS5      n!U!b$  U!ULa  U!Rn                  nU!nU!R(                  nS	nGM  URp                  n!U!b1  [        USS5      (       d  U!Rn                  nU!nU!R(                  nSnGM<   [s        U
S9n"U"$ s  snnf )aD  Extract traceback information.

Args:
    exc_type (Type[BaseException]): Exception type.
    exc_value (BaseException): Exception value.
    traceback (TracebackType): Python Traceback object.
    show_locals (bool, optional): Enable display of local variables. Defaults to False.
    locals_max_length (int, optional): Maximum length of containers before abbreviating, or None for no abbreviation.
        Defaults to 10.
    locals_max_string (int, optional): Maximum length of string before truncating, or None to disable. Defaults to 80.
    locals_hide_dunder (bool, optional): Hide locals prefixed with double underscore. Defaults to True.
    locals_hide_sunder (bool, optional): Hide locals prefixed with single underscore. Defaults to False.

Returns:
    Trace: A Trace instance which you can use to construct a `Traceback`.
Fr   )_IMPORT_CWD	__notes__N_objectr7   c                 :     [        U 5      $ ! [         a     gf = f)z1Don't allow exceptions from __str__ to propagate.z<exception str() failed>)r   r   )r   s    rB   safe_str#Traceback.extract.<locals>.safe_str  s#    27|# 212s   
 
T)r   r   r   r   )rF      )rN   rO   rQ   rR   r   ?r   )r   r   r   r   r   r   iter_localsc              3      >#    T(       d  T(       d  U  Sh  vN   gU  HH  u  pT(       a  UR                  S5      (       a  M$  T(       a  UR                  S5      (       a  MC  X4v   MJ     g NT7f)z-Extract locals from an iterator of key pairs.N__rz   
startswith)r   keyrY   rQ   rR   s      rB   
get_locals%Traceback.extract.<locals>.get_locals  s[      +.@***"-JC)cnnT.B.B )cnnS.A.A *$ #. +s   A.A,AA.rq   r   <_rich_traceback_omit)
max_length
max_string)r   r   r   r   r   _rich_traceback_guard	__cause____suppress_context__)r   ):pip._vendor.richr   getattrsetr	   r   r   r   r   version_infor   BaseExceptionGroupExceptionGroupr   r   addr   r]   r   type__traceback__SyntaxErrorr   r   r   r   r   r   r   r   r   r   objectr   f_codeco_filenamef_lastinextr   co_positionsr   r   r   isabsjoinf_localsru   r   co_nameitemsinspect
isfunctionisclassr   traverse	__class____context__r   )#r   r   r   rZ   rN   rO   rP   rQ   rR   r   r   r   r   r   grouped_exceptionsr   stack	exceptionr   r   frame_summaryrA   r   r   instruction_indexinstruction_position
start_lineend_linestart_column
end_columnr   rY   framecauser   s#          ``                          rB   r   Traceback.extract  sa   > !0"9k4@FB )0CE6I 		2c 	2c 	2 !("3"34"9-!	E 7*i*<n)MNN%)EN%.%9%9	$(::$*..y9((//%-- $Y ) ) 7 7,72C3E3E4F . 		 &:" )[11%1$++0q&//63$++0q"-2!&" MM% \\((F%%eCK&89%%V,-% % +2)*<&w(//;; $( ##w.(5(=(=(B%+/)00==?--1,( -" $" #.$0(4&2 (6%z2,(
 H$7$7$<$<77==22#%77<<X#F ))--.DeLL%_"&--55 ' /99O9O9U9U9W.X /Y
U$+$6$6u$= BIQVAWC %+<+<" 
 /Y "%5#& u ))--.EuMMQu +=x &	;=$i)?$H %I !& 3 3I#H!--$W5u. .  %H %I % 3 3I$HV$Ws   "RR RrH   optionsc           	   #     ^ ^^^^	^
#    T R                   nUR                  5       mUR                  n[        0 SU" [        5      _SU" [
        5      _SU" [        5      _SU" [        R                  5      _SU" [        5      _SU" [        5      [        SS9-   _S	U" [        5      _S
U" [        5      [        SS9-   _SU" [        5      _SU" [        R                  5      _SU" [        R                  5      _SU" [        R                  5      _SU" [        R                  5      _SU" [        5      _SU" [        5      _SU" [        R                  5      [        SS9-   _SS9m
[!        5       m[#        5       S[$        S[&        S[(        4UUUU	U U
4S jj5       m	[+        [-        T R.                  R0                  5      5       H  u  pVT	" Xe5      v   M     g 7f)Nr   pygments.textpygments.stringpygments.functionpygments.numberzrepr.indentT)dimzrepr.strz
repr.brace)boldzrepr.numberzrepr.bool_truezrepr.bool_falsez	repr.nonezscope.borderzscope.equalsz	scope.keyzscope.key.specialF)inheritr  r@   r7   c              3   |  >#    U R                   (       aQ  [        TR                  U 5      ST	SSSS9n[        UTR                  5      nT
R                  T5         Uv   S S S 5        U R                  b  T
R                  T5         [        [        TR                  U R                  5      T	SSSTR                  S9TR                  5      v   S S S 5        [        R                  " U R                   S3S	4T" U R                  R                  5      5      v   OoU R                  (       a9  [        R                  " U R                   S3S	4T" U R                  5      5      v   O%[        R                  " U R                   S	45      v   U R                   H"  n[        R                  " S
T" U5      5      v   M$     U R                  (       a  [        U R                   S5       Hj  u  pE/ n[#        UR$                  5       H  u  pxUR'                  T" X5      5        M     Sv   [        [        [)        U6 SU 3SS9TR                  5      v   Ml     U(       dC  U R*                  (       a  [        R,                  " S5      v   g [        R,                  " S5      v   g g ! , (       d  f       GNA= f! , (       d  f       GN= f7f)Nz7[traceback.title]Traceback [dim](most recent call last)ztraceback.borderT)r   r   )titlestyleborder_styleexpandpaddingztraceback.border.syntax_error)r&  r'  r(  r)  rI   z: ztraceback.exc_type)z[NOTE] ztraceback.noter   r   zSub-exception #ztraceback.group.border)r%  r'  zI
[i]The above exception was the direct cause of the following exception:
zH
[i]During handling of the above exception, another exception occurred:
)r   r,   _render_stackr)   rI   	use_themer   _render_syntax_errorr   assembler   r   r   r   r   	enumerater   r!   r   r   r&   r   from_markup)r  r@   stack_renderablenotegroup_nogroup_exceptionr  
group_lastgroup_stackbackground_stylerH   highlighterrender_stackr   traceback_themes            rB   r8  0Traceback.__rich_console__.<locals>.render_stackz  sb    ||6;&&u-S*!3"7  $--=tzz#J &&7** 8 !!-&&7# 55e6H6HI"2)H#'$*"&** 


 
 8 mm'r*,@A 2 2 6 67  mm'r*,@A0 
 mm'7:N$OPPmm$A;tCTUU $ ~~1:5;K;KQ1O-H68&3<_=S=S3T/
*11,{2WX 4UH#!#56$3H:">)A
 

  2P >>**e  **d  ] 87 87s8   AJ<J&J<AJ*GJ<
J'"J<*
J94J<)rL   get_background_styleget_style_for_tokenr1   	TextTokenr   r   r   Functionr   r   r.   r   Constant	Delimiterr   r+   r(   r   r_   r'   r!   reversedr   r   )r   rH   r  rL   token_styler@   r  r6  r7  r8  r9  s   ``     @@@@rB   __rich_console__Traceback.__rich_console__[  s     

 557//+i0U!3 ";v#6 $[%?	
 ";v#6 {73eoE K/ k)4u$7GG {62 !+g.>.>"? ";w/?/?#@ [)9)9: F,<,< = H 5 [.  $[%?%D/%Q!$ '
, &'	A	 A	T A	l A	 A	 
A	F %Xdjj.?.?%@AKDu++ Bs   GGr   c              #   :  #    [        5       n[        5       nUR                  S:w  as  [        R                  R                  UR                  5      (       aE  [        R                  " SUR                   3S4S[        UR                  5      S4SS9nU" U5      v   U" UR                  R                  5       5      nSUl        [        UR                  S	-
  [        U5      5      nUR!                  S
Xf5        U[        R"                  " SSU-  -   S-   SS9-  nUv   g 7f)Nz<stdin> r  :r  r   r  r&  Tr   zbold underline
u   [traceback.offset]▲[/])r+   r   r   r   r   existsr   r-  r   r   r   rstripno_wrapminr   lenstylizer/  )r   r   r7  path_highlighterr   syntax_error_textr   s          rB   r,  Traceback._render_syntax_error  s    %'*,  I-ww~~l3344}}../02CD*,,-/@A)	 't,,'(9(9(@(@(BC$(!\((1,c2C.DE!!"2FCT--3<"<<!
 	
  s   DDr   codec                 v   [         R                  R                  U5      S   nU(       dI  UR                  S5      nUS:w  a  US U OUnUR	                  S5      (       a  SUR                  5       ;   a  g U R                  R                  U5      =(       d    [        X5      R                  $ ! [         a     gf = f)Nr9   rJ  z#!r   r   )r   r   splitextindexr   lowerLEXERSru   r   r   r   )r   r   rT  extnew_line_index
first_lines         rB   _guess_lexerTraceback._guess_lexer  s    ggx(, "ZZ-N2@B2Fo~.DJ$$T**x:;K;K;M/M	::>>#&W*B8*R*W*WW 		s   46B+ +
B87B8r  c              #     ^ ^#    [        5       nT R                  nS[        S[        [           4U 4S jjnS nT R
                  S:w  a<  [        T R
                  S-  [        UR                  5      T R
                  S-  -
  5      nSn[        UR                  5       GH  u  pxU(       a	  Xu;   a  SnM  U(       a!  Uc   e[        S[        U5       S	3S
SS9v   SnUS:H  n	UR                  m[        U4S jT R                   5       5      n
[        R                  R!                  UR                  5      (       aS  [        R"                  " U" [        UR                  SS95      S[%        UR&                  5      S4SUR(                  S4SS9nO9[        R"                  " SUR(                  S4S[%        UR&                  5      S4SS9nUR                  R+                  S5      (       d  U	(       d  Sv   Uv   UR                  R+                  S5      (       a  U" U5       S h  vN   GM  U
(       a  GM   [,        R.                  " UR                  5      nSR1                  U5      nU(       d  GM  T R3                  UR                  U5      n[5        UUUSUR&                  T R6                  -
  UR&                  T R6                  -   4UR&                  1T R8                  T R:                  T R<                  SS9
nSv   UR>                  b  UR>                  u  nn[A        UU5       Hg  u  nnn US:X  a-  UUS-
     n[        U5      [        URC                  5       5      -
  nUS:X  a  [        UUS-
     5      nURG                  SUU4UU4S9  Mi     URH                  (       a  [K        U/U" U5      QSS9OUv   GM     g  GN! [D         a     M  f = f! [L         a)  n[        R"                  " SU 3S45      v    S nAGM^  S nAff = f7f)Nr  r7   c              3      >#    U R                   (       a8  [        U R                   STR                  TR                  TR                  S9v   g g 7f)Nr   )r%  rS   r   r   )r   r-   rS   rO   rP   )r  r   s    rB   render_locals.Traceback._render_stack.<locals>.render_locals  sD     ||"LL""&"4"4#55#55  s   AAr   rq   FTz
... z frames hidden ...centerztraceback.error)justifyr&  c              3   F   >#    U  H  nTR                  U5      v   M     g 7fNr   ).0r   frame_filenames     rB   	<genexpr>*Traceback._render_stack.<locals>.<genexpr>  s     W^66t<<s   !r  rI  rG  r   z in r  r  zin r   r   )rL   line_numbers
line_rangehighlight_linesrM   rJ   rS   dedentr   r9   ztraceback.error_range)r&  r5   r6   )r)  rJ  )'r   rL   r   r   r%   rU   r:   rO  r   r.  r   r   anyrT   r   r   rK  r-  r   r   r   r   	linecachegetlinesr  r]  r/   rK   rM   rJ   rS   r   rC   lstrip
IndexErrorstylize_ranger   r"   r   )r   r  rQ  rL   ra  exclude_framesexcludedframe_indexr  r?   
suppressedr   
code_linesrT  
lexer_namesyntaxr5   r6   r;   r<   r>   r   errorrh  s   `                      @rB   r*  Traceback._render_stack  s    *,

	 	84E+F 	 +/??a"1$ELL!DOOq$88N
 "+ELL"9K+"?%111S011CD$+ 
 !1$E"^^NWWWJww~~enn--}}$T%..@Q%RS*&(9:ZZ!45) }}ZZ!45*&(9:) >>,,S11%J~~((--(///:=!*!3!3ENN!CJ77:.D !!%!2!25>>4!HJ#"#%)!LL4+;+;;!LL4+;+;;$ */"&..#'??&*&8&8$F H --9%*%;%;
s 8J%QT7U3E7G	)#*a<+5eai+@D.1$i#dkkm:L.LG#*b=.1*UQY2G.HG #00&=',g&6%*G$4 1  8V2 !<<   &!.u!5 %& $
{ #:N 0X $. ) !))# ! --eW'89  so   HPN7P08O(P+BO6/P&A
N:0AP:
OPOP
O>O92P9O>>P)rJ   rK   rS   rQ   rR   rO   rP   rU   rN   rT   rL   r   rI   rM   rf  )$r   r   r   r   __doc__rY  LOCALS_MAX_LENGTHLOCALS_MAX_STRINGr   r   r   r   r_   r   r   r   r   classmethodr   r	   r   r   r^   r   r   r#   r$   r'   rC  r(   r   r,  r]  r   r*  r   rG   re   rB   r]   r]      sn   . F "&3F  #$&#!!2!2#'#("57!3F3F }	3F
 SM3F 3F }3F 3F 3F 3F 3F !3F !3F 3F 5j123F  !3Fj   #$&#!!2!2#'#("57%F
s)F
 !F
 M*	F
 }F
 SMF
 F
 }F
 F
 F
 F
 F
 !F
 !F
  !F
" 5j12#F
$ %F
& 
'F
 F
P  "!2!2#'#(<@|}%| !| M*	| | | | !| !| &c-&89| 
| ||d,d,)7d,	d,L W   ,    , C s s   W}5 }\ } }re   r]   __main__r   ac                 "    Sn[        X-  5        g )Nr   )r`   )r  ones     rB   barr  m  s     cgre   c                 ,    Sn1 SkSS.n[        U 5        g )NT>   Duncan IdahoThufir HawatPaul AtreidesVladimir Harkonnen)NFT)
charactersatomic_types)r  )r  r   zeds      rB   foor  s  s"     $ 0
 	Are   c                      [        S5        g )Nr   )r  rG   re   rB   r|  r|    s	    Are   )r7   N)[r  rp  r   r   dataclassesr   r   	itertoolsr   rZ   r   typesr   r   typingr	   r
   r   r   r   r   r   r   r   r   r   pip._vendor.pygments.lexersr   pip._vendor.pygments.tokenr   r   r   r   r   r   r   r=  r   pip._vendor.pygments.utilr   r   r   _loopr    r!   columnsr"   rH   r#   r$   r%   r&   r'   r(   	constrainr)   r7  r*   r+   panelr,   scoper-   r&  r.   r{  r/   r0   r   rL   r1   platformWINDOWSr  r  r   rC   r   r_   r   r   r   r   r   r   r   r]   r   r  r  r|  rG   re   rB   <module>r     s     	 
 (   +    A W W 8 , 3  -   ! :    *  
,,'
!  %% .%eCcM"#%< "& "..#)-13@g@ C=@ 	@
 @ C=@ @ @ @ @ @ !@ @ uS*_-.@ @  tM"M8M3JKSPQ!@F O O O 3 3 3 < < <   /& /g	 g	T z	s t  
G5 re   