+
    BV-j5  ã                  ó  € R t ^ RIHt ^ RIt^ RIt^ RIt^ RIt^ RIt^ RIt^ RI	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 ]P,                  ! ]4      t]],           t ^ RIt]],          t ^ RIt]],          tR
 R ltR R ltR R lt R R lt!R R lt"R R lt#R R lt$R"R R llt%R R lt&R R lt'R R lt(R#R  R! llt)R#   ] d    ]P9                  R4        Lvi ; i  ] d    ]P9                  R	4        L†i ; i)$zUtilities related archives.)ÚannotationsN)ÚIterable)ÚZipInfo)ÚInstallationError)ÚBZ2_EXTENSIONSÚTAR_EXTENSIONSÚXZ_EXTENSIONSÚZIP_EXTENSIONS)Ú
ensure_dirzbz2 module is not availablezlzma module is not availablec               ó   € V ^8„  d   QhRR/# ©é   ÚreturnÚint© )Úformats   "Ún/Volumes/fast/ai/experiments/ui-tars-smoke/.venv/lib/python3.14/site-packages/pip/_internal/utils/unpacking.pyÚ__annotate__r   -   s   € ÷ ñ �sñ ó    c                 ó^   € \         P                  ! ^ 4      p \         P                  ! V 4       V # )zBGet the current umask which involves having to set it temporarily.)ÚosÚumask)Úmasks    r   Úcurrent_umaskr   -   s   € ä�8Š8�A‹;€DÜ‡H‚HˆT„NØ€Kr   c               ó    € V ^8„  d   QhRRRR/# )r   ÚpathÚstrr   z	list[str]r   )r   s   "r   r   r   4   s   € ÷ 	ñ 	˜Cð 	 Iñ 	r   c                ó  € V P                  R 4      P                  R4      p R V 9   dF   RV 9   d&   V P                  R 4      V P                  R4      8  g   RV 9  d   V P                  R ^4      # RV 9   d   V P                  R^4      # V R.# )Ú/Ú\Ú )ÚlstripÚfindÚsplit©r   s   &r   Úsplit_leading_dirr%   4   sz   € Ø�;‰;�sÓ×"Ñ" 4Ó(€DØ
ˆd„{Ø	�Œ˜$Ÿ)™) C›.¨4¯9©9°T«?Ô:¸tÈ4Ô?Oà�z‰z˜#˜qÓ!Ð!Ø	�ŒØ�z‰z˜$ Ó"Ð"à�bˆzÐr   c               ó    € V ^8„  d   QhRRRR/# )r   ÚpathszIterable[str]r   Úboolr   )r   s   "r   r   r   @   s   € ÷ ñ ˜=ð ¨Tñ r   c                ón   € RpV  F,  p\        V4      w  r4V'       g    R# Vf   TpK#  W18w  g   K+   R# 	  R# )zuReturns true if all the paths have the same leading path name
(i.e., everything is in one subdirectory in an archive)NFT)r%   )r'   Úcommon_prefixr   ÚprefixÚrests   &    r   Úhas_leading_dirr-   @   s>   € ð €MÛˆÜ(¨Ó.‰ˆßÚØÒ"Ø"ŠMØÖ$Úñ ñ r   c               ó$   € V ^8„  d   QhRRRRRR/# )r   Ú	directoryr   Útargetr   r(   r   )r   s   "r   r   r   O   s&   € ÷ Xñ X 3ð X°ð X¸ñ Xr   c                óâ   € \         P                  P                  V 4      p\         P                  P                  V4      pW28H  ;'       g'    VP                  V\         P                  ,           4      # )zw
Return true if the absolute path of target is within the directory
(including when target is equal to the directory).
)r   r   ÚabspathÚ
startswithÚsep)r/   r0   Úabs_directoryÚ
abs_targets   &&  r   Úis_within_directoryr7   O   sP   € ô
 —G‘G—O‘O IÓ.€MÜ—‘—‘ Ó(€JàÑ&×WÐW¨*×*?Ñ*?ÀÔPR×PVÑPVÕ@VÓ*WÐWr   c               ó   € V ^8„  d   QhRR/# r   r   )r   s   "r   r   r   Z   s   € ÷ ,ñ ,¨3ñ ,r   c                 ó4   € R \        4       ( ,          ^I,          # )iÿ  )r   r   r   r   Ú!_get_default_mode_plus_executabler:   Z   s   € Ø”M“OÐ#Õ# eÕ+Ð+r   c               ó    € V ^8„  d   QhRRRR/# )r   r   r   r   ÚNoner   )r   s   "r   r   r   ^   s   € ÷ 8ñ 8¸Sð 8ÀTñ 8r   c                óD   € \         P                  ! V \        4       4       R# )zl
Make file present at path have execute for user/group/world
(chmod +x) is no-op on windows per python docs
N)r   Úchmodr:   r$   s   &r   Ú2set_extracted_file_to_default_mode_plus_executabler?   ^   s   € ô
 ‡H‚HˆTÔ4Ó6Ö7r   c               ó    € V ^8„  d   QhRRRR/# )r   Úinfor   r   r(   r   )r   s   "r   r   r   f   s   € ÷ >ñ > ð >¨Tñ >r   c                óœ   € V P                   ^,	          p\        T;'       d(    \        P                  ! V4      ;'       d
    V^I,          4      # )é   )Úexternal_attrr(   ÚstatÚS_ISREG)rA   Úmodes   & r   Úzip_item_is_executablerH   f   s<   € Ø×Ñ Õ#€Dô �×<Ð<œŸš dÓ+×<Ð<°°uµÓ=Ð=r   c               ó(   € V ^8„  d   QhRRRRRRRR/# )r   Úfilenamer   ÚlocationÚflattenr(   r   r<   r   )r   s   "r   r   r   m   s(   € ÷ +ñ +˜ð +¨ð +°dð +Àdñ +r   c                ó   € \        V4       \        V R4      p \        P                  ! VRR7      p\	        VP                  4       4      ;'       d    TpVP                  4        EF;  pVP                  pTpV'       d   \        V4      ^,          p\        P                  P                  W4      p\        P                  P                  V4      p	\        W4      '       g   Rp
\        V
P                  WV4      4      hVP!                  R4      '       d   \        V4       K¼  \        V	4       VP                  V4      p \        VR4      ;_uu_ 4       p\"        P$                  ! W¼4       RRR4       VP'                  4        \)        V4      '       d   \+        V4       EK;  EK>  	  VP'                  4        R#   + '       g   i     LV; i  TP'                  4        \)        T4      '       d   \+        T4       i i ; i  TP'                  4        i ; i)aƒ  
Unzip the file (with path `filename`) to the destination `location`.  All
files are written based on system defaults and umask (i.e. permissions are
not preserved), except that regular file members with any execute
permissions (user, group, or world) have "chmod +x" applied after being
written. Note that for windows, any execute changes using os.chmod are
no-ops per the python docs.
ÚrbT)Ú
allowZip64zQThe zip file ({}) has a file ({}) trying to install outside target directory ({})ÚwbN)r   r   )r
   ÚopenÚzipfileÚZipFiler-   ÚnamelistÚinfolistrJ   r%   r   r   ÚjoinÚdirnamer7   r   r   ÚendswithÚshutilÚcopyfileobjÚcloserH   r?   )rJ   rK   rL   ÚzipfpÚzipÚleadingrA   ÚnameÚfnÚdirÚmessageÚfpÚdestfps   &&&          r   Ú
unzip_filere   m   s~  € ô ˆxÔÜ�˜4Ó €Eð Ü�oŠo˜e°Ô5ˆÜ! #§,¡,£.Ó1×=Ð=°gˆØ—L‘L—NˆDØ—=‘=ˆDØˆBßÜ& tÓ,¨QÕ/�Ü—‘—‘˜hÓ+ˆBÜ—'‘'—/‘/ "Ó%ˆCÜ& x×4Ò4ð4ð ô (¨¯©°xÀXÓ(NÓOÐOØ�{‰{˜;×'Ò'ä˜2–ä˜3”ð —X‘X˜d“^�ðOÜ˜b $Ÿœ¨6Ü×*Ò*¨2Ô6÷ (ð —H‘H”JÜ-¨d×3Ò3ÜJÈ2×Nò 4ñ5 #ð: 	�‰Ž÷ (Ÿûð —H‘H”JÜ-¨d×3Ò3ÜJÈ2ÕNð 4ûð 	�‰�ús<   ™D#G; Ä=G	ÅF6Å(G	Å04G; Æ6GÇG	Ç	/G8Ç8G; Ç;Hc               ó$   € V ^8„  d   QhRRRRRR/# )r   rJ   r   rK   r   r<   r   )r   s   "r   r   r   ›   s&   € ÷ ]ñ ]˜ð ]¨ð ]°ñ ]r   c                ó|  a aaa€ \        S4       S P                  4       P                  R4      '       g&   S P                  4       P                  R4      '       d   RpM˜S P                  4       P                  \        4      '       d   RpMlS P                  4       P                  \        4      '       d   RpM@S P                  4       P                  R4      '       d   RpM\
        P                  RS 4       R	p\        P                  ! S VR
R7      p \        VP                  4        Uu. uF  qDP                  NK  	  up4      p \        P                  o\        4       oV'       dr   VP                  4        F]  p\        VP                  4      w  rgWtn        VP                  4       '       g   K8  \        VP                   4      w  r‰W†8X  g   KW  W”n        K_  	  R VVV V3R llp
VP#                  SV
R7       VP)                  4        R# u upi   \$         d    \'        S SY54        L1i ; i  TP)                  4        i ; i)a…  
Untar the file (with path `filename`) to the destination `location`.
All files are written based on system defaults and umask (i.e. permissions
are not preserved), except that regular file members with any execute
permissions (user, group, or world) have "chmod +x" applied on top of the
default.  Note that for windows, any execute changes using os.chmod are
no-ops per the python docs.
z.gzz.tgzzr:gzzr:bz2zr:xzz.tarÚrz-Cannot determine compression type for file %szr:*zutf-8)Úencodingc               ó$   € V ^8„  d   QhRRRRRR/# )r   Úmemberútarfile.TarInfor   r   r   r   )r   s   "r   r   Ú untar_file.<locals>.__annotate__Î   s!   € ÷ %ñ % ?ð %¸#ð %À/ñ %r   c                ó²  <€ V P                   p  S! V S4      p T P                  4       '       d   T^I,          '       d
   ST n         T # RT n         T #   \        P                   d8    \        P                  R ,          R9   d   \        P
                  ! T S4      p  L�h i ; i  \        P                   d#   pRp\        TP                  ST4      4      hRp?ii ; i):Né   Nz%Invalid member in the tar file {}: {}N>   ©ro   é	   é   ©ro   é
   é   ©ro   é   é   )
rG   ÚtarfileÚLinkOutsideDestinationErrorÚsysÚversion_infoÚ
tar_filterÚTarErrorr   r   Úisfile)	rk   r   Ú	orig_modeÚexcrb   Údata_filterÚdefault_mode_plus_executablerJ   rK   s	   &&   €€€€r   Ú
pip_filterÚuntar_file.<locals>.pip_filterÎ   sÙ   ø€ Ø"ŸK™K�	ðð"Ù!,¨V°XÓ!>˜ð2 —=‘=—?’? y°5×'8Ô'8Ø">�F”Kð �ð #'�F”KØ�øôA #×>Ñ>ô "Ü×+Ñ+¨BÕ/ð 4ô ô &-×%7Ò%7¸ÀÓ%IšFà!ð"ûô ×'Ñ'ô 	ØE�Gô ,ØŸ™Ø$Øóóð ûð		ús0   �	A ÁABÂB ÂBÂB ÂCÂ4CÃC)ÚfilterN)r
   ÚlowerrX   r   r   ÚloggerÚwarningry   rQ   r-   Ú
getmembersr_   r‚   r:   r%   ÚislnkÚlinknameÚ
extractallÚAttributeErrorÚ_untar_without_filterr[   )rJ   rK   rG   Útarrk   r^   Ú	name_leadÚ	name_restÚlnk_leadÚlnk_restr„   r‚   rƒ   s   ff         @@r   Ú
untar_filer•   ›   s·  û€ ô ˆxÔØ‡~�~Ó× Ñ  ×'Ò'¨8¯>©>Ó+;×+DÑ+DÀV×+LÒ+LØ‰Ø	�‰Ó	×	"Ñ	"¤>×	2Ò	2Ø‰Ø	�‰Ó	×	"Ñ	"¤=×	1Ò	1Ø‰Ø	�‰Ó	×	"Ñ	" 6×	*Ò	*Ø‰ä�‰Ø;Øô	
ð ˆä
�,Š,�x °Ô
8€CðCÜ!¸S¿^¹^Ô=MÓ"NÑ=M°6§;¤;Ñ=MÑ"NÓOˆð
:	8Ü!×-Ñ-ˆKô ,MÓ+NÐ(çð "Ÿn™nÖ.�FÜ+<¸V¿[¹[Ó+IÑ(�IØ"+”KØ—|‘|—~”~Ü->¸v¿¹Ó-OÑ*˜Ø#Ö0Ø.6žOñ /÷%ó %ðN �N‰N˜8¨JˆNÔ7ð 	�	‰	ŽùòE #Oøô ô 	DÜ! (¨H°cÖCð	Dûðv 	�	‰	�úsO   ÄH) Ä&HÄ:H) ÅH ÅAH) Æ,H) Ç)H) ÈH) ÈH&È#H) È%H&È&H) È)H;c               ó$   € V ^8„  d   QhRRRRRR/# )r   r�   útarfile.TarFileÚtarinforl   r   r(   r   )r   s   "r   r   r   û   s"   € ÷ ñ  /ð ¸Oð ÐPTñ r   c                óR  € \         P                  P                  \         P                  P                  VP                  4      VP
                  4      p\         P                  P                  V4      pVP                  RR4      p V P                  V4       R#   \         d     R# i ; i)zGCheck if the file pointed to by the symbolic link is in the tar archiver   r   TF)
r   r   rV   rW   r_   rŒ   ÚnormpathÚreplaceÚ	getmemberÚKeyError)r�   r˜   rŒ   s   && r   Úis_symlink_target_in_tarrž   û   sy   € ä�w‰w�|‰|œBŸG™GŸO™O¨G¯L©LÓ9¸7×;KÑ;KÓL€Hä�w‰w×Ñ Ó)€HØ×Ñ  cÓ*€HðØ�‰�hÔÙøÜô Úðús   ÂB ÂB&Â%B&c          
     ó,   € V ^8„  d   QhRRRRRRRRRR	/# )
r   rJ   r   rK   r�   r—   r^   r(   r   r<   r   )r   s   "r   r   r   	  sH   € ÷ BIñ BIØðBIàðBIð 
ðBIð ð	BIð
 
ñBIr   c                óÖ  € VP                  4        EFÂ  pVP                  pV'       d   \        V4      ^,          p\        P                  P                  W4      p\        W4      '       g   Rp\        VP                  WV4      4      hVP                  4       '       d   \        V4       Kš  VP                  4       '       dX   \        W$4      '       g2   Rp\        VP                  WP                  VP                  4      4      h VP                  WF4       EK   VP%                  V4      p	\        \        P                  P+                  T4      4       T	f   Q h\-        TR4      ;_uu_ 4       p
\.        P0                  ! Yš4       RRR4       T	P3                  4        TP5                  YF4       TP6                  ^I,          '       g   EK·  \9        T4       EKÅ  	  R#   \         d/   p\         P#                  RT TP                  T4        Rp?EKý  Rp?ii ; i  \&        \(        3 d/   p\         P#                  RT TP                  T4        Rp?EK?  Rp?ii ; i  + '       g   i     LÝ; i)z/Fallback for Python without tarfile.data_filterzQThe tar file ({}) has a file ({}) trying to install outside target directory ({})z/In the tar file %s the member %s is invalid: %sNrP   )rŠ   r_   r%   r   r   rV   r7   r   r   Úisdirr
   Úissymrž   rŒ   Ú_extract_memberÚ	Exceptionrˆ   r‰   Úextractfiler�   rŽ   rW   rQ   rY   rZ   r[   ÚutimerG   r?   )rJ   rK   r�   r^   rk   r`   r   rb   r�   rc   rd   s   &&&&       r   r�   r�   	  sÔ  € ð —.‘.×"ˆØ�[‰[ˆßÜ" 2Ó& qÕ)ˆBÜ�w‰w�|‰|˜HÓ)ˆÜ" 8×2Ò2ð0ð ô $ G§N¡N°8À8Ó$LÓMÐMØ�<‰<�>Š>Ü�tÖØ�\‰\�^Š^Ü+¨C×8Ò8ð4ð ô (Ø—N‘N 8¯[©[¸&¿/¹/ÓJóð ðØ×#Ñ# F×1ðØ—_‘_ VÓ,�ô ”r—w‘w—‘ tÓ,Ô-Ø’>Ð!�>Ü�d˜D×!Ô! VÜ×"Ò" 2Ô.÷ "à�H‰HŒJà�I‰I�fÔ#à�{‰{˜U×"×"ÜBÀ4×Hóq #øô0 ô 	ô —‘ØEØØ—K‘KØô	ö ûð	ûô œnÐ-ô 	ô —‘ØEØØ—K‘KØô	ö ûð	ú÷ "×!ús<   ÄGÄHÅ,IÇHÇ%"HÈHÈIÈ'"IÉIÉI(c               ó(   € V ^8„  d   QhRRRRRRRR/# )r   rJ   r   rK   Úcontent_typez
str | Noner   r<   r   )r   s   "r   r   r   N  s6   € ÷ /Nñ /NØð/Nàð/Nð ð/Nð 
ñ	/Nr   c                ó  a aa€ \         P                  P                  S 4      o S P                  R4      '       * oR V VV3R llpR V V3R llpVR8X  d   V! 4       # VR8X  d   V! 4       # S P	                  4       P                  \
        4      '       d   V! 4       # S P	                  4       P                  \        \        ,           \        ,           4      '       d   V! 4       # \        P                  ! S 4      p\        P                  ! S 4      pV'       d   V'       g   V! 4       # V'       d   V'       g   V! 4       # V'       d   V'       d   \        P                  RS 4       \        P                  R	S SV4       \!        R
S 24      h)zÁUnpack ``filename`` into ``location``.

Archive format is chosen in order of decreasing reliability:
``content_type``, then filename extension, then magic signature
(unambiguous matches only).
z.whlc               ó   € V ^8„  d   QhRR/# ©r   r   r<   r   )r   s   "r   r   Ú!unpack_file.<locals>.__annotate__\  s   € ÷ <ñ <�Dñ <r   c                 ó$   <€ \        S SSR 7       R# ))rL   N)re   )rJ   rK   Úzip_flattens   €€€r   Ú_unzipÚunpack_file.<locals>._unzip\  s   ø€ Ü�8˜X¨{×;r   c               ó   € V ^8„  d   QhRR/# r«   r   )r   s   "r   r   r¬   _  s   € ÷ 'ñ '�Dñ 'r   c                 ó    <€ \        S S4       R # ©N)r•   )rJ   rK   s   €€r   Ú_untarÚunpack_file.<locals>._untar_  s   ø€ Ü�8˜XÖ&r   zapplication/zipzapplication/x-gzipzAmbiguous file signature in %s.zZCannot unpack file %s (downloaded from %s, content-type: %s); cannot detect archive formatz#Cannot determine archive format of )r   r   ÚrealpathrX   r‡   r	   r   r   r   rR   Ú
is_zipfilery   Ú
is_tarfilerˆ   ÚerrorÚcriticalr   )rJ   rK   r¨   r¯   r´   r·   r¸   r®   s   ff&    @r   Úunpack_filer»   N  s'  ú€ ô �w‰w×Ñ Ó)€HØ×'Ñ'¨Ó/Ô/€K÷<ò <÷'ñ 'ð Ð(Ô(Ù‹xˆØÐ+Ô+Ù‹xˆà‡~�~Ó× Ñ ¤×0Ò0Ù‹xˆØ‡~�~Ó× Ñ ¤´.Õ!@Ä=Õ!P×QÒQÙ‹xˆô ×#Ò# HÓ-€JÜ×#Ò# HÓ-€JßŸ*Ù‹xˆßŸ*Ù‹xˆß—jÜ�‰Ð6¸ÔAä
‡O�Oð	'àØØôô ÐAÀ(ÀÐLÓ
MÐMr   )Tr³   )*Ú__doc__Ú
__future__r   Úloggingr   rY   rE   r{   ry   rR   Úcollections.abcr   r   Úpip._internal.exceptionsr   Úpip._internal.utils.filetypesr   r   r   r	   Úpip._internal.utils.miscr
   Ú	getLoggerÚ__name__rˆ   ÚSUPPORTED_EXTENSIONSÚbz2ÚImportErrorÚdebugÚlzmar   r%   r-   r7   r:   r?   rH   re   r•   rž   r�   r»   r   r   r   Ú<module>rÊ      s  ðÙ !å "ã Û 	Û Û Û 
Û Û Ý $Ý å 6÷ó õ 0à	×	Ò	˜8Ó	$€ð &¨Õ6Ð ð0Ûà˜NÕ*Ðð1ãà˜MÕ)Ðõ
õ	õõXõ,õ8õ>÷+õ\]õ@õBI÷J/Nñ /Nøð[	 ô 0Ø
‡L�LÐ.Ö/ð0ûð ô 1Ø
‡L�LÐ/Ö0ð1ús$   Á%C Á3C, ÃC)Ã(C)Ã,DÄD