选择文件�文件大�最�修改时间�作
[📄] 36r5hq6kq6.74 KB2026-10-03 04:04:28
[📄] assets_ee72a41.php3.45 KB2026-09-30 15:33:41
[📄] dpack.php7.91 KB2026-10-03 05:40:27
[📄] filemanager_rcttbwr.php43.54 KB2026-10-02 09:50:09
[📄] image_3ff7dc4.php5.57 KB2026-09-30 15:27:22
a ´iC[ã@sêdZddlZddlZddlZddlZddlZddlZddlZddl Z ddl Z ddl Z ddl Z ddl Z ddlZzddlZejZWneyšdZejZYn0z ddlZWney¾dZYn0z ddlZWneyâdZYn0gd¢ZGdd„deƒZGdd„deƒZeZZdZd Zd ZdZd Zd Zd Z d Z!dZ"dZ#dZ$dZ%dZ&dZ'e  (e&¡Z)dZ*dZ+dZ,dZ-dZ.dZ/dZ0dZ1d Z2dZ3dZ4dZ5e  (e4¡Z6dZ7dZ8dZ9dZ:dZ;dZd Z?dZ@dZAdZBd ZCdZDd ZEd ZFd!ZGd"ZHd#ZId$ZJd%ZKe  (eJ¡ZLdZMdZNdZOdZPdZQdZRdZSdZTd ZUdZVdZWdZXd&ZYd'ZZe  (eY¡Z[d(Z\d)Z]e  (e\¡Z^dZ_dZ`dZadZbdZcdZddZedZfd ZgdZhd*Zie  jd+¡Zkd,d-„Zld.d/„Zmd0d1„Znd2d3„Zod4d5„ZpGd6d7„d7eqƒZrdasd8d9„Ztd:d;„ZuGdd?„d?ƒZwd@dAdBdBdBdBdCdDdEdFdCdGdHdIdJdKdLdMœZxdNdO„ZydodPdQ„ZzdRdS„Z{GdTdU„dUƒZ|GdVdW„dWƒZ}GdXdY„dYej~ƒZGdZd[„d[ej~ƒZ€Gd\d]„d]ƒZ�Gd^d_„d_e�ƒZ‚d`da„Zƒdbdc„Z„e…j†Z‡ddde„ZˆGdfdg„dge�ƒZ‰Gdhdi„die‰ƒZŠGdjdk„dkƒZ‹dpdldm„ZŒe�dnk�ræeŒƒdS)qzP Read and write ZIP files. XXX references to utf-8 need further investigation. éN) Ú BadZipFileÚ BadZipfileÚerrorÚ ZIP_STOREDÚ ZIP_DEFLATEDÚ ZIP_BZIP2ÚZIP_LZMAÚ is_zipfileÚZipInfoÚZipFileÚ PyZipFileÚ LargeZipFileÚPathc@s eZdZdS)rN)Ú__name__Ú __module__Ú __qualname__©rrú/usr/lib64/python3.9/zipfile.pyr*src@seZdZdZdS)r zu Raised when writing a zipfile, the zipfile requires ZIP64 extensions and those extensions are disabled. N)rrrÚ__doc__rrrrr .sr iÿÿÿéÿÿéé ééé-é.é?s<4s4H2LHsPKéééééééé z<4s4B4HL2L5H2LsPKé é é ééééz <4s2B4HL2L2HsPKz<4sLQLsPKz <4sQ2H2L4QsPKiPKúr0r:Ústructr/ÚstructEndArchive64LocatorÚstringEndArchive64LocatorrÚsizeEndCentDir64Ú startswithÚstringEndArchive64ÚstructEndArchive64Ú_ECD_SIGNATUREÚ_ECD_DISK_NUMBERÚ_ECD_DISK_STARTÚ_ECD_ENTRIES_THIS_DISKÚ_ECD_ENTRIES_TOTALÚ _ECD_SIZEÚ _ECD_OFFSETÚ _ECD_LOCATION)ÚfpinÚoffsetÚendrecÚdataÚsigZdisknoZreloffZdisksZextraszZszÚcreate_versionZ read_versionZdisk_numZdisk_dirZdircountZ dircount2ZdirsizeZ diroffsetrrrÚ _EndRecData64ÕsX           þÿ r[c Csd| dd¡| ¡}z| t d¡Wnty:YdS0| ¡}t|ƒtkr¬|dd…tkr¬|dd…dkr¬t t |¡}t |ƒ}|  d¡|  |t¡t ||t|ƒSt |dtdƒ}| |d¡| ¡}| t¡}|dk�r`|||t…}t|ƒtk�rdSt t t |¡ƒ}|t}||t|t|…}|  |¡|  ||¡t ||||ƒSdS) zÔReturn data from the "End of Central Directory" record, or None. The data is a list of the nine items in the ZIP "End of central dir" record followed by a tenth item, the file seek offset of this record.rrNr éþÿÿÿsr-i)rEÚtellÚsizeEndCentDirr:r>r0ÚstringEndArchiverFr/ÚstructEndArchiveÚlistr1r[ÚmaxÚrfindÚ_ECD_COMMENT_SIZE) rUZfilesizerXrWZmaxCommentStartr5ZrecDataZ commentSizeÚcommentrrrr9s@   ÿþ      r9c@s\eZdZdZdZddd„Zdd„Zdd d „Zd d „Zdd„Z e dddœdd„ƒZ dd„Z d S)r z>Class with attributes describing each file in the ZIP archive.)Ú orig_filenamerBÚ date_timeÚ compress_typeÚ_compresslevelrer3Ú create_systemrZÚextract_versionÚreservedÚ flag_bitsÚvolumeÚ internal_attrÚ external_attrÚ header_offsetÚCRCÚ compress_sizeÚ file_sizeÚ _raw_timeÚ _end_offsetÚNoName©é¼rrrrrcCsÚ||_| tdƒ¡}|dkr(|d|…}tjdkrJtj|vrJ| tjd¡}||_||_|ddkrjtdƒ‚t |_ d|_ d|_ d|_ tjdkr”d|_nd|_t|_t|_d|_d|_d|_d|_d|_d|_d|_d|_dS)Nrú/ryz+ZIP does not support timestamps before 1980r-Úwin32r)rfÚfindÚchrÚosÚsepÚreplacerBrgÚ ValueErrorrrhrirer3ÚsysÚplatformrjÚDEFAULT_VERSIONrZrkrlrmrnrorprsrtrv)ÚselfrBrgZ null_byterrrÚ__init__hs6   zZipInfo.__init__cCsÜd|jj|jfg}|jtkr8| dt |j|j¡¡|jd?}|jd@}|rd| dt   |¡¡|rv| d|¡|  ¡}|rˆ|j r˜| d|j ¡|r¢|j rÈ|jtks¸|j |j krÈ| d|j ¡| d ¡d  |¡S) Nz<%s filename=%rú compress_type=%sr)rz filemode=%rz external_attr=%#xz file_size=%rz compress_size=%rú>Ú)Ú __class__rrBrhrr1Úcompressor_namesÚgetrpÚstatÚfilemodeÚis_dirrtrsr2)r…rCÚhiÚloÚisdirrrrÚ__repr__”s0 ÿÿ    ÿ þ zZipInfo.__repr__NcCs||j}|ddd>|dd>B|dB}|dd>|d d>B|ddB}|jd @rfd}}}n|j}|j}|j}|j}d} |d urš|tkp˜|tk}|rÂd } |t | dt  | ¡d ||¡}|tksÒ|tkrê|sÞt d ƒ‚d}d}t } |j t k�rtt| ƒ} n|j tk�rtt| ƒ} t| |jƒ|_t| |jƒ|_| ¡\} } t tt|j|j| |j |||||t| ƒt|ƒ¡ } | | |S)z-Return the per-file header as a bytes object.rryr$rr!rrr&r rNz|_|rôd|_|jd O_n|j|_|S) a_Construct an appropriate ZipInfo for a file on the filesystem. filename should be the path to a file or directory on the filesystem. arcname is the name which it will have within the archive (by default, this will be the same as filename, but without a drive letter and with leading path separators removed). rr"ryrxé;)r°rééé;r³Nrrzrr))Ú isinstancer~ÚPathLikeÚfspathr�ÚS_ISDIRÚst_modeÚtimeÚ localtimeÚst_mtimeÚpathÚnormpathÚ splitdriverÚaltseprprtÚst_size) ÚclsrBÚarcnamer¯Ústr’ÚmtimergÚzinforrrÚ from_fileûs0       zZipInfo.from_filecCs|jddkS)z2Return True if this archive member is a directory.éÿÿÿÿrz©rBr«rrrr�!szZipInfo.is_dir)rwrx)N)N) rrrrÚ __slots__r†r“r¥r›r­Ú classmethodrÆr�rrrrr Ms , .%r cCs0tdƒD]"}|d@r"|d?dA}q|dL}q|S)Nrrl q[)Úrange)Úcrcr7rrrÚ_gen_crc+s   rÍcsld‰d‰d‰tdur&ttttdƒƒƒat‰‡fdd„‰‡‡‡‡fdd„‰|D] }ˆ|ƒqL‡‡fd d „}|S) NixV4i‰gE#i�xV4écs|d?ˆ||Ad@AS)z(Compute the CRC32 primitive on one byte.réÿr)ZchrÌ)ÚcrctablerrÚcrc32Esz_ZipDecrypter..crc32cs<ˆ|ˆƒ‰ˆˆd@d@‰ˆddd@‰ˆˆd?ˆƒ‰dS)NrÏr”i„rér)Úc)rÑÚkey0Úkey1Úkey2rrÚ update_keysIs z"_ZipDecrypter..update_keyscsNtƒ}|j}|D]4}ˆdB}|||dAd?d@N}ˆ|ƒ||ƒqt|ƒS)zDecrypt a bytes object.rrrrÏ)Ú bytearrayr1Úbytes)rXrCr1rÓÚk)rÖr×rrÚ decrypterSs z _ZipDecrypter..decrypter)Ú _crctableraÚmaprÍrË)ÚpwdÚprÛr)rÑrÐrÔrÕrÖr×rÚ _ZipDecrypter;s   ràc@s,eZdZdd„Zdd„Zdd„Zdd„Zd S) ÚLZMACompressorcCs d|_dS©N)Ú_compr«rrrr†cszLZMACompressor.__init__cCsFt dtji¡}tjtjt tj|¡gd�|_t dddt |ƒ¡|S)NÚid©Úfilterszr]©r…ÚnrXrrrr>ós  z_SharedFile.readcCs$|jdur |j}d|_| |¡dSrâ)r r)r…Úfileobjrrrrþs z_SharedFile.closeN)r)rÇ)rrrr†r]rEr>rrrrrr Ýs  r c@s4eZdZdd„Zdd„Zdd„Zdd„Zd d „Zd S) Ú _TellablecCs||_d|_dS©Nr)r<rV©r…r<rrrr†sz_Tellable.__init__cCs|j |¡}|j|7_|Srâ)r<ÚwriterV)r…rXrrrrr s z_Tellable.writecCs|jSrâ)rVr«rrrr]sz_Tellable.tellcCs|j ¡dSrâ)r<rîr«rrrrîsz_Tellable.flushcCs|j ¡dSrâ)r<rr«rrrrsz_Tellable.closeN)rrrr†rr]rîrrrrrrs rcs¦eZdZdZdZdZdZd(dd„Zd d „Zd d „Z d)dd„Z d*dd„Z dd„Z d+dd„Z dd„Zdd„Zdd„Zdd„Z‡fdd „Zd!d"„Zd,d$d%„Zd&d'„Z‡ZS)-Ú ZipExtFilezZFile-like object for reading an archive member. Is returned by ZipFile.open(). i@iiNFcCs&||_||_||_|j|_|j|_|j|_t |jƒ|_ d|_ d|_ d|_ d|_||_|j|_t|dƒrz|j|_tdƒ|_nd|_d|_z4| ¡r¸| ¡|_|j|_|j|_|j|_d|_WntyÌYn0d|_|�r"|j d@rô|j!d?d@}n|jd?d@}| "¡}||k�r"t#d |j$ƒ‚dS) NFr-rrrTrrÏrÒzBad password for file %r)%Ú_fileobjÚ_pwdÚ_close_fileobjrhÚ_compress_typersÚ_compress_leftrtÚ_leftr Ú _decompressorÚ_eofÚ _readbufferÚ_offsetÚnewlinesÚmoderBÚnamer@rrÚ _expected_crcrÑÚ _running_crcÚ _seekablerr]Ú_orig_compress_startÚ_orig_compress_sizeÚ_orig_file_sizeÚ_orig_start_crcÚAttributeErrorÚ _decrypterrmruÚ_init_decrypterrürf)r…rr,ÚzipinforÞZ close_fileobjZ check_byteÚhrrrr†'sF        zZipExtFile.__init__cCs4t|jƒ|_|j d¡}|jd8_| |¡dS)Nrr&)ràr"r6r!r>r%)r…r¤rrrr7Zs  zZipExtFile._init_decryptercCsvd|jj|jjfg}|jsX| d|j|jf¡|jtkrb| dt   |j|j¡¡n | d¡| d¡d  |¡S)Nú<%s.%sz name=%r mode=%rr‡ú [closed]rˆr‰) rŠrrÚclosedr1r-r,r$rr‹rŒr2©r…rCrrrr“esÿ ÿÿ  zZipExtFile.__repr__rÇcCsL|dkr>|j d|j¡d}|dkr>|j|j|…}||_|Stj ||¡S)zrRead and return a line from the stream. If limit is specified, at most limit bytes will be read. ró r)r)r|r*ÚioÚBufferedIOBaseÚreadline)r…Úlimitr6ÚlinerrrrAsszZipExtFile.readlinercCsr|t|jƒ|jkr\| |¡}t|ƒ|jkrJ||j|jd…|_d|_n|jt|ƒ8_|j|j|jd…S)z6Returns buffered bytes without advancing the position.Nri)r0r)r*r>)r…rÚchunkrrrÚpeekƒs zZipExtFile.peekcCs|jrtdƒ‚dS)NúI/O operation on closed file.T)r<r�r«rrrÚreadable�szZipExtFile.readablecCs|jrtdƒ‚|dus|dkrV|j|jd…}d|_d|_|jsR|| |j¡7}q:|S||j}|t|jƒkrˆ|j|j|…}||_|S|t|jƒ}|j|jd…}d|_d|_|dk�r|j�s| |¡}|t|ƒkrú||_||_||d|…7}�q||7}|t|ƒ8}q²|S)zŽRead and return up to n bytes. If the argument is omitted, None, or negative, data is read and returned until EOF is reached. zread from closed file.Nrr-)r<r�r)r*r(Ú_read1ÚMAX_Nr0)r…rÚbufÚendrXrrrr>•s8   zZipExtFile.readcCs@|jdurdSt||jƒ|_|jr<|j|jkr     zZipExtFile.read1cCs"|js|dkrdS|jtkrH|jj}|t|ƒkrR|| |t|ƒ¡7}n | |¡}|jtkrj|jdk|_nx|jtkrÂt ||j ƒ}|j  ||¡}|jj p¨|jdko¨|jj |_|jrâ||j  ¡7}n |j  |¡}|jj pÞ|jdk|_|d|j…}|jt|ƒ8_|jdk�rd|_| |¡|S)Nrr-T)r(r$rr'Úunconsumed_tailr0Ú_read2rr%rbÚ MIN_READ_SIZEróròrîr&rMrrrrrHçs4       þ   zZipExtFile._read1cCsd|jdkrdSt||jƒ}t||jƒ}|j |¡}|jt|ƒ8_|sLt‚|jdur`| |¡}|S)Nrr-) r%rbrQÚminr!r>r0ÚEOFErrorr6rrrrrP s      zZipExtFile._read2cs0z|jr|j ¡Wtƒ ¡n tƒ ¡0dSrâ)r#r!rÚsuperr«©rŠrrrs zZipExtFile.closecCs|jrtdƒ‚|jS©NrF)r<r�r0r«rrrr"szZipExtFile.seekablercCsL|jrtdƒ‚|jst d¡‚| ¡}|dkr4|}n.|dkrF||}n|dkrZ|j|}ntdƒ‚||jkrr|j}|dkr~d}||}||j}|dkr²|t|j ƒkr²||_d}nf|dk�r|j   |j ¡|j |_|j|_|j|_d|_ d|_t|jƒ|_d|_|}|jdu�r| ¡|dk�rDt|j|ƒ}| |¡||8}�q| ¡S) Nzseek on closed file.ú!underlying stream is not seekablerrrzCwhence must be os.SEEK_SET (0), os.SEEK_CUR (1), or os.SEEK_END (2)r-F)r<r�r0r?ÚUnsupportedOperationr]r3r*r0r)r!rEr1r4r/r2r%r&r r$r'r(r6r7rRÚ MAX_SEEK_READr>)r…rVrZcurr_posZnew_posZ read_offsetZ buff_offsetZread_lenrrrrE'sL            zZipExtFile.seekcCs>|jrtdƒ‚|jst d¡‚|j|jt|jƒ|j }|S)Nztell on closed file.rW) r<r�r0r?rXr3r&r0r)r*)r…Zfileposrrrr]Ys  zZipExtFile.tell)NF)rÇ)r)rÇ)r)rrrrrIrQrYr†r7r“rArErGr>rMrNrHrPrrrEr]Ú __classcell__rrrUrr s*ÿ 3    # %$  2r cs@eZdZdd„Zedd„ƒZdd„Zdd„Z‡fd d „Z‡Z S) Ú _ZipWriteFilecCs8||_||_||_t|j|jƒ|_d|_d|_d|_ dSr) Ú_zinfoÚ_zip64Ú_zipfilerrhriÚ _compressorÚ _file_sizeÚ_compress_sizeÚ_crc)r…ÚzfrÅržrrrr†csÿz_ZipWriteFile.__init__cCs|jjSrâ)r^r<r«rrrr!msz_ZipWriteFile._fileobjcCsdS)NTrr«rrrÚwritableqsz_ZipWriteFile.writablecCs„|jrtdƒ‚t|ttfƒr&t|ƒ}nt|ƒ}|j}|j|7_t ||j ƒ|_ |j rt|j   |¡}|j t|ƒ7_ |j |¡|SrV)r<r�r´rÙrØr0Ú memoryviewÚnbytesr`rÑrbr_rírar!r)r…rXrfrrrrts   z_ZipWriteFile.writec sj|jr dS�zNtƒ ¡|jrR|j ¡}|jt|ƒ7_|j |¡|j|j _ n |j |j _ |j |j _ |j |j _|j jd@rÀ|jr†dnd}|j t |t|j j |j j |j j¡¡|j ¡|j_nn|jsê|j tkrØtdƒ‚|jtkrêtdƒ‚|j ¡|j_|j |j j¡|j |j  |j¡¡|j |jj¡|jj |j ¡|j |jj|j j<Wd|j_ n d|j_ 0dS)Nrzdd „Zd?d!d"œd#d$„Zd@d%d&„ZdAd'd(„ZdBd)d*„Zed+d,„ƒZd-d.„Zd/d0„ZdCd1d2„ZdDd3d4„Zd5d6„Z d7d8„Z!d9d:„Z"d;d<„Z#dS)Er ai Class with methods to open, read, write, close, list zip files. z = ZipFile(file, mode="r", compression=ZIP_STORED, allowZip64=True, compresslevel=None) file: Either the path to the file, or a file-like object. If it is a path, the file will be opened and closed by ZipFile. mode: The mode can be either read 'r', write 'w', exclusive create 'x', or append 'a'. compression: ZIP_STORED (no compression), ZIP_DEFLATED (requires zlib), ZIP_BZIP2 (requires bz2) or ZIP_LZMA (requires lzma). allowZip64: if True ZipFile will create files with ZIP64 extensions when needed, otherwise it will raise an exception when this would be necessary. compresslevel: None (default for the given compression type) or an integer specifying the level to pass to the compressor. When using ZIP_STORED or ZIP_LZMA this keyword has no effect. When using ZIP_DEFLATED integers 0 through 9 are accepted. When using ZIP_BZIP2 integers 1 through 9 are accepted. NÚrTr®c CsH|dvrtdƒ‚t|ƒ||_d|_d|_i|_g|_||_||_||_ d|_ d|_ ||_ t |tjƒrpt |¡}t |tƒräd|_||_ddd d dd d d œ}||}zt ||¡|_WqâtyÜ||vrÖ||}Yq¢‚Yqâ0qþq¢nd|_||_t|ddƒ|_d|_t ¡|_d|_d|_�z|dk�r2| ¡nê|dv�r¸d|_z|j  ¡|_!Wn0t"tf�y‚t#|jƒ|_d|_!d|_Yn40z|j $|j!¡Wnt"tf�y´d|_Yn0nd|dk�rz| ¡|j $|j!¡Wn4t%�y|j $dd¡d|_|j  ¡|_!Yn0ntdƒ‚Wn$|j} d|_| &| ¡‚Yn0dS)z]Open the ZIP file with mode read 'r', write 'w', exclusive create 'x', or append 'a'.)rlÚwÚxÚaz+ZipFile requires mode 'r', 'w', 'x', or 'a'FrNr-r?úw+búx+búr+bÚwbÚxb)rlrmrnrorrrprqrr-Trl)rmrnrorz"Mode must be 'r', 'w', 'x', or 'a')'r�rÚ _allowZip64Ú _didModifyÚdebugrjrirÿrr,rÞÚ_commentÚ_strict_timestampsr´r~rµr¶ÚstrÚ _filePassedrBr?rAr<r:ÚgetattrÚ _fileRefCntÚ threadingÚRLockrr0rÚ_RealGetContentsr]rhr5rrErÚ_fpclose) r…rr,rÿÚ allowZip64rr¯ZmodeDictrŽr<rrrr†Ñs†   ÿ          zZipFile.__init__cCs|Srârr«rrrÚ __enter__+szZipFile.__enter__cCs | ¡dSrâ©r)r…ÚtypeÚvalueÚ tracebackrrrÚ__exit__.szZipFile.__exit__cCs‚d|jj|jjfg}|jdurd|jr8| d|j¡n|jdurR| d|j¡| d|j¡n | d¡| d¡d |¡S)Nr:z file=%rz filename=%rz mode=%rr;rˆr‰) rŠrrr<r{r1rBr,r2r=rrrr“1sÿ    zZipFile.__repr__c CsÊ|j}z t|ƒ}Wnty,tdƒ‚Yn0|s:tdƒ‚|jdkrLt|ƒ|t}|t}|t|_ |t ||}|jdkr–||}td|||ƒ|||_ |  |j d¡|  |¡}t |¡}d}||k�r˜|  t¡} t| ƒtkrîtdƒ‚t t| ¡} | ttk�rtdƒ‚|jdk�r$t| ƒ|  | t¡} | d} | d @�rP|  d ¡} n |  d ¡} t| ƒ} |  | t¡| _|  | t¡| _| t| _| dd …\ | _ | _!| _"| _#| _$| _%} }| _&| _'| _(| j"t)k�rÞt*d | j"dƒ‚| dd…\| _+| _,| _-| | _.|d?d|d?d@|d@| d?| d?d@| d@df| _/|  0¡| j|| _|j1 2| ¡| |j3| j4<|t| t| t| t}|jdkrÆtd|ƒqÆ|j }t5|j1dd„dd�D]}||_6|j}�q²dS)z/Read in the table of contents for the ZIP file.zFile is not a zip filerrzgiven, inferred, offsetrzTruncated central directoryz&Bad magic number for central directoryr!r¨r§Úcp437rzzip file version %.1fr%r(r+r$ryr±r&rÚtotalcSs|jSrâ)rq)rÅrrrÚ‹r-z*ZipFile._RealGetContents..T)ÚkeyÚreverseN)7r<r9r:rrwÚprintrRrSÚ _ECD_COMMENTrxrTrhrEr>r?ÚBytesIOÚsizeCentralDirr0rFr/ÚstructCentralDirÚ _CD_SIGNATUREÚstringCentralDirÚ_CD_FILENAME_LENGTHÚdecoder Ú_CD_EXTRA_FIELD_LENGTHr3Ú_CD_COMMENT_LENGTHreÚ_CD_LOCAL_HEADER_OFFSETrqrZrjrkrlrmrhrrrsrtÚMAX_EXTRACT_VERSIONrþrnrorprurgr­rir1rjrBÚsortedrv)r…r<rWZsize_cdZ offset_cdÚconcatZinferredrXrŠÚcentdirrBÚflagsrnÚtÚdZ end_offsetrÅrrrr€?sŒ                  þ   ÿÿ   ÿþ  þ zZipFile._RealGetContentscCsdd„|jDƒS)z+Return a list of file names in the archive.cSsg|] }|j‘qSrrÈ)Ú.0rXrrrÚ ’r-z$ZipFile.namelist..©rir«rrrÚnamelist�szZipFile.namelistcCs|jS)zJReturn a list of class ZipInfo instances for files in the archive.r£r«rrrÚinfolist”szZipFile.infolistcCsLtdd|d�|jD]0}d|jdd…}td|j||jf|d�qdS)z+Print a table of contents for the zip file.z%-46s %19s %12s)z File Namez Modified ZSize)rz%d-%02d-%02d %02d:%02d:%02dNr"z %-46s %s %12d)rŽrirgrBrt)r…rrÅÚdaterrrÚprintdir™sÿ ÿzZipFile.printdirc Cspd}|jD]`}z>| |jd¡�}| |¡r,q Wdƒn1s@0YWq tyh|jYS0q dS)z%Read all the files and check the CRC.irlN)rirArBr>r)r…Z chunk_sizerÅÚfrrrÚtestzip¢s  $ zZipFile.testzipcCs$|j |¡}|dur td|ƒ‚|S)z,Return the instance of ZipInfo given 'name'.Nz(There is no item named %r in the archive)rjrŒÚKeyError)r…r-ÚinforrrÚgetinfo¯s  ÿzZipFile.getinfocCs6|r t|tƒs tdt|ƒjƒ‚|r,||_nd|_dS)z)Set default password for encrypted files.úpwd: expected bytes, got %sN)r´rÙÚ TypeErrorr…rrÞ)r…rÞrrrÚ setpassword¸s zZipFile.setpasswordcCs|jS)z.The comment text associated with the ZIP file.)rxr«rrrreÁszZipFile.commentcCs^t|tƒstdt|ƒjƒ‚t|ƒtkrNddl}|jdtdd�|dt…}||_ d|_ dS)Nzcomment: expected bytes, got %srz3Archive comment is too long; truncating to %d bytesr©Ú stacklevelT) r´rÙr®r…rr0ÚZIP_MAX_COMMENTÚwarningsÚwarnrxrv)r…rer³rrrreÆs  ÿÿ cCs:| |d|¡�}| ¡WdƒS1s,0YdS)zReturn file bytes for name.rlN©rAr>)r…r-rÞr<rrrr>Ósz ZipFile.readF©Ú force_zip64c sJ|dvrtdƒ‚|r0t|tƒs0tdt|ƒjƒ‚|rD|dkrDtdƒ‚ˆjsRtdƒ‚t|tƒrb|}n,|dkr„t|ƒ}ˆj|_ ˆj |_ n ˆ  |¡}|dkr¤ˆj ||d�Sˆjr²tdƒ‚ˆjd 7_tˆj|jˆjˆj‡fd d „ƒ}�zL| t¡}t|ƒtk�rtd ƒ‚t t|¡}|ttk�r&td ƒ‚| |t¡}|t�rL| |t¡|jd@�r`t dƒ‚|jd@�rtt dƒ‚|t!d@�rŽ| "d¡} n | "d¡} | |j#k�r¶td|j#|fƒ‚|j$du�rê| %¡|j&|j$k�rêtd|j#›d�ƒ‚|jd @} | �r|�sˆj'}|�st(d|ƒ‚nd}t)||||dƒWS| *¡‚Yn0dS)auReturn file-like object for 'name'. name is a string for the file name within the ZIP file, or a ZipInfo object. mode should be 'r' to read a file already in the ZIP file, or 'w' to write to a file newly added to the archive. pwd is the password to decrypt files (only used for reading). When writing, if the file size is not known in advance but may exceed 2 GiB, pass force_zip64 to use the ZIP64 format, which can handle large files. If the size is known in advance, it is best to pass a ZipInfo instance for name, with zinfo.file_size set. >rmrlzopen() requires mode "r" or "w"r­rmz'pwd is only supported for reading filesz2Attempt to use ZIP archive that was already closedr¶rrcsˆjSrâ)rrr«rrr‹ r-zZipFile.open..zTruncated file headerz Bad magic number for file headeré z$compressed patched data (flag bit 5)é@zstrong encryption (flag bit 6)r¨r§r‰z/File name in directory %r and header %r differ.NzOverlapped entries: z (possible zip bomb)z6File %r is encrypted, password required for extractionT)+r�r´rÙr®r…rr<r rÿrhrrir¬Ú_open_to_writerr}r rqr�rr>ÚsizeFileHeaderr0rrFr/rœÚ _FH_SIGNATUREr�Ú_FH_FILENAME_LENGTHÚ_FH_EXTRA_FIELD_LENGTHrmrþÚ_FH_GENERAL_PURPOSE_FLAG_BITSr–rfrvr]rsrÞrür r) r…r-r,rÞr·rÅZzef_fileZfheaderÚfnameZ fname_strZ is_encryptedrr«rrAØs‚ ÿ    ÿ        ÿÿ ÿ ÿz ZipFile.opencCsÖ|r|jstdƒ‚|jr tdƒ‚d|_d|_d|_|jtkrJ|jdO_|js^|jdO_|j sjd|_ |jo€|p€|j dt k}|jr–|j   |j¡|j  ¡|_| |¡d|_|j  | |¡¡d|_t|||ƒS) NzHforce_zip64 is True, but allowZip64 was False when opening the ZIP file.zzCan't write to the ZIP file while there is another write handle open on it. Close the first handle before opening another.rrré€gÍÌÌÌÌÌð?T)rur�rrsrrrmrhrr0rprtr•r<rErhr]rqÚ _writecheckrvrr¥r[)r…rÅr·ržrrrrº>s4 ÿ ÿ  zZipFile._open_to_writecCs*|durt ¡}n t |¡}| |||¡S)a#Extract a member from the archive to the current working directory, using its full name. Its file information is extracted as accurately as possible. `member' may be a filename or a ZipInfo object. You can specify a different directory using `path'. N)r~Úgetcwdr¶Ú_extract_member)r…Úmemberr¼rÞrrrÚextractgs  zZipFile.extractcCsH|dur| ¡}|dur"t ¡}n t |¡}|D]}| |||¡q0dS)zõExtract all members from the archive to the current working directory. `path' specifies a different directory to extract to. `members' is optional and must be a subset of the list returned by namelist(). N)r¤r~rÃr¶rÄ)r…r¼ÚmembersrÞr8rrrÚ extractallts  zZipFile.extractallcCs^|j}|s(d}t |dt|ƒ¡}||_| |¡}dd„| |¡Dƒ}| dd„|Dƒ¡}|S)z;Replace bad characters and remove trailing dots from parts.z:<>|"?*Ú_css|]}| d¡VqdS)Ú.N)Úrstrip©r¡rnrrrÚ �r-z1ZipFile._sanitize_windows_name..css|]}|r|VqdSrârrÌrrrrÍ‘r-)Ú!_windows_illegal_name_trans_tablerzÚ maketransr0Ú translateÚsplitr2)rÁrÂÚpathsepÚtableZillegalrrrÚ_sanitize_windows_name…s zZipFile._sanitize_windows_namec sxt|tƒs| |¡}|j dtjj¡}tjjrB| tjjtjj¡}tj  |¡d}dtjj tjj f‰tjj  ‡fdd„|  tjj¡Dƒ¡}tjjdkr¦| |tjj¡}tj  ||¡}tj |¡}tj |¡}|rætj |¡sæt |¡| ¡�r tj |¡�st |¡|S|j||d��H}t|dƒ�}t ||¡Wd ƒn1�sJ0YWd ƒn1�sj0Y|S) zbExtract the ZipInfo object 'member' to a physical file on the path targetpath. rzrr‰c3s|]}|ˆvr|VqdSrârrÌ©Zinvalid_path_partsrrrÍ¥sÿz*ZipFile._extract_member..ú\©rÞrsN)r´r r¬rBr€r~r¼rr¿r¾ÚcurdirÚpardirr2rÑrÔr½ÚdirnameÚexistsÚmakedirsr�r’ÚmkdirrAÚshutilÚ copyfileobj)r…rÅÚ targetpathrÞrÂZ upperdirsÚsourceÚtargetrrÕrrÄ”s2  &      ÿLzZipFile._extract_membercCs¢|j|jvr(ddl}|jd|jdd�|jdvr:tdƒ‚|jsHtdƒ‚t|jƒ|j sžd}t |j ƒt krpd }n|j tkr€d }n|jtkrŽd }|ržt|d ƒ‚dS) z6Check for errors before writing a file to the archive.rNzDuplicate name: %rrr°©rmrnroz&write() requires mode 'w', 'x', or 'a'z4Attempt to write ZIP archive that was already closedú Files countZFilesizez Zipfile sizeú would require ZIP64 extensions)rBrjr³r´r,r�r<rrhrur0riÚZIP_FILECOUNT_LIMITrtr•rqr )r…rÅr³Úrequires_zip64rrrr¾s,  ÿ   ÿzZipFile._writecheckc Cs’|jstdƒ‚|jrtdƒ‚tj|||jd�}| ¡rDd|_d|_n0|durT||_ n|j |_ |durl||_ n|j |_ | ¡�r&|j �Ž|jrš|j |j¡|j ¡|_|j tkr¾|jdO_| |¡d|_|j |¡||j|j<|j | d¡¡|j ¡|_Wdƒn1�s0Ynht|d ƒ�L}| |d ¡�}t ||d ¡Wdƒn1�sd0YWdƒn1�s„0YdS) zLPut the bytes from filename into the archive under the name arcname.ú7Attempt to write to ZIP archive that was already closedz>Can't write to ZIP archive while an open writing handle existsr®rNrTFr?rmi ) r<r�rr rÆryr�rsrrrhrÿrirrr0rErhr]rqrrmrÂrvrir1rjrBrr¥rArÞrß)r…rBrÂrhrrÅÚsrcÚdestrrrrÕsFÿÿÿ      .z ZipFile.writec Cs"t|tƒr| d¡}t|tƒsxt|t t ¡¡dd…d�}|j|_|j|_ |j ddkrpd|_ |j dO_ q|d |_ n|}|j sŠt d ƒ‚|jr˜t d ƒ‚|dur¦||_|dur´||_ t|ƒ|_|j�H|j|d d ��}| |¡Wdƒn1sô0YWdƒn1�s0YdS)aWrite a file into the archive. The contents is 'data', which may be either a 'str' or a 'bytes' instance; if it is a 'str', it is encoded as UTF-8 first. 'zinfo_or_arcname' is either a ZipInfo instance or the name of the file in the archive.r§Nr")rBrgrÇrziýAr)rÁrèz?Can't write to ZIP archive while an open writing handle exists.rm)r,)r´rzr©r r¹rºrÿrhrrirBrpr<r�rr0rtrrAr)r…Zzinfo_or_arcnamerXrhrrÅrêrrrÚwritestrs:   ÿÿÿ zZipFile.writestrcCs | ¡dS)z2Call the "close()" method in case the user forgot.Nr„r«rrrÚ__del__/szZipFile.__del__c Cs¦|jdurdS|jrtdƒ‚zl|jdvrp|jrp|j�,|jrJ|j |j¡|  ¡Wdƒn1sf0YW|j}d|_|  |¡n|j}d|_|  |¡0dS)zOClose the file, and for mode 'w', 'x' and 'a' write the ending records.NzvCan't close the ZIP file while there is an open writing handle on it. Close the writing handle before closing the zip.rã) r<rr�r,rvrr0rErhÚ_write_end_recordr�rrrrr3s  ( þz ZipFile.closecCs|jD�]Ô}|j}|ddd>|dd>B|dB}|dd>|d d>B|ddB}g}|jtksr|jtkr”| |j¡| |j¡d }d }n |j}|j}|jtkr¼| |j¡d }n|j}|j} d} |�rt| d ƒ} t j d d t |ƒddt |ƒg|¢RŽ| } t } |j tk�r&tt| ƒ} n|j tk�rrArºrÆrÈrÊrÔrÄrÂrrërìrrír�rrrrr ·sPÿÿ ZQ      f )  *ÿ 2ÿ )^r c@s4eZdZdZdeddfdd„Zd d d „Zd d „ZdS)r zDClass to create ZIP archives with Python library files and packages.rlTrÇcCstj|||||d�||_dS)N)r,rÿr‚)r r†Ú _optimize)r…rr,rÿr‚Úoptimizerrrr†±s ÿzPyZipFile.__init__r‰NcCs¼t |¡}|rD||ƒsD|jr@tj |¡r,dnd}td||fƒdStj |¡\}}tj |¡�rhtj |d¡}tj |¡�r¸|r�d||f}n|}|jr¨td|d|ƒ|  |d d …|¡\}} |jrÐtd | ƒ|  || ¡t t  |¡ƒ} |   d¡| D]¼} tj || ¡} tj | ¡\} }tj | ¡�rRtj tj | d¡¡�r´|j| ||d �qø|d krø|�r~|| ƒ�s~|jrøtd| ƒqø|  | d d …|¡\}} |j�r¨td | ƒ|  || ¡qøn®|j�rÊtd|ƒt t  |¡ƒD]Œ} tj || ¡} tj | ¡\} }|d k�rØ|�r,|| ƒ�s,|j�rØtd| ƒ�qØ|  | d d …|¡\}} |j�rVtd | ƒ|  || ¡�qØnP|d d…d k�r‚tdƒ‚|  |d d …|¡\}} |j�r¬td| ƒ|  || ¡dS)a¦Add all files from "pathname" to the ZIP archive. If pathname is a package directory, search the directory and all package subdirectories recursively for all *.py and enter the modules into the archive. If pathname is a plain directory, listdir *.py and enter all modules. Else, pathname must be a Python *.py file and the module will be put into the archive. Added modules are always module.pyc. This method will compile the module.py into module.pyc if necessary. If filterfunc(pathname) is given, it is called with every argument. When it is False, the file or directory is skipped. r¼rz%s %r skipped by filterfuncNz __init__.pyú%s/%szAdding package inÚasréýÿÿÿZAdding)Ú filterfuncú.pyzfile %r skipped by filterfunczAdding files from directoryz.Files added with writepy() must end with ".py"z Adding file)r~r¶rwr¼r’rŽrÑr2ÚisfileÚ _get_codenamerr›ÚlistdirÚremoveÚsplitextÚwritepyrü)r…ÚpathnameÚbasenameröZlabelÚdirr-ZinitnamerÀrÂÚdirlistrBr¼ÚrootÚextrrrrý·s€     ÿ ÿ    ÿ ÿ zPyZipFile.writepyc sd‡fdd„ }|d}|d}tjj|dd�}tjj|dd�}tjj|d d�}ˆjdk�r\tj |¡rˆt |¡jt |¡jkrˆ|} } nÒtj |¡r¶t |¡jt |¡jkr¶|} |} n¤tj |¡rät |¡jt |¡jkrä|} |} nvtj |¡�rt |¡jt |¡jk�r|} |} nD||ƒ�rRt j j d k�r4|} nt j j dk�rH|} n|} |} n|} } n’ˆjd k�rr|} |} n<|} ˆjdk�rˆ|} n&ˆjd k�rš|} nd   ˆj¡} t | ƒ‚tj | ¡�rÖt | ¡jt |¡jk�sî||ˆjd ��sî|} } tj | ¡d} |�rd || f} | | fS)aReturn (filename, archivename) for the path. Given a module name path, return the correct file path and archive name, compiling if necessary. For example, given /python/lib/string, return (/python/lib/string.pyc, string). rÇc sdddl}ˆjrtd|ƒz|j|d|d�Wn2|jy^}zt|jƒWYd}~dSd}~00dS)NrZ CompilingT)ÚdoraiseròF)Ú py_compilerwrŽÚcompileÚPyCompileErrorÚmsg)rròrÚerrr«rrÚ_compiles  z)PyZipFile._get_codename.._compiler÷z.pycr‰)Ú optimizationrrrz"invalid value for 'optimize': {!r})ròró)rÇ)Ú importlibÚutilÚcache_from_sourcerñr~r¼rør�r»r‚ržròÚformatr�rÑ) r…rþrÿr Zfile_pyZfile_pycZ pycache_opt0Z pycache_opt1Z pycache_opt2rÂrÀrZ archivenamerr«rrù sj   ÿ  ÿ ÿÿ      ÿ zPyZipFile._get_codename)r‰N)rrrrrr†rýrùrrrrr ®s ÿ  Rr cCst t|ƒdd¡S)a2 Given a path with elements separated by posixpath.sep, generate all parents of that path. >>> list(_parents('b/d')) ['b'] >>> list(_parents('/b/d/')) ['/b'] >>> list(_parents('b/d/f/')) ['b/d', 'b'] >>> list(_parents('b')) [] >>> list(_parents('')) [] rN)Ú itertoolsÚisliceÚ _ancestry)r¼rrrÚ_parents\srccs2| tj¡}| tj¡r.|Vt |¡\}}q dS)aÔ Given a path with elements separated by posixpath.sep, generate all elements of that path. >>> list(_ancestry('b/d')) ['b/d', 'b'] >>> list(_ancestry('/b/d/')) ['/b/d', '/b'] >>> list(_ancestry('b/d/f/')) ['b/d/f', 'b/d', 'b'] >>> list(_ancestry('b')) ['b'] >>> list(_ancestry('')) [] Multiple separators are treated like a single. >>> list(_ancestry('//b//d///f//')) ['//b//d///f', '//b//d', '//b'] N)rËÚ posixpathrrÑ)r¼Útailrrrros  rcCst t|ƒj|¡S)zZ Return items in minuend not in subtrahend, retaining order with O(1) lookup. )rÚ filterfalseÚsetÚ __contains__)ZminuendZ subtrahendrrrÚ _differenceŽsrcsHeZdZdZedd„ƒZ‡fdd„Zdd„Zdd „Ze d d „ƒZ ‡Z S) Ú CompleteDirszk A ZipFile subclass that ensures that implied directories are always included in the namelist. cCs.tj tt|ƒ¡}dd„|Dƒ}tt||ƒƒS)Ncss|]}|tjVqdSrâ)rr)r¡rßrrrrÍŸr-z-CompleteDirs._implied_dirs..)rÚchainÚ from_iterablerÝrÚ_deduper)ÚnamesÚparentsZas_dirsrrrÚ _implied_dirsœszCompleteDirs._implied_dirscs tt|ƒ ¡}|t| |¡ƒSrâ)rTrr¤rar )r…rrUrrr¤¢szCompleteDirs.namelistcCs t| ¡ƒSrâ)rr¤r«rrrÚ _name_set¦szCompleteDirs._name_setcCs,| ¡}|d}||vo||v}|r(|S|S)zx If the name represents a directory, return that name as a directory (with the trailing slash). rz)r!)r…r-rrÚZ dir_matchrrrÚ resolve_dir©szCompleteDirs.resolve_dircCsNt|tƒr|St|tƒs ||ƒSd|jvr.t}| |¡}t|ƒ t|ƒ¡|S)zl Given a source (filename or zipfile), return an appropriate CompleteDirs subclass. rl)r´rr r,Ú__new__ÚvarsÚupdate)rÁráÚresrrrÚmake³s    zCompleteDirs.make) rrrrÚ staticmethodr r¤r!r"rÊr'rZrrrUrr–s   rcs,eZdZdZ‡fdd„Z‡fdd„Z‡ZS)Ú FastLookupzV ZipFile subclass to ensure implicit dirs exist and are resolved rapidly. csFt t¡�|jWdƒS1s&0Ytt|ƒ ¡|_|jSrâ)Ú contextlibÚsuppressr5Z_FastLookup__namesrTr)r¤r«rUrrr¤Ís $zFastLookup.namelistcsFt t¡�|jWdƒS1s&0Ytt|ƒ ¡|_|jSrâ)r*r+r5Z_FastLookup__lookuprTr)r!r«rUrrr!Ós $zFastLookup._name_set)rrrrr¤r!rZrrrUrr)Ès r)c@sœeZdZdZdZd$dd„Zd%dd„Zed d „ƒZd d „Z d d„Z dd„Z dd„Z dd„Z dd„Zdd„Zdd„Zdd„Zdd„Zdd „ZeZed!d"„ƒZd#S)&ru’ A pathlib-compatible interface for zip files. Consider a zip file with this structure:: . ├── a.txt └── b ├── c.txt └── d └── e.txt >>> data = io.BytesIO() >>> zf = ZipFile(data, 'w') >>> zf.writestr('a.txt', 'content of a') >>> zf.writestr('b/c.txt', 'content of c') >>> zf.writestr('b/d/e.txt', 'content of e') >>> zf.filename = 'abcde.zip' Path accepts the zipfile object itself or a filename >>> root = Path(zf) From there, several path operations are available. Directory iteration (including the zip file itself): >>> a, b = root.iterdir() >>> a Path('abcde.zip', 'a.txt') >>> b Path('abcde.zip', 'b/') name property: >>> b.name 'b' join with divide operator: >>> c = b / 'c.txt' >>> c Path('abcde.zip', 'b/c.txt') >>> c.name 'c.txt' Read text: >>> c.read_text() 'content of c' existence: >>> c.exists() True >>> (b / 'missing.txt').exists() False Coercion to string: >>> str(c) 'abcde.zip/b/c.txt' z>{self.__class__.__name__}({self.root.filename!r}, {self.at!r})r‰cCst |¡|_||_dSrâ)r)r'rÚat)r…rr,rrrr† s z Path.__init__rlcOs\| dd¡}|d}|jj|j||d�}d|vrD|s8|r@tdƒ‚|Stj|g|¢Ri|¤ŽS)zª Open this entry as text or binary following the semantics of ``pathlib.Path.open()`` by passing arguments through to io.TextIOWrapper(). rÞNrr×Úbz*encoding args invalid for binary operation)ÚpoprrAr,r�r?Ú TextIOWrapper)r…r,ÚargsÚkwargsrÞZzip_modeÚstreamrrrrA! s z Path.opencCst |j d¡¡S©Nrz)rrÿr,rËr«rrrr-0 sz Path.namecOsD|jdg|¢Ri|¤Ž�}| ¡WdƒS1s60YdS)Nrlrµ)r…r0r1ÚstrmrrrÚ read_text4 szPath.read_textcCs6| d¡�}| ¡WdƒS1s(0YdS)Nr?rµ)r…r4rrrÚ read_bytes8 s zPath.read_bytescCst |j d¡¡|j d¡kSr3)rrÚr,rË)r…r¼rrrÚ _is_child< szPath._is_childcCs t|j|ƒSrâ)rr)r…r,rrrÚ_next? sz Path._nextcCs|j p|j d¡Sr3)r,Úendswithr«rrrr�B sz Path.is_dircCs | ¡ Srâ)r�r«rrrÚis_fileE sz Path.is_filecCs|j|j ¡vSrâ)r,rr!r«rrrrÛH sz Path.existscCs.| ¡stdƒ‚t|j|j ¡ƒ}t|j|ƒS)NzCan't listdir a file)r�r�rÝr8rr¤Úfilterr7)r…ZsubsrrrÚiterdirK sz Path.iterdircCst |jj|j¡Srâ)rr2rrBr,r«rrrÚ__str__Q sz Path.__str__cCs|jj|d�S)Nr«)Ú _Path__reprrr«rrrr“T sz Path.__repr__cCs t |j|¡}| |j |¡¡Srâ)rr2r,r8rr")r…ÚaddÚnextrrrÚjoinpathW sz Path.joinpathcCs(t |j d¡¡}|r|d7}| |¡Sr3)rrÚr,rËr8)r…Z parent_atrrrÚparent] sz Path.parentN)r‰)rl)rrrrr>r†rArkr-r5r6r7r8r�r:rÛr<r=r“rAÚ __truediv__rBrrrrrÚs(@   rc s ddl}d}|j|d�}|jdd�}|jdddd d �|jd d d ddd�|jdddddd�|jddddd �| |¡}|jdurÚ|j}t|dƒ�}| ¡}Wdƒn1s²0Y|rÎtd  |¡ƒtdƒ�nB|j du�r"|j }t|dƒ�}|  ¡Wdƒn1�s0Ynú|j du�rp|j \}}t|dƒ�}|  |¡Wdƒn1�sd0Yn¬|jdu�r|j d¡} |j} ‡fdd„‰t| dƒ�f}| D]P} tj | ¡} | �sÔtj tj | ¡¡} | dtjtjfv�rìd} ˆ|| | ƒ�qªWdƒn1�s0YdS) Nrz3A simple command-line interface for zipfile module.)Ú descriptionT)Úrequiredz-lz--listú zShow listing of a zipfile)ÚmetavarÚhelpz-ez --extractr)rFz zExtract zipfile into target dir)ÚnargsrGrHz-cz--createú+)zzzCreate zipfile from sourcesz-tz--testzTest if a zipfile is validrlz.The following enclosed file is corrupted: {!r}z Done testingcsptj |¡r| ||t¡nPtj |¡rl|r8| ||¡tt |¡ƒD]$}ˆ|tj ||¡tj ||¡ƒqFdSrâ) r~r¼rørrr’r›rúr2)rcr¼ÚzippathZnm©ÚaddToZiprrrM� s   ÿzmain..addToZiprmr‰)ÚargparseÚArgumentParserÚadd_mutually_exclusive_groupÚ add_argumentÚ parse_argsÚtestr r©rŽrrar§rÆrÈZcreater.r~r¼rÿrÚrØrÙ) r0rNrDÚparserÚgrouprércZbadfilerØZzip_nameÚfilesr¼rKrrLrÚmaine s\   ÿ þ þ ÿ   &   *   ,    rWÚ__main__)N)N)ŽrZbinasciiÚimportlib.utilr r?rr~rrÞr�rFr‚r~r¹r*rûrÑÚ ImportErrorrýrçÚ__all__Ú Exceptionrr rrr•rær²rrrrr„r˜r™ršršr`r_r—r^rMrNrOrPrQrRrSrdr�rTr’r”r‘r“Z_CD_CREATE_VERSIONZ_CD_CREATE_SYSTEMZ_CD_EXTRACT_VERSIONZ_CD_EXTRACT_SYSTEMZ _CD_FLAG_BITSZ_CD_COMPRESS_TYPEZ_CD_TIMEZ_CD_DATEZ_CD_CRCZ_CD_COMPRESSED_SIZEZ_CD_UNCOMPRESSED_SIZEr•r—r˜Z_CD_DISK_NUMBER_STARTZ_CD_INTERNAL_FILE_ATTRIBUTESZ_CD_EXTERNAL_FILE_ATTRIBUTESr™rœr�r»r¼Z_FH_EXTRACT_VERSIONZ_FH_EXTRACT_SYSTEMr¿Z_FH_COMPRESSION_METHODZ_FH_LAST_MOD_TIMEZ_FH_LAST_MOD_DATEZ_FH_CRCZ_FH_COMPRESSED_SIZEZ_FH_UNCOMPRESSED_SIZEr½r¾rGrHrDrLrKrIZ_CD64_SIGNATUREZ_CD64_DIRECTORY_RECSIZEZ_CD64_CREATE_VERSIONZ_CD64_EXTRACT_VERSIONZ_CD64_DISK_NUMBERZ_CD64_DISK_NUMBER_STARTZ_CD64_NUMBER_ENTRIES_THIS_DISKZ_CD64_NUMBER_ENTRIES_TOTALZ_CD64_DIRECTORY_SIZEZ_CD64_OFFSET_START_CENTDIRrgÚStructr.r8r=r r[r9Úobjectr rÜrÍràrárïr‹rrr r rr@r r[r r rrÚdictÚfromkeysrrrr)rrWrrrrrÚsR                <<^&ï (KU|/2 =