§
    ZŠtj�  ã            	       óÖ  — 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 d dlmZ d dlmZmZmZ  e	d¦  «        Z ee¦  «        Z ee¦  «        Z ee¦  «        Z ee¦  «        Z	 dd
ed	z  deeef         fd„Zdded
ed	z  ded	z  fd„Z	 ddeded
ed	z  defd„Zdded
ed	z  defd„Zdd
ed	z  defd„Zdd
ed	z  deeef         fd„Z dede!fd„Z"dede!fd„Z#dedede!fd„Z$d	S )é    )ÚMapping)Ú	getLogger)Úcompile)ÚMappingProxyType)Ú
create_keyÚ	get_valueÚ	set_value)ÚContext)Ú_BAGGAGE_PROPERTY_FORMATÚ_KEY_FORMATÚ_VALUE_FORMATÚbaggageNÚcontextÚreturnc                 ó<   — t          t          | ¬¦  «        ¦  «        S )z»Returns the name/value pairs in the Baggage

    Args:
        context: The Context to use. If not set, uses current Context

    Returns:
        The name/value pairs in the Baggage
    ©r   )r   Ú_get_baggage_valuer   s    ú\/var/www/html/CA-Chatbot/venv/lib/python3.11/site-packages/opentelemetry/baggage/__init__.pyÚget_allr      s   € õ Õ.°wÐ?Ñ?Ô?Ñ@Ô@Ð@ó    Únamec                 óH   — t          |¬¦  «                             | ¦  «        S )a=  Provides access to the value for a name/value pair in the
    Baggage

    Args:
        name: The name of the value to retrieve
        context: The Context to use. If not set, uses current Context

    Returns:
        The value associated with the given name, or null if the given name is
        not present.
    r   )r   Úget)r   r   s     r   Úget_baggager   '   s#   € õ  gÐ.Ñ.Ô.×2Ò2°4Ñ8Ô8Ð8r   Úvaluec                 ó~   — t          |¬¦  «                             ¦   «         }||| <   t          t          ||¬¦  «        S )zóSets a value in the Baggage

    Args:
        name: The name of the value to set
        value: The value to set
        context: The Context to use. If not set, uses current Context

    Returns:
        A Context with the value updated
    r   )r   Úcopyr	   Ú_BAGGAGE_KEY)r   r   r   r   s       r   Úset_baggager   6   s>   € õ !¨Ð1Ñ1Ô1×6Ò6Ñ8Ô8€GØ€GˆD�MÝ•\ 7°GÐ<Ñ<Ô<Ð<r   c                 ó    — t          |¬¦  «                             ¦   «         }|                     | d¦  «         t          t          ||¬¦  «        S )zàRemoves a value from the Baggage

    Args:
        name: The name of the value to remove
        context: The Context to use. If not set, uses current Context

    Returns:
        A Context with the name/value removed
    r   N)r   r   Úpopr	   r   )r   r   r   s      r   Úremove_baggager"   H   sI   € õ !¨Ð1Ñ1Ô1×6Ò6Ñ8Ô8€GØ‡K‚K��dÑÔÐå•\ 7°GÐ<Ñ<Ô<Ð<r   c                 ó0   — t          t          i | ¬¦  «        S )zºRemoves all values from the Baggage

    Args:
        context: The Context to use. If not set, uses current Context

    Returns:
        A Context with all baggage entries removed
    r   )r	   r   r   s    r   Úclearr$   X   s   € õ •\ 2¨wÐ7Ñ7Ô7Ð7r   c                 ó`   — t          t          | ¬¦  «        }t          |t          ¦  «        r|S i S )Nr   )r   r   Ú
isinstanceÚdict)r   r   s     r   r   r   d   s0   € Ý�¨gÐ6Ñ6Ô6€GÝ�'�4Ñ Ô ð ØˆØ€Ir   c                 óT   — t                                t          | ¦  «        ¦  «        d uS ©N)Ú_KEY_PATTERNÚ	fullmatchÚstr)r   s    r   Ú_is_valid_keyr-   k   s!   € Ý×!Ò!¥# d¡)¤)Ñ,Ô,°DÐ8Ð8r   c                 ó
  — t          | ¦  «                             d¦  «        }t                               |d         ¦  «        d u}t	          |¦  «        dk    r+|dd …         D ] }t
                               |¦  «        €d} nŒ!|S )Nú;r   é   F)r,   ÚsplitÚ_VALUE_PATTERNr+   ÚlenÚ_PROPERT_PATTERN)r   ÚpartsÚis_valid_valueÚpropertys       r   Ú_is_valid_valuer8   o   sˆ   € Ý�‰JŒJ×Ò˜SÑ!Ô!€EÝ#×-Ò-¨e°A¬hÑ7Ô7¸tÐC€NÝ
ˆ5�z„z�A‚~€~Ø˜a˜b˜bœ	ð 	ð 	ˆHÝ×)Ò)¨(Ñ3Ô3Ð;Ø!&�Ø�ð <ð Ðr   Úkeyc                 ó>   — t          | ¦  «        ot          |¦  «        S r)   )r-   r8   )r9   r   s     r   Ú_is_valid_pairr;   z   s   € Ý˜ÑÔÐ8¥/°%Ñ"8Ô"8Ð8r   r)   )%Úcollections.abcr   Úloggingr   Úrer   Útypesr   Úopentelemetry.contextr   r   r	   Úopentelemetry.context.contextr
   Úopentelemetry.util.rer   r   r   r   Ú__name__Ú_loggerr*   r2   r4   r,   Úobjectr   r   r   r"   r$   r'   r   Úboolr-   r8   r;   © r   r   ú<module>rH      sÂ  ðð $Ð #Ð #Ð #Ð #Ð #Ø Ð Ð Ð Ð Ð Ø Ð Ð Ð Ð Ð Ø "Ð "Ð "Ð "Ð "Ð "à BÐ BÐ BÐ BÐ BÐ BÐ BÐ BÐ BÐ BØ 1Ð 1Ð 1Ð 1Ð 1Ð 1ðð ð ð ð ð ð ð ð ð ð ˆz˜)Ñ$Ô$€Ø
ˆ)�HÑ
Ô
€àˆw�{Ñ#Ô#€Ø�˜Ñ'Ô'€Ø�7Ð3Ñ4Ô4Ð ð #ðAð AØ�t‰^ðAàˆS�&ˆ[ÔðAð Að Að Að9ð 9�cð 9 G¨d¡Nð 9¸fÀt¹mð 9ð 9ð 9ð 9ð  9=ð=ð =Ø
ð=Øð=Ø'.°¡~ð=àð=ð =ð =ð =ð$=ð =˜ð = w°¡~ð =Àð =ð =ð =ð =ð 	8ð 	8�7˜T‘>ð 	8¨Wð 	8ð 	8ð 	8ð 	8ðð  ¨$¡ð ¸$¸sÀF¸{Ô:Kð ð ð ð ð9˜ð 9 ð 9ð 9ð 9ð 9ð˜6ð  dð ð ð ð ð9˜ð 9 Cð 9¨Dð 9ð 9ð 9ð 9ð 9ð 9r   