Ë
    ö�Dj|B  ã                  óö  — U d dl mZ d dlZd dlZd dlZd dlZd dlZd dlmZm	Z	m
Z
mZmZmZmZmZmZmZ d dlmZmZmZmZmZ d dlZd dlZd dlZddlmZ ddlmZmZm Z  ddl!m"Z"m#Z#m$Z$ dd	l%m&Z& dd
l'm(Z(m)Z)m*Z*m+Z+ ddl,m-Z- ddl.m/Z/m0Z0 erddl!m1Z1 ddl2m3Z3  ed«      Z4 ed«      Z5 ed«      Z6 edd¬«      Z7 ejp                  e9«      Z:de;d<    G d„ dee5   «      Z< G d„ de=«      Z>dd„Z?d d„Z@ G d„ d«      ZAy)!é    )ÚannotationsN)
ÚTYPE_CHECKINGÚAnyÚUnionÚGenericÚTypeVarÚCallableÚIteratorÚAsyncIteratorÚcastÚoverload)Ú	AwaitableÚ	ParamSpecÚoverrideÚ
deprecatedÚ
get_originé   )ÚNoneType)Úis_givenÚextract_type_argÚis_annotated_type)Ú	BaseModelÚis_basemodelÚadd_request_id)ÚRAW_RESPONSE_HEADER)ÚStreamÚAsyncStreamÚis_stream_class_typeÚextract_stream_chunk_type)ÚAPIResponseValidationError)ÚJSONLDecoderÚAsyncJSONLDecoder)ÚFinalRequestOptions)Ú
BaseClientÚPÚRÚ_TÚ_T_coT)Ú	covariantzlogging.LoggerÚlogc                  ó¨  — e Zd ZU dZded<   ded<   ded<   ded	<   d
ed<   ded<   ded<   ded<   	 ddœ	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 d'd„Zed(d„«       Zed)d„«       Z	ed*d„«       Z	ddœd+d„Z	ed,d„«       Z
ed-d„«       Zed.d„«       Zed/d„«       Zed0d„«       Zed1d „«       Zed0d!„«       Zed0d"„«       Zed2d#„«       Zed3d$„«       Zddœd+d%„Zed0d&„«       Zy)4ÚLegacyAPIResponsea°  This is a legacy class as it will be replaced by `APIResponse`
    and `AsyncAPIResponse` in the `_response.py` file in the next major
    release.

    For the sync client this will mostly be the same with the exception
    of `content` & `text` will be methods instead of properties. In the
    async client, all methods will be async.

    A migration script will be provided & the migration in general should
    be smooth.
    útype[R]Ú_cast_toúBaseClient[Any, Any]Ú_clientzdict[type[Any], Any]Ú_parsed_by_typeÚboolÚ_streamú1type[Stream[Any]] | type[AsyncStream[Any]] | NoneÚ_stream_clsr#   Ú_optionsúhttpx.ResponseÚhttp_responseÚintÚretries_takenr   )r:   c               ót   — || _         || _        i | _        || _        || _        || _        || _        || _        y ©N)r.   r0   r1   r3   r5   r6   r8   r:   )ÚselfÚrawÚcast_toÚclientÚstreamÚ
stream_clsÚoptionsr:   s           ú^C:\Crop_Prediction\Backend\crop-ai-system\venv\Lib\site-packages\anthropic/_legacy_response.pyÚ__init__zLegacyAPIResponse.__init__H   s@   € ð  ˆŒØˆŒØ!ˆÔØˆŒØ%ˆÔØˆŒØ ˆÔØ*ˆÕó    c                óL   — | j                   j                  j                  d«      S )Nz
request-id)r8   ÚheadersÚget©r=   s    rD   Ú
request_idzLegacyAPIResponse.request_id\   s   € à×!Ñ!×)Ñ)×-Ñ-¨lÓ;Ð;rF   c                ó   — y r<   © )r=   Útos     rD   ÚparsezLegacyAPIResponse.parse`   s   € Ø,/rF   c                 ó   — y r<   rM   rJ   s    rD   rO   zLegacyAPIResponse.parsec   s   € ØrF   N©rN   c               ó‚  — |�|n| j                   }| j                  j                  |«      }|�|S | j                  |¬«      }t	        | j
                  j                  «      r| j
                  j                  |«      }t        |t        «      rt        || j                  «       || j                  |<   t        t        |«      S )aá  Returns the rich python representation of this response's data.

        NOTE: For the async client: this will become a coroutine in the next major version.

        For lower-level control, see `.read()`, `.json()`, `.iter_bytes()`.

        You can customise the type that the response is parsed into through
        the `to` argument, e.g.

        ```py
        from anthropic import BaseModel


        class MyModel(BaseModel):
            foo: str


        obj = response.parse(to=MyModel)
        print(obj.foo)
        ```

        We support parsing:
          - `BaseModel`
          - `dict`
          - `list`
          - `Union`
          - `str`
          - `int`
          - `float`
          - `httpx.Response`
        rQ   )r.   r1   rI   Ú_parser   r6   Úpost_parserÚ
isinstancer   r   rK   r   r&   )r=   rN   Ú	cache_keyÚcachedÚparseds        rD   rO   zLegacyAPIResponse.parsef   sŸ   € ð@ ˜.‘B¨d¯m©mˆ	Ø×%Ñ%×)Ñ)¨)Ó4ˆØÐØˆMà—‘ �Ó#ˆÜ�D—M‘M×-Ñ-Ô.Ø—]‘]×.Ñ.¨vÓ6ˆFä�fœiÔ(Ü˜6 4§?¡?Ô3à*0ˆ×Ñ˜YÑ'Ü”A�v‹ÐrF   c                ó.   — | j                   j                  S r<   )r8   rH   rJ   s    rD   rH   zLegacyAPIResponse.headers•   ó   € à×!Ñ!×)Ñ)Ð)rF   c                ó.   — | j                   j                  S r<   )r8   ÚrequestrJ   s    rD   Úhttp_requestzLegacyAPIResponse.http_request™   rZ   rF   c                ó.   — | j                   j                  S r<   )r8   Ústatus_coderJ   s    rD   r_   zLegacyAPIResponse.status_code�   s   € à×!Ñ!×-Ñ-Ð-rF   c                ó.   — | j                   j                  S r<   )r8   ÚurlrJ   s    rD   ra   zLegacyAPIResponse.url¡   s   € à×!Ñ!×%Ñ%Ð%rF   c                ó.   — | j                   j                  S r<   )r]   ÚmethodrJ   s    rD   rc   zLegacyAPIResponse.method¥   s   € à× Ñ ×'Ñ'Ð'rF   c                ó.   — | j                   j                  S )zŠReturn the binary response content.

        NOTE: this will be removed in favour of `.read()` in the
        next major version.
        )r8   ÚcontentrJ   s    rD   re   zLegacyAPIResponse.content©   s   € ð ×!Ñ!×)Ñ)Ð)rF   c                ó.   — | j                   j                  S )zyReturn the decoded response content.

        NOTE: this will be turned into a method in the next major version.
        )r8   ÚtextrJ   s    rD   rg   zLegacyAPIResponse.text²   s   € ð ×!Ñ!×&Ñ&Ð&rF   c                ó.   — | j                   j                  S r<   )r8   Úhttp_versionrJ   s    rD   ri   zLegacyAPIResponse.http_versionº   s   € à×!Ñ!×.Ñ.Ð.rF   c                ó.   — | j                   j                  S r<   )r8   Ú	is_closedrJ   s    rD   rk   zLegacyAPIResponse.is_closed¾   s   € à×!Ñ!×+Ñ+Ð+rF   c                ó.   — | j                   j                  S )zCThe time taken for the complete request/response cycle to complete.)r8   ÚelapsedrJ   s    rD   rm   zLegacyAPIResponse.elapsedÂ   s   € ð ×!Ñ!×)Ñ)Ð)rF   c               ó¨  — |rt        |«      rt        |d«      }|�|n| j                  }t        |«      xs |}t	        j
                  |«      rÂt        |t        «      rQt        t         t        d|«      | j                  j                  d¬«      t        |d«      | j                  ¬«      «      S t        |t        «      rQt        t         t        d|«      | j                  j                  d¬«      t        |d«      | j                  ¬«      «      S | j                  �r@|rjt        |«      st!        dt"        › dt$        › �«      ‚t        t&         |t)        |d	¬
«      | j                  t        t*        | j,                  «      ¬«      «      S | j.                  rWt        t        | j/                  t)        | j.                  «      | j                  t        t*        | j,                  «      ¬«      «      S t        d| j,                  j0                  «      }|€
t3        «       ‚t        t         || j                  | j                  t        t*        | j,                  «      ¬«      «      S t        |«      rt        |d«      }|t4        u rt        t        d «      S | j                  }|t6        k(  rt        t        |j8                  «      S |t:        k(  r#t        t        t;        |j8                  «      «      S |t<        k(  r#t        t        t=        |j8                  «      «      S |t>        k(  r+t        t        |j8                  jA                  «       dk(  «      S t        |«      xs |}t	        j
                  |«      r&t        |tB        «      rt        t         ||«      «      S |tD        k(  rtG        d«      ‚t	        j
                  |«      rHt        |tH        jJ                  «      r.|tH        jJ                  k7  rtM        d«      ‚t        t        |«      S t	        j
                  |«      r5t        |tN        «      s%t        |tP        jN                  «      rt!        d«      ‚|tR        urr|tT        urj|tV        urb|tX        urZt        |tN        «      sJtG        d|› dtN        › dtV        › dtT        › dtX        › dt4        › dt6        › dtH        jJ                  › d�«      ‚|jZ                  j]                  dd«      j_                  d«      ^}}|dk7  rxta        |«      r/	 |jc                  «       }| j,                  je                  |||¬«      S | j,                  jn                  rtq        |d|› d�|j8                  ¬«      ‚|j8                  S |jc                  «       }| j,                  je                  |||¬«      S # tf        $ r*}	th        jk                  dtm        |	«      |	«       Y d }	~	Œšd }	~	ww xY w)Nr   ztype[JSONLDecoder[Any]]i   ©Ú
chunk_size)Úraw_iteratorÚ	line_typer8   ztype[AsyncJSONLDecoder[Any]]z/Expected custom parse type to be a subclass of z or zUExpected custom stream type to be passed with a type argument, e.g. Stream[ChunkType])Úfailure_message)r?   Úresponser@   r4   Útruez+Unexpected state - cast_to is `APIResponse`z:Subclasses of httpx.Response cannot be passed to `cast_to`zYPydantic models must subclass our base model type, e.g. `from anthropic import BaseModel`zUnsupported type, expected z to be a subclass of z, ú.zcontent-typeÚ*ú;zapplication/json)Údatar?   rt   z5Could not read JSON from response data due to %s - %szMExpected Content-Type response header to be `application/json` but received `z
` instead.)rt   ÚmessageÚbody)9r   r   r.   r   ÚinspectÚisclassÚ
issubclassr!   r   r&   r8   Ú
iter_bytesr"   Úaiter_bytesr3   r   Ú	TypeErrorr   r   r'   r   r   r0   r5   Ú_default_stream_clsÚMissingStreamClassErrorr   Ústrrg   r9   Úfloatr2   ÚlowerÚHttpxBinaryResponseContentr,   ÚRuntimeErrorÚhttpxÚResponseÚ
ValueErrorr   ÚpydanticÚobjectÚlistÚdictr   rH   rI   Úsplitr   ÚjsonÚ_process_response_dataÚ	Exceptionr*   ÚdebugÚtypeÚ_strict_response_validationr    )
r=   rN   r?   ÚoriginrB   rt   Úcontent_typeÚ_ry   Úexcs
             rD   rS   zLegacyAPIResponse._parseÇ   sI  € áÔ# BÔ'Ü! " aÓ(ˆBà˜‘"¨D¯M©MˆÜ˜GÓ$Ò/¨ˆä�?‰?˜6Ô"Ü˜&¤<Ô1ÜÜØ<”DÐ2°GÓ<Ø%)×%7Ñ%7×%BÑ%BÈdÐ%BÓ%SÜ"2°7¸AÓ">Ø&*×&8Ñ&8ôóð ô ˜&Ô"3Ô4ÜÜØA”DÐ7¸ÓAØ%)×%7Ñ%7×%CÑ%CÈtÐ%CÓ%TÜ"2°7¸AÓ">Ø&*×&8Ñ&8ôóð ð �<‹<ÙÜ+¨BÔ/Ü#Ð&UÔV\ÐU]Ð]aÔbmÐanÐ$oÓpÐpäÜÙÜ 9Øð -Dô!ð "&×!3Ñ!3Ü#¤C¨¯©Ó6ôó
ð 
ð ×ÒÜÜØ×$Ñ$Ü 9¸$×:JÑ:JÓ KØ!%×!3Ñ!3Ü#¤C¨¯©Ó6ð %ó óð ô ÐQÐSW×S_ÑS_×SsÑSsÓtˆJØÐ!Ü-Ó/Ð/äÜÙØ ŸM™MØ!×/Ñ/Ü¤ T§\¡\Ó2ôóð ô ˜WÔ%Ü& w°Ó2ˆGà”hÑÜœ˜4“=Ð à×%Ñ%ˆØ”cŠ>Üœ˜8Ÿ=™=Ó)Ð)à”cŠ>Üœœ3˜xŸ}™}Ó-Ó.Ð.à”eÒÜœœ5 §¡Ó/Ó0Ð0à”dŠ?Üœ˜8Ÿ=™=×.Ñ.Ó0°FÑ:Ó;Ð;ä˜GÓ$Ò/¨ˆä�?‰?˜6Ô"¤z°&Ô:TÔ'UÜœ™7 8Ó,Ó-Ð-àÔ&Ò&ÜÐLÓMÐMä�?‰?˜6Ô"¤z°&¼%¿.¹.Ô'Ið œ%Ÿ.™.Ò(Ü Ð#]Ó_Ð_Üœ˜8Ó$Ð$ä�?‰?˜6Ô"¬:°f¼iÔ+HÌZÐX^Ô`h×`rÑ`rÔMsÜÐwÓxÐxð œ6Ñ!Øœd‘NØœd‘NØœe‘OÜ˜v¤yÔ1äØ-¨g¨YÐ6KÌIÈ;ÐVXÔY]ÐX^Ð^`ÔaeÐ`fÐfhÔinÐhoÐoqÔrzÐq{Ð{}ô  Bð  ~Cð  CGô  HM÷  HVñ  HVð  GWð  WXð  Yóð ð $×+Ñ+×/Ñ/°ÀÓD×JÑJÈ3ÓOÐˆ�qØÐ-Ò-Ü˜GÔ$ð	Ø#Ÿ=™=›?�Dð  Ÿ<™<×>Ñ>Ø!Ø 'Ø!)ð ?ó ð ð �|‰|×7Ò7Ü0Ø%ØkÐlxÐkyð  zDð  EØ!Ÿ™ôð ð —=‘=Ð à�}‰}‹ˆà�|‰|×2Ñ2ØØØð 3ó 
ð 	
øô/ !ò gÜ—I‘IÐUÔW[Ð\_ÓW`Ðbe×fÑfûðgús   ÔV Ö	WÖ' W×Wc                ój   — d| j                   › d| j                  j                  › d| j                  › d�S )Nz<APIResponse [ú z] type=ú>)r_   r8   Úreason_phraser.   rJ   s    rD   Ú__repr__zLegacyAPIResponse.__repr__d  s;   € à × 0Ñ 0Ð1°°4×3EÑ3E×3SÑ3SÐ2TÐT[Ð\`×\iÑ\iÐ[jÐjkÐlÐlrF   )r>   r7   r?   r-   r@   r/   rA   r2   rB   r4   rC   r#   r:   r9   ÚreturnÚNone©r    z
str | None)rN   ztype[_T]r    r'   )r    r&   )rN   ztype[_T] | Noner    zR | _T)r    zhttpx.Headers)r    zhttpx.Request)r    r9   )r    z	httpx.URL©r    r„   ©r    Úbytes)r    r2   )r    zdatetime.timedelta)Ú__name__Ú
__module__Ú__qualname__Ú__doc__Ú__annotations__rE   ÚpropertyrK   r   rO   rH   r]   r_   ra   rc   re   rg   ri   rk   rm   rS   r   rŸ   rM   rF   rD   r,   r,   /   s»  … ñ
ð ÓØ!Ó!Ø)Ó)ØƒMØBÓBØ!Ó!à!Ó!àÓØMð ñ+ð ð+ð ð	+ð
 %ð+ð ð+ð Fð+ð %ð+ð ð+ð 
ó+ð( ò<ó ð<ð Ú/ó Ø/àÚó Øà-1õ -ð^ ò*ó ð*ð ò*ó ð*ð ò.ó ð.ð ò&ó ð&ð ò(ó ð(ð ò*ó ð*ð ò'ó ð'ð ò/ó ð/ð ò,ó ð,ð ò*ó ð*ð /3õ [
ðz òmó ñmrF   r,   c                  ó    ‡ — e Zd Zdˆ fd„Zˆ xZS )rƒ   c                ó$   •— t         ‰| �  d«       y )Nz}The `stream` argument was set to `True` but the `stream_cls` argument was not given. See `anthropic._streaming` for reference)ÚsuperrE   )r=   Ú	__class__s    €rD   rE   z MissingStreamClassError.__init__j  s   ø€ Ü‰Ñð Lõ	
rF   ©r    r¡   )r¦   r§   r¨   rE   Ú__classcell__)r¯   s   @rD   rƒ   rƒ   i  s   ø„ ÷
ñ 
rF   rƒ   c                óD   ‡ — t        j                  ‰ «      dˆ fd„«       }|S )ú�Higher order function that takes one of our bound API methods and wraps it
    to support returning the raw `APIResponse` object directly.
    c                 ó¤   •— i t        t        |j                  d«      «      xs i ¥}d|t        <   ||d<   t        t        t
            ‰| i |¤Ž«      S ©NÚextra_headersru   ©r   r   rI   r   r,   r&   ©ÚargsÚkwargsr¶   Úfuncs      €rD   Úwrappedz(to_raw_response_wrapper.<locals>.wrappedu  sU   ø€ à(Z¬D´°f·j±jÀÓ6QÓ,RÒ,XÐVXÐ(ZˆØ-3ˆÔ)Ñ*à"/ˆˆÑäÔ%¤aÑ(©$°Ð*?¸Ñ*?Ó@Ð@rF   ©r¹   zP.argsrº   zP.kwargsr    zLegacyAPIResponse[R]©Ú	functoolsÚwraps©r»   r¼   s   ` rD   Úto_raw_response_wrapperrÂ   p  s)   ø€ ô
 ‡_�_�TÓôAó ðAð €NrF   c                óD   ‡ — t        j                  ‰ «      dˆ fd„«       }|S )r³   c               Ÿ  óÀ   •K  — i t        t        |j                  d«      «      xs i ¥}d|t        <   ||d<   t        t        t
            ‰| i |¤Žƒ d {  –—† «      S 7 Œ­wrµ   r·   r¸   s      €rD   r¼   z.async_to_raw_response_wrapper.<locals>.wrapped†  s_   øè ø€ à(Z¬D´°f·j±jÀÓ6QÓ,RÒ,XÐVXÐ(ZˆØ-3ˆÔ)Ñ*à"/ˆˆÑäÔ%¤aÑ(±°dÐ0E¸fÑ0E×*EÓFÐFÐ*Eús   ƒAAÁA
Á	Ar½   r¾   rÁ   s   ` rD   Úasync_to_raw_response_wrapperrÅ   �  s)   ø€ ô
 ‡_�_�TÓôGó ðGð €NrF   c                  óH  — e Zd ZU ded<   dd„Zedd„«       Zedd„«       Zedd„«       Zedd„«       Z	dd„Z
dd	„Zd d!d„Zd d"d„Zd#d„Zd d!d„Z	 	 	 	 d$d„Z ed«      d
dœ	 	 	 	 	 d%d„«       Zd&d„Zdd„Zd d'd„Zd d(d„Zd)d„Zd d'd„Z ed«      d
dœ	 	 	 	 	 d%d„«       Zd&d„Zy
)*r‡   r7   rt   c                ó   — || _         y r<   )rt   )r=   rt   s     rD   rE   z#HttpxBinaryResponseContent.__init__•  s	   € Ø ˆ�rF   c                ó.   — | j                   j                  S r<   )rt   re   rJ   s    rD   re   z"HttpxBinaryResponseContent.content˜  s   € à�}‰}×$Ñ$Ð$rF   c                ó.   — | j                   j                  S r<   )rt   rg   rJ   s    rD   rg   zHttpxBinaryResponseContent.textœ  s   € à�}‰}×!Ñ!Ð!rF   c                ó.   — | j                   j                  S r<   )rt   ÚencodingrJ   s    rD   rË   z#HttpxBinaryResponseContent.encoding   s   € à�}‰}×%Ñ%Ð%rF   c                ó.   — | j                   j                  S r<   )rt   Úcharset_encodingrJ   s    rD   rÍ   z+HttpxBinaryResponseContent.charset_encoding¤  s   € à�}‰}×-Ñ-Ð-rF   c                ó:   —  | j                   j                  di |¤ŽS )NrM   )rt   r‘   )r=   rº   s     rD   r‘   zHttpxBinaryResponseContent.json¨  s   € Ø!ˆt�}‰}×!Ñ!Ñ+ FÑ+Ð+rF   c                ó6   — | j                   j                  «       S r<   )rt   ÚreadrJ   s    rD   rÐ   zHttpxBinaryResponseContent.read«  s   € Ø�}‰}×!Ñ!Ó#Ð#rF   Nc                ó8   — | j                   j                  |«      S r<   )rt   r   ©r=   rp   s     rD   r   z%HttpxBinaryResponseContent.iter_bytes®  s   € Ø�}‰}×'Ñ'¨
Ó3Ð3rF   c                ó8   — | j                   j                  |«      S r<   )rt   Ú	iter_textrÒ   s     rD   rÔ   z$HttpxBinaryResponseContent.iter_text±  s   € Ø�}‰}×&Ñ& zÓ2Ð2rF   c                ó6   — | j                   j                  «       S r<   )rt   Ú
iter_linesrJ   s    rD   rÖ   z%HttpxBinaryResponseContent.iter_lines´  s   € Ø�}‰}×'Ñ'Ó)Ð)rF   c                ó8   — | j                   j                  |«      S r<   )rt   Úiter_rawrÒ   s     rD   rØ   z#HttpxBinaryResponseContent.iter_raw·  s   € Ø�}‰}×%Ñ% jÓ1Ð1rF   c                óª   — t        |d¬«      5 }| j                  j                  «       D ]  }|j                  |«       Œ 	 ddd«       y# 1 sw Y   yxY w)av  Write the output to the given file.

        Accepts a filename or any path-like object, e.g. pathlib.Path

        Note: if you want to stream the data to the file instead of writing
        all at once then you should use `.with_streaming_response` when making
        the API request, e.g. `client.with_streaming_response.foo().stream_to_file('my_filename.txt')`
        Úwb©ÚmodeN©Úopenrt   r   Úwrite)r=   ÚfileÚfry   s       rD   Úwrite_to_filez(HttpxBinaryResponseContent.write_to_fileº  sL   € ô �$˜TÔ"ð 	 aØŸ™×0Ñ0Ó2ò �Ø—‘˜•ñ÷	÷ 	ñ 	ús   Ž1A	Á	Az‚Due to a bug, this method doesn't actually stream the response content, `.with_streaming_response.method()` should be used insteadro   c               ó¬   — t        |d¬«      5 }| j                  j                  |«      D ]  }|j                  |«       Œ 	 d d d «       y # 1 sw Y   y xY w©NrÚ   rÛ   rÝ   )r=   rà   rp   rá   ry   s        rD   Ústream_to_filez)HttpxBinaryResponseContent.stream_to_fileÊ  sN   € ô �$˜TÔ"ð 	 aØŸ™×0Ñ0°Ó<ò �Ø—‘˜•ñ÷	÷ 	ñ 	ús   Ž2A
Á
Ac                ó6   — | j                   j                  «       S r<   )rt   ÚcloserJ   s    rD   rç   z HttpxBinaryResponseContent.close×  s   € Ø�}‰}×"Ñ"Ó$Ð$rF   c              ƒ  óR   K  — | j                   j                  «       ƒ d {  –—† S 7 Œ­wr<   )rt   ÚareadrJ   s    rD   ré   z HttpxBinaryResponseContent.areadÚ  s   è ø€ Ø—]‘]×(Ñ(Ó*×*Ð*Ð*úó   ‚' %¡'c              ƒ  ó@   K  — | j                   j                  |«      S ­wr<   )rt   r€   rÒ   s     rD   r€   z&HttpxBinaryResponseContent.aiter_bytesÝ  s   è ø€ Ø�}‰}×(Ñ(¨Ó4Ð4ùó   ‚c              ƒ  ó@   K  — | j                   j                  |«      S ­wr<   )rt   Ú
aiter_textrÒ   s     rD   rî   z%HttpxBinaryResponseContent.aiter_textà  s   è ø€ Ø�}‰}×'Ñ'¨
Ó3Ð3ùrì   c              ƒ  ó>   K  — | j                   j                  «       S ­wr<   )rt   Úaiter_linesrJ   s    rD   rð   z&HttpxBinaryResponseContent.aiter_linesã  s   è ø€ Ø�}‰}×(Ñ(Ó*Ð*ùs   ‚c              ƒ  ó@   K  — | j                   j                  |«      S ­wr<   )rt   Ú	aiter_rawrÒ   s     rD   rò   z$HttpxBinaryResponseContent.aiter_rawæ  s   è ø€ Ø�}‰}×&Ñ& zÓ2Ð2ùrì   c             ƒ  óV  K  — t        j                  |«      }|j                  d¬«      ƒ d {  –—† 4 ƒd {  –—† }| j                  j	                  |«      2 3 d {  –—† }|j                  |«      ƒ d {  –—†  Œ#7 ŒK7 ŒD7 Œ"7 Œ6 d d d «      ƒd {  –—†7   y # 1 ƒd {  –—†7  sw Y   y xY w­wrä   )ÚanyioÚPathrÞ   rt   r€   rß   )r=   rà   rp   Úpathrá   ry   s         rD   Úastream_to_filez*HttpxBinaryResponseContent.astream_to_fileé  s—   è ø€ ô �z‰z˜$ÓˆØŸ™¨˜Ó-×-÷ 	$ð 	$°Ø"Ÿm™m×7Ñ7¸
ÓC÷ $ð $�dØ—g‘g˜d“m×#Ñ#ð .øð 	$øð$øØ#øð D÷	$÷ 	$÷ 	$÷ 	$ó 	$üsŠ   ‚+B)­A9®B)¶A;·B)ºBÁBÁA=ÁBÁBÁ3A?Á4BÁ9B)Á;B)Á=BÁ?BÂBÂB)ÂBÂB)ÂB&ÂBÂB&Â"B)c              ƒ  óR   K  — | j                   j                  «       ƒ d {  –—† S 7 Œ­wr<   )rt   ÚacloserJ   s    rD   rù   z!HttpxBinaryResponseContent.aclose÷  s   è ø€ Ø—]‘]×)Ñ)Ó+×+Ð+Ð+úrê   )rt   r7   r    r¡   r¤   r£   r¢   )rº   r   r    r   r<   )rp   ú
int | Noner    zIterator[bytes])rp   rú   r    úIterator[str])r    rû   )rà   ústr | os.PathLike[str]r    r¡   )rà   rü   rp   rú   r    r¡   r°   )rp   rú   r    zAsyncIterator[bytes])rp   rú   r    úAsyncIterator[str])r    rý   )r¦   r§   r¨   rª   rE   r«   re   rg   rË   rÍ   r‘   rÐ   r   rÔ   rÖ   rØ   râ   r   rå   rç   ré   r€   rî   rð   rò   r÷   rù   rM   rF   rD   r‡   r‡   ’  s5  … ØÓó!ð ò%ó ð%ð ò"ó ð"ð ò&ó ð&ð ò.ó ð.ó,ó$ô4ô3ó*ô2ðà$ðð 
óñ  ð 	Móð "&ñ	à$ðð ð	ð
 
òóðó%ó+ô5ô4ó+ô3ñ ð 	Móð "&ñ		$à$ð	$ð ð		$ð
 
ò	$óð	$ô,rF   r‡   )r»   zCallable[P, R]r    z!Callable[P, LegacyAPIResponse[R]])r»   zCallable[P, Awaitable[R]]r    z,Callable[P, Awaitable[LegacyAPIResponse[R]]])BÚ
__future__r   Úosr|   ÚloggingÚdatetimer¿   Útypingr   r   r   r   r   r	   r
   r   r   r   Útyping_extensionsr   r   r   r   r   rô   r‰   rŒ   Ú_typesr   Ú_utilsr   r   r   Ú_modelsr   r   r   Ú
_constantsr   Ú
_streamingr   r   r   r   Ú_exceptionsr    Ú_decoders.jsonlr!   r"   r#   Ú_base_clientr$   r%   r&   r'   r(   Ú	getLoggerr¦   r*   rª   r,   r�   rƒ   rÂ   rÅ   r‡   rM   rF   rD   ú<module>r     sÖ   ðÞ "ã 	Û Û Û Û ÷÷ ÷ ÷ UÕ Tã Û Û å ß AÑ Aß <Ñ <Ý +ß \Ó \Ý 3ß <áÝ,Ý(ñ ˆcƒN€ÙˆCƒL€ÙˆTƒ]€Ù� 4Ô(€à'�g×'Ñ'¨Ó1€€^Ó 1ôwm˜ ™
ô wmôt	
˜iô 
óó"÷"f,ò f,rF   