�
L�g?G � �� � d Z ddlZddlZddlZddlZddlmZmZmZm Z ddl
Z
ddlmZ ddl
mZmZmZmZmZmZmZmZmZmZmZ dedefd�Zdedefd �Zded
ee eef defd�Zdee defd
�Zdedefd�Z ej d� � Z dedefd�Z!dedefd�Z"dedefd�Z#dedefd�Z$dedefd�Z% ej d� � Z& ej d� � Z'dee defd�Z(dedefd�Z)dedefd�Z*dedefd�Z+ ej dej, ej- z � � Z.dedefd�Z/ ej d� � Z0de1de1fd�Z2de1de1fd �Z3dedefd!�Z4dee defd"�Z5dedefd#�Z6dS )$a�
The `ftfy.fixes` module contains the individual fixes that :func:`ftfy.fix_text`
can perform, and provides the functions that are named in "explanations"
such as the output of :func:`ftfy.fix_and_explain`.
Two of these functions are particularly useful on their own, as more robust
versions of functions in the Python standard library:
- :func:`ftfy.fixes.decode_escapes`
- :func:`ftfy.fixes.unescape_html`
� N)�Any�List�Match�Tuple)�is_bad)�ALTERED_UTF8_RE�
C1_CONTROL_RE�
CONTROL_CHARS�DOUBLE_QUOTE_RE�
HTML_ENTITIES�HTML_ENTITY_RE� LIGATURES�
LOSSY_UTF8_RE�SINGLE_QUOTE_RE�UTF8_DETECTOR_RE� WIDTH_MAP�text�returnc �b � t j dt d�� � t j | � � S )z?
Deprecated copy of `ftfy.fix_encoding_and_explain()`.
zB`fix_encoding_and_explain()` has moved to the main module of ftfy.� ��
stacklevel)�warnings�warn�DeprecationWarning�ftfy�fix_encoding_and_explain�r s �Z/home/asafur/pinokio/api/open-webui.git/app/env/lib/python3.11/site-packages/ftfy/fixes.pyr r $ s9 � �
�M�L���� � � �
�(��.�.�.� c �b � t j dt d�� � t j | � � S )z3
Deprecated copy of `ftfy.fix_encoding()`.
z6`fix_encoding()` has moved to the main module of ftfy.r r )r r r r �fix_encodingr s r r"