if. :ddlmZmZmZmZmZddlZddlZddlm Z m Z ej dZ Gddej Z Gdd ejZGd d ejZGd d e ejZGdde ejZdejfdZdS))encodedecodealabelulabel IDNAErrorN)TupleOptionalu [.。.。]c ZeZdZddededeeeffdZddededeeeffdZdS) Codecstrictdataerrorsreturnc|dkr"td||sdSt|t|fS)Nr Unsupported error handling "{}")r)rformatrlenselfrrs j/builddir/build/BUILD/imunify360-venv-2.3.5/opt/imunify360/venv/lib/python3.11/site-packages/idna/codec.pyrz Codec.encode sN X  ?FFvNNOO O 6d||SYY&&rc|dkr"td||sdSt|t|fS)Nr rr)rrrrrs rrz Codec.decodesN X  ?FFvNNOO O 5d||SYY&&rN)r ) __name__ __module__ __qualname__strr bytesintrrrrr r s''3''5;L''''''5'#'U38_''''''rr c 6eZdZdedededeeeffdZdS)IncrementalEncoderrrfinalrc|dkr"td||sdSt|}d}|r|dsd}|d=n |s|d=|rd}g}d}|D]=}|t ||r|dz }|t |z }>d||z} |t |z }| |fS Nr rrr.rr)rr_unicode_dots_resplitappendrrjoin rrrr%labels trailing_dotresultsizelabel result_strs r_buffer_encodez!IncrementalEncoder._buffer_encodes X  ?FFvNNOO O 5!''--  '": '" 2JJ '2J'#&L  E MM&-- ( ( (   CJJ DDXXf%% 4  L!!!4rN)rrrrboolr r!r5r"rrr$r$sM 3  D U3PS8_      rr$c 6eZdZdedededeeeffdZdS)IncrementalDecoderrrr%rc|dkr"td||sdSt|}d}|r|dsd}|d=n |s|d=|rd}g}d}|D]=}|t ||r|dz }|t |z }>d||z} |t |z }| |fSr')rrr*r+r,rrr-r.s r_buffer_decodez!IncrementalDecoder._buffer_decode>s X  ?FFvNNOO O 7!''--  '": '" 2JJ '2J'#&L  E MM&-- ( ( (   CJJ DDXXf%% 4  L!!!D!!rN)rrrrr6r r!r:r"rrr8r8=sM"3""D"U3PS8_""""""rr8ceZdZdS) StreamWriterNrrrr"rrr<r<^Drr<ceZdZdS) StreamReaderNr=r"rrr@r@br>rr@rc tjdtjtjt t ttS)Nidna)namerrincrementalencoderincrementaldecoder streamwriter streamreader) codecs CodecInfor rrr$r8r<r@r"rr getregentryrJfs=   ww~ww~--!!   r)corerrrrrrHretypingr r compiler*r BufferedIncrementalEncoderr$BufferedIncrementalDecoderr8r<r@rIrJr"rrrQsz;;;;;;;;;;;;;; """"""""2::;;'''''FL'''(     :   B""""":"""B     5&-        5&-    V%      r