ó
    bÄ\j  ã                  ó”   • S r SSKJr  SSKJr  SSKJrJrJrJ	r	  SSK
Jr  SSK
Jr  SSKJr   " S	 S
\R                  5      rSSS jjrg)a‚  
.. note::
    This format cannot be automatically recognized, so the
    class is not registered for use with :py:func:`PIL.Image.open()`.  To open a
    gd file, use the :py:func:`PIL.GdImageFile.open()` function instead.

.. warning::
    THE GD FORMAT IS NOT DESIGNED FOR DATA INTERCHANGE.  This
    implementation is provided for convenience and demonstrational
    purposes only.
é    )Úannotations)ÚIOé   )ÚImageÚ	ImageFileÚImagePaletteÚUnidentifiedImageError)Úi16be)Úi32be)ÚStrOrBytesPathc                  ó*   • \ rS rSrSrSrSrSS jrSrg)	ÚGdImageFileé'   a  
Image plugin for the GD uncompressed format.  Note that this format
is not supported by the standard :py:func:`PIL.Image.open()` function.  To use
this plugin, you have to import the :py:mod:`PIL.GdImageFile` module and
use the :py:func:`PIL.GdImageFile.open()` function.
ÚGDzGD uncompressed imagesc                óD  • U R                   c   eU R                   R                  S5      n[        U5      S;  a  Sn[        U5      eSU l        [        US5      [        US5      4U l        [        R                  " U R                  5        US   nU(       a  SOSn[        US	U-   5      nUS
:  a  XPR                  S'   [        R                  " SUS	U-   S-   S	U-   S-   S-    5      U l        [        R                  " SSU R                  -   S	U-   S-   S-   S5      /U l        g )Ni  )iþÿ  iÿÿ  zNot a valid GD 2.x .gd fileÚPé   é   é   r   é   é   ÚtransparencyÚRGBXi   Úraw)r   r   ÚL)ÚfpÚreadÚi16ÚSyntaxErrorÚ_modeÚ_sizer   Ú_decompression_bomb_checkÚsizeÚi32Úinfor   r   Úpaletter   Ú_TileÚtile)ÚselfÚsÚmsgÚ
true_colorÚtrue_color_offsetÚtindexs         ÚE/var/www/website/venv/lib/python3.13/site-packages/PIL/GdImageFile.pyÚ_openÚGdImageFile._open2   s   € à�w‰wÑ"Ð"Ð"à�G‰G�L‰L˜Óˆäˆq‹6˜Ó'Ø/ˆCÜ˜cÓ"Ð"àˆŒ
Ü˜˜A“Y¤ A q£	Ð)ˆŒ
Ü×'Ò'¨¯	©	Ô2à�q‘Tˆ
Þ!+™A°Ðô �Q˜Ð-Ñ-Ó.ˆØ�C‹<Ø(.�I‰I�nÑ%ä#×'Ò'Ø�A�aÐ+Ñ+¨aÑ/°!Ð6GÑ2GÈ!Ñ2KÈgÑ2UÐVó
ˆŒô
 �OŠOØØ˜Ÿ™Ñ"ØÐ%Ñ%¨Ñ)¨GÑ3Øó	ð
ˆ�	ó    )r    r!   r&   r(   N)ÚreturnÚNone)	Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__ÚformatÚformat_descriptionr0   Ú__static_attributes__© r2   r/   r   r   '   s   † ñð €FØ1Ð÷!
r2   r   c                ó€   • US:w  a  Sn[        U5      e [        U 5      $ ! [         a  nSn[        U5      UeSnAff = f)a  
Load texture from a GD image file.

:param fp: GD file name, or an opened file handle.
:param mode: Optional mode.  In this version, if the mode argument
    is given, it must be "r".
:returns: An image instance.
:raises OSError: If the image could not be read.
Úrzbad modezcannot identify this image fileN)Ú
ValueErrorr   r   r	   )r   Úmoder+   Úes       r/   ÚopenrC   V   sK   € ð ˆsƒ{ØˆÜ˜‹oÐð1Ü˜2‹ÐøÜó 1Ø/ˆÜ$ SÓ)¨qÐ0ûð1ús   •
   
=ª8¸=N)r?   )r   zStrOrBytesPath | IO[bytes]rA   Ústrr3   r   )r9   Ú
__future__r   Útypingr   Ú r   r   r   r	   Ú_binaryr
   r   r   r$   Ú_typingr   r   rC   r=   r2   r/   Ú<module>rJ      s9   ðñ"
õ #å ç DÓ DÝ !Ý !Ý #ô,
�)×%Ñ%ô ,
÷^1r2   