Ë
    Dü´jÎ
  ã                  óL  — U d Z ddlmZ ddlZddlmZ ddlmZ dZded<    e	 e
d	d
«      «      Zded<    e	dddg e
dd«      ¢«      Zded<    G d„ de«      Z ej                  dd¬«       G d„ d«      «       Z eddd¬«      Z ej                  d¬«       G d„ d«      «       Zy)z+Detection pipeline stages and shared types.é    )ÚannotationsN)Úfield)Ú	TypedDictgffffffî?ÚfloatÚDETERMINISTIC_CONFIDENCEé€   é   ÚbytesÚ
HIGH_BYTESé	   é
   é   é    é   ÚASCII_TEXT_BYTESc                  ó:   — e Zd ZU dZded<   ded<   ded<   ded<   y)	ÚDetectionDictz¬Dictionary representation of a detection result.

    Returned by :func:`chardet.detect`, :func:`chardet.detect_all`,
    and :attr:`chardet.UniversalDetector.result`.
    ú
str | NoneÚencodingr   Ú
confidenceÚlanguageÚ	mime_typeN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__Ú__annotations__© ó    úW/root/workspace/ytshorts/venv/lib/python3.12/site-packages/chardet/pipeline/__init__.pyr   r      s!   … ñð ÓØÓØÓØÔr   r   T)ÚfrozenÚslotsc                  óF   — e Zd ZU dZded<   ded<   ded<   dZded<   d
d	„Zy)ÚDetectionResultz´A single encoding detection result.

    Frozen dataclass holding the encoding name, confidence score, and
    optional language identifier returned by the detection pipeline.
    r   r   r   r   r   Nr   c                ó`   — | j                   | j                  | j                  | j                  dœS )z˜Convert this result to a plain dict.

        :returns: A dict with ``'encoding'``, ``'confidence'``, ``'language'``, and ``'mime_type'`` keys.
        ©r   r   r   r   r&   )Úselfs    r    Úto_dictzDetectionResult.to_dict2   s*   € ð Ÿ™ØŸ/™/ØŸ™ØŸ™ñ	
ð 	
r   )Úreturnr   )r   r   r   r   r   r   r(   r   r   r    r$   r$   %   s*   … ñð ÓØÓØÓØ €IˆzÓ ô

r   r$   g        )r   r   r   )r"   c                  ót   — e Zd ZU dZ ee¬«      Zded<   dZded<    ee¬«      Z	ded	<    ee¬«      Z
ded
<   y)ÚPipelineContexta)  Per-run mutable state for a single pipeline invocation.

    Created once at the start of ``run_pipeline()`` and threaded through
    the call chain via function parameters.  Each concurrent ``detect()``
    call gets its own context, eliminating the need for module-level
    mutable caches.
    )Údefault_factoryz!dict[str, tuple[float, int, int]]Úanalysis_cacheNz
int | NoneÚnon_ascii_countzdict[str, float]Ú	mb_scoresÚmb_coverage)r   r   r   r   r   Údictr-   r   r.   r/   r0   r   r   r    r+   r+   D   sC   … ññ 9>ÈdÔ8S€NÐ5ÓSØ"&€O�ZÓ&Ù"'¸Ô"=€IÐÓ=Ù$)¸$Ô$?€KÐ!Ô?r   r+   )r   Ú
__future__r   Údataclassesr   Útypingr   r   r   r
   Úranger   r   r   Ú	dataclassr$   Ú_NONE_RESULTr+   r   r   r    ú<module>r8      sË   ðÚ 1å "ã Ý Ý ð
 #'Ð ˜%Ó &ñ ™%  eÓ,Ó-€
ˆEÓ -ñ
    t¨TÐ F±E¸$ÀÓ4EÐ FÓGÐ �%Ó Gô
�Iô 
ð €×Ñ˜d¨$Ô/÷
ð 
ó 0ð
ñ6 ¨¸ÀtÔL€ð €×Ñ˜TÔ"÷@ð @ó #ñ@r   