L iUddlmZddlZddlZddlmZmZddlZddl m Z m Z m Z ddl mZerddlmZdZded <ej& dd d d d  dd Zy)) annotationsN) TYPE_CHECKINGFinal) LayoutConfigWidthvalidate_width)add_script_run_ctx)Iteratorg?r DELAY_SECSFcontent) show_time_cachewidthc # Kddlmddlmt |dt | t j dtj d  f d }ttjt|jdrP5d dddd t jj vr j#y jyy#1swYMxYw#r]5d dddn #1swYnxYwd t jj vr j#w jwwxYww) a,Display a loading spinner while executing a block of code. Parameters ---------- text : str The text to display next to the spinner. This defaults to ``"In progress..."``. The text can optionally contain 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 show_time : bool Whether to show the elapsed time next to the spinner text. If this is ``False`` (default), no time is displayed. If this is ``True``, elapsed time is displayed with a precision of 0.1 seconds. The time format is not configurable. width : "content", "stretch", or int The width of the spinner element. This can be one of the following: - ``"content"`` (default): The width of the element matches the width of its content, but doesn't exceed the width of the parent container. - ``"stretch"``: The width of the element matches 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. Example ------- >>> import streamlit as st >>> import time >>> >>> with st.spinner("Wait for it...", show_time=True): >>> time.sleep(5) >>> st.success("Done!") >>> st.button("Rerun") .. output :: https://doc-spinner.streamlit.app/ height: 210px r)Spinner) clean_textT) allow_content)rc 5r6} |_|_|_jd|dddy#1swYyxYw)Nspinner) layout_config)textcacher _enqueue) spinner_proto SpinnerProtorrdisplay_messagedisplay_message_lockrmessager rs `/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/streamlit/elements/spinner.py set_messagezspinner..set_messagems\% "$0NM)3D)9M&*0M'.7M+$$!= %    s 9AANF chat_message)returnNone)streamlit.proto.Spinner_pb2rstreamlit.string_utilrrrstempty threadingLockr Timerr startset _active_dg_ancestor_block_types container) rr rrr rrrrrrs ``` @@@@@@rrr%s!vD05- u-MhhjGO$>>+    9??:{CDJJL  % ("' (W%7%7%M%M!NN!!#   ( ( % ("' ( ( (W%7%7%M%M!NN!!#  sQAE"AC>E"#C2&A E"2C;7E">ED ED A EE")zIn progress...) rstrr boolrr1rrr"zIterator[None]) __future__r contextlibr(typingrr streamlitr&#streamlit.elements.lib.layout_utilsrrrstreamlit.runtime.scriptrunnerr collections.abcr r __annotations__contextmanagerrrr=s#' >( E  d  d d d   d  d  d d r<