§
    ¸)ýfÅÜ  ã                   ó°  — d Z ddlZddlZddlZddlZddlZddlZ	 ddlZ[dZn# e	$ r dZY nw xY w	 ddl
Z
[
dZn# e	$ r dZY nw xY w	 ddlZ[dZn# e	$ r dZY nw xY wej        dk    ZdxZZej        dk    rddlZnerddlZerdndZ eed	¦  «        oej                             d
¦  «        aeo eed¦  «        ZdZg d¢Z G d„ de¦  «        Z G d„ de¦  «        Z G d„ de¦  «        Z G d„ de¦  «        Z G d„ de¦  «        Z G d„ de ¦  «        Z! G d„ de ¦  «        Z"d„ Z#d„ Z$efd„Z%dud„Z&d „ Z'd!„ Z(d"„ Z)dd#œd$„Z*dd#œd%„Z+ eed&¦  «        rdd#œd'„Z,nd(„ Z,dd#œd)„Z-dd#œd*„Z.dd#œd+„Z/d,„ Z0	 dvd-„Z1dde/ddfd.„Z2 eej3        d/¦  «        rd0„ Z4d1„ Z5nd2„ Z4d3„ Z5d4„ Z6d5„ Z7ej8        ej        ej9        ej:        hej;        k    oej<        ej=        v oej        ej>        v Z?dwdd6œd7„Z@e?e@_A        d8„ ZBe/fd9„ZCd:„ ZDd;„ ZEd<„ ZFd=„ ZG	 	 dxd?„ZH	 	 dyd@„ZIdAeHdBgdCdfiZJereHdDgdEdfeJdF<   eIg dGdfeJdH<   er
eHdIgdJdfeJdK<   er
eHdLgdMdfeJdN<   dO„ ZKdzdQ„ZLdR„ ZM	 	 d{dS„ZNdT„ ZOdU„ ZP	 	 dzdV„ZQdW„ ZRdX„ ZSdY„ ZTddZœd[„ZUd\geUg dCfd]geTg dGfd^œZVerd_d`geUg dEfeVdF<   erdadbgeUg dJfeVdK<   erdcddgeUg dMfeVdN<   de„ ZWd|ddZœdf„ZX eedg¦  «        rNe Y                    dh¦  «          ejZ        didj¦  «        Z[dke[j\        _         dle[j]        _         dme[j^        _         dn„ Z_n+er)e Y                    dh¦  «          ejZ        didj¦  «        Z[do„ Z_d|dp„Z`d}dr„Zads„ Zbejc        ejd        z  dfdt„ZedS )~z—Utility functions for copying and archiving files and directory trees.

XXX The functions here don't copy the resource fork or other metadata on Mac.

é    NTFÚntÚposixi   i   ÚsendfileÚlinuxÚ
_fcopyfilez%.COM;.EXE;.BAT;.CMD;.VBS;.JS;.WS;.MSC)ÚcopyfileobjÚcopyfileÚcopymodeÚcopystatÚcopyÚcopy2ÚcopytreeÚmoveÚrmtreeÚErrorÚSpecialFileErrorÚ	ExecErrorÚmake_archiveÚget_archive_formatsÚregister_archive_formatÚunregister_archive_formatÚget_unpack_formatsÚregister_unpack_formatÚunregister_unpack_formatÚunpack_archiveÚignore_patternsÚchownÚwhichÚget_terminal_sizeÚSameFileErrorc                   ó   — e Zd ZdS )r   N)Ú__name__Ú
__module__Ú__qualname__© ó    úR/home/blender/git/blender-v430/install_release/4.3/python/lib/python3.11/shutil.pyr   r   =   s   € € € € € Ø€Dr&   r   c                   ó   — e Zd ZdZdS )r    z5Raised when source and destination are the same file.N©r"   r#   r$   Ú__doc__r%   r&   r'   r    r    @   s   € € € € € Ø?Ð?Ð?Ð?r&   r    c                   ó   — e Zd ZdZdS )r   z|Raised when trying to do a kind of operation (e.g. copying) which is
    not supported on a special file (e.g. a named pipe)Nr)   r%   r&   r'   r   r   C   s   € € € € € ð;ð ;ð ;ð ;r&   r   c                   ó   — e Zd ZdZdS )r   z+Raised when a command could not be executedNr)   r%   r&   r'   r   r   G   s   € € € € € Ø5Ð5Ð5Ð5r&   r   c                   ó   — e Zd ZdZdS )Ú	ReadErrorz%Raised when an archive cannot be readNr)   r%   r&   r'   r.   r.   J   s   € € € € € Ø/Ð/Ð/Ð/r&   r.   c                   ó   — e Zd ZdZdS )ÚRegistryErrorzVRaised when a registry operation with the archiving
    and unpacking registries failsNr)   r%   r&   r'   r0   r0   M   s   € € € € € ð&ð &ð &ð &r&   r0   c                   ó   — e Zd ZdZdS )Ú_GiveupOnFastCopyzuRaised as a signal to fallback on using raw read()/write()
    file copy when fast-copy functions fail to do so.
    Nr)   r%   r&   r'   r2   r2   Q   s   € € € € € ðð ð ð r&   r2   c                 ó€  — 	 |                       ¦   «         }|                      ¦   «         }n!# t          $ r}t          |¦  «        ‚d}~ww xY w	 t          j        |||¦  «         dS # t
          $ rN}| j        |_        |j        |_        |j	        t          j
        t          j        hv rt          |¦  «        ‚|d‚d}~ww xY w)zhCopy a regular file content or metadata by using high-performance
    fcopyfile(3) syscall (macOS).
    N)ÚfilenoÚ	Exceptionr2   r   r   ÚOSErrorÚnameÚfilenameÚ	filename2ÚerrnoÚEINVALÚENOTSUP)ÚfsrcÚfdstÚflagsÚinfdÚoutfdÚerrs         r'   Ú_fastcopy_fcopyfilerC   V   sÍ   € ð%Ø�{Š{‰}Œ}ˆØ—’‘”ˆˆøÝð %ð %ð %Ý Ñ$Ô$Ð$øøøøð%øøøð ÝÔ˜˜u eÑ,Ô,Ð,Ð,Ð,øÝð  ð  ð  Ø”yˆŒØœ	ˆŒØŒ9�œ¥u¤}Ð5Ð5Ð5Ý# CÑ(Ô(Ð(à˜4Ðøøøøð øøøs-   ‚(+ «
A	µAÁA	ÁA% Á%
B=Á/A	B8Â8B=c                 óè  — 	 |                       ¦   «         }|                      ¦   «         }n!# t          $ r}t          |¦  «        ‚d}~ww xY w	 t          t	          j        |¦  «        j        d¦  «        }n# t          $ r d}Y nw xY wt          j	        dk     rt          |d¦  «        }d}	 	 t	          j        ||||¦  «        }|dk    rdS ||z  }n£# t          $ r–}| j        |_        |j        |_        |j        t          j        k    rdat          |¦  «        ‚|j        t          j        k    r|d‚|dk    r3t	          j        |dt          j        ¦  «        dk    rt          |¦  «        ‚|‚d}~ww xY wŒÊ)	z˜Copy data from one regular mmap-like fd to another by using
    high-performance sendfile(2) syscall.
    This should work on Linux >= 2.6.33 only.
    Ni  € i   l        i   @r   TF)r4   r5   r2   ÚmaxÚosÚfstatÚst_sizer6   ÚsysÚmaxsizeÚminr   r7   r8   r9   r:   ÚENOTSOCKÚ_USE_CP_SENDFILEÚENOSPCÚlseekÚSEEK_CUR)r=   r>   r@   rA   rB   Ú	blocksizeÚoffsetÚsents           r'   Ú_fastcopy_sendfilerT   j   sž  € ð%Ø�{Š{‰}Œ}ˆØ—’‘”ˆˆøÝð %ð %ð %Ý Ñ$Ô$Ð$øøøøð%øøøðÝ�œ ™œÔ.°Ñ8Ô8ˆ	ˆ	øÝð ð ð Øˆ	ˆ	ˆ	ðøøøõ „{�WÒÐÝ˜	 7Ñ+Ô+ˆ	à€Fðð	Ý”;˜u d¨F°IÑ>Ô>ˆDð, �qŠyˆyØ�Ø�d‰NˆFˆFøõ/ ð 	ð 	ð 	àœ9ˆCŒLØ œIˆCŒMàŒy�EœNÒ*Ð*ð $)Ð Ý'¨Ñ,Ô,Ð,àŒy�EœLÒ(Ð(Ø˜tÐ#ð ˜Š{ˆ{�rœx¨¨qµ"´+Ñ>Ô>À!ÒCÐCÝ'¨Ñ,Ô,Ð,àˆIøøøøð'	øøøðs?   ‚(+ «
A	µAÁA	Á'A5 Á5BÂBÂ+C Ã
E0ÃBE+Å+E0c                 ó@  — | j         }|j        }t          t          |¦  «        ¦  «        5 }	  ||¦  «        }|snJ||k     r8|d|…         5 }|                     |¦  «         ddd¦  «         n# 1 swxY w Y   n ||¦  «         ŒX	 ddd¦  «         dS # 1 swxY w Y   dS )z–readinto()/memoryview() based variant of copyfileobj().
    *fsrc* must support readinto() method and both files must be
    open in binary mode.
    TN)ÚreadintoÚwriteÚ
memoryviewÚ	bytearray)r=   r>   ÚlengthÚfsrc_readintoÚ
fdst_writeÚmvÚnÚsmvs           r'   Ú_copyfileobj_readintor`   ª   s:  € ð ”M€MØ”€JÝ	•I˜fÑ%Ô%Ñ	&Ô	&ð 	¨"ð	Ø�˜bÑ!Ô!ˆAØð ØØ�V’�Ø˜˜˜”Vð $˜sØ—J’J˜s‘O”O�Oð$ð $ð $ñ $ô $ð $ð $ð $ð $ð $ð $øøøð $ð $ð $ð $øð �
˜2‘”�ð	ð ð		ð 	ð 	ñ 	ô 	ð 	ð 	ð 	ð 	ð 	ð 	ð 	øøøð 	ð 	ð 	ð 	ð 	ð 	s5   « BÁA-Á!BÁ-A1	Á1BÁ4A1	Á5BÂBÂBc                 óh   — |st           }| j        }|j        }	  ||¦  «        }|sdS  ||¦  «         Œ)z=copy data from file-like object fsrc to file-like object fdstTN)ÚCOPY_BUFSIZEÚreadrW   )r=   r>   rZ   Ú	fsrc_readr\   Úbufs         r'   r   r   ½   sP   € àð Ýˆà”	€IØ”€JðØˆi˜ÑÔˆØð 	ØˆEØˆ
�3‰Œˆð	r&   c                 ó¢  — t          | t          j        ¦  «        rpt          t          j        d¦  «        rV	 t          j                             |                      ¦   «         t          j        |¦  «        ¦  «        S # t          $ r Y dS w xY wt          t          j        d¦  «        r2	 t          j                             | |¦  «        S # t          $ r Y dS w xY wt          j         	                    t          j         
                    | ¦  «        ¦  «        t          j         	                    t          j         
                    |¦  «        ¦  «        k    S )NÚsamestatFÚsamefile)Ú
isinstancerF   ÚDirEntryÚhasattrÚpathrg   Ústatr6   rh   ÚnormcaseÚabspath©ÚsrcÚdsts     r'   Ú	_samefilers   Ê   s  € å�#•r”{Ñ#Ô#ð ­µ´¸Ñ(DÔ(Dð ð	Ý”7×#Ò# C§H¢H¡J¤Jµ´¸±´Ñ=Ô=Ð=øÝð 	ð 	ð 	Ø�5�5ð	øøøõ �rŒw˜
Ñ#Ô#ð ð	Ý”7×#Ò# C¨Ñ-Ô-Ð-øÝð 	ð 	ð 	Ø�5�5ð	øøøõ ŒG×Ò�RœWŸ_š_¨SÑ1Ô1Ñ2Ô2ÝŒG×Ò�RœWŸ_š_¨SÑ1Ô1Ñ2Ô2ò3ð 4s$   ¶AA: Á:
BÂBÂ&C Ã
CÃCc                 ó†   — t          | t          j        ¦  «        r|                      ¦   «         nt          j        | ¦  «        S ©N)ri   rF   rj   rm   ©Úfns    r'   Ú_statrx   Ü   s-   € Ý" 2¥r¤{Ñ3Ô3ÐDˆ2�7Š7‰9Œ9ˆ9½¼À¹¼ÐDr&   c                 óœ   — t          | t          j        ¦  «        r|                      ¦   «         nt          j                             | ¦  «        S ru   )ri   rF   rj   Ú
is_symlinkrl   Úislinkrv   s    r'   Ú_islinkr|   ß   s3   € Ý(¨­R¬[Ñ9Ô9ÐQˆ2�=Š=‰?Œ?ˆ?½r¼w¿~º~ÈbÑ?QÔ?QÐQr&   ©Úfollow_symlinksc          
      óD  — t          j        d| |¦  «         t          | |¦  «        r#t          d                     | |¦  «        ¦  «        ‚d}t          | |g¦  «        D ]‡\  }}	 t          |¦  «        }t          j        |j	        ¦  «        r5t          |t          j        ¦  «        r|j        n|}t          d|z  ¦  «        ‚t          r|dk    r|j        }Œx# t"          $ r Y Œ„w xY w|s8t%          | ¦  «        r)t          j        t          j        | ¦  «        |¦  «         �n�t+          | d¦  «        5 }	 t+          |d¦  «        5 }t,          rF	 t/          ||t0          j        ¦  «         |cddd¦  «         cddd¦  «         S # t4          $ r Y n‘w xY wt6          r;	 t9          ||¦  «         |cddd¦  «         cddd¦  «         S # t4          $ r Y nOw xY wt          rD|dk    r>t;          ||t=          |t>          ¦  «        ¦  «         |cddd¦  «         cddd¦  «         S tA          ||¦  «         ddd¦  «         n# 1 swxY w Y   nE# tB          $ r8}	t          j         "                    |¦  «        stG          d|› �¦  «        |	‚‚ d}	~	ww xY wddd¦  «         n# 1 swxY w Y   |S )	zÎCopy data from src to dst in the most efficient way possible.

    If follow_symlinks is not set and src is a symbolic link, a new
    symlink will be created instead of copying the file it points to.

    zshutil.copyfilez{!r} and {!r} are the same filer   z`%s` is a named pipeÚrbÚwbNzDirectory does not exist: )$rI   Úauditrs   r    ÚformatÚ	enumeraterx   rm   ÚS_ISFIFOÚst_moderi   rF   rj   rl   r   Ú_WINDOWSrH   r6   r|   ÚsymlinkÚreadlinkÚopenÚ_HAS_FCOPYFILErC   r   Ú_COPYFILE_DATAr2   rM   rT   r`   rK   rb   r   ÚIsADirectoryErrorÚexistsÚFileNotFoundError)
rq   rr   r~   Ú	file_sizeÚirw   Ústr=   r>   Úes
             r'   r	   r	   â   s  € õ „IÐ  cÑ*Ô*Ð*å��cÑÔð PÝÐ=×DÒDÀSÈ#ÑNÔNÑOÔOÐOà€IÝ˜C ˜:Ñ&Ô&ð 'ð '‰ˆˆ2ð	'Ý�r‘”ˆBõ Œ}˜RœZÑ(Ô(ð DÝ *¨2­r¬{Ñ ;Ô ;ÐC�R”W�WÀ�Ý&Ð'=ÀÑ'BÑCÔCÐCÝð '˜A šF˜FØœJ�	øøõ ð 	ð 	ð 	àˆDð	øøøð ð !�w s™|œ|ð !Ý
Œ
•2”;˜sÑ#Ô# SÑ)Ô)Ð)Ñ)å�#�t‰_Œ_ð 	 ðÝ˜#˜t‘_”_ð ,¨å%ð #ð!Ý/°°d½EÔ<PÑQÔQÐQØ#&ð,ð ,ð ,ð ,ñ ,ô ,ð ,ð	ð 	ð 	ð 	ñ 	ô 	ð 	ð 	øõ  1ð !ð !ð !Ø ˜Dð!øøøõ *ð 
#ð!Ý.¨t°TÑ:Ô:Ð:Ø#&ð,ð ,ð ,ð ,ñ ,ô ,ð ,ð	ð 	ð 	ð 	ñ 	ô 	ð 	ð 	øõ  1ð !ð !ð !Ø ˜Dð!øøøõ "ð # i°!¢m mÝ-¨d°D½#¸iÍÑ:VÔ:VÑWÔWÐWØ"ð',ð ,ð ,ð ,ñ ,ô ,ð ,ð	ð 	ð 	ð 	ñ 	ô 	ð 	ð 	õ.    dÑ+Ô+Ð+ð+,ð ,ð ,ñ ,ô ,ð ,ð ,ð ,ð ,ð ,ð ,øøøð ,ð ,ð ,ð ,øøõ0 %ð ð ð Ý”w—~’~ cÑ*Ô*ð Ý+Ð,NÈÐ,NÐ,NÑOÔOÐUVÐVàøøøøð	øøøð5	ð 	ð 	ñ 	ô 	ð 	ð 	ð 	ð 	ð 	ð 	øøøð 	ð 	ð 	ð 	ð@ €JsÀ   Á#CÃ
C"Ã!C"Ä/JÄ1IÅH8Å
E?Å&IÅ?
FÆ	H8ÆFÆ
H8ÆGÆ(IÇ
GÇH8ÇGÇ5H8ÈIÈH8È,IÈ8H<	È<IÈ?H<	É IÉJÉ
JÉ3JÊJÊJÊJÊJc                óf  — t          j        d| |¦  «         |s‡t          | ¦  «        rxt          j                             |¦  «        rYt          j        dk    rt          j        t          j        }}n“t          t          d¦  «        rt          j        t          j
        }}nedS t          j        dk    r@t          j                             |¦  «        r!t          j                             |d¬¦  «        }t          t          j        }} || ¦  «        } ||t          j        |j        ¦  «        ¦  «         dS )zàCopy mode bits from src to dst.

    If follow_symlinks is not set, symlinks aren't followed if and only
    if both `src` and `dst` are symlinks.  If `lchmod` isn't available
    (e.g. Linux) this method does nothing.

    zshutil.copymoder   ÚlchmodNT©Ústrict)rI   r‚   r|   rF   rl   r{   r7   ÚlstatÚchmodrk   r•   Úrealpathrx   rm   ÚS_IMODEr†   )rq   rr   r~   Ú	stat_funcÚ
chmod_funcr’   s         r'   r
   r
   "  sö   € õ „IÐ  cÑ*Ô*Ð*àð 
0�w s™|œ|ð 
0µ´·²¸sÑ0CÔ0Cð 
0ÝŒ7�dŠ?ˆ?Ý$&¤H­b¬h�zˆIˆIÝ•R˜Ñ"Ô"ð 	Ý$&¤H­b¬i�zˆIˆIàˆFåŒ7�dŠ?ˆ?�rœwŸ~š~¨cÑ2Ô2ˆ?Ý”'×"Ò" 3¨tÐ"Ñ4Ô4ˆCÝ %¥r¤x�:ˆ	à	ˆ�3‰Œ€BØ€Jˆs•D”L ¤Ñ,Ô,Ñ-Ô-Ð-Ð-Ð-r&   Ú	listxattrc                óÀ  — 	 t          j        | |¬¦  «        }nC# t          $ r6}|j        t          j        t          j        t          j        fvr‚ Y d}~dS d}~ww xY w|D ]}	 t          j        | ||¬¦  «        }t          j        ||||¬¦  «         Œ3# t          $ r@}|j        t          j	        t          j        t          j        t          j        fvr‚ Y d}~Œxd}~ww xY wdS )z®Copy extended filesystem attributes from `src` to `dst`.

        Overwrite existing attributes.

        If `follow_symlinks` is false, symlinks won't be followed.

        r}   N)
rF   rž   r6   r:   r<   ÚENODATAr;   ÚgetxattrÚsetxattrÚEPERM)rq   rr   r~   Únamesr“   r7   Úvalues          r'   Ú
_copyxattrr¦   <  s  € ð	Ý”L °oÐFÑFÔFˆEˆEøÝð 	ð 	ð 	ØŒw�uœ}­e¬m½U¼\ÐJÐJÐJØØˆFˆFˆFˆFˆFøøøøð	øøøð ð 	ð 	ˆDðÝœ C¨¸ÐOÑOÔO�Ý”˜C  u¸oÐNÑNÔNÐNÐNøÝð ð ð Ø”7¥5¤;µ´½u¼}Ý#(¤<ð#1ð 1ð 1àð1ð 1ð 1ð 1ð 1øøøøðøøøð		ð 	s,   ‚ ™
A£+AÁAÁ!/BÂ
CÂ6CÃCc                  ó   — d S ru   r%   ©ÚargsÚkwargss     r'   r¦   r¦   T  ó   € Øˆr&   c                óî  ‡
— t          j        d| |¦  «         dddœd„Š
|p.t          | ¦  «        ot          j                             |¦  «         }|rˆ
fd„}nˆ
fd„}t          | t          j        ¦  «        r|                      |¬¦  «        }n  |d¦  «        | |¬¦  «        }t          j	        |j
        ¦  «        }  |d	¦  «        ||j        |j        f|¬¦  «         t          | ||¬¦  «          |d
¦  «        }t          j        dk    rF|rAt          j                             |¦  «        r!t          j                             |d¬¦  «        }nd„ }	  ||||¬¦  «         n# t           $ r Y nw xY wt#          |d¦  «        rr	   |d¦  «        ||j        |¬¦  «         dS # t&          $ rF}dD ]7}	t#          t(          |	¦  «        r |j        t+          t(          |	¦  «        k    r nŒ8‚ Y d}~dS d}~ww xY wdS )aÛ  Copy file metadata

    Copy the permission bits, last access time, last modification time, and
    flags from `src` to `dst`. On Linux, copystat() also copies the "extended
    attributes" where possible. The file contents, owner, and group are
    unaffected. `src` and `dst` are path-like objects or path names given as
    strings.

    If the optional flag `follow_symlinks` is not set, symlinks aren't
    followed if and only if both `src` and `dst` are symlinks.
    zshutil.copystatN)Únsr~   c                 ó   — d S ru   r%   )r­   r~   r©   s      r'   Ú_nopzcopystat.<locals>._nope  r«   r&   c                 ó0   •— t          t          | ‰¦  «        S ru   )ÚgetattrrF   )r7   r¯   s    €r'   Úlookupzcopystat.<locals>.lookupl  s   ø€ Ý�2˜t TÑ*Ô*Ð*r&   c                 óT   •— t          t          | ‰¦  «        }|t          j        v r|S ‰S ru   )r±   rF   Úsupports_follow_symlinks)r7   rw   r¯   s     €r'   r²   zcopystat.<locals>.lookupq  s,   ø€ Ý�˜T 4Ñ(Ô(ˆBØ•RÔ0Ð0Ð0Ø�	ØˆKr&   r}   rm   Úutimer™   r   Tr–   c                  ó"   — t          j        | Ž  d S ru   )rF   r™   r¨   s     r'   Ú_chmodzcopystat.<locals>._chmod‡  s   € Ý”˜$����r&   Úst_flagsÚchflags)Ú
EOPNOTSUPPr<   )rI   r‚   r|   rF   rl   r{   ri   rj   rm   r›   r†   Úst_atime_nsÚst_mtime_nsr¦   r7   rš   ÚNotImplementedErrorrk   r¸   r6   r:   r±   )rq   rr   r~   Úfollowr²   r’   Úmoder·   ÚwhyrB   r¯   s             @r'   r   r   W  sš  ø€ õ „IÐ  cÑ*Ô*Ð*à¨Tð ð ð ð ð ð ÐJ¥W¨S¡\¤\Ð%Iµb´g·n²nÀSÑ6IÔ6IÐ J€FØð ð	+ð 	+ð 	+ð 	+ð 	+ð 	+ð
	ð 	ð 	ð 	ð 	õ �#•r”{Ñ#Ô#ð 9Ø�XŠX fˆXÑ-Ô-ˆˆàˆVˆV�F‰^Œ^˜C°Ð8Ñ8Ô8ˆÝŒ<˜œ
Ñ#Ô#€DØ€F€Fˆ7�O„O�C˜Rœ^¨R¬^Ð<Øð ñ  ô  ð  õ ˆs�C¨Ð0Ñ0Ô0Ð0ØˆV�G‰_Œ_€FÝ	„w�$‚€Øð 	 ÝŒw�~Š~˜cÑ"Ô"ð 9Ý”g×&Ò& s°4Ð&Ñ8Ô8�øð ð  ð  ðØˆˆs�D¨&Ð1Ñ1Ô1Ð1Ð1øÝð ð ð ð 	ˆðøøøõ ˆr�:ÑÔð ð	ØˆFˆF�9ÑÔ˜c 2¤;ÀÐGÑGÔGÐGÐGÐGøÝð 	ð 	ð 	Ø.ð ð �Ý�5 #Ñ&Ô&ð ¨3¬9½ÅÀsÑ8KÔ8KÒ+KÐ+KØ�Eøàð �E�E�E�E�Eøøøøð	øøøðð s*   ÅE# Å#
E0Å/E0ÆF" Æ"
G2Æ,;G-Ç-G2c                ó  — t           j                             |¦  «        r=t           j                             |t           j                             | ¦  «        ¦  «        }t          | ||¬¦  «         t          | ||¬¦  «         |S )a3  Copy data and mode bits ("cp src dst"). Return the file's destination.

    The destination may be a directory.

    If follow_symlinks is false, symlinks won't be followed. This
    resembles GNU's "cp -P src dst".

    If source and destination are the same file, a SameFileError will be
    raised.

    r}   )rF   rl   ÚisdirÚjoinÚbasenamer	   r
   ©rq   rr   r~   s      r'   r   r   ¡  sn   € õ 
„w‡}‚}�SÑÔð 7ÝŒg�lŠl˜3¥¤× 0Ò 0°Ñ 5Ô 5Ñ6Ô6ˆÝˆS�# Ð7Ñ7Ô7Ð7ÝˆS�# Ð7Ñ7Ô7Ð7Ø€Jr&   c                ó  — t           j                             |¦  «        r=t           j                             |t           j                             | ¦  «        ¦  «        }t          | ||¬¦  «         t          | ||¬¦  «         |S )a0  Copy data and metadata. Return the file's destination.

    Metadata is copied with copystat(). Please see the copystat function
    for more information.

    The destination may be a directory.

    If follow_symlinks is false, symlinks won't be followed. This
    resembles GNU's "cp -P src dst".
    r}   )rF   rl   rÂ   rÃ   rÄ   r	   r   rÅ   s      r'   r   r   ³  sn   € õ 
„w‡}‚}�SÑÔð 7ÝŒg�lŠl˜3¥¤× 0Ò 0°Ñ 5Ô 5Ñ6Ô6ˆÝˆS�# Ð7Ñ7Ô7Ð7ÝˆS�# Ð7Ñ7Ô7Ð7Ø€Jr&   c                  ó   ‡ — ˆ fd„}|S )z�Function that can be used as copytree() ignore parameter.

    Patterns is a sequence of glob-style patterns
    that are used to exclude filesc                 ó€   •— g }‰D ]*}|                      t          j        ||¦  «        ¦  «         Œ+t          |¦  «        S ru   )ÚextendÚfnmatchÚfilterÚset)rl   r¤   Úignored_namesÚpatternÚpatternss       €r'   Ú_ignore_patternsz)ignore_patterns.<locals>._ignore_patternsÉ  sJ   ø€ ØˆØð 	Að 	AˆGØ× Ò ¥¤°°wÑ!?Ô!?Ñ@Ô@Ð@Ð@Ý�=Ñ!Ô!Ð!r&   r%   )rÏ   rÐ   s   ` r'   r   r   Ä  s$   ø€ ð
"ð "ð "ð "ð "ð
 Ðr&   c           
      ó€  — |�) |t          j        |¦  «        d„ | D ¦   «         ¦  «        }nd}t          j        ||¬¦  «         g }	|t          u p|t          u }
| D �]ò}|j        |v rŒt           j                             ||j        ¦  «        }t           j                             ||j        ¦  «        }|
r|n|}	 |                     ¦   «         }|r=t           j        dk    r-| 	                    d¬¦  «        }|j
        t          j        k    rd}|r™t          j        |¦  «        }|r)t          j        ||¦  «         t          ||| ¬¦  «         n�t           j                             |¦  «        s|r�Œ|                     ¦   «         rt#          |||||||¦  «         nC |||¦  «         n6|                     ¦   «         rt#          |||||||¦  «         n |||¦  «         �Œ„# t$          $ r+}|	                     |j        d         ¦  «         Y d }~�Œ´d }~wt*          $ r0}|	                     ||t/          |¦  «        f¦  «         Y d }~�Œìd }~ww xY w	 t          ||¦  «         nM# t*          $ r@}t1          |dd ¦  «        €%|	                     ||t/          |¦  «        f¦  «         Y d }~nd }~ww xY w|	rt%          |	¦  «        ‚|S )	Nc                 ó   — g | ]	}|j         ‘Œ
S r%   ©r7   )Ú.0Úxs     r'   ú
<listcomp>z_copytree.<locals>.<listcomp>Ó  s   € Ð/HÐ/HÐ/H¸1°´Ð/HÐ/HÐ/Hr&   r%   )Úexist_okr   Fr}   r   Úwinerror)rF   ÚfspathÚmakedirsr   r   r7   rl   rÃ   rz   rm   Úst_reparse_tagÚIO_REPARSE_TAG_MOUNT_POINTr‰   rˆ   r   rŽ   Úis_dirr   r   rÉ   r©   r6   ÚappendÚstrr±   )Úentriesrq   rr   ÚsymlinksÚignoreÚcopy_functionÚignore_dangling_symlinksÚdirs_exist_okrÍ   ÚerrorsÚuse_srcentryÚsrcentryÚsrcnameÚdstnameÚsrcobjrz   r˜   ÚlinktorB   rÀ   s                       r'   Ú	_copytreerí   Ð  s9  € àÐØ˜�rœy¨™~œ~Ð/HÐ/HÀÐ/HÑ/HÔ/HÑIÔIˆˆàˆå„K�˜mÐ,Ñ,Ô,Ð,Ø€FØ ¥EÐ)ÐB¨]½dÐ-B€Làð ,8ñ ,8ˆØŒ=˜MÐ)Ð)ØÝ”'—,’,˜s H¤MÑ2Ô2ˆÝ”'—,’,˜s H¤MÑ2Ô2ˆØ)Ð6��¨wˆð&	8Ø!×,Ò,Ñ.Ô.ˆJØð '�bœg¨šo˜oð !Ÿš°e˜Ñ<Ô<�ØÔ'­4Ô+JÒJÐJØ!&�JØð /Ýœ WÑ-Ô-�Øð 7õ ”J˜v wÑ/Ô/Ð/Ý˜V WÀ(¸lÐKÑKÔKÐKÐKõ œ7Ÿ>š>¨&Ñ1Ô1ð !Ð6Nð !Ù à—’Ñ(Ô(ð 7Ý  ¨°(¸FØ!.Ð0HØ!.ñ0ô 0ð 0ð 0ð &˜ f¨gÑ6Ô6Ð6Ð6Ø—’Ñ"Ô"ð /Ý˜ ¨(°F¸MØ1°=ñBô Bð Bð Bð �˜f gÑ.Ô.Ð.ùøõ ð 	'ð 	'ð 	'Ø�MŠM˜#œ( 1œ+Ñ&Ô&Ð&Ð&Ð&Ð&Ð&Ñ&øøøøÝð 	8ð 	8ð 	8Ø�MŠM˜7 G­S°©X¬XÐ6Ñ7Ô7Ð7Ð7Ð7Ð7Ð7Ñ7øøøøð	8øøøð0Ý��cÑÔÐÐøÝð 0ð 0ð 0å�3˜
 DÑ)Ô)Ð1Ø�MŠM˜3 ¥S¨¡X¤XÐ.Ñ/Ô/Ð/øøøøøøøøøð0øøøð ð Ý�F‰mŒmÐØ€JsD   Â8B5GÅ/A-GÇ
IÇ( HÈIÈ%IÉIÉI  É 
J*É*6J%Ê%J*c           
      óÒ   — t          j        d| |¦  «         t          j        | ¦  «        5 }t	          |¦  «        }ddd¦  «         n# 1 swxY w Y   t          || ||||||¬¦  «        S )a'  Recursively copy a directory tree and return the destination directory.

    If exception(s) occur, an Error is raised with a list of reasons.

    If the optional symlinks flag is true, symbolic links in the
    source tree result in symbolic links in the destination tree; if
    it is false, the contents of the files pointed to by symbolic
    links are copied. If the file pointed by the symlink doesn't
    exist, an exception will be added in the list of errors raised in
    an Error exception at the end of the copy process.

    You can set the optional ignore_dangling_symlinks flag to true if you
    want to silence this exception. Notice that this has no effect on
    platforms that don't support os.symlink.

    The optional ignore argument is a callable. If given, it
    is called with the `src` parameter, which is the directory
    being visited by copytree(), and `names` which is the list of
    `src` contents, as returned by os.listdir():

        callable(src, names) -> ignored_names

    Since copytree() is called recursively, the callable will be
    called once for each directory that is copied. It returns a
    list of names relative to the `src` directory that should
    not be copied.

    The optional copy_function argument is a callable that will be used
    to copy each file. It will be called with the source path and the
    destination path as arguments. By default, copy2() is used, but any
    function that supports the same signature (like copy()) can be used.

    If dirs_exist_ok is false (the default) and `dst` already exists, a
    `FileExistsError` is raised. If `dirs_exist_ok` is true, the copying
    operation will continue if it encounters existing directories, and files
    within the `dst` tree will be overwritten by corresponding files from the
    `src` tree.
    zshutil.copytreeN)rà   rq   rr   rá   râ   rã   rä   rå   )rI   r‚   rF   ÚscandirÚlistrí   )	rq   rr   rá   râ   rã   rä   rå   Úitrrà   s	            r'   r   r     s¯   € õP „IÐ  cÑ*Ô*Ð*Ý	Œ�C‰Œð ˜CÝ�s‘)”)ˆðð ð ñ ô ð ð ð ð ð ð øøøð ð ð ð å˜W¨#°3ÀØ"°-Ø.FØ#0ð2ñ 2ô 2ð 2s   «AÁAÁAÚst_file_attributesc                 óØ   — 	 |                       d¬¦  «        }t          j        |j        ¦  «        o)|j        t           j        z  o|j        t           j        k     S # t          $ r Y dS w xY w©NFr}   )rm   ÚS_ISDIRr†   rò   ÚFILE_ATTRIBUTE_REPARSE_POINTrÛ   rÜ   r6   )Úentryr’   s     r'   Ú_rmtree_isdirrø   F  s�   € ð	Ø—’¨E�Ñ2Ô2ˆBÝ”L ¤Ñ,Ô,ð KØÔ&­Ô)JÑJð JØÔ&­$Ô*IÒIð2Kð Løõ ð 	ð 	ð 	Ø�5�5ð	øøøs   ‚AA Á
A)Á(A)c                 óÒ   — 	 t          j        | ¦  «        }t          j        |j        ¦  «        p(|j        t          j        z  o|j        t          j        k    S # t          $ r Y dS w xY w)NF)
rF   r˜   rm   ÚS_ISLNKr†   rò   rö   rÛ   rÜ   r6   )rl   r’   s     r'   Ú_rmtree_islinkrû   O  su   € ð	Ý”˜$‘”ˆBÝ”L ¤Ñ,Ô,ð KØÔ&­Ô)JÑJð JØÔ&­$Ô*IÒIðLøõ ð 	ð 	ð 	Ø�5�5ð	øøøs   ‚AA Á
A&Á%A&c                 óR   — 	 |                       d¬¦  «        S # t          $ r Y dS w xY wrô   )rÝ   r6   )r÷   s    r'   rø   rø   X  s=   € ð	Ø—<’<°�<Ñ6Ô6Ð6øÝð 	ð 	ð 	Ø�5�5ð	øøøs   ‚ ˜
&¥&c                 ó@   — t           j                             | ¦  «        S ru   )rF   rl   r{   )rl   s    r'   rû   rû   ^  s   € ÝŒw�~Š~˜dÑ#Ô#Ð#r&   c                 óF  — 	 t          j        | ¦  «        5 }t          |¦  «        }d d d ¦  «         n# 1 swxY w Y   n:# t          $ r-  |t           j        | t	          j        ¦   «         ¦  «         g }Y nw xY w|D ]Ø}|j        }t          |¦  «        rs	 |                     ¦   «         rt          d¦  «        ‚n=# t          $ r0  |t           j        j	        |t	          j        ¦   «         ¦  «         Y Œvw xY wt          ||¦  «         Œ‹	 t          j        |¦  «         Œ¡# t          $ r+  |t           j        |t	          j        ¦   «         ¦  «         Y ŒÕw xY w	 t          j        | ¦  «         d S # t          $ r,  |t           j        | t	          j        ¦   «         ¦  «         Y d S w xY w)Nú%Cannot call rmtree on a symbolic link)rF   rï   rð   r6   rI   Úexc_inforl   rø   rz   r{   Ú_rmtree_unsafeÚunlinkÚrmdir)rl   ÚonerrorÚ
scandir_itrà   r÷   Úfullnames         r'   r  r  b  s  € ðÝŒZ˜ÑÔð 	' Ý˜:Ñ&Ô&ˆGð	'ð 	'ð 	'ñ 	'ô 	'ð 	'ð 	'ð 	'ð 	'ð 	'ð 	'øøøð 	'ð 	'ð 	'ð 	'øøåð ð ð Øˆ•”
˜D¥#¤,¡.¤.Ñ1Ô1Ð1Øˆˆˆðøøøð ð =ð =ˆØ”:ˆÝ˜ÑÔð 	=ðØ×#Ò#Ñ%Ô%ð Kõ "Ð"IÑJÔJÐJð	Køõ
 ð ð ð Ø��œœ¨µ#´,±.´.ÑAÔAÐAØ�ðøøøõ ˜8 WÑ-Ô-Ð-Ð-ð=Ý”	˜(Ñ#Ô#Ð#Ð#øÝð =ð =ð =Ø��œ	 8­S¬\©^¬^Ñ<Ô<Ð<Ð<Ð<ð=øøøð0Ý
Œ�‰ŒˆˆˆøÝð 0ð 0ð 0Øˆ•”˜$¥¤¡¤Ñ/Ô/Ð/Ð/Ð/Ð/ð0øøøs]   ‚> –2¦> ²6¶> ¹6º> ¾4A5Á4A5Â#B7Â77C1Ã0C1ÄDÄ2EÅEÅE* Å*2F ÆF c           
      óà  — 	 t          j        | ¦  «        5 }t          |¦  «        }d d d ¦  «         n# 1 swxY w Y   nG# t          $ r:}||_         |t           j        |t          j        ¦   «         ¦  «         Y d }~d S d }~ww xY w|D �]e}t           j                             ||j	        ¦  «        }	 | 
                    d¬¦  «        }|ri	 |                     d¬¦  «        }	t          j        |	j        ¦  «        }nK# t          $ r+  |t           j        |t          j        ¦   «         ¦  «         Y Œ¦w xY wn# t          $ r d}Y nw xY w|�rP	 t          j        |j	        t           j        t           j        z  | ¬¦  «        }
d}	 t           j                             |	t          j        |
¦  «        ¦  «        r¸t)          |
||¦  «         	 t          j        |
¦  «         n:# t          $ r- d} |t           j        |t          j        ¦   «         ¦  «         Y nw xY wd}	 t          j        |j	        | ¬¦  «         n…# t          $ r+  |t           j        |t          j        ¦   «         ¦  «         Y nQw xY w	 t          d¦  «        ‚# t          $ r0  |t           j        j        |t          j        ¦   «         ¦  «         Y nw xY w|sP	 t          j        |
¦  «         �ŒG# t          $ r,  |t           j        |t          j        ¦   «         ¦  «         Y �Œ|w xY w�Œ‚# |sN	 t          j        |
¦  «         w # t          $ r+  |t           j        |t          j        ¦   «         ¦  «         Y w w xY ww xY w# t          $ r,  |t           j        |t          j        ¦   «         ¦  «         Y �Œw xY w	 t          j        |j	        | ¬¦  «         �Œ.# t          $ r,  |t           j        |t          j        ¦   «         ¦  «         Y �Œcw xY wd S )NFr}   ©Údir_fdTrÿ   )rF   rï   rð   r6   r8   rI   r   rl   rÃ   r7   rÝ   rm   rõ   r†   r˜   rŠ   ÚO_RDONLYÚ
O_NONBLOCKrg   rG   Ú_rmtree_safe_fdÚcloser  r{   r  )Útopfdrl   r  r  rà   rB   r÷   r  rÝ   Úorig_stÚdirfdÚdirfd_closeds               r'   r  r  �  s¯  € ðÝŒZ˜ÑÔð 	' *Ý˜:Ñ&Ô&ˆGð	'ð 	'ð 	'ñ 	'ô 	'ð 	'ð 	'ð 	'ð 	'ð 	'ð 	'øøøð 	'ð 	'ð 	'ð 	'øøåð ð ð ØˆŒØˆ•”
˜D¥#¤,¡.¤.Ñ1Ô1Ð1Øˆˆˆˆˆøøøøðøøøð ð 6=ñ 6=ˆÝ”7—<’<  e¤jÑ1Ô1ˆð	Ø—\’\°%�\Ñ8Ô8ˆFð ð ðØ#Ÿjšj¸˜jÑ?Ô?�GÝ!œ\¨'¬/Ñ:Ô:�F�FøÝð ð ð Ø�G�BœH hµ´±´Ñ?Ô?Ð?Ø�Hðøøøð	øõ ð 	ð 	ð 	ØˆFˆFˆFð	øøøð ñ (	=ð"HÝœ ¤
­B¬K½"¼-Ñ,GÐPUÐVÑVÔV�Ø$�ðHÝ”w×'Ò'¨µ´¸%±´ÑAÔAð NÝ'¨¨x¸ÑAÔAÐAðHÝœH U™OœO˜O˜OøÝ&ð Hð Hð Hà+/˜LØ#˜G¥B¤H¨h½¼¹¼ÑGÔGÐGÐGÐGðHøøøð (,˜ðHÝœH U¤Z¸Ð>Ñ>Ô>Ð>Ð>øÝ&ð Hð Hð HØ#˜G¥B¤H¨h½¼¹¼ÑGÔGÐGÐGÐGðHøøøðNõ #*ð +1ñ #2ô #2ð 2øå&ð Nð Nð NØ#˜G¥B¤G¤N°H½c¼l¹n¼nÑMÔMÐMÐMÐMðNøøøð (ð HðHÝœH U™OœO˜O™OøÝ&ð Hð Hð HØ#˜G¥B¤H¨h½¼¹¼ÑGÔGÐGÐGÑGðHøøøñHø˜<ð HðHÝœH U™OœO˜O˜OøÝ&ð Hð Hð HØ#˜G¥B¤H¨h½¼¹¼ÑGÔGÐGÐGÐGðHøøøðHøøøøõ7 ð ;ð ;ð ;Ø��œ ­3¬<©>¬>Ñ:Ô:Ð:Ð:Ñ:ð;øøøðB=Ý”	˜%œ*¨UÐ3Ñ3Ô3Ð3Ñ3øÝð =ð =ð =Ø��œ	 8­S¬\©^¬^Ñ<Ô<Ð<Ð<Ñ<ð=øøøðk6=ð 6=s  ‚> –2¦> ²6¶> ¹6º> ¾
BÁ/A=Á=BÂ0D2Ã	/C9Ã92D.Ä-D.Ä2EÅ EÅ5MÅ>AL	ÇGÇL	Ç4HÈL	ÈHÈL	ÈH0È/L	È02I%É"L	É$I%É%L	É)I8É87J2Ê/L	Ê1J2Ê2L	Ê8KË2LÌLÌ	MÌL"Ì!MÌ"2M	ÍMÍM	ÍMÍ2NÎNÎN5Î52O+Ï*O+r  c          	      óÔ  — t          j        d| |¦  «         |rd„ }n|€d„ }t          �rÁt          | t          ¦  «        rt          j        | ¦  «        } 	 t          j        | |¬¦  «        }n9# t          $ r,  |t
          j        | t          j	        ¦   «         ¦  «         Y dS w xY w	 t          j
        | t
          j        t
          j        z  |¬¦  «        }d}n9# t          $ r,  |t
          j
        | t          j	        ¦   «         ¦  «         Y dS w xY w	 t
          j                             |t          j        |¦  «        ¦  «        r³t!          || |¦  «         	 t          j        |¦  «         n:# t$          $ r- d} |t
          j        | t          j	        ¦   «         ¦  «         Y nw xY wd}	 t          j        | |¬¦  «         n…# t$          $ r+  |t
          j        | t          j	        ¦   «         ¦  «         Y nQw xY w	 t%          d¦  «        ‚# t$          $ r0  |t
          j        j        | t          j	        ¦   «         ¦  «         Y nw xY w|sP	 t          j        |¦  «         dS # t$          $ r,  |t
          j        | t          j	        ¦   «         ¦  «         Y dS w xY wdS # |sN	 t          j        |¦  «         w # t$          $ r+  |t
          j        | t          j	        ¦   «         ¦  «         Y w w xY ww xY w|�t+          d	¦  «        ‚	 t-          | ¦  «        rt%          d¦  «        ‚n># t$          $ r1  |t
          j        j        | t          j	        ¦   «         ¦  «         Y dS w xY wt/          | |¦  «        S )
a¿  Recursively delete a directory tree.

    If dir_fd is not None, it should be a file descriptor open to a directory;
    path will then be relative to that directory.
    dir_fd may not be implemented on your platform.
    If it is unavailable, using it will raise a NotImplementedError.

    If ignore_errors is set, errors are ignored; otherwise, if onerror
    is set, it is called to handle the error with arguments (func,
    path, exc_info) where func is platform and implementation dependent;
    path is the argument to that function that caused it to fail; and
    exc_info is a tuple returned by sys.exc_info().  If ignore_errors
    is false and onerror is None, an exception is raised.

    zshutil.rmtreec                  ó   — d S ru   r%   ©r©   s    r'   r  zrmtree.<locals>.onerrorØ  s   € ØˆDr&   Nc                   ó   — ‚ ru   r%   r  s    r'   r  zrmtree.<locals>.onerrorÛ  s   € Ør&   r  FTrÿ   z#dir_fd unavailable on this platform)rI   r‚   Ú_use_fd_functionsri   ÚbytesrF   Úfsdecoder˜   r5   r   rŠ   r
  r  rl   rg   rG   r  r  r6   r  r{   r½   rû   r  )rl   Úignore_errorsr  r	  r  ÚfdÚ	fd_closeds          r'   r   r   Æ  sÝ  € õ  „Iˆo˜t VÑ,Ô,Ð,Øð ð	ð 	ð 	ð 	à	ˆð	ð 	ð 	åñ 6-å�d�EÑ"Ô"ð 	%Ý”;˜tÑ$Ô$ˆDð	Ý”h˜t¨FÐ3Ñ3Ô3ˆGˆGøÝð 	ð 	ð 	ØˆG•B”H˜d¥C¤L¡N¤NÑ3Ô3Ð3ØˆFˆFð	øøøð	Ý”˜�rœ{­R¬]Ñ:À6ÐJÑJÔJˆBØˆIˆIøÝð 	ð 	ð 	ØˆG•B”G˜T¥3¤<¡>¤>Ñ2Ô2Ð2ØˆFˆFð	øøøð	<ÝŒw×Ò ­¬°"©¬Ñ6Ô6ð BÝ  D¨'Ñ2Ô2Ð2ð<Ý”H˜R‘L”L�L�LøÝð <ð <ð <à $�IØ�G�BœH d­C¬L©N¬NÑ;Ô;Ð;Ð;Ð;ð<øøøð !�	ð<Ý”H˜T¨&Ð1Ñ1Ô1Ð1Ð1øÝð <ð <ð <Ø�G�BœH d­C¬L©N¬NÑ;Ô;Ð;Ð;Ð;ð<øøøðBå!Ð"IÑJÔJÐJøÝð Bð Bð BØ�G�BœGœN¨Dµ#´,±.´.ÑAÔAÐAÐAÐAðBøøøð ð <ð<Ý”H˜R‘L”L�L�L�LøÝð <ð <ð <Ø�G�BœH d­C¬L©N¬NÑ;Ô;Ð;Ð;Ð;Ð;ð<øøøð<ð <ø�9ð <ð<Ý”H˜R‘L”L�L�LøÝð <ð <ð <Ø�G�BœH d­C¬L©N¬NÑ;Ô;Ð;Ð;Ð;ð<øøøð<øøøð ÐÝ%Ð&KÑLÔLÐLð	Ý˜dÑ#Ô#ð GåÐEÑFÔFÐFðGøõ ð 	ð 	ð 	ØˆG•B”G”N D­#¬,©.¬.Ñ9Ô9Ð9àˆFˆFð	øøøõ ˜d GÑ,Ô,Ð,sß   ÁA+ Á+2B!Â B!Â%0C Ã2DÄDÄAJ ÅE) Å(J Å)4F ÆJ ÆF Æ J Æ&F= Æ<J Æ=2G2Ç/J Ç1G2Ç2J Ç6H È7H?È<J È>H?È?J ÉI É2JÊJÊK(ÊJ/Ê.K(Ê/2K$Ë!K(Ë#K$Ë$K(Ë=L Ì7MÍMc                 óØ   — t          j        | ¦  «        } t           j        j        t           j        j        pdz   }t           j                             |                      |¦  «        ¦  «        S )aH  A basename() variant which first strips the trailing slash, if present.
    Thus we always get the last component of the path, even for directories.

    path: Union[PathLike, str]

    e.g.
    >>> os.path.basename('/bar/foo')
    'foo'
    >>> os.path.basename('/bar/foo/')
    ''
    >>> _basename('/bar/foo/')
    'foo'
    Ú )rF   rÙ   rl   ÚsepÚaltseprÄ   Úrstrip)rl   r  s     r'   Ú	_basenamer!    sJ   € õ Œ9�T‰?Œ?€DÝ
Œ'Œ+�œœÐ-¨2Ñ
.€CÝŒ7×Ò˜DŸKšK¨Ñ,Ô,Ñ-Ô-Ð-r&   c                 ó¨  — t          j        d| |¦  «         |}t          j                             |¦  «        r¤t          | |¦  «        r6t          j                             | ¦  «        st          j        | |¦  «         dS t          j                             |t          | ¦  «        ¦  «        }t          j         
                    |¦  «        rt          d|z  ¦  «        ‚	 t          j        | |¦  «         �n^# t          $ �rP t          j                             | ¦  «        r>t          j        | ¦  «        }t          j        ||¦  «         t          j        | ¦  «         nðt          j                             | ¦  «        r±t!          | |¦  «        rt          d| ›d|›d�¦  «        ‚t#          | ¦  «        sCt          j        | t          j        ¦  «        s:t          j        | ¦  «        r&t           j        dk    rt-          d| ›d	| ›d�¦  «        ‚t/          | ||d
¬¦  «         t1          | ¦  «         n  || |¦  «         t          j        | ¦  «         Y nw xY w|S )a.  Recursively move a file or directory to another location. This is
    similar to the Unix "mv" command. Return the file or directory's
    destination.

    If dst is an existing directory or a symlink to a directory, then src is
    moved inside that directory. The destination path in that directory must
    not already exist.

    If dst already exists but is not a directory, it may be overwritten
    depending on os.rename() semantics.

    If the destination is on our current filesystem, then rename() is used.
    Otherwise, src is copied to the destination and then removed. Symlinks are
    recreated under the new name if os.rename() fails because of cross
    filesystem renames.

    The optional `copy_function` argument is a callable that will be used
    to copy the source or it will be delegated to `copytree`.
    By default, copy2() is used, but any function that supports the same
    signature (like copy()) can be used.

    A lot more could be done here...  A look at a mv.c shows a lot of
    the issues this implementation glosses over.

    zshutil.moveNz$Destination path '%s' already existszCannot move a directory 'z' into itself 'z'.Údarwinz%Cannot move the non-empty directory 'z ': Lacking write permission to 'T)rã   rá   )rI   r‚   rF   rl   rÂ   rs   r{   ÚrenamerÃ   r!  rŽ   r   r6   r‰   rˆ   r  Ú
_destinsrcÚ_is_immutableÚaccessÚW_OKÚlistdirÚplatformÚPermissionErrorr   r   )rq   rr   rã   Úreal_dstrì   s        r'   r   r   +  sE  € õ4 „Iˆm˜S #Ñ&Ô&Ð&Ø€HÝ	„w‡}‚}�SÑÔð KÝ�S˜#ÑÔð 	¥r¤w§~¢~°cÑ':Ô':ð 	õ ŒI�c˜3ÑÔÐØˆFõ ”7—<’< ¥Y¨s¡^¤^Ñ4Ô4ˆåŒ7�>Š>˜(Ñ#Ô#ð 	KÝÐ>ÀÑIÑJÔJÐJðÝ
Œ	�#�xÑ Ô Ð Ñ øÝð ñ ð ÝŒ7�>Š>˜#ÑÔð 	Ý”[ Ñ%Ô%ˆFÝŒJ�v˜xÑ(Ô(Ð(ÝŒI�c‰NŒNˆNˆNÝŒW�]Š]˜3ÑÔð 	Ý˜#˜sÑ#Ô#ð 3Ý�eØ(+¨¨¨S¨S¨Sð2ñ 3ô 3ð 3å˜cÑ"Ô"ð 4ÝœI c­2¬7Ñ3Ô3ð4Ý8:¼
À3¹¼ð4åœL¨HÒ4Ð4Ý%�oà),¨¨¨c¨c¨cð'3ñ 4ô 4ð 4õ �S˜(°-Ø"ð$ñ $ô $ð $å�3‰KŒKˆKˆKàˆM˜#˜xÑ(Ô(Ð(ÝŒI�c‰NŒNˆNøøð)øøøð* €Os   ÃC4 Ã4EIÉIc                 óˆ  — t           j                             | ¦  «        } t           j                             |¦  «        }|                      t           j        j        ¦  «        s| t           j        j        z  } |                     t           j        j        ¦  «        s|t           j        j        z  }|                     | ¦  «        S ru   )rF   rl   ro   Úendswithr  Ú
startswithrp   s     r'   r%  r%  m  s†   € Ý
Œ'�/Š/˜#Ñ
Ô
€CÝ
Œ'�/Š/˜#Ñ
Ô
€CØ�<Š<�œœÑ$Ô$ð Ø�rŒwŒ{ÑˆØ�<Š<�œœÑ$Ô$ð Ø�rŒwŒ{ÑˆØ�>Š>˜#ÑÔÐr&   c                 ó‚   — t          | ¦  «        }t          j        t          j        g}t	          |d¦  «        o|j        |v S )Nr¸   )rx   rm   ÚUF_IMMUTABLEÚSF_IMMUTABLErk   r¸   )rq   r’   Úimmutable_statess      r'   r&  r&  v  s;   € Ý	ˆs‰Œ€BÝÔ)­4Ô+<Ð=ÐÝ�2�zÑ"Ô"ÐF r¤{Ð6FÐ'FÐFr&   c                 ó’   — | €dS 	 ddl m} n# t          $ r Y dS w xY w	  || ¦  «        }n# t          $ r d}Y nw xY w|�|d         S dS )z"Returns a gid, given a group name.Nr   )Úgetgrnamé   )Úgrpr5  ÚImportErrorÚKeyError)r7   r5  Úresults      r'   Ú_get_gidr;  {  ó•   € à€|ØˆtðØ Ð Ð Ð Ð Ð Ð øÝð ð ð ØˆtˆtðøøøðØ�˜$‘”ˆˆøÝð ð ð ØˆˆˆðøøøàÐØ�aŒyÐØˆ4ó   † �
šŸ+ «:¹:c                 ó’   — | €dS 	 ddl m} n# t          $ r Y dS w xY w	  || ¦  «        }n# t          $ r d}Y nw xY w|�|d         S dS )z"Returns an uid, given a user name.Nr   )Úgetpwnamr6  )Úpwdr?  r8  r9  )r7   r?  r:  s      r'   Ú_get_uidrA  �  r<  r=  Úgzipc	                 óŠ  ‡‡‡‡— |€d}	nRt           r	|dk    rd}	nBt          r	|dk    rd}	n2t          r	|dk    rd}	n"t          d                     |¦  «        ¦  «        ‚d	dl}
|rd
|	z   nd}| dz   |z   }t          j                             |¦  «        }|rMt          j         	                    |¦  «        s.|�| 
                    d|¦  «         |st          j        |¦  «         |�| 
                    d¦  «         t          ‰¦  «        Št          ‰¦  «        Šˆˆˆˆfd„}|s„|
                     |d|	z  ¦  «        }|}|� t          j                             ||¦  «        }	 |                     |||¬¦  «         |                     ¦   «          n# |                     ¦   «          w xY w|�t          j                             |¦  «        }|S )aú  Create a (possibly compressed) tar file from all the files under
    'base_dir'.

    'compress' must be "gzip" (the default), "bzip2", "xz", or None.

    'owner' and 'group' can be used to define an owner and a group for the
    archive that is being built. If not provided, the current owner and group
    will be used.

    The output tar file will be named 'base_name' +  ".tar", possibly plus
    the appropriate compression extension (".gz", ".bz2", or ".xz").

    Returns the output filename.
    Nr  rB  ÚgzÚbzip2Úbz2ÚxzzCbad value for 'compress', or compression format not supported : {0}r   ú.ú.tarúcreating %szCreating tar archivec                 óH   •— ‰�‰| _         ‰| _        ‰�‰| _        ‰| _        | S ru   )ÚgidÚgnameÚuidÚuname)ÚtarinforL  ÚgroupÚownerrN  s    €€€€r'   Ú_set_uid_gidz#_make_tarball.<locals>._set_uid_gidÎ  s.   ø€ Øˆ?ØˆGŒKØ!ˆGŒMØˆ?ØˆGŒKØ!ˆGŒMØˆr&   zw|%s©rË   )Ú_ZLIB_SUPPORTEDÚ_BZ2_SUPPORTEDÚ_LZMA_SUPPORTEDÚ
ValueErrorrƒ   ÚtarfilerF   rl   ÚdirnamerŽ   ÚinforÚ   rA  r;  rŠ   rÃ   Úaddr  ro   )Ú	base_nameÚbase_dirÚcompressÚverboseÚdry_runrR  rQ  ÚloggerÚroot_dirÚtar_compressionrY  Úcompress_extÚarchive_nameÚarchive_dirrS  ÚtarÚarcnamerL  rN  s        ``          @@r'   Ú_make_tarballrj  Ÿ  s  øøøø€ ð  ÐØˆˆÝ	ð =˜X¨Ò/Ð/ØˆˆÝ	ð =˜H¨Ò/Ð/ØˆˆÝ	ð =˜X¨Ò-Ð-Øˆˆåð +ß+1ª6°(Ñ+;Ô+;ñ=ô =ð 	=ð €N€N€Nà,4Ð<�3˜Ñ(Ð(¸"€LØ˜vÑ%¨Ñ4€LÝ”'—/’/ ,Ñ/Ô/€Kàð %�2œ7Ÿ>š>¨+Ñ6Ô6ð %ØÐØ�KŠK˜ {Ñ3Ô3Ð3Øð 	%ÝŒK˜Ñ$Ô$Ð$ð ÐØ�ŠÐ*Ñ+Ô+Ð+å
�5‰/Œ/€CÝ
�5‰/Œ/€Cðð ð ð ð ð ð ð ð ð Ø�lŠl˜<¨°/Ñ)AÑBÔBˆØˆØÐÝ”w—|’| H¨hÑ7Ô7ˆHð	Ø�GŠG�H˜g¨lˆGÑ;Ô;Ð;à�IŠI‰KŒKˆKˆKøˆC�IŠI‰KŒKˆKˆKøøøàÐÝ”w—’ |Ñ4Ô4ˆØÐs   ÅF	 Æ	Fc                 ó8  — ddl }| dz   }	t          j                             | ¦  «        }
|
rMt          j                             |
¦  «        s.|�|                     d|
¦  «         |st          j        |
¦  «         |�|                     d|	|¦  «         |�se|                     |	d|j        ¬¦  «        5 }t          j         	                    |¦  «        }|� t          j         
                    ||¦  «        }t          j         	                    |¦  «        }|t          j        k    r.|                     ||¦  «         |�|                     d|¦  «         t          j        |¦  «        D �]{\  }}}|}|� t          j                             ||¦  «        }t          j         	                    |¦  «        }t          |¦  «        D ]p}t          j         
                    ||¦  «        }t          j         
                    ||¦  «        }|                     ||¦  «         |�|                     d|¦  «         Œq|D ]®}t          j         
                    ||¦  «        }t          j         	                    |¦  «        }t          j                             |¦  «        rNt          j         
                    ||¦  «        }|                     ||¦  «         |�|                     d|¦  «         Œ¯�Œ}	 ddd¦  «         n# 1 swxY w Y   |�t          j                             |	¦  «        }	|	S )	z¦Create a zip file from all the files under 'base_dir'.

    The output zip file will be named 'base_name' + ".zip".  Returns the
    name of the output zip file.
    r   Nú.ziprJ  z#creating '%s' and adding '%s' to itÚw)Úcompressionzadding '%s')ÚzipfilerF   rl   rZ  rŽ   r[  rÚ   ÚZipFileÚZIP_DEFLATEDÚnormpathrÃ   ÚcurdirrW   ÚwalkÚrelpathÚsortedÚisfilero   )r]  r^  r`  ra  rb  rR  rQ  rc  ro  Úzip_filenamerg  Úzfri  ÚdirpathÚdirnamesÚ	filenamesÚ
arcdirpathr7   rl   s                      r'   Ú_make_zipfiler~  å  s   € ð €N€N€Nà˜vÑ%€LÝ”'—/’/ )Ñ,Ô,€Kàð %�2œ7Ÿ>š>¨+Ñ6Ô6ð %ØÐØ�KŠK˜ {Ñ3Ô3Ð3Øð 	%ÝŒK˜Ñ$Ô$Ð$àÐØ�ŠÐ9Ø  (ñ	,ô 	,ð 	,ð ñ =Ø�_Š_˜\¨3Ø)0Ô)=ð ñ ?ô ?ð 	=ØBDÝ”g×&Ò& xÑ0Ô0ˆGØÐ#Ýœ7Ÿ<š<¨°(Ñ;Ô;�Ý”w×'Ò'¨Ñ1Ô1ˆHØ�"œ)Ò#Ð#Ø—’˜ 7Ñ+Ô+Ð+ØÐ%Ø—K’K ¨xÑ8Ô8Ð8Ý02´¸Ñ0AÔ0Að =ñ =Ñ,�˜ 9Ø$�
ØÐ'Ý!#¤§¢°¸XÑ!FÔ!F�JÝœW×-Ò-¨jÑ9Ô9�
Ý" 8Ñ,Ô,ð 9ð 9�DÝœ7Ÿ<š<¨°Ñ6Ô6�DÝ œgŸlšl¨:°tÑ<Ô<�GØ—H’H˜T 7Ñ+Ô+Ð+ØÐ)ØŸš M°4Ñ8Ô8Ð8øØ%ð =ð =�DÝœ7Ÿ<š<¨°Ñ6Ô6�DÝœ7×+Ò+¨DÑ1Ô1�DÝ”w—~’~ dÑ+Ô+ð =Ý"$¤'§,¢,¨z¸4Ñ"@Ô"@˜ØŸš  wÑ/Ô/Ð/Ø!Ð-Ø"ŸKšK¨°tÑ<Ô<Ð<øñ=ð=ð	=ð 	=ð 	=ñ 	=ô 	=ð 	=ð 	=ð 	=ð 	=ð 	=ð 	=øøøð 	=ð 	=ð 	=ð 	=ð< ÐÝ”w—’ |Ñ4Ô4ˆØÐs   Â1H0K.Ë.K2Ë5K2rh  )r_  Nzuncompressed tar file)r_  rB  zgzip'ed tar-fileÚgztarzZIP fileÚzip)r_  rE  zbzip2'ed tar-fileÚbztar)r_  rG  zxz'ed tar-fileÚxztarc                  ót   — d„ t                                ¦   «         D ¦   «         } |                      ¦   «          | S )z‘Returns a list of supported formats for archiving and unarchiving.

    Each element of the returned sequence is a tuple (name, description)
    c                 ó(   — g | ]\  }}||d          f‘ŒS )r6  r%   )rÔ   r7   Úregistrys      r'   rÖ   z'get_archive_formats.<locals>.<listcomp>:  s1   € ð )ð )ð )¡~ t¨X��h˜q”kÐ"ð )ð )ð )r&   )Ú_ARCHIVE_FORMATSÚitemsÚsort©Úformatss    r'   r   r   5  s>   € ð
)ð )Ý×%Ò%Ñ'Ô'ð)ñ )ô )€Gà‡L‚L�N„N€NØ€Nr&   r  c                 óH  — |€g }t          |¦  «        st          d|z  ¦  «        ‚t          |t          t          f¦  «        st          d¦  «        ‚|D ]@}t          |t          t          f¦  «        rt          |¦  «        dk    rt          d¦  «        ‚ŒA|||dft          | <   dS )au  Registers an archive format.

    name is the name of the format. function is the callable that will be
    used to create archives. If provided, extra_args is a sequence of
    (name, value) tuples that will be passed as arguments to the callable.
    description can be provided to describe the format, and will be returned
    by the get_archive_formats() function.
    NzThe %s object is not callablez!extra_args needs to be a sequencer6  z+extra_args elements are : (arg_name, value)F)ÚcallableÚ	TypeErrorri   Útuplerð   Úlenr†  )r7   ÚfunctionÚ
extra_argsÚdescriptionÚelements        r'   r   r   ?  sÂ   € ð ÐØˆ
Ý�HÑÔð DÝÐ7¸(ÑBÑCÔCÐCÝ�j¥5­$ -Ñ0Ô0ð =ÝÐ;Ñ<Ô<Ð<Øð Kð KˆÝ˜'¥E­4 =Ñ1Ô1ð 	KµS¸±\´\ÀAÒ5EÐ5EÝÐIÑJÔJÐJð 6Fð '¨
°KÀÐGÕ�TÑÐÐr&   c                 ó   — t           | = d S ru   )r†  rÓ   s    r'   r   r   T  s   € Ý˜ÐÐÐr&   c	                 ór  — t          j        d| |||¦  «         	 t          |         }	n!# t          $ r t	          d|z  ¦  «        d‚w xY w||||dœ}
|	d         }|	d         D ]
\  }}||
|<   Œ|€t
          j        }|	d         }d}|�Ät          j        |¦  «        j        }t          j	        |¦  «        st          t          j        d|¦  «        ‚|rt          j        | ¦  «        } ||
d	<   n`t          j        ¦   «         }|�|                     d
|¦  «         t
          j                             | ¦  «        } |st          j        |¦  «         	  || |fi |
¤Ž}|�,|�|                     d|¦  «         t          j        |¦  «         n4# |�-|�|                     d|¦  «         t          j        |¦  «         w w xY w|S )a  Create an archive file (eg. zip or tar).

    'base_name' is the name of the file to create, minus any format-specific
    extension; 'format' is the archive format: one of "zip", "tar", "gztar",
    "bztar", or "xztar".  Or any other registered format.

    'root_dir' is a directory that will be the root directory of the
    archive; ie. we typically chdir into 'root_dir' before creating the
    archive.  'base_dir' is the directory where we start archiving from;
    ie. 'base_dir' will be the common prefix of all files and
    directories in the archive.  'root_dir' and 'base_dir' both default
    to the current directory.  Returns the name of the archive file.

    'owner' and 'group' are used when creating a tar archive. By default,
    uses the current owner and group.
    zshutil.make_archivezunknown archive format '%s'N)ra  rb  rR  rQ  r   é   é   zNot a directoryrc  zchanging into '%s'zchanging back to '%s')rI   r‚   r†  r9  rX  rF   rs  rm   r†   rõ   ÚNotADirectoryErrorr:   ÚENOTDIRrÙ   ÚgetcwdÚdebugrl   ro   Úchdir)r]  rƒ   rc  r^  r`  ra  rR  rQ  rb  Úformat_inforª   ÚfuncÚargÚvalÚsupports_root_dirÚsave_cwdÚstmdr8   s                     r'   r   r   W  s  € õ$ „IÐ# Y°¸À(ÑKÔKÐKðKÝ& vÔ.ˆˆøÝð Kð Kð KÝÐ6¸Ñ?Ñ@Ô@ÀdÐJðKøøøð !¨FØ uð.ð .€Fð �qŒ>€DØ ”Nð ð ‰ˆˆSØˆˆs‰ˆàÐÝ”9ˆà# AœÐØ€HØÐÝŒw�xÑ Ô Ô(ˆÝŒ|˜DÑ!Ô!ð 	QÝ$¥U¤]Ð4EÀxÑPÔPÐPàð 
	#åœ	 )Ñ,Ô,ˆIØ!)ˆF�:ÑÐå”y‘{”{ˆHØÐ!Ø—’Ð1°8Ñ<Ô<Ð<ÝœŸš¨	Ñ2Ô2ˆIØð #Ý”˜Ñ"Ô"Ð"ðØ�4˜	 8Ð6Ð6¨vÐ6Ð6ˆàÐØÐ!Ø—’Ð4°hÑ?Ô?Ð?ÝŒH�XÑÔÐøøð ÐØÐ!Ø—’Ð4°hÑ?Ô?Ð?ÝŒH�XÑÔÐÐð  øøøð
 €Os   š( ¨AÅ

F Æ1F4c                  ót   — d„ t                                ¦   «         D ¦   «         } |                      ¦   «          | S )z‘Returns a list of supported formats for unpacking.

    Each element of the returned sequence is a tuple
    (name, extensions, description)
    c                 ó6   — g | ]\  }}||d          |d         f‘ŒS )r   r—  r%   )rÔ   r7   r[  s      r'   rÖ   z&get_unpack_formats.<locals>.<listcomp>�  s7   € ð (ð (ð (©J¨D°$��d˜1”g˜t AœwÐ'ð (ð (ð (r&   )Ú_UNPACK_FORMATSr‡  rˆ  r‰  s    r'   r   r   —  s>   € ð(ð (Ý×$Ò$Ñ&Ô&ð(ñ (ô (€Gà‡L‚L�N„N€NØ€Nr&   c                 óî   — i }t                                ¦   «         D ]\  }}|d         D ]}|||<   ŒŒ| D ]"}||v rd}t          ||||         fz  ¦  «        ‚Œ#t          |¦  «        st	          d¦  «        ‚dS )z+Checks what gets registered as an unpacker.r   z!%s is already registered for "%s"z*The registered function must be a callableN)r¦  r‡  r0   rŒ  r�  )	Ú
extensionsr�  r‘  Úexisting_extensionsr7   r[  ÚextÚ	extensionÚmsgs	            r'   Ú_check_unpack_optionsr­  ¢  sÓ   € ð ÐÝ%×+Ò+Ñ-Ô-ð ,ð ,‰
ˆˆdØ˜”7ð 	,ð 	,ˆCØ'+Ð Ñ$Ð$ð	,ð  ð Hð Hˆ	ØÐ+Ð+Ð+Ø5ˆCÝ  yØ':¸9Ô'Eð'Gñ !Gñ Hô Hð Hð ,õ
 �HÑÔð FÝÐDÑEÔEÐEðFð Fr&   c                 óL   — |€g }t          |||¦  «         ||||ft          | <   dS )aM  Registers an unpack format.

    `name` is the name of the format. `extensions` is a list of extensions
    corresponding to the format.

    `function` is the callable that will be
    used to unpack archives. The callable will receive archives to unpack.
    If it's unable to handle an archive, it needs to raise a ReadError
    exception.

    If provided, `extra_args` is a sequence of
    (name, value) tuples that will be passed as arguments to the callable.
    description can be provided to describe the format, and will be returned
    by the get_unpack_formats() function.
    N)r­  r¦  )r7   r¨  r�  r‘  r’  s        r'   r   r   ´  s:   € ð" ÐØˆ
Ý˜* h°
Ñ;Ô;Ð;Ø&¨°*¸kÐI…O�DÑÐÐr&   c                 ó   — t           | = dS )z*Removes the pack format from the registry.N)r¦  rÓ   s    r'   r   r   Ê  s   € å˜ÐÐÐr&   c                 ó®   — t           j                             | ¦  «        }t           j                             |¦  «        st          j        |¦  «         dS dS )z1Ensure that the parent directory of `path` existsN)rF   rl   rZ  rÂ   rÚ   )rl   rZ  s     r'   Ú_ensure_directoryr±  Î  sK   € åŒg�oŠo˜dÑ#Ô#€GÝŒ7�=Š=˜Ñ!Ô!ð Ý
Œ�GÑÔÐÐÐðð r&   c                 óÂ  — ddl }|                     | ¦  «        st          d| z  ¦  «        ‚|                     | ¦  «        }	 |                     ¦   «         D ]Ú}|j        }|                     d¦  «        sd|v rŒ#t          j        j	        |g| 
                    d¦  «        ¢R Ž }|sŒPt          |¦  «         |                     d¦  «        sf|                     |d¦  «        5 }t          |d¦  «        5 }t          ||¦  «         ddd¦  «         n# 1 swxY w Y   ddd¦  «         n# 1 swxY w Y   ŒÛ	 |                     ¦   «          dS # |                     ¦   «          w xY w)z+Unpack zip `filename` to `extract_dir`
    r   Nz%s is not a zip fileú/z..Úrr�   )ro  Ú
is_zipfiler.   rp  Úinfolistr8   r/  rF   rl   rÃ   Úsplitr±  r.  rŠ   r   r  )	r8   Úextract_dirro  r€  r[  r7   Ú
targetpathÚsourceÚtargets	            r'   Ú_unpack_zipfiler¼  Ô  sà  € ð €N€N€Nà×Ò˜hÑ'Ô'ð ;ÝÐ.°Ñ9Ñ:Ô:Ð:à
�/Š/˜(Ñ
#Ô
#€CðØ—L’L‘N”Nð 	0ð 	0ˆDØ”=ˆDð �Š˜sÑ#Ô#ð  t¨t | |Øåœœ kÐD°D·J²J¸s±O´OÐDÐDÐDˆJØð Øå˜jÑ)Ô)Ð)Ø—=’= Ñ%Ô%ð 0à—X’X˜d CÑ(Ô(ð 0¨FÝ˜Z¨Ñ.Ô.ð0Ø28Ý ¨Ñ/Ô/Ð/ð0ð 0ð 0ñ 0ô 0ð 0ð 0ð 0ð 0ð 0ð 0øøøð 0ð 0ð 0ð 0ð 0ð 0ð 0ñ 0ô 0ð 0ð 0ð 0ð 0ð 0ð 0øøøð 0ð 0ð 0ð 0øð	0ð$ 	�	Š	‰Œˆˆˆøˆ�	Š	‰ŒˆˆøøøsU   ÁBE Ã D%Ã1DÄD%ÄDÄD%ÄDÄD%ÄE Ä%D)	Ä)E Ä,D)	Ä-E ÅErT  c                ó  — ddl }	 |                     | ¦  «        }n # |j        $ r t          d| z  ¦  «        ‚w xY w	 |                     ||¬¦  «         |                     ¦   «          dS # |                     ¦   «          w xY w)zAUnpack tar/tar.gz/tar.bz2/tar.xz `filename` to `extract_dir`
    r   Nz/%s is not a compressed or uncompressed tar filerT  )rY  rŠ   ÚTarErrorr.   Ú
extractallr  )r8   r¸  rË   rY  Útarobjs        r'   Ú_unpack_tarfilerÁ  ò  s¦   € ð €N€N€NðJØ—’˜hÑ'Ô'ˆˆøØÔð Jð Jð JÝØ=ÀÑHñJô Jð 	JðJøøøðØ×Ò˜+¨fÐÑ5Ô5Ð5à�Š‰Œˆˆˆøˆ�Š‰Œˆˆøøøs   † œ9½A* Á*B rI  rl  )rh  r€  z.tar.gzz.tgzz.tar.bz2z.tbz2z.tar.xzz.txzc                 ó�   — t                                ¦   «         D ]+\  }}|d         D ]}|                      |¦  «        r|c c S ŒŒ,d S )Nr   )r¦  r‡  r.  )r8   r7   r[  r«  s       r'   Ú_find_unpack_formatrÃ    sh   € Ý%×+Ò+Ñ-Ô-ð ð ‰
ˆˆdØ˜aœð 	ð 	ˆIØ× Ò  Ñ+Ô+ð Ø�����ðð	ð ˆ4r&   c                ó|  — t          j        d| ||¦  «         |€t          j        ¦   «         }t          j        |¦  «        }t          j        | ¦  «        } |€i }nd|i}|�i	 t
          |         }n1# t          $ r$ t          d                     |¦  «        ¦  «        d‚w xY w|d         } || |fi t          |d         ¦  «        ¤|¤Ž dS t          | ¦  «        }|€"t          d                     | ¦  «        ¦  «        ‚t
          |         d         }t          t
          |         d         ¦  «        |z  } || |fi |¤Ž dS )a]  Unpack an archive.

    `filename` is the name of the archive.

    `extract_dir` is the name of the target directory, where the archive
    is unpacked. If not provided, the current working directory is used.

    `format` is the archive format: one of "zip", "tar", "gztar", "bztar",
    or "xztar".  Or any other registered format.  If not provided,
    unpack_archive will use the filename extension and see if an unpacker
    was registered for that extension.

    In case none is found, a ValueError is raised.

    If `filter` is given, it is passed to the underlying
    extraction function.
    zshutil.unpack_archiveNrË   zUnknown unpack format '{0}'r–  r6  zUnknown archive format '{0}')rI   r‚   rF   rš  rÙ   r¦  r9  rX  rƒ   ÚdictrÃ  r.   )r8   r¸  rƒ   rË   Úfilter_kwargsr�  rž  rª   s           r'   r   r     so  € õ$ „IÐ% x°¸fÑEÔEÐEàÐÝ”i‘k”kˆå”)˜KÑ(Ô(€KÝŒy˜Ñ"Ô"€Hà€~Øˆˆà! 6Ð*ˆØÐð	UÝ)¨&Ô1ˆKˆKøÝð 	Uð 	Uð 	UÝÐ:×AÒAÀ&ÑIÔIÑJÔJÐPTÐTð	Uøøøð ˜1Œ~ˆØˆˆX�{ÐLÐL¥d¨;°q¬>Ñ&:Ô&:ÐL¸mÐLÐLÐLÐLÐLõ % XÑ.Ô.ˆØˆ>ÝÐ:×AÒAÀ(ÑKÔKÑLÔLÐLå˜vÔ& qÔ)ˆÝ•o fÔ-¨aÔ0Ñ1Ô1°MÑAˆØˆˆX�{Ð-Ð- fÐ-Ð-Ð-Ð-Ð-s   Á!A/ Á/.BÚstatvfsÚ
disk_usageÚusageztotal used freezTotal space in byteszUsed space in byteszFree space in bytesc                 ó¶   — t          j        | ¦  «        }|j        |j        z  }|j        |j        z  }|j        |j        z
  |j        z  }t          |||¦  «        S )zÖReturn disk usage statistics about the given path.

        Returned value is a named tuple with attributes 'total', 'used' and
        'free', which are the amount of total, used and free space, in bytes.
        )rF   rÇ  Úf_bavailÚf_frsizeÚf_blocksÚf_bfreeÚ_ntuple_diskusage)rl   r’   ÚfreeÚtotalÚuseds        r'   rÈ  rÈ  V  sV   € õ ŒZ˜ÑÔˆØŒ{˜Rœ[Ñ(ˆØ”˜bœkÑ)ˆØ”˜bœjÑ(¨B¬KÑ7ˆÝ  ¨¨dÑ3Ô3Ð3r&   c                 ó\   — t          j        | ¦  «        \  }}||z
  }t          |||¦  «        S )z×Return disk usage statistics about the given path.

        Returned values is a named tuple with attributes 'total', 'used' and
        'free', which are the amount of total, used and free space, in bytes.
        )r   Ú_getdiskusagerÏ  )rl   rÑ  rÐ  rÒ  s       r'   rÈ  rÈ  g  s3   € õ Ô& tÑ,Ô,‰ˆˆtØ�t‰|ˆÝ  ¨¨dÑ3Ô3Ð3r&   c                 óÂ  — t          j        d| ||¦  «         |€|€t          d¦  «        ‚|}|}|€d}nHt          |t          ¦  «        r3t          |¦  «        }|€"t          d                     |¦  «        ¦  «        ‚|€d}nHt          |t          ¦  «        s3t          |¦  «        }|€"t          d                     |¦  «        ¦  «        ‚t          j        | ||¦  «         dS )z¹Change owner user and group of the given path.

    user and group can be the uid/gid or the user/group names, and in that case,
    they are converted to their respective uid/gid.
    zshutil.chownNzuser and/or group must be setéÿÿÿÿzno such user: {!r}zno such group: {!r})rI   r‚   rX  ri   rß   rA  ÚLookupErrorrƒ   Úintr;  rF   r   )rl   ÚuserrQ  Ú_userÚ_groups        r'   r   r   r  sð   € õ „Iˆn˜d D¨%Ñ0Ô0Ð0à€|˜˜ÝÐ8Ñ9Ô9Ð9à€EØ€Fð €|Øˆˆå	�D�#Ñ	Ô	ð AÝ˜‘”ˆØˆ=ÝÐ2×9Ò9¸$Ñ?Ô?Ñ@Ô@Ð@à€}ØˆˆÝ˜�sÑ#Ô#ð CÝ˜%‘”ˆØˆ>ÝÐ3×:Ò:¸5ÑAÔAÑBÔBÐBå„HˆT�5˜&Ñ!Ô!Ð!Ð!Ð!r&   ©éP   é   c                 óH  — 	 t          t          j        d         ¦  «        }n# t          t          f$ r d}Y nw xY w	 t          t          j        d         ¦  «        }n# t          t          f$ r d}Y nw xY w|dk    s|dk    r�	 t          j        t          j                             ¦   «         ¦  «        }n1# t          t          t          f$ r t          j        | ¦  «        }Y nw xY w|dk    r|j        p| d         }|dk    r|j        p| d         }t          j        ||f¦  «        S )a  Get the size of the terminal window.

    For each of the two dimensions, the environment variable, COLUMNS
    and LINES respectively, is checked. If the variable is defined and
    the value is a positive integer, it is used.

    When COLUMNS or LINES is not defined, which is the common case,
    the terminal connected to sys.__stdout__ is queried
    by invoking os.get_terminal_size.

    If the terminal size cannot be successfully queried, either because
    the system doesn't support querying, or because we are not
    connected to a terminal, the value given in fallback parameter
    is used. Fallback defaults to (80, 24) which is the default
    size used by many terminal emulators.

    The value returned is a named tuple of type os.terminal_size.
    ÚCOLUMNSr   ÚLINESr–  )rØ  rF   Úenvironr9  rX  r   rI   Ú
__stdout__r4   ÚAttributeErrorr6   Úterminal_sizeÚcolumnsÚlines)Úfallbackræ  rç  Úsizes       r'   r   r   ’  sD  € ð(Ý•b”j Ô+Ñ,Ô,ˆˆøÝ•jÐ!ð ð ð ØˆˆˆðøøøðÝ•B”J˜wÔ'Ñ(Ô(ˆˆøÝ•jÐ!ð ð ð Øˆˆˆðøøøð �!‚|€|�u ’z�zð	.ÝÔ'­¬×(=Ò(=Ñ(?Ô(?Ñ@Ô@ˆDˆDøÝ¥
­GÐ4ð 	.ð 	.ð 	.õ Ô# HÑ-Ô-ˆDˆDˆDð	.øøøð �aŠ<ˆ<Ø”lÐ1 h¨q¤kˆGØ�AŠ:ˆ:Ø”JÐ- (¨1¤+ˆEåÔ˜W eÐ,Ñ-Ô-Ð-s/   ‚" ¢8·8¼A ÁA2Á1A2Â0B3 Â3+C!Ã C!c                 óª   — t           j                             | ¦  «        o4t          j        | |¦  «        ot           j                             | ¦  «         S ru   )rF   rl   rŽ   r'  rÂ   )rw   r¿   s     r'   Ú_access_checkrë  Ã  sD   € ÝŒG�NŠN˜2ÑÔð &¥2¤9¨R°Ñ#6Ô#6ð &Ý”G—M’M "Ñ%Ô%Ð%ð'r&   c                 óú  ‡ — t           j                             ‰ ¦  «        rt          ‰ |¦  «        r‰ S dS t	          ‰ t
          ¦  «        }|€[t           j                             dd¦  «        }|€9	 t          j        d¦  «        }n## t          t          f$ r t           j        }Y nw xY w|sdS |rFt          j        |¦  «        }|                     t          j        t           j        ¦  «        ¦  «        }n3t          j        |¦  «        }|                     t           j        ¦  «        }t           j        dk    r¼t           j        }|rt          j        |¦  «        }||vr|                     d|¦  «         t          j        d¦  «        pt*          }d„ |                     t           j        ¦  «        D ¦   «         }|rd„ |D ¦   «         }t-          ˆ fd	„|D ¦   «         ¦  «        r‰ g}nˆ fd
„|D ¦   «         }n‰ g}t/          ¦   «         }|D ]u}	t           j                             |	¦  «        }
|
|vrP|                     |
¦  «         |D ]8}t           j                             |	|¦  «        }t          ||¦  «        r|c c S Œ9ŒvdS )a3  Given a command, mode, and a PATH string, return the path which
    conforms to the given mode on the PATH, or None if there is no such
    file.

    `mode` defaults to os.F_OK | os.X_OK. `path` defaults to the result
    of os.environ.get("PATH"), or can be overridden with a custom search
    path.

    NÚPATHÚCS_PATHÚwin32r   ÚPATHEXTc                 ó   — g | ]}|¯|‘ŒS r%   r%   ©rÔ   rª  s     r'   rÖ   zwhich.<locals>.<listcomp>ü  s   € ÐJÐJÐJ˜3ÀcÐJ�3ÐJÐJÐJr&   c                 ó6   — g | ]}t          j        |¦  «        ‘ŒS r%   )rF   Úfsencoderò  s     r'   rÖ   zwhich.<locals>.<listcomp>ÿ  s"   € Ð;Ð;Ð;¨C•r”{ 3Ñ'Ô'Ð;Ð;Ð;r&   c              3   óŠ   •K  — | ]=}‰                      ¦   «                              |                      ¦   «         ¦  «        V — Œ>d S ru   )Úlowerr.  ©rÔ   rª  Úcmds     €r'   ú	<genexpr>zwhich.<locals>.<genexpr>  sA   øè è € ÐDÐD°Sˆs�yŠy‰{Œ{×#Ò# C§I¢I¡K¤KÑ0Ô0ÐDÐDÐDÐDÐDÐDr&   c                 ó   •— g | ]}‰|z   ‘ŒS r%   r%   r÷  s     €r'   rÖ   zwhich.<locals>.<listcomp>  s   ø€ Ð2Ð2Ð2 3�S˜3‘YÐ2Ð2Ð2r&   )rF   rl   rZ  rë  ri   r  râ  ÚgetÚconfstrrä  rX  Údefpathrô  r·  Úpathsepr  rI   r*  rs  ÚinsertÚgetenvÚ_WIN_DEFAULT_PATHEXTÚanyrÌ   rn   r\  rÃ   )rø  r¿   rl   Ú	use_bytesrs  Úpathext_sourceÚpathextÚfilesÚseenÚdirÚnormdirÚthefiler7   s   `            r'   r   r   È  s–  ø€ õ 
„w‡‚�sÑÔð Ý˜˜dÑ#Ô#ð 	ØˆJØˆtå˜3¥Ñ&Ô&€Ià€|ÝŒz�~Š~˜f dÑ+Ô+ˆØˆ<ð"Ý”z )Ñ,Ô,��øÝ"¥JÐ/ð "ð "ð "å”z���ð"øøøð ð Øˆtàð &ÝŒ{˜4Ñ Ô ˆØ�zŠz�"œ+¥b¤jÑ1Ô1Ñ2Ô2ˆˆåŒ{˜4Ñ Ô ˆØ�zŠz�"œ*Ñ%Ô%ˆå
„|�wÒÐå”ˆØð 	)Ý”[ Ñ(Ô(ˆFØ˜ÐÐØ�KŠK˜˜6Ñ"Ô"Ð"õ œ 9Ñ-Ô-ÐEÕ1EˆØJÐJ .×"6Ò"6µr´zÑ"BÔ"BÐJÑJÔJˆàð 	<Ø;Ð;°7Ð;Ñ;Ô;ˆGõ
 ÐDÐDÐDÐD¸GÐDÑDÔDÑDÔDð 	3Ø�EˆEˆEà2Ð2Ð2Ð2¨'Ð2Ñ2Ô2ˆEˆEð �ˆå‰5Œ5€DØð  ð  ˆÝ”'×"Ò" 3Ñ'Ô'ˆØ˜$ˆˆØ�HŠH�WÑÔÐØ ð  ð  �Ý”w—|’| C¨Ñ1Ô1�Ý   tÑ,Ô,ð  Ø�K�K�K�K�Kð øàˆ4s   Á/B ÂB$Â#B$)r   )F)FN)rB  r   r   NNNN)r   r   NNNN)Nr  )NNr   r   NNN)NN)rÜ  )fr*   rF   rI   rm   rÊ   Úcollectionsr:   ÚzlibrU  r8  rF  rV  ÚlzmarW  r7   r‡   r   r   rb   rk   r*  r/  rM   r‹   r  Ú__all__r6   r   r    r   r   r.   r5   r0   r2   rC   rT   r`   r   rs   rx   r|   r	   r
   r¦   r   r   r   r   rí   r   Ústat_resultrø   rû   r  r  rŠ   r  r  Úsupports_dir_fdrï   Úsupports_fdr´   r  r   Úavoids_symlink_attacksr!  r   r%  r&  r;  rA  rj  r~  r†  r   r   r   r   r   r­  r   r   r±  r¼  rÁ  r¦  rÃ  r   rÞ   Ú
namedtuplerÏ  rÑ  rÒ  rÐ  rÈ  r   r   rë  ÚF_OKÚX_OKr   r%   r&   r'   ú<module>r     s—	  ððð ð 
€	€	€	Ø 
€
€
€
Ø €€€Ø €€€Ø Ð Ð Ð Ø €€€ðØ€K€K€KØØ€O€OøØð ð ð Ø€O€O€OðøøøðØ€J€J€JØØ€N€NøØð ð ð Ø€N€N€NðøøøðØ€K€K€KØØ€O€OøØð ð ð Ø€O€O€Oðøøøð Œ7�dŠ?€ØÐ €ˆØ„7ˆgÒÐØ€L€L€L€LØð Ø€I€I€Ià&Ð5ˆ{ˆ{¨I€ð �7˜2˜zÑ*Ô*ÐO¨s¬|×/FÒ/FÀwÑ/OÔ/OÐ ØÐ7˜7˜7 5¨,Ñ7Ô7€ð ?Ð ðð ð €ð	ð 	ð 	ð 	ð 	ˆGñ 	ô 	ð 	ð@ð @ð @ð @ð @�Eñ @ô @ð @ð;ð ;ð ;ð ;ð ;�wñ ;ô ;ð ;ð6ð 6ð 6ð 6ð 6�ñ 6ô 6ð 6ð0ð 0ð 0ð 0ð 0�ñ 0ô 0ð 0ð&ð &ð &ð &ð &�Iñ &ô &ð &ðð ð ð ð ˜	ñ ô ð ð
 ð  ð  ð(>ð >ð >ð@ .:ð ð ð ð ð&ð ð ð ð4ð 4ð 4ð$Eð Eð EðRð Rð Rð +/ð >ð >ð >ð >ð >ð@ +/ð .ð .ð .ð .ð .ð2 €7ˆ2ˆ{ÑÔð Ø04ð ð ð ð ð ð ð0ð ð ð +/ð Hð Hð Hð Hð HðT '+ð ð ð ð ð ð$ (,ð ð ð ð ð ð"
ð 
ð 
ð 7<ð@ð @ð @ð @ðD !&¨dÀ%Ø&+¸5ð.2ð .2ð .2ð .2ð` €7ˆ2Œ>Ð/Ñ0Ô0ð $ðð ð ðð ð ð ðð ð ð$ð $ð $ð0ð 0ð 0ð>>=ð >=ð >=ð@ ”g˜rœw¨¬	°2´8Ð<ØÔ'ò(ð <à”Z 2¤>Ð1ð<ð ”W Ô ;Ð;ð ð
M-¸dð M-ð M-ð M-ð M-ð M-ðb !2€Ô ð.ð .ð .ð$ "'ð @ð @ð @ð @ðDð ð ðGð Gð Gð
ð ð ð$ð ð ð$ LMØ@DðDð Dð Dð DðL ;<Ø@Dð7ð 7ð 7ð 7ð~ 
ˆmÐ0Ð1Ø% tð-ðÐ ð
 ð DØ!.Ð1EÐ0FØ 2°Dð!:Ð�WÑà,¨b°*¸dÐCÐ�UÑàð ;Ø!.Ð1FÐ0GØ 3°Tð!;Ð�WÑð ð 8Ø!.Ð1CÐ0DØ 0°$ð!8Ð�WÑðð ð ðHð Hð Hð Hð*ð ð ð KLØ;?ð=ð =ð =ð =ð@	ð 	ð 	ðFð Fð Fð$ CGØ')ðJð Jð Jð Jð,ð ð ðð ð ðð ð ð< 6:ð ð ð ð ð ð( ˆh˜¨Ð-DÐEØˆh˜¨¨ZÐ8ðð €ð
 ð 4Ø!*¨FÐ 3°_ÀbØ 2ð 4€O�GÑð ð 5Ø!+¨WÐ 5°ÈØ 3ð 5€O�GÑð ð 2Ø!*¨FÐ 3°_ÀbØ 0ð 2€O�GÑðð ð ð..Àdð ..ð ..ð ..ð ..ð ..ðb €7ˆ2ˆyÑÔð !4à‡N‚N�<Ñ Ô Ð Ø.˜Ô.¨wÐ8IÑJÔJÐØ&<ÐÔÔ#Ø%:ÐÔÔ"Ø%:ÐÔÔ"ð
4ð 
4ð 
4ð 
4ð ð 4à‡N‚N�<Ñ Ô Ð Ø.˜Ô.¨wÐ8IÑJÔJÐð4ð 4ð 4ð"ð "ð "ð "ð@+.ð +.ð +.ð +.ðb'ð 'ð 'ð
 ”G˜bœgÑ%¨Dð Nð Nð Nð Nð Nð Ns-   œ$ ¤.­.²: ºAÁAÁA ÁAÁA