<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet"
        integrity="sha384-GLhlTQ8iRABdZLl6O3oVMWSktQOp6b7In1Zl3/Jr59b6EGGoI1aFkw7cmDA6j6gD" crossorigin="anonymous">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.3.0/css/all.min.css"
        integrity="sha512-SzlrxWUlpfuzQ+pcUCosxcglQRNAq/DZjVsC0lE40xsADsfeQoEypE+enwcOiGjk/bSuGGKHEyjSoQ1zVisanQ=="
        crossorigin="anonymous" referrerpolicy="no-referrer" />
</head>
</html>
U
    ʗRey                     @   sL   d dl mZ d dlmZ d dlmZmZ dddddgZd	d ZdddZ	dS )   )
InputState)UniversalDetector)VERSION__version__r   detect
detect_allr   r   c                 C   sF   t | ts.t | ts&td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``
    1Expected object of type bytes or bytearray, got: )
isinstance	bytearraybytes	TypeErrortyper   feedclose)byte_strdetector r   /builddir/build/BUILDROOT/alt-python38-pip-22.2.1-2.el8.x86_64/opt/alt/python38/lib/python3.8/site-packages/pip/_vendor/chardet/__init__.pyr      s    


Fc                 C   s  t | ts.t | ts&tdt|  t| } t }||  |  |jt	j
krg }g }|jD ]0}t|dr|dd |jD  qb|| qb|D ]^}|s| |jkr|jpd}| }|dr|jr|j||}||| |jd qt|dkrt|d	d
 dS |jgS )a  
    Detect all the possible encodings of the given byte string.

    :param byte_str:          The byte sequence to examine.
    :type byte_str:           ``bytes`` or ``bytearray``
    :param ignore_threshold:  Include encodings that are below
                              ``UniversalDetector.MINIMUM_THRESHOLD``
                              in results.
    :type ignore_threshold:   ``bool``
    r   probersc                 s   s   | ]
}|V  qd S )Nr   ).0pr   r   r   	<genexpr>F   s     zdetect_all.<locals>.<genexpr> ziso-8859)encoding
confidencelanguage    c                 S   s
   | d  S )Nr   r   )resultr   r   r   <lambda>[       zdetect_all.<locals>.<lambda>)key)r	   r
   r   r   r   r   r   r   input_stater   	HIGH_BYTEcharset_probershasattrextendr   appendget_confidenceMINIMUM_THRESHOLDcharset_namelower
startswithhas_win_bytesISO_WIN_MAPgetr   lensortedr   )r   ignore_thresholdr   resultsr   proberr)   lower_charset_namer   r   r   r   +   sD    





 N)F)
enumsr   universaldetectorr   versionr   r   __all__r   r   r   r   r   r   <module>   s
   