K`~.D dZdZdZdZdZdZdZdZddlZddl Z ddl Z ddl Z ddl Tgd Z d Z d Zd Zd ZdZdZe jje_dZdZdZdZdZdZdZdadadZ ddlm Z dZ!n#e"$rdZ!YnwxYwdZ#dddZ$dZ%e j&d kZ'd#d!Z(d"Z)dS)$.../:z /bin:/usr/binNz /dev/null)*)'normcaseisabsjoin splitdrivesplitsplitextbasenamedirname commonprefixgetsizegetmtimegetatimegetctimeislinkexistslexistsisdirisfileismount expanduser expandvarsnormpathabspathsamefile sameopenfilesamestatcurdirpardirseppathsepdefpathaltsepextsepdevnullrealpathsupports_unicode_filenamesrelpath commonpath ALLOW_MISSINGc4t|trdSdS)N/r) isinstancebytespaths 4/opt/alt/python-internal/lib/python3.11/posixpath.py_get_sepr6)s$tsc, tj|SNosfspath)ss r5rr4s@ 9Q<<r7ct tj|}t|}||Sr9)r;r<r6 startswith)r=r$s r5r r <s/) ! A 1++C <<  r7c tj|}t|}|} |s |dd|zttj|D]?}||r|}|r||r||z }7|||zz }@n/#t ttf$rtj d|g|RwxYw|S)Nrr ) r;r<r6mapr?endswith TypeErrorAttributeError BytesWarning genericpath_check_arg_types)apr$r4bs r5r r Gs ! A 1++C D   !HsNNRY""  A||C    T]]3//  a   ~| 4$VQ33333  Ks A)B,B>c tj|}t|}||dz}|d|||d}}|r+||t |zkr||}||fSNr;r<r6rfindlenrstrip)rIr$iheadtails r5r r dsD ! A 1++C  qA2A2!""$D  CII %%{{3 :r7ctj|}t|trd}d}nd}d}t j||d|S)Nr0.rr)r;r<r1r2rF _splitext)rIr$r(s r5r r usN ! A!U  Cv 6 66r7cD tj|}|dd|fSNrr:)rIs r5r r s% ! A RaR5!8Or7c tj|}t|}||dz}||dSrL)r;r<r6rO)rIr$rRs r5rrs>3 ! A 1++C  qA QRR5Lr7c tj|}t|}||dz}|d|}|r+||t |zkr||}|SrLrN)rIr$rRrSs r5rrsp7 ! A 1++C  qA RaR5D  CII %%{{3 Kr7c tj|}n#tttf$rYdSwxYwt j|jS)NF)r;lstatOSError ValueErrorrDstatS_ISLNKst_mode)r4sts r5rrsT0 Xd^^ Z 0uu < # ##s 33cd tj|n#ttf$rYdSwxYwdS)NFT)r;r]r^r_r3s r5rrsEM  Z uu 4s --c tj|}tj|jrdSn#t t f$rYdSwxYwtj|}t|trt|d}nt|d}t|} tj|}n#t t f$rYdSwxYw|j }|j }||krdS|j }|j }||krdSdS)NF..rT)r;r]r`rarbr^r_r<r1r2r r*st_devst_ino)r4s1parents2dev1dev2ino1ino2s r5rrs*. Xd^^ < # # 5  Z uu 9T??D$"dE""dD!! f  F Xf   Z uu 9D 9D t||t 9D 9D t||t 5s!3AA%B::CCc tj|}t|trd}nd}||s|St |}||d}|dkrt|}|dkrxdtjvrW ddl }n#t$r|cYSwxYw | tj j }n#t$r|cYSwxYwtjd}nw ddl }n#t$r|cYSwxYw|d|}t|trt|d} ||}n#t$r|cYSwxYw|j }|t"jdkr|St|trtj|}d}nd }||}|||dzp|S) N~~rMrHOMEASCIIvxworksr0r)r;r<r1r2r?r6findrPenvironpwd ImportErrorgetpwuidgetuidpw_dirKeyErrorstrgetpwnamsysplatformfsencoderQ) r4tilder$rRrxuserhomenamepwentroots r5rrs6 9T??D$ ??5 ! ! 4..C #qA1uu IIAvv  # #        << 44;      z&)HH  JJJJ   KKK AaCy dE " " &tW%%D LL&&EE   KKK <CLI55 $;x((t$$H tABBx  (D(sHB B*)B*.+C C)(C)D DDE E,+E,cx tj|}t|trSd|vr|Stsddl}|d|jatj}d}d}ttdd}nHd|vr|Stsddl}|d|ja tj}d }d }tj }d} |||}|sn| d\}}| d } | |r| |r | d d } |7tjtj tj| } n|| } ||d} |d|| z}t%|}|| z }n#t&$r|}YnwxYw|S)N$rs\$(\w+|\{[^}]*\}){}environb$z\$(\w+|\{[^}]*\}){}TrM)r;r<r1r2 _varprogbrecompilertsearchgetattr_varprogrwspangroupr?rBrfsdecoderPr}) r4rrstartendrwrRmjrvaluerTs r5rr%s 9T??D$ t  K D III #8"(CCI!"j$// d??K B IIIzz"6AAH* A F4OO  vvayy1wwqzz ??5 ! ! dmmC&8&8 ":D  BJr{4/@/@$ABB 8D8e#DD A DLDD    AAA ( Ks:AF'' F65F6)_path_normpathc tj|}t|tr5tjt tj|pdSt |pdS)NrVr)r;r<r1r2rrrr3s r5rrs_>y dE " " J;~bk$.?.?@@AAIT Id##*s*r7c2 tj|}t|tr d}d}d}d}nd}d}d}d}||kr|S||}|r2||d zr||d zsd }||}g}|D]M}|||fvr ||ks|s|r|r"|d |kr||7|r|N|}||}|r||z|z}|p|S) Nr0r7rVrfrrrr) r;r<r1r2r?r appendpopr ) r4r$emptydotdotdotinitial_slashescomps new_compscomps r5rr^sk>y dE " " CECFFCECF 5==J//#..  OOCE " " +/??3q5+A+A O 3   Ds|##y )"  7 7  &&&&  xx  .&-D{sr7c tj|}t|sLt|trtj}ntj}t||}t|Sr9) r;r<r r1r2getcwdbgetcwdr r)r4cwds r5rrsc" 9T??D ;; dE " " *,,CC)++CC D>>r7F)strictc tj|}t|dd||i\}}t|SrY)r;r< _joinrealpathr)filenamerr4oks r5r*r*sA+y""HXbqb\8VR@@HD" 4==r7c0t|trd}d}d}nd}d}d}tj}|turt }n |rd}nt }d} t|r |dd}|}|r(||\} } }| r| |kr%| |kr/|r*t|\}} | |krt|||}n|}Zt|| } tj | } tj | j}n #|$rd }YnwxYw|s| }| |vr4|| }||rtj | nt| |d fSd|| <t|tj| ||\}}|st||d fS||| <|(|d fS) Nr0rVrfrrrrMFT)r1r2r;rr.FileNotFoundErrorr^r partitionr r r]r`rarbrreadlink)r4restrseenr$r"r#r ignored_errormaxlinksr_newpathrcis_linkrs r5rrs $ )    H T{{ABBx *s++ a tv~~  6>> "4[[ d6>>ff55D tT"" /'""Bl2:..GG   GGG  D  d??=D 2    GT**E11W  r{7';';VTJJb +d##U* *W U *X :sDD  D darwinc~ |stdtj|}t|trd}d}d}nd}d}d}||}ntj|} dt ||D}d t ||D}tt||g}|gt||z z||dz}|s|St|S#ttttf$rtjd ||wxYw) Nzno path specifiedrVr0rfrrrcg|]}||Srr.0xs r5 zrelpath..s@@@Aa@a@@@r7cg|]}||Srrrs r5rzrelpath..s>>>1A>Q>>>r7r,)r_r;r<r1r2rr rPrr rCrDrEDeprecationWarningrFrG) r4rr"r$r# start_list path_listrRrel_lists r5r,r,s[- .,--- 9T??D$ } %   @@!5!5c!:!:@@@ >> 3 3C 8 8>>>  j)455 6 68s:q01IabbMA MX ~|5G H$Ye<<< s#BD>D5D<c |stdtttj|}t |dt rd d nd d fd|D} t fd|D\}n#t$rtd dwxYw fd |D}t|}t|}|}t|D]\}}|||kr |d|}n|r n dd}| |zS#ttf$rtjd g|RwxYw) Nz%commonpath() arg is an empty sequencerr0rVrrc:g|]}|Sr)r )rr4r$s r5rzcommonpath..%s#9994tzz#999r7c34K|]}|ddkVdSrLr)rrIr$s r5 zcommonpath..(s/55!2A2#555555r7z%Can't mix absolute and relative pathsc,g|]}fd|DS)c$g|] }||k | Srr)rcr"s r5rz)commonpath...,s#:::a:a6kkkkkr7r)rr=r"s r5rzcommonpath..,s.PPPq::::1:::PPPr7r-)r_tuplerAr;r<r1r2setminmax enumerater rCrDrFrG) paths split_pathsr rirkcommonrRrprefixr"r$s @@r5r-r-sN B@AAA #bi'' ( (E%(E""99995999  P5555u55555FEE P P PDEE4 O PQPPPKPPP      bMM  DAqBqEzzBQB*3rr7(((( ~ &$\:E:::: s%!D-0B D-B))BD--%Er9)*r"r#r(r$r%r&r'r)r;rr`rF__all__r6rr r r r rW__doc__r rrrrrrrrrposixrrryrr*rrr+r,r-rr7r5rsJ           * * *:   "777(0 $$$V6)6)6)z   ...j0+$$$$$$T++++Q%%%$$$$$%`   "'CCCL"lh6!!!!R#####s*A44A?>A?