AlkantarClanX12

Your IP : 18.191.212.146


Current Path : /usr/lib64/python3.8/encodings/__pycache__/
Upload File :
Current File : //usr/lib64/python3.8/encodings/__pycache__/punycode.cpython-38.opt-2.pyc

U

e5d��@s�ddlZdd�Zdd�Zdd�Zdd	�Zd
d�ZdZd
d�Zdd�Zdd�Z	dd�Z
dd�Zdd�Zdd�Z
Gdd�dej�ZGdd�dej�ZGdd �d ej�ZGd!d"�d"eej�ZGd#d$�d$eej�Zd%d&�ZdS)'�NcCsPt�}t�}|D]*}t|�dkr0|�t|��q|�|�qt|�}t|�|fS)N�)�	bytearray�set�ord�append�add�sorted�bytes)�str�base�extended�c�r�*/usr/lib64/python3.8/encodings/punycode.py�	segregate
srcCs&d}|D]}t|�|kr|d7}q|S)Nr�)r)r
�max�resr
rrr�
selective_lens

rcCsNt|�}|d7}||krdS||}||kr8|d|fS||kr|d7}qdS)Nr)���r)�len)r
�char�index�pos�lr
rrr�selective_findsrcCs�d}g}d}|D]r}d}}t|�}t||�}	|	d||}
t||||�\}}|dkrZq~|
||7}
|�|
d�|}d}
q>|}q|S)Nrrrr)rrrr)r
rZoldchar�resultZoldindexr
rrrZcurlen�deltarrr�insertion_unsort0s"
rcCs,d|d|}|dkrdS|dkr(dS|S)N�$r�r)�j�biasrrrr�TFsr#s$abcdefghijklmnopqrstuvwxyz0123456789cCsnt�}d}t||�}||kr2|�t|�t|�S|�t|||d|�||d|}|d7}q
dS)Nrrr)rr#r�digitsr	)�Nr"rr!�trrr�generate_generalized_integerNs
r'cCsX|r|d}n|d}|||7}d}|dkr@|d}|d7}q&|d||d}|S)Ni��ri��#r�&r)r�first�numcharsZ	divisionsr"rrr�adapt[s

r-cCsPt�}d}t|�D]4\}}t||�}|�|�t||dk||d�}qt|�S)N�Hrr)r�	enumerater'�extendr-r	)Zbaselen�deltasrr"Zpointsr�srrr�generate_integersjs

r3cCs8t|�\}}t||�}tt|�|�}|r4|d|S|S)N�-)rrr3r)�textrrr1rrr�punycode_encodeus
r6c
Csd}d}d}zt||�}Wn0tk
rL|dkr<td��|ddfYSX|d7}d|krjdkrxnn
|d}nHd|kr�dkr�nn
|d	}n&|dkr�td
||d��n|dfSt||�}	|||7}||	kr�||fS|d|	}|d7}qdS)Nrr�strictzincomplete punicode string�A�Z�0�9�z Invalid extended code point '%s'r)r�
IndexError�UnicodeErrorr#)
r�extposr"�errorsr�wr!r�digitr&rrr�decode_generalized_numbers2


�
rCc	Cs�d}d}d}d}|t|�kr�t||||�\}}|dkr:|S||d7}||t|�d7}|dkr~|dkrvtd|��td	�}|t|�d}|d|�t|�||d�}t||dkt|��}|}q|S)
Nrrr.rri��r7zInvalid character U+%x�?)rrCr>r�chrr-)	rrr@rrr"r?Znewposrrrr�insertion_sort�s,� rFcCs�t|t�r|�d�}t|t�r&t|�}|�d�}|dkrLd}t|d���}n.t|d|�d|�}t||dd�d���}t|||�S)N�asciir4r�r)�
isinstancer
�encode�
memoryviewr	�rfind�upperrF)r5r@rrrrrr�punycode_decode�s



rNc@s eZdZddd�Zddd�ZdS)	�Codecr7cCst|�}|t|�fS�N)r6r��self�inputr@rrrrrJ�szCodec.encodecCs*|dkrtd|��t||�}|t|�fS�N)r7�replace�ignorezUnsupported error handling )r>rNrrQrrr�decode�s
zCodec.decodeN)r7)r7)�__name__�
__module__�__qualname__rJrWrrrrrO�s
rOc@seZdZddd�ZdS)�IncrementalEncoderFcCst|�SrP)r6�rRrS�finalrrrrJ�szIncrementalEncoder.encodeN)F)rXrYrZrJrrrrr[�sr[c@seZdZddd�ZdS)�IncrementalDecoderFcCs$|jdkrtd|j��t||j�SrT)r@r>rNr\rrrrW�s
zIncrementalDecoder.decodeN)F)rXrYrZrWrrrrr^�sr^c@seZdZdS)�StreamWriterN�rXrYrZrrrrr_�sr_c@seZdZdS)�StreamReaderNr`rrrrra�srac	Cs tjdt�jt�jttttd�S)NZpunycode)�namerJrW�incrementalencoder�incrementaldecoder�streamwriter�streamreader)	�codecs�	CodecInforOrJrWr[r^r_rarrrr�getregentry�s�ri)rgrrrrr#r$r'r-r3r6rCrFrNrOr[r^r_rarirrrr�<module>s&