
    ch3                       % S SK Jr  S SKJr  S SKJrJrJrJr  S SK	J
r
  S SKJrJr  S SKJr  S SKJr  S SKJr  S S	KJr  \(       a  S S
KJr  S SKJr  S SKJr   " S S\5      r\\\S   S4   rS\S'   \\ \S4   r!S\S'    " S S5      r"g)    )annotations)Enum)TYPE_CHECKINGLiteralUnioncast)	TypeAlias)LayoutConfigvalidate_width)StreamlitAPIException)Heading)gather_metrics)
clean_text)DeltaGenerator)Width)SupportsStrc                       \ rS rSrSrSrSrSrg)HeadingProtoTag"   h1h2h3 N)__name__
__module____qualname____firstlineno__	TITLE_TAG
HEADER_TAGSUBHEADER_TAG__static_attributes__r       mC:\Users\julio\OneDrive\Documentos\Trabajo\Ideas Frescas\venv\Lib\site-packages\streamlit/elements/heading.pyr   r   "   s    IJMr"   r   FNr	   AnchorDividerc                  B   \ rS rSr\" S5       SSSSS.           SS jjj5       r\" S5       SSSSS.           SS	 jjj5       r\" S
5       SSSS.         SS jjj5       r\SS j5       r	\
SS j5       r\
   S           SS jj5       rSrg)HeadingMixin,   headerNFstretch)helpdividerwidthc                   [        USS9  [        US9nU R                  R                  S[        R                  [        R                  UUUUS9US9$ )u	  Display text in header formatting.

Parameters
----------
body : str
    The text to display as GitHub-flavored Markdown. Syntax
    information can be found at: https://github.github.com/gfm.

    See the ``body`` parameter of |st.markdown|_ for additional,
    supported Markdown directives.

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

anchor : str or False
    The anchor name of the header that can be accessed with #anchor
    in the URL. If omitted, it generates an anchor using the body.
    If False, the anchor is not shown in the UI.

help : str or None
    A tooltip that gets displayed next to the header. If this is
    ``None`` (default), no tooltip is displayed.

    The tooltip can optionally contain GitHub-flavored Markdown,
    including the Markdown directives described in the ``body``
    parameter of ``st.markdown``.

divider : bool, “blue”, “green”, “orange”, “red”, “violet”, “gray”/"grey", or “rainbow”
    Shows a colored divider below the header. If True, successive
    headers will cycle through divider colors. That is, the first
    header will have a blue line, the second header will have a
    green line, and so on. If a string, the color can be set to one of
    the following: blue, green, orange, red, violet, gray/grey, or
    rainbow.

width : "stretch", "content", or int
    The width of the header element. This can be one of the following:

    - ``"stretch"`` (default): The width of the element matches the
      width of the parent container.
    - ``"content"``: The width of the element matches the width of its
      content, but doesn't exceed the width of the parent container.
    - An integer specifying the width in pixels: The element has a
      fixed width. If the specified width is greater than the width of
      the parent container, the width of the element matches the width
      of the parent container.

Examples
--------
>>> import streamlit as st
>>>
>>> st.header("_Streamlit_ is :blue[cool] :sunglasses:")
>>> st.header("This is a header with a divider", divider="gray")
>>> st.header("These headers have rotating dividers", divider=True)
>>> st.header("One", divider=True)
>>> st.header("Two", divider=True)
>>> st.header("Three", divider=True)
>>> st.header("Four", divider=True)

.. output::
   https://doc-header.streamlit.app/
   height: 600px

Tallow_contentr-   headingtagbodyanchorr+   r,   layout_config)r   r
   dg_enqueuer'   _create_heading_protor   r   selfr5   r6   r+   r,   r-   r8   s          r#   r)   HeadingMixin.header-   se    T 	uD1$51ww..#.. /  (   

 
	
r"   	subheaderc                   [        USS9  [        US9nU R                  R                  S[        R                  [        R                  UUUUS9US9$ )u	  Display text in subheader formatting.

Parameters
----------
body : str
    The text to display as GitHub-flavored Markdown. Syntax
    information can be found at: https://github.github.com/gfm.

    See the ``body`` parameter of |st.markdown|_ for additional,
    supported Markdown directives.

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

anchor : str or False
    The anchor name of the header that can be accessed with #anchor
    in the URL. If omitted, it generates an anchor using the body.
    If False, the anchor is not shown in the UI.

help : str or None
    A tooltip that gets displayed next to the subheader. If this is
    ``None`` (default), no tooltip is displayed.

    The tooltip can optionally contain GitHub-flavored Markdown,
    including the Markdown directives described in the ``body``
    parameter of ``st.markdown``.

divider : bool or “blue”, “green”, “orange”, “red”, “violet”, “gray”/"grey", or “rainbow”
    Shows a colored divider below the header. If True, successive
    headers will cycle through divider colors. That is, the first
    header will have a blue line, the second header will have a
    green line, and so on. If a string, the color can be set to one of
    the following: blue, green, orange, red, violet, gray/grey, or
    rainbow.

width : "stretch", "content", or int
    The width of the subheader element. This can be one of the following:

    - ``"stretch"`` (default): The width of the element matches the
      width of the parent container.
    - ``"content"``: The width of the element matches the width of its
      content, but doesn't exceed the width of the parent container.
    - An integer specifying the width in pixels: The element has a
      fixed width. If the specified width is greater than the width of
      the parent container, the width of the element matches the width
      of the parent container.

Examples
--------
>>> import streamlit as st
>>>
>>> st.subheader("_Streamlit_ is :blue[cool] :sunglasses:")
>>> st.subheader("This is a subheader with a divider", divider="gray")
>>> st.subheader("These subheaders have rotating dividers", divider=True)
>>> st.subheader("One", divider=True)
>>> st.subheader("Two", divider=True)
>>> st.subheader("Three", divider=True)
>>> st.subheader("Four", divider=True)

.. output::
   https://doc-subheader.streamlit.app/
   height: 500px

Tr/   r1   r2   r3   r7   )r   r
   r9   r:   r'   r;   r   r    r<   s          r#   r?   HeadingMixin.subheader   se    T 	uD1$51ww..#11 /  (   

 
	
r"   title)r+   r-   c          
         [        USS9  [        US9nU R                  R                  S[        R                  [        R                  XUS9US9$ )a  Display text in title formatting.

Each document should have a single `st.title()`, although this is not
enforced.

Parameters
----------
body : str
    The text to display as GitHub-flavored Markdown. Syntax
    information can be found at: https://github.github.com/gfm.

    See the ``body`` parameter of |st.markdown|_ for additional,
    supported Markdown directives.

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

anchor : str or False
    The anchor name of the header that can be accessed with #anchor
    in the URL. If omitted, it generates an anchor using the body.
    If False, the anchor is not shown in the UI.

help : str or None
    A tooltip that gets displayed next to the title. If this is
    ``None`` (default), no tooltip is displayed.

    The tooltip can optionally contain GitHub-flavored Markdown,
    including the Markdown directives described in the ``body``
    parameter of ``st.markdown``.

width : "stretch", "content", or int
    The width of the title element. This can be one of the following:

    - ``"stretch"`` (default): The width of the element matches the
      width of the parent container.
    - ``"content"``: The width of the element matches the width of its
      content, but doesn't exceed the width of the parent container.
    - An integer specifying the width in pixels: The element has a
      fixed width. If the specified width is greater than the width of
      the parent container, the width of the element matches the width
      of the parent container.

Examples
--------
>>> import streamlit as st
>>>
>>> st.title("This is a title")
>>> st.title("_Streamlit_ is :blue[cool] :sunglasses:")

.. output::
   https://doc-title.streamlit.app/
   height: 220px

Tr/   r1   r2   )r4   r5   r6   r+   r7   )r   r
   r9   r:   r'   r;   r   r   )r=   r5   r6   r+   r-   r8   s         r#   rB   HeadingMixin.title   s]    ~ 	uD1$51ww..#--Dd /  (   
 	
r"   c                    [        SU 5      $ )zGet our DeltaGenerator.r   )r   )r=   s    r#   r9   HeadingMixin.dg)  s     $d++r"   c                z    U SL a  g/ SQnX;   a  [        SU 5      $ [        SU  SSR                  U5       S35      e)	NTauto)bluegreenorangeredvioletgraygreyrainbowstrz&Divider parameter has invalid value: `z`. Please choose from: z, .)r   r   join)r,   valid_colorss     r#   _handle_divider_color"HeadingMixin._handle_divider_color.  sW    d?	
 "w''#4WI=TUYU^U^_kUlTmmno
 	
r"   c                |   [        5       nU R                  Ul        [        U5      Ul        U(       a  [
        R                  U5      Ul        Ub_  USL a  SUl        OR[        U[        5      (       a  X%l        O6USL a  [        SU S35      e[        S[        U5      R                   S35      eU(       a  X5l        U$ )NFTz$Anchor parameter has invalid value: z-. Supported values: None, any string or Falsez#Anchor parameter has invalid type: )HeadingProtovaluer4   r   r5   r'   rU   r,   hide_anchor
isinstancerQ   r6   r   typer   r+   )r4   r5   r6   r+   r,   protos         r#   r;   "HeadingMixin._create_heading_protoB  s     II	%
(>>wGEM$(!FC((%4+:6( CB B 
 ,9$v,:O:O9P QB B 
 Jr"   r   )N)r5   r   r6   r$   r+   
str | Noner,   r%   r-   r   returnr   )
r5   r   r6   r$   r+   r_   r-   r   r`   r   )r`   r   )r,   r%   r`   rQ   )NNF)r4   r   r5   r   r6   r$   r+   r_   r,   r%   r`   rX   )r   r   r   r   r   r)   r?   rB   propertyr9   staticmethodrU   r;   r!   r   r"   r#   r'   r'   ,   s   H V

    V
V
 V

 V
 V
 V
 
V
 V
p K  V

    V
V
 V

 V
 V
 V
 
V
 !V
p G G

   G
G
 G

 G
 G
 
G
 G
R , , 
 
&     	
  
 r"   r'   )#
__future__r   enumr   typingr   r   r   r   typing_extensionsr	   #streamlit.elements.lib.layout_utilsr
   r   streamlit.errorsr   streamlit.proto.Heading_pb2r   rX   streamlit.runtime.metrics_utilr   streamlit.string_utilr   streamlit.delta_generatorr   r   streamlit.type_utilr   r   rQ   r$   __annotations__boolr%   r'   r   r"   r#   <module>rp      sz    #  6 6 ' L 2 ? 9 ,89/d  #wu~t34	 44d?+ +u ur"   