Uname: Linux web3.us.cloudlogin.co 5.10.226-xeon-hst #2 SMP Fri Sep 13 12:28:44 UTC 2024 x86_64
Software: Apache
PHP version: 8.1.31 [ PHP INFO ] PHP os: Linux
Server Ip: 162.210.96.117
Your Ip: 3.137.189.63
User: edustar (269686) | Group: tty (888)
Safe Mode: OFF
Disable Function:
NONE

name : idna.cpython-310.opt-1.pyc
o

^b�#�@s�ddlZddlZddlZddlmZe�d�ZdZdZdd�Z	dd	�Z
d
d�ZGdd
�d
ej�ZGdd�dej
�ZGdd�dej�ZGdd�deej�ZGdd�deej�Zdd�ZdS)�N)�	ucd_3_2_0u[.。.。]sxn--zxn--cCsg}|D]}t�|�rq|�t�|��qd�|�}t�d|�}|D]5}t�|�sQt�|�sQt�	|�sQt�
|�sQt�|�sQt�|�sQt�
|�sQt�|�sQt�|�rWtd|��q"dd�|D�}|D]}|r~tdd�|D��rrtd��|d	rz|d
s~td��qa|S)N��NFKCzInvalid character %rcSsg|]}t�|��qS�)�
stringprepZin_table_d1��.0�xrr�7/usr/local/python-3.10/lib/python3.10/encodings/idna.py�
<listcomp>)sznameprep.<locals>.<listcomp>css�|]}t�|�VqdS)N)rZin_table_d2rrrr
�	<genexpr>2s�znameprep.<locals>.<genexpr>zViolation of BIDI requirement 2r���zViolation of BIDI requirement 3)rZin_table_b1�appendZmap_table_b2�join�unicodedata�	normalizeZin_table_c12Zin_table_c22Zin_table_c3Zin_table_c4Zin_table_c5Zin_table_c6Zin_table_c7Zin_table_c8Zin_table_c9�UnicodeError�any)�labelZnewlabel�cZRandALrrr
�nameprepsH


��������	��rcCs�z|�d�}Wn	tyYnwdt|�krdkr#|Std��td��t|�}z|�d�}Wn	ty;Ynwdt|�krIdkrN|Std��td��|�t�r[td��|�d�}t|}dt|�krqdkrv|Std��td��)N�asciir�@�label empty or too longzLabel starts with ACE prefix�punycode)�encoder�lenr�
startswith�sace_prefix�
ace_prefix)rrrr
�ToASCII>s6����

�r cCs�t|t�rd}nz	|�d�}d}Wntyd}Ynw|s6t|�}z|�d�}Wnty5td��w|�t�s@t|d�S|tt�d�}|�	d�}t
|�}t|d���t|d�krctd||��|S)NTrFzInvalid character in IDN labelrzIDNA does not round-trip)�
isinstance�bytesrrrrr�strr�decoder �lower)rZ
pure_asciiZlabel1�resultZlabel2rrr
�	ToUnicodeis.

��


r'c@s eZdZddd�Zddd�ZdS)�Codec�strictcCs|dkr
td|��|sdSz|�d�}Wn	tyYn5w|�d�}|dd�D]}dt|�kr;dks@td	��td	��q*t|d�dkrMtd
��|t|�fSt�}t�|�}|rg|dsgd}|d=nd}|D]}|rt|�d�|�t|��qkt	||�t|�fS)Nr)�unsupported error handling ��rr�.r
rrrzlabel too longr,)
rr�UnicodeEncodeError�splitr�	bytearray�dots�extendr r")�self�input�errorsr&�labelsr�trailing_dotrrr
r�s<�
��

zCodec.encodecCs�|dkr
td|��|sdSt|t�st|�}t|vr/z
|�d�t|�fWSty.Ynw|�d�}|rDt|d�dkrDd}|d=nd	}g}|D]	}|�t	|��qJd�
|�|t|�fS)
Nr)�Unsupported error handling �rrrr-r
r�.r)rr!r"rr$r�UnicodeDecodeErrorr/rr'r)r3r4r5r6r7r&rrrr
r$�s*
�
zCodec.decodeN)r))�__name__�
__module__�__qualname__rr$rrrr
r(�s
%r(c@�eZdZdd�ZdS)�IncrementalEncoderc	Cs�|dkr
td|��|sdSt�|�}d}|r*|ds!d}|d=n	|s*|d=|r*d}t�}d}|D]}|r>|�d�|d7}|�t|��|t|�7}q1||7}|t|�7}t|�|fS)	Nr)r*r+r,r
r-r�)rr1r/r0r2r rr"�	r3r4r5�finalr6r7r&�sizerrrr
�_buffer_encode�s2

z!IncrementalEncoder._buffer_encodeN)r<r=r>rErrrr
r@��r@c@r?)�IncrementalDecoderc	Cs�|dkr
td|��|sdSt|t�rt�|�}n
t|d�}|�d�}d}|r:|ds1d}|d=n	|s:|d=|r:d}g}d}|D]}|�t|��|rO|d	7}|t|�7}q@d�|�|}|t|�7}||fS)
Nr)r8r9rr:rr
rrA)	rr!r#r1r/rr'rrrBrrr
�_buffer_decode�s6


z!IncrementalDecoder._buffer_decodeN)r<r=r>rHrrrr
rG�rFrGc@�eZdZdS)�StreamWriterN�r<r=r>rrrr
rJ$�rJc@rI)�StreamReaderNrKrrrr
rM'rLrMc	Cs tjdt�jt�jttttd�S)NZidna)�namerr$�incrementalencoder�incrementaldecoder�streamwriter�streamreader)	�codecs�	CodecInfor(rr$r@rGrJrMrrrr
�getregentry,s�rU)r�rerSrr�compiler1rrrr r'r(�BufferedIncrementalEncoderr@�BufferedIncrementalDecoderrGrJrMrUrrrr
�<module>s
0+)H#'
© 2025 GrazzMean