U ÀÒ.eÕ- ã @ s> d dl mZ ddlZddlZddlZddlZd dlmZ dZdZ e d¡Zejd dkr`e ZeZG d d „ d eƒZG dd„ deƒZG d d„ deƒZG dd„ deƒZdd„ Zdd„ Zdd„ Zdd„ Zdd„ Zdd„ Zd7dd„Zd d!„ Zd"d#„ Zd$d%„ Zd&d'„ Z d8d(d)„Z!d*d+„ Z"d,d-„ Z#d.d/„ Z$d9d1d2„Z%d:d3d4„Z&d;d5d6„Z'dS )<é )Úidnadataé N)Úintranges_containé s xn--u [.。.。]é c @ s e Zd ZdZdS )Ú IDNAErrorz7 Base exception for all IDNA-encoding related problems N©Ú__name__Ú __module__Ú__qualname__Ú__doc__© r r ú9/usr/lib/python3.8/site-packages/pip/_vendor/idna/core.pyr s r c @ s e Zd ZdZdS )Ú IDNABidiErrorz= Exception when bidirectional requirements are not satisfied Nr r r r r r s r c @ s e Zd ZdZdS )ÚInvalidCodepointz> Exception when a disallowed or unallocated codepoint is used Nr r r r r r s r c @ s e Zd ZdZdS )ÚInvalidCodepointContextzE Exception when the codepoint is not valid in the context it is used Nr r r r r r s r c C s0 t t| ƒ¡}|dkr,t t| ƒ¡s,tdƒ‚|S )Nr z Unknown character in unicodedata)ÚunicodedataZ combiningÚunichrÚnameÚ ValueError)ÚcpÚvr r r Ú_combining_class$ s r c C s t t| ƒtj| ƒS )N)r Úordr Zscripts)r Zscriptr r r Ú _is_script+ s r c C s | d¡S )NÚpunycode)Úencode©Úsr r r Ú _punycode. s r c C s d | ¡S )Nz U+{0:04X})Úformatr r r r Ú_unot1 s r! c C s t | ƒdkrdS dS )Né? FT©Úlen©Úlabelr r r Úvalid_label_length5 s r' c C s t | ƒ|rdndkrdS dS )Néþ éý FTr# )r&