Ë
    çôfz  ã                   ó:  — d dl mZ  eee«      Zd dlZd dlZd dlZd dlZdZdej                  v r e
e«      ‚ddlmZ ddlmZ ddlmZ dd	lmZ dd
lmZ i Zej$                  j'                  ej$                  j)                  e«      d«      Z ej.                  d«      Zeej                  ej                  <   ej2                  e_        ej4                  e_        ej4                  dd Z dj8                  eŽ Z ej<                  «         G d„ dej.                  «      Z ede«      ej                  d<    ede«      ej                  d<    ede«      ej                  d<    ede«      ej                  d<    ede«      ej                  d<   d„ Z d„ Z!d„ Z"d„ Z#dd„Z$y)é    )Úextend_pathNzÜWhen using gi.repository you must not import static modules like "gobject". Please change all occurrences of "import gobject" to "from gi.repository import GObject". See: https://bugzilla.gnome.org/show_bug.cgi?id=709183Úgobjecté   )Ú_gi)Ú_API)Ú
Repository)ÚPyGIDeprecationWarning)ÚPyGIWarningÚ	overrideszgi._gobjectz{0}.{1}.{2}c                   ó   — e Zd ZdZd„ Zy)Ú_DummyStaticModuleNc                 ó    — t        t        «      ‚©N)ÚAttributeErrorÚ_static_binding_error)ÚselfÚnames     ú-/usr/lib/python3/dist-packages/gi/__init__.pyÚ__getattr__z_DummyStaticModule.__getattr__@   s   € ÜÔ2Ó3Ð3ó    )Ú__name__Ú
__module__Ú__qualname__Ú__path__r   © r   r   r   r   =   s   „ Ø€Hó4r   r   ÚglibÚgioÚgtkzgtk.gdkc                 ó¸   — t        | t        «      r)t        t        t        | j                  d«      «      «      }n| }|t        kD  rt        d| ›dt        ›d�«      ‚y )Nú.zpygobject's version z! required, and available version z is not recent enough)	Ú
isinstanceÚstrÚtupleÚmapÚintÚsplitÚversion_infoÚ
ValueErrorÚ__version__)ÚversionÚversion_lists     r   Úcheck_versionr,   K   sP   € Ü�'œ3ÔÜœS¤ g§m¡m°CÓ&8Ó9Ó:‰àˆà”lÒ"Ýâ*1¶;ð@ó 
ð 	
ð #r   c                 óª  — t        j                  «       }t        |t        «      st	        d«      ‚| |j                  «       v r'|j                  | «      }||k7  rt	        d| ›d|›�«      ‚| t        v r$t        |    |k7  rt	        d| ›dt        |    ›�«      ‚|j                  | «      }|st	        d| z  «      ‚||vrt	        d| ›d|›�«      ‚|t        | <   y)a­   Ensures the correct versions are loaded when importing `gi` modules.

    :param namespace: The name of module to require.
    :type namespace: str
    :param version: The version of module to require.
    :type version: str
    :raises ValueError: If module/version is already loaded, already required, or unavailable.

    :Example:

    .. code-block:: python

        import gi
        gi.require_version('Gtk', '3.0')

    z'Namespace version needs to be a string.z
Namespace z  is already loaded with version z already requires version zNamespace %s not availablez not available for version N)	r   Úget_defaultr!   r"   r(   Úget_loaded_namespacesÚget_versionÚ	_versionsÚenumerate_versions)Ú	namespacer*   Ú
repositoryÚloaded_versionÚavailable_versionss        r   Úrequire_versionr7   X   sí   € ô" ×'Ñ'Ó)€Jä�gœsÔ#ÜÐBÓCÐCà�J×4Ñ4Ó6Ñ6Ø#×/Ñ/°	Ó:ˆØ˜WÒ$ÝÚ'©ð9ó :ð :ð ”IÑ¤)¨IÑ"6¸'Ò"AÝÚ#¤Y¨yÒ%9ð;ó <ð 	<ð $×6Ñ6°yÓAÐÙÜÐ5¸	ÑAÓBÐBàÐ(Ñ(ÝÚ#¡Wð.ó /ð 	/ð #„IˆiÒr   c                 óL   — | j                  «       D ]  \  }}t        ||«       Œ y)a3   Utility function for consolidating multiple `gi.require_version()` calls.

    :param requires: The names and versions of modules to require.
    :type requires: dict

    :Example:

    .. code-block:: python

        import gi
        gi.require_versions({'Gtk': '3.0', 'GLib': '2.0', 'Gio': '2.0'})
    N)Úitemsr7   )ÚrequiresÚmodule_nameÚmodule_versions      r   Úrequire_versionsr=   ƒ   s)   € ð (0§~¡~Ó'7ò 5Ñ#ˆ�^Ü˜ ^Õ4ñ5r   c                 ó.   — t         j                  | d «      S r   )r1   Úget)r3   s    r   Úget_required_versionr@   ”   s   € Ü�=‰=˜ DÓ)Ð)r   c                 ó¨   — 	 t        j                  | |«       t        j                  d| «       y# t        $ r}t        t	        |«      «      ‚d}~ww xY w)a©  Ensure the given foreign marshaling module is available and loaded.

    :param str namespace:
        Introspection namespace of the foreign module (e.g. "cairo")
    :param symbol:
        Optional symbol typename to ensure a converter exists.
    :type symbol: str or None
    :raises: ImportError

    :Example:

    .. code-block:: python

        import gi
        import cairo
        gi.require_foreign('cairo')

    Nzgi.repository)r   Úrequire_foreignÚ	ExceptionÚImportErrorr"   Ú	importlibÚimport_module)r3   ÚsymbolÚes      r   rB   rB   ˜   sJ   € ð&"Ü×Ñ˜I vÔ.ô ×Ñ˜O¨YÕ7øô ò "Üœ#˜a›&Ó!Ð!ûð"ús   ‚/ ¯	A¸AÁAr   )%Úpkgutilr   r   r   ÚsysÚosrE   Útypesr   ÚmodulesrD   Ú r   r   r   r	   r
   r1   ÚpathÚjoinÚdirnameÚ__file__Ú_overridesdirÚ
ModuleTypeÚ_gobjectÚ_PyGObject_APIÚpygobject_versionr'   Úformatr)   Úregister_foreignr   r,   r7   r=   r@   rB   r   r   r   ú<module>rZ      sŒ  ðõ,  Ù�x Ó*€ã 
Û 	Û Û ðRÐ ð �—‘ÑÙ
Ð+Ó
,Ð,õ Ý Ý Ý 'Ý à€	Ø—‘—‘˜RŸW™WŸ_™_¨XÓ6¸ÓD€ð ˆ5×Ñ˜MÓ*€Ø!)€‡�ˆH×ÑÑ Ø×,Ñ,€Ô Ø ×2Ñ2€Ô à×$Ñ$¡QÐ'€Ø"ˆm×"Ñ" LÐ1€à €× Ñ Ô ô4˜×)Ñ)ô 4ñ )¨Ð1FÓG€‡�ˆFÑ Ù+¨IÐ7LÓM€‡�ˆIÑ Ù'¨Ð/DÓE€‡�ˆEÑ Ù'¨Ð/DÓE€‡�ˆEÑ Ù+¨IÐ7LÓM€‡�ˆIÑ ò

ò(#òV5ò"*ô8r   