Ë
    š”e©—  ã                   óÂ  — d Z ddlZddlmZ ddlmZ ddlZddlmZ ddlm	Z	 ddl
mZ ddlmZ g d¢Zd	Zd
ZdZdZ e«       Z e«       Zd„ Zd„ Z G d„ d«      ZeZe G d„ d«      «       Z G d„ d«      Ze G d„ dee«      «       Z eg d«      Z G d„ de«      Z G d„ de«      Z  e deeefddi«      Z!d„ Z" G d „ de!«      Z# e#d!d"¬#«      Z$d$„ e$_%        e$jM                  e$«       e$jN                  e$fk(  sJ ‚e$e_(        e$e_(         G d%„ d&e#«      Z) G d'„ d(e«      Z* G d)„ d*e*«      Z+d3d+„Z,d4d,„Z-d-„ Z.dd.l/m0Z0 dd/l/m1Z1 dd0lm2Z2 dd1lm3Z3 dd2l/m4Z4 ejM                  e4e4«       y)5z Interface object implementation
é    N)Ú
MethodType)ÚFunctionType)Ú_use_c_impl)ÚInvalid)Úro)ÚInterfaceClassÚSpecificationÚadapter_hooksé   é   Ú__interface_tagged_values__Ú__interface_methods__c                 ó¾   — t        j                  d«      j                  }|j                  t        i «      }|j                  dg «      }|j                  | «       t        S )Né   Ú
invariants)ÚsysÚ	_getframeÚf_localsÚ
setdefaultÚTAGGED_DATAÚappendÚ_decorator_non_return)Úcallr   Útagsr   s       ú:/usr/lib/python3/dist-packages/zope/interface/interface.pyÚ	invariantr   1   sL   € Ü�}‰}˜QÓ×(Ñ(€HØ×Ñœ{¨BÓ/€DØ—‘ ¨rÓ2€JØ×Ñ�dÔÜ Ð ó    c                 ó‚   — t        j                  d«      j                  }|j                  t        i «      }||| <   t
        S )z;Attaches a tagged value to an interface at definition time.r   )r   r   r   r   r   r   )ÚkeyÚvaluer   Útagged_valuess       r   ÚtaggedValuer"   9   s8   € ä�}‰}˜QÓ×(Ñ(€HØ×'Ñ'¬°RÓ8€MØ€M�#ÑÜ Ð r   c                   óJ   — e Zd ZdZd
d„Zd„ Zd„ Zd„ Zdd„Zd„ Z	d	„ Z
eZeZe	Zy)ÚElementzI
    Default implementation of `zope.interface.interfaces.IElement`.
    c                 ób   — |s|j                  d«      dk\  r|}d }|| _        || _        d | _        y )Nú r   )ÚfindÚ__name__Ú__doc__Ú_Element__tagged_values)Úselfr(   r)   s      r   Ú__init__zElement.__init__K   s7   € Ù˜8Ÿ=™=¨Ó-°Ò2ØˆGØˆHà ˆŒØˆŒð  $ˆÕr   c                 ó   — | j                   S )z! Returns the name of the object. ©r(   ©r+   s    r   ÚgetNamezElement.getNameV   s   € à�}‰}Ðr   c                 ó   — | j                   S )z+ Returns the documentation for the object. )r)   r/   s    r   ÚgetDoczElement.getDocZ   s   € à�|‰|Ðr   c                 óN   — | j                   st        |«      ‚| j                   |   S ©ú* Returns the value associated with 'tag'. )r*   ÚKeyError)r+   Útags     r   ÚgetTaggedValuezElement.getTaggedValuee   s&   € à×#Ò#Ü˜3“-ÐØ×#Ñ# CÑ(Ð(r   Nc                 óV   — | j                   r| j                   j                  ||«      S |S r4   )r*   Úget)r+   r7   Údefaults      r   ÚqueryTaggedValuezElement.queryTaggedValuek   s)   € à9=×9MÒ9Mˆt×#Ñ#×'Ñ'¨¨WÓ5ÐZÐSZÐZr   c                 óR   — | j                   r| j                   j                  «       S dS )z# Returns a collection of all tags. © )r*   Úkeysr/   s    r   ÚgetTaggedValueTagszElement.getTaggedValueTagso   s$   € à.2×.BÒ.Bˆt×#Ñ#×(Ñ(Ó*ÐJÈÐJr   c                 óH   — | j                   €i | _         || j                   |<   y)z  Associates 'value' with 'key'. N)r*   ©r+   r7   r    s      r   ÚsetTaggedValuezElement.setTaggedValues   s&   € à×ÑÐ'Ø#%ˆDÔ Ø$)ˆ×Ñ˜SÒ!r   )Ú ©N)r(   Ú
__module__Ú__qualname__r)   r,   r0   r2   r8   r<   r@   rC   ÚqueryDirectTaggedValueÚgetDirectTaggedValueÚgetDirectTaggedValueTagsr>   r   r   r$   r$   A   s@   „ ñó	$òòò)ó[òKò*ð .ÐØ)ÐØ1Ñr   r$   c                   ó&   — e Zd ZdZd„ Zd„ Zd„ ZeZy)ÚSpecificationBase)Ú_impliedÚ_dependentsÚ_basesÚ_v_attrsÚ__iro__Ú__sro__Ú__weakref__c                 ó4   — t        |«      }| |j                  v S )z2Is the interface implemented by an object
        )Ú
providedByrM   )r+   ÚobÚspecs      r   rU   zSpecificationBase.providedByš   s   € ô ˜"‹~ˆØ�t—}‘}Ð$Ð$r   c                 ó4   — t        |«      }| |j                  v S )z•Test whether the specification is implemented by a class or factory.

        Raise TypeError if argument is neither a class nor a callable.
        )ÚimplementedByrM   )r+   ÚclsrW   s      r   rY   zSpecificationBase.implementedBy    s   € ô
 ˜SÓ!ˆØ�t—}‘}Ð$Ð$r   c                 ó   — || j                   v S )zCIs the interface the same as or extend the given interface
        ©rM   )r+   Ú	interfaces     r   ÚisOrExtendszSpecificationBase.isOrExtends¨   s   € ð ˜DŸM™MÐ)Ð)r   N)r(   rF   rG   Ú	__slots__rU   rY   r^   Ú__call__r>   r   r   rL   rL   �   s   „ ð
€Iò%ò%ò*ð
 �Hr   rL   c                   ó.   — e Zd ZdZd„ Zd„ Zd„ Zd„ Zd„ Zy)ÚNameAndModuleComparisonMixinr>   c                 ó´   — || u ry|€y| j                   | j                  f}	 |j                   |j                  f}||kD  ||k  z
  S # t        $ r	 t        cY S w xY w)a«  
        Compare *self* to *other* based on ``__name__`` and ``__module__``.

        Return 0 if they are equal, return 1 if *self* is
        greater than *other*, and return -1 if *self* is less than
        *other*.

        If *other* does not have ``__name__`` or ``__module__``, then
        return ``NotImplemented``.

        .. caution::
           This allows comparison to things well outside the type hierarchy,
           perhaps not symmetrically.

           For example, ``class Foo(object)`` and ``class Foo(Interface)``
           in the same file would compare equal, depending on the order of
           operands. Writing code like this by hand would be unusual, but it could
           happen with dynamic creation of types and interfaces.

        None is treated as a pseudo interface that implies the loosest
        contact possible, no contract. For that reason, all interfaces
        sort before None.
        r   éÿÿÿÿ)r(   rF   ÚAttributeErrorÚNotImplemented)r+   ÚotherÚn1Ún2s       r   Ú_comparez%NameAndModuleComparisonMixin._compare¾   sm   € ð0 �D‰=Øàˆ=Øà�m‰m˜TŸ_™_Ð-ˆð	"Ø—.‘. %×"2Ñ"2Ð3ˆBð
 �R‘˜B ™GÑ$Ð$øô	 ò 	"Ü!Ò!ð	"ús   ¢A ÁAÁAc                 óB   — | j                  |«      }|t        u r|S |dk  S ©Nr   ©rj   rf   ©r+   rg   Úcs      r   Ú__lt__z#NameAndModuleComparisonMixin.__lt__å   ó&   € Ø�M‰M˜%Ó ˆØ”ÑØˆHØ�1‰uˆr   c                 óB   — | j                  |«      }|t        u r|S |dk  S rl   rm   rn   s      r   Ú__le__z#NameAndModuleComparisonMixin.__le__ë   ó&   € Ø�M‰M˜%Ó ˆØ”ÑØˆHØ�A‰vˆr   c                 óB   — | j                  |«      }|t        u r|S |dkD  S rl   rm   rn   s      r   Ú__gt__z#NameAndModuleComparisonMixin.__gt__ñ   rq   r   c                 óB   — | j                  |«      }|t        u r|S |dk\  S rl   rm   rn   s      r   Ú__ge__z#NameAndModuleComparisonMixin.__ge__÷   rt   r   N)	r(   rF   rG   r_   rj   rp   rs   rv   rx   r>   r   r   rb   rb   °   s#   „ ð €Iò%%òNòòór   rb   c                   óT   — e Zd ZdZdZdd„Zd„ Zed„ «       Ze	fd„Z
d„ Zd	„ Zd
„ Zd„ Zy)ÚInterfaceBasez:Base class that wants to be replaced with a C base :)
    )r(   Ú__ibmodule__Ú_v_cached_hashNc                 ó    — || _         || _        y rE   )r(   r{   )r+   ÚnameÚmodules      r   r,   zInterfaceBase.__init__	  s   € ØˆŒØ"ˆÕr   c                 ó   — t         ‚rE   )ÚNotImplementedError©r+   Úconforms     r   Ú_call_conformzInterfaceBase._call_conform  s   € Ü!Ð!r   c                 ó   — | j                   S rE   )r{   r/   s    r   Ú__module_property__z!InterfaceBase.__module_property__  s   € ð × Ñ Ð r   c                 óÄ   — 	 |j                   }|�| j                  |«      }|�|S | j                  |«      }|�|S |t        ur|S t        d|| «      ‚# t        $ r d}Y ŒPw xY w)z)Adapt an object to the interface
        NzCould not adapt)Ú__conform__re   r„   Ú	__adapt__Ú_markerÚ	TypeError)r+   ÚobjÚ	alternaterƒ   Úadapters        r   r`   zInterfaceBase.__call__  s€   € ð	Ø—o‘oˆGð ÐØ×(Ñ(¨Ó1ˆGØÐ"Ø�à—.‘. Ó%ˆàÐØˆNØœGÑ#ØÐÜÐ)¨3°Ó5Ð5øô ò 	ØŠGð	ús   ‚A ÁAÁAc                 ó^   — | j                  |«      r|S t        D ]  } || |«      }|€Œ|c S  y)z(Adapt an object to the receiver
        N)rU   r
   )r+   rŒ   ÚhookrŽ   s       r   r‰   zInterfaceBase.__adapt__*  s?   € ð �?‰?˜3ÔØˆJä!ò 	ˆDÙ˜4 “oˆGØÑ"Ø’ð	ð
 r   c                 óœ   — 	 | j                   S # t        $ r4 t        | j                  | j                  f«      | _         Y | j                   S w xY wrE   )r|   re   Úhashr(   rF   r/   s    r   Ú__hash__zInterfaceBase.__hash__7  sK   € ð	IØ×&Ñ&Ð&øÜò 	IÜ"&¨¯©°t·±Ð'GÓ"HˆDÕØ×"Ñ"Ð"ð	Iús   ‚ Ž/AÁ
Ac                 óB   — | j                  |«      }|t        u r|S |dk(  S rl   rm   rn   s      r   Ú__eq__zInterfaceBase.__eq__?  rt   r   c                 óL   — || u ry| j                  |«      }|t        u r|S |dk7  S )NFr   rm   rn   s      r   Ú__ne__zInterfaceBase.__ne__E  s0   € Ø�D‰=Øà�M‰M˜%Ó ˆØ”ÑØˆHØ�A‰vˆr   ©NN)r(   rF   rG   r)   r_   r,   r„   Úpropertyr†   rŠ   r`   r‰   r“   r•   r—   r>   r   r   rz   rz   þ   sJ   „ ñð€Ió#ò"ð ñ!ó ð!ð '.ó 6ò*ò#òór   rz   r
   c                   ó´   — e Zd ZdZdZdZej                  Zej                  Zdd„Z	e
d„ «       Zd„ Zd„ Zd„ Z e
d	„ e«      ZeZd
„ Zd„ Zd„ Zdd„Zdd„Zdd„Zy)r	   aw  Specifications

    An interface specification is used to track interface declarations
    and component registrations.

    This class is a base class for both interfaces themselves and for
    interface specifications (declarations).

    Specifications are mutable.  If you reassign their bases, their
    relations with other specifications are adjusted accordingly.
    r>   Nc                 óx   — d | _         d| _        i | _        d | _        d| _        d| _        t        |«      | _        y )Nr>   )rN   rO   rM   rP   rQ   rR   ÚtupleÚ	__bases__)r+   Úbasess     r   r,   zSpecification.__init__g  s:   € ð  ˆÔØˆŒØˆŒØˆŒØˆŒØˆŒä˜u›ˆ�r   c                 ód   — | j                   €t        j                  «       | _         | j                   S rE   )rN   ÚweakrefÚWeakKeyDictionaryr/   s    r   Ú
dependentszSpecification.dependentsy  s+   € à×ÑÐ#Ü&×8Ñ8Ó:ˆDÔØ×ÑÐr   c                 ó\   — | j                   j                  |d«      dz   | j                  |<   y )Nr   r   )r¢   r:   rN   )r+   Ú	dependents     r   Ú	subscribezSpecification.subscribe  s(   € Ø&*§o¡o×&9Ñ&9¸)ÀQÓ&GÈ!Ñ&Kˆ×Ñ˜Ò#r   c                 óª   — 	 | j                   |   }|dz  }|s| j                  |= y |dkD  sJ ‚|| j                  |<   y # t        $ r t        |«      ‚w xY w)Nr   r   )rN   r‹   r6   r¢   )r+   r¤   Úns      r   ÚunsubscribezSpecification.unsubscribe‚  sf   € ð	&Ø× Ñ  Ñ+ˆAð 	
ˆQ‰ˆÙØ—‘ 	Ñ*à�q’5ˆL�5Ø)*ˆD�O‰O˜IÒ&øô ò 	&Ü˜9Ó%Ð%ð	&ús	   ‚= ½Ac                 ó¨   — | j                   D ]  }|j                  | «       Œ || _        |D ]  }|j                  | «       Œ | j	                  | «       y rE   )r�   r¨   rO   r¥   Úchanged)r+   rž   Úbs      r   Ú
__setBaseszSpecification.__setBasesŽ  sS   € à—‘ò 	 ˆAØ�M‰M˜$Õð	 ð ˆŒØò 	ˆAØ�K‰K˜Õð	ð 	�‰�TÕr   c                 ó   — | j                   S rE   )rO   r/   s    r   ú<lambda>zSpecification.<lambda>›  s
   € �T—[‘[€ r   c                 óú   — | j                  | j                  D �ci c]  }||j                  “Œ c}¬«      }| j                  }|�-|r+|d   |ur$|D �cg c]  }||ur|‘Œ
 }}|j	                  |«       |S c c}w c c}w )z·
        Calculate and return the resolution order for this object, using its ``__bases__``.

        Ensures that ``Interface`` is always the last (lowest priority) element.
        )Ú	base_mrosrd   )Ú_do_calculate_ror�   rR   Ú_ROOTr   )r+   r«   ÚsroÚrootÚxs        r   Ú_calculate_srozSpecification._calculate_sro¦  s›   € ðF ×#Ñ#à—^‘^ö/
àð ˆq�y‰y‰Lò/
Ð#ó ˆð �z‰zˆØÐ¡¨¨B©°tÑ(;ð öàØ˜D‘=ò ðˆCð ð
 �J‰J�tÔàˆ
ùò)/
ùòs   šA3ÁA8c           	      ó¤  — d| _         | j                  }|j                  «        | j                  «       }t	        |«      | _        t	        |D �cg c]  }t        |t        «      r|‘Œ c}«      | _        |D ]  }d||<   Œ	 t	        | j                  r| j                  j                  «       nd«      D ]  }|j                  |«       Œ d| _         yc c}w )z´
        We, or something we depend on, have changed.

        By the time this is called, the things we depend on,
        such as our bases, should themselves be stable.
        Nr>   )rP   rM   Úclearr¶   rœ   rR   Ú
isinstancer   rQ   rN   r?   rª   )r+   Úoriginally_changedÚimpliedÚ	ancestorsÚancestorr¤   s         r   rª   zSpecification.changedß  sÉ   € ð ˆŒà—-‘-ˆØ�‰Œà×'Ñ'Ó)ˆ	Ü˜YÓ'ˆŒÜ°yö  ¨8Ü!+¨H´nÔ!Eò 'ò  ó !ˆŒð "ò 	#ˆHà "ˆG�HÒð	#ô ¸$×:JÒ:J˜t×/Ñ/×4Ñ4Ô6ÐPRÓSò 	2ˆIØ×ÑÐ0Õ1ð	2ð ˆ�ùò! s   ÁCc              #   óx   K  — i }| j                   D ]%  }|j                  «       D ]  }||vsŒd||<   |–— Œ Œ' y­w)úDReturn an iterator for the interfaces in the specification.
        r   N)r�   Ú
interfaces)r+   ÚseenÚbaser]   s       r   rÀ   zSpecification.interfacesÿ  sL   è ø€ ð ˆØ—N‘Nò 	$ˆDØ!Ÿ_™_Ó.ò $�	Ø DÒ(Ø&'�D˜‘OØ#“Oñ$ñ	$ùs   ‚):¬:c                 ó6   — || j                   v xr
 | xs | |k7  S )z—Does the specification extend the given interface?

        Test whether an interface in the specification extends the
        given interface
        r\   )r+   r]   Ústricts      r   ÚextendszSpecification.extends	  s)   € ð ˜dŸm™mÐ+ò 6à�*Ò4 $¨)Ñ"3ð	r   c                 ó.   — t        j                  | |«      S rE   )r    Úref)r+   Úcallbacks     r   r    zSpecification.weakref  s   € Ü�{‰{˜4 Ó*Ð*r   c                 ó¸   — | j                   }|€	i x}| _         |j                  |«      }|€+| j                  D ]  }|j                  |«      }|€Œ|||<    n |€|S |S )z+Query for an attribute description
        )rP   r:   rQ   Údirect)r+   r~   r;   ÚattrsÚattrÚifaces         r   r:   zSpecification.get  st   € ð —‘ˆØˆ=Ø$&Ð&ˆE�D”MØ�y‰y˜‹ˆØˆ<ØŸ™ò �Ø—|‘| DÓ)�ØÑ#Ø"&�E˜$‘KÙð	ð ˜,ˆwÐ0¨DÐ0r   )r>   )TrE   )r(   rF   rG   r)   r_   r²   rL   r^   rU   r,   r™   r¢   r¥   r¨   Ú_Specification__setBasesr�   Úcalculate_ror±   r¶   rª   rÀ   rÅ   r    r:   r>   r   r   r	   r	   Q  s�   „ ñ
ð €Ið €Eð $×/Ñ/€KØ"×-Ñ-€Jó&ð$ ñ ó ð ò
Lò
+ò
ñ Ù Øó
€Ið $Ðò7òrò@$ó	ó+ô1r   r	   c                   ó,   — e Zd ZdZd„ Zed„ «       Zd„ Zy)Ú_InterfaceMetaClassr>   c                 óþ   — t        j                  d«      j                  d   }t        j                  d   }t        |t        «      rt        j                  d   }||d<   t        j                  | |||«      }||_	        |S )Nr   r(   rF   r†   )
r   r   Ú	f_globalsrz   Ú__dict__r¹   ÚstrÚtypeÚ__new__Ú_InterfaceMetaClass__module)rZ   r~   rž   rË   rF   ÚmoduledescrÚkinds          r   r×   z_InterfaceMetaClass.__new__s  sv   € ô
 —]‘] 1Ó%×/Ñ/°
Ñ;ˆ
ô $×,Ñ,¨\Ñ:ˆÜ�k¤3Ô'ô (×0Ñ0Ð1FÑGˆKØ)ˆˆlÑÜ�|‰|˜C  u¨eÓ4ˆØ"ˆŒØˆr   c                 ó   — | j                   S rE   )rØ   ©rZ   s    r   rF   z_InterfaceMetaClass.__module__…  s   € à�|‰|Ðr   c                 óN   — dj                  | j                  | j                  «      S )Nz<class '{}.{}'>)ÚformatrØ   r(   rÜ   s    r   Ú__repr__z_InterfaceMetaClass.__repr__‰  s#   € Ø ×'Ñ'Ø�L‰LØ�L‰Ló
ð 	
r   N)r(   rF   rG   r_   r×   r™   rß   r>   r   r   rÑ   rÑ   (  s(   „ ðR €Iòð$ ñó ðó
r   rÑ   r   r_   r>   c                 ó–   — t        j                  d«      j                  }|j                  t        i «      }| || j
                  <   t        S )a–  
    Convert a method specification to an actual method of the interface.

    This is a decorator that functions like `staticmethod` et al.

    The primary use of this decorator is to allow interface definitions to
    define the ``__adapt__`` method, but other interface methods can be
    overridden this way too.

    .. seealso:: `zope.interface.interfaces.IInterfaceDeclaration.interfacemethod`
    r   )r   r   r   r   ÚINTERFACE_METHODSr(   r   )Úfuncr   Úmethodss      r   Úinterfacemethodrä   ˜  s?   € ô �}‰}˜QÓ×(Ñ(€HØ×!Ñ!Ô"3°RÓ8€GØ!€GˆD�M‰MÑÜ Ð r   c                   ó¨   — e Zd ZdZ	 	 dd„Z	 	 dd„Zd„ Zd„ Zd„ Zd„ Z	dd	„Z
d
„ Zdd„Zd„ ZeZd„ Zd„ Zdd„Zdd„Zdd„Zd„ Zd„ Zd„ Zd„ Zd„ Zd„ Zy)r   zÄ
    Prototype (scarecrow) Interfaces Implementation.

    Note that it is not possible to change the ``__name__`` or ``__module__``
    after an instance of this object has been constructed.
    Nc                 ór  — t        |t        «      sJ ‚|xs i }|j                  t        d «      }|rs|j	                  d|v rd|j                  d«      ini «       d|v rd|d<   t        | t        «      r| f}n| t        u rt        f}n| t        f} t        | «      |dz   ||«      } t        j                  | «      S )NÚ__classcell__r‰   r   Ú_CALL_CUSTOM_ADAPTz<WithCustomMethods>)r¹   rœ   Úpoprá   ÚupdateÚ
issubclassÚ _InterfaceClassWithCustomMethodsr   rÖ   Ú_InterfaceClassBaser×   )rZ   r~   rž   rË   r)   rF   Úneeds_custom_classÚ	cls_basess           r   r×   zInterfaceClass.__new__·  sÒ   € ä˜%¤Ô'Ð'Ð'Ø’˜ˆØ"ŸY™YÔ'8¸$Ó?ÐÙØ×%Ñ%à" eÑ+ð ! %§)¡)¨OÓ"<Ñ=àôð
 Ð0Ñ0à;<Ð"Ð#7Ñ8ä˜#Ô?Ô@Ø ˜F‘	ØœÑ&Ü=Ð?‘	à Ô"BÐC�	à”$�s“)ØÐ,Ñ,ØØ"óˆCô #×*Ñ*¨3Ó/Ð/r   c                 óÆ  — t        d„ |D «       «      st        d«      ‚|€i }|€H|j                  d«      }t        |t        «      r|d= n#	 t        j                  d«      j                  d   }t        j                  | ||«       |j                  d«      }|�t        |t        «      s|€|}|d= |€d}t        j                  | ||«       |j                  t        d «      }|�*|j!                  «       D ]  \  }}	| j#                  ||	«       Œ t$        j                  | |«       | j'                  |«      | _        dj+                  ||«      | _        y # t        t        f$ r Y Œów xY w)	Nc              3   ó<   K  — | ]  }t        |t        «      –— Œ y ­wrE   )r¹   r   )Ú.0rÂ   s     r   ú	<genexpr>z*InterfaceClass.__init__.<locals>.<genexpr>Ú  s   è ø€ ÒF¸”:˜d¤N×3ÑFùs   ‚zExpected base interfacesrF   r   r(   r)   rD   ú{}.{})Úallr‹   r:   r¹   rÕ   r   r   rÓ   re   r6   rz   r,   Ú	Attributer$   ré   r   ÚitemsrC   r	   Ú_InterfaceClass__compute_attrsÚ_InterfaceClass__attrsrÞ   Ú__identifier__)
r+   r~   rž   rË   r)   rF   ÚdÚtagged_datar   Úvals
             r   r,   zInterfaceClass.__init__Õ  sa  € ô
 ÑFÀÔFÔFÜÐ6Ó7Ð7àˆ=ØˆEàÐØŸ™ <Ó0ˆJÜ˜*¤cÔ*Ø˜,Ñ'ðô "%§¡¨qÓ!1×!;Ñ!;¸JÑ!G�Jô 	×Ñ˜t T¨:Ô6ð
 �I‰I�iÓ ˆØˆ=Ü˜a¤Ô+Ø�?Ø�GØ˜)Ð$àˆ?ØˆGä×Ñ˜˜t WÔ-à—i‘i¤¨TÓ2ˆØÐ"Ø'×-Ñ-Ó/ò .‘��SØ×#Ñ# C¨Õ-ð.ô 	×Ñ˜t UÔ+Ø×+Ñ+¨EÓ2ˆŒà%Ÿn™n¨Z¸Ó>ˆÕøô9 '¬Ð1ò Ùðús   Á
"E ÅE ÅE c           	      óˆ   ‡ — ˆ fd„}|j                  «       D ��ci c]  \  }}|dvr|t        ur
| |||«      “Œ c}}S c c}}w )Nc                 ó¸   •— t        |t        «      r‰|_        |j                  s| |_        |S t        |t        «      rt        |‰| ¬«      }|S t        d| z   «      ‚)N)r~   zConcrete attribute, )r¹   rö   r]   r(   r   ÚfromFunctionÚInvalidInterface)ÚanameÚavalr+   s     €r   Úupdate_valuez4InterfaceClass.__compute_attrs.<locals>.update_value  s]   ø€ Ü˜$¤	Ô*Ø!%�”Ø—}’}Ø$)�D”Mð
 ˆKô	 ˜D¤,Ô/Ü# D¨$°UÔ;�ð ˆKô 'Ð'=ÀÑ'EÓFÐFr   )Ú
__locals__rG   Ú__annotations__)r÷   r   )r+   rË   r  r  r  s   `    r   Ú__compute_attrszInterfaceClass.__compute_attrs  sX   ø€ ô		ð  %Ÿ{™{›}÷
á��tØð ñ ð Ô1Ñ1ð ‘<  tÓ,Ñ,ó
ð 	
ùó 
s   š >c              #   ó   K  — | –— y­w)r¿   Nr>   r/   s    r   rÀ   zInterfaceClass.interfaces$  s   è ø€ ð ‹
ùs   ‚c                 ó   — | j                   S rE   )r�   r/   s    r   ÚgetBaseszInterfaceClass.getBases)  s   € Ø�~‰~Ðr   c                 ó2   — | |k(  xs |j                  | «      S )zSame interface or extends?)rÅ   )r+   rg   s     r   ÚisEqualOrExtendedByz"InterfaceClass.isEqualOrExtendedBy,  s   € à�u‰}Ò3 §¡¨dÓ 3Ð3r   c                 ó  — |s| j                   j                  «       S | j                   j                  «       }| j                  D ]5  }|j	                  t
        j                  |j                  |«      «      «       Œ7 |j                  «       S )z4Return the attribute names defined by the interface.)rù   r?   Úcopyr�   rê   ÚdictÚfromkeysÚnames©r+   rõ   ÚrrÂ   s       r   r  zInterfaceClass.names0  sg   € áØ—<‘<×$Ñ$Ó&Ð&à�L‰L×ÑÓˆà—N‘Nò 	5ˆDØ�H‰H”T—]‘] 4§:¡:¨c£?Ó3Õ4ð	5ð �v‰v‹xˆr   c                 ó8   — t        | j                  d¬«      «      S )NT)rõ   )Úiterr  r/   s    r   Ú__iter__zInterfaceClass.__iter__<  s   € Ü�D—J‘J 4�JÓ(Ó)Ð)r   c                 ó  — |s| j                   j                  «       S i }| j                  ddd…   D ]+  }|j                  t	        |j                  |«      «      «       Œ- |j                  | j                   «       |j                  «       S )z=Return attribute names and descriptions defined by interface.Nrd   )rù   r÷   r�   rê   r  ÚnamesAndDescriptionsr  s       r   r  z#InterfaceClass.namesAndDescriptions?  ss   € áØ—<‘<×%Ñ%Ó'Ð'àˆØ—N‘N¡4 R 4Ñ(ò 	;ˆDØ�H‰H”T˜$×3Ñ3°CÓ8Ó9Õ:ð	;ð 	
�‰�—‘Ôà�w‰w‹yÐr   c                 óB   — | j                  |«      }|�|S t        |«      ‚)z4Return the attribute description for the given name.)r:   r6   ©r+   r~   r  s      r   ÚgetDescriptionForz InterfaceClass.getDescriptionForL  s#   € à�H‰H�T‹NˆØˆ=ØˆHä�t‹nÐr   c                 ó(   — | j                  |«      d uS rE   ©r:   ©r+   r~   s     r   Ú__contains__zInterfaceClass.__contains__V  s   € Ø�x‰x˜‹~ TÐ)Ð)r   c                 ó8   — | j                   j                  |«      S rE   )rù   r:   r  s     r   rÊ   zInterfaceClass.directY  s   € Ø�|‰|×Ñ Ó%Ð%r   c                 ó&   — | j                  ||«      S rE   r  )r+   r~   r;   s      r   ÚqueryDescriptionForz"InterfaceClass.queryDescriptionFor\  s   € Ø�x‰x˜˜gÓ&Ð&r   c                 óÖ   — | j                   D ]"  }|j                  dd«      D ]  }	  ||«       Œ Œ$ |rt        |«      ‚y# t        $ r}|�|j                  |«       n‚ Y d}~ŒAd}~ww xY w)z&validate object to defined invariants.r   r>   N)rQ   rH   r   r   )r+   rŒ   ÚerrorsrÍ   r   Úerrors         r   ÚvalidateInvariantsz!InterfaceClass.validateInvariants_  s   € ð —\‘\ò 	ˆEØ"×9Ñ9¸,ÈÓKò �	ðÙ˜c•Nñð	ñ Ü˜&“/Ð!ð øô ò ØÐ)ØŸ™ eÕ,àô -ûðús   ¦A Á 	A(Á	A#Á#A(c                 ól   — | j                   D ]$  }|j                  |t        «      }|t        usŒ"|c S  |S )z¬
        Queries for the value associated with *tag*, returning it from the nearest
        interface in the ``__iro__``.

        If not found, returns *default*.
        )rQ   rH   rŠ   )r+   r7   r;   rÍ   r    s        r   r<   zInterfaceClass.queryTaggedValueo  s=   € ð —\‘\ò 	ˆEØ×0Ñ0°´gÓ>ˆEØœGÒ#Ø’ð	ð ˆr   c                 óZ   — | j                  |t        ¬«      }|t        u rt        |«      ‚|S )r5   )r;   )r<   rŠ   r6   rB   s      r   r8   zInterfaceClass.getTaggedValue|  s.   € à×%Ñ% c´7Ð%Ó;ˆØ”GÑÜ˜3“-ÐØˆr   c                 óz   — t        «       }| j                  D ]!  }|j                  |j                  «       «       Œ# |S )z Returns a list of all tags. )ÚsetrQ   rê   rJ   )r+   r?   rÂ   s      r   r@   z!InterfaceClass.getTaggedValueTagsƒ  s6   € ä‹uˆØ—L‘Lò 	9ˆDØ�K‰K˜×5Ñ5Ó7Õ8ð	9àˆr   c                 ó®   — 	 | j                   S # t        $ r= t        | «      }dj                  | j                  j
                  |«      }|| _         |cY S w xY w)Nz<{} {}>)Ú_v_reprre   rÕ   rÞ   Ú	__class__r(   r  s      r   rß   zInterfaceClass.__repr__Š  sQ   € ð	Ø—<‘<ÐøÜò 	Ü�t“9ˆDØ× Ñ  §¡×!8Ñ!8¸$Ó?ˆAØˆDŒLØŠHð		ús   ‚ ŽAAÁAc                 ó^   — | j                   }| j                  }|rdj                  ||«      }|S )Nrô   )r(   r{   rÞ   )r+   r~   Úms      r   Ú__str__zInterfaceClass.__str__“  s.   € Ø�}‰}ˆØ×ÑˆÙØ—>‘> ! TÓ*ˆDØˆr   c                 óv   — 	  || «      S # t         $ r% t        j                  «       d   j                  �‚ Y y w xY w)Né   )r‹   r   Úexc_infoÚtb_nextr‚   s     r   r„   zInterfaceClass._call_conformš  sH   € ð	Ù˜4“=Ð øÜò 	ô �|‰|‹~˜aÑ ×(Ñ(Ð4ð ð 5ð ð	ús   ‚
 Š+8·8c                 ó   — | j                   S rE   r.   r/   s    r   Ú
__reduce__zInterfaceClass.__reduce__­  s   € Ø�}‰}Ðr   )Nr>   NNN)r>   NNN)FrE   )r(   rF   rG   r)   r×   r,   rø   rÀ   r
  r  r  r  r  r  Ú__getitem__r  rÊ   r"  r&  r<   r8   r@   rß   r0  r„   r6  r>   r   r   r   r   ª  sŠ   „ ñð ?CØó0ð< <@Ø ó1?òf
ò8ò
ò4ó
ò*óòð $€Kò*ò&ó'ó"ó òòòòòó&r   Ú	Interfacezzope.interface)rF   c                  ó   — t         fS rE   )r8  r>   r   r   r®   r®   ²  s   € ¤I <€ r   c                   ó   — e Zd ZdZy)rì   z_
    Marker class for interfaces with custom methods that override InterfaceClass methods.
    N)r(   rF   rG   r)   r>   r   r   rì   rì   ¸  s   „ òr   rì   c                   ó&   — e Zd ZdZdZd„ Zd„ Zd„ Zy)rö   zAttribute descriptions
    Nc                  ó   — y)z/Return extra data to put at the end of __str__.rD   r>   r/   s    r   Ú_get_str_infozAttribute._get_str_infoÉ  s   € àr   c                 óÌ   — d}| j                   �3| j                   j                  dz   | j                   j                  z   dz   }|| j                  xs dz   | j                  «       z   S )NrD   ú.z	<unknown>)r]   rF   r(   r=  )r+   Úofs     r   r0  zAttribute.__str__Í  s[   € ØˆØ�>‰>Ð%Ø—‘×*Ñ*¨SÑ0°4·>±>×3JÑ3JÑJÈSÑPˆBà�T—]‘]Ò1 kÑ2°T×5GÑ5GÓ5IÑIÐIr   c                 óˆ   — dj                  t        | «      j                  t        | «      j                  t	        | «      | «      S )Nz<{}.{} object at 0x{:x} {}>)rÞ   rÖ   rF   r(   Úidr/   s    r   rß   zAttribute.__repr__Ô  s9   € Ø,×3Ñ3Ü�‹J×!Ñ!Ü�‹J×ÑÜˆt‹HØó	
ð 	
r   )r(   rF   rG   r)   r]   r=  r0  rß   r>   r   r   rö   rö   ¾  s   „ ñð €IòòJó
r   rö   c                   ó`   — e Zd ZdZdxZZdxZxZZd„ Z	d„ Z
d„ Z ee	e
e«      Zd„ Zd„ Zd	„ ZeZy)
ÚMethodzŽMethod interfaces

    The idea here is that you have objects that describe methods.
    This provides an opportunity for rich meta-data.
    r>   Nc                 ó6   — | j                   €i S | j                   S rE   ©Ú	_optionalr/   s    r   Ú_get_optionalzMethod._get_optionalë  s   € Ø�>‰>Ð!ØˆIØ�~‰~Ðr   c                 ó   — || _         y rE   rF  )r+   Úopts     r   Ú_set_optionalzMethod._set_optionalï  s	   € Øˆ�r   c                 ó   — d | _         y rE   rF  r/   s    r   Ú_del_optionalzMethod._del_optionalñ  s	   € Øˆ�r   c                 óB   — t        | j                  | j                  «      ‚rE   )ÚBrokenImplementationr]   r(   )r+   ÚargsÚkws      r   r`   zMethod.__call__õ  s   € Ü" 4§>¡>°4·=±=ÓAÐAr   c                 óv   — | j                   | j                  | j                  | j                  | j                  dœS )N©Ú
positionalÚrequiredÚoptionalÚvarargsÚkwargsrS  r/   s    r   ÚgetSignatureInfozMethod.getSignatureInfoø  s/   € Ø"Ÿo™oØ ŸM™MØ ŸM™MØŸ<™<ØŸ+™+ñ	ð 	r   c           	      ó   — g }| j                   D ]V  }|j                  |«       || j                  j                  «       v sŒ1|dxx   dt	        | j                  |   «      z   z  cc<   ŒX | j
                  r|j                  d| j
                  z   «       | j                  r|j                  d| j                  z   «       ddj                  |«      z  S )Nrd   ú=Ú*z**z(%s)z, )rT  r   rV  r?   ÚreprrW  rX  Újoin)r+   ÚsigÚvs      r   ÚgetSignatureStringzMethod.getSignatureString   s¨   € ØˆØ—‘ò 	8ˆAØ�J‰J�qŒMØ�D—M‘M×&Ñ&Ó(Ò(Ø�B“˜3¤ d§m¡m°AÑ&6Ó!7Ñ7Ñ7”ð	8ð �<Š<Ø�J‰J�s˜TŸ\™\Ñ)Ô*Ø�;Š;Ø�J‰J�t˜dŸk™kÑ)Ô*à˜Ÿ	™	 #›Ñ&Ð&r   )r(   rF   rG   r)   rT  rU  rG  rW  rX  rH  rK  rM  r™   rV  r`   rY  ra  r=  r>   r   r   rD  rD  Ý  sV   „ ñð Ð€J�Ø#'Ð'€IÐ'�˜&òòòá˜ }°mÓD€HòBòò'ð '�Mr   rD  c           	      óÀ  — |xs | j                   }t        || j                  «      }t        | dd «      xs d}| j                  }|j
                  |z
  }|j                  |d  }i }	t        |«      }
|
st        | dd«      }
||
z
  }|dk  r|| d  }d}|	j                  t        t        ||d  |«      «      «       |d | |_        |d | |_        |	|_        |}|j                  t        z  r||   |_        |dz   }nd |_        |j                  t"        z  r||   |_        nd |_        ||_        | j(                  j+                  «       D ]  \  }}|j-                  ||«       Œ |S )NÚ__defaults__r>   Ú__defaults_count__r   r   )r(   rD  r)   ÚgetattrÚ__code__Úco_argcountÚco_varnamesÚlenrê   r  ÚziprT  rU  rV  Úco_flagsÚ
CO_VARARGSrW  ÚCO_VARKEYWORDSrX  r]   rÔ   r÷   rC   )râ   r]   Úimlevelr~   ÚmethodÚdefaultsÚcodeÚnar  rJ  Údefaults_countÚnrÚargnor   r    s                  r   r   r     sr  € ØÒ �4—=‘=€DÜ�D˜$Ÿ,™,Ó'€FÜ�t˜^¨TÓ2Ò8°b€HØ�=‰=€Dà	×	Ñ	˜GÑ	#€BØ×Ñ˜W˜XÐ&€EØ
€Cä˜“]€NÙô ! Ð';¸QÓ?ˆà	ˆnÑ	€BØ	ˆA‚vØ˜R˜C˜D�>ˆØˆð ‡J�JŒt”C˜˜b˜c˜
 HÓ-Ó.Ô/à˜c˜r˜
€FÔØ˜C˜R�j€F„OØ€F„Oà€Eð ‡}�}”zÒ!Ø˜u™ˆŒØ˜‘	‰àˆŒð ‡}�}”~Ò%Ø˜e™ˆ�àˆŒà €FÔà—m‘m×)Ñ)Ó+ò *‰
ˆˆUØ×Ñ˜c 5Õ)ð*ð €Mr   c                 ó^   — t        | t        «      r| j                  }n| }t        ||d|¬«      S )Nr   )rn  r~   )r¹   r   Ú__func__r   )Úmethr]   r~   râ   s       r   Ú
fromMethodry  D  s+   € Ü�$œ
Ô#Ø�}‰}‰àˆÜ˜˜i°¸Ô>Ð>r   c                  óÎ   — ddl m}  ddlm}  | t        |«       ddlm}  | t        |«       ddlm}  | t        |«       ddlm	}  | t        |«       ddlm}  | t        |«       y )Nr   )ÚclassImplements)ÚIElement)Ú
IAttribute)ÚIMethod)ÚISpecification)Ú
IInterface)Úzope.interface.declarationsr{  Úzope.interface.interfacesr|  r$   r}  rö   r~  rD  r  r	   r€  r   )r{  r|  r}  r~  r  r€  s         r   Ú_wirerƒ  M  sF   € Ý;å2Ù”G˜XÔ&å4Ù”I˜zÔ*å1Ù”F˜GÔ$å8Ù”M >Ô2å4Ù”N JÕ/r   )rY   )rU   )r  )rO  )Ú_empty)Nr   Nr˜   )5r)   r   Útypesr   r   r    Úzope.interface._compatr   Úzope.interface.exceptionsr   Úzope.interface.ror   rÏ   Úzope.interfaceÚ__all__rl  rm  r   rá   Úobjectr   rŠ   r   r"   r$   ÚSpecificationBasePyrL   rb   rz   r
   r	   rÖ   rÑ   rí   rä   r   r8  r¶   rª   rR   r²   rì   rö   rD  r   ry  rƒ  r�  rY   rU   r  rO  r„  r>   r   r   ú<module>r�     s¾  ðñó Ý Ý Û å .Ý -Ý 0Ý ò€ð €
Ø€à+€à+Ð á›Ð Ù
‹(€ò!ò!÷:2ñ :2ðz Ð ð ÷+ð +ó ð+÷\Kñ Kð\ ôMÐ0Ð2Eó Mó ðMñ^ ˜B Ó0€ôT1Ð%ô T1ône
˜$ô e
ñP *Øà�M 7Ð+Ø�"Ðó	Ð ò!ô$DÐ(ô DñL ˜;Ð3CÔD€	á/€	Ô Ø 	× Ñ �)Ô Ø×Ñ˜Y˜LÒ(Ð (Ð(Ø€Ô Ø€„ô ~ô ô
�ô 
ô>0'ˆYô 0'óf1óh?ò0õ* 6Ý 2Ý 6Ý :õ
 /Ø × Ñ �f˜fÕ %r   