+
    :1j5B                        R t ^ RIt^ RIt^ RIt^ RIt^ RIHtHtH	t	 ^ RI
Ht ^ RIHtHtHtHtHt ^ RIHtHt ^RIHt ^RIHt ^RIHt ^R	IHt ^R
IHt ^RIH t  ^RI!H"t"H#t#H$t$H%t% ^RI&H't' ^RI(H)t) ^RI*H+t+ ^RI,H-t-H.t.H/t/H0t0 ^RI1H2t2 ^RIH3t3 ^RI4H5t5 ^RI6H7t7H8t8H6t6H9t9H:t: ^RI;H<t< ^RI=H>t>  ! R R4      t?]! ]@4      tA]+P                  ! RRR]! R4      RR7       ]3t3]! R4      tC]! R 4      tDR! tER" tF]+! R#R4      R$ 4       tG]+! R#R4       ! R% R&4      4       tH]+! RRR'R7      R6R( l4       tIR7R* ltJR+ tKR, tLR- tM]+! R#R4      R. 4       tNR/ tOR0 tP]2P                  R)3R1 ltRR2 tSR3 tTR4 tUR8R5 ltVR# )9z=Disk utility functions for creating new files or directories.N)EACCESEPERMEROFS)	getLogger)dirnameisdirisfilejoinsplitext)copyfileobjcopystat)
CondaError)dals)PACKAGE_CACHE_MAGIC_FILE)context)on_win)TRACE)
ensure_padexpandwin_path_double_escapewin_path_ok)is_valid_import_path)json)
deprecated)BasicClobberErrorCondaOSErrorNoWritableEnvsDirErrormaybe_raise)LinkType)mkdir_prm_rf)islinklexistslinkreadlinksymlink)make_executable)touchc                   \   a  ] tR t^(t o RtRtRtRR ltR tR t	R]
3R ltR tR	 tR
tV tR# )TemporaryDirectorya  Create and return a temporary directory.  This has the same
behavior as mkdtemp but can be used as a context manager.  For
example:

    with TemporaryDirectory() as tmpdir:
        ...

Upon exiting the context, the directory and everything contained
in it are removed.
NFc                >    \         P                  ! WV4      V n        R # N)tempfilemkdtempname)selfsuffixprefixdirs   &&&&:lib/python3.14/site-packages/conda/gateways/disk/create.py__init__TemporaryDirectory.__init__8   s    $$VS9	    c                R    R V P                   P                   RV P                  : R2# )< >)	__class____name__r/   r0   s   &r4   __repr__TemporaryDirectory.__repr__;   s&    4>>**+1TYYM;;r7   c                    V P                   # r,   )r/   r>   s   &r4   	__enter__TemporaryDirectory.__enter__>   s    yyr7   c                   ^RI Hp V P                  '       d1   V P                  '       g    V! V P                  4       RV n        R# R# R#   \        \
        3 d&   pRT 9  d   h T! T P                  4        Rp?L>Rp?ii ; i)   r    NoneNT)deleter!   r/   _closed	TypeErrorAttributeError)r0   _warn	_warnings_rm_rfexs   &&&  r4   cleanupTemporaryDirectory.cleanupA   sj    +999T\\\"tyy!
  DL *9 ~. "B4(tyy!!"s   A BA<<Bc                &    V P                  4        R # r,   rO   )r0   excvaluetbs   &&&&r4   __exit__TemporaryDirectory.__exit__M   s    r7   c                *    V P                  R R7       R# )T)rK   NrR   r>   s   &r4   __del__TemporaryDirectory.__del__P   s    4 r7   )rH   r/   ) tmpN)r=   
__module____qualname____firstlineno____doc__r/   rH   r5   r?   rB   rL   rO   rV   rY   __static_attributes____classdictcell__)__classdict__s   @r4   r*   r*   (   s@     	 DG:< "Y 
 ! !r7   r*   z26.9z27.3	stdoutlogzconda.stdoutlogz/Use `conda.gateways.streams.stdoutlog` instead.)addendumz
# -*- coding: utf-8 -*-
import re
import sys

from %(module)s import %(import_name)s

if __name__ == '__main__':
    sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
    sys.exit(%(func)s())
z
# -*- coding: utf-8 -*-
if __name__ == '__main__':
    import os
    import sys
    args = ["%(source_full_path)s"]
    if len(sys.argv) > 1:
        args += sys.argv[1:]
    os.execv(args[0], args)
c                     \         P                  \        R V 4       \        V RRR7      ;_uu_ 4       p\        P                  ! W4       RRR4       R#   + '       g   i     R# ; i)zwriting json to file %swutf-8modeencodingN)logr   openr   dump)	file_pathobjfos   && r4   write_as_json_to_filerr   }   s?    GGE,i8	icG	4	4		# 
5	4	4	4s   AA$	c                 &   \        V4      '       g   \        R 4      h\        V4      '       g   \        R4      h\        V 4      '       d!   \        \	        RV \
        R7      \
        4       VP                  R4      ^ ,          p\        RVRVRV/,          pVe   ^RIH	p V! V4      pMRp\        V R	R
R7      ;_uu_ 4       pVe   VP                  V4       VP                  V4       RRR4       Ve   \        V 4       V #   + '       g   i     L!; i)z*'module' is not a valid Python import pathz('func' is not a valid Python import pathNsource_pathtarget_pathr   .modulefuncimport_name) generate_shebang_for_entry_pointrg   rh   ri   )r   
ValueErrorr#   r   r   r   splitpython_entry_point_templatecore.portabilityr{   rm   writer'   )	target_full_pathpython_full_pathrx   ry   rz   pyscriptr{   shebangrq   s	   &&&&     r4   create_python_entry_pointr      s    ''EFF%%CDD   ,
 	
 **S/!$K*&{. H
 #H23CD	S7	;	;rHHW
 
<
 () 
<	;s    'D  D	z26.3c                    \        V4      '       d!   \        \        R V\        R7      \        4       \        R\        V 4      /,          p\        \        V4      4      '       g   \        \        V4      4       \        VR4      ;_uu_ 4       pRV9   d   \        VR4      pVP                  RV R24       VP                  V4       R R R 4       \        V4       R #   + '       g   i     L; i)Nrt   source_full_pathrg   r:   "z#!
)r#   r   r   r    application_entry_point_templater   r   r   r   rm   r   r   r'   )r   r   r   entry_pointrq   s   &&&  r4   create_application_entry_pointr      s        ,
 	
 323CD6 K )*++()*		$	$"")*:C@
2&'r*+
	 
%
 $% 
%	$s   :CC+	c                   N   a a ] tR t^t oR tR tV 3R ltRR ltR tRt	Vt
V ;t# )ProgressFileWrapperc                    Wn         W n        \        ^\        P                  ! VP                  4       4      P                  4      V n        ^ V n        R# )rE   N)	progress_fileprogress_update_callbackmaxosfstatfilenost_sizeprogress_file_sizeprogress_max_pos)r0   fileobjr   s   &&&r4   r5   ProgressFileWrapper.__init__   s;    $(@%"%a'..2B)C)K)K"L !r7   c                .    \        V P                  V4      # r,   )getattrr   )r0   r/   s   &&r4   __getattr__ProgressFileWrapper.__getattr__   s    t))400r7   c                   < VP                  R 4      '       d   \        SV `	  W4       R# \        V P                  W4       R# )	progress_N)
startswithsuper__setattr__setattrr   )r0   r/   rT   r<   s   &&&r4   r   ProgressFileWrapper.__setattr__   s/    ??;''G,D&&4r7   c                \    V P                   P                  V4      pV P                  4        V# r,   )r   readprogress_update)r0   sizedatas   && r4   r   ProgressFileWrapper.read   s)    !!&&t,r7   c                    \        V P                  V P                  P                  4       4      p\	        WP
                  4      pWn        WP
                  ,          pV P                  V4       R # r,   )r   r   r   tellminr   r   )r0   posrel_poss   &  r4   r   #ProgressFileWrapper.progress_update   sU    $''););)@)@)BC#../ #///%%g.r7   )r   r   r   r   ))r=   r]   r^   r_   r5   r   r   r   r   ra   rb   __classcell__)r<   rc   s   @@r4   r   r      s#     "15
/ /r7   r   zHUse `conda.base.context.context.plugin_manager.extract_package` instead.c                     ^RI Hp V! W4      # )   )extract_conda_or_tarball) plugins.package_extractors.condar   )tarball_full_pathdestination_directoryr   r   s   &&& r4   extract_tarballr      s     M#$5MMr7   Fc                     ^ RI pVP                  \        V \        V4      4      VV \        P
                  R7       R#   \         d!    ^ RIHp ^RI	H
p T! RT! 4        24        R# i ; i)z
Create cross-platform menu items (e.g. Windows Start Menu)

Passes all menu config files %PREFIX%/Menu/*.json to ``menuinst.install``.
``remove=True`` will remove the menu items.
N)remover2   root_prefix)
format_exc)rd   zmenuinst Exception
)menuinstinstallr	   r   r   r   	Exception	tracebackr   gateways.streamsrd   )r2   ro   r   r   r   rd   s   &&&   r4   	make_menur      sd    9Y/0++	 	 	
  9(1(789s   :> 'A)(A)c                    \        V 4      '       d   \        R V  RV R24      p\        V4      h \        P                  \        RW4       \        W4       R#   \         d&    \        P                  RY4       \        Y4        R# i ; i)z8
        Cannot hard link a soft link
          source: z
          destination: z	
        zcreating hard link %s => %sz%hard link failed, so copying %s => %sN)	r"   r   r   rl   r   r$   OSErrorinfo_do_copy)srcdstmessages   && r4   create_hard_link_or_copyr     s    c{{% u 	
 7##4c?S 8#Cs   &A ,BBc                     \         '       d   R # \        V 4      ;'       d>    \        V 4      '       * ;'       d&    \        P                  ! V \        P
                  4      # F)r   r   r"   r   accessX_OK)paths   &r4    _is_unix_executable_using_ORIGINr     s:    vd|MMF4L 0MMRYYtRWW5MMr7   c                     \        V 4      '       d   \        W4       R# \        P                  \        R W4       \	        W4       R# )soft linking %s => %sN)r   copyrl   r   r&   )r   r   s   &&r4   _do_softlinkr   %  s/    ',,
 	S.9r7   c                     \         '       g   \        R 4      h\        V 4      w  r#\        VR4      ;_uu_ 4       pVP	                  RV R24       RRR4       V#   + '       g   i     T# ; i)zOnly runs on Windows.rg   z@echo off
call "z" %*
N)r   RuntimeErrorr
   rm   r   )r   r   src_root_fs   &&   r4   create_fake_executable_softlinkr   1  sX    62333-KH	c31	#H:V45 
J 
Js   AA*	c                     \         '       g\   \        V 4      '       dK   \        V 4      pVP                  R 4      '       g)   \        P	                  \
        RW4       \        W!4       R# \        W4       R# )/r   N)r   r"   r%   r   rl   r   r&   r   )r   r   src_points_tos   && r4   r   r   <  sM    6fSkk '',,GGE2C=M'Sr7   c           	         \         P                  \        R W4       Rp\        V R4      ;_uu_ 4       p\        VR4      ;_uu_ 4       p\        W4V4       RRR4       RRR4        \	        W4       R#   + '       g   i     L&; i  + '       g   i     L1; i  \
         d"   p\         P                  RT4        Rp?R# Rp?ii ; i)zcopying %s => %si  @ rbwbN%r)rl   r   rm   r   r   r   debug)r   r   buffer_sizefsrcfdstes   &&    r4   r   r   H  s    GGE%s0 K	c4D#t__K0  
	 _ 
   			$s;   BA2	B%B 2B=BB	C#B??Cc                    V\         P                  8X  dw   \        V4      '       dY   \        V4      '       gH   V'       g   \	        \        W\        4      \        4       \        P                  R V4       \        V4       \        V4       R# \        V 4      '       g   \        RV  R24      h\        V4      '       dH   V'       g   \	        \        W\        4      \        4       \        P                  RV4       \        V4       V\         P                  8X  dI   \        V 4      '       d   \        RV  24      h \        P                  \        RW4       \        W4       R# V\         P$                  8X  d   \'        W4       R# V\         P"                  8X  d   \#        W4       R# \        R	V: 24      h  \         dE   p\        P!                  RT4       \        P!                  RTT T4       \#        Y4        Rp?R# Rp?ii ; i)
z-file exists, but clobbering for directory: %rNz*Cannot link a source that does not exist. z;
Running `conda clean --packages` may resolve your problem.zfile exists, but clobbering: %rzCannot hard link a directory. zhard linking %s => %sr   zFhard-link failed. falling back to copy
  error: %r
  src: %s
  dst: %szDid not expect linktype=)r   	directoryr#   r   r   r   r   rl   r   r!   r   r   hardlinkr   r$   r   r   r   softlinkr   )r   r   	link_typeforcer   s   &&&& r4   create_linkr   ]  s   H&&& 3<<c

-c@'JHHDcJ#J3<<8 >I I
 	

 s||)#G<gF2C8c
H%%%::=cUCDD	GGE2C=N 
h''	'S	hmm	#S3I=ABB%  	IIdAII  NN	s   9&F4 4H?9G>>Hc           
         \        V4      p\        V4      p\        V4      ^ 8X  d   . # \        P                  ! 4       w  rV V Fw  p\        P
                  P                  Ws4      p\        VR4      '       d'   VP                  \        P                  ! 4       RR7      p\        P                  ! WWR,           4       Ky  	  \        P                  ! V4       RRRRR	R
V.p\        V^ ,          4      ^8  d:   \        VP                  R4      ^,          4      ^8  d   VP                  RR.4       T .VR&   \         P!                  \"        V4       ^RIHp	 V	! W4      w  rp\        P(                  ! V4       . p\+        W4       FO  w  r\-        V4      '       g)   \/        R4      p\         P1                  VV VVVV
V4       K>  VP3                  V4       KQ  	  V#   \        P(                  ! T4       i ; i)    encodereplace)errors   
z-Wiz-m
compileallz-qz-lz-irw   z-j0:r   r   N)any_subprocessa  
            pyc file failed to compile successfully (run_command failed)
            python_exe_full_path: %s
            py_full_path: %s
            pyc_full_path: %s
            compile rc: %s
            compile stdout: %s
            compile stderr: %s
            )tuplelenr-   mkstempr   r   relpathhasattrr   sysgetfilesystemencodingr   closeintr}   extendrl   r   
subprocessr   r   zipr   r   r   append)python_exe_full_pathpy_full_pathspyc_full_pathsr2   py_verfdfilenamer   commandr   stdoutstderrrccreated_pyc_pathspy_full_pathpyc_full_pathr   s   &&&&&            r4   compile_multiple_pycr    s    -(M>*N
=Q	##%LBA*Aq(##HHS668HKHHRU#	 
 	$dD$I vay>Q3v||C'8';#<q#@NND#;',-w/ ,G<
		('*='I#m$$
G HH$ $$]3/ (J2 9 			(s   DG G.c                     \         P                  \        R V 4       \        V 4      P                  \        R4      4      p\	        \        V \        4      RVR7       \	        \        V R4      VR7       R#   \         dH   pTP                  \        \        \        39   d"   \         P                  \        RT 4        Rp?R# h Rp?ii ; i)	z%creating package cache directory '%s'~Tmkdir	sudo_safeurls)r  z*cannot create package cache directory '%s'NF)rl   r   r   r   r(   r	   r   r   errnor   r   r   )pkgs_dirr  r   s   &  r4   create_package_cache_directoryr    s    
>I8$//s<	d856diXd8V$	:   77vue,,GGEGRs   A1A5 5C ;CCCc                 t   \        V R 4      p \        P                  \        RV 4       \        V 4      P	                  \        R4      4      p\        \        W4      RVR7       R#   \         dH   pTP                  \        \        \        39   d"   \        P                  \        RT 4        Rp?R# h Rp?ii ; i).conda_envs_dir_testzcreating envs directory '%s'r  Tr  z!cannot create envs directory '%s'NF)r	   rl   r   r   r   r(   r   r  r   r   r   )envs_direnvs_dir_magic_filer  r   s   &   r4   create_envs_directoryr!    s     x)?@	5x@8$//s<	d81S   77vue,,GGE>Is   AA% %B70;B21B22B7c                    \         P                   Fw  pV\        P                  8X  d   K  \	        VR 4      p\        V4      '       d     \        VR4      P                  4        Vu # V '       g   K`  \        V4      pV'       g   Ku  Vu # 	  \        \         P                  4      h  \         d     \        P                  \        RT4        K  i ; i)r  az#Tried envs_dir but not writable: %s)r   	envs_dirsr   devnullr	   r   rm   r   r   rl   r   r!  r   )creater  r   was_createds   &   r4   first_writable_envs_dirr(    s     %%rzz!
 #8-CD%&&P(#.446 V/9K{% &( !!2!2
33  PDhOPs   	B%%&CC)NNr   )T)Wr`   r   r   r-   warningsrL   r  r   r   r   loggingr   os.pathr   r   r   r	   r
   shutilr   r   r[   r   
auxlib.ishr   base.constantsr   base.contextr   common.compatr   common.constantsr   common.pathr   r   r   r   common.path.pythonr   common.serializer   deprecationsr   
exceptionsr   r   r   r   models.enumsr   r   rG   r!   r$   r"   r#   r%   r&   permissionsr'   updater(   r*   r=   rl   constantr~   r   rr   r   r   r   r   r   r   r   r   r   r   r   r   r   r  r  r!  r(   r7   r4   <module>r<     s   D 	 
   & &  : : (   6 # # % R R 6 $ &  %   : : ( 
*! *!Z  
  

 > "
  $(	$  %P FF& &8 FF/ / /: 

W
N
N90&N	 FF 	* %-$5$5U 0Cf=@ (4r7   