+
    '(j                        ^ RI Ht ^ RIHtHt ^ RIt^ RIHtH	t	 ^ RI
t
R R lt]P                  ! RR7       ! R	 R
4      4       tR# )    )annotations)CallableMutableMappingN)AnyLiteralc                    V ^8  d   QhRRRR/# )   valuer   return )formats   "F/home/ubuntu/cf-venv/lib/python3.14/site-packages/markdown_it/token.py__annotate__r   	   s     	 	 	 	    c                \    V '       g   / # \        V \        4      '       d   \        V 4      # V # )zConvert Token.attrs set as ``None`` or ``[[key, value], ...]`` to a dict.

This improves compatibility with upstream markdown-it.
)
isinstancelistdict)r
   s   &r   convert_attrsr   	   s(    
 	%E{Lr   T)slotsc            
         ] tR t^t$ R]R&    R]R&    R]R&    ]P                  ! ]R7      tR]R&    R	t	R
]R&    ^ t
R]R&    R	tR]R&    RtR]R&    RtR]R&    RtR]R&    ]P                  ! ]R7      tR]R&    RtR]R&    RtR]R&    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' ltR( R) ltRR*R+R*R,R	R-R	R.]/R/ R0 llt]R1 R2 l4       tR3tR	# )4TokenstrtypetagzLiteral[-1, 0, 1]nesting)default_factoryzdict[str, str | int | float]attrsNzlist[int] | Nonemapintlevelzlist[Token] | Nonechildren contentmarkupinfozdict[Any, Any]metaFboolblockhiddenc                   V ^8  d   QhRR/# )r	   r   Noner   )r   s   "r   r   Token.__annotate__M   s     / /t /r   c                	:    \        V P                  4      V n        R # N)r   r   selfs   &r   __post_init__Token.__post_init__M   s    "4::.
r   c                    V ^8  d   QhRRRR/# )r	   namer   r   r    r   )r   s   "r   r   r-   P   s     3 3c 3c 3r   c                	    \         P                  ! R \        4       WP                  9  d   R# \	        V P                  P                  4       4      P                  V4      # )zEToken.attrIndex should not be used, since Token.attrs is a dictionary)warningswarnUserWarningr   r   keysindexr1   r5   s   &&r   	attrIndexToken.attrIndexP   sF    S	
 zz!IDJJOO%&,,T22r   c                   V ^8  d   QhRR/# )r	   r   z#list[tuple[str, str | int | float]]r   )r   s   "r   r   r-   Y   s     ( (> (r   c                H    \        V P                  P                  4       4      # )zGet (key, value) list of attrs.)r   r   itemsr0   s   &r   	attrItemsToken.attrItemsY   s    DJJ$$&''r   c                    V ^8  d   QhRRRR/# )r	   attrDataztuple[str, str | int | float]r   r,   r   )r   s   "r   r   r-   ]   s     " "!> "4 "r   c                0    Vw  r#V P                  W#4       R# )zAAdd `[ name, value ]` attribute to list. Init attrs if necessary.N)attrSet)r1   rF   r5   r
   s   &&  r   attrPushToken.attrPush]   s    T!r   c               $    V ^8  d   QhRRRRRR/# )r	   r5   r   r
   zstr | int | floatr   r,   r   )r   s   "r   r   r-   b   s"     ! !C !(9 !d !r   c                "    W P                   V&   R# )z>Set `name` attribute to `value`. Override old value if exists.Nr   )r1   r5   r
   s   &&&r   rH   Token.attrSetb   s     

4r   c                    V ^8  d   QhRRRR/# )r	   r5   r   r   zNone | str | int | floatr   )r   s   "r   r   r-   f   s     * *C *$< *r   c                :    V P                   P                  VR4      # )z@Get the value of attribute `name`, or null if it does not exist.N)r   getr=   s   &&r   attrGetToken.attrGetf   s    zz~~dD))r   c               $    V ^8  d   QhRRRRRR/# )r	   r5   r   r
   r   r,   r   )r   s   "r   r   r-   j   s!     % %S % % %r   c                    WP                   9   d_   V P                   V,          p\        V\        4      '       g    \        RV P                   V,           24      hV RV 2V P                   V&   R# W P                   V&   R# )zyJoin value to existing attribute via space.
Or create new attribute if not exists.
Useful to operate with token classes.
z#existing attr 'name' is not a str:  N)r   r   r   	TypeError)r1   r5   r
   currents   &&& r   attrJoinToken.attrJoinj   sq    
 ::jj&Ggs++9$**T:J9KL  #*!E73DJJt$JJtr   c                    V ^8  d   QhRRRR/# )r	   changesr   r   r   r   )r   s   "r   r   r-   y   s     + +c +e +r   c                0    \         P                  ! V 3/ VB # )z&Return a shallow copy of the instance.)dcreplace)r1   r\   s   &,r   copy
Token.copyy   s    zz$*'**r   Tas_upstreammeta_serializerfilterdict_factoryc               0    V ^8  d   QhRRRRRRRRRR	R
R/# )r	   r"   r(   rb   rc   z&Callable[[dict[Any, Any]], Any] | Nonerd   z!Callable[[str, Any], bool] | Nonere   z'Callable[..., MutableMapping[str, Any]]r   MutableMapping[str, Any]r   )r   s   "r   r   r-   }   sI     - - - 	-
 @- 2- >- 
"-r   c               <  a a V! V 3R l\         P                  ! S 4       4       4      pS'       d!   V! V3R lVP                  4        4       4      pV'       dH   RV9   dA   VR,          '       g   RM+VR,          P                  4        UUu. uF  w  rxWx.NK
  	  uppVR&   V'       d   RV9   d   V! VR,          4      VR&   V'       dI   VP                  RR4      '       d1   VR,           U	u. uF  p	V	P	                  VSVVVR7      NK  	  up	VR&   V# u uppi u up	i )a  Return the token as a dictionary.

:param children: Also convert children to dicts
:param as_upstream: Ensure the output dictionary is equal to that created by markdown-it
    For example, attrs are converted to null or lists
:param meta_serializer: hook for serializing ``Token.meta``
:param filter: A callable whose return code determines whether an
    attribute or element is included (``True``) or dropped (``False``).
    Is called with the (key, value) pair.
:param dict_factory: A callable to produce dictionaries from.
    For example, to produce ordered dictionaries instead of normal Python
    dictionaries, pass in ``collections.OrderedDict``.

c              3  f   <"   T F&  qP                   \        SVP                   4      3x  K(  	  R # 5ir/   )r5   getattr).0fr1   s   & r   	<genexpr> Token.as_dict.<locals>.<genexpr>   s#     X1aff(=>s   .1c              3  N   <"   T F  w  rS! W4      '       g   K  W3x  K  	  R # 5ir/   r   )rk   kvrd   s   &  r   rm   rn      s     "VodaPQ6A6os   %%r   Nr'   r"   )r"   rd   re   rb   rc   )r^   fieldsrB   rQ   as_dict)
r1   r"   rb   rc   rd   re   mappingrp   rq   childs
   f$$$d$    r   rs   Token.as_dict}   s   . X		RVXX""Vgmmo"VVG7g- w'' )0)9)?)?)AB)Aqf)AB G
 v0-gfo>GFOJ55 %Z0	# 1E %!!- +$3   1	#GJ  C
	#s   D,Dc                    V ^8  d   QhRRRR/# )r	   dctrg   r   r   r   )r   s   "r   r   r-      s      4  r   c                    V ! R/ VB pVP                   '       d0   VP                    Uu. uF  q0P                  V4      NK  	  upVn         V# u upi )zConvert a dict to a Token.r   )r"   	from_dict)clsrx   tokencs   &&  r   rz   Token.from_dict   sD     
c
>>>8=G1mmA.GEN Hs   ArM   )__name__
__module____qualname____firstlineno____annotations__r^   fieldr   r   r   r!   r"   r$   r%   r&   r'   r)   r*   r2   r>   rC   rI   rH   rR   rY   r`   rs   classmethodrz   __static_attributes__r   r   r   r   r      s:   
I;	H! +-((4*HE'H
 !C	 =E3N2#'H '7GSUFC?D#N 88D9D.99E4 FD/3("
!*%+- - !	-
 CG- 59- AE-^  r   r   )
__future__r   collections.abcr   r   dataclassesr^   typingr   r   r8   r   	dataclassr   r   r   r   <module>r      s>    " 4   	 D\ \ \r   