Ë
    ¦üàgò
  ã                  óŒ   — d Z ddlmZ ddlmZ ddlmZmZmZ ddl	m
Z ddl	mZ ddlmZ  G d	„ d
ej                  «      Zddd„Zy)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é   )Ú	ImageFileÚImagePaletteÚUnidentifiedImageError)Úi16be)Úi32be)ÚStrOrBytesPathc                  ó    — e Zd ZdZdZdZdd„Zy)ÚGdImageFilea%  
    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                óð  — | j                   €J ‚| j                   j                  d«      }t        |«      dvrd}t        |«      ‚d| _        t        |d«      t        |d«      f| _        |d   }|rdnd}t        |d	|z   «      }|d
k  r|| j                  d<   t        j                  d|d	|z   dz   d	|z   dz   dz    «      | _
        t        j                  dd| j                  z   d	|z   dz   dz   d«      g| _        y )Ni  )iþÿ  iÿÿ  zNot a valid GD 2.x .gd fileÚLé   é   é   r   é   é   ÚtransparencyÚXBGRi   Úraw)r   r   )ÚfpÚreadÚi16ÚSyntaxErrorÚ_modeÚ_sizeÚi32Úinfor   r   Úpaletter   Ú_TileÚsizeÚtile)ÚselfÚsÚmsgÚ
true_colorÚtrue_color_offsetÚtindexs         úM/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/PIL/GdImageFile.pyÚ_openzGdImageFile._open1   s  € à�w‰wÐ"Ð"Ð"à�G‰G�L‰L˜Óˆäˆq‹6˜Ñ'Ø/ˆCÜ˜cÓ"Ð"àˆŒ
Ü˜˜A“Y¤ A q£	Ð)ˆŒ
à�q‘Tˆ
Ù!+™A°Ðô �Q˜Ð-Ñ-Ó.ˆØ�CŠ<Ø(.ˆD�I‰I�nÑ%ä#×'Ñ'Ø�A�aÐ+Ñ+¨aÑ/°!Ð6GÑ2GÈ!Ñ2KÈgÑ2UÐVó
ˆŒô
 �O‰OØØ˜Ÿ™Ñ"ØÐ%Ñ%¨Ñ)¨GÑ3Øó	ð
ˆ�	ó    N)ÚreturnÚNone)Ú__name__Ú
__module__Ú__qualname__Ú__doc__ÚformatÚformat_descriptionr,   © r-   r+   r   r   &   s   „ ñð €FØ1Ðô 
r-   r   c                ó|   — |dk7  rd}t        |«      ‚	 t        | «      S # t        $ r}d}t        |«      |‚d}~ww xY w)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+   Úopenr<   T   sK   € ð ˆs‚{ØˆÜ˜‹oÐð1Ü˜2‹ÐøÜò 1Ø/ˆÜ$ SÓ)¨qÐ0ûð1ús   ”
 Ÿ	;¨6¶;N)r8   )r   zStrOrBytesPath | IO[bytes]r:   Ústrr.   r   )r3   Ú
__future__r   Útypingr   Ú r   r   r   Ú_binaryr	   r   r
   r   Ú_typingr   r   r<   r6   r-   r+   ú<module>rC      s9   ðñ"
õ #å ç =Ñ =Ý !Ý !Ý #ô+
�)×%Ñ%ô +
õ\1r-   