+
    ^eòj  ã                   ó:   € ^ RI Ht ^RIHt RtRt ! R R4      tR# )é    ©ÚStruct)ÚUnexpectedEndOfFileErrorÚ>Ú<c                   óŠ   a a€ ] tR t^	t oRtRV 3R lltR tRR ltRR ltRR lt	RR lt
RR ltR	 tR
 tR tR tRtVtV ;t# )ÚStreamReaderzÉWraps a file-like object to provide access to structured data from a binary file.

Byte-order is configurable. `base_offset` is added to any base value provided to
calculate actual location for reads.
c                ó|   <€ \         \        V `  4        Wn        V\        8X  d   \        M\
        V n        W0n        R # ©N)Úsuperr	   Ú__init__Ú_streamÚLITTLE_ENDIANÚ
BIG_ENDIANÚ_byte_orderÚ_base_offset)ÚselfÚstreamÚ
byte_orderÚbase_offsetÚ	__class__s   &&&&€Ú‰/opt/data/installs/351f81cc06284494/environments/aa258815729c481f8402f54f4c368f83/venv/lib/python3.14/site-packages/docx/image/helpers.pyr   ÚStreamReader.__init__   s,   ø€ ÜŒl˜DÑ*Ô,ØŒØ,6¼-Ô,G�=ÌZˆÔØ'Öó    c                ó8   € V P                   P                  V4      # )zAllow pass-through read() call.)r   Úread)r   Úcounts   &&r   r   ÚStreamReader.read   s   € à�|‰|× Ñ  Ó'Ð'r   c                ó*   € RpV P                  W1V4      # )z¶Return the int value of the byte at the file position defined by
self._base_offset + `base` + `offset`.

If `base` is None, the byte is read from the current position in the stream.
ÚB)Ú	_read_int©r   ÚbaseÚoffsetÚfmts   &&& r   Ú	read_byteÚStreamReader.read_byte   s   € ð ˆØ�~‰~˜c¨Ó0Ð0r   c                óV   € V P                   \        J d   RMRpV P                  W1V4      # )a  Return the int value of the four bytes at the file position defined by
self._base_offset + `base` + `offset`.

If `base` is None, the long is read from the current position in the stream. The
endian setting of this instance is used to interpret the byte layout of the
long.
z<Lz>L©r   r   r!   r"   s   &&& r   Ú	read_longÚStreamReader.read_long#   s)   € ð ×&Ñ&¬-Ó7‰d¸TˆØ�~‰~˜c¨Ó0Ð0r   c                óV   € V P                   \        J d   RMRpV P                  W1V4      # )z�Return the int value of the two bytes at the file position determined by
`base` and `offset`, similarly to ``read_long()`` above.s   <Hs   >Hr)   r"   s   &&& r   Ú
read_shortÚStreamReader.read_short.   s)   € ð ×'Ñ'¬=Ó8‰e¸eˆØ�~‰~˜c¨Ó0Ð0r   c                ób   € R pV! V4      pV P                  WRV4      pVP                  R4      pV# )z{Return a string containing the `char_count` bytes at the file position
determined by self._base_offset + `base` + `offset`.c                 ó*   € R V ,          p\        V4      # )z%dsr   )Ú
char_countÚformat_s   & r   Ú
str_structÚ)StreamReader.read_str.<locals>.str_struct8   s   € Ø˜jÕ(ˆGÜ˜'“?Ð"r   zUTF-8)Ú_unpack_itemÚdecode)r   r1   r#   r$   r3   ÚstructÚcharsÚunicode_strs   &&&&    r   Úread_strÚStreamReader.read_str4   s9   € ò	#ñ ˜JÓ'ˆØ×!Ñ! &°Ó7ˆØ—l‘l 7Ó+ˆØÐr   c                óp   € V P                   V,           V,           pV P                  P                  V4       R # r   )r   r   Úseek)r   r#   r$   Úlocations   &&& r   r=   ÚStreamReader.seekA   s)   € Ø×$Ñ$ tÕ+¨fÕ4ˆØ�‰×Ñ˜(Ö#r   c                ó6   € V P                   P                  4       # )zAllow pass-through tell() call.)r   Útell)r   s   &r   rA   ÚStreamReader.tellE   s   € à�|‰|× Ñ Ó"Ð"r   c                óŠ   € V P                  W#4       V P                  P                  V4      p\        V4      V8  d   \        hV# r   )r=   r   r   Úlenr   )r   Ú
byte_countr#   r$   Úbytes_s   &&&& r   Ú_read_bytesÚStreamReader._read_bytesI   s9   € Ø�	‰	�$ÔØ—‘×"Ñ" :Ó.ˆÜˆv‹;˜Ô#Ü*Ð*Øˆr   c                ó<   € \        V4      pV P                  WBV4      # r   )r   r5   )r   r%   r#   r$   r7   s   &&&& r   r!   ÚStreamReader._read_intP   s   € Ü˜“ˆØ× Ñ  ¨vÓ6Ð6r   c                ój   € V P                  VP                  W#4      pVP                  V4      ^ ,          # ©r   )rG   ÚsizeÚunpack)r   r7   r#   r$   rF   s   &&&& r   r5   ÚStreamReader._unpack_itemT   s,   € Ø×!Ñ! &§+¡+¨tÓ<ˆØ�}‰}˜VÓ$ QÕ'Ð'r   )r   r   r   rL   )Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r   r   r&   r*   r-   r:   r=   rA   rG   r!   r5   Ú__static_attributes__Ú__classdictcell__Ú__classcell__)r   Ú__classdict__s   @@r   r	   r	   	   sF   ù‡ € ñ÷(ò(ô1ô	1ô1ôô$ò#òò7÷(ò (r   r	   N)r7   r   Ú
exceptionsr   r   r   r	   © r   r   Ú<module>r[      s!   ðÝ å 0à€
Ø€÷M(ó M(r   