
    g3i              	       B    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	Zy
)z8Cyclopts panel utilities for Rich-based terminal output.    )TYPE_CHECKINGAnyPanelmessagetitlestylereturnr   c                 z    ddl m} ddlm} ddlm}  | |t        |       d      |||j                  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   panels          X/mnt/e/genesis-system/.venvs/voice-bridge/lib/python3.12/site-packages/cyclopts/panel.pyCycloptsPanelr   	   s?    2  S\9%KKE L    N)Errorred)__doc__typingr   r   r   r   r   r    r   r   <module>r       s2    > % %3 %s %S %W %r   