+
    LV-jw  ã                   ó@   € ^ RI t ^ RIt^ RIt^ RIHt  ! R R]4      tR# )é    N)ÚAbstractArchiveFileSystemc                   óª   a a€ ] tR t^t oRtRtRtRtRRRR]P                  RR3V 3R llt
]V 3R	 l4       tR
 tR tR tR tRR ltRR ltRtVtV ;t# )ÚZipFileSystemz�Read/Write contents of ZIP archive as a file-system

Keeps file object open while instance lives.

This class is pickleable, but not necessarily thread-safe
Ú ÚzipFÚrNTc                óÔ  <€ \         S
V `  ! V 3/ VB  V\        R4      9  d   \        RV R24      hW n        \        V\        \        P                  34      '       d9   VR8X  d   Rp	M	VR,           p	\        P                  ! V3RV	RV/T;'       g    / B pW`n        Wn        VP                  4       V n        \        P                   ! V P                  VVVVR	7      V n        R
V n        R
# )a+  
Parameters
----------
fo: str or file-like
    Contains ZIP, and must exist. If a str, will fetch file using
    :meth:`~fsspec.open_files`, which must return one file exactly.
mode: str
    Accept: "r", "w", "a"
target_protocol: str (optional)
    If ``fo`` is a string, this value can be used to override the
    FS protocol inferred from a URL
target_options: dict (optional)
    Kwargs passed when instantiating the target FS, if ``fo`` is
    a string.
compression, allowZip64, compresslevel: passed to ZipFile
    Only relevant when creating a ZIP
Úrwazmode 'z' no understoodÚazr+bÚbÚmodeÚprotocol)r   ÚcompressionÚ
allowZip64ÚcompresslevelN)ÚsuperÚ__init__ÚsetÚ
ValueErrorr   Ú
isinstanceÚstrÚosÚPathLikeÚfsspecÚopenÚforce_zip_64ÚofÚ	__enter__ÚfoÚzipfileÚZipFiler   Ú	dir_cache)Úselfr   r   Útarget_protocolÚtarget_optionsr   r   r   ÚkwargsÚmÚ	__class__s   &&&&&&&&, €Úk/Volumes/fast/ai/experiments/ui-tars-smoke/.venv/lib/python3.14/site-packages/fsspec/implementations/zip.pyr   ÚZipFileSystem.__init__   sÞ   ø€ ô8 	‰Ò˜Ñ( Ò(Ø”s˜5“zÔ!Ü˜v d V¨?Ð;Ó<Ð<ØŒ	Ü�bœ3¤§¡Ð,×-Ò-Ø�sŒ{Ø‘à˜3•J�Ü—’ØñØðØ%4ðØ9G×9MÐ9MÈ2ñˆBð 'ÔØŒØ—,‘,“.ˆŒÜ—?’?Ø�G‰GØØ#Ø!Ø'ô
ˆŒð ˆŽó    c                ó@   <€ \         SV `  V4      P                  R 4      # )Ú/)r   Ú_strip_protocolÚlstrip)ÚclsÚpathr(   s   &&€r)   r.   ÚZipFileSystem._strip_protocolH   s    ø€ ô ‰wÑ& tÓ,×3Ñ3°CÓ8Ð8r+   c                óì   € \        V R 4      '       d   V P                  4        V =\        V R4      '       d>   \        V P                  R4      '       d    V P                  P	                  RRR4       R# R# R# )r   r   Ú__exit__N)ÚhasattrÚcloser   r   r4   ©r#   s   &r)   Ú__del__ÚZipFileSystem.__del__M   sY   € Ü�4˜×ÒØ�J‰JŒLØ�Ü�4˜×Ò¤7¨4¯7©7°J×#?Ò#?Ø�G‰G×Ñ˜T 4¨Ö.ñ $@Ñr+   c                ó:   € V P                   P                  4        R# )z;Commits any write changes to the file. Done on ``del`` too.N)r   r6   r7   s   &r)   r6   ÚZipFileSystem.closeT   s   € à�‰�‰Ör+   c           
     ó°  € V P                   e   V P                  \        R4      9   Ed#   V P                  P	                  4       pV P                  V P                  P                  4       4       Uu/ uF*  pVP                  R4      RVP                  R4      R^ RR/bK,  	  upV n         V F�  p\        P                  P                   Uu/ uF  qD\        W4R 4      bK  	  ppTP                  RVP                  P                  R4      RVP                  RVP                  4       '       d   RMR/4       WPP                   VR,          &   KŸ  	  R # R # u upi u upi )NÚwar-   ÚnameÚsizeÚtypeÚ	directoryÚfile)r"   r   r   r   ÚinfolistÚ_all_dirnamesÚnamelistÚrstripr    ÚZipInfoÚ	__slots__ÚgetattrÚupdateÚfilenameÚ	file_sizeÚis_dir)r#   ÚfilesÚdirnameÚzÚsÚfs   &     r)   Ú	_get_dirsÚZipFileSystem._get_dirsX   s0  € Ø�>‰>Ò! T§Y¡Y´#°d³)Õ%;ð —H‘H×%Ñ%Ó'ˆEð  $×1Ñ1°$·(±(×2CÑ2CÓ2EÔFóñ  G�Gð —‘˜sÓ#Ø˜GŸN™N¨3Ó/Ø˜AØ˜Kð&ò ñ
  GñˆDŒNó �Ü5<·_±_×5NÒ5NÓOÑ5N°œ  dÓ+Ò+Ñ5N�ÐOØ—‘à §
¡
× 1Ñ 1°#Ó 6Ø §¡Ø°·±·
²
¡Àðôð -.—‘˜q �yÓ)ó ñ &<ùòùò Ps   Á/0EÃEc                ó@   € V P                   P                  ! W3/ VB  R # ©N)r   Úwritestr)r#   r1   Úvaluer&   s   &&&,r)   Ú	pipe_fileÚZipFileSystem.pipe_filep   s   € à�‰×Ò˜$Ñ0¨Ô0r+   c                óÞ  € V P                  V4      pR V9   dH   V P                  \        R4      9   d.   V P                  V4      '       d   \	        R4      h\        V4      hR V P                  9   d   RV9   d   \	        R4      hV P                  P                  WP                  R4      V P                  R7      pR V9   d.   V P                  V4      pVR,          Vn        VR,          Vn        V# )r   r=   z7ZipFS can only be open for reading or writing, not bothÚwr   )Úforce_zip64r?   r>   )r.   r   r   ÚexistsÚOSErrorÚFileNotFoundErrorr   r   Ústripr   Úinfor?   r>   )	r#   r1   r   Ú
block_sizeÚ
autocommitÚcache_optionsr&   Úoutrb   s	   &&&&&&,  r)   Ú_openÚZipFileSystem._opent   sÁ   € ð ×#Ñ# DÓ)ˆØ�$Œ;˜4Ÿ9™9¬¨D«	Ô1Ø�{‰{˜4× Ò ÜÐWÓXÐXÜ# DÓ)Ð)Ø�$—)‘)Ô  t¤ÜÐSÓTÐTØ�h‰h�m‰m˜D§*¡*¨S£/¸t×?PÑ?PˆmÓQˆØ�$Œ;Ø—9‘9˜T“?ˆDØ˜F•|ˆCŒHØ˜F•|ˆCŒHØˆ
r+   c                óò  € Ve   V^8  d   \        R4      hR R lp\        V\        4      '       g   \        V4      pVP                  R4      pV! V4      p\	        V4      pV P                  4        / p	WP                  9   dB   V P                  V,          R,          R8X  d#   V P                  V,          W‘&   V'       d   V	# V.# V P                  P                  4        F²  w  r«\	        V! V
4      ;p4      V8  gM   \        ;QJ d%    R \        W|4       4       F  '       g   K   RM	  R	M! R \        W|4       4       4      '       d   Kk  VR,          R
8X  d$   V'       d   W©9  d   W¹V
P                  R4      &   Kœ  W©9  g   K¤  V'       d   TMR Wš&   K´  	  V'       dB   V	P                  4        UUu/ uF%  w  rÞVP                  R4      W(,           8  g   K#  WÞbK'  	  p	ppV'       d   V	# \        V	4      # u uppi )Nzmaxdepth must be at least 1c                ó$   € V ^8„  d   QhR\         /# )é   Ú_path)r   )Úformats   "r)   Ú__annotate__Ú(ZipFileSystem.find.<locals>.__annotate__�   s   € ÷ 	Kñ 	KœCñ 	Kr+   c           	      ój   € \        \        R V P                  RR4      P                  R4      4      4      # )NÚ\r-   )ÚlistÚfilterÚreplaceÚsplit)rl   s   &r)   Úto_partsÚ$ZipFileSystem.find.<locals>.to_parts�   s*   € Üœ˜t U§]¡]°4¸Ó%=×%CÑ%CÀCÓ%HÓIÓJÐJr+   r-   r@   rB   c              3   ó.   "  € T F  w  rW8g  x € K  	  R # 5irV   © )Ú.0r   r   s   &  r)   Ú	<genexpr>Ú%ZipFileSystem.find.<locals>.<genexpr>¥   s   é € ð JÙ#>™4˜1�–Ó#>ùs   ‚TFrA   )r   r   r   r/   ÚlenrS   r"   ÚitemsÚanyr   ra   ÚcountÚsorted)r#   r1   ÚmaxdepthÚwithdirsÚdetailr&   rv   Ú
path_partsÚ
path_depthÚresultÚ	file_pathÚ	file_infoÚ
file_partsÚkÚvs   &&&&&,         r)   ÚfindÚZipFileSystem.find‹   s¯  € ØÒ H¨q¤LÜÐ:Ó;Ð;õ	Kô ˜$¤×$Ò$Ü�t“9ˆDð �{‰{˜3ÓˆÙ˜d“^ˆ
Ü˜“_ˆ
à�‰Ôàˆð —>‘>Ô! d§n¡n°TÕ&:¸6Õ&BÀfÔ&LØŸ>™>¨$Õ/ˆF‰Lß#�6Ð/¨$¨Ð/à$(§N¡N×$8Ñ$8Ö$:Ñ ˆIÜ¡¨)Ó!4Ð4�:Ó5¸
ÔBÇcÃcñ JÜ#& zÔ#>óJÇcÇcÂcñ JÜ#& zÔ#>óJ÷ Gò Gñ à˜Õ  KÔ/ß 	Ô 7Ø3<˜9Ÿ?™?¨3Ó/Ñ0ÙàÖ&ß17¡I¸T�Ó!ñ %;÷ à!'§¡¤ôÙ!/™˜°1·7±7¸3³<À(ÕBWÑ3W”�’¡ð ñ ÷  ˆvÐ3¤V¨F£^Ð3ùós   Æ0 G3ÇG3)r"   r   r   r   r   r   )ÚrbNTN)NFF)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__Úroot_markerr   Úcachabler    Ú
ZIP_STOREDr   Úclassmethodr.   r8   r6   rS   rY   rg   r�   Ú__static_attributes__Ú__classdictcell__Ú__classcell__)r(   Ú__classdict__s   @@r)   r   r      su   ù‡ € ñð €KØ€HØ€Hð ØØØØ×&Ñ&ØØ÷2ðh ô9ó ð9ò/òò.ò01ô÷.,4ô ,4r+   r   )r   r    r   Úfsspec.archiver   r   ry   r+   r)   Ú<module>rž      s    ðÛ 	Û ã Ý 4ôo4Ð-ö o4r+   