
    5iq                    B   U d Z ddlmZ ddlZddlZddlmZmZ ddlm	Z	m
Z
mZmZmZmZ ddlmZ ddlZddlmZ ddlmZ dd	lmZ dd
lmZ ddlmZ ddlmZmZm Z m!Z!m"Z"m#Z#m$Z$ ddl%m&Z&m'Z'm(Z( ddl)m*Z* ddl+m,Z, ddl-m.Z.m/Z/m0Z0m1Z1 ddl2m3Z3 e	rddl4m5Z5 ddl6m7Z7  ee8      Z9de:d<    e&ejv                        Z<ee
ge=f   Z>de:d<   d&dZ?d'dZ@ G d de0      ZA eA       ZBd(dZCd)dZD ed      ZE ed      ZF G d  d!e eEeFf         ZG G d" d#      ZH G d$ d%eeF         ZIy)*z"@st.cache_resource implementation.    )annotationsN)CallableSequence)TYPE_CHECKINGAnyFinal	TypeAliasTypeVaroverload)	ParamSpec)StreamlitAPIException)
get_logger)cache_utils)CacheKeyNotFoundError)	CacheType)Cache
CachedFuncCachedFuncInfo
CacheScope	OnReleaseget_session_id_or_throwmake_cached_func_wrapper)CachedMessageReplayContextCachedResultMsgData)TTLCleanupCache)gather_metrics)CACHE_MEMORY_FAMILY	CacheStatStatsProvidergroup_cache_stats)time_to_seconds)	timedelta)HashFuncsDictr   _LOGGERr	   ValidateFuncc                .    | du xr |du xs
 | duxr |duS )zTrue if the two validate functions are equal for the purposes of
    determining whether a given function cache needs to be recreated.
    N )abs     v/home/obispo/Crisostomo_bridge/mision_env/lib/python3.12/site-packages/streamlit/runtime/caching/cache_resource_api.py_equal_validate_funcsr,   M   s)     I#!t)I$)H1D=I    c                     y)zNo-op OnRelease function.Nr(   )ignoreds    r+   _no_op_releaser0   V   s    r-   c                  v    e Zd ZdZd	dZed
d       Z	 d	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 ddZddZd	dZ		 d	 	 	 ddZ
y)ResourceCachesz$Manages all ResourceCache instances.c                D    t        j                         | _        i | _        y N)	threadingLock_caches_lock_function_cachesselfs    r+   __init__zResourceCaches.__init__]   s    %NN,QSr-   c                    t         fS r4   )r   r9   s    r+   stats_familieszResourceCaches.stats_familiesb   s    #%%r-   c           	        |t         j                  }t        |      }|dk(  rd}	n
t               }	| j                  5  | j
                  j                  |	      }
|
i x}
| j
                  |	<   |
j                  |      }|?|j                  |k(  r0|j                  |k(  r!t        |j                  |      r|cddd       S t        j                  d|       t        ||||||      }|| j
                  |	   |<   |cddd       S # 1 sw Y   yxY w)a  Return the mem cache for the given key.

        If it doesn't exist, create a new one with the given params.

        Raises
        ------
        StreamlitAPIException
            Raised when ``scope`` is ``"session"`` and there is no thread-local run
            context.
        Nglobalz#Creating new ResourceCache (key=%s))keydisplay_namemax_entriesttl_secondsvalidate
on_release)mathinfr"   r   r7   r8   getrC   rB   r,   rD   r%   debugResourceCache)r:   r@   rA   rB   ttlrD   rE   scoperC   
session_idsession_cachescaches               r+   	get_cachezResourceCaches.get_cachef   s   ( ((K%c*
 HJ02J  	!2266zBN%EGG!6!6z!B"&&s+E!%%4%%4)%..(C	 	 MM?E!)''!%E 6;D!!*-c23	 	 	s   A7D=:DD
c                    | j                   5  | j                  j                  |      }|| j                  |= ddd       &|j                         D ]  }|j	                           yy# 1 sw Y   2xY wz+Clears all caches for the given session ID.N)r7   r8   rH   valuesclear)r:   rM   rN   rO   s       r+   clear_sessionzResourceCaches.clear_session   sz      	6!2266zBN)))*5	6
 %'..0  &	6 	6s   +A))A2c                   | j                   5  | j                  j                         D cg c]  }|j                         D ]  }|  c}}}i | _        ddd       D ]  }|j                           yc c}}w # 1 sw Y   'xY w)zClear all resource caches.N)r7   r8   rS   rT   )r:   cachesrO   s      r+   	clear_allzResourceCaches.clear_all   s      	' #33::<#]]_  F
 %'D!	'  	EKKM		' 	's   A:A4	A:4A::BNc                t   | j                   5  | j                  j                         D cg c]  }|j                         D ]  }|  }}}d d d        g }D ]8  }|j                         }|j                         D ]  }|j	                  |        : |si S t
        t        |      iS c c}}w # 1 sw Y   cxY wr4   )r7   r8   rS   	get_statsextendr   r!   )r:   _family_namesrW   rO   function_cachesstatscache_statsfamily_statss           r+   rZ   zResourceCaches.get_stats   s      	
 #33::<#]]_  O 	 "$$ 	+E//+K + 2 2 4 +\*+	+ I $%6u%=>>!	 	s   B.B(	B.(B..B7returnNone)rb   zSequence[str])r?   )r@   strrA   rd   rB   zint | float | NonerK   float | timedelta | str | NonerD   ValidateFunc | NonerE   r   rL   r   rb   zResourceCache[Any]rM   rd   rb   rc   r4   r\   zSequence[str] | Nonerb   zdict[str, list[CacheStat]])__name__
__module____qualname____doc__r;   propertyr=   rP   rU   rX   rZ   r(   r-   r+   r2   r2   Z   s    .T
 & & %<< < (	<
 ,< &< < < 
<|
  59?1?	#?r-   r2   c                .    t         j                  |        yrR   )_resource_cachesrU   )rM   s    r+   clear_session_cacherp      s    "":.r-   c                     t         S )z>Return the StatsProvider for all @st.cache_resource functions.)ro   r(   r-   r+   !get_resource_cache_stats_providerrr      s    r-   PRc                       e Zd ZdZ	 	 	 	 d	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 d fdZed	d       Zed
d       Zedd       ZddZ	 xZ
S )CachedResourceFuncInfoz?Implements the CachedFuncInfo interface for @st.cache_resource.c
                v    t         
|   |||||	       || _        || _        || _        |xs t
        | _        y )N)
hash_funcsshow_spinner	show_timerL   )superr;   rB   rK   rD   r0   rE   )r:   funcry   rB   rK   rD   rx   rz   rE   rL   	__class__s             r+   r;   zCachedResourceFuncInfo.__init__   sJ     	!% 	 	
 ' $6r-   c                "    t         j                  S r4   )r   RESOURCEr9   s    r+   
cache_typez!CachedResourceFuncInfo.cache_type  s    !!!r-   c                    t         S r4   )!CACHE_RESOURCE_MESSAGE_REPLAY_CTXr9   s    r+   cached_message_replay_ctxz0CachedResourceFuncInfo.cached_message_replay_ctx
  s    00r-   c                `    | j                   j                   d| j                   j                   S )z.A human-readable name for the cached function..)r|   rj   rk   r9   s    r+   rA   z#CachedResourceFuncInfo.display_name  s+     ))&&'q)?)?(@AAr-   c           	         t         j                  || j                  | j                  | j                  | j
                  | j                  | j                        S )N)r@   rA   rB   rK   rD   rE   rL   )ro   rP   rA   rB   rK   rD   rE   rL   )r:   function_keys     r+   get_function_cachez)CachedResourceFuncInfo.get_function_cache  sK    ))**((]]** * 
 	
r-   )NFNr?   )r|   Callable[P, R]ry   
bool | strrB   
int | NonerK   re   rD   rf   rx   HashFuncsDict | Nonerz   boolrE   OnRelease | NonerL   r   rb   rc   )rb   r   )rb   r   )rb   rd   )r   rd   rb   zCache[R])ri   rj   rk   rl   r;   rm   r   r   rA   r   __classcell__r}   s   @r+   rv   rv      s    I ,0'+$77 !7  	7
 ,7 &7 )7 7 %7 7 
70 " " 1 1 B B	
r-   rv   c            
         e Zd ZdZddZedd       Zeddddddddd	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 dd	       Z	 dddddddddd	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 dd
Zddddd	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 ddZ ed      dd       Z	y)CacheResourceAPIzvImplements the public st.cache_resource API: the @st.cache_resource decorator,
    and st.cache_resource.clear().
    c                :    t        || j                        | _        y)zCreate a CacheResourceAPI instance.

        Parameters
        ----------
        decorator_metric_name
            The metric name to record for decorator usage.
        N)r   
_decorator)r:   decorator_metric_names     r+   r;   zCacheResourceAPI.__init__$  s     ))>Pr-   c                     y r4   r(   )r:   r|   s     r+   __call__zCacheResourceAPI.__call__5  s    BEr-   NTFr?   rK   rB   ry   rz   rD   rx   rE   rL   c                    y r4   r(   )	r:   rK   rB   ry   rz   rD   rx   rE   rL   s	            r+   r   zCacheResourceAPI.__call__9  s     8;r-   c               6    | j                  |||||||||		      S )Nr   )r   
r:   r|   rK   rB   ry   rz   rD   rx   rE   rL   s
             r+   r   zCacheResourceAPI.__call__G  s5     #%!!  

 
	
r-   )rz   rx   rE   rL   c                  	 	dvrt        d	 d      |	fdS t        t        |		            S )a*  Decorator to cache functions that return resource objects (e.g. database connections, ML models).

        Cached objects can be global or session-scoped. Global resources are
        shared across all users, sessions, and reruns. Session-scoped resources are
        scoped to the current session and are removed when the session disconnects.
        Global resources must be thread-safe. If thread safety is an issue,
        consider using a session-scoped cache or storing the resource in
        ``st.session_state`` instead.

        You can clear a function's cache with ``func.clear()`` or clear the entire
        cache with ``st.cache_resource.clear()``.

        A function's arguments must be hashable to cache it. Streamlit makes a
        best effort to hash a variety of objects, but the fallback hashing method
        requires that the argument be pickleable, also. If you have an unhashable
        argument (like a database connection) or an argument you want to exclude
        from caching, use an underscore prefix in the argument name. In this case,
        Streamlit will return a cached value when all other arguments match a
        previous function call. Alternatively, you can declare custom hashing
        functions with ``hash_funcs``.

        Objects cached by ``st.cache_resource`` act like singletons and can
        mutate. To cache data and return copies, use ``st.cache_data`` instead.
        To learn more about caching, see `Caching overview
        <https://docs.streamlit.io/develop/concepts/architecture/caching>`_.

        .. warning::
            Async objects are not officially supported in Streamlit. Caching
            async objects or objects that reference async objects may have
            unintended consequences. For example, Streamlit may close event
            loops in its normal operation and make the cached object raise an
            ``Event loop closed`` error.

            To upvote official ``asyncio`` support, see GitHub issue `#8488
            <https://github.com/streamlit/streamlit/issues/8488>`_. To upvote
            support for caching async functions, see GitHub issue `#8308
            <https://github.com/streamlit/streamlit/issues/8308>`_.

        Parameters
        ----------
        func : callable
            The function that creates the cached resource. Streamlit hashes the
            function's source code.

        ttl : float, timedelta, str, or None
            The maximum age of a returned entry from the cache. This can be one
            of the following values:

            - ``None`` if cache entries should never expire (default).
            - A number specifying the time in seconds.
            - A string specifying the time in a format supported by `Pandas's
              Timedelta constructor <https://pandas.pydata.org/docs/reference/api/pandas.Timedelta.html>`_,
              e.g. ``"1d"``, ``"1.5 days"``, or ``"1h23s"``. Note that number strings
              without units are treated by Pandas as nanoseconds.
            - A ``timedelta`` object from `Python's built-in datetime library
              <https://docs.python.org/3/library/datetime.html#timedelta-objects>`_,
              e.g. ``timedelta(days=1)``.

            Changes to this value will trigger a new cache to be created.

        max_entries : int or None
            The maximum number of entries to keep in the cache, or None
            for an unbounded cache. When a new entry is added to a full cache,
            the oldest cached entry will be removed. Defaults to None.

            Changes to this value will trigger a new cache to be created.

        show_spinner : bool or str
            Enable the spinner. Default is True to show a spinner when there is
            a "cache miss" and the cached resource is being created. If string,
            value of show_spinner param will be used for spinner text.

        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.

        validate : callable or None
            An optional validation function for cached resources. ``validate`` is called
            each time the cached value is accessed. It receives the cached value as
            its only parameter and it must return a boolean. If ``validate`` returns
            False, the current cached value is discarded, and the decorated function
            is called to compute a new value. This is useful e.g. to check the
            health of database connections.

        hash_funcs : dict or None
            Mapping of types or fully qualified names to hash functions.
            This is used to override the behavior of the hasher inside Streamlit's
            caching mechanism: when the hasher encounters an object, it will first
            check to see if its type matches a key in this dict and, if so, will use
            the provided function to generate a hash for it. See below for an example
            of how this can be used.

        on_release : callable or None
            A function to call when an entry is removed from the cache.
            The removed item will be provided to the function as an argument.

            This is only useful for caches that remove entries normally.
            Most commonly, this is used session-scoped caches to release
            per-session resources. This can also be used with ``max_entries``
            or ``ttl`` settings.

            TTL expiration only happens when expired resources are accessed.
            Therefore, don't rely on TTL expiration to guarantee timely cleanup.
            Also, expiration can happen on any script run. Ensure that
            ``on_release`` functions are thread-safe and don't rely on session
            state.

            The ``on_release`` function isn't guaranteed to be called when an
            app is shut down.

        scope : "global" or "session"
            The scope for the resource cache. If this is ``"global"`` (default),
            the resource is cached globally. If this is ``"session"``, the
            resource is removed from the cache when the session disconnects.

            Because a session-scoped cache is cleared when a session disconnects,
            an unstable network connection can cause the cache to populate
            multiple times in a single session. If this is a problem, you might
            consider adjusting the ``server.websocketPingInterval``
            configuration option.

        Example
        -------
        **Example 1: Global cache**

        By default, an ``@st.cache_resource``-decorated function uses a global cache.

        >>> import streamlit as st
        >>>
        >>> @st.cache_resource
        ... def get_database_session(url):
        ...     # Create a database session object that points to the URL.
        ...     return session
        >>>
        >>> s1 = get_database_session(SESSION_URL_1)
        >>> # Actually executes the function, since this is the first time it was
        >>> # encountered.
        >>>
        >>> s2 = get_database_session(SESSION_URL_1)
        >>> # Does not execute the function. Instead, returns its previously computed
        >>> # value. This means that now the connection object in s1 is the same as in s2.
        >>>
        >>> s3 = get_database_session(SESSION_URL_2)
        >>> # This is a different URL, so the function executes.

        **Example 2: Session-scoped cache**

        By passing ``scope="session"``, an ``@st.cache_resource``-decorated function
        uses a session-scoped cache. You can also use ``on_release`` to clean up
        resources when they are no longer needed.

        >>> import streamlit as st
        >>>
        >>> @st.cache_resource(scope="session", on_release=lambda sess: sess.close())
        ... def get_database_session(url):
        ...     # Create a database session object that points to the URL.
        ...     return session

        **Example 3: Unhashable arguments**

        By default, all parameters to a cached function must be hashable.
        Any parameter whose name begins with ``_`` will not be hashed. You can use
        this as an "escape hatch" for parameters that are not hashable:

        >>> import streamlit as st
        >>>
        >>> @st.cache_resource
        ... def get_database_session(_sessionmaker, url):
        ...     # Create a database connection object that points to the URL.
        ...     return connection
        >>>
        >>> s1 = get_database_session(create_sessionmaker(), DATA_URL_1)
        >>> # Actually executes the function, since this is the first time it was
        >>> # encountered.
        >>>
        >>> s2 = get_database_session(create_sessionmaker(), DATA_URL_1)
        >>> # Does not execute the function. Instead, returns its previously computed
        >>> # value - even though the _sessionmaker parameter was different
        >>> # in both calls.

        **Example 4: Clearing a cache**

        A cached function's cache can be procedurally cleared:

        >>> import streamlit as st
        >>>
        >>> @st.cache_resource
        ... def get_database_session(_sessionmaker, url):
        ...     # Create a database connection object that points to the URL.
        ...     return connection
        >>>
        >>> get_database_session.clear(_sessionmaker, "https://streamlit.io/")
        >>> # Clear the cached entry for the arguments provided.
        >>>
        >>> get_database_session.clear()
        >>> # Clear all cached entries for this function.

        **Example 5: Custom hashing**

        To override the default hashing behavior, pass a custom hash function.
        You can do that by mapping a type (e.g. ``Person``) to a hash
        function (``str``) like this:

        >>> import streamlit as st
        >>> from pydantic import BaseModel
        >>>
        >>> class Person(BaseModel):
        ...     name: str
        >>>
        >>> @st.cache_resource(hash_funcs={Person: str})
        ... def get_person_name(person: Person):
        ...     return person.name

        Alternatively, you can map the type's fully-qualified name
        (e.g. ``"__main__.Person"``) to the hash function instead:

        >>> import streamlit as st
        >>> from pydantic import BaseModel
        >>>
        >>> class Person(BaseModel):
        ...     name: str
        >>>
        >>> @st.cache_resource(hash_funcs={"__main__.Person": str})
        ... def get_person_name(person: Person):
        ...     return person.name

        )r?   sessionzUnsupported scope option 'z*'. Valid values are 'global' or 'session'.c                >    t        t        | 	            S )N	r|   ry   rz   rB   rK   rD   rx   rE   rL   )r   rv   )	frx   rB   rE   rL   ry   rz   rK   rD   s	    r+   <lambda>z-CacheResourceAPI._decorator.<locals>.<lambda>[  s0    5&!-' +%))
 r-   r   )r   r   rv   r   s
     ````````r+   r   zCacheResourceAPI._decorator`  sq    f --',UG3]^  <   (")#'!%%

 	
r-   clear_resource_cachesc                ,    t         j                          y)z Clear all cache_resource caches.N)ro   rX   r9   s    r+   rT   zCacheResourceAPI.clearw  s     	""$r-   )r   rd   rb   rc   )r|   r   rb   zCachedFunc[P, R])rK   re   rB   r   ry   r   rz   r   rD   rf   rx   r   rE   r   rL   r   rb   z,Callable[[Callable[P, R]], CachedFunc[P, R]]r4   )r|   zCallable[P, R] | NonerK   re   rB   r   ry   r   rz   r   rD   rf   rx   r   rE   r   rL   r   rb   z?CachedFunc[P, R] | Callable[[Callable[P, R]], CachedFunc[P, R]]ra   )
ri   rj   rk   rl   r;   r   r   r   r   rT   r(   r-   r+   r   r     s   Q" E E  /3"&#'(,+/'+$; ,;  	;
 !; ; &; ); %; ; 
6; ; '+
 /3"&#'(,+/'+$
#
 ,	

  
 !
 
 &
 )
 %
 
 
I
@  +/'+$U
#U
 ,	U

  U
 !U
 U
 &U
 )U
 %U
 U
 
IU
n +,% -%r-   r   c                       e Zd ZdZ	 	 	 	 	 	 	 	 	 	 	 	 	 	 d
 fdZedd       Zedd       ZddZ e	d      dd       Z
dddZ	 d	 	 	 dd	Z xZS )rJ   z>Manages cached values for a single st.cache_resource function.c                    t         |           dfd}|| _        || _        t	        ||t
        j                  |      | _        t        j                         | _
        || _        y )Nc                *     | j                          y r4   )value)resultrE   s    r+   wrapped_on_releasez2ResourceCache.__init__.<locals>.wrapped_on_release  s    
 v||$r-   )maxsizerK   timerrE   )r   CachedResult[R]rb   rc   )r{   r;   r@   rA   r   r   TTLCACHE_TIMER
_mem_cacher5   r6   _mem_cache_lockrD   )	r:   r@   rB   rC   rD   rA   rE   r   r}   s	         ` r+   r;   zResourceCache.__init__  s]     		% (AP,,)	B
  )~~/ r-   c                .    | j                   j                  S r4   )r   r   r9   s    r+   rB   zResourceCache.max_entries  s    &&&r-   c                .    | j                   j                  S r4   )r   rK   r9   s    r+   rC   zResourceCache.ttl_seconds  s    """r-   c                   | j                   5  || j                  vr
t               | j                  |   }| j                  2| j                  |j                        s| j                  |= t               |cddd       S # 1 sw Y   yxY w)zRead a value and associated messages from the cache.
        Raise `CacheKeyNotFoundError` if the value doesn't exist.
        N)r   r   r   rD   r   )r:   r@   r   s      r+   read_resultzResourceCache.read_result  sv     !! 	$//)+--__S)F}}(v||1LOOC(+--	 	 	s   A'A>>B_cache_resource_objectc                    t         j                  j                  }t         j                  j                  }| j                  5  t        ||||      | j                  |<   ddd       y# 1 sw Y   yxY w)z3Write a value and associated messages to the cache.N)st_mainidsidebarr   r   r   )r:   r@   r   messagesmain_id
sidebar_ids         r+   write_resultzResourceCache.write_result  sY     ((++ZZ]]
!! 	V#/x*#UDOOC 	V 	V 	Vs   A&&A/c                   | j                   5  |lg }t        | j                        dkD  r4	 | j                  j                          t        | j                        dkD  r4|D ]  }t        j                  d|        n)|| j                  v r| j                  j                  |       d d d        y # t        $ r}|j                  |       Y d }~d }~ww xY w# 1 sw Y   y xY w)Nr   z!Error clearing resource cache: %s)	r   lenr   popitem	Exceptionappendr%   warningsafe_del)r:   r@   errorseerrors        r+   _clearzResourceCache._clear  s    !! 	.{ +-$//*Q.) //1	 $//*Q. $ PEOO$GOP'((-/	. 	. % )a(()	. 	.s;   CB.CAC.	C7CCCCCc           
        | j                   5  t        | j                  j                               }d d d        si S ddlm} |D cg c]   }t        d| j                   ||            " }}t        |iS # 1 sw Y   FxY wc c}w )Nr   )asizeofst_cache_resource)category_name
cache_namebyte_length)	r   listr   rS    streamlit.vendor.pympler.asizeofr   r   rA   r   )r:   r\   cache_entriesr   entryr^   s         r+   rZ   zResourceCache.get_stats  s     !! 	; !7!7!9:M	; I 	= '
  1,,#EN
 
 $U++)	; 	;
s   $A6%B6A?)r@   rd   rB   floatrC   r   rD   rf   rA   rd   rE   r   rb   rc   )rb   r   )r@   rd   rb   r   )r@   rd   r   rt   r   zlist[MsgData]rb   rc   r4   )r@   z
str | Nonerb   rc   rh   )ri   rj   rk   rl   r;   rm   rB   rC   r   r   r   r   rZ   r   r   s   @r+   rJ   rJ   }  s    H!! ! 	!
 &! ! ! 
!: ' ' # #$ ,-V .V.6 59,1,	#,r-   rJ   )r)   rf   r*   rf   rb   r   )r/   r   rb   rc   rg   )rb   r    )Jrl   
__future__r   rF   r5   collections.abcr   r   typingr   r   r   r	   r
   r   typing_extensionsr   	streamlitr   streamlit.errorsr   streamlit.loggerr   streamlit.runtime.cachingr   &streamlit.runtime.caching.cache_errorsr   $streamlit.runtime.caching.cache_typer   %streamlit.runtime.caching.cache_utilsr   r   r   r   r   r   r   /streamlit.runtime.caching.cached_message_replayr   r   r   +streamlit.runtime.caching.ttl_cleanup_cacher   streamlit.runtime.metrics_utilr   streamlit.runtime.statsr   r   r    r!   streamlit.time_utilr"   datetimer#   !streamlit.runtime.caching.hashingr$   ri   r%   __annotations__r   r   r   r&   r,   r0   r2   ro   rp   rr   rs   rt   rv   r   rJ   r(   r-   r+   <module>r      s     ) "   .  (  2 ' 1 H :   
 H 9  0"?H% % %?y?Q?Q$R !"C5$;/i /J$|?] |?@ "# /

 cNCL1
^AqD1 1
h[% [%|
w,E!H w,r-   