Ë
    ±Œj¬  ã                   óL   — d dl Z d dlZd dlZdd„Z G d„ de«      Zd„ Zd„ Zd„ Zy)	é    Nc                 ó”   — |€g }t        | |«      j                  |«      j                  «       j                  «       j	                  «       S )a¿  Return an internet-friendly user_agent string.

    The majority of this code has been wilfully stolen from the equivalent
    function in Requests.

    :param name: The intended name of the user-agent, e.g. "python-requests".
    :param version: The version of the user-agent, e.g. "0.0.1".
    :param extras: List of two-item tuples that are added to the user-agent
        string.
    :returns: Formatted user-agent string
    :rtype: str
    )ÚUserAgentBuilderÚinclude_extrasÚinclude_implementationÚinclude_systemÚbuild)ÚnameÚversionÚextrass      úl/var/www/html/Fitness-lenito-AI-main/venv/lib/python3.12/site-packages/requests_toolbelt/utils/user_agent.pyÚ
user_agentr      sF   € ð €~ØˆäØ�'ó
ç
‰.Øó
ç
 Ñ
 ó 
ß
‰.Ó
Ÿ5™5›7ð#ó    c                   ó2   — e Zd ZdZdZd„ Zd„ Zd„ Zd„ Zd„ Z	y)	r   aï  Class to provide a greater level of control than :func:`user_agent`.

    This is used by :func:`user_agent` to build its User-Agent string.

    .. code-block:: python

        user_agent_str = UserAgentBuilder(
                name='requests-toolbelt',
                version='17.4.0',
            ).include_implementation(
            ).include_system(
            ).include_extras([
                ('requests', '2.14.2'),
                ('urllib3', '1.21.2'),
            ]).build()

    ú%s/%sc                 ó>   — t        j                  ||fg«      | _        y)zÕInitialize our builder with the name and version of our user agent.

        :param str name:
            Name of our user-agent.
        :param str version:
            The version string for user-agent.
        N)ÚcollectionsÚdequeÚ_pieces)Úselfr	   r
   s      r   Ú__init__zUserAgentBuilder.__init__4   s   € ô #×(Ñ(¨4°¨/Ð):Ó;ˆ�r   c                 óx   — dj                  | j                  D �cg c]  }| j                  |z  ‘Œ c}«      S c c}w )z„Finalize the User-Agent string.

        :returns:
            Formatted User-Agent string.
        :rtype:
            str
        Ú )Újoinr   Úformat_string)r   Úpieces     r   r   zUserAgentBuilder.build>   s4   € ð �x‰xÀÇÂÓNÁ¸˜×+Ñ+¨eÓ3ÀÑNÓOÐOùÒNs   š7c                 óv   — t        d„ |D «       «      rt        d«      ‚| j                  j                  |«       | S )zŠInclude extra portions of the User-Agent.

        :param list extras:
            list of tuples of extra-name and extra-version
        c              3   ó8   K  — | ]  }t        |«      d k7  –— Œ y­w)é   N)Úlen)Ú.0Úextras     r   Ú	<genexpr>z2UserAgentBuilder.include_extras.<locals>.<genexpr>N   s   è ø€ Ð3©F 5Œs�5‹z˜Q�©Fùs   ‚z/Extras should be a sequence of two item tuples.)ÚanyÚ
ValueErrorr   Úextend)r   r   s     r   r   zUserAgentBuilder.include_extrasH   s5   € ô Ñ3©FÓ3Ô3ÜÐNÓOÐOà�‰×Ñ˜FÔ#Øˆr   c                 óL   — | j                   j                  t        «       «       | S )z¦Append the implementation string to the user-agent string.

        This adds the the information that you're using CPython 2.7.13 to the
        User-Agent.
        )r   ÚappendÚ_implementation_tuple©r   s    r   r   z'UserAgentBuilder.include_implementationT   s   € ð 	�‰×ÑÔ1Ó3Ô4Øˆr   c                 óL   — | j                   j                  t        «       «       | S )z2Append the information about the Operating System.)r   r'   Ú_platform_tupler)   s    r   r   zUserAgentBuilder.include_system]   s   € à�‰×ÑœOÓ-Ô.Øˆr   N)
Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r   r   r   r   © r   r   r   r      s(   „ ñð$ €Mò<òPò
òór   r   c                  ó*  — t        j                  «       } | dk(  rt        j                  «       }| |fS | dk(  ržt        j                  j
                  ›dt        j                  j                  ›dt        j                  j                  ›�}t        j                  j                  dk7  r+dj                  |t        j                  j                  g«      }| |fS | dk(  rt        j                  «       }| |fS | dk(  rt        j                  «       }| |fS d}| |fS )	aÎ  Return the tuple of interpreter name and version.

    Returns a string that provides both the name and the version of the Python
    implementation currently running. For example, on CPython 2.7.5 it will
    return "CPython/2.7.5".

    This function works best on CPython and PyPy: in particular, it probably
    doesn't work for Jython or IronPython. Future investigation should be done
    to work out the correct shape of the code for those platforms.
    ÚCPythonÚPyPyÚ.ÚfinalÚ ÚJythonÚ
IronPythonÚUnknown)
ÚplatformÚpython_implementationÚpython_versionÚsysÚpypy_version_infoÚmajorÚminorÚmicroÚreleaselevelr   )ÚimplementationÚimplementation_versions     r   r(   r(   c   s"  € ô ×3Ñ3Ó5€Nà˜Ò"Ü!)×!8Ñ!8Ó!:Ðð  Ð2Ð3Ð3ð 
˜6Ò	!Ü/2×/DÑ/D×/JÓ/JÜ/2×/DÑ/D×/JÓ/JÜ/2×/DÑ/D×/JÒ/Jð"LÐô × Ñ ×-Ñ-°Ò8Ø%'§W¡WØ&¬×(=Ñ(=×(JÑ(Jð.ó &Ð"ð Ð2Ð3Ð3ð 
˜8Ò	#Ü!)×!8Ñ!8Ó!:Ðð Ð2Ð3Ð3ð 
˜<Ò	'Ü!)×!8Ñ!8Ó!:Ðð Ð2Ð3Ð3ð "+ÐàÐ2Ð3Ð3r   c                  ó   — dt        «       z  S )Nr   )r(   r0   r   r   Ú_implementation_stringrF   „   s   € ØÔ*Ó,Ñ,Ð,r   c                  óˆ   — 	 t        j                  «       } t        j                  «       }| |fS # t        $ r
 d} d}Y | |fS w xY w)Nr9   )r:   ÚsystemÚreleaseÚIOError)Úp_systemÚ	p_releases     r   r+   r+   ˆ   sT   € ðÜ—?‘?Ó$ˆÜ×$Ñ$Ó&ˆ	ð �iÐ Ð øô ò ØˆØ‰	Ø�iÐ Ð ðús   ‚(. ®AÁ A)N)	r   r:   r=   r   Úobjectr   r(   rF   r+   r0   r   r   Ú<module>rN      s2   ðã Û Û 
ó#ô0A�vô AòH4òB-ó!r   