o
    งiณ  ใ                	   @   sD   d Z ddlmZmZ erddlmZ ddededed	d
fddZdS )z8Cyclopts panel utilities for Rich-based terminal output.้    )ฺTYPE_CHECKINGฺAnyฉฺPanelฺErrorฺredฺmessageฺtitleฺstyleฺreturnr   c                 C   sH   ddl m} ddlm} ddlm} ||t| d|||jddd}|S )	u  Create a :class:`~rich.panel.Panel` with a consistent style.

    The resulting panel can be displayed using a :class:`~rich.console.Console`.

    .. code-block:: text

        โญโ Title โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
        โ Message content here.                    โ
        โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ

    Parameters
    ----------
    message: Any
        The body of the panel will be filled with the stringified version of the message.
    title: str
        Title of the panel that appears in the top-left corner.
    style: str
        Rich `style <https://rich.readthedocs.io/en/stable/style.html>`_ for the panel border.

    Returns
    -------
    ~rich.panel.Panel
        Formatted panel object.
    r   )ฺboxr   )ฺTextฺdefaultTฺleft)r	   r
   r   ฺexpandฺtitle_align)ฺrichr   ฺ
rich.panelr   ฺ	rich.textr   ฺstrฺROUNDED)r   r	   r
   r   r   r   ฺpanelฉ r   ๚T/var/www/html/karishye-ai-python/venv/lib/python3.10/site-packages/cyclopts/panel.pyฺCycloptsPanel	   s   ๚r   N)r   r   )ฺ__doc__ฺtypingr   r   r   r   r   r   r   r   r   r   ฺ<module>   s
     