Qf gdZdZdZdZdZ ddlmZmZdZ d Z dd Z dd Z dd Z dd ZdZdZdZedk(reyy#e$rdZdZY8wxYw))encodedecode encodestring decodestring=Ls0123456789ABCDEF)a2b_qpb2a_qpNcV |dvr|S|dk(r|S|tk(xsd|cxkxrdknc S)N _ ~)ESCAPE)c quotetabsheaders -/opt/alt/python312/lib64/python3.12/quopri.py needsquotingrs> F{Dy ; 1tq0D011rcj t|}ttt|dzt|dzfzS)N)ordrbytesHEXrs rquoter$s3# AA E3q"u:s1R4y12 22rc t0|j}t|||}|j|y|dfd}d}|jx}rg} d} |dddk(r|dd}d} |D]P} t | f} t | ||r t | } |r| dk(r| jd@| j| R|||tj| } t| tkDr3|| dtdz d | tdz d} t| tkDr3| }|jx}r| || yy) Nrr c|r.|dddvr'|j|ddt|ddz|zy|dk(r|jt||zy|j||zy)Nr .)writer)soutputlineEnds rr$zencode..write;sf 236! LL3B%"#-/'9 : $Y LLqG+ , LLW %rrr"rrs= )r') r readr$readlinerrrappend EMPTYSTRINGjoinlen MAXLINESIZE) inputr&rrdataodatar$prevlinelineoutlinestrippedrthislines rrr,sa zz|ty@ U&H.." "$ " 9 9DHAqd AAy&1!H!t)t$q!   (O##G,(mk) (>KM*F ; A /H (mk) 9.." "$ "< h)rctt|||Sddlm}||}|}t|||||j S)Nrr BytesIO)r ior:rgetvalue)r%rrr:infpoutfps rrrgsE a9V<< 1:D IE 4 6* >> rc P t/|j}t||}|j|yd}|jx}rGdt |}}|dkDr7||dz |dk(r,d} |dz }|dkDr"||dz |dvr|dz }|dkDr||dz |dvrnd} ||kr|||dz} | dk(r |r |dz}|dz}n| t k7r || z}|dz}n|dz|k(r| sd} n|dz|kr!||dz|d zt k(r|t z}|d z}na|d z|krOt ||dz|d zr;t ||d z|d zr'|tt||dz|d zfz}|d z}n || z}|dz}||kr| s|j|dzd}|jx}rG|r|j|yy) Nrrr r(r s rr) r r)r$r*r.rishexrunhex) r0r&rr1r2newr4inpartialrs rrrrsGzz|tF+ U C.." "$ "#d)1 q5T!A#a[E)GQqSa%D1QK83aCa%D1QK83G!eQqs ADyVDjac!fAg1Q3q1'U1qT!A#ac]f4Fl!A1qU4!AaC=1eD1QqSM6JE5ac!A##7"9::!AAg1Q3q!e LLu %C3.." "$ "4  S rct t||Sddlm}||}|}t||||j S)Nr@r r9)r r;r:rr<)r%rr:r=r>s rrrsA a'' 1:D IE 4v& >> rcl d|cxkxrdkncxs"d|cxkxrdkncxsd|cxkxrdkScS)N09afAFrs rrCrCs9N 1   F 1T 1 FTQ5F$5FF5FFrc d}|D]u}t|f}d|cxkrdkrnn td}n9d|cxkrdkrnntddz }nd |cxkrd krnntd dz }|d zt|z z}w|S) Nr rKrL0rMrNa rOrPr)rr)r%bitsrrFs rrDrDs8 D  1$K 1  CA Q $ C A Q $ D " ABw#a&1*% Krcddl}ddl} |j|jddd\}}d}d}D]\}}|d k(rd }|d k(sd }|r/|r-|j|_t d |jdsd g}d} |D]} | d k(r|jj} n t| d} |r!t| |j jn!t| |j j|| d k7sw| j| r|j| yy#|j$rY}|j|_t |t dt dt d|jdYd}~Xd}~wwxYw#t$r.}|jj| d|dd} Yd}~;d}~wwxYw#| d k7r| jwwxYw)Nr r(tdz"usage: quopri [-t | -d] [file] ...z-t: quote tabsz-d: decode; default encoderAFz-tTz-dz -t and -d are mutually exclusive-rbz: can't open (z) )sysgetoptargverrorstderrstdoutprintexitstdinbufferopenOSErrorr$rrclose) r[r\optsargsmsgdecotabsorTstsfilefps rmainrqs]]388AB<6 d D D1 9Td 9Td ZZ  01   C 3;!!B $%  r3::,,-r3::,,d3s{ #$    I <<ZZ  c  23  *+  0    D#!FG s{ s="D!# F 0AG!F 0AFF  G#F>>GG__main__)F)FF)__all__rr/rr,binasciir r ImportErrorrrrrrrrCrDrq__name__rQrrrwsO ?   ' 239*v'RG $*\ zFy F FsA AA