ó
    Ô…g”  ã                   ó8   • S SK r SSKJr  SSKJr   " S S5      rg)é    Né   )ÚCodingStateMachineDict)ÚMachineStatec                   óz   • \ rS rSrSrS\SS4S jrSS jrS\S\4S	 jr	S\4S
 jr
S\4S jr\S\4S j5       rSrg)ÚCodingStateMachineé"   aR  
A state machine to verify a byte sequence for a particular encoding. For
each byte the detector receives, it will feed that byte to every active
state machine available, one byte at a time. The state machine changes its
state based on its previous state and the byte it receives. There are 3
states in a state machine that are of interest to an auto-detector:

START state: This is the state to start with, or a legal byte sequence
             (i.e. a valid code point) for character has been identified.

ME state:  This indicates that the state machine identified a byte sequence
           that is specific to the charset it is designed for and that
           there is no other possible encoding which can contain this byte
           sequence. This will to lead to an immediate positive answer for
           the detector.

ERROR state: This indicates the state machine identified an illegal byte
             sequence for that encoding. This will lead to an immediate
             negative answer for this encoding. Detector will exclude this
             encoding from consideration from here on.
ÚsmÚreturnNc                 óÂ   • Xl         SU l        SU l        [        R                  U l        SU l        [        R                  " [        5      U l
        U R                  5         g )Nr   T)Ú_modelÚ_curr_byte_posÚ_curr_char_lenr   ÚSTARTÚ_curr_stateÚactiveÚloggingÚ	getLoggerÚ__name__ÚloggerÚreset)Úselfr	   s     Ú</usr/lib/python3/dist-packages/chardet/codingstatemachine.pyÚ__init__ÚCodingStateMachine.__init__9   sG   € ØŒØˆÔØˆÔÜ'×-Ñ-ˆÔØˆŒÜ×'Ò'¬Ó1ˆŒØ�
‰
�ó    c                 ó.   • [         R                  U l        g ©N)r   r   r   ©r   s    r   r   ÚCodingStateMachine.resetB   s   € Ü'×-Ñ-ˆÕr   Úcc                 óL  • U R                   S   U   nU R                  [        R                  :X  a  SU l        U R                   S   U   U l        U R                  U R                   S   -  U-   nU R                   S   U   U l        U =R                  S-  sl        U R                  $ )NÚclass_tabler   Úchar_len_tableÚclass_factorÚstate_tabler   )r   r   r   r   r   r   )r   r    Ú
byte_classÚ
curr_states       r   Ú
next_stateÚCodingStateMachine.next_stateE   s›   € ð —[‘[ Ñ/°Ñ2ˆ
Ø×Ñœ|×1Ñ1Ó1Ø"#ˆDÔØ"&§+¡+Ð.>Ñ"?À
Ñ"KˆDÔà×%Ñ%¨¯©°NÑ(CÑCÀjÑPˆ
ØŸ;™; }Ñ5°jÑAˆÔØ×Ò˜qÑ ÕØ×ÑÐr   c                 ó   • U R                   $ r   )r   r   s    r   Úget_current_charlenÚ&CodingStateMachine.get_current_charlenR   s   € Ø×"Ñ"Ð"r   c                 ó    • U R                   S   $ )NÚname©r   r   s    r   Úget_coding_state_machineÚ+CodingStateMachine.get_coding_state_machineU   s   € Ø�{‰{˜6Ñ"Ð"r   c                 ó    • U R                   S   $ )NÚlanguager/   r   s    r   r3   ÚCodingStateMachine.languageX   s   € à�{‰{˜:Ñ&Ð&r   )r   r   r   r   r   r   )r
   N)r   Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r   r   r   Úintr(   r+   Ústrr0   Úpropertyr3   Ú__static_attributes__© r   r   r   r   "   sf   † ñð,Ð1ð °dô ô.ð ˜Cð   Cô  ð# Sô #ð#¨#ô #ð ð'˜#ó 'ó ó'r   r   )r   Úcodingstatemachinedictr   Úenumsr   r   r=   r   r   Ú<module>r@      s   ðó8 å :Ý ÷8'ò 8'r   