+
    iR:  c                   sX   ^ RI HtHt ^ RIHt ^ RIHt ^ RIHtH	t	H
t
Ht ^ RIHtHt ^ RIHtHtHt R t] ! R R	]4      4       t] ! R
 R]4      4       t ! R R]4      t ! R R]4      t ! R R]4      t]P3                  ]4       ]P3                  ]4       ]P3                  ]4       R# )    )ABCabstractmethod)_PathGlobber)text_encoding)
magic_openensure_distinct_pathsensure_different_filescopyfileobj)PurePathPath)OptionalProtocolruntime_checkablec                 sj    V! V 4      w  r#. pW8w  d    VP                  V4       Tp V! V 4      w  r#K%  W3# N)append)pathsplitparentnameZnames   &&   &/usr/lib64/python3.14/pathlib/types.py_explode_pathr      s?     ;LFE
.TT{;    c                   sb   a  ] tR t^$t o V 3R lR ltV 3R lR ltV 3R lR ltV 3R ltRtV t	R	# )
_PathParserc                <   < V ^8  d   QhRS[ RS[S[ S[ 3,          /#    r   returnstrtupleZformat__classdict__   "r   __annotate___PathParser.__annotate__/   s    66#6%S/6r   c                    R # r    selfr      &&r   r   Z_PathParser.split/   s    3r   c                r   r   r   r    r"   r   r#   r$   0   s    99S9U38_9r   c                r%   r   r&   r'   r)   r   splitextZ_PathParser.splitext0   s    cr   c                &   < V ^8  d   QhRS[ RS[ /# r   )r   r    r"   r   r#   r$   1   s    --S-S-r   c                r%   r   r&   r'   r)   r   normcaseZ_PathParser.normcase1   s    #r   c                sB   < V ^8  d   Qh/ S[ ;R&   S[S[ ,          ;R&   # )r   sepaltsep)r   r   r    r"   r   r#   r$   $   s"      
H  SM r   r&   N)
__name__
__module____qualname____firstlineno__r   r*   r,   Z__annotate_func____static_attributes____classdictcell__r!      @r   r   r   $   s       7699--  r   r   c                   s   a  ] tR t^4t o RR/V 3R lR lltRR/V 3R lR lltRR/V 3R lR lltV 3R	 lR
 ltRtV t	R# )PathInfofollow_symlinksTc                r+   r   r8   r   Zboolr    r"   r   r#   PathInfo.__annotate__9       BBBBr   c               r%   r   r&   r(   r8      &$r   existsZPathInfo.exists9       sr   c                r+   r9   r:   r    r"   r   r#   r;   :   r<   r   c               r%   r   r&   r=   r>   r   is_dirZPathInfo.is_dir:   r@   r   c                r+   r9   r:   r    r"   r   r#   r;   ;   s    CC$C$Cr   c               r%   r   r&   r=   r>   r   is_fileZPathInfo.is_file;   s    r   c                s    < V ^8  d   QhRS[ /# )r   r   r:   r    r"   r   r#   r;   <   s    %%D%r   c                r%   r   r&   r(      &r   
is_symlinkZPathInfo.is_symlink<   s    #r   r&   N)
r/   r0   r1   r2   r?   rA   rB   rE   r3   r4   r5   r6   r   r7   r7   4   s/     
 CBBBBBCCC%%r   r7   c                   s  a  ] tR t^?t o Rt]]R 4       4       t]R 4       t]R 4       t	]R 4       t
]R 4       t]R 4       t]R 4       t]R 4       tR	 tR
 tR t]R 4       tR tR tR t]R 4       t]R 4       tR tRtV tR# )_JoinablePathc                    \         hr   NotImplementedErrorrC   rD   r   parserZ_JoinablePath.parserH   
     "!r   c                rG   r   rH   r(   Zpathsegments   &*r   with_segmentsZ_JoinablePath.with_segmentsP   rK   r   c                rG   r   rH   rC   rD   r   __str__Z_JoinablePath.__str__X   s
     "!r   c                sb    \        \        V 4      V P                  P                  4      ^ ,          # r    )r   r   rJ   r   rC   rD   r   anchorZ_JoinablePath.anchor^   s$     SY(9(9:1==r   c                sX    V P                   P                  \        V 4      4      ^,          # i   )rJ   r   r   rC   rD   r   r   Z_JoinablePath.namec   s"     {{  T+A..r   c                sZ    V P                   P                  V P                  4      ^,          # rR   rJ   r*   r   rC   rD   r   suffixZ_JoinablePath.suffixh   s"     {{##DII.q11r   c                s    V P                   P                  pV! V P                  4      w  r#. pV'       d   VP                  V4       V! V4      w  r#K%  VR R R1,          # )N)rJ   r*   r   r   )r(   r   stemrT   suffixes   &    r   rW   Z_JoinablePath.suffixesq   sR     $$TYY'OOF# ;LD&"~r   c                sZ    V P                   P                  V P                  4      ^ ,          # rP   rS   rC   rD   r   rV   Z_JoinablePath.stem   s"     {{##DII.q11r   c                s    V P                   P                  pV! V4      ^ ,          '       d   \        RV: 24      h\        V 4      pVP	                  V! V4      ^,          4      V,           pV P                  V4      # )r    zInvalid name )rJ   r   
ValueErrorr   ZremovesuffixrN   )r(   r   r   r      &&  r   	with_nameZ_JoinablePath.with_name   sg    !!;q>>}TH5664y  tQ047!!$''r   c                s    V P                   pV'       g   V P                  V4      # V'       g   \        V : R 24      hV P                  W,           4      # )z has a non-empty suffix)rT   r[   rY   )r(   rV   rT      && r   	with_stemZ_JoinablePath.with_stem   sD    >>$''x'>?@@>>$-00r   c                s    V P                   pV'       g   \        V : R 24      hV'       d'   VP                  R4      '       g   \        RV: 24      hV P                  W!,           4      # ) has an empty nameZ.zInvalid suffix )rV   rY   Z
startswithr[   )r(   rT   rV   r\   r   with_suffixZ_JoinablePath.with_suffix   sY    
 yyx'9:;;F--c22vj9::>>$-00r   c                s    \        \        V 4      V P                  P                  4      w  rV'       d   VP	                  V4       \        \        V4      4      # r   )r   r   rJ   r   r   r   reversed)r(   rQ   parts   &  r   ra   Z_JoinablePath.parts   s>     &c$i1B1BCLL Xe_%%r   c                s<    V P                   ! \        V 4      .VO5!  # r   )rN   r   rL   rM   r   joinpathZ_JoinablePath.joinpath   s     !!#d);l;;r   c                sh     V P                  \        V 4      V4      #   \         d
    \        u # i ; ir   rN   r   	TypeErrorZNotImplementedr(   Zkeyr)   r   __truediv__Z_JoinablePath.__truediv__   s3    	"%%c$i55 	"!!	"    11c                sh     V P                  V\        V 4      4      #   \         d
    \        u # i ; ir   rd   rf   r)   r   __rtruediv__Z_JoinablePath.__rtruediv__   s3    	"%%c3t955 	"!!	"rh   c                s    \        V 4      pV P                  P                  V4      ^ ,          pW8w  d   V P                  V4      # V # rP   )r   rJ   r   rN   )r(   r   r   rb   r   r   Z_JoinablePath.parent   sA     4y""4(+>%%f--r   c                s    V P                   P                  p\        V 4      pV! V4      ^ ,          p. pW#8w  d4   VP                  V P	                  V4      4       TpV! V4      ^ ,          pK9  \        V4      # rP   )rJ   r   r   r   rN   r   )r(   r   r   r   parentsrX   r   rj   Z_JoinablePath.parents   sf     !!4ytQnNN4--f56D4[^FW~r   c                s    V P                   P                  R 4      R 8H  p\        V P                   P                  VRR7      pVP	                  WP                   P
                  R7      pV! \        V 4      4      RJ# )AaTZ	recursive)r.   N)rJ   r,   r   r-   Zcompiler.   r   )r(   patterncase_sensitiveglobberZmatchr   r   
full_matchZ_JoinablePath.full_match   sa    
 --d3t;t{{$O0B0BCSYt++r   r&   N)r/   r0   r1   r2   	__slots__propertyr   rJ   rN   rO   rQ   r   rT   rW   rV   r[   r]   r_   ra   rc   rg   ri   r   rj   rp   r3   r4   r5   r6   r   rF   rF   ?   s     I"  " " " " "
 > > / / 2 2   2 2(	11 & &<""   
 
, ,r   rF   c                   s   a  ] tR t^t o Rt]]R 4       4       t]RR l4       tR t	RR lt
]R 4       tRR/R	 ltRR
 lt]R 4       tR tR tRtV tR# )_ReadablePathc                rG   r   rH   rC   rD   r   infoZ_ReadablePath.info   
     "!r   c                rG   r   rH   r(   	bufferingr)   r   __open_rb__Z_ReadablePath.__open_rb__   rK   r   c                s    \        V R ^ R7      ;_uu_ 4       pVP                  4       uuRRR4       #   + '       g   i     R# ; i)rb)moderw   N)r   read)r(   fs   & r   
read_bytesZ_ReadablePath.read_bytes   s-     4155668 6555s	   2A	Nc                s    \        V4      p\        V R WVR7      ;_uu_ 4       pVP                  4       uuRRR4       #   + '       g   i     R# ; i)Zrrz   encodingerrorsnewlineN)r   r   r{   )r(   r   r   r   r|   s   &&&& r   	read_textZ_ReadablePath.read_text  s<     !*3RYZZ^_668 [ZZZs	   >A	c                rG   r   rH   rC   rD   r   iterdirZ_ReadablePath.iterdir  ru   r   recurse_symlinksTc               s   \        WP                  P                  4      w  r4V'       d   \        R 4      hV'       g   \	        RV: 24      hV'       g   \        R4      hV P                  P                  R4      R8H  p\        V P                  P                  VRR7      pVP                  V4      pV! V P                  R4      4      # )z%Non-relative patterns are unsupportedzUnacceptable pattern: z%recurse_symlinks=False is unsupportedrk   Trl   Z )
r   rJ   r   rI   rY   r,   r   r-   Zselectorrc   )r(   rm   r   rQ   ra   rn   ro   Zselects   &&$     r   globZ_ReadablePath.glob  s     &g{{/@/@A%&MNN5g[ABB!%&MNN--d3t;t{{$O!!%(dmmB'((r   c              #  s
  "   V .pV'       Ed   VP                  4       p\        V\        4      '       d   Vx  K5  . p. pV'       g   VP                  WVV34        VP	                  4        Fv  pVP
                  P                  VR 7      '       d7   V'       g   VP                  V4       VP                  VP                  4       K[  VP                  VP                  4       Kx  	  T'       g   K  YVT3x  T\        T4       U
u. uF  qP                  T
4      NK  	  up
,          pEK"  R#   \         dG   p	Te	   T! T	4       T'       g'   \        TP                  4       \        4      '       g   K&   Rp	?	EKp  Rp	?	ii ; iu up
i 5i))r8   N)pop
isinstancer   r   r   rt   rA   r   ZOSErrorr`   rc   )r(   Ztop_downZon_errorr8   Zpathsr   ZdirnamesZ	filenameschildZerrorZds   &&&&       r   walkZ_ReadablePath.walk)  s+    e99;D$&&
HIdi89!\\^Ezz(((II'!LL/ 

3!((4 , xi//HX4FG4Fq--*4FGG5 "  'UO(e<< HsY   F7FF<D* AD* %F/FE>F*E;5E6	&E6/F6E;;Fc                rG   r   rH   rC   rD   r   readlinkZ_ReadablePath.readlinkH  
    
 "!r   c                s^    \        W4       VP                  ! V 3/ VB  VP                  4       # r   )r   
_copy_fromrc   )r(   targetkwargss   &&,r   copyZ_ReadablePath.copyO  s,     	d+$)&)  r   c                sz    V P                   pV'       g   \        V : R 24      hV P                  ! W,          3/ VB # )r^   )r   rY   r   )r(   Z
target_dirr   r   s   &&, r   	copy_intoZ_ReadablePath.copy_intoW  s:     yyx'9:;;yy*5f55r   r&   rU   NNN)TNF)r/   r0   r1   r2   rq   rr   r   rt   rx   r}   r   r   r   r   r   r   r   r3   r4   r5   r6   r   rs   rs      s      I"  " " " " ") ) H> " "!6 6r   rs   c                   sv   a  ] tR tRt o R	t]R
R l4       t]R 4       t]RR l4       tR t	RR lt
RR ltR	tV tR# )_WritablePathia  c                rG   r   rH   )r(   r   Ztarget_is_directorys   &&&r   
symlink_toZ_WritablePath.symlink_toj  rK   r   c                rG   r   rH   rC   rD   r   mkdirZ_WritablePath.mkdirr  r   r   c                rG   r   rH   rv   r)   r   __open_wb__Z_WritablePath.__open_wb__y  rK   r   c                s    \        V4      p\        V R R7      ;_uu_ 4       pVP                  V4      uuRRR4       #   + '       g   i     R# ; i)wb)rz   N)Z
memoryviewr   write)r(   dataZviewr|   rZ   r   write_bytesZ_WritablePath.write_bytes  s7    
 $4((A774= )(((s	   =A	Nc                s   \        V4      p\        V\        4      '       g'   \        R VP                  P
                  ,          4      h\        V RW#VR7      ;_uu_ 4       pVP                  V4      uuRRR4       #   + '       g   i     R# ; i)zdata must be str, not %sZwr~   N)r   r   r   re   Z	__class__r/   r   r   )r(   r   r   r   r   r|   s   &&&&& r   
write_textZ_WritablePath.write_text  sm     !*$$$6 NN334 5 53RYZZ^_774= [ZZZs   A;;B	c           	     s   W3.pV'       EdG   VP                  4       w  rEV'       gd   VP                  P                  4       '       dD   VP                  \	        VP                  4       4      VP                  P                  4       4       K  VP                  P                  4       '       dW   VP                  4       pVP                  4        V F.  pVP                  WuP                  VP                  4      34       K0  	  K  \        WE4       \        VR 4      ;_uu_ 4       p\        VR4      ;_uu_ 4       p	\        W4       RRR4       RRR4       EKO  R#   + '       g   i     L; i  + '       g   i     EKv  ; i)ry   r   N)r   rt   rE   r   r   r   rA   r   r   r   rc   r   r   r   r   )
r(   Zsourcer8   ZstackZsrcZdstZchildrenr   Zsource_fZtarget_fs
   &&&       r   r   Z_WritablePath._copy_from  s      eyy{HC"sxx':':'<'<s3<<>2CHHOO4EF"";;=		%ELL%ejj)A!BC & 's0T**h#C..(#H7 / +*  /. +**s$    E)5E	E)E&!E))E;	r&   )Fr   r   )T)r/   r0   r1   r2   rq   r   r   r   r   r   r   r   r3   r4   r5   r6   r   r   r   a  sZ      I" " " " " "!!8 8r   r   N)Zabcr   r   r   r   Zior   Zpathlib._osr   r   r   r   Zpathlibr	   r
   Ztypingr   r   r   r   r   r7   rF   rs   r   Zregisterr&   r   r   <module>r      s    $   ^ ^ " 8 8 .( . . &x & &c,C c,Ly6M y6xH8M H8V   x     t    t r   