+
    NjW$                       R t ^ RIHt ^ RIt^ RIt^ RIt^ RIt^ RIH	t	 ^ RI
Ht ^ RIHt ]! 4       t]P                   ! R4      t]! ]4      tRtRtR	 R
 lt]3R R llt ! R R4      t]! 4       tR R ltRR R llt ! R R4      tR# )zObject representations for debugging purposes. Unlike the default
repr, these expose more information and produce HTML instead of ASCII.

Together with the CSS and JavaScript of the debugger this gives a
colorful and more compact output.
)annotationsN)deque)format_exception_only)escapez(?:\r\n|\r|\n){2,}zL<div class=box>
  <h3>%(title)s</h3>
  <pre class=help>%(text)s</pre>
</div>zQ<div class=box>
  <h3>%(title)s</h3>
  %(repr)s
  <table>%(items)s</table>
</div>c                    V ^8  d   QhRRRR/#    objobjectreturnstr )formats   "U/data/cameron/venvs/serve_omidlab/lib/python3.14/site-packages/werkzeug/debug/repr.py__annotate__r   &   s     * *F *s *    c                4    \        4       P                  V 4      # )z1Creates a debug repr of an object as HTML string.)DebugReprGeneratorrepr)r	   s   &r   
debug_reprr   &   s    $$S))r   c                    V ^8  d   QhRRRR/# )r   r	   r
   r   Noner   )r   s   "r   r   r   +   s     	 	f 	4 	r   c                    \        4       pV \        J d1   VP                  \        P                  ! ^4      P
                  4      pMVP                  V 4      p\        P                  P                  V4       R# )z\Print the object details to stdout._write (for the interactive
console of the web debugger.
N)	r   missingdump_localssys	_getframef_localsdump_objectstdout_write)r	   genrvs   &  r   dumpr#   +   sP     
C
g~__S]]1-667__S!JJbr   c                  6    ] tR t^7tRtR R ltRR R lltRtR# )	_HelperzyDisplays an HTML version of the normal help, for the interactive
debugger only because it requires a patched sys.stdout.
c                   V ^8  d   QhRR/# r   r   r   r   )r   s   "r   r   _Helper.__annotate__<   s     : :# :r   c                	    R # )z(Type help(object) for help about object.r   selfs   &r   __repr___Helper.__repr__<   s    9r   Nc                    V ^8  d   QhRRRR/# )r   topiczt.Any | Noner   r   r   )r   s   "r   r   r(   ?   s     F Fl Fd Fr   c                	   Vf'   \         P                  P                  RV : R24       R # ^ R IpVP	                  V4       \         P                  P                  4       p\        P                  V4      p\        V4      ^8  d#   V^ ,          pRP                  VR,          4      pMRpV^ ,          p\         P                  P                  \        RVRV/,          4       R # )Nz<span class=help></span>z

:   NNHelptitletext)r   r   r    pydochelpreset_paragraph_resplitlenjoin	HELP_HTML)r+   r/   r6   r"   
paragraphsr4   r5   s   &&     r   __call___Helper.__call__?   s    =JJ 1$AB

5ZZ"((,
z?QqME;;z"~.DEa=D

)wvt&DDEr   r   N)__name__
__module____qualname____firstlineno____doc__r,   r?   __static_attributes__r   r   r   r%   r%   7   s    :F Fr   r%   c               (    V ^8  d   QhRRRRRRRR/# )r   innerr   r	   r
   baseztype | tuple[type, ...]r   r   )r   s   "r   r   r   T   s*     
4 
4c 
4 
46M 
4RU 
4r   c                2   \        V\        4      '       d   V F  p\        V4      VJ g   K  V u # 	  M\        V4      VJ d   V # R pVP                  P                  R9  d   RVP                  P                   R2pV \        V4      P
                   RV  R2# ) z<span class="module">z.</span>())__builtin__
exceptions)
isinstancetupletype	__class__rC   rB   )rI   r	   rJ   clsmodules   &&&  r   _add_subclass_inforW   T   s    $CCyC  
cd	F
}}'DD()A)A(B(KXd3i(()5'33r   c          
     ,    V ^8  d   QhRRRRRRRRRR	/# )
r   leftr   rightrJ   rS   limitintr   z>t.Callable[[DebugReprGenerator, t.Iterable[t.Any], bool], str]r   )r   s   "r   r   r   a   s4      
!%.1Cr   c                &   a aaa R  VV VV3R llpV# )c               (    V ^8  d   QhRRRRRRRR/# )	r   r+   r   r	   zt.Iterable[t.Any]	recursiveboolr   r   r   )r   s   "r   r   *_sequence_repr_maker.<locals>.__annotate__d   s+     ; ;& ;-> ;4 ;TW ;r   c                  < V'       d   \        S R S
 2VS4      # S.pRp\        V4       FX  w  rVV'       d   VP                  R4       VS	8X  d   VP                  R4       RpVP                  V P                  V4      4       KZ  	  V'       d   VP                  R4       VP                  S
4       \        RP	                  V4      VS4      # )z...F, <span class="extended">Tr1   rL   )rW   	enumerateappendr   r<   )r+   r	   r_   bufhave_extended_sectionidxitemrJ   rY   r[   rZ   s   &&&    r   proxy#_sequence_repr_maker.<locals>.proxyd   s    %c%&93EEf %"3IC

4 e|

45(,%JJtyy' ( !JJy!

5!"''#,T::r   r   )rY   rZ   rJ   r[   rk   s   ffff r   _sequence_repr_makerrm   a   s    ; ;" Lr   c                  
   ] tR t^xtR R lt]! RR]4      t]! RR]4      t	]! RR]
4      t]! R	R]4      t]! R
R]4      tR R ltR!R R lltR"R R lltR R ltR R ltR R ltR R ltR R ltR R ltR#R R lltR tR# )$r   c                   V ^8  d   QhRR/# )r   r   r   r   )r   s   "r   r   DebugReprGenerator.__annotate__y   s     & &$ &r   c                	    . V n         R # rA   _stackr*   s   &r   __init__DebugReprGenerator.__init__y   s	    #%r   []rM   rN   zset([z])zfrozenset([z/<span class="module">collections.</span>deque([c                    V ^8  d   QhRRRR/# )r   r	   zt.Pattern[t.AnyStr]r   r   r   )r   s   "r   r   rp      s     J J1 Jc Jr   c                	r    \        VP                  4      p\        P                  ! VR R4      pRV 2pRV R2# )zunicode-escapeignorerz&re.compile(<span class="string regex">z</span>))r   patterncodecsdecode)r+   r	   r|   s   && r   
regex_reprDebugReprGenerator.regex_repr   s=    s{{#--)98DgY-7yIIr   c               $    V ^8  d   QhRRRRRR/# )r   r	   zstr | bytesr[   r\   r   r   r   )r   s   "r   r   rp      s!      { 3  r   c           	     	   R .p\        V4      p\        V4      V,
          ^8  d.   VP                  \        VRV 4      R\        WBR 4      R34       MVP	                  \        V4      4       VP	                  R4       RP                  V4      pV^ ,          R9   g   V^ ,          R8X  d%   V^,          R9   d   \        WQ\        \        34      # V# )z<span class="string">Nrd   r1   rL   z'"b)	r   r;   extendr   rf   r<   rW   bytesr   )r+   r	   r[   rg   r{   outs   &&&   r   string_reprDebugReprGenerator.string_repr   s    &'I q6E>AJJ1Ve9%-1V9%	 JJvay!

9ggcl Q45=QqTS[QqTU]%c== 
r   c               (    V ^8  d   QhRRRRRRRR/# )	r   dz7dict[int, None] | dict[str, int] | dict[str | int, int]r_   r`   r[   r\   r   r   r   )r   s   "r   r   rp      s2     9 9B9 9 	9
 
9r   c           	     	   V'       d   \        R V\        4      # R.pRp\        VP                  4       4       Fw  w  pw  rxV'       d   VP	                  R4       Wc^,
          8X  d   VP	                  R4       RpVP	                  RV P                  V4       RV P                  V4       R24       Ky  	  V'       d   VP	                  R	4       VP	                  R
4       \        RP                  V4      V\        4      # )z{...}{Frc   rd   Tz%<span class="pair"><span class="key">z</span>: <span class="value">z</span></span>r1   }rL   )rW   dictre   itemsrf   r   r<   )	r+   r   r_   r[   rg   rh   ri   keyvalues	   &&&&     r   	dict_reprDebugReprGenerator.dict_repr   s     %gq$77e %!*1779!5C#

4 ai

45(,%JJ7		#7G H((,		%(8'9I "6 !JJy!

3!"''#,488r   c                    V ^8  d   QhRRRR/# )r   r	   t.Anyr   r   r   )r   s   "r   r   rp      s     : :u : :r   c                	6    \        V4      pR \        V4       R2# )z<span class="object">r1   )r   r   )r+   r	   r{   s   && r   object_reprDebugReprGenerator.object_repr   s    I&vayk99r   c               $    V ^8  d   QhRRRRRR/# )r   r	   r   r_   r`   r   r   r   )r   s   "r   r   rp      s!     % % %4 %C %r   c                	:   V\         J d   R \         : R2# \        V\        \        \        34      '       d   RV: R2# \        V\
        4      '       g   \        V\        4      '       d   V P                  V4      # \        V\        4      '       d   V P                  V4      # \        V\        4      '       d   V P                  W4      # \        V\        4      '       d   V P                  W4      # \        V\        4      '       d   V P                  W4      # \        V\         4      '       d   V P#                  W4      # \        V\$        4      '       d   V P'                  W4      # \        V\(        4      '       d   V P+                  W4      # V P-                  V4      # )z<span class="help">r1   z<span class="number">)helperrQ   r\   floatcomplexr   r   r   	RegexTyper   list	list_reprrR   
tuple_reprsetset_repr	frozensetfrozenset_reprr   r   r   
deque_reprr   )r+   r	   r_   s   &&&r   dispatch_repr DebugReprGenerator.dispatch_repr   s<   &=(
'::cC011*3'99c3:c5#9#9##C((c9%%??3''c4  >>#11c5!!??322c3==00c9%%&&s66c4  >>#11c5!!??322$$r   c                   V ^8  d   QhRR/# r'   r   )r   s   "r   r   rp      s     
 
s 
r   c                	     R P                  \        \        P                  ! 4       R,          !  4      pR\        VP                  4       4       R2#   \         d    Rp L,i ; i)rL   :Nr   N?z*<span class="brokenrepr">&lt;broken repr (z)&gt;</span>)r<   r   r   exc_info	Exceptionr   strip)r+   infos   & r   fallback_repr DebugReprGenerator.fallback_repr   s_    	770#,,.2DEFD  &tzz| 45\C	
  	D	s   2A A! A!c                    V ^8  d   QhRRRR/# r   r   )r   s   "r   r   rp      s       3 r   c                	   R pV P                    F  pW1J g   K
  Rp M	  V P                   P                  V4         V P                  W4      V P                   P                  4        #   \         d.    T P                  4       u T P                   P                  4        # i ; i  T P                   P                  4        i ; i)FT)rs   rf   r   popr   r   )r+   r	   r_   rj   s   &&  r   r   DebugReprGenerator.repr   s    	KKD{ 	   	3	,))#9 KKOO  ,))++KKOO, KKOOs#   A' 'BB" BB" "B>c                    V ^8  d   QhRRRR/# r   r   )r   s   "r   r   rp      s     ; ;v ;# ;r   c           
     	   R pR p\        V\        4      '       dY   Rp. pVP                  4        F@  w  rV\        V\        4      '       g   R p M%VP	                  WPP                  V4      34       KB  	  VfS   . pV P                  V4      p\        V4       F.  p VP	                  WPP                  \        W4      4      34       K0  	  RpXR\        P                  V4      ^R  2,          pV P                  W4V4      #   \         d     Kv  i ; i)NzContents ofzDetails for )rQ   r   r   r   rf   r   dirgetattrr   r
   r,   render_object_dump)r+   r	   r   r   r4   r   r   s   &&     r   r   DebugReprGenerator.dump_object   s    .2c4  !EE!iik
!#s++ Ec99U#345	 *
 =E99S>D3xLL#yy1B'C!DE  
 "E1V__S)!B/011&&uT::	 ! s   *C==DDc                    V ^8  d   QhRRRR/# )r   r   zdict[str, t.Any]r   r   r   )r   s   "r   r   rp   
  s     J J- J# Jr   c                	    VP                  4        UUu. uF  w  r#W P                  V4      3NK  	  pppV P                  VR 4      # u uppi )zLocal variables in frame)r   r   r   )r+   r   r   r   r   s   &&   r   r   DebugReprGenerator.dump_locals
  sD    ;<779E9ZS#yy'(9E&&u.HII Fs   ANc               (    V ^8  d   QhRRRRRRRR/# )r   r   zlist[tuple[str, str]]r4   r   r   z
str | Noner   r   )r   s   "r   r   rp     s,     
 
*
36
>H
	
r   c           	     	   . pV F&  w  rVVP                  R \        V4       RV R24       K(  	  V'       g   VP                  R4       \        R\        V4      RRV'       d   TMR R2RR	P                  V4      /,          # )
z<tr><th>z<td><pre class=repr>z</pre>z<tr><td><em>Nothing</em>r4   r   z<pre class=repr>rL   r   
)rf   r   OBJECT_DUMP_HTMLr<   )r+   r   r4   r   
html_itemsr   r   s   &&&&   r   r   %DebugReprGenerator.render_object_dump  s     
JC5I%PVWX  89VE]&tt&<FCTYYz*#
 
 	
r   rr   )F   )   rA   )rB   rC   rD   rE   rt   rm   r   r   rR   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   rG   r   r   r   r   r   x   s    & %S#t4I%c36J#GT37H)-yIN%94JJ692:%.
;0J
 
r   r   )   )rF   
__future__r   r}   rer   typingtcollectionsr   	tracebackr   
markupsafer   r
   r   compiler9   rS   r   r=   r   r   r#   r%   r   rW   rm   r   r   r   r   <module>r      s    #  	 
   + 
(

01		 *
  	F F4 

4.b
 b
r   