Qf ddlZddlZ ddlgdZdZdxZZ dxZ Z dZ d Z ejd k(re xZZe Zne xZZe Ze Ze Ze Ze ZGd d eZGd dZGddeZGddeZGddeZGddeZGddeZGddeZGddZ GddZ!d1d Z"d2d!Z#d"Z$d#Z%d$Z&d%Z'd&Z(d'Z)d3d(Z*d3d)Z+d*Z,d+Z- e.dZ/e.d,Z0e.d-Z1e.d.Z2e.d/Z3e.d0Z4dZ6e6rddl7Z7yy#e$rZedezdZ[wwxYw#e5$rdZ/dZ0dZ1dZ2dZ3dZ4Y5wxYw)4N)*z%Failed to load the builtin codecs: %s),registerlookupopen EncodedFileBOMBOM_BEBOM_LEBOM32_BEBOM32_LEBOM64_BEBOM64_LEBOM_UTF8 BOM_UTF16 BOM_UTF16_LE BOM_UTF16_BE BOM_UTF32 BOM_UTF32_LE BOM_UTF32_BE CodecInfoCodecIncrementalEncoderIncrementalDecoder StreamReader StreamWriterStreamReaderWriter StreamRecoder getencoder getdecodergetincrementalencodergetincrementaldecoder getreader getwriterencodedecode iterencode iterdecode strict_errors ignore_errorsreplace_errorsxmlcharrefreplace_errorsbackslashreplace_errorsnamereplace_errorsregister_error lookup_errorssssslittlec*eZdZ dZ ddddZdZy)rTN)_is_text_encodingctj|||||f} || _|| _|| _|| _|| _|| _|| _||| _ | SN) tuple__new__namer$r%incrementalencoderincrementaldecoder streamwriter streamreaderr2) clsr$r%r;r:r8r9r7r2selfs -/opt/alt/python312/lib64/python3.12/codecs.pyr6zCodecInfo.__new__^se}}S66<"NO   "4"4((  (%6D " cd|jj|jj|jt |fzS)Nz%<%s.%s object for encoding %s at %#x>) __class__ __module__ __qualname__r7idr=s r>__repr__zCodecInfo.__repr__ms:6**DNN,G,GBtH&& &r?)NNNNN)__name__rBrCr2r6rFr?r>rrSs%:EI?C ! &r?rceZdZ ddZddZy)rc tr4NotImplementedErrorr=inputerrorss r>r$z Codec.encodes "!r?c tr4rKrMs r>r%z Codec.decodes &"!r?Nstrict)rGrBrCr$r%rHr?r>rrrs,"&"r?rc0eZdZ ddZddZdZdZdZy) rc" ||_d|_yN)rObufferr=rOs r>__init__zIncrementalEncoder.__init__s   r?c tr4rKr=rNfinals r>r$zIncrementalEncoder.encode "!r?cyr4rHrEs r>resetzIncrementalEncoder.reset r?c yNrrHrEs r>getstatezIncrementalEncoder.getstates  r?cyr4rHr=states r>setstatezIncrementalEncoder.setstates r?NrQF)rGrBrCrYr$r_rcrgrHr?r>rrs  "    r?rc6eZdZ ddZdZd dZdZdZdZy) BufferedIncrementalEncoderc>tj||d|_yrU)rrYrWrXs r>rYz#BufferedIncrementalEncoder.__init__s##D&1 r?ctr4rKr=rNrOr\s r>_buffer_encodez)BufferedIncrementalEncoder._buffer_encode "!r?cx|j|z}|j||j|\}}||d|_|Sr4)rWrnrOr=rNr\dataresultconsumeds r>r$z!BufferedIncrementalEncoder.encode?{{U"!00t{{EJ89o  r?c<tj|d|_yrU)rr_rWrEs r>r_z BufferedIncrementalEncoder.resets  & r?c"|jxsdSrbrWrEs r>rcz#BufferedIncrementalEncoder.getstates{{ar?c|xsd|_yrUrxres r>rgz#BufferedIncrementalEncoder.setstates kr r?NrQrh) rGrBrCrYrnr$r_rcrgrHr?r>rjrjs%  "  "r?rjc0eZdZ ddZddZdZdZdZy) rc ||_yr4)rOrXs r>rYzIncrementalDecoder.__init__s  r?c tr4rKr[s r>r%zIncrementalDecoder.decoder]r?cyr4rHrEs r>r_zIncrementalDecoder.resetr`r?c y)N)r?rrHrEs r>rczIncrementalDecoder.getstates  r?cyr4rHres r>rgzIncrementalDecoder.setstate's r?NrQrh)rGrBrCrYr%r_rcrgrHr?r>rrs  "   r?rc6eZdZ ddZdZd dZdZdZdZy) BufferedIncrementalDecoderc>tj||d|_yNr?)rrYrWrXs r>rYz#BufferedIncrementalDecoder.__init__5s##D&1 r?ctr4rKrms r>_buffer_decodez)BufferedIncrementalDecoder._buffer_decode:ror?cx|j|z}|j||j|\}}||d|_|Sr4)rWrrOrqs r>r%z!BufferedIncrementalDecoder.decode?rur?c<tj|d|_yr)rr_rWrEs r>r_z BufferedIncrementalDecoder.resetGs  & r?c|jdfSrbrxrEs r>rcz#BufferedIncrementalDecoder.getstateKs Qr?c|d|_yrbrxres r>rgz#BufferedIncrementalDecoder.setstateOs Ah r?NrQrh) rGrBrCrYrr%r_rcrgrHr?r>rr/s%  "  r?rcJeZdZd dZdZdZdZd dZefdZ dZ dZ d Z y ) rc" ||_||_yr4)streamrOr=rrOs r>rYzStreamWriter.__init__\s (  r?cz |j||j\}}|jj|yr4)r$rOrwrite)r=objectrrrts r>rzStreamWriter.writeus1 VT[[9h $r?cF |jdj|yrU)rjoinr=lists r> writelineszStreamWriter.writelines|s  2774=!r?c yr4rHrEs r>r_zStreamWriter.resets   r?ct|jj|||dk(r|dk(r|jyyyrbrseekr_r=offsetwhences r>rzStreamWriter.seeks3 ( Q;6Q; JJL';r?c* ||j|Sr4rr=r7getattrs r> __getattr__zStreamWriter.__getattr__ t{{D))r?c|Sr4rHrEs r> __enter__zStreamWriter.__enter__ r?c8|jjyr4rcloser=typevaluetbs r>__exit__zStreamWriter.__exit__ r?cFtd|jjzNzcan't serialize %s TypeErrorrArGr=protos r> __reduce_ex__zStreamWriter.__reduce_ex__,t~~/F/FFGGr?NrQr) rGrBrCrYrrr_rrrrrrrHr?r>rrZs52 "   $*Hr?rcneZdZeZddZddZddZddZddZ dZ ddZ d Z d Z efd Zd Zd ZdZy)rc ||_||_d|_|j|_|j|_d|_yr)rrO bytebuffercharbuffertype_empty_charbuffer charbuffer linebufferrs r>rYzStreamReader.__init__sC   !%!4!4!600r?ctr4rKrMs r>r%zStreamReader.decodes!!r?cH |jr1|jj|j|_d|_|dkr|} |dk\rt |j|k\rn|dkr|j j }n|j j |}|j|z}|snC |j||j\}}||d|_|xj|z c_|sn|dkr|j} |j|_| S|jd|} |j|d|_| S#t$rZ}|rM|j|d|j|j\}}|jd} t | dkrYd}~d}~wwxYw)NrTkeepends) rrrrlenrreadrr%rOUnicodeDecodeErrorstart splitlines) r=sizechars firstlinenewdatarrnewchars decodedbytesexclinesrss r>rzStreamReader.reads 4 ??"4499$//JDO"DO 19Ezt'50ax++**,++**40??W,D )-T4;;)G&,#<=1DO OOx 'O?@ 19__F"44DO  __Ve,F"ooef5DO 1&  D#))$4dkkB+Hl$///>E5z1}%  s3D>> F!AFF!Nc( |jrh|jd}|jd=t|jdk(r|jd|_d|_|s|jdd}|S|xsd}|j} |j |d}|rXt |tr|jds!t |tr'|jd r||j dd z }||z }|jd}|rt|dkDrm|d}|d=t|dkDr&|d xx|jz cc<||_d|_n|d|jz|_|s|jdd} |S|d}|djdd}||k7r<|jj|dd|jz|_|r|} |S|} |S|r||r|s|jdd} |S|d kr|d z})NrrFrHT)r  )rri@) rrrrrr isinstancestrendswithbytesr) r=rrlinereadsizerrr line0withendline0withoutends r>readlinezStreamReader.readlines@  ????1%D"4??#q(#'//!"4"&6q9K:2%%99X96DtS)dmmD.AtU+ e0DDII1AI66D DLDOOTO2Eu:>!8Da5zA~b T__4 */*.+0(T__*D##>qA& % %Qx "'("5"5u"5"Ea"H?2&*&<&<&A&A%)&L&*oo'6DO+  / 4+??E?:1=D $A ]r?cF |j}|j|Sr4)rr)r=sizehintrrrs r> readlineszStreamReader.readlinesas# yy{x((r?cD d|_|j|_d|_yr)rrrrrEs r>r_zStreamReader.resetps$ 00r?c^ |jj|||jyr4rrs r>rzStreamReader.seek}s&  ( r?c8 |j}|r|Str4)r StopIteration)r=rs r>__next__zStreamReader.__next__sB}} Kr?c|Sr4rHrEs r>__iter__zStreamReader.__iter__rr?c* ||j|Sr4rrs r>rzStreamReader.__getattr__rr?c|Sr4rHrEs r>rzStreamReader.__enter__rr?c8|jjyr4rrs r>rzStreamReader.__exit__rr?cFtd|jjzrrrs r>rzStreamReader.__reduce_ex__rr?rQ)rrF)NTr)rGrBrCrrrYr%rrrr_rrrrrrrrrHr?r>rrsRN2"N`IV ) $*Hr?rcteZdZ dZddZddZddZddZdZdZ d Z d Z d Z dd Z efd ZdZdZdZy)runknowncZ ||_||||_||||_||_yr4)rreaderwriterrO)r=rReaderWriterrOs r>rYzStreamReaderWriter.__init__s3  VV, VV,  r?c8|jj|Sr4)rrr=rs r>rzStreamReaderWriter.reads{{%%r?Nc8|jj|Sr4)rrrs r>rzStreamReaderWriter.readlines{{##D))r?c8|jj|Sr4)rr)r=rs r>rzStreamReaderWriter.readliness{{$$X..r?c. t|jSr4)nextrrEs r>rzStreamReaderWriter.__next__sBDKK  r?c|Sr4rHrEs r>rzStreamReaderWriter.__iter__rr?c8|jj|Sr4)rr)r=rrs r>rzStreamReaderWriter.writes{{  &&r?c8|jj|Sr4)rrrs r>rzStreamReaderWriter.writeliness{{%%d++r?cl|jj|jjyr4rr_rrEs r>r_zStreamReaderWriter.reset"  r?c|jj|||jj|dk(r!|dk(r|jjyyyrb)rrrr_rrs r>rzStreamReaderWriter.seeksJ (  Q;6Q; KK   ';r?c* ||j|Sr4rrs r>rzStreamReaderWriter.__getattr__rr?c|Sr4rHrEs r>rzStreamReaderWriter.__enter__rr?c8|jjyr4rrs r>rzStreamReaderWriter.__exit__rr?cFtd|jjzrrrs r>rz StreamReaderWriter.__reduce_ex__rr?rQrr4r)rGrBrCencodingrYrrrrrrrr_rrrrrrrHr?r>rrsZH$&*/! ',  $*Hr?rczeZdZ dZdZ ddZddZddZddZdZ dZ d Z d Z d Z dd Zefd ZdZdZdZy)rrcv ||_||_||_||||_||||_||_yr4)rr$r%rrrO)r=rr$r%rrrOs r>rYzStreamRecoder.__init__sA $   VV, VV,  r?cz|jj|}|j||j\}}|Sr4)rrr$rOr=rrr bytesencodeds r>rzStreamRecoder.read,s4{{%![[t{{;l r?Nc||jj}n|jj|}|j||j\}}|Sr4)rrr$rOr s r>rzStreamRecoder.readline2sK <;;'')D;;''-D![[t{{;l r?c|jj}|j||j\}}|j dS)NTr)rrr$rOr)r=rrrr s r>rzStreamRecoder.readlines;s>{{!![[t{{;l--r?cp t|j}|j||j\}}|Sr4)rrr$rO)r=rrr s r>rzStreamRecoder.__next__As1BDKK ![[t{{;l r?c|Sr4rHrEs r>rzStreamRecoder.__iter__Hrr?cv|j||j\}}|jj|Sr4)r%rOrr)r=rr bytesdecodeds r>rzStreamRecoder.writeKs0![[t{{;l{{  &&r?cdj|}|j||j\}}|jj |Sr)rr%rOrr)r=rrrrs r>rzStreamRecoder.writelinesPs=xx~![[t{{;l{{  &&r?cl|jj|jjyr4rrEs r>r_zStreamRecoder.resetVrr?ct|jj|||jj||yr4)rrrrs r>rzStreamRecoder.seek[s, ( (r?c* ||j|Sr4rrs r>rzStreamRecoder.__getattr__arr?c|Sr4rHrEs r>rzStreamRecoder.__enter__hrr?c8|jjyr4rrs r>rzStreamRecoder.__exit__krr?cFtd|jjzrrrs r>rzStreamRecoder.__reduce_ex__nrr?rQrr4r)rGrBrC data_encoding file_encodingrYrrrrrrrr_rrrrrrrHr?r>rrsd MM!8 . ' '  )$*Hr?rrRc | d|vr|dz}tj|||}||S t|}t||j|j |}||_|S#|jxYw)Nb)builtinsrrrr;r:rr)filenamemoderrO bufferingfileinfosrws r>rrss: $cz ==4 3D h t'8'8$:K:KVT    s 5AA2c ||}t|}t|}t||j|j|j|j |}||_||_|Sr4)rrr$r%r;r:rr)r"rrrO data_info file_infosrs r>rrso.% }%I}%I tY--y/?/? --y/E/Ev OB%B$B Ir?c. t|jSr4)rr$rs r>rr (  " ""r?c. t|jSr4)rr%r*s r>rrr+r?cL t|j}| t||Sr4)rr8 LookupError)rencoders r>r r .X11G(## Nr?cL t|j}| t||Sr4)rr9r.)rdecoders r>r!r!r0r?c. t|jSr4)rr;r*s r>r"r" (  ( ((r?c. t|jSr4)rr:r*s r>r#r#r4r?c+K t||fi|}|D]}|j|}|s||jdd}|r|yyw)NrVT)r r$)iteratorrrOkwargsr/rNoutputs r>r&r&sc.#H-f??G& L^^B %F   ,A Ac+K t||fi|}|D]}|j|}|s||jdd}|r|yyw)Nr?T)r!r%)r7rrOr8r2rNr9s r>r'r' sc.#H-f??G& L^^C &F  r:c0 |Dcic]}||c}Scc}wr4rH)rngis r>make_identity_dictr?4s%  AAaC  s cZ i}|jD]\}}||vr|||<d||<|Sr4)items) decoding_mapmkvs r>make_encoding_maprF>sE  A!!#!AvAaDAaD $ Hr?ignorereplacexmlcharrefreplacebackslashreplace namereplace)rNrRr)NrRrQ)8rsys_codecs ImportErrorwhy SystemError__all__rr rr rrr byteorderrrrr r rr r5rrrrrjrrrrrrrrrrr r!r"r#r&r'r?rFr/r(r)r*r+r,r-r._false encodingsrHr?r>rVs E -0 $#$## # ==H#"C)I #"C)I     &&>@"@"D& & P "!3 "D/ / b"!3"VHH5HHXxH5xHxVHVHtsHsHn/b"L##  ))$( . *M *M!),N+,?@*+=>%m4   o"E =C DDEV"MMN#"s)D0D,D) D$$D),E?E