
    ch                        S r SSKJr  SSKJr  SSKJr  SSKJrJ	r	J
r
  SSKJr  SSKJr  SSKJr  SS	KJr  SS
 jr\" S5      SSSS.         SS jj5       rg)zHandle App logos.    )annotations)Literal)url_util)AtomicImageWidthBehaviorimage_to_url)StreamlitAPIException)
ForwardMsg)gather_metrics)get_script_run_ctxc                    SU  S3$ )NzThe z passed to st.logo is invalid - See [documentation](https://docs.streamlit.io/develop/api-reference/media/st.logo) for more information on valid types )
field_names    jC:\Users\julio\OneDrive\Documentos\Trabajo\Ideas Frescas\venv\Lib\site-packages\streamlit/commands/logo.py_invalid_logo_textr      s    
zl . 	.    logomediumN)sizelink
icon_imagec          	     r   [        5       nUc  g[        5       n [        U [        R                  SSSSS9nXeR
                  l        U(       a<  [        R                  " US5      (       a  X%R
                  l        O[        S	U S
35      eU(       a-   [        U[        R                  SSSSS9nXR
                  l        SS jn	U	" U5      UR
                  l        UR                  U5        g! [         a  n[        [        S5      5      UeSnAff = f! [         a  n[        [        S5      5      UeSnAff = f)a  
Renders a logo in the upper-left corner of your app and its sidebar.

If ``st.logo`` is called multiple times within a page, Streamlit will
render the image passed in the last call. For the most consistent results,
call ``st.logo`` early in your page script and choose an image that works
well in both light and dark mode. Avoid empty margins around your image.

If your logo does not work well for both light and dark mode, consider
setting the theme and hiding the settings menu from users with the
`configuration option <https://docs.streamlit.io/develop/api-reference/configuration/config.toml>`_
``client.toolbarMode="minimal"``.

Parameters
----------
image: Anything supported by st.image (except list)
    The image to display in the upper-left corner of your app and its
    sidebar. This can be any of the types supported by |st.image|_ except
    a list. If ``icon_image`` is also provided, then Streamlit will only
    display ``image`` in the sidebar.

    Streamlit scales the image to a max height set by ``size`` and a max
    width to fit within the sidebar.

    .. |st.image| replace:: ``st.image``
    .. _st.image: https://docs.streamlit.io/develop/api-reference/media/st.image

size: "small", "medium", or "large"
    The size of the image displayed in the upper-left corner of the app and its
    sidebar. The possible values are as follows:

    - ``"small"``: 20px max height
    - ``"medium"`` (default): 24px max height
    - ``"large"``: 32px max height

link : str or None
    The external URL to open when a user clicks on the logo. The URL must
    start with "\http://" or "\https://". If ``link`` is ``None`` (default),
    the logo will not include a hyperlink.
icon_image: Anything supported by st.image (except list) or None
    An optional, typically smaller image to replace ``image`` in the
    upper-left corner when the sidebar is closed. This can be any of the
    types supported by ``st.image`` except a list. If ``icon_image`` is
    ``None`` (default), Streamlit will always display ``image`` in the
    upper-left corner, regardless of whether the sidebar is open or closed.
    Otherwise, Streamlit will render ``icon_image`` in the upper-left
    corner of the app when the sidebar is closed.

    Streamlit scales the image to a max height set by ``size`` and a max
    width to fit within the sidebar. If the sidebar is closed, the max
    width is retained from when it was last open.

    For best results, pass a wide or horizontal image to ``image`` and a
    square image to ``icon_image``. Or, pass a square image to ``image``
    and leave ``icon_image=None``.

Examples
--------
A common design practice is to use a wider logo in the sidebar, and a
smaller, icon-styled logo in your app's main body.

>>> import streamlit as st
>>>
>>> st.logo(
...     LOGO_URL_LARGE,
...     link="https://streamlit.io/gallery",
...     icon_image=LOGO_URL_SMALL,
... )

Try switching logos around in the following example:

>>> import streamlit as st
>>>
>>> HORIZONTAL_RED = "images/horizontal_red.png"
>>> ICON_RED = "images/icon_red.png"
>>> HORIZONTAL_BLUE = "images/horizontal_blue.png"
>>> ICON_BLUE = "images/icon_blue.png"
>>>
>>> options = [HORIZONTAL_RED, ICON_RED, HORIZONTAL_BLUE, ICON_BLUE]
>>> sidebar_logo = st.selectbox("Sidebar logo", options, 0)
>>> main_body_logo = st.selectbox("Main body logo", options, 1)
>>>
>>> st.logo(sidebar_logo, icon_image=main_body_logo)
>>> st.sidebar.markdown("Hi!")

.. output::
    https://doc-logo.streamlit.app/
    height: 300px

NFRGBautor   )widthclampchannelsoutput_formatimage_idimage)httphttpszInvalid link: z^ - the link param supports external links only and must start with either http:// or https://.z
icon-imager   c                    [        U [        5      (       a  U R                  5       n/ SQnX;   a  U$ [        SU  S35      e)N)smallr   largez]The size argument to st.logo must be "small", "medium", or "large". 
The argument passed was .)
isinstancestrlowerr	   )r   
image_sizevalid_sizess      r   validate_sizelogo.<locals>.validate_size   sI    dC  J6K(!!#''+fA/
 	
r   )r   r(   returnr(   )r   r
   r   r   AUTOr   r    	Exceptionr	   r   r   is_urlr   r   r   enqueue)
r    r   r   r   ctxfwd_msg	image_urlexicon_image_urlr,   s
             r   r   r   %   s:   F 
C
{lGI $$ 
	 ' ??4!233 $LL'  '9 : 
 	R)#(($%N '5LL#
 &d+GLLKKU  I#$6w$?@bHI0  	R'(:<(HIrQ	Rs/   ,C+ ,D +
D5D

D
D6D11D6)r   r(   r.   r(   )
r    r   r   z#Literal['small', 'medium', 'large']r   z
str | Noner   zAtomicImage | Noner.   None)__doc__
__future__r   typingr   	streamlitr   "streamlit.elements.lib.image_utilsr   r   r   streamlit.errorsr	   streamlit.proto.ForwardMsg_pb2r
   streamlit.runtime.metrics_utilr   7streamlit.runtime.scriptrunner_utils.script_run_contextr   r   r   r   r   r   <module>rB      s     "   W W 2 5 9 V  19%)\\ .\ 	\
 #\ 
\ \r   