+
    i}I  c                   s0   R t RtRtRtRtRtRtRtRt^ RI	t	^ RI
t
^ RIt^ RIt^ RIt^ RI5 . R	NR
NRNRNRNRNRNRNRNRNRNRNRNRNRNRNRNRNRNRNRNRNRNR NR!NR"NR#NR$NR%NR&NR'NR(NR)NR*NR+NR,NR-NR.NR/NR0NR1NR2NtR3 tR4 tR5 tR6 tR7 tR8 t]P*                  P                   ]n         R9 t ^ R:IHt R< tR= tR> tR? tR@tRs Rs!RA t" ^ RBIH#t$ RD t%RERF/RG lt&]PN                  RH8H  t(RKRI lt)RJ t*R#   ] d    R; t LKi ; i  ] d    RC t$ L?i ; i)La  Common operations on Posix pathnames.

Instead of importing this module directly, import os and refer to
this module as os.path.  The "os.path" name is an alias for this
module on Posix systems; on other systems (e.g. Windows),
os.path provides the same operations in a manner specific to that
platform, and is an alias to another module (e.g. ntpath).

Some of this can actually be useful on non-Posix systems too, e.g.
for manipulation of the pathname component of URLs.
.../Z:z/bin:/usr/binNz	/dev/null)Z*normcaseisabsjoin
splitdrive	splitrootsplitsplitextbasenamedirnamecommonprefixZgetsizeZgetmtimeZgetatimeZgetctimeZislinkZexistsZlexistsZisdirZisfileismount
expanduser
expandvarsnormpathabspathZsamefileZsameopenfileZsamestatcurdirpardirseppathsepdefpathaltsepextsepdevnullrealpathsupports_unicode_filenamesrelpath
commonpathZ
isjunctionZ
isdevdriveALLOW_MISSINGc                 s6    \        V \        4      '       d   R # R# )   /r   )
isinstancebytespath   &"/usr/lib64/python3.14/posixpath.py_get_sepr&   *   s    $    c                s.    \         P                  ! V 4      # )z6Normalize case of pathname.  Has no effect under Posixosfspath)sr$   r%   r   r   5   s    99Q<r'   c                sf    \         P                  ! V 4      p \        V 4      pV P                  V4      # )zTest whether a path is absolute)r)   r*   r&   
startswith)r+   r   s   & r%   r   r   =   s'    
		!A
1+C<<r'   c                s   \         P                  ! V 4      p \        V 4      pT p V Fl  p\         P                  ! V4      pVP                  V4      '       g	   V'       g   TpK<  VP	                  V4      '       d   W4,          pK]  W2V,           ,          pKn  	  V#   \
        \        \        3 d    \        P                  ! RT .TO5!   h i ; i)zJoin two or more pathname components, inserting '/' as needed.
If any component is an absolute path, all previous path components
will be discarded.  An empty last part will result in a path that
ends with a separator.r   )
r)   r*   r&   r,   endswith	TypeErrorAttributeErrorBytesWarninggenericpath_check_arg_types)Zapr   r#   Zbs   &*   r%   r   r   H   s    
 			!A
1+CDA		!A||C  s##	a  K ~|4 $$VQ33s   9B B :B 1C
c                s    \         P                  ! V 4      p \        V 4      pV P                  V4      ^,           pV RV WR rCV'       d(   W1\	        V4      ,          8w  d   VP                  V4      pW43# )z|Split a pathname.  Returns tuple "(head, tail)" where "tail" is
everything after the final slash.  Either part may be empty.Nr)   r*   r&   rfindlenrstrip)r3   r   iheadZtails   &    r%   r   r   d   sc     			!A
1+C	qA2A"$CI%{{3:r'   c                 s    \         P                  ! V 4      p \        V \        4      '       d   R pRpMRpRp\        P
                  ! WRV4      # )r      .r   r    N)r)   r*   r    r!   r1   	_splitext)r3   r   r      &  r%   r	   r	   u   sE    
		!A!U  v66r'   c                sD    \         P                  ! V 4      p V R,          V 3# )zFSplit a pathname into drive and path. On Posix, drive is always
empty.Ni    Nr(   )r3   r$   r%   r   r      s     			!AR5!8Or'   )_path_splitroot_exc                s   \         P                  ! V 4      p \        V \        4      '       d   RpRpMRpRpV R,          V8w  d   W"V 3# V R,          V8w  g   V R,          V8X  d   W!V R,          3# W R	,          V R
,          3# )zWSplit a pathname into drive, root and tail.

The tail contains anything after the root.r   r'   r   Z :N   N:r?      N:r@   i   N:r?   NN:Nr@   N:r@   NN)r)   r*   r    r!   )r3   r   Zemptyr<   r%   r   r      s     IIaLaCECER5C<?"sVs]afmqu$$ B%2&&r'   c                s|    \         P                  ! V 4      p \        V 4      pV P                  V4      ^,           pWR # )z)Returns the final component of a pathnameN)r)   r*   r&   r5   )r3   r   r8   r<   r%   r
   r
      s3    
		!A
1+C	qAR5Lr'   c                s    \         P                  ! V 4      p \        V 4      pV P                  V4      ^,           pV RV pV'       d(   W1\	        V4      ,          8w  d   VP                  V4      pV# )z-Returns the directory component of a pathnameNr4   )r3   r   r8   r9      &   r%   r   r      sX    
		!A
1+C	qARa5DCI%{{3Kr'   c                sj    \         P                  ! V 4      p\        P                  ! VP                  4      '       d   R#  \         P                  ! T 4      p \        T \        4      '       d   \        T R4      pM\        T R4      p \         P                  ! T4      pTP                  TP                  8g  ;'       g    TP                  TP                  8H  #   \
        \        3 d     R# i ; i  \
         d9    \        T4      p \         P                  ! T4      p L  \
         d      R# i ; ii ; i)z$Test whether a path is a mount pointF   ..r   )r)   lstatstatS_ISLNKst_modeOSError
ValueErrorr*   r    r!   r   r   Zst_devZst_ino)r#   s1Zparents2rA   r%   r   r      s    XXd^ <<

## $ 99T?D$dE"dD!XXf 99		!;;RYY"))%;;/ Z    &!	&!B 			s;   C C/ C,+C,/D2DD.)D2-D..D2c                s   \         P                  ! V 4      p \        V \        4      '       d   RpMRpV P	                  V4      '       g   V # \        V 4      pV P                  V^4      pV^ 8  d   \        V 4      pV^8X  dc   R\         P                  9  d6    ^ RI	p TP                  \         P                  ! 4       4      P                  pMl\         P                  R,          pMT ^ RI	pT ^T p\        T\        4      '       d   \         P                  ! T4      p TP!                  T4      pTP                  pVf   \"        P$                  R8X  d   V # \        V \        4      '       d   \         P&                  ! V4      pVP)                  V4      pWPVR ,           ;'       g    T#   \         d    T u # i ; i  \         d    T u # i ; i  \         d    T u # i ; i  \         d    T u # i ; i)zKExpand ~ and ~user constructions.  If user or $HOME is unknown,
do nothing.s   ~Z~ZHOMENZvxworks)r)   r*   r    r!   r,   r&   Zfindr6   environpwdImportErrorZgetpwuidZgetuidZpw_dirKeyErrorfsdecodeZgetpwnamsysplatformfsencoder7   )r#   Ztilder   r8   rL   ZuserhomenameZpwents   &       r%   r   r      s    99T?D$??5!!
4.C		#qA1uIAv#<<		4;; zz&)H	 AaydE"";;t$D	LL&E
 <<CLLI5$;;x(s#HABx''C'C  
     	K	  	 K	sH   F$ .F7 $G
 G $F43F47GG
GGG-,G-z\$(\w+|\{[^}]*\}?)c                s  aaa \         P                  ! V 4      p \        V \        4      '       dn   RV 9  d   V # \        '       g=   ^ RIpVP                  \        P                  4       VP                  4      P                  s\        pRoRo\        \         RR4      oM]RV 9  d   V # \        '       g/   ^ RIpVP                  \        VP                  4      P                  s\        pRoRo\         P                  oVVV3R	 lpV! W04      # )
zVExpand shell variables of form $var and ${var}.  Unknown variables
are left unchanged.s   $Ns   {s   }ZenvironbZ$Z{Z}c                 sf  < V ^,          pVP                  S4      '       d&   VP                  S4      '       g
   V ^ ,          # V^R p SfB   \        P                  ! \        P                  \        P
                  ! V4      ,          4      pV# SV,          p V#   \         d    T ^ ,          u # i ; i)r?   )r,   r-   r)   rR   rK   rO   rN   )ZmrS   ZvalueendrK   starts   &  r%   replZexpandvars.<locals>.repl=  s    t??5!!==%%t":D	BJJr{{4/@$AB L	   L  	Q4K	s   AB 	B B0/B0)r)   r*   r    r!   _varsubbreZcompile_varpatternZencodeZASCIIsubZgetattr_varsubrK   )r#   rY   r[   rW   rU   rK   rV   s   &   @@@r%   r   r   #  s     99T?D$tKxzz+"4"4"6AEEH"j$/d?Kwjjbhh7;;G**  t?r'   )_path_normpathc                s   \         P                  ! V 4      p \        V \        4      '       d   RpRpRpMRpRpRpV '       g   V# \	        V 4      w  rEp V P                  V4      p. pV Fl  pV'       d   W8X  d   K  W8w  g'   V'       g	   V'       d   V'       d"   VR,          V8X  d   VP                  V4       KR  V'       g   K\  VP                  4        Kn  	  TpWQP                  V4      ,           p T ;'       g    T# )z0Normalize path, eliminating double slashes, etc.r   r:   rB   r   r    r   rT   )	r)   r*   r    r!   r   r   appendpopr   )	r#   r   ZdotZdotdotZ_Zinitial_slashesZcompsZ	new_compsZcomps	   &        r%   r   r   X  s    yydE""CCFCCFJ#,T? D

3	D4;y	" 7  &  %0{{sr'   c                sJ   \         P                  ! V 4      p \        V \        4      '       d8   V P	                  R4      '       g    \        \         P                  ! 4       V 4      p M6V P	                  R4      '       g    \        \         P                  ! 4       V 4      p \        V 4      # )zReturn an absolute path.r   r   )	r)   r*   r    r!   r,   r   getcwdbgetcwdr   r"   r$   r%   r   r   u  si    99T?D$t$$

d+Ds##		T*DD>r'   strictFc               s   \         P                  ! V 4      p \        V \        4      '       d   RpRpRp\         P                  pMRpRpRp\         P
                  pV\        J d
   \        pRpMV'       d   R	pM\        p\         P                  p\         P                  pRp	V P                  V4      RRR
1,          p
\        V
4      pV P                  V4      '       d   TMV! 4       p/ p^ pV'       Edo   V
P                  4       pVf   WV
P                  4       &   K1  V^,          pV'       d   W8X  d   KJ  W8X  d!   VRVP                  V4       ;'       g    TpKp  W8X  d
   W,           pMW,           V,           p V! V4      P                   p\"        P$                  ! V4      '       go   V'       db   V'       dZ   \"        P&                  ! V4      '       g>   \        \(        P*                  \         P,                  ! \(        P*                  4      V4      hTpEK+  V	e[   V^,          pW8  dK   V'       d>   \        \(        P.                  \         P,                  ! \(        P.                  4      V4      hTpEK  MaVV9   d[   VV,          pVe   EK  V'       d>   \        \(        P.                  \         P,                  ! \(        P.                  4      V4      hTpEK  V! V4      pVP                  V4      '       d   TpV	f(   RVV&   V
P1                  V4       V
P1                  R4       VP                  V4      RRR
1,          pV
P3                  V4       V\        V4      ,          pEKw  V#   T d     Mi ; iTpEK  )zlReturn the canonical path of the specified filename, eliminating any
symbolic links encountered in the path.r   r:   rB   r   r    r   TN rT   )r)   r*   r    r!   r`   ra   r   ZFileNotFoundErrorrG   rC   readlinkr   r6   r,   r_   ZrindexrF   rD   rE   ZS_ISDIRerrnoZENOTDIRZstrerrorZELOOPr^   Zextend)Zfilenamerb   r   r   r   ra   Zignored_errorrC   rd   ZmaxlinksZrestZ
part_countr#   ZseenZ
link_countrS   ZnewpathrF   ZtargetZtarget_partss   &$                  r%   r   r     s    yy"H(E"")	HHE{{HH >>#tt$D TJ %%c**3D D J
*xxz<#a
t~>)S)*11cD;kGj4'G0	Gn,,G<<((jg1F1F!%--U]]1K")+ +%a
(%ekk2;;u{{3K&-/ /"D ) DG}#!%++r{{5;;/G")+ +g&F
   %% $W G$D!!<<,TrT2LKK%#l++J K/  		* sN   9-M# 'M# /M# 7M# ?M# M# 0?M# 2M# 
M# ?M# M# #M-,M-Zdarwinc                s   \         P                  ! V 4      p V '       g   \        R4      h\        V \        4      '       d   RpRpRpMRpRpRpVf   TpM\         P                  ! V4      p \        V4      P                  V4      p\        V 4      P                  V4      pV'       d   VP                  V4      M. pV'       d   VP                  V4      M. p\        \        Wx.4      4      p	V.\        V4      V	,
          ,          WR ,           p
V
'       g   V# VP                  V
4      #   \        \        \        \        3 d    \        P                   ! R	Y4       h i ; i)
z#Return a relative version of a pathzno path specifiedr:   r   rB   r    r   r   Nr   )r)   r*   rH   r    r!   r   Zlstripr   r6   r   r   r.   r/   r0   ZDeprecationWarningr1   r2   )r#   rV   r   r   r   Z
start_tailZ	path_tailZ
start_listZ	path_listr8   Zrel_lists   &&         r%   r   r     s)    99T?D,--$}		% U^**3/
DM((-	.8Z%%c*b
,5IOOC(2	j4568s:q01IbMAMxx!!~|5GH $$Y<s   +AD( AD( D( (4Ec           	     s6   \        \        \        P                  V 4      4      p V '       g   \	        R4      h\        V ^ ,          \        4      '       d   RpRpMRpRp V  Uu. uF  q3P                  V4      NK  	  pp V  Uu0 uF  qUP                  V4      kK  	  upw  pT UUu. uF%  qw Uu. uF  q'       g   K  Y8w  g   K  TNK  	  upNK'  	  ppp\        T4      p	\        T4      p
T	p\        T	4       F  w  rYT,          8w  g   K  T	RT p M	  T'       d   TMTR,          pYP                  T4      ,           # u upi u upi   \         d    \	        R4      Rhi ; iu upi u uppi   \        \        3 d    \        P                   ! R	.T O5!   h i ; i)
zDGiven a sequence of path names, returns the longest common sub-path.z%commonpath() arg is an empty sequencer   r:   r   r    z%Can't mix absolute and relative pathsNr=   r   )ZtupleZmapr)   r*   rH   r    r!   r   r,   ZminZmaxZ	enumerater   r.   r/   r1   r2   )Zpathsr   r   r#   Zsplit_pathsr3   r   r+   ZcrI   rJ   Zcommonr8   Zprefixs   &             r%   r   r   ,  s}    #bii'(E@AA%(E""38954zz#59	P167All3'7FE EPPKq1:1aak1:KPbMDAqEzBQ "
 3r7(((# : 8 	PDE4O	P ;P ~& $$\:E:s   E- "D=;E- >E EE  E- %E'-	E";E"E"	E'5E- 
E- !E- =E- E EE- "E''E- -+F)N)+Z__doc__r   r   r   r   r   r   r   r   re   r)   rP   rD   r1   Z__all__r&   r   r   r   r   r	   r;   r   Zposixr>   r   rM   r
   r   r   r   rZ   r\   rX   r   r]   r   r   r   rQ   r   r   r   rc   r'   r%   <module>rf      s  
 
			

	
  	 
   D: Dg Df D\ D+ Dg Dj DDD .D/8D9CDD D!)D*2D3<D=DDEMD D #D $0D 1;D <ED 	D %	D &0	D
 D
 D
 #D
 $-D
 .7D
 8@D
 AID D  D !=D >GD D &D '3D 4CD8	"7 ((00 
'56<N3(t $
*b0@	x xv "llh6 #V$A  '''V  s$   3C8 D 8
DD
DD