Ë
    ñ%9j‰y  ã                   óØ  — d Z ddlZddlZddlmZ ddlmZ ddlmZ ddlm	Z	 dZ
dZd	Z G d
„ de	j                  ej                  «      Z G d„ de	j                  ej                  «      Z G d„ de	j                  ej"                  «      Z G d„ de	j                  ej"                  «      Zd„ Z G d„ dej(                  j*                  «      Z eej(                  d«      r G d„ d«      ZydZy)z/Support for downloading media from Google APIs.é    N)Ú	_download)Úcommon)Ú_helpers)Ú_request_helperszÂChecksum mismatch while downloading:

  {}

The X-Goog-Hash header indicated an {checksum_type} checksum of:

  {}

but the actual {checksum_type} checksum of the downloaded contents was:

  {}
z�Incomplete download for:
{}
Error writing to stream while handling a gzip-compressed file download.
Please restart the download.
zÞ
The X-Goog-Stored-Content-Length is {}. The X-Goog-Stored-Content-Encoding is {}.

The download request read {} bytes of data.
If the download was incomplete, please check the network connection and restart the download.
c                   óL   — e Zd ZdZd„ Zej                  ej                  ffd„Zy)ÚDownloadaÐ  Helper to manage downloading a resource from a Google API.

    "Slices" of the resource can be retrieved by specifying a range
    with ``start`` and / or ``end``. However, in typical usage, neither
    ``start`` nor ``end`` is expected to be provided.

    Args:
        media_url (str): The URL containing the media to be downloaded.
        stream (IO[bytes]): A write-able stream (i.e. file-like object) that
            the downloaded resource can be written to.
        start (int): The first byte in a range to be downloaded. If not
            provided, but ``end`` is provided, will download from the
            beginning to ``end`` of the media.
        end (int): The last byte in a range to be downloaded. If not
            provided, but ``start`` is provided, will download from the
            ``start`` to the end of the media.
        headers (Optional[Mapping[str, str]]): Extra headers that should
            be sent with the request, e.g. headers for encrypted data.
        checksum Optional([str]): The type of checksum to compute to verify
            the integrity of the object. The response headers must contain
            a checksum of the requested type. If the headers lack an
            appropriate checksum (for instance in the case of transcoded or
            ranged downloads where the remote service does not know the
            correct checksum) an INFO-level log will be emitted. Supported
            values are "md5", "crc32c" and None. The default is "md5".

    Attributes:
        media_url (str): The URL containing the media to be downloaded.
        start (Optional[int]): The first byte in a range to be downloaded.
        end (Optional[int]): The last byte in a range to be downloaded.
    c                 óˆ  — | j                   €U| j                  €It        j                  || j                  | j
                  | j                  ¬«      \  }}|| _         || _        n| j                   }| j                  }|5  t        |j                  |«      }|j                  t        j                  d¬«      }|D ]L  }| j                  j                  |«       | xj                  t        |«      z  c_        |j!                  |«       ŒN 	 ddd«       |��%|j"                  t$        j&                  j(                  k7  rýt        j*                  |j-                  «       «      }||k7  rÔ| j	                  |«      }|j/                  d«      }	|j/                  d«      }
t0        j3                  |
|	| j                  «      }|
r(| j                  t5        |
«      k  r|	dk7  rt7        |«      ‚t8        j3                  | j
                  ||| j                  j;                  «       ¬«      }||z  }t=        j>                  ||«      ‚yyy# 1 sw Y   �Œ3xY w)áª  Write response body to a write-able stream.

        .. note:

            This method assumes that the ``_stream`` attribute is set on the
            current download.

        Args:
            response (~requests.Response): The HTTP response object.

        Raises:
            ~google.resumable_media.common.DataCorruption: If the download's
                checksum doesn't agree with server-computed checksum.
        N©Úchecksum_typeF)Ú
chunk_sizeÚdecode_unicodeúx-goog-stored-content-encodingúx-goog-stored-content-lengthÚgzip) Ú_expected_checksumÚ_checksum_objectr   Ú_get_expected_checksumÚ_get_headersÚ	media_urlÚchecksumÚ_add_decoderÚrawÚiter_contentr   Ú_SINGLE_GET_CHUNK_SIZEÚ_streamÚwriteÚ_bytes_downloadedÚlenÚupdateÚstatus_codeÚhttpÚclientÚPARTIAL_CONTENTÚprepare_checksum_digestÚdigestÚgetÚ_RESPONSE_HEADERS_INFOÚformatÚintÚConnectionErrorÚ_CHECKSUM_MISMATCHÚupperr   ÚDataCorruption)ÚselfÚresponseÚexpected_checksumÚchecksum_objectÚlocal_checksum_objectÚ	body_iterÚchunkÚactual_checksumÚheadersÚx_goog_encodingÚx_goog_lengthÚcontent_length_msgÚmsgs                úd/var/www/html/truck-me/venv/lib/python3.12/site-packages/google/resumable_media/requests/download.pyÚ_write_to_streamzDownload._write_to_streamY   s#  € ð( ×"Ñ"Ð*¨t×/DÑ/DÐ/Lô 2:×1PÑ1PØ˜$×+Ñ+¨T¯^©^È4Ï=É=ô2Ñ.Ð˜ð '8ˆDÔ#Ø$3ˆDÕ!à $× 7Ñ 7ÐØ"×3Ñ3ˆOàñ 	4ô
 %1°·±¸Ó$OÐ!Ø ×-Ñ-Ü+×BÑBÐSXð .ó ˆIð #ò 4�Ø—‘×"Ñ" 5Ô)Ø×&Ò&¬#¨e«*Ñ4Õ&Ø%×,Ñ,¨UÕ3ñ4÷	4ð  Ñ)Ø×$Ñ$¬¯©×(CÑ(CÒCä&×>Ñ>¸×?UÑ?UÓ?WÓXˆOàÐ"3Ò3Ø×+Ñ+¨HÓ5�Ø")§+¡+Ð.NÓ"O�Ø '§¡Ð,JÓ K�Ü%;×%BÑ%BØ! ?°D×4JÑ4Jó&Ð"ñ "Ø×.Ñ.´°]Ó1CÒCØ'¨6Ò1ô
 *Ð*<Ó=Ð=ä,×3Ñ3ØŸ™Ø)Ø'Ø&*§m¡m×&9Ñ&9Ó&;ð	 4ó �Cð Ð-Ñ-�CÜ ×/Ñ/°¸#Ó>Ð>ð1 4ð	 Dð *÷!	4ñ 	4ús   Á<B	H7È7Ic                 ó(  ‡ ‡‡‡— ‰ j                  «       \  Š}}}|||dœŠ‰ j                  �d‰d<   ‰ j                  €$t        j                  ‰ j
                  «      ‰ _        ˆˆˆ ˆfd„}t        j                  |‰ j                  ‰ j                  «      S )áH  Consume the resource to be downloaded.

        If a ``stream`` is attached to this download, then the downloaded
        resource will be written to the stream.

        Args:
            transport (~requests.Session): A ``requests`` object which can
                make authenticated requests.
            timeout (Optional[Union[float, Tuple[float, float]]]):
                The number of seconds to wait for the server response.
                Depending on the retry strategy, a request may be repeated
                several times using the same timeout each time.

                Can also be passed as a tuple (connect_timeout, read_timeout).
                See :meth:`requests.Session.request` documentation for details.

        Returns:
            ~requests.Response: The HTTP response returned by ``transport``.

        Raises:
            ~google.resumable_media.common.DataCorruption: If the download's
                checksum doesn't agree with server-computed checksum.
            ValueError: If the current :class:`Download` has already
                finished.
        ©Údatar7   ÚtimeoutTÚstreamc                  ój  •— ‰j                   } ‰j                  dkD  r®t        j                  ‰j                  xs d‰j                  z   ‰j
                  ‰j                  «       ‰j                  ‰d<   ‰j                  �Mt        j                  ‰j                   «      €.d‰j                  i}t        j                  ‰j                   |«      }  ‰j                  ‰| fi ‰¤Ž}‰j                  €%t        j                  |‰j                  «      ‰_        ‰j                  |«       ‰j                  �Tt        j                   |‰j                  «      r#	 ‰j                  j#                  d«       d‰_        ‰j+                  |«       |S # t$        $ r&}t&        j)                  | «      }t%        |«      |‚d }~ww xY w©Nr   r7   Ú
generation©r   r   r   Úadd_bytes_rangeÚstartÚendÚ_headersÚ_object_generationr   Ú_get_generation_from_urlÚadd_query_parametersÚrequestÚ_parse_generation_headerr   Ú_process_responser   Ú_is_decompressive_transcodingÚseekÚ	ExceptionÚ_STREAM_SEEK_ERRORr)   r=   ©	ÚurlÚquery_paramÚresultÚexcr;   ÚmethodÚrequest_kwargsr/   Ú	transports	        €€€€r<   Úretriable_requestz+Download.consume.<locals>.retriable_requestÙ   ó~  ø€ Ø—.‘.ˆCð ×%Ñ%¨Ò)Ü×)Ñ)Ø—Z‘Z’_ 1¨×(>Ñ(>Ñ>ÀÇÁÈ$Ï-É-ôð -1¯M©M�˜yÑ)ð ×+Ñ+Ð7Ü ×9Ñ9¸$¿.¹.ÓIÐQà#/°×1HÑ1HÐ"I�KÜ"×7Ñ7¸¿¹ÈÓT�Cà&�Y×&Ñ& v¨sÑE°nÑEˆFð ×&Ñ&Ð.Ü*2×*KÑ*KØ˜D×-Ñ-ó+�Ô'ð ×"Ñ" 6Ô*ð
 �|‰|Ð'Ü×9Ñ9¸&À$×BSÑBSÔTð6ØŸ™×)Ñ)¨!Ô,ð ./�DÔ*à×%Ñ% fÔ-àˆMøô %ò 6Ü0×7Ñ7¸Ó<˜Ü'¨›n°#Ð5ûð6úó   ÅF Æ	F2Æ!F-Æ-F2)
Ú_prepare_requestr   rL   r   rM   r   r   Úwait_and_retryÚ_get_status_codeÚ_retry_strategy©	r/   r]   rB   Ú_Úpayloadr7   r^   r[   r\   s	   ``     @@r<   ÚconsumezDownload.consume©   s˜   û€ ðB '+×&;Ñ&;Ó&=Ñ#ˆ��7˜Gð ØØñ
ˆð
 �<‰<Ð#Ø'+ˆN˜8Ñ$ð ×"Ñ"Ð*Ü&.×&GÑ&GÈÏÉÓ&WˆDÔ#÷,	ô\  ×.Ñ.Ø˜t×4Ñ4°d×6JÑ6Jó
ð 	
ó    N©	Ú__name__Ú
__module__Ú__qualname__Ú__doc__r=   r   Ú_DEFAULT_CONNECT_TIMEOUTÚ_DEFAULT_READ_TIMEOUTrh   © ri   r<   r   r   8   s.   „ ñò@N?ðh ×5Ñ5Ø×2Ñ2ð
ô`
ri   r   c                   óL   — e Zd ZdZd„ Zej                  ej                  ffd„Zy)ÚRawDownloadaÓ  Helper to manage downloading a raw resource from a Google API.

    "Slices" of the resource can be retrieved by specifying a range
    with ``start`` and / or ``end``. However, in typical usage, neither
    ``start`` nor ``end`` is expected to be provided.

    Args:
        media_url (str): The URL containing the media to be downloaded.
        stream (IO[bytes]): A write-able stream (i.e. file-like object) that
            the downloaded resource can be written to.
        start (int): The first byte in a range to be downloaded. If not
            provided, but ``end`` is provided, will download from the
            beginning to ``end`` of the media.
        end (int): The last byte in a range to be downloaded. If not
            provided, but ``start`` is provided, will download from the
            ``start`` to the end of the media.
        headers (Optional[Mapping[str, str]]): Extra headers that should
            be sent with the request, e.g. headers for encrypted data.
        checksum Optional([str]): The type of checksum to compute to verify
            the integrity of the object. The response headers must contain
            a checksum of the requested type. If the headers lack an
            appropriate checksum (for instance in the case of transcoded or
            ranged downloads where the remote service does not know the
            correct checksum) an INFO-level log will be emitted. Supported
            values are "md5", "crc32c" and None. The default is "md5".
    Attributes:
        media_url (str): The URL containing the media to be downloaded.
        start (Optional[int]): The first byte in a range to be downloaded.
        end (Optional[int]): The last byte in a range to be downloaded.
    c                 ó|  — | j                   €U| j                  €It        j                  || j                  | j
                  | j                  ¬«      \  }}|| _         || _        n| j                   }| j                  }|5  |j                  j                  t        j                  d¬«      }|D ]L  }| j                  j                  |«       | xj                  t        |«      z  c_        |j                  |«       ŒN d|_        ddd«       |��%|j"                  t$        j&                  j(                  k7  rýt        j*                  |j-                  «       «      }||k7  rÔ| j	                  |«      }|j/                  d«      }|j/                  d«      }	t0        j3                  |	|| j                  «      }
|	r(| j                  t5        |	«      k  r|dk7  rt7        |
«      ‚t8        j3                  | j
                  ||| j                  j;                  «       ¬«      }||
z  }t=        j>                  ||«      ‚yyy# 1 sw Y   �Œ3xY w)	r
   Nr   F)Údecode_contentTr   r   r   ) r   r   r   r   r   r   r   r   rC   r   r   r   r   r   r   r    Ú_content_consumedr!   r"   r#   r$   r%   r&   r'   r(   r)   r*   r+   r,   r-   r   r.   )r/   r0   r1   r2   r4   r5   r6   r7   r8   r9   r:   r;   s               r<   r=   zRawDownload._write_to_stream,  s  € ð& ×"Ñ"Ð*¨t×/DÑ/DÐ/Lô 2:×1PÑ1PØ˜$×+Ñ+¨T¯^©^È4Ï=É=ô2Ñ.Ð˜ð '8ˆDÔ#Ø$3ˆDÕ!à $× 7Ñ 7ÐØ"×3Ñ3ˆOàñ 	.Ø Ÿ™×+Ñ+Ü ×7Ñ7Èð ,ó ˆIð #ò .�Ø—‘×"Ñ" 5Ô)Ø×&Ò&¬#¨e«*Ñ4Õ&Ø×&Ñ& uÕ-ð.ð *.ˆHÔ&÷	.ð Ñ)Ø×$Ñ$¬¯©×(CÑ(CÒCä&×>Ñ>¸×?UÑ?UÓ?WÓXˆOàÐ"3Ò3Ø×+Ñ+¨HÓ5�Ø")§+¡+Ð.NÓ"O�Ø '§¡Ð,JÓ K�Ü%;×%BÑ%BØ! ?°D×4JÑ4Jó&Ð"ñ "Ø×.Ñ.´°]Ó1CÒCØ'¨6Ò1ô
 *Ð*<Ó=Ð=ä,×3Ñ3ØŸ™Ø)Ø'Ø&*§m¡m×&9Ñ&9Ó&;ð	 4ó �Cð Ð-Ñ-�CÜ ×/Ñ/°¸#Ó>Ð>ð1 4ð	 Dð *÷	.ñ 	.ús   Á<BH1È1H;c                 ó  ‡ ‡‡‡— ‰ j                  «       \  Š}}}|||ddœŠ‰ j                  €$t        j                  ‰ j                  «      ‰ _        ˆˆˆ ˆfd„}t        j                  |‰ j                  ‰ j                  «      S )r?   T)rA   r7   rB   rC   c                  ój  •— ‰j                   } ‰j                  dkD  r®t        j                  ‰j                  xs d‰j                  z   ‰j
                  ‰j                  «       ‰j                  ‰d<   ‰j                  �Mt        j                  ‰j                   «      €.d‰j                  i}t        j                  ‰j                   |«      }  ‰j                  ‰| fi ‰¤Ž}‰j                  €%t        j                  |‰j                  «      ‰_        ‰j                  |«       ‰j                  �Tt        j                   |‰j                  «      r#	 ‰j                  j#                  d«       d‰_        ‰j+                  |«       |S # t$        $ r&}t&        j)                  | «      }t%        |«      |‚d }~ww xY wrE   rG   rV   s	        €€€€r<   r^   z.RawDownload.consume.<locals>.retriable_request¦  r_   r`   )	ra   rL   r   rM   r   r   rb   rc   rd   re   s	   ``     @@r<   rh   zRawDownload.consumew  s…   û€ ðB '+×&;Ñ&;Ó&=Ñ#ˆ��7˜Gð ØØØñ	
ˆð ×"Ñ"Ð*Ü&.×&GÑ&GÈÏÉÓ&WˆDÔ#÷,	ô\  ×.Ñ.Ø˜t×4Ñ4°d×6JÑ6Jó
ð 	
ri   Nrj   rq   ri   r<   rs   rs     s-   „ ñò>I?ð^ ×5Ñ5Ø×2Ñ2ð
ô_
ri   rs   c                   óF   — e Zd ZdZej
                  ej                  ffd„Zy)ÚChunkedDownloada¦  Download a resource in chunks from a Google API.

    Args:
        media_url (str): The URL containing the media to be downloaded.
        chunk_size (int): The number of bytes to be retrieved in each
            request.
        stream (IO[bytes]): A write-able stream (i.e. file-like object) that
            will be used to concatenate chunks of the resource as they are
            downloaded.
        start (int): The first byte in a range to be downloaded. If not
            provided, defaults to ``0``.
        end (int): The last byte in a range to be downloaded. If not
            provided, will download to the end of the media.
        headers (Optional[Mapping[str, str]]): Extra headers that should
            be sent with each request, e.g. headers for data encryption
            key headers.

    Attributes:
        media_url (str): The URL containing the media to be downloaded.
        start (Optional[int]): The first byte in a range to be downloaded.
        end (Optional[int]): The last byte in a range to be downloaded.
        chunk_size (int): The number of bytes to be retrieved in each request.

    Raises:
        ValueError: If ``start`` is negative.
    c                 ó¦   ‡ ‡‡‡‡‡‡— ‰ j                  «       \  ŠŠŠŠˆˆˆˆ ˆˆˆfd„}t        j                  |‰ j                  ‰ j                  «      S )á+  Consume the next chunk of the resource to be downloaded.

        Args:
            transport (~requests.Session): A ``requests`` object which can
                make authenticated requests.
            timeout (Optional[Union[float, Tuple[float, float]]]):
                The number of seconds to wait for the server response.
                Depending on the retry strategy, a request may be repeated
                several times using the same timeout each time.

                Can also be passed as a tuple (connect_timeout, read_timeout).
                See :meth:`requests.Session.request` documentation for details.

        Returns:
            ~requests.Response: The HTTP response returned by ``transport``.

        Raises:
            ValueError: If the current download has finished.
        c                  óV   •— ‰j                  ‰‰‰‰‰¬«      } ‰j                  | «       | S )Nr@   ©rO   rQ   ©rY   r7   r[   rg   r/   rB   r]   rW   s    €€€€€€€r<   r^   z=ChunkedDownload.consume_next_chunk.<locals>.retriable_request  s<   ø€ à×&Ñ&ØØØØØð 'ó ˆFð ×"Ñ" 6Ô*ØˆMri   ©ra   r   rb   rc   rd   ©r/   r]   rB   r^   r7   r[   rg   rW   s   ``` @@@@r<   Úconsume_next_chunkz"ChunkedDownload.consume_next_chunkõ  sN   þ€ ð6 )-×(=Ñ(=Ó(?Ñ%ˆ��W˜g÷
	ò 
	ô  ×.Ñ.Ø˜t×4Ñ4°d×6JÑ6Jó
ð 	
ri   N©rk   rl   rm   rn   r   ro   rp   r‚   rq   ri   r<   rz   rz   Ù  s%   „ ñð> ×5Ñ5Ø×2Ñ2ð
ô,
ri   rz   c                   óF   — e Zd ZdZej
                  ej                  ffd„Zy)ÚRawChunkedDownloadaª  Download a raw resource in chunks from a Google API.

    Args:
        media_url (str): The URL containing the media to be downloaded.
        chunk_size (int): The number of bytes to be retrieved in each
            request.
        stream (IO[bytes]): A write-able stream (i.e. file-like object) that
            will be used to concatenate chunks of the resource as they are
            downloaded.
        start (int): The first byte in a range to be downloaded. If not
            provided, defaults to ``0``.
        end (int): The last byte in a range to be downloaded. If not
            provided, will download to the end of the media.
        headers (Optional[Mapping[str, str]]): Extra headers that should
            be sent with each request, e.g. headers for data encryption
            key headers.

    Attributes:
        media_url (str): The URL containing the media to be downloaded.
        start (Optional[int]): The first byte in a range to be downloaded.
        end (Optional[int]): The last byte in a range to be downloaded.
        chunk_size (int): The number of bytes to be retrieved in each request.

    Raises:
        ValueError: If ``start`` is negative.
    c                 ó¦   ‡ ‡‡‡‡‡‡— ‰ j                  «       \  ŠŠŠŠˆˆˆˆ ˆˆˆfd„}t        j                  |‰ j                  ‰ j                  «      S )r|   c                  óX   •— ‰j                  ‰‰‰‰d‰¬«      } ‰j                  | «       | S )NT)rA   r7   rC   rB   r~   r   s    €€€€€€€r<   r^   z@RawChunkedDownload.consume_next_chunk.<locals>.retriable_request^  s?   ø€ à×&Ñ&ØØØØØØð 'ó ˆFð ×"Ñ" 6Ô*ØˆMri   r€   r�   s   ``` @@@@r<   r‚   z%RawChunkedDownload.consume_next_chunk@  sN   þ€ ð6 )-×(=Ñ(=Ó(?Ñ%ˆ��W˜g÷	ò 	ô  ×.Ñ.Ø˜t×4Ñ4°d×6JÑ6Jó
ð 	
ri   Nrƒ   rq   ri   r<   r…   r…   $  s%   „ ñð> ×5Ñ5Ø×2Ñ2ð
ô-
ri   r…   c                 ó
  — | j                   j                  dd«      j                  «       }|dk(  r$t        |«      | _        t        j                  «       S |dk(  r*t        r$t        |«      | _        t        j                  «       S |S )a‚  Patch the ``_decoder`` on a ``urllib3`` response.

    This is so that we can intercept the compressed bytes before they are
    decoded.

    Only patches if the content encoding is ``gzip`` or ``br``.

    Args:
        response_raw (urllib3.response.HTTPResponse): The raw response for
            an HTTP request.
        checksum (object):
            A checksum which will be updated with compressed bytes.

    Returns:
        object: Either the original ``checksum`` if ``_decoder`` is not
        patched, or a ``_DoNothingHash`` if the decoder is patched, since the
        caller will no longer need to hash to decoded bytes.
    zcontent-encodingÚ r   Úbr)r7   r'   ÚlowerÚ_GzipDecoderÚ_decoderr   Ú_DoNothingHashÚ_BrotliDecoder)Úresponse_rawr   Úencodings      r<   r   r   p  su   € ð& ×#Ñ#×'Ñ'Ð(:¸BÓ?×EÑEÓG€HØ�6ÒÜ ,¨XÓ 6ˆÔÜ×&Ñ&Ó(Ð(à	�TÒ	�nÜ .¨xÓ 8ˆÔÜ×&Ñ&Ó(Ð(àˆri   c                   ó.   ‡ — e Zd ZdZˆ fd„Zdˆ fd„	Zˆ xZS )rŒ   aD  Custom subclass of ``urllib3`` decoder for ``gzip``-ed bytes.

    Allows a checksum function to see the compressed bytes before they are
    decoded. This way the checksum of the compressed value can be computed.

    Args:
        checksum (object):
            A checksum which will be updated with compressed bytes.
    c                 ó0   •— t         ‰| �  «        || _        y ©N)ÚsuperÚ__init__Ú	_checksum)r/   r   Ú	__class__s     €r<   r–   z_GzipDecoder.__init__š  s   ø€ Ü‰ÑÔØ!ˆ�ri   c                 óš   •— | j                   j                  |«       	 t        ‰| �  ||¬«      S # t        $ r t        ‰| �  |«      cY S w xY w)aQ  Decompress the bytes.

        Args:
            data (bytes): The compressed bytes to be decompressed.
            max_length (int): Maximum number of bytes to return. -1 for no
                limit. Forwarded to the underlying decoder when supported.

        Returns:
            bytes: The decompressed bytes from ``data``.
        ©Ú
max_length)r—   r    r•   Ú
decompressÚ	TypeError)r/   rA   r›   r˜   s      €r<   rœ   z_GzipDecoder.decompressž  sP   ø€ ð 	�‰×Ñ˜dÔ#ð	,Ü‘7Ñ% d°zÐ%ÓBÐBøÜò 	,Ü‘7Ñ% dÓ+Ò+ð	,ús   ž/ ¯A
Á	A
©éÿÿÿÿ)rk   rl   rm   rn   r–   rœ   Ú__classcell__)r˜   s   @r<   rŒ   rŒ   �  s   ø„ ñô"÷,ñ ,ri   rŒ   ÚBrotliDecoderc                   ó4   — e Zd ZdZd„ Zdd„Zed„ «       Zd„ Zy)r�   a*  Handler for ``brotli`` encoded bytes.

        Allows a checksum function to see the compressed bytes before they are
        decoded. This way the checksum of the compressed value can be computed.

        Because BrotliDecoder's decompress method is dynamically created in
        urllib3, a subclass is not practical. Instead, this class creates a
        captive urllib3.requests.BrotliDecoder instance and acts as a proxy.

        Args:
            checksum (object):
                A checksum which will be updated with compressed bytes.
        c                 óX   — t         j                  j                  «       | _        || _        y r”   )Úurllib3r0   r¡   r�   r—   )r/   r   s     r<   r–   z_BrotliDecoder.__init__Ã  s   € Ü#×,Ñ,×:Ñ:Ó<ˆDŒMØ%ˆD�Nri   c                 óÈ   — | j                   j                  |«       	 | j                  j                  ||¬«      S # t        $ r | j                  j                  |«      cY S w xY w)am  Decompress the bytes.

            Args:
                data (bytes): The compressed bytes to be decompressed.
                max_length (int): Maximum number of bytes to return. -1 for no
                    limit. Forwarded to the underlying decoder when supported.

            Returns:
                bytes: The decompressed bytes from ``data``.
            rš   )r—   r    r�   rœ   r�   )r/   rA   r›   s      r<   rœ   z_BrotliDecoder.decompressÇ  sY   € ð �N‰N×!Ñ! $Ô'ð6Ø—}‘}×/Ñ/°ÀÐ/ÓLÐLøÜò 6Ø—}‘}×/Ñ/°Ó5Ò5ð6ús   �: º$A!Á A!c                 óN   — 	 | j                   j                  S # t        $ r Y yw xY w)NF)r�   Úhas_unconsumed_tailÚAttributeError©r/   s    r<   r§   z"_BrotliDecoder.has_unconsumed_tailØ  s)   € ðØ—}‘}×8Ñ8Ð8øÜ!ò Ùðús   ‚ ˜	$£$c                 ó6   — | j                   j                  «       S r”   )r�   Úflushr©   s    r<   r«   z_BrotliDecoder.flushß  s   € Ø—=‘=×&Ñ&Ó(Ð(ri   Nrž   )	rk   rl   rm   rn   r–   rœ   Úpropertyr§   r«   rq   ri   r<   r�   r�   ´  s*   „ ñ	ò	&ó	6ð" 
ñ	ó 
ð	ó	)ri   r�   )rn   Úurllib3.responser¤   r"   Úgoogle.resumable_mediar   r   r   Úgoogle.resumable_media.requestsr   r,   rU   r(   ÚRequestsMixinr   ÚRawRequestsMixinrs   rz   r…   r   r0   ÚGzipDecoderrŒ   Úhasattrr�   rq   ri   r<   ú<module>r´      sî   ðñ 6ã Û å ,Ý )Ý +Ý <ðÐ ðÐ ðÐ ôQ
Ð×-Ñ-¨y×/AÑ/Aô Q
ôhJ
Ð"×3Ñ3°Y×5GÑ5Gô J
ôZH
Ð&×4Ñ4°i×6OÑ6Oô H
ôVI
Ð)×:Ñ:¸I×<UÑ<Uô I
òXô>,�7×#Ñ#×/Ñ/ô ,ñF ˆ7×Ñ˜_Ô-÷,)ò ,)ð^ �Nri   