+
    IV-j÷%  ã                  ó  € ^ RI H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 ^RIHtHt ^RIHt ^R	IHt ^R
IHt ]P0                  '       d	   ^RIHtHt ]P8                  ! ]4      t]	 ! R R4      4       t ! R R]4      t R# )é    )ÚannotationsN)Úcontextmanager)Ú	dataclass)ÚHTTPException)ÚBytesIOÚIOBase)ÚInvalidHeaderÚTimeoutError)ÚBaseHTTPResponse)ÚRetry)ÚEmscriptenRequest)ÚBaseHTTPConnectionÚBaseHTTPSConnectionc                  ó@   € ] tR t^t$ R]R&   R]R&   R]R&   R]R&   R	tR
# )ÚEmscriptenResponseÚintÚstatus_codezdict[str, str]ÚheaderszIOBase | bytesÚbodyr   Úrequest© N)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__annotations__Ú__static_attributes__r   ó    Út/Volumes/fast/ai/experiments/ui-tars-smoke/.venv/lib/python3.14/site-packages/urllib3/contrib/emscripten/response.pyr   r      s   ‡ àÓØÓØ
ÓØ×r   r   c                  ó`  a € ] tR t^tR"R V 3R lllt]R R l4       t]P                  R R l4       t]R R l4       t]R	 R
 l4       t	]	P                  R R l4       t	R#R R llt
R R ltR$R R lltR"R R lltR R ltR R lt]R R l4       tR R ltR R lt]R R  l4       tR!tV ;t# )%ÚEmscriptenHttpResponseWrapperc               ó$   € V ^8„  d   QhRRRRRR/# )é   Úinternal_responser   Úurlú
str | NoneÚ
connectionú/BaseHTTPConnection | BaseHTTPSConnection | Noner   )Úformats   "r   Ú__annotate__Ú*EmscriptenHttpResponseWrapper.__annotate__   s)   € ÷ 'ñ 'à-ð'ð ð'ð Dñ	'r   c           
     	ó.  <€ R V n         R V n        RV n        Wn        W n        W0n        RV n        \        SV `!  VP                  VP                  V^ RRRR7       V P                  V P                  P                  P                  4      V n        RV n        R # )NFzHTTP/?Ú T)r   ÚstatusÚrequest_urlÚversionÚversion_stringÚreasonÚdecode_content)Ú_poolÚ_bodyÚ_uncached_read_occurredÚ	_responseÚ_urlÚ_connectionÚ_closedÚsuperÚ__init__r   r   Ú_init_lengthr   ÚmethodÚlength_remainingÚlength_is_certain)Úselfr$   r%   r'   Ú	__class__s   &&&&€r   r<   Ú&EmscriptenHttpResponseWrapper.__init__   s’   ø€ ð ˆŒ
ØˆŒ
Ø',ˆÔ$Ø*ŒØŒ	Ø%ÔØˆŒÜ‰ÑØ%×-Ñ-Ø$×0Ñ0ØØØ#ØØð 	ô 	
ð !%× 1Ñ 1°$·.±.×2HÑ2H×2OÑ2OÓ PˆÔØ!&ˆÖr   c               ó   € V ^8„  d   QhRR/# )r#   Úreturnr&   r   )r)   s   "r   r*   r+   9   s   € ÷ ñ �Zñ r   c                	ó   € V P                   # ©N©r8   ©rA   s   &r   r%   Ú!EmscriptenHttpResponseWrapper.url8   s   € à�y‰yÐr   c               ó    € V ^8„  d   QhRRRR/# )r#   r%   r&   rE   ÚNoner   )r)   s   "r   r*   r+   =   s   € ÷ ñ �zð  dñ r   c                	ó   € Wn         R # rG   rH   )rA   r%   s   &&r   r%   rJ   <   s   € àŽ	r   c               ó   € V ^8„  d   QhRR/# )r#   rE   r(   r   )r)   s   "r   r*   r+   A   s   € ÷  ñ  ÐKñ  r   c                	ó   € V P                   # rG   )r9   rI   s   &r   r'   Ú(EmscriptenHttpResponseWrapper.connection@   s   € à×ÑÐr   c               ó   € V ^8„  d   QhRR/# )r#   rE   úRetry | Noner   )r)   s   "r   r*   r+   E   s   € ÷ ñ ˜ñ r   c                	ó   € V P                   # rG   ©Ú_retriesrI   s   &r   ÚretriesÚ%EmscriptenHttpResponseWrapper.retriesD   s   € à�}‰}Ðr   c               ó    € V ^8„  d   QhRRRR/# )r#   rV   rR   rE   rL   r   )r)   s   "r   r*   r+   I   s   € ÷  ñ  ˜|ð  °ñ  r   c                	ó   € Wn         R # rG   rT   )rA   rV   s   &&r   rV   rW   H   s	   € ð  Žr   c               ó$   € V ^8„  d   QhRRRRRR/# ©r#   Úamtú
int | Noner3   úbool | NonerE   ztyping.Generator[bytes]r   )r)   s   "r   r*   r+   M   s$   € ÷ ñ ØðØ7Bðà	 ñr   c              #  óP   "  €  V P                  WR7      pV'       d   Vx € K!  R# 5i)aÿ  
A generator wrapper for the read() method. A call will block until
``amt`` bytes have been read from the connection or until the
connection is closed.

:param amt:
    How much of the content to read. The generator will return up to
    much data per iteration, but may return less. This is particularly
    likely when using compressed data. However, the empty string will
    never be returned.

:param decode_content:
    If True, will attempt to decode the body based on the
    'content-encoding' header.
)r\   r3   N©Úread)rA   r\   r3   Údatas   &&& r   ÚstreamÚ$EmscriptenHttpResponseWrapper.streamM   s%   é € ð$ Ø—9‘9 �9ÓDˆDçØ”
áùs   ‚$&c               ó    € V ^8„  d   QhRRRR/# )r#   Úrequest_methodr&   rE   r]   r   )r)   s   "r   r*   r+   g   s   € ÷ #ñ #¨:ð #¸*ñ #r   c                	ó®  € V P                   P                  R 4      pVeg    VP                  R4       Uu0 uF  p\        V4      kK  	  pp\	        V4      ^8”  d   \        RV,          4      hVP                  4       pV^ 8  d   RpMRpV P                  R9   g#   ^dV P                  u;8:  d   ^È8  g
   M VR8X  d   ^ pV# u upi   \         d    Rp LKi ; i)zcontent-lengthNÚ,z8Content-Length contained multiple unmatching values (%s)ÚHEAD)éÌ   i0  )	r   ÚgetÚsplitr   Úlenr	   ÚpopÚ
ValueErrorr.   )rA   rf   Úcontent_lengthÚvalÚlengthsÚlengths   &&    r   r=   Ú*EmscriptenHttpResponseWrapper._init_lengthg   sà   € à%)§\¡\×%5Ñ%5Ð6FÓ%GˆàÒ%ð"ð 0>×/CÑ/CÀCÔ/HÓIÑ/H¨œ3˜sž8Ñ/H�ÐIÜ�w“< !Ô#Ü'ð1Ø3AõBóð ð !Ÿ™›�ð ˜A”:Ø!�Føð ˆFð �K‰K˜:Ô%Ø�d—k‘kÖ' CÖ'Ø Ô'àˆFàˆùò1 Jøô ô Ø’ðús"   ¡C ´B?Á4C Â?C ÃCÃCc               ó(   € V ^8„  d   QhRRRRRRRR/# )	r#   r\   r]   r3   r^   Úcache_contentÚboolrE   Úbytesr   )r)   s   "r   r*   r+   Œ   s2   € ÷ &,ñ &,àð&,ð $ð&,ð ð	&,ð
 
ñ&,r   c                	ó¼  € V P                   '       g_   V P                  eQ   \        V P                  P                  \        4      '       d)   V P                  P                  P
                  '       d   R# V P                  4       ;_uu_ 4        \        V P                  P                  \        4      '       gZ   \        V P                  P                  4      V n        RV n	        \        V P                  P                  4      V P                  n        Ve7   V^ 8¼  d0   RpV P                  P                  P                  V4      pRV n        MLV P                  P                  P                  4       pV'       d   V P                  '       g   W@n        MRV n        V P                  e,   \        V P                  \        V4      ,
          ^ 4      V n        \        V4      ^ 8X  g$   V P                  '       d6   V P                  ^ 8X  d%   V P                  P                  P                  4        \         P"                  ! \$        V4      uuR R R 4       #   + '       g   i     R # ; i)Nr   TF)r:   r7   Ú
isinstancer   r   ÚclosedÚ_error_catcherrm   r?   r@   r   ra   r6   r5   ÚmaxÚcloseÚtypingÚcastrx   )rA   r\   r3   rv   rb   s   &&&& r   ra   Ú"EmscriptenHttpResponseWrapper.readŒ   sŽ  € ð �L�LˆLØ�~‰~Ò%Ü˜4Ÿ>™>×.Ñ.´×7Ò7¸D¿N¹N×<OÑ<O×<V×<VÐ<Váà× Ñ ×"Õ"ä˜dŸn™n×1Ñ1´6×:Ò:Ü(+¨D¯N©N×,?Ñ,?Ó(@�Ô%Ø)-�Ô&ä&-¨d¯n©n×.AÑ.AÓ&B�—‘Ô#ØŠ 3¨!¤8à %�Ø—~‘~×*Ñ*×/Ñ/°Ó4�Ø/3�Õ,à—~‘~×*Ñ*×/Ñ/Ó1�ß ¨×)E×)EÐ)EØ!%•Jà37�DÔ0Ø×$Ñ$Ò0Ü(+¨D×,AÑ,AÄCÈÃIÕ,MÈqÓ(Q�Ô%Ü�4‹y˜AŒ~Ø×&×&Ð&¨4×+@Ñ+@ÀAÔ+Eð —‘×#Ñ#×)Ñ)Ô+Ü—;’;œu dÓ+÷3 #×"×"Ó"ús!   ÂC)I
Å5I
ÆA(I
Ç0AI
É
I	c               ó$   € V ^8„  d   QhRRRRRR/# r[   r   )r)   s   "r   r*   r+   ´   s(   € ÷ 
ñ 
àð
ð $ð
ð 
!ñ	
r   c              #  	óN   "  €  V P                  W4      pV'       g   R# Vx € K"  5i)TNr`   )rA   r\   r3   rx   s   &&& r   Úread_chunkedÚ*EmscriptenHttpResponseWrapper.read_chunked´   s#   é € ð Ø—I‘I˜cÓ2ˆEßÙØŒKùs   ‚#%c               ó   € V ^8„  d   QhRR/# ©r#   rE   rL   r   )r)   s   "r   r*   r+   À   s   € ÷  ñ  ˜dñ  r   c                	óª   € V P                   '       d   V P                  '       g   R # V P                   P                  V P                  4       R V n        R # rG   )r4   r9   Ú	_put_connrI   s   &r   Úrelease_connÚ*EmscriptenHttpResponseWrapper.release_connÀ   s9   € Ø�z�zˆz ×!1×!1Ð!1Ùà�
‰
×Ñ˜T×-Ñ-Ô.ØˆÖr   c               ó   € V ^8„  d   QhRR/# r‡   r   )r)   s   "r   r*   r+   Ç   s   € ÷ ñ ˜Dñ r   c                	ó&   € V P                  4        R # rG   )r~   rI   s   &r   Ú
drain_connÚ(EmscriptenHttpResponseWrapper.drain_connÇ   s   € Ø�
‰
Žr   c               ó   € V ^8„  d   QhRR/# )r#   rE   rx   r   )r)   s   "r   r*   r+   Ë   s   € ÷ 1ñ 1�eñ 1r   c                	ób   € V P                   '       d   V P                   # V P                  R R7      # )T)rv   )r5   ra   rI   s   &r   rb   Ú"EmscriptenHttpResponseWrapper.dataÊ   s&   € à�:�:ˆ:Ø—:‘:Ðà—9‘9¨4�9Ó0Ð0r   c               ó   € V ^8„  d   QhRR/# )r#   rE   z
typing.Anyr   )r)   s   "r   r*   r+   Ñ   s   € ÷ !ñ !�jñ !r   c                ód   € V P                   P                  R4      p\        P                  ! V4      # )al  
Deserializes the body of the HTTP response as a Python object.

The body of the HTTP response must be encoded using UTF-8, as per
`RFC 8529 Section 8.1 <https://www.rfc-editor.org/rfc/rfc8259#section-8.1>`_.

To use a custom JSON decoder pass the result of :attr:`HTTPResponse.data` to
your custom decoder instead.

If the body of the HTTP response is not decodable to UTF-8, a
`UnicodeDecodeError` will be raised. If the body of the HTTP response is not a
valid JSON document, a `json.JSONDecodeError` will be raised.

Read more :ref:`here <json_content>`.

:returns: The body of the HTTP response as a Python object.
zutf-8)rb   ÚdecodeÚ_jsonÚloads)rA   rb   s   & r   ÚjsonÚ"EmscriptenHttpResponseWrapper.jsonÑ   s'   € ð$ �y‰y×Ñ Ó(ˆÜ�{Š{˜4Ó Ð r   c               ó   € V ^8„  d   QhRR/# r‡   r   )r)   s   "r   r*   r+   æ   s   € ÷  ñ  �tñ  r   c                	ó>  € V P                   '       g‹   \        V P                  P                  \        4      '       d%   V P                  P                  P                  4        V P                  '       d"   V P                  P                  4        R V n        RV n         R # R # )NT)r:   rz   r7   r   r   r~   r9   rI   s   &r   r~   Ú#EmscriptenHttpResponseWrapper.closeæ   sj   € Ø�|�|ˆ|Ü˜$Ÿ.™.×-Ñ-¬v×6Ò6Ø—‘×#Ñ#×)Ñ)Ô+Ø××ÐØ× Ñ ×&Ñ&Ô(Ø#'�Ô ØˆDŽLñ r   c               ó   € V ^8„  d   QhRR/# )r#   rE   ztyping.Generator[None]r   )r)   s   "r   r*   r+   ð   s   € ÷ )(ñ )(Ð 6ñ )(r   c              #  ó€  "  € ^RI HpHp Rp Rx € Rp T'       g‡   \        T P                  P                  \        4      '       dK   T P                  P                  P                  '       g%   T P                  P                  P                  4        T P                  4        R# \        T P                  P                  \        4      '       d;   T P                  P                  P                  '       d   T P                  4        R# R# R#   T d   p\        \	        T4      4      hRp?iT d   p\        \	        T4      4      hRp?ii ; i  T'       g†   \        T P                  P                  \        4      '       dK   T P                  P                  P                  '       g%   T P                  P                  P                  4        T P                  4        i \        T P                  P                  \        4      '       d9   T P                  P                  P                  '       d   T P                  4        i i i ; i5i)zÕ
Catch Emscripten specific exceptions thrown by fetch.py,
instead re-raising urllib3 variants, so that low-level exceptions
are not leaked in the high-level api.

On exit, release the connection back to the pool.
)Ú_RequestErrorÚ_TimeoutErrorFNT)ÚfetchrŸ   r    r
   Ústrr   rz   r7   r   r   r{   r~   rŠ   )rA   rŸ   r    Ú
clean_exitÚes   &    r   r|   Ú,EmscriptenHttpResponseWrapper._error_catcherï   s�  é € ÷ 	8àˆ
ð	(Ûð ‰J÷ ô ˜tŸ~™~×2Ñ2´F×;Ò;Ø ŸN™N×/Ñ/×6×6Ð6à—N‘N×'Ñ'×-Ñ-Ô/à×!Ñ!Ö#ô
 ˜tŸ~™~×2Ñ2´F×;Ò;ØŸ™×+Ñ+×2×2Ð2à×%Ñ%Ö'ñ 3ñ <øð+ ô 	'Üœs 1›vÓ&Ð&ûØô 	(Ü¤ A£Ó'Ð'ûð	(û÷
 ô ˜tŸ~™~×2Ñ2´F×;Ò;Ø ŸN™N×/Ñ/×6×6Ð6à—N‘N×'Ñ'×-Ñ-Ô/à×!Ñ!Õ#ô
 ˜tŸ~™~×2Ñ2´F×;Ò;ØŸ™×+Ñ+×2×2Ð2à×%Ñ%Õ'ð 3ð <üsf   ‚H>ŽD	 •H>�AH>Á-BH>Ã3H>Ä	EÄD$Ä$EÄ-EÄ.EÅEÅE
 Å
AH;Æ#BH;È(H;È;H>)
r5   r:   r9   r4   r7   rU   r6   r8   r@   r?   )NN)i   N)NNF)r   r   r   r   r<   Úpropertyr%   Úsetterr'   rV   rc   r=   ra   r„   rŠ   rŽ   rb   r˜   r~   r   r|   r   Ú__classcell__)rB   s   @r   r!   r!      sË   ø† ÷'ò 'ð2 ôó ðð 	‡Z�Zôó ðð ô ó ð ð ôó ðð ‡^�^ô ó ð ÷õ4#÷J&,÷P
õ õð ô1ó ð1õ!õ* ð ô)(ó ö)(r   r!   )!Ú
__future__r   r˜   r–   Úloggingr   Ú
contextlibr   Údataclassesr   Úhttp.clientr   Úior   r   Ú
exceptionsr	   r
   Úresponser   Ú
util.retryr   r   r   ÚTYPE_CHECKINGÚ_base_connectionr   r   Ú	getLoggerr   Úlogr   r!   r   r   r   Ú<module>r¶      sp   ðÝ "ã Û Û Ý %Ý !Ý 6ß ç 5Ý (Ý Ý &à	××ÐßKà×Ò˜Ó!€ð ÷ð ó ðô{(Ð$4ö {(r   