
    *pj
                    :   % S r SSKJr  SSKrSSKJr  SSKJr  SrS\S'   \	" \
" S	S
5      5      rS\S'   \	" SSS/\
" SS5      Q5      rS\S'    " S S\5      r\R                  " SSS9 " S S5      5       r\" SSSS9r\R                  " SS9 " S S5      5       rg)z+Detection pipeline stages and shared types.    )annotationsN)field)	TypedDictgffffff?floatDETERMINISTIC_CONFIDENCE      bytes
HIGH_BYTES	   
             ASCII_TEXT_BYTESc                  B    \ rS rSr% SrS\S'   S\S'   S\S'   S\S'   S	rg
)DetectionDict   zDictionary 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_type N)__name__
__module____qualname____firstlineno____doc____annotations____static_attributes__r       U/var/www/html/pdf-tiff/venv/lib/python3.13/site-packages/chardet/pipeline/__init__.pyr   r      s!     r"   r   T)frozenslotsc                  P    \ rS rSr% SrS\S'   S\S'   S\S'   SrS\S	'   SS
 jrSrg)DetectionResult%   zA 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                `    U R                   U R                  U R                  U R                  S.$ )zConvert 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_dictDetectionResult.to_dict2   s*     //	
 	
r"   r   )returnr   )	r   r   r   r   r   r    r   r,   r!   r   r"   r#   r'   r'   %   s*      Iz 

r"   r'   g        )r   r   r   )r%   c                  j    \ rS rSr% Sr\" \S9rS\S'   Sr	S\S'   \" \S9r
S	\S
'   \" \S9rS	\S'   Srg)PipelineContextD   a  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_coverager   )r   r   r   r   r   r   dictr3   r    r4   r5   r6   r!   r   r"   r#   r0   r0   D   sC     9>d8SN5S"&OZ&"'"=I=$)$$?K!?r"   r0   )r   
__future__r   dataclassesr   typingr   r   r    r
   ranger   r   r   	dataclassr'   _NONE_RESULTr0   r   r"   r#   <module>r>      s    1 "   
 #' % & %e,-
E -
  tT FE$4E FG % G
I 
 d$/
 
 0
6 tL T"@ @ #@r"   