Ë
    E·j¢  ã                   óF  — d dl Zd dlmZ ej                  r
d dlZddlmZ  e«       Z	ej                  ddd„«       Zej                  ddedej                  d   fd	„«       Zddedej                  d   fd
„Zdd„Zdd„Zddej                  e   dej                  e   fd„Zy)é    N)Úlocalé   )ÚContextÚsilentÚreturnr   c                  ó   — y ©N© ©r   s    ú[/var/www/html/ai-video-generator/backend/venv/lib/python3.12/site-packages/click/globals.pyÚget_current_contextr      s   € ØKNó    c                  ó   — y r	   r
   r   s    r   r   r      s   € ØFIr   c                 ó¦   — 	 t        j                  dt        j                  d   «      S # t        t
        f$ r}| st        d«      |‚Y d}~yd}~ww xY w)a‚  Returns the current click context.  This can be used as a way to
    access the current context object from anywhere.  This is a more implicit
    alternative to the :func:`pass_context` decorator.  This function is
    primarily useful for helpers such as :func:`echo` which might be
    interested in changing its behavior based on the current context.

    To push the current context, :meth:`Context.scope` can be used.

    .. versionadded:: 5.0

    :param silent: if set to `True` the return value is `None` if no context
                   is available.  The default behavior is to raise a
                   :exc:`RuntimeError`.
    r   éÿÿÿÿz!There is no active click context.N)ÚtÚcastÚ_localÚstackÚAttributeErrorÚ
IndexErrorÚRuntimeError)r   Úes     r   r   r      sT   € ðKÜ�v‰v�i¤§¡¨bÑ!1Ó2Ð2øÜœJÐ'ò KÙÜÐBÓCÈÐJó ð ûð	Kús   ‚&) ©A¸AÁAc                 ób   — t         j                  j                  dg «      j                  | «       y)z*Pushes a new context to the current stack.r   N)r   Ú__dict__Ú
setdefaultÚappend)Úctxs    r   Úpush_contextr   ,   s!   € ä
‡O�O×Ñ˜w¨Ó+×2Ñ2°3Õ7r   c                  ó@   — t         j                  j                  «        y)z%Removes the top level from the stack.N)r   r   Úpopr
   r   r   Úpop_contextr"   1   s   € ä
‡L�L×ÑÕr   Úcolorc                 ó@   — | �| S t        d¬«      }|�|j                  S y)zªInternal helper to get the default value of the color flag.  If a
    value is passed it's returned unchanged, otherwise it's looked up from
    the current context.
    NTr   )r   r#   )r#   r   s     r   Úresolve_color_defaultr%   6   s+   € ð
 ÐØˆä
 TÔ
*€Cà
€Ø�y‰yÐàr   )F)r   zte.Literal[False]r   r   ).)r   r   r   N)r   Nr	   )Útypingr   Ú	threadingr   ÚTYPE_CHECKINGÚtyping_extensionsÚteÚcorer   r   Úoverloadr   ÚboolÚOptionalr   r"   r%   r
   r   r   ú<module>r/      s¥   ðÛ Ý à‡?‚?Û"åá	‹€ð ‡�Û Nó Ø Nð ‡�Ù I Ð I¨q¯z©z¸)Ñ/DÒ Ió Ø Iñ ð °·±¸IÑ1Fó ó08ó
ñ
 §¡¨DÑ!1ð ¸Q¿Z¹ZÈÑ=Mô r   