§
    WŠtj  ã                   óF   — d dl Z ddlmZ  G d„ dee¦  «        Zdddœd„ZdS )	é    Né   )ÚAutocommandErrorc                   ó   — e Zd ZdS )ÚAutomainRequiresModuleErrorN)Ú__name__Ú
__module__Ú__qualname__© ó    úe/var/www/html/CA-Chatbot/venv/lib/python3.11/site-packages/setuptools/_vendor/autocommand/automain.pyr   r      s   € € € € € Ø€Dr   r   r
   )ÚargsÚkwargsc                ót   ‡‡— t          | ¦  «        rt          | ¦  «        ‚| dk    s| du r‰€i Šˆˆfd„}|S d„ S )a­  
    This decorator automatically invokes a function if the module is being run
    as the "__main__" module. Optionally, provide args or kwargs with which to
    call the function. If `module` is "__main__", the function is called, and
    the program is `sys.exit`ed with the return value. You can also pass `True`
    to cause the function to be called unconditionally. If the function is not
    called, it is returned unchanged by the decorator.

    Usage:

    @automain(__name__)  # Pass __name__ to check __name__=="__main__"
    def main():
        ...

    If __name__ is "__main__" here, the main function is called, and then
    sys.exit called with the return value.
    Ú__main__TNc                 ó<   •— t          j         | ‰i ‰¤Ž¦  «         d S ©N)ÚsysÚexit)Úmainr   r   s    €€r   Úautomain_decoratorz$automain.<locals>.automain_decorator6   s(   ø€ ÝŒH�T�T˜4Ð* 6Ð*Ð*Ñ+Ô+Ð+Ð+Ð+r   c                 ó   — | S r   r
   )r   s    r   ú<lambda>zautomain.<locals>.<lambda>;   s   € ˜D€ r   )Úcallabler   )Úmoduler   r   r   s    `` r   Úautomainr      sp   øø€ õ( �ÑÔð 2Ý)¨&Ñ1Ô1Ð1à�ÒÐ˜v¨˜~˜~Øˆ>ØˆFð	,ð 	,ð 	,ð 	,ð 	,ð 	,ð "Ð!à Ð Ð r   )r   Úerrorsr   Ú	TypeErrorr   r   r
   r   r   ú<module>r      sy   ðð$ €
€
€
Ø $Ð $Ð $Ð $Ð $Ð $ð	ð 	ð 	ð 	ð 	Ð"2°Iñ 	ô 	ð 	ð  ¨ð !!ð !!ð !!ð !!ð !!ð !!ð !!r   