Ë
     <jQ
  ã                   óp   — d Z ddlZddlmZ ddlmZ dedefd„Zdej                  deddfd	„Zd
edefd„Z	y)z-Helper functions for commonly used utilities.é    N)ÚAny)Ú_helpersÚresponseÚreturnc              ƒ   ób   K  — 	 | j                  «       ƒ d{  –—† }|S 7 Œ# t        $ r Y yw xY w­w)aà  
    Parses an async response, attempting to decode JSON.

    Args:
        response: The response object to parse. This can be any type, but
            it is expected to have a `json()` method if it contains JSON.

    Returns:
        The parsed response. If the response contains valid JSON, the
        decoded JSON object (e.g., a dictionary) is returned.
        If the response does not have a `json()` method or if the JSON
        decoding fails, None is returned.
    N)ÚjsonÚ	Exception)r   Újson_responses     úO/opt/lfcs-signon/.venv/lib/python3.12/site-packages/google/auth/aio/_helpers.pyÚ_parse_response_asyncr      s7   è ø€ ðØ&Ÿm™m›o×-ˆØÐð .ùäò ñ ðüs(   ‚/„  —˜  /ž   	,©/«,¬/Úloggerc              ƒ   óh   K  — t        j                  | «      rd}t        j                  | |«       yy­w)zÁ
    Logs an Async HTTP response at the DEBUG level if logging is enabled.

    Args:
        logger: The logging.Logger instance to use.
        response: The HTTP response object to log.
    N)r   Úis_logging_enabledÚ_response_log_base)r   r   r
   s      r   Úresponse_log_asyncr   .   s2   è ø€ ô ×"Ñ" 6Ô*ð ˆÜ×#Ñ# F¨MÕ:ð +ùs   ‚02Ú	connectorc                 óT   — t        | dd «      }||S t        | dd «      }|r|d   d   S y )NÚ_local_addrÚ_local_addr_infosr   é   )Úgetattr)r   Ú
local_addrÚlocal_addr_infoss      r   Ú_get_local_addrr   @   sB   € Ü˜ M°4Ó8€JØÐØÐÜ˜yÐ*=¸tÓDÐÙØ Ñ" 1Ñ%Ð%Øó    )
Ú__doc__ÚloggingÚtypingr   Úgoogle.authr   r   ÚLoggerr   r   © r   r   ú<module>r"      sW   ðñ 4ã Ý å  ð¨#ð °#ó ð.; W§^¡^ð ;¸sð ;Àtó ;ð$˜sð  sô r   