HEX
Server: Microsoft-IIS/10.0
System: Windows NT ITPWINWEBSVR22 10.0 build 20348 (Windows Server 2022) AMD64
User: www.conferencesearch.co.uk (0)
PHP: 8.3.30
Disabled: NONE
Upload Files
File: D:/Python311/Lib/site-packages/pip/_vendor/idna/__pycache__/codec.cpython-311.pyc
�

�mi^
��n�ddlZddlZddlmZmZmZddlmZmZm	Z	m
Z
mZejd��Z
Gd�dej��ZGd�d	ej��ZGd
�dej��ZGd�d
eej��ZGd�deej��Zdedeejfd�Zeje��dS)�N)�Any�Optional�Tuple�)�	IDNAError�alabel�decode�encode�ulabelu[.。.。]c	�Z�eZdZddededeeeffd�Zddededeeeffd�ZdS)	�Codec�strict�data�errors�returnc��|dkr"td�|�����|sdSt|��t|��fS)Nr�Unsupported error handling "{}"��r)r�formatr
�len��selfrrs   �8D:\Python311\Lib\site-packages\pip/_vendor/idna/codec.pyr
zCodec.encodesQ���X��	N��=�D�D�V�L�L�M�M�M��	��6��d�|�|�S��Y�Y�&�&rc��|dkr"td�|�����|sdSt|��t|��fS)Nrr��r)rrr	rrs   rr	zCodec.decodesQ���X��	N��=�D�D�V�L�L�M�M�M��	��5��d�|�|�S��Y�Y�&�&rN)r)	�__name__�
__module__�__qualname__�strr�bytes�intr
r	�rrr
r

s�������'�'�3�'��'�5����;L�'�'�'�'�'�'�5�'�#�'�U�3��8�_�'�'�'�'�'�'rr
c
�6�eZdZdedededeeeffd�ZdS)�IncrementalEncoderrr�finalrc��|dkr"td�|�����|sdSt�|��}d}|r|dsd}|d=n	|s|d=|rd}g}d}|D]=}|�t|����|r|dz
}|t
|��z
}�>d�|��|z}	|t
|��z
}|	|fS)	Nrrrr����.rr)rr�_unicode_dots_re�split�appendrr�join)
rrrr'�labels�trailing_dot�result�size�label�result_bytess
          r�_buffer_encodez!IncrementalEncoder._buffer_encodes���X��	N��=�D�D�V�L�L�M�M�M��	��6�!�'�'��-�-�����	(��"�:�
(�#���2�J�J��
(��2�J��(�#'�L������	�	�E��M�M�&��-�-�(�(�(��
���	���C��J�J��D�D��y�y��(�(�<�7����L�!�!�!���T�!�!rN)	rrr r!�boolrr"r#r5r$rrr&r&sN������"�3�"��"�D�"�U�5�RU�:�EV�"�"�"�"�"�"rr&c
�6�eZdZdedededeeeffd�ZdS)�IncrementalDecoderrrr'rc���|dkr"td�|�����|sdSt|t��st|d��}t�|��}d}|r|dsd}|d=n	|s|d=|rd}g}d}|D]=}|�t|����|r|d	z
}|t|��z
}�>d�	|��|z}	|t|��z
}|	|fS)
Nrrr�asciirr)�.rr)
rr�
isinstancer!r+r,r-rrr.)
rrrr'r/r0r1r2r3�
result_strs
          r�_buffer_decodez!IncrementalDecoder._buffer_decodeAs8���X��	N��=�D�D�V�L�L�M�M�M��	��7��$��$�$�	&��t�W�%�%�D�!�'�'��-�-�����	'��"�:�
'�"���2�J�J��
'��2�J��'�#&�L������	�	�E��M�M�&��-�-�(�(�(��
���	���C��J�J��D�D��X�X�f�%�%��4�
���L�!�!�!���D�!�!rN)	rrr rr!r6rr#r>r$rrr8r8@sM������ "�3� "�� "�D� "�U�3�PS�8�_� "� "� "� "� "� "rr8c��eZdZdS)�StreamWriterN�rrr r$rrr@r@d��������Drr@c��eZdZdS)�StreamReaderNrAr$rrrDrDhrBrrD�namerc	��|dkrdStj|t��jt��jt
ttt���S)N�idna2008)rEr
r	�incrementalencoder�incrementaldecoder�streamwriter�streamreader)	�codecs�	CodecInfor
r
r	r&r8r@rD)rEs r�search_functionrNlsO���z����t���
��w�w�~��w�w�~�-�-�!�!����r)rL�re�typingrrr�corerrr	r
r�compiler+r
�BufferedIncrementalEncoderr&�BufferedIncrementalDecoderr8r@rDr!rMrN�registerr$rr�<module>rVs���
�
�
�
�	�	�	�	�'�'�'�'�'�'�'�'�'�'�;�;�;�;�;�;�;�;�;�;�;�;�;�;��2�:�:�;�;��'�'�'�'�'�F�L�'�'�'�("�"�"�"�"��:�"�"�"�D!"�!"�!"�!"�!"��:�!"�!"�!"�H	�	�	�	�	�5�&�-�	�	�	�	�	�	�	�	�5�&�-�	�	�	��#��(�6�+;�"<��������� � � � � r