HEX
Server: LiteSpeed
System: Linux us-phx-web1284.main-hosting.eu 4.18.0-553.109.1.lve.el8.x86_64 #1 SMP Thu Mar 5 20:23:46 UTC 2026 x86_64
User: u300739242 (300739242)
PHP: 8.2.30
Disabled: system, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail
Upload Files
File: //opt/alt/python311/lib/python3.11/site-packages/chardet/__pycache__/__init__.cpython-311.pyc
�

��;f���B�ddlmZddlmZddlmZmZgd�Zd�Zd�Z	dS)�)�UniversalDetector)�
InputState)�__version__�VERSION)r�detect�
detect_allrrc�@�t|t��sSt|t��s/td�t|�������t|��}t
��}|�|��|���S)z�
    Detect the encoding of the given byte string.

    :param byte_str:     The byte sequence to examine.
    :type byte_str:      ``bytes`` or ``bytearray``
    �3Expected object of type bytes or bytearray, got: {})	�
isinstance�	bytearray�bytes�	TypeError�format�typer�feed�close)�byte_str�detectors  �C/opt/alt/python311/lib/python3.11/site-packages/chardet/__init__.pyrrs����h�	�*�*�+��(�E�*�*�	+��!�!'���X���!7�!7�9�9�
9�!��*�*�H� �"�"�H��M�M�(�����>�>����c�$�t|t��sSt|t��s/td�t|�������t|��}t
��}|�|��|���|j	tjkr�g}|jD]�}|�
��|jkr�|j}|j���}|�d��r"|jr|j�||��}|�||�
��|jd�����t/|��dkrt1|d����S|jgS)z�
    Detect all the possible encodings of the given byte string.

    :param byte_str:     The byte sequence to examine.
    :type byte_str:      ``bytes`` or ``bytearray``
    r
ziso-8859)�encoding�
confidence�language�c��|dS)Nr�)�results r�<lambda>zdetect_all.<locals>.<lambda>Qs��v�l�7K�6K�r)�key)rrr
rrrrrr�_input_stater�	HIGH_BYTE�_charset_probers�get_confidence�MINIMUM_THRESHOLD�charset_name�lower�
startswith�_has_win_bytes�ISO_WIN_MAP�get�appendr�len�sortedr)rr�results�proberr&�lower_charset_names      rrr-s����h�	�*�*�+��(�E�*�*�	+��!�!'���X���!7�!7�9�9�
9�!��*�*�H� �"�"�H��M�M�(�����N�N������
� 4�4�4����/�	�	�F��$�$�&�&��)C�C�C�%�2��%+�%8�%>�%>�%@�%@�"�&�0�0��<�<�J��.�J�'/�';�'?�'?�@R�<H�(J�(J����� ,�"(�"7�"7�"9�"9� &�� � �����
�w�<�<�!����'�'K�'K�L�L�L�L��O��rN)
�universaldetectorr�enumsr�versionrr�__all__rrrrr�<module>r6sy��&1�0�0�0�0�0�������)�)�)�)�)�)�)�)�R�
Q�
Q�����$&�&�&�&�&r