ó
    F\h@T  ã            
       óL  • S r SrSrSSKJr  SSKJrJr  SSK	r	SSK
r
SSKJr  SSKrSSKrSSKrSSK7  SS	KJr  SSKr\R(                  " S
\R*                  5      r\R(                  " S\R*                  5      rSSKr\R0                  / SQ-   rC " S S\	R2                  " SS5      5      rS rS rS rSrSr\\" S\-   5      -   \" \5      -   r Sr!Sr"Sr#Sr$Sr%\" \"\#\$\%5      r&Sr'\" SS5      \" \'5      -   r(S\'-   r)\" \(\)5      r*\" S\*S -   5      r+\" \+\*\&5      r,S! r-\
R\                  S" 5       r/\" \-" 5       6 r0S#r1S$r2S%r3S&r4\" \0S'-   \0S(-   5      r5\" \0S)-   \0S*-   5      r6\" \7" \Rp                  \9" \S+S,95      6 r:\" S-\:5      r;\" \,\;\6\!5      r<\ \<-   r=\" \0S.-   \" S/S5      -   \0S0-   \" S1S5      -   5      r>\" S2\\55      r?\\" \?\,\;\>\!5      -   r@0 rA\-" 5        H#  rB\1\A\BS/-   '   \2\A\BS1-   '   \3\A\BS'-   '   \4\A\BS(-   '   M%     CB\C" 5       rD\C" 5       rE\-" 5        HG  rF\FS1-   \FS/-   4 H  rG\DR‘                  \G5        M     \FS(-   \FS'-   4 H  rG\ER‘                  \G5        M     MI     CFCGS3rI " S4 S5\J5      rK " S6 S75      rLS8 rMS9 rNS: rOS; rS< rPS= rQS> rRS? rSSBS@ jrT\USA:X  a  \R" 5         gg)Cao  Tokenization help for Python programs.

tokenize(readline) is a generator that breaks a stream of bytes into
Python tokens.  It decodes the bytes according to PEP-0263 for
determining source file encoding.

It accepts a readline-like method which is called repeatedly to get the
next line of input (or b"" for EOF).  It generates 5-tuples with these
members:

    the token type (see token.py)
    the token (a string)
    the starting (row, column) indices of the token (a 2-tuple of ints)
    the ending (row, column) indices of the token (a 2-tuple of ints)
    the original line (string)

It is designed to match the working of the Python tokenizer exactly, except
that it produces COMMENT tokens for comments and gives type OP for all
operators.  Additionally, all token lists start with an ENCODING token
which tells you which encoding was used to decode the bytes stream.
zKa-Ping Yee <ping@lfw.org>zpGvR, ESR, Tim Peters, Thomas Wouters, Fred Drake, Skip Montanaro, Raymond Hettinger, Trent Nelson, Michael Foordé    )Úopen)ÚlookupÚBOM_UTF8N)ÚTextIOWrapper)Ú*)ÚEXACT_TOKEN_TYPESz&^[ \t\f]*#.*?coding[:=][ \t]*([-\w.]+)s   ^[ \t\f]*(?:[#\r\n]|$))ÚtokenizeÚgenerate_tokensÚdetect_encodingÚ
untokenizeÚ	TokenInfor   Ú
TokenErrorc                   ó*   • \ rS rSrS r\S 5       rSrg)r   é/   c                 ój   • SU R                   [        U R                      4-  nSU R                  US9-  $ )Nz%d (%s)z8TokenInfo(type=%s, string=%r, start=%r, end=%r, line=%r))Útype)r   Útok_nameÚ_replace)ÚselfÚannotated_types     Ú/usr/lib/python3.13/tokenize.pyÚ__repr__ÚTokenInfo.__repr__0   s9   € Ø" d§i¡i´¸$¿)¹)Ñ1DÐ%EÑEˆØJØ—‘ >�Ð2ñ3ð 	4ó    c                 ó�   • U R                   [        :X  a'  U R                  [        ;   a  [        U R                     $ U R                   $ ©N)r   ÚOPÚstringr   ©r   s    r   Ú
exact_typeÚTokenInfo.exact_type5   s2   € à�9‰9œ‹?˜tŸ{™{Ô.?Ó?Ü$ T§[¡[Ñ1Ð1à—9‘9Ðr   © N)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__r   Úpropertyr    Ú__static_attributes__r"   r   r   r   r   /   s   † ò4ð
 ñó ór   r   ztype string start end linec                  ó0   • SSR                  U 5      -   S-   $ )NÚ(Ú|Ú))Újoin©Úchoicess    r   Úgroupr0   <   s   € ˜C #§(¡(¨7Ó"3Ñ3°cÑ9Ð9r   c                  ó   • [        U 6 S-   $ )Nr   ©r0   r.   s    r   Úanyr3   =   s   € œ% ˜/¨CÑ/Ð/r   c                  ó   • [        U 6 S-   $ )NÚ?r2   r.   s    r   Úmayber6   >   s   € œE 7˜O¨cÑ1Ð1r   z[ \f\t]*z	#[^\r\n]*z\\\r?\nz\w+z0[xX](?:_?[0-9a-fA-F])+z0[bB](?:_?[01])+z0[oO](?:_?[0-7])+z(?:0(?:_?0)*|[1-9](?:_?[0-9])*)z[eE][-+]?[0-9](?:_?[0-9])*z)[0-9](?:_?[0-9])*\.(?:[0-9](?:_?[0-9])*)?z\.[0-9](?:_?[0-9])*z[0-9](?:_?[0-9])*z[0-9](?:_?[0-9])*[jJ]z[jJ]c            
      ó  • / SQn S1nU  Hz  n[         R                  " U5       H]  n[         R                  " U Vs/ s H  oDUR                  5       4PM     sn6  H#  nUR	                  SR                  U5      5        M%     M_     M|     U$ s  snf )N)ÚbÚrÚuÚfÚbrÚfrÚ )Ú
_itertoolsÚpermutationsÚproductÚupperÚaddr-   )Ú_valid_string_prefixesÚresultÚprefixÚtÚcr:   s         r   Ú_all_string_prefixesrI   U   s€   € ò >ÐàˆT€FÛ(ˆÜ×(Ò(¨Ö0ˆAô  ×'Ò'Á!Ó)DÂ!¸Q¨a¯g©g«i«.Á!Ñ)DÓE�Ø—
‘
˜2Ÿ7™7 1›:Ö&ó Fó 1ñ )ð €Mùò *Es   ºB
c                 óL   • [         R                  " U [         R                  5      $ r   )ÚreÚcompileÚUNICODE)Úexprs    r   Ú_compilerO   d   s   € ä�:Š:�dœBŸJ™JÓ'Ð'r   z[^'\\]*(?:\\.[^'\\]*)*'z[^"\\]*(?:\\.[^"\\]*)*"z%[^'\\]*(?:(?:\\.|'(?!''))[^'\\]*)*'''z%[^"\\]*(?:(?:\\.|"(?!""))[^"\\]*)*"""z'''z"""z'[^\n'\\]*(?:\\.[^\n'\\]*)*'z"[^\n"\\]*(?:\\.[^\n"\\]*)*"T)Úreversez\r?\nz'[^\n'\\]*(?:\\.[^\n'\\]*)*Ú'z"[^\n"\\]*(?:\\.[^\n"\\]*)*Ú"z
\\\r?\n|\Zé   c                   ó   • \ rS rSrSrg)r   é¢   r"   N)r#   r$   r%   r&   r(   r"   r   r   r   r   ¢   s   † šTr   r   c                   ó8   • \ rS rSrS rS rS rS rS rS r	Sr
g	)
ÚUntokenizeré¥   c                 óX   • / U l         SU l        SU l        S U l        SU l        S U l        g )Né   r   r>   )ÚtokensÚprev_rowÚprev_colÚ	prev_typeÚ	prev_lineÚencodingr   s    r   Ú__init__ÚUntokenizer.__init__§   s,   € ØˆŒØˆŒØˆŒØˆŒØˆŒØˆ�r   c                 óP  • Uu  p#X R                   :  d  X R                   :X  a?  X0R                  :  a0  [        SR                  X#U R                   U R                  5      5      eU R	                  U5        X0R                  -
  nU(       a  U R
                  R                  SU-  5        g g )Nz+start ({},{}) precedes previous end ({},{})Ú )r\   r]   Ú
ValueErrorÚformatÚadd_backslash_continuationr[   Úappend)r   ÚstartÚrowÚcolÚ
col_offsets        r   Úadd_whitespaceÚUntokenizer.add_whitespace¯   s†   € Ø‰ˆØ—‘Ó #¯©Ó"6¸3ÇÁÓ;NÜÐJß$™f S¨t¯}©}¸d¿m¹mÓLóNð Nà×'Ñ'¨Ô.ØŸ=™=Ñ(ˆ
ÞØ�K‰K×Ñ˜s ZÑ/Õ0ð r   c                 ó†  • US   nX R                   -
  nUS:X  a  gU R                  R                  S5      (       a  SOSnU R                  R                  S5      nSR	                  [
        R                  " [        R                  [        U5      5      5      nU R                  R                  USU 3U-  -   5        SU l        g)z¯Add backslash continuation characters if the row has increased
without encountering a newline token.

This also inserts the correct amount of whitespace before the backslash.
r   Nz
Ú
z\
r>   Ú\)r\   r_   ÚendswithÚrstripr-   r?   Ú	takewhileÚstrÚisspaceÚreversedr[   rh   r]   )r   ri   rj   Ú
row_offsetÚnewlineÚlineÚwss          r   rg   Ú&Untokenizer.add_backslash_continuation¹   sž   € ð �A‰hˆØŸ=™=Ñ(ˆ
Ø˜‹?Øà ŸN™N×3Ñ3°F×;Ñ;‘&ÀˆØ�~‰~×$Ñ$ XÓ.ˆØ�W‰W”Z×)Ò)¬#¯+©+´xÀ³~ÓFÓGˆØ�‰×Ñ˜2 " W I °Ñ ;Ñ;Ô<Øˆ�r   c                 óh  • / nSnU H˜  nUS:X  a  U(       a  SnOUR                  U5        US:X  a]  [        S [        R                  " SR                  USS S2   5       5       5      nUS-  S	:X  d	  US   S
:w  a  UR                  U5        OSnUR                  U5        Mš     SR                  U5      $ )NFÚ}Ú{c              3   ó&   #   • U  H  nS v •  M	     g7f)rZ   Nr"   )Ú.0Úchars     r   Ú	<genexpr>Ú.Untokenizer.escape_brackets.<locals>.<genexpr>Ô   s   é € ð $ò#˜$•Aò #ùs   ‚rq   éþÿÿÿéÿÿÿÿé   r   ÚNTr>   )rh   Úsumr?   rt   Ú__eq__r-   )r   ÚtokenÚ
charactersÚconsume_until_next_bracketÚ	characterÚn_backslashess         r   Úescape_bracketsÚUntokenizer.escape_bracketsÊ   sÂ   € Øˆ
Ø%*Ð"ÛˆIØ˜CÓÞ-Ø16Ñ.à×%Ñ% iÔ0Ø˜CÓÜ #ñ $Ü",×"6Ò"6ØŸ™Ø" 2 6 r 6Ñ*ô#ó$ó !�ð ! 1Ñ$¨Ó)¨Z¸©^¸sÓ-BØ×%Ñ% iÕ0à15Ð.Ø×Ñ˜iÖ(ñ# ð$ �w‰w�zÓ"Ð"r   c                 ó  • [        U5      n/ nSnU GHÕ  n[        U5      S:X  a  U R                  XR5          GO³Uu  pgp‰n
U[        :X  a  Xpl        M?  U[
        :X  a    GOŽU[        :X  a  UR                  U5        Mi  U[        :X  a!  UR                  5         U	u  U l
        U l        M”  U[        [        4;   a  SnO»U(       aL  U(       aE  US   nUS   [        U5      :¼  a+  U R                  R                  U5        [        U5      U l        SnOhU[        :X  a^  SU;   d  SU;   aR  U R!                  U5      nUR"                  " 5       S   nU	u  pÞUR%                  S5      UR%                  S	5      -   nXÞU-   4n	U R'                  U5        U R                  R                  U5        U	u  U l
        U l        U[        [        4;   a  U =R                  S-  sl
        S
U l        X`l        X l        GMØ     SR-                  U R                  5      $ )NFr‡   Tr†   rZ   r   r~   z{{z}}r   r>   )ÚiterÚlenÚcompatÚENCODINGr`   Ú	ENDMARKERÚINDENTrh   ÚDEDENTÚpopr\   r]   ÚNEWLINEÚNLr[   ÚFSTRING_MIDDLEr�   Ú
splitlinesÚcountrm   r^   r_   r-   )r   ÚiterableÚitÚindentsÚ	startlinerG   Útok_typer‹   ri   Úendrz   ÚindentÚ	last_lineÚend_lineÚend_colÚextra_charss                   r   r   ÚUntokenizer.untokenizeá   sÃ  € Ü�(‹^ˆØˆØˆ	ÜˆAÜ�1‹v˜‹{Ø—‘˜AÔ"ÚØ01Ñ-ˆH˜U¨Øœ8Ó#Ø %”ÙØœ9Ó$ÚØœ6Ó!Ø—‘˜uÔ%ÙØœVÓ#Ø—‘”Ø/2Ñ,�”˜tœ}ÙØœg¤r˜]Ó*Ø ‘	ÞžwØ  ™�Ø˜‘8œs 6›{Ó*Ø—K‘K×&Ñ& vÔ.Ü$'¨£K�D”MØ!‘	Øœ^Ó+Ø˜%“< 3¨%£<Ø ×0Ñ0°Ó7�EØ %× 0Ò 0Ó 2°2Ñ 6�IØ(+Ñ%�HØ"+§/¡/°$Ó"7¸)¿/¹/È$Ó:OÑ"O�KØ#¨{Ñ%:Ð;�Cà×Ñ Ô&Ø�K‰K×Ñ˜uÔ%Ø+.Ñ(ˆDŒM˜4œ=ØœG¤R˜=Ó(Ø—’ Ñ"•Ø !�”Ø%ŒNØ!�NñQ ðR �w‰w�t—{‘{Ó#Ð#r   c                 óŠ  • / nU R                   R                  nUS   [        [        4;   nSnSn[        R
                  " U/U5       GHx  nUS S u  pšU	[        :X  a  X l        M  U	[        [        4;   a  U
S-  n
U	[        :X  a  U(       a  SU
-   n
SnOSnU	[        :X  a  US-  nOU	[        :X  a  US-  nU	[        :X  a  UR                  U
5        M‰  U	[        :X  a  UR                  5         M¥  U	[        [        4;   a  SnO7U(       a  U(       a  U" US   5        SnOU	[         :X  a  U R#                  U
5      n
U
S;   a0  U R                   (       a  U R                   S   U
:X  a  U(       a  SU
-   n
U	[        [        4;   a5  U R$                  [        [        4;   a  U R                   R                  S5        U" U
5        X�l        GM{     g )	Nr   Fr‡   rd   TrZ   r†   >   r   r~   )r[   rh   r›   rœ   r?   Úchainr–   r`   ÚNAMEÚNUMBERÚSTRINGÚFSTRING_STARTÚFSTRING_ENDr˜   r™   rš   r�   r�   r^   )r   r‹   r    r¢   Útoks_appendr£   Ú
prevstringÚ
in_fstringÚtokÚtoknumÚtokvals              r   r•   ÚUntokenizer.compat  s”  € ØˆØ—k‘k×(Ñ(ˆØ˜!‘H¤¬" Ñ-ˆ	Øˆ
Øˆ
ä×#Ò# U G¨X×6ˆCØ   !˜W‰NˆFØœÓ!Ø &”Ùàœ$¤˜Ó'Ø˜#‘�ð œÓÞØ  6™\�FØ!‘
à"�
àœÓ&Ø˜a‘‘
Øœ;Ó&Ø˜a‘�
ØœÓØ—‘˜vÔ&ÙØœ6Ó!Ø—‘”ÙØœG¤R˜=Ó(Ø ‘	ÞžwÙ˜G B™KÔ(Ø!‘	Øœ>Ó)Ø×-Ñ-¨fÓ5�ð ˜Ó#¨¯¯¸¿¹ÀB¹È6Ó8QÖV`Ø˜v™�ð œ&¤-Ð0Ó0°T·^±^ÌÔP[ÐG\Ó5\Ø—‘×"Ñ" 3Ô'á˜ÔØ#�NòY 7r   )r`   r]   r_   r\   r^   r[   N)r#   r$   r%   r&   ra   rm   rg   r�   r   r•   r(   r"   r   r   rW   rW   ¥   s!   † òò1òò"#ò.-$õ^3$r   rW   c                 óŒ   • [        5       nUR                  U 5      nUR                  b  UR                  UR                  5      nU$ )aU  Transform tokens back into Python source code.
It returns a bytes object, encoded using the ENCODING
token, which is the first token sequence output by tokenize.

Each element returned by the iterable must be a token sequence
with at least two elements, a token number and token value.  If
only two tokens are passed, the resulting output is poor.

The result is guaranteed to tokenize back to match the input so
that the conversion is lossless and round-trips are assured.
The guarantee applies only to the token type and token string as
the spacing between tokens (column positions) may change.
)rW   r   r`   Úencode)r    ÚutÚouts      r   r   r   F  s:   € ô 
‹€BØ
�-‰-˜Ó
!€CØ	‡{�{ÑØ�j‰j˜Ÿ™Ó%ˆØ€Jr   c                 óÀ   • U SS R                  5       R                  SS5      nUS:X  d  UR                  S5      (       a  gUS;   d  UR                  S5      (       a  g	U $ )
z7Imitates get_normal_name in Parser/tokenizer/helpers.c.Né   Ú_Ú-úutf-8zutf-8-)zlatin-1ú
iso-8859-1ziso-latin-1)zlatin-1-ziso-8859-1-ziso-latin-1-rÃ   )ÚlowerÚreplaceÚ
startswith)Úorig_encÚencs     r   Ú_get_normal_namerÉ   [  s^   € ð �3�Bˆ-×
Ñ
Ó
×
'Ñ
'¨¨SÓ
1€CØ
ˆgƒ~˜Ÿ™¨×1Ñ1ØØ
Ð6Ó6Ø
‡~�~ÐA×BÑBØØ€Or   c                 ó¢  ^ ^^•  T R                   R                  mSmSnSnU 4S jnUU4S jnU" 5       nUR                  [        5      (       a	  SmUSS nSnU(       d  U/ 4$ U" U5      nU(       a  X/4$ [
        R                  U5      (       d  X%/4$ U" 5       nU(       d  X%/4$ U" U5      nU(       a  XU/4$ X%U/4$ ! [         a    Sm N²f = f)	aß  
The detect_encoding() function is used to detect the encoding that should
be used to decode a Python source file.  It requires one argument, readline,
in the same way as the tokenize() generator.

It will call readline a maximum of twice, and return the encoding used
(as a string) and a list of any lines (left as bytes) it has read in.

It detects the encoding from the presence of a utf-8 bom or an encoding
cookie as specified in pep-0263.  If both a bom and a cookie are present,
but disagree, a SyntaxError will be raised.  If the encoding cookie is an
invalid charset, raise a SyntaxError.  Note that if a utf-8 bom is found,
'utf-8-sig' is returned.

If no encoding is specified, then the default of 'utf-8' will be returned.
NFrÂ   c                  ó4   >•  T " 5       $ ! [          a     gf = f)Nr   )ÚStopIteration©Úreadlines   €r   Úread_or_stopÚ%detect_encoding.<locals>.read_or_stop~  s"   ø€ ð	Ù“:ÐøÜó 	Ùð	ús   ƒ
 Š
–c                 óâ  >•  U R                  S5      n[        R                  U5      nU(       d  g [        UR                  S5      5      n [        U5      nT(       a-  US:w  a"  Tc  SnOSR                  T5      n[        U5      eUS	-  nU$ ! [         a#    SnTb  SR                  UT5      n[        U5      ef = f! [         a'    Tc  SU-   nOSR                  TU5      n[        U5      ef = f)
NrÂ   z'invalid or missing encoding declarationz{} for {!r}rZ   zunknown encoding: zunknown encoding for {!r}: {}zencoding problem: utf-8z encoding problem for {!r}: utf-8z-sig)
ÚdecodeÚUnicodeDecodeErrorrf   ÚSyntaxErrorÚ	cookie_reÚmatchrÉ   r0   r   ÚLookupError)rz   Úline_stringÚmsgrÖ   r`   ÚcodecÚ	bom_foundÚfilenames         €€r   Úfind_cookieÚ$detect_encoding.<locals>.find_cookie„  s
  ø€ ð		#ð Ÿ+™+ gÓ.ˆKô —‘ Ó,ˆÞØÜ# E§K¡K°£NÓ3ˆð		#Ü˜8Ó$ˆEö Ø˜7Ó"àÑ#Ø3‘Cà<×CÑCÀHÓM�CÜ! #Ó&Ð&Ø˜ÑˆHØˆøô= "ó 	#Ø;ˆCØÑ#Ø#×*Ñ*¨3°Ó9�Ü˜cÓ"Ð"ð		#ûô ó 	#àÑØ*¨XÑ5‘à5×<Ñ<¸XØ ó"�ä˜cÓ"Ð"ð	#ús   ƒB ÁB= Â-B:Â=1C.Té   ú	utf-8-sig)Ú__self__ÚnameÚAttributeErrorrÆ   r   Úblank_rerÖ   )	rÎ   r`   ÚdefaultrÏ   rÝ   ÚfirstÚsecondrÛ   rÜ   s	   `      @@r   r   r   f  sö   ú€ ð"Ø×$Ñ$×)Ñ)ˆð €IØ€HØ€Gõö$ñL ‹N€EØ×Ñœ×!Ñ!Øˆ	Ø�a�b�	ˆØˆÞØ˜ˆ{Ðá˜5Ó!€HÞØ˜Ð Ð Ü�>‰>˜%× Ñ Ø˜ÐÐá‹^€FÞØ˜ÐÐá˜6Ó"€HÞØ ˜Ð(Ð(à˜F�OÐ#Ð#øôO ó ØŠðús   …B? Â?CÃCc                 ó¾   • [        U S5      n [        UR                  5      u  p#UR                  S5        [	        XSS9nSUl        U$ !   UR                  5         e = f)zPOpen a file in read only mode using the encoding detected by
detect_encoding().
Úrbr   T)Úline_bufferingr9   )Ú_builtin_openr   rÎ   Úseekr   ÚmodeÚclose)rÜ   Úbufferr`   ÚlinesÚtexts        r   r   r   Ã  s[   € ô ˜8 TÓ*€FðÜ)¨&¯/©/Ó:‰ˆØ�‰�AŒÜ˜V¸dÑCˆØˆŒ	ØˆøðØ�‰ŒØús   Ž:A	 Á	Ac              #   óæ   #   • [        U 5      u  p[        R                  " U[        U S5      5      nUb  US:X  a  Sn[	        [
        USSS5      v •  [        UR                  USS9 Sh  v•N   g N7f)	a�  
The tokenize() generator requires one argument, readline, which
must be a callable object which provides the same interface as the
readline() method of built-in file objects.  Each call to the function
should return one line of input as bytes.  Alternatively, readline
can be a callable function terminating with StopIteration:
    readline = open(myfile, 'rb').__next__  # Example of alternate readline

The generator produces 5-tuples with these members: the token type; the
token string; a 2-tuple (srow, scol) of ints specifying the row and
column where the token begins in the source; a 2-tuple (erow, ecol) of
ints specifying the row and column where the token ends in the source;
and the line on which the token was found.  The line passed is the
physical line.

The first token sequence will always be an ENCODING token
which tells you which encoding was used to decode the bytes stream.
r   Nrà   rÂ   )r   r   r>   T©Úextra_tokens)r   r?   r­   r“   r   r–   Ú!_generate_tokens_from_c_tokenizerÚ__next__)rÎ   r`   ÚconsumedÚrl_gens       r   r	   r	   Ò  sj   é € ô& )¨Ó2Ñ€HÜ×Ò˜h¬¨X°sÓ(;Ó<€FØÑØ�{Ó"àˆHÜœ (¨F°F¸BÓ?Ò?Ü0°·±À(ÐY]Ñ^×^Ó^ùs   ‚A'A1Á)A/Á*A1c                 ó   • [        U SS9$ )z·Tokenize a source reading Python code as unicode strings.

This has the same API as tokenize(), except that it expects the *readline*
callable to return str objects instead of bytes.
Tró   )rõ   rÍ   s    r   r
   r
   î  s   € ô -¨XÀDÑIÐIr   c                  ój  ^• SS K n S mSU4S jjnU R                  SS9nUR                  SSSS	S
9  UR                  SSSSSS9  UR                  5       n UR                  (       a@  UR                  n[        US5       n[        [        UR                  5      5      nS S S 5        O$Sn[        [        R                  R                  SS9nW Hp  nUR                  nUR                  (       a  UR                  nSUR                  UR                   -   -  n	[#        U	<S [$        U   <S UR&                  <S 35        Mr     g ! , (       d  f       N…= f! [(         a6  n
U
R*                  S   SS u  p¼U" U
R*                  S   WX¼45         S n
A
g S n
A
f[,         a3  n
U
R*                  S   u  p¼U" U
R*                  S   WX¼45         S n
A
g S n
A
f[.         a  n
U" U
W5         S n
A
g S n
A
f[0         a  n
U" U
5         S n
A
g S n
A
f[2         a    [#        S5         g [4         a  n
T" SU
-  5        e S n
A
ff = f)Nr   c                 ó€   • [         R                  R                  U 5        [         R                  R                  S5        g )Nrp   )ÚsysÚstderrÚwrite)Úmessages    r   ÚperrorÚmain.<locals>.perrorú  s&   € Ü�
‰
×Ñ˜Ô!Ü�
‰
×Ñ˜Õr   c                 ó°   >• U(       a  U4U-   U 4-   nT" SU-  5        O"U(       a  T" U< SU < 35        OT" SU -  5        [         R                  " S5        g )Nz%s:%d:%d: error: %sz	: error: z	error: %srZ   )rü   Úexit)rÿ   rÜ   ÚlocationÚargsr   s       €r   ÚerrorÚmain.<locals>.errorþ  sO   ø€ ÞØ�; Ñ)¨W¨JÑ6ˆDÙÐ(¨4Ñ/Õ0ÞÙ£h²Ð8Õ9á�; Ñ(Ô)Ü�Š��r   zpython -m tokenize)ÚprogrÜ   r5   zfilename.pyz'the file to tokenize; defaults to stdin)ÚdestÚnargsÚmetavarÚhelpz-ez--exactÚexactÚ
store_truez(display token names using the exact type)r	  Úactionr  ré   z<stdin>Tró   z%d,%d-%d,%d:Ú20Ú15rZ   rß   zinterrupted
zunexpected error: %s)NN)ÚargparseÚArgumentParserÚadd_argumentÚ
parse_argsrÜ   rë   Úlistr	   rÎ   rõ   rü   Ústdinr   r  r    ri   r¥   Úprintr   r   ÚIndentationErrorr  r   rÔ   ÚOSErrorÚKeyboardInterruptÚ	Exception)r  r  Úparserr  rÜ   r;   r[   r‹   Ú
token_typeÚtoken_rangeÚerrrz   Úcolumnr   s                @r   Úmainr"  ö  sø  ø€ Ûò÷ð ×$Ñ$Ð*>Ð$Ð?€FØ
×Ñ˜Z¨sØ -ØFð ñ Hð ×Ñ˜˜i¨g¸lØGð ñ Ià×ÑÓ€Dð"à�=�=Ø—}‘}ˆHÜ˜x¨Ô.°!Üœh q§z¡zÓ2Ó3�÷ /Ð.ð !ˆHÜ6Ü—	‘	×"Ñ"°ñ7ˆFó
 ˆEØŸ™ˆJØ�z�zØ"×-Ñ-�
Ø(¨E¯K©K¸%¿)¹)Ñ,CÑDˆKÜÛ¤¨Ô 4°e·l´lðDö Eò ÷ /Õ.ûô  ó 5Ø—x‘x ‘{ 1 QÐ'‰ˆÙˆc�h‰h�q‰k˜8 d ^×4Ñ4ûÜó 5Ø—x‘x ‘{‰ˆÙˆc�h‰h�q‰k˜8 d ^×4Ñ4ûÜó Ùˆc�8×ÑûÜó Ùˆc�
‰
ûÜó ÜˆoÖÜó ÙÐ%¨Ñ+Ô,Øûðúsg   Á)E Á?EÂB#E Å
EÅE Å
H2Å,FÆH2Æ)G	Ç	H2Ç	G$Ç$H2Ç1G>Ç>H2È	H2È!H-È-H2c                 ó   • SU ;   a  gU $ )zÇTransform error messages from the C tokenizer into the Python tokenize

The C tokenizer is more picky than the Python one, so we need to massage
the error messages a bit for backwards compatibility.
z)unterminated triple-quoted string literalzEOF in multi-line stringr"   )rÙ   s    r   Ú_transform_msgr$  5  s   € ð 3°cÓ9Ø)Ø€Jr   c              #   óf  #   • Uc  [         R                  " XS9nO[         R                  " XUS9n U H  n[        R                  U5      v •  M     g! [         aR  n[        U5      [        :w  a  USe[        UR                  5      n[        XeR                  UR                  45      SeSnAff = f7f)zWTokenize a source reading Python code as unicode strings using the internal C tokenizerNró   )r`   rô   )Ú	_tokenizeÚTokenizerIterr   Ú_makerÔ   r   r$  rÙ   r   ÚlinenoÚoffset)Úsourcer`   rô   r¡   ÚinfoÚerÙ   s          r   rõ   rõ   ?  s–   é € àÑÜ×$Ò$ VÑG‰ä×$Ò$ VÈ\ÑZˆð>ÛˆDÜ—/‘/ $Ó'Ô'ò øäó >Ü�‹7”kÓ!Ø˜ÐÜ˜QŸU™UÓ#ˆÜ˜Ÿx™x¨¯©Ð2Ó3¸Ð=ûð	>üs)   ‚.B1± A ÁB1Á
B.ÁAB)Â)B.Â.B1Ú__main__)NF)VÚ__doc__Ú
__author__Ú__credits__Úbuiltinsr   rë   Úcodecsr   r   ÚcollectionsÚ	functoolsÚior   Ú	itertoolsr?   rK   rü   r‹   r   r&  rL   ÚASCIIrÕ   rä   Ú__all__Ú
namedtupler   r0   r3   r6   Ú
WhitespaceÚCommentÚIgnoreÚNameÚ	HexnumberÚ	BinnumberÚ	OctnumberÚ	DecnumberÚ	IntnumberÚExponentÚ
PointfloatÚExpfloatÚFloatnumberÚ
ImagnumberÚNumberrI   Ú	lru_cacherO   ÚStringPrefixÚSingleÚDoubleÚSingle3ÚDouble3ÚTripleÚStringÚmapÚescapeÚsortedÚSpecialÚFunnyÚ
PlainTokenÚTokenÚContStrÚPseudoExtrasÚPseudoTokenÚendpatsÚ_prefixÚsetÚsingle_quotedÚtriple_quotedrG   r:   rC   Útabsizer  r   rW   r   rÉ   r   r	   r
   r"  r$  rõ   r#   r"   r   r   Ú<module>rb     sŠ  ðñð, *€
ð€õ +ß #Û Û Ý Û Û 	Û 
Ü Ý #Û à�JŠJÐ@À"Ç(Á(ÓK€	Ø�:Š:Ð0°"·(±(Ó;€ã Ø
�-‰-ò Lñ L€à	ô�×&Ò& {Ð4PÓQô ò :Ú /Ú 1ð €
Ø
€Ø	‘c˜* zÑ1Ó2Ñ	2±U¸7³^Ñ	C€Ø€à&€	Ø€	Ø €	Ø.€	Ù�)˜Y¨	°9Ó=€	Ø(€ÙÐ?Ø)ó+Ù-2°8«_ñ=€
à (Ñ*€Ù�J Ó)€ÙÐ+¨[¸7Ñ-BÓC€
Ù	ˆz˜;¨	Ó	2€òð ×Ññ(ó ð(ñ
 Ñ*Ó,Ð-€ð 
$€à	#€à
2€à
2€Ù	ˆ|˜eÑ# \°EÑ%9Ó	:€á	ˆ|Ð=Ñ=ØÐ=Ñ=ó
?€ñ ‘�R—Y‘Y¡Ð'8À$Ñ GÓHÐ
I€Ùˆh˜Ó €á�6˜5 &¨$Ó/€
Ø�Ñ€ñ �Ð=Ñ=Ù�c˜:Ó&ñ'àÐ=Ñ=Ù�c˜:Ó&ñ'ó(€ñ �] G¨VÓ4€Ø™5 ¨v°u¸gÀtÓLÑL€ð
 €Ù#Ö%€GØ#€GˆG�c‰MÑØ#€GˆG�c‰MÑØ&€GˆG�e‰OÑØ&€GˆG�e‰OÓñ	 &ð
 ñ “€Ù“€Ù	Ö	€AØ�#‰g�q˜3‘wÓˆØ×Ñ˜!Öñ  à�%‰i˜˜U™Ó#ˆØ×Ñ˜!Öó $ñ 
 ð
 €qà
€ä !�Ô !÷^$ñ ^$òBò*	òZ$òzò_ò8Jò=ò~ô>ð  ˆzÓÙ…Fð r   