
    -hhc                        S SK r S SKrS SKrS SKrS SKrS SKrS SKr\ R                  \ R                  /q	Sq
SqSqS rS rS rS rS rS rSS jrS	 rS
 rS rS rS rS rS rSS jrSS jrS rS rS rS r S r!S r"S r#S r$S r%S r&\ RN                  RP                  (       d  \&" 5         S r)\*S:X  a  \)" 5         gg)    Nc                 t    [         R                  R                  (       a  [        U [         R                  S9  g g )Nfile)sysflagsverboseprintstderr)messages    -/opt/python-3.13.8/usr/lib/python3.13/site.py_tracer   ]   s"    
yygCJJ'     c                      [         R                  R                  " U 6 n [         R                  R                  U5      nU[         R                  R                  U5      4$ ! [         a     N-f = fN)ospathjoinabspathOSErrornormcase)pathsdirs     r   makepathr   b   s[    
'',,
Cggooc"   %%%  s   A 
A,+A,c                  P   [        [        R                  R                  5       5       H  n S n U R                  R
                  nUS;  a  M$   [        R                  R                  U R                  5      U l         [        R                  R                  U R                  5      U l        M     g ! [         a5     U R                  R                  R
                  n N! [         a      Nf = ff = f! [        [        [        4 a     Nf = f! [        [        [        4 a     M  f = f)N>   _frozen_importlib_frozen_importlib_external)setr   modulesvalues
__loader__
__module__AttributeError__spec__loaderr   r   r   __file__r   	TypeError
__cached__)mloader_modules     r   	abs_pathsr*   k   s    ##%&	LL33M  SS	4AJ	77??1<<8AL! '  	 !

 1 1 < <! 	 3 		 3 		sM   B/.C1<.D/
C.: C
C*&C.)C**C.1D	D	D%$D%c                      / n [        5       n[        R                   H9  n[        U5      u  p#X1;  d  M  U R	                  U5        UR                  U5        M;     U [        R                  S S & U$ r   )r   r   r   r   appendadd)Lknown_pathsr   dircases       r   removeduppathsr1      s]    
 	A%Kxx  }%HHSMOOG$  CHHQKr   c                      [        5       n [        R                   HH  n [        R                  R	                  U5      (       a   [        U5      u  p#U R                  U5        MH  MJ     U $ ! [         a     M[  f = fr   )r   r   r   r   existsr   r-   r&   )ditem_itemcases       r   _init_pathinfor8      se    A	ww~~d##&tnh $  H  		s   AA))
A76A7c           	      "   Uc  [        5       nSnOSn[        R                  R                  X5      n [        R                  " U5      n[        USS5      [        R                  -  (       d#  [        USS5      [        R                  -  (       a  [        SU< 35        g [        SU< 35         [        R                  " U5       nUR                  5       nS S S 5         WR                  S5      n[%        UR'                  5       S5       H  u  pU
R)                  S5      (       a  M  U
R+                  5       S:X  a  M3   U
R)                  S5      (       a  [-        U
5        MW  U
R/                  5       n
[1        X
5      u  pX;  aX  [        R                  R3                  U5      (       a2  [4        R                  R7                  U5        UR9                  U5        M  M  M     U(       a  S nU$ ! [
         a     g f = f! , (       d  f       GN+= f! [
         a     g f = f! [         aH    SS KnWR                  UR#                  5       5      n[        S	U< S
UR#                  5       < 35         GN}f = f! [:         a  n[=        SU	S SU S3[4        R>                  S9  SS K nURC                  U5       H5  nUR'                  5        H  n
[=        SU
-   [4        R>                  S9  M      M7     [=        S[4        R>                  S9   S nA  GM*  S nAff = f)NTFst_flagsr   st_file_attributeszSkipping hidden .pth file: zProcessing .pth file: z	utf-8-sigzCannot read z# as UTF-8. Using fallback encoding    # )zimport zimport	zError processing line r4   z of z:
r   z  z
Remainder of file ignored)"r8   r   r   r   lstatr   getattrstat	UF_HIDDENFILE_ATTRIBUTE_HIDDENr   io	open_codereaddecodeUnicodeDecodeErrorlocalegetencoding	enumerate
splitlines
startswithstripexecrstripr   r3   r   r,   r-   	Exceptionr	   r
   	tracebackformat_exception)sitedirnamer/   resetfullnamestfpth_contentrI   nliner   r0   excrR   records                   r   
addpackager_      s   
 $&ww||G*HXXh 
Z	#dnn	4	)1	-0J0J	J,XL9:
#H<01\\(#q&&(K $

D "((5 [335q9??3::<2	677T
;;=D#G2LC)bggnnS.A.A$( /B) :. e   $#   D 	!((););)=>h\ ***0*<*<*>)AC 	DD,  	*1Q%tH:SAzz##44S9"--/D$t)#**5 0 : /cjjA	st   G* /H G:H H >!I1!A6I1*
G76G7:
H	H 	H 
HHAI.-I.1
L;BL		Lc                    [        SU < 35        Uc  [        5       nSnOSn[        U 5      u  pX1;  a0  [        R                  R                  U 5        UR                  U5         [        R                  " U 5      nU Vs/ s H5  nUR                  S5      (       d  M  UR                  S5      (       a  M3  UPM7     nn[        U5       H  n[        XU5        M     U(       a  S nU$ ! [         a     g f = fs  snf )NzAdding directory: TFz.pth.)r   r8   r   r   r   r,   r-   r   listdirr   endswithrM   sortedr_   )rT   r/   rV   sitedircasenamesrU   s         r   
addsitedirrg      s     {+,$&#G,G% $

7# $ Dedf% .2ooc.B eE Du7+.   Ds$   %C& ?C6C65C6&
C32C3c                     [         R                  R                  (       a  g[        [        S5      (       aB  [        [        S5      (       a-  [        R
                  " 5       [        R                  " 5       :w  a  g [        [        S5      (       aB  [        [        S5      (       a-  [        R                  " 5       [        R                  " 5       :w  a  g g)NFgetuidgeteuidgetgidgetegidT)	r   r   no_user_sitehasattrr   rj   ri   rl   rk    r   r   check_enableusersiterp      sw     yyr8Y!7!7::<299;&r8Y!7!7::<299;&r   c                      g)NPythonro   ro   r   r   _get_implementationrs     s    r   c            	         [         R                  R                  SS 5      n U (       a  U $ [        R                  S;   a  g S n[         R
                  S:X  a9  [         R                  R                  S5      =(       d    SnU" U[        5       5      $ [        R                  S:X  aB  [        R                  (       a-  U" SS[        R                  S	[        R                  S S
 -  5      $ U" SS5      $ )NPYTHONUSERBASE>   iostvoswasivxworkswatchos
emscriptenc                  v    [         R                  R                  [         R                  R                  " U 6 5      $ r   )r   r   
expanduserr   )argss    r   joinuser_getuserbase.<locals>.joinuser+  s$    ww!!"'',,"566r   ntAPPDATA~darwinLibraryz%d.%d   z.local)	r   environgetr   platformrU   rs   
_frameworkversion_info)env_baser   bases      r   _getuserbaser   "  s    zz~~.5H ||RR7 
ww$zz~~i(/C1344
||xCNNY#"2"22A"668 	8 C""r   c                    [         R                  n[        [         S5      (       a  S[         R                  ;   a  SnOSn[	        5       nUR                  5       n[        R                  S:X  a*  [         R                  R                  SS5      nU  SU U S3$ [         R                  S:X  a  [         R                  (       a  U  S	U S
3$ U  SUS    SUS    U S
3$ )Nabiflagstr>   r   ra   \z\site-packagesr   z/lib/z/site-packagesz/lib/pythonr   r<   )r   r   rn   r   rs   lowerr   rU   winverreplacer   r   )userbaseversion
abi_threadimplementationimplementation_lower	ver_nodots         r   	_get_pathr   :  s    GsJC3<<$7

(*N)//1	ww$JJ&&sB/	2n-i[HH
||xCNN5!5 6nEEZ{71:,a
|J<~VVr   c                  0    [         c
  [        5       q [         $ r   )	USER_BASEr   ro   r   r   getuserbaser   M  s      N	r   c                  \    [        5       n [        c  U c  Sq[        $ [        U 5      q[        $ )NF)r   	USER_SITEENABLE_USER_SITEr   )r   s    r   getusersitepackagesr   Z  s7     }H$  "(+Ir   c                     [        S5        [        5       n[        (       a/  [        R                  R                  U5      (       a  [        X5        U $ )NzProcessing user site-packages)r   r   r   r   r   isdirrg   )r/   	user_sites     r   addusersitepackagesr   k  s;     *+#%IBGGMM)449*r   c                    / n[        5       nU c  [        n U  GHQ  nU(       a  X2;   a  M  UR                  U5        [        5       R	                  5       n[
        R                  n[        [
        S5      (       a  S[
        R                  ;   a  SnOSn[        R                  S:X  a  [
        R                  /n[
        R                  S:w  a  UR                  S5        U HD  n[        R                  R                  X8U US    SUS    U 3S	5      n	UR                  U	5        MF     GM  UR                  U5        UR                  [        R                  R                  US
S	5      5        GMT     U$ )Nr   r   r>   /libr   ra   r<   zsite-packagesLib)r   PREFIXESr-   rs   r   r   r   rn   r   r   sep
platlibdirr,   r   r   )
prefixessitepackagesseenprefixr   verr   libdirslibdirr   s
             r   getsitepackagesr   z  s/    L5D,.4463
##s||(;JJ66S=~~&G~~&u%!ww||F'5&6s1vhaAx
|$T$35 ##D)	 " 'VUO LM/ 0 r   c                     [        S5        [        U5       H4  n[        R                  R	                  U5      (       d  M)  [        X 5        M6     U $ )NzProcessing global site-packages)r   r   r   r   r   rg   )r/   r   rT   s      r   addsitepackagesr     s=    
,-"8,77==!!w, - r   c                      [         R                  S:X  a  Sn OSn [        R                  " SU 5      [        l        [        R                  " SU 5      [        l        g )Nr   zCtrl-Z plus ReturnzCtrl-D (i.e. EOF)quitexit)r   r   _sitebuiltinsQuitterbuiltinsr   r   )eofs    r   setquitr     sA     
vv~"!!))&#6HM!))&#6HMr   c                  l   [         R                  " S[        R                  5      [        l        [         R                  " SS5      [        l        / / p[        [        SS 5      nU(       dB  [        [        S5      (       a-  [        R                  R                  [        R                  5      nU(       aa  U R                  SS/5        UR                  [        R                  R                  U[        R                  5      U[        R                  /5        [         R                  " SS	X5      [        l        g )
N	copyrightcreditsz    Thanks to CWI, CNRI, BeOpen, Zope Corporation, the Python Software
    Foundation, and a cast of thousands for supporting Python
    development.  See www.python.org for more information._stdlib_dirr%   zLICENSE.txtLICENSElicensez'See https://www.python.org/psf/license/)r   _Printerr   r   r   r   r@   rn   r   r   dirnamer%   extendr   pardircurdirr   )filesdirsheres      r   setcopyrightr     s    &//S]]KH$--i :> ?H b4 3t,DGB
++wwr{{+mY/0RWW\\$		2D"))DE$--1Hr   c                  @    [         R                  " 5       [        l        g r   )r   _Helperr   helpro   r   r   	sethelperr     s    !))+HMr   c                  
   [         R                  R                  (       d(  [        R                  R                  S5      n U (       a  U $ [        R                  R                  [        R                  R                  S5      S5      $ )NPYTHON_HISTORYr   z.python_history)	r   r   ignore_environmentr   r   r   r   r   r}   )historys    r   gethistoryfiler     sU    
 99''**..!12N77<<**3/ r   c                  "    [         [        l        g r   )register_readliner   __interactivehook__ro   r   r   enablerlcompleterr     s     0Cr   c                    ^^ [         R                  R                  (       d  [        R                  " S5      n OSn SS Kn  SS KnSS Kn U (       a  SnO[         R                  nU Vs/ s H  ofS:w  d  M
  UPM     sn[         l	         SS K
n[        R                  S:X  a  SS KnUR                  R                  4nOSS KnUR                   R                  nSSKJn  U[         l	        UbD  UR&                  S:X  a  UR)                  S5        OUR)                  S	5         UR+                  5         Ub  UR/                  5       S:X  a_  [1        5       mU(       a  WR                  m[,        /WQ7n	OUc  g Um[,        n	 TR3                  T5        UU4S
 jn
UR5                  U
5        g g ! [         a    S n GNkf = f! [         a     g f = fs  snf ! U[         l	        f = f! [         a     g f = f! [,         a     Nf = f! U	 a     Nzf = f)NPYTHON_BASIC_REPLFr   r>   r   )CAN_USE_PYREPLeditlinezbind ^I rl_completeztab: completec                     >  TR                  T 5        g ! [        [        4 a     g [         a    [        R
                  (       a   g e f = fr   )write_history_fileFileNotFoundErrorPermissionErrorr   errnoEROFS)r   readline_modules   r   write_history(register_readline.<locals>.write_history=  sD    
227;%7   ;;	s    A	A	A	)r   r   r   r   getenvatexitreadlinerlcompleterImportErrorr   _pyrepl.readlinerU   _pyrepl.windows_consolewindows_console_error_pyrepl.unix_consoleunix_console_pyrepl.mainr   backendparse_and_bindread_init_filer   get_current_history_lengthr   read_history_fileregister)r   r   r   r   r   original_pathp_pyreplconsole_errors
exceptionsr   r   r   s              @@r   r   r     s    99''II&9:!	 "NHHM#0<=aG=<CH
)'77d?2&-&=&=&D&D%FN/%,%9%9%@%@N7(  z)##$9:##O4	##% 8>>@AE !"%..O!3N3J&O J	--g6	 	&I FY  	H	   = )   	
 	6  		s   F% F8 
	G G (	G5G;G AG G G- :G= %F51F8 4F55F8 8
GGG GG 
G*)G*-
G:9G:=HHc                 b   [         R                  n[        R                  S:X  a%  SU;   a  [         R                  S   =n[        l        O[        R
                  n[         R                  R                  [         R                  R                  U5      5      n[         R                  R                  U5      nS [        l	        Sn[        S [         R                  R                  X55      [         R                  R                  XE5      4 5       S 5      nU(       Ga  UnSn[        USS9 n	U	 Hx  n
SU
;   d  M  U
R                  S5      u  pnUR                  5       R                  5       nUR                  5       nUS	:X  a  UR                  5       nMe  US
:X  d  Mm  U[        l	        Mz     S S S 5        U=[        l        [        l        [%        U [        R                   /5        US:X  a&  [&        R)                  S[        R                   5        U $ [        R                   /qSqU $ ! , (       d  f       N= f)Nr   __PYVENV_LAUNCHER__z
pyvenv.cfgc              3   r   #    U  H-  n[         R                  R                  U5      (       d  M)  Uv   M/     g 7fr   )r   r   isfile).0conffiles     r   	<genexpr>venv.<locals>.<genexpr>Z  s/      	
& ww~~h'	 H &s   (7	7truezutf-8)encoding=zinclude-system-site-packageshomer   F)r   r   r   r   _base_executable
executabler   r   r   _homenextr   open	partitionrN   r   r   exec_prefixr   r   insertr   )r/   envr  exe_dirsite_prefixconf_basenamecandidate_confvirtual_confsystem_siterY   r\   keyr6   values                 r   venvr  M  s    **C
||x$9S$@,.JJ7L,MM
S)^^
ggoobggooj9:G''//'*KCI M	
W4[8&	
 		N % ,1Q$;$(NN3$7MCE))+++-C!KKME<<&+kkm$)	  2 (32
S_ 	cjj\2 & OOAszz*
  

|H$1 21s   '
H 5AH H  
H.c                       SS K n g ! [         a  nUR                  S:X  a   S nAg e S nAff = f! [         a  n[        R
                  R                  (       a+  [        R                  " [        R                  " 5       6    S nAg [        R                  R                  SUR                  R                  < SU< S35         S nAg S nAff = f)Nr   sitecustomizez9Error in sitecustomize; set PYTHONVERBOSE for traceback:
: 
)r   r   rU   rQ   r   r   r   
excepthookexc_infor
   write	__class____name__)r   r]   errs      r   execsitecustomizer)        /	  	xx?*		
  /99NNCLLN+JJ ''./ /	/3    
-(0 (-0 
C
AC<CC
c                       SS K n g ! [         a  nUR                  S:X  a   S nAg e S nAff = f! [         a  n[        R
                  R                  (       a+  [        R                  " [        R                  " 5       6    S nAg [        R                  R                  SUR                  R                  < SU< S35         S nAg S nAff = f)Nr   usercustomizez9Error in usercustomize; set PYTHONVERBOSE for traceback:
r!  r"  )r-  r   rU   rQ   r   r   r   r#  r$  r
   r%  r&  r'  )r-  r]   r(  s      r   execusercustomizer.    r*  r+  c                     [         R                  S S  n [        5       nU [         R                  :w  a
  [        5         [	        U5      n[
        c
  [        5       q[        U5      n[        U5      n[        5         [        5         [        5         [         R                  R                  (       d
  [        5         [        5         [
        (       a  [!        5         g g r   )r   r   r1   r*   r  r   rp   r   r   r   r   r   r   isolatedr   r)  r.  )	orig_pathr/   s     r   mainr2    s     I "KCHH 	{#K/1%k2K!+.KINK99 r   c                     Sn [         R                  SS  nU(       d  [        5       n[        5       n[	        S5        [         R
                   H  n[	        SU< S35        M     [	        S5        S n[	        SU< S	U" U5       S
35        [	        SU< S	U" U5       S
35        [	        S[        < 35        [         R                  " S5        / nSU;   a  UR                  [        5        SU;   a  UR                  [        5        U(       a  [	        [        R                  R                  U5      5        [        (       a  [         R                  " S5        g [        SL a  [         R                  " S5        g [        c  [         R                  " S5        g [         R                  " S5        g SS Kn[	        UR                  U [         R                  S   [        R                  4-  5      5        [         R                  " S5        g )Na      %s [--user-base] [--user-site]

    Without arguments print some useful information
    With arguments print the value of USER_BASE and/or USER_SITE separated
    by '%s'.

    Exit codes with --user-base or --user-site:
      0 - user site directory is enabled
      1 - user site directory is disabled by user
      2 - user site directory is disabled by super user
          or for security reasons
     >2 - unknown error
    r<   zsys.path = [z    ,]c                 T    U b%  [         R                  R                  U 5      (       a  gg)Nr3   zdoesn't exist)r   r   r   )r   s    r   r3   _script.<locals>.exists  s     BGGMM$$7$7&r   zUSER_BASE: z ()zUSER_SITE: zENABLE_USER_SITE: r   z--user-basez--user-siteFr      
   )r   argvr   r   r	   r   r   r   r,   r   r   r   pathsepr   textwrapdedent)r   r~   	user_baser   r   r3   bufferr=  s           r   _scriptrA    sl   D 88AB<DM	')	n88Cs$% c
	'
 	I=6)+<*=Q?@I=6)+<*=Q?@"#3"678Fi i bjjoof%&HHQK&HHQK%HHQKHHQKhoodchhqk2::%>>?@r   __main__r   )+r   r   r   r   rD   rA   r   r   r  r   r   r   r   r   r   r*   r1   r8   r_   rg   rp   rs   r   r   r   r   r   r   r   r   r   r   r   r   r   r  r)  r.  r2  r   no_siterA  r'  ro   r   r   <module>rD     s   P  	   	   JJ(  
 		(
&.&
?D4@#0W&
"%N7 ,,
0b'J4n/(/(> yyF4l zI r   