o
    tVg%                  	   @   sr  d Z ddlZddlZejdkr/ejed Zejd d e ejd< ej	dkr-e
e [ndejv rEdejvrEejejd ejd< d	d
 ZG dd dZddlT ddlT ddlT ddlmZ ddlmZmZ ddlZddlZejjZddlZejjZddlZej j!Z!ej j"Z"e#Z$e% dk rzddl&ZW n e'e(fy   edddZ)Y nw zddl*ZW n e'e(fy   edddZ+Y nw zddl,ZW n e'e(fy   edddZ-Y nw zddl.ZW n e'e(fy   edddZ/Y nw zddl0ZW n e'e(fy	   edddZ1Y nw zddl2ZW n e'e(fy"   edddZ3Y nw zddl4ZW n e'e(fy;   edddZ5Y nw zddl6ZW n e'e(fyT   edddZ7Y nw zddl8Zddl8m9Z9 W n e'e(fyw   edddZ:dd Z9Y nw zddl;ZW n e'e(fy   edddZ<Y nw zddl=ZW n e'e(fy   ed ddZ>Y nw zddl?ZW n e'e(fy   ed!ddZ@Y nw z
dd"lAmBZBmCZC W n e'e(fy   d#d$ ZBeBZCY nw zddlDZdd%lDmEZE W n e'e(fy   ed&ddZFd'd( ZEY nw zdd)lGmHZH W n e'e(fy   d*d+ ZHY nw zdd,lImJZJ W n e'e(fy4   d-d. ZJY nw zddlKZW n e'e(fyM   ed/ddZLY nw zddlMZW n e'e(fyf   ed0ddZNY nw d1ejv rzddlOmPZQ eQejRd2< W n e'e(fy   Y nw zddlSZddlTZejUjVejQ_VejUjWejQ_WejUjXejQ_XW n e'e(fy   ed3ddZQY nw zddlYZW n e'e(fy   Y nw zddlZZW n e'e(fy   ed4ddZ[Y nw zddl\ZW n e'e(fy   ed5ddZ]Y nw zddl^ZW n e'e(fy   ed6ddZ_Y nw zddl`ZW n e'e(fy,   ed7ddZaY nw zddlbZW n e'e(fyE   ed8ddZcY nw zddldZe`eW n e'e(fyZ   Y nw zddlfZW n e'e(fym   Y nw d9d: ZgddlhZhd;d< Zid=d> Zjehkeejei d?d@ ZldAdB Zmehkeemel dCejvrendDjoe#ge% ej	ddE  R   endF [[[[[h[gdS )Ga;  Pygame is a set of Python modules designed for writing games.
It is written on top of the excellent SDL library. This allows you
to create fully featured games and multimedia programs in the python
language. The package is highly portable, with games running on
Windows, MacOS, OS X, BeOS, FreeBSD, IRIX, and Linux.    NntPATH;)      DISPLAYSDL_VIDEO_X11_WMCLASSc                 C   s   t |  d)Nz is not available)RuntimeError)name r   C/home/ubuntu/.local/lib/python3.10/site-packages/pygame/__init__.py_attribute_undefined1      r   c                   @   s2   e Zd ZdZdddZdd Zdd Zd	d
 ZdS )MissingModuleTr   c                 C   sR   || _ t d d \}}t|| _|j d| j | _|| _|r'|   d S d S )N   : )	r
   sysexc_infostrinfo__name__reasonurgentwarn)selfr
   r   exc_typeexc_msgr   r   r   __init__8   s   
zMissingModule.__init__c                 C   s0   | j s
|   d| _ | j d| j d}t|)N   z module not available ())r   r   r
   r   NotImplementedError)r   varmissing_msgr   r   r   __getattr__A   s
   zMissingModule.__getattr__c                 C   s   dS )NFr   )r   r   r   r   __bool__H   s   zMissingModule.__bool__c                 C   sx   | j rdnd}| d| j d| j d| j d}zdd l}| j r"dnd	}||t| W d S  ty;   t| Y d S w )
Nimportuse r   z
(r   r      r   )	r   r
   r   r   warningsr   RuntimeWarningImportErrorprint)r   msg_typemessager)   levelr   r   r   r   K   s   "zMissingModule.warnN)r   )r   
__module____qualname___NOT_IMPLEMENTED_r   r#   r$   r   r   r   r   r   r   5   s    
	r   )*Rect)encode_stringencode_file_path)r   r   r   cdromr   )r   displaydraweventimagejoystickkeymouse)Cursorcursorsc                  G      t d d S )Nzpygame.Cursorr   )argsr   r   r   r@         r@   spritethreads	pixelcopy)SurfaceSurfaceTypec                 C   rB   )Nzpygame.SurfacerC   )sizeflagsdepthmasksr   r   r   rI      rE   rI   )Maskmaskc                 C   rB   )Nzpygame.MaskrC   )rK   fillr   r   r   rO      rE   rO   )
PixelArrayc                 C   rB   )Nzpygame.PixelArrayrC   )surfacer   r   r   rR      rE   rR   )Overlayc                 C   rB   )Nzpygame.OverlayrC   )formatrK   r   r   r   rT      rE   rT   time	transformPYGAME_FREETYPEzpygame.fontfontmixerscrap	surfarraysndarray	fasteventc                  C   s,   ddl } ddl}ddl}ddl}ddl}dS )z;some additional imports that py2app/py2exe will want to seer   N)atexitnumpy	OpenGL.GLpygame.macosxpygame.colordict)r_   r`   OpenGLpygamer   r   r   packager_imports)  s
   rf   c                 C      t | |||S Nr4   )xywhr   r   r   __rect_constructor7  r   rm   c                 C   &   t | tsJ t| j| j| j| jffS rh   )
isinstancer5   rm   ri   rj   rk   rl   )rr   r   r   __rect_reduce;     rq   c                 C   rg   rh   )Color)rp   gbar   r   r   __color_constructorD  r   rw   c                 C   rn   rh   )ro   rs   rw   rp   rt   ru   rv   )cr   r   r   __color_reduceH  rr   ry   PYGAME_HIDE_SUPPORT_PROMPTz)pygame {} (SDL {}.{}.{}, Python {}.{}.{})r   zGHello from the pygame community. https://www.pygame.org/contribute.html)p__doc__r   osr
   pathsplit__file__
pygame_direnvironversion_infoadd_dll_directorybasenameargvr   r   pygame.basepygame.constantspygame.versionpygame.rectr5   pygame.rwobjectr6   r7   pygame.surflockre   pygame.colorcolorrs   pygame.bufferproxybufferproxyBufferProxypygame.mathmathVector2Vector3ver__version__get_sdl_versionpygame.cdromr+   OSErrorr8   pygame.displayr9   pygame.drawr:   pygame.eventr;   pygame.imager<   pygame.joystickr=   
pygame.keyr>   pygame.mouser?   pygame.cursorsr@   rA   pygame.spriterF   pygame.threadsrG   pygame.pixelcopyrH   pygame.surfacerI   rJ   pygame.maskrO   rP   pygame.pixelarrayrR   pygame.overlayrT   pygame.timerV   pygame.transformrW   pygame.ftfontftfontrY   modulespygame.fontpygame.sysfontsysfontSysFont	get_fonts
match_fontpygame.mixer_musicpygame.mixerrZ   pygame.scrapr[   pygame.surfarrayr\   pygame.sndarrayr]   pygame.fasteventr^   pygame.imageextimageextpygame.pkgdatarf   copyregrm   rq   picklerw   ry   r,   rU   r   r   r   r   <module>   s  


'
