+
    ¿Ìj.  ã                   ór   € R t RR.t^ RIt^ RIHtH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# )z.
Internal utilities for extract_msg.encoding.
ÚvariableByteDecodeÚvariableByteEncodeN)ÚDictÚTuplec                ór   € V ^8„  d   QhR\         R\        \        \         3,          R\        P                  /# ©é   Ú	codecNameÚdecodingTableÚreturn©Ústrr   ÚintÚcodecsÚ	CodecInfo)Úformats   "Út/home/l0st/web/w4ttz.lol/public_html/toolz/MsgDoxxer/venv/lib/python3.14/site-packages/extract_msg/encoding/utils.pyÚ__annotate__r      ó/   € ÷ 2ñ 2¤ð 2´D¼¼c¸µNð 2Äv×GWÑGWñ 2ó    c           
     ó`  a aa	€ \        SP                  4       4       UUu/ uF9  w  r#Vf   K  Y2R8  d   \        V34      M\        V^,	          V^ÿ,          34      bK;  	  uppo	 ! V VV	3R lR\        P                  4      p ! V V	3R lR\        P
                  4      p ! V V3R lR\        P                  4      p ! R R	V\        P                  4      p ! R
 RV\        P                  4      p\        P                  ! S V! 4       P                  V! 4       P                  VVVVR7      # u uppi )aM  
Creates the classes for a variable byte encoding, returning the CodecInfo
instance associated with it.

Currently only supports encodings with up to 2 bytes per character.

:param codecName: The name of the codec being created.
:param decodingTable: The table to use for decoding data. Will be used to
    create the encodingTable.
é   c                   óF   <a € ] tR t^$t o RVV3R lltRVV3R lltRtV tR# )ÚcreateVBEncoding.<locals>.Codecc                ó   <€ \        SWS4      # ©N)r   ©ÚselfÚtextÚerrorsr	   ÚencodingTables   &&&€€r   ÚencodeÚ&createVBEncoding.<locals>.Codec.encode%   ó   ø€ Ü% i°¸}ÓMÐMr   c                ó   <€ \        SWS4      # r   )r   ©r   Údatar   r	   r
   s   &&&€€r   ÚdecodeÚ&createVBEncoding.<locals>.Codec.decode(   r#   r   © N©Ústrict©Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__r!   r'   Ú__static_attributes__Ú__classdictcell__©Ú__classdict__r	   r
   r    s   @€€€r   ÚCodecr   $   s   ù‡ € ÷	Nð 	N÷	Nö 	Nr   r5   c                   ó4   <a € ] tR t^+t o RVV3R lltRtV tR# )Ú,createVBEncoding.<locals>.IncrementalEncoderc                ó@   <€ \        SWP                  S4      ^ ,          # ©é    )r   r   ©r   r   Úfinalr	   r    s   &&&€€r   r!   Ú3createVBEncoding.<locals>.IncrementalEncoder.encode,   ó   ø€ Ü% i°·{±{ÀMÓRÐSTÕUÐUr   r)   N©F©r-   r.   r/   r0   r!   r1   r2   ©r4   r	   r    s   @€€r   ÚIncrementalEncoderr7   +   ó   ù‡ € ÷	Vö 	Vr   rB   c                   ó4   <a € ] tR t^/t o RVV3R lltRtV tR# )Ú,createVBEncoding.<locals>.IncrementalDecoderc                ó@   <€ \        SWP                  S4      ^ ,          # r9   )r   r   ©r   r&   r<   r	   r
   s   &&&€€r   r'   Ú3createVBEncoding.<locals>.IncrementalDecoder.decode0   r>   r   r)   Nr?   ©r-   r.   r/   r0   r'   r1   r2   ©r4   r	   r
   s   @€€r   ÚIncrementalDecoderrE   /   rC   r   rK   c                   ó   € ] tR t^3tRtR# )Ú&createVBEncoding.<locals>.StreamWriterr)   N©r-   r.   r/   r0   r1   r)   r   r   ÚStreamWriterrM   3   ó   † Ûr   rO   c                   ó   € ] tR t^6tRtR# )Ú&createVBEncoding.<locals>.StreamReaderr)   NrN   r)   r   r   ÚStreamReaderrR   6   rP   r   rS   ©Únamer!   r'   ÚincrementalencoderÚincrementaldecoderÚstreamwriterÚstreamreader©ÚreversedÚitemsÚbytesr   r5   rB   rK   rO   rS   r   r!   r'   ©
r	   r
   ÚkeyÚvaluer5   rB   rK   rO   rS   r    s
   ff       @r   ÚcreateVBEncodingra      s	  ú€ ô  # =×#6Ñ#6Ó#8Ô9ôá9‰JˆC¸Uô 	Mˆ c¤	Œu�c�VŒ}¬u°c¸QµhÀÀdÅ
Ð5KÓ/LÒLÙ9ò€M÷Nñ N”—‘ô N÷Vð VœV×6Ñ6ô V÷Vð VœV×6Ñ6ô Vô�uœf×1Ñ1ô ô�uœf×1Ñ1ô ô ×ÒØÙ‹w�~‰~Ù‹w�~‰~Ø-Ø-Ø!Ø!ôð ùó9s
    D*­2D*c                ór   € V ^8„  d   QhR\         R\        \        \         3,          R\        P                  /# r   r   )r   s   "r   r   r   E   r   r   c           
     ó  a aa	€ \        SP                  4       4       UUu/ uF  w  r#Vf   K  V\        V34      bK  	  uppo	 ! V VV	3R lR\        P                  4      p ! V V	3R lR\        P
                  4      p ! V V3R lR\        P                  4      p ! R RV\        P                  4      p ! R	 R
V\        P                  4      p\        P                  ! S V! 4       P                  V! 4       P                  VVVVR7      # u uppi )aK  
Creates the classes for a single byte encoding, returning the CodecInfo
instance associated with it.

Currently only supports encodings with up to 2 bytes per character.

:param codecName: The name of the codec being created.
:param decodingTable: The table to use for decoding data. Will be used to
    create the encodingTable.
c                   óF   <a € ] tR t^Yt o RVV3R lltRVV3R lltRtV tR# )ÚcreateSBEncoding.<locals>.Codecc                ó   <€ \        SWS4      # r   )ÚsingleByteEncoder   s   &&&€€r   r!   Ú&createSBEncoding.<locals>.Codec.encodeZ   ó   ø€ Ü# I¨t¸]ÓKÐKr   c                ó   <€ \        SWS4      # r   )ÚsingleByteDecoder%   s   &&&€€r   r'   Ú&createSBEncoding.<locals>.Codec.decode]   ri   r   r)   Nr*   r,   r3   s   @€€€r   r5   re   Y   s   ù‡ € ÷	Lð 	L÷	Lö 	Lr   r5   c                   ó4   <a € ] tR t^`t o RVV3R lltRtV tR# )Ú,createSBEncoding.<locals>.IncrementalEncoderc                ó@   <€ \        SWP                  S4      ^ ,          # r9   )rg   r   r;   s   &&&€€r   r!   Ú3createSBEncoding.<locals>.IncrementalEncoder.encodea   ó   ø€ Ü# I¨t·[±[À-ÓPÐQRÕSÐSr   r)   Nr?   r@   rA   s   @€€r   rB   rn   `   ó   ù‡ € ÷	Tö 	Tr   rB   c                   ó4   <a € ] tR t^dt o RVV3R lltRtV tR# )Ú,createSBEncoding.<locals>.IncrementalDecoderc                ó@   <€ \        SWP                  S4      ^ ,          # r9   )rk   r   rG   s   &&&€€r   r'   Ú3createSBEncoding.<locals>.IncrementalDecoder.decodee   rq   r   r)   Nr?   rI   rJ   s   @€€r   rK   rt   d   rr   r   rK   c                   ó   € ] tR t^htRtR# )Ú&createSBEncoding.<locals>.StreamWriterr)   NrN   r)   r   r   rO   rx   h   rP   r   rO   c                   ó   € ] tR t^ktRtR# )Ú&createSBEncoding.<locals>.StreamReaderr)   NrN   r)   r   r   rS   rz   k   rP   r   rS   rT   rZ   r^   s
   ff       @r   ÚcreateSBEncodingr{   E   sð   ú€ ô  # =×#6Ñ#6Ó#8Ô9ôá9‰JˆC¸Uô 	ˆŒu�c�V‹}ÒÙ9ò€M÷Lñ L”—‘ô L÷Tð TœV×6Ñ6ô T÷Tð TœV×6Ñ6ô Tô�uœf×1Ñ1ô ô�uœf×1Ñ1ô ô ×ÒØÙ‹w�~‰~Ù‹w�~‰~Ø-Ø-Ø!Ø!ôð ùó9s
    D	­D	c          
      óŒ   € V ^8„  d   QhR\         R\         R\        \        \         3,          R\        \         \        3,          /# ©r   r	   r   ÚdecodeTabler   ©r   r   r   r   )r   s   "r   r   r   z   s=   € ÷ &!ñ &!¤ð &!´3ð &!ÄTÌ#ÌsÈ(Å^ð &!ÔX]Ô^aÔcfÐ^fÕXgñ &!r   c                ó´  € \        V4      ^ 8X  d   R# \        P                  ! V4      pRp\        V4      p^ pV F|  w  rxWƒ9   d   WSV,          ,          pK  \	        V VVV^,           R4      p	V! V	4      p
WZ^ ,          ,          p\        V
^,          V,
          ^,
          4       F  p \        V4       K  	  K~  	  V\        V4      3#   \         d      Kœ  i ; i)a˜  
Function for decoding single-byte codecs.

:param codecName: The name of the codec, used for error messages.
:param data: A bytes-like object to decode.
:param errors: The error behavior to use.
:param decodeTable: The mapping of values to use. Continuation bytes MUST be
    defined in the table, but SHOULD be set to None. This allows for the
    function to detect what bytes are valid for continuation.
Ú úcharacter maps to <undefined>©r�   r:   ©Úlenr   Úlookup_errorÚ	enumerateÚUnicodeDecodeErrorÚrangeÚnextÚStopIteration©r	   r&   r   r~   ÚerrorHandlerÚoutputÚiteratorÚstartÚbyteÚerrÚrepÚ_s   &&&&        r   rk   rk   z   s×   € ô ˆ4ƒy�A„~Øˆä×&Ò& vÓ.€LØ€Fä˜‹€HØ€Eã‰ˆØÔØ $Õ'Õ'ŠFä$ YØ%)Ø%*Ø%*¨Q¥YØ%Dó	'ˆCñ ˜sÓ#ˆCØ˜!•fÕˆFÜ˜3˜q�6 E�>¨AÕ-Ö.�ðÜ˜–Nó /ñ  ð$ ”C˜“KÐ Ð øô %ô Ûðús   Â'CÃCÃCc          
      óŒ   € V ^8„  d   QhR\         R\         R\        \         \        3,          R\        \        \        3,          /# ©r   r	   r   ÚencodeTabler   ©r   r   r]   r   r   )r   s   "r   r   r   £   s>   € ÷ "ñ "¤ð "´3ð "ÄTÌ#ÌuÈ*ÕEUð "ÔZ_Ô`eÔgjÐ`jÕZkñ "r   c                óž  € \        V4      ^ 8X  d   R# \        P                  ! V4      pRp\        V4      p^ pV F|  w  rxWƒ9   d   WSV,          ,          pK  \	        V VVV^,           R4      p	V! V	4      p
WZ^ ,          ,          p\        V
^,          V,
          ^,
          4       F  p \        V4       K  	  K~  	  R#   \         d      K‘  i ; i©a   
Function for encoding variable-byte codecs that use one or two bytes per
character.

:param codecName: The name of the codec, used for error messages.
:param data: A bytes-like object to decode.
:param errors: The error behavior to use.
:param encodeTable: The mapping of values to use.
Nr   zillegal multibyte sequence©r…   r   r†   r‡   ÚUnicodeEncodeErrorr‰   rŠ   r‹   ©r	   r&   r   r—   r�   rŽ   r�   r�   Úcharr’   r“   r”   s   &&&&        r   rg   rg   £   sÄ   € ô ˆ4ƒy�A„~Ùä×&Ò& vÓ.€LØ€FÜ˜‹€HØ€EÛ‰ˆØÔØ $Õ'Õ'ŠFä$ YØ%)Ø%*Ø%*¨Q¥YØ%Aó	'ˆCñ ˜sÓ#ˆCØ˜!•fÕˆFä˜3˜q�6 E�>¨AÕ-Ö.�ðÜ˜–Nó /ó  øô  %ô Ûðús   Â'B<Â<CÃCc          
      óŒ   € V ^8„  d   QhR\         R\         R\        \        \         3,          R\        \         \        3,          /# r}   r   )r   s   "r   r   r   É   sD   € ÷ Xñ X¤#ð X´Sð XÄtÌCÔQTÈHÅ~ð XÔZ_Ô`cÔehÐ`hÕZiñ Xr   c           	     ób  € \        V4      ^ 8X  d   R# \        P                  ! V4      pRp\        V4      p^ pV EF†  w  rxV^€8  dz   Wƒ9   d   WSV,          ,          pK$  \	        V VVV^,           R4      p	V! V	4      p
WZ^ ,          ,          p\        V
^,          V,
          ^,
          4       F  p \        V4       K  	  K†  Wƒ9  dc   \	        V VVV^,           R4      p	V! V	4      p
WZ^ ,          ,          p\        V
^,          V,
          ^,
          4       F  p \        V4       K  	  Kî   V^,          \        V4      ^,          ,          pWƒ9   d   WSV,          ,          pEK'  \	        V VVV^,           R4      p	V! V	4      p
WZ^ ,          ,          p\        V
^,          V,
          ^,
          4       F  p\        V4       K  	  EK‰  	  WW3#   \         d      EKž  i ; i  \         d      EK²  i ; i  \         d4    \	        T TTT^,           R4      p	T! T	4      p
YZ^ ,          ,          p  YW3# i ; i)ac  
Function for decoding variable-byte codecs that use one or two bytes per character.

Checks if a character is less than ``0x80``, mapping it directly if so.
Otherwise, it reads the next byte and combines the two before looking up the
new value.

:param codecName: The name of the codec, used for error messages.
:param data: A bytes-like object to decode.
:param errors: The error behavior to use.
:param decodeTable: The mapping of values to use. Continuation bytes MUST be
    defined in the table, but SHOULD be set to None. This allows for the
    function to detect what bytes are valid for continuation.
r�   r‚   zinvalid start bytezunexpected end of datarƒ   r„   rŒ   s   &&&&        r   r   r   É   s&  € ô ˆ4ƒy�A„~Øˆä×&Ò& vÓ.€LØ€Fä˜‹€HØ€Eä‰ˆà�$Œ;ØÔ"Ø dÕ+Õ+’ä(¨Ø)-Ø).Ø).°­Ø)Hó	*�ñ # 3Ó'�Ø˜a�&Õ �ä˜s 1�v¨�~°Õ1Ö2�AðÜ˜Xžó 3ð
 Ô$Ü$ YØ%)Ø%*Ø%*¨Q¥YØ%9ó	&ˆCñ ˜sÓ#ˆCØ˜!•fÕˆFä˜3˜q�6 E�>¨AÕ-Ö.�ðÜ˜–Nó /ðØ �	¤T¨(£^°AÕ%6Õ6�ØÔ&Ø¨$Õ/Õ/“Fä,¨YØ-1Ø-2Ø-2°Q­YØ-Ló	/�Cñ ' sÓ+�CØ !�fÕ$�Fä" 3 q¥6¨E¥>°AÕ#5Ö6˜Ü˜Xžô 7ñg  ð@ ˆ?Ðøô] )ô Üðûô %ô Üðûô( !ô 	Ü(¨Ø)-Ø).Ø).°­Ø)Aó	+�ñ # 3Ó'�Ø˜a�&Õ �Ùàˆ?Ðð	ús=   Â/GÄGÄ)5G0Å!AG0ÇGÇGÇG-Ç,G-Ç08H.È-H.c          
      óŒ   € V ^8„  d   QhR\         R\         R\        \         \        3,          R\        \        \        3,          /# r–   r˜   )r   s   "r   r   r   $  s?   € ÷ %ñ %¤#ð %´Sð %ÄtÌCÔQVÈJÕGWð %Ô\aÔbgÔilÐblÕ\mñ %r   c                ó®  € \        V4      ^ 8X  d   R# \        P                  ! V4      pRp\        V4      p^ pV F|  w  rxWƒ9   d   WV,          ,          pK  \	        V VVV^,           R4      p	V! V	4      p
WZ^ ,          ,          p\        V
^,          V,
          ^,
          4       F  p \        V4       K  	  K~  	  WW^,           3#   \         d      K™  i ; irš   r›   r�   s   &&&&        r   r   r   $  sÓ   € ô ˆ4ƒy�A„~Ùä×&Ò& vÓ.€LØ€FÜ˜‹€HØ€Eã‰ˆØÔØ Õ%Õ%ŠDä$ YØ%)Ø%*Ø%*¨Q¥YØ%Aó	'ˆCñ ˜sÓ#ˆCØ˜!•fÕˆFä˜3˜q�6 E�>¨AÕ-Ö.�ðÜ˜–Nó /ñ  ð& ˜A•IÐÐøô %ô Ûðús   Â'CÃCÃC)Ú__doc__Ú__all__r   Útypingr   r   ra   r{   rk   rg   r   r   r)   r   r   Ú<module>r¦      sE   ðñð
 Øð€ó ç õ2õj2õj&!õR"õLX÷v%r   