Ë ¿L i ãót—UddlmZddlmZmZmZddlmZee«Z de d<erddl m Z  d d„Z y) é)Ú annotations)Ú TYPE_CHECKINGÚAnyÚFinal)Ú get_loggerrÚ_LOGGER)Ú SessionStatecóð— |j|«}| t|dd«nd}|€|St|«stj d||«|S |||«S#t $r|cYSwxYw#t $r|cYSwxYw)aÞReturn the user-visible value for a widget if it has a ``presenter``. If the widget's metadata defines a ``presenter`` callable, it is used to transform the stored value into its presentation form. Any exception raised while resolving metadata or invoking the presenter is swallowed and ``base_value`` is returned, so presentation never interferes with core behavior. Notes ----- Presentation is applied exclusively for user-facing access paths such as: - `st.session_state[... ]` via `SessionState.__getitem__` - `SessionState.filtered_state` Internal serialization paths (for example `WStates.as_widget_states()` and `SessionState.get_widget_states()`) must operate on base (unpresented) values to ensure stable and lossless serialization. Do not use `apply_presenter` in serialization code paths. Parameters ---------- session_state : SessionState The current session state object that holds widget state and metadata. widget_id : str The identifier of the widget whose value is being presented. base_value : Any The raw value stored for the widget. Returns ------- Any The value that should be shown to the user. NÚ presenterzDWidget '%s' has a non-callable presenter (%r); returning base value.)Ú_get_widget_metadataÚgetattrÚcallablerÚwarningÚ Exception)Ú session_stateÚ widget_idÚ base_valueÚmetar s új/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/streamlit/runtime/state/presentation.pyÚapply_presenterrs›€ðJØ×1Ñ1°)Ó<ˆØ8<Ð8H”G˜D +¨tÔ4Èdˆ Ø Ð ØÐ ô˜ Ô"Ü O‰OØVØØô ð Ð ð Ù˜Z¨Ó7Ð 7øÜò ØÒ ð ûä òàÒðús4‚%A'¨#A'Á AÁ A$Á!A'Á#A$Á$A'Á' A5Á4A5N)rr rÚstrrrÚreturnr)Ú __future__rÚtypingrrrÚstreamlit.loggerrÚ__name__rÚ__annotations__Ú%streamlit.runtime.state.session_stater r©órúr!sMðö#ç,Ñ,å'á˜HÓ%€ˆÓ%áÝBð:Øð:Ø,/ð:Ø=@ð:àô:r