§
    ¶¯¸j9.  ã                   óÀ  — d Z ddlZddlZddlZddlZg d¢Z ej        d¦  «        Z ej        d¦  «        Zd„ Z	 e	¦   «         Z
d„ Z ej        d¦  «        Z e¦   «         Zd	„ Zd
„ Z e¦   «         Z ej        d¦  «        Z ej        d¦  «        Z ej        d¦  «        Zi  ed¦  «        d“ ed¦  «        d“ ed¦  «        d“ ed¦  «        d“ ed¦  «        d“ ed¦  «        d“ ed¦  «        d“ ed¦  «        d“ ed¦  «        d“ ed ¦  «        d!“ ed"¦  «        d#“ ed$¦  «        d%“ ed&¦  «        d'“ ed(¦  «        d)“ ed*¦  «        d+“ ed,¦  «        d-“ ed.¦  «        d/“ ed0¦  «        d1 ed2¦  «        d3 ed4¦  «        d5 ed6¦  «        d7 ed8¦  «        d9i¥Zd:„ Z e¦   «         Zd;d<d=d>d?d@œZ ej         dAj        dBi e¤Žej        ¦  «        ZdS )Czi
This gives other modules access to the gritty details about characters and the
encodings that use them.
é    N)	zlatin-1zsloppy-windows-1252zsloppy-windows-1251zsloppy-windows-1250zsloppy-windows-1253zsloppy-windows-1254z
iso-8859-2ÚmacromanÚcp437u   [Ê¼â€˜-â€›]u	   [â€œ-â€Ÿ]c            	      ó$  — dt          j        d¦  «        i} t          D ]q}t          t	          t          dd¦  «        ¦  «        dgz   ¦  «        }|                     |¦  «        }d                     |¦  «        }t          j        |¦  «        | |<   Œr| S )a  
    ENCODING_REGEXES contain reasonably fast ways to detect if we
    could represent a given string in a given encoding. The simplest one is
    the 'ascii' detector, which of course just determines if all characters
    are between U+0000 and U+007F.
    Úasciiz^[ -]*$é€   é   é   z^[ --{0}]*$)ÚreÚcompileÚCHARMAP_ENCODINGSÚbytesÚlistÚrangeÚdecodeÚformat)Úencoding_regexesÚencodingÚ
byte_rangeÚcharlistÚregexs        ú]/root/private/project/pallet_detection_v2/.venv/lib/python3.11/site-packages/ftfy/chardata.pyÚ_build_regexesr      s—   € ð  ¥¤Ð,<Ñ!=Ô!=Ð>Ðå%ð 7ð 7ˆõ �4¥ d¨EÑ 2Ô 2Ñ3Ô3°t°fÑ<Ñ=Ô=ˆ
Ø×$Ò$ XÑ.Ô.ˆð -×3Ò3°HÑ=Ô=ˆÝ%'¤Z°Ñ%6Ô%6Ð˜Ñ"Ð"ØÐó    c                  óV  — i } t           j        j                             ¦   «         D ]‚\  }}|                     d¦  «        rh|| d|z   <   ||                     ¦   «         k    rH|                     ¦   «         }d|z   }t          j        |¦  «        |k    r|                     ¦   «         | |<   Œƒ| S )Nú;ú&)ÚhtmlÚentitiesÚhtml5ÚitemsÚendswithÚlowerÚupperÚunescape)r   ÚnameÚcharÚ
name_upperÚentity_uppers        r   Ú_build_html_entitiesr)   <   s¨   € Ø€Hõ ”mÔ)×/Ò/Ñ1Ô1ð :ð :‰
ˆˆdØ�=Š=˜ÑÔð 
	:Ø#'ˆH�S˜4‘ZÑ ð
 �t—z’z‘|”|Ò#Ð#Ø!ŸZšZ™\œ\�
Ø" ZÑ/�Ý”= Ñ.Ô.°,Ò>Ð>Ø-1¯ZªZ©\¬\�H˜\Ñ*øØ€Or   z&#?[0-9A-Za-z]{1,24};c                 ó\   — t          t          |                              | ¦  «        ¦  «        S )zâ
    Given text and a single-byte encoding, check whether that text could have
    been decoded from that single-byte encoding.

    In other words, check whether it can be encoded in that encoding, possibly
    sloppily.
    )ÚboolÚENCODING_REGEXESÚmatch)Útextr   s     r   Úpossible_encodingr/   T   s&   € õ Õ  Ô*×0Ò0°Ñ6Ô6Ñ7Ô7Ð7r   c                  óÄ   — i } t          j        t          dd¦  «        dgt          dd¦  «        dgt          dd¦  «        d	gt          d
d¦  «        ¦  «        D ]}d| |<   Œ| S )zÕ
    Build a translate mapping that strips likely-unintended control characters.
    See :func:`ftfy.fixes.remove_control_chars` for a description of these
    codepoint ranges and why they should be removed.
    r   é	   é   é   é    é   ij   ip   iÿþ  iùÿ  iýÿ  N)Ú	itertoolsÚchainr   )Úcontrol_charsÚis     r   Ú_build_control_char_mappingr:   _   s|   € ð €MåŒ_Ýˆd�DÑÔØ	ˆÝˆd�DÑÔØ	ˆÝˆf�fÑÔØ	ˆÝˆf�fÑÔñô ð 	 ð 	 ˆð  ˆ�aÑÐàÐr   se   [ÂÃÅÎÐÙ][ ]|[âã][ ][€-„†-Ÿ¡-¿]|[à-ã][€-„†-Ÿ¡-¿][ ]|[ð][ ][€-¿][€-¿]|[ð][€-¿][ ][€-¿]|[ð][€-¿][€-¿][ ]s¥   [Â-ß][]|[Â-Ã][?]|í[ -¯][?]í[°-¿][?€-¿]|í[ -¯][?€-¿]í[°-¿][?]|[à-ï][?][€-¿]|[à-ï][€-¿][?]|[ð-ô][?][€-¿][€-¿]|[ð-ô][€-¿][?][€-¿]|[ð-ô][€-¿][€-¿][?]|z[\x80-\x9f]u   Ä²ÚIJu   Ä³Úiju   Å‰u   Ê¼nu   Ç±ÚDZu   Ç²ÚDzu   Ç³Údzu   Ç„u   DÅ½u   Ç…u   DÅ¾u   Ç†u   dÅ¾u   Ç‡ÚLJu   ÇˆÚLju   Ç‰Úlju   ÇŠÚNJu   Ç‹ÚNju   ÇŒÚnju   ï¬€Úffu   ï¬�Úfiu   ï¬‚Úflu   ï¬ƒÚffiu   ï¬„Úfflu   ï¬…u   Å¿tu   ï¬†Ústc                  ó’   — ddi} t          dd¦  «        D ]1}t          |¦  «        }t          j        d|¦  «        }||k    r|| |<   Œ2| S )zt
    Build a translate mapping that replaces halfwidth and fullwidth forms
    with their standard-width forms.
    i 0  ú iÿ  iðÿ  ÚNFKC)r   ÚchrÚunicodedataÚ	normalize)Ú	width_mapr9   r&   Ú	alternates       r   Ú_build_width_maprT   ç   s^   € ð ˜�€IÝ�6˜6Ñ"Ô"ð %ð %ˆÝ�1‰vŒvˆÝÔ)¨&°$Ñ7Ô7ˆ	Ø˜ÒÐØ$ˆI�a‰LøØÐr   uÖ   Ã‚ÃƒÃ„Ã…Ã†Ã‡ÃˆÃ‰ÃŠÃ‹ÃŒÃ�ÃŽÃ�Ã�Ã‘Ã’Ã“Ã”Ã•Ã–Ã—Ã˜Ã™ÃšÃ›ÃœÃ�ÃžÃŸÄ‚Ä†ÄŒÄŽÄ�Ä˜ÄšÄžÄ°Ä¹ÅƒÅ‡Å�Å˜ÅžÅ¢Å®Å°Î’Î“Î”Î•Î–Î—Î˜Î™ÎšÎ›ÎœÎ�ÎžÎŸÎ Î¡Î£Î¤Î¥Î¦Î§Î¨Î©ÎªÎ«Î¬Î­Î®Î¯Ð’Ð“Ð”Ð•Ð–Ð—Ð˜Ð™ÐšÐ›ÐœÐ�ÐžÐŸÐ Ð¡Ð¢Ð£Ð¤Ð¥Ð¦Ð§Ð¨Ð©ÐªÐ«Ð¬Ð­Ð®Ð¯up   Ã Ã¡Ã¢Ã£Ã¤Ã¥Ã¦Ã§Ã¨Ã©ÃªÃ«Ã¬Ã­Ã®Ã¯ÄƒÄ‡Ä�Ä�Ä™Ä›ÄºÅ•Î°Î±Î²Î³Î´ÎµÎ¶Î·Î¸Î¹ÎºÎ»Î¼Î½Î¾Î¿Ð°Ð±Ð²Ð³Ð´ÐµÐ¶Ð·Ð¸Ð¹ÐºÐ»Ð¼Ð½Ð¾Ð¿u   Ã°Ã³Ä‘ÄŸÏ€ÏƒÑ€ÑƒuÉ   Â€-Â¿Ä„Ä…Ä½Ä¾Å�Å‚Å’Å“ÅšÅ›ÅžÅŸÅ Å¡Å¤Å¥Å¸Å¹ÅºÅ»Å¼Å½Å¾Æ’Ë†Ë‡Ë˜Ë›ËœË�Î„Î…Î†ÎˆÎ‰ÎŠÎŒÎŽÎ�Ð�Ð‚ÐƒÐ„Ð…Ð†Ð‡ÐˆÐ‰ÐŠÐ‹ÐŒÐŽÐ�Ñ‘Ñ’Ñ“Ñ”Ñ•Ñ–Ñ—Ñ˜Ñ™ÑšÑ›ÑœÑžÑŸÒ�Ò‘â€“â€”â€•â€˜â€™â€šâ€œâ€�â€žâ€ â€¡â€¢â€¦â€°â€¹â€ºâ‚¬â„–â„¢ uª   Â€-Â¿Ä„Ä…Ä½Ä¾Å�Å‚Å’Å“ÅšÅ›ÅžÅŸÅ Å¡Å¤Å¥Å¸Å¹ÅºÅ»Å¼Å½Å¾Æ’Ë†Ë‡Ë˜Ë›ËœË�Î„Î…Î†ÎˆÎ‰ÎŠÎŒÎŽÎ�Ð�Ð‚ÐƒÐ„Ð…Ð†Ð‡ÐˆÐ‰ÐŠÐ‹ÐŒÐŽÐ�Ñ‘Ñ’Ñ“Ñ”Ñ•Ñ–Ñ—Ñ˜Ñ™ÑšÑ›ÑœÑžÑŸÒ�Ò‘â€ â€¡â€¢â€°â€¹â€ºâ‚¬â„–â„¢)Úutf8_first_of_2Úutf8_first_of_3Úutf8_first_of_4Úutf8_continuationÚutf8_continuation_strictzé
    (?<! [{utf8_continuation_strict}])
    (
        [{utf8_first_of_2}] [{utf8_continuation}]
        |
        [{utf8_first_of_3}] [{utf8_continuation}]{{2}}
        |
        [{utf8_first_of_4}] [{utf8_continuation}]{{3}}
    )+
© )Ú__doc__r   r6   r
   rP   r   r   ÚSINGLE_QUOTE_REÚDOUBLE_QUOTE_REr   r,   r)   ÚHTML_ENTITY_REÚHTML_ENTITIESr/   r:   ÚCONTROL_CHARSÚALTERED_UTF8_REÚLOSSY_UTF8_REÚC1_CONTROL_REÚordÚ	LIGATURESrT   Ú	WIDTH_MAPÚ
UTF8_CLUESr   ÚVERBOSEÚUTF8_DETECTOR_RErZ   r   r   ú<module>rj      so  ððð ð
 €€€Ø Ð Ð Ð Ø 	€	€	€	Ø Ð Ð Ð ð

ð 
ð 
Ð ð �"”*Ð4Ñ5Ô5€Ø�"”*Ð.Ñ/Ô/€ðð ð ð6 "�>Ñ#Ô#Ð ðð ð ð( �”Ð4Ñ5Ô5€Ø$Ð$Ñ&Ô&€ð8ð 8ð 8ðð ð ð, ,Ð+Ñ-Ô-€ðP �"”*ð(ñô €ð$ �”
ð	ñô €ð  �”
˜>Ñ*Ô*€ðØ€Cˆ�I„Iˆtðà€Cˆ�I„Iˆtðð €Cˆ�I„Iˆuðð €Cˆ�I„Iˆtð	ð
 €Cˆ�I„Iˆtðð €Cˆ�I„Iˆtðð €Cˆ�I„Iˆuðð €Cˆ�I„Iˆuðð €Cˆ�I„Iˆuðð €Cˆ�I„Iˆtðð €Cˆ�I„Iˆtðð €Cˆ�I„Iˆtðð €Cˆ�I„Iˆtðð €Cˆ�I„Iˆtðð €Cˆ�I„Iˆtðð  €Cˆ�J„J�ð!ð" €Cˆ�J„J�ð#ð$ €Cˆ�J„J�Ø€Cˆ�J„J�Ø€Cˆ�J„J�Ø€Cˆ�J„J�Ø€Cˆ�J„J�ð-ð €	ð4ð ð ð" ÐÑÔ€	ð	Að Kð +ð	ð	&ð1ð €
ð` �2”:ð	ð 	ô ðð ð ðð ð „Jñô Ð Ð Ð r   