
    b\j
                        S SK Jr  S SKJrJrJr  S SKJrJr  SSK	J
r
  SSKJr  \(       a  S SKrS S	KJr  \R$                  rS
r " S S\\   5      r\(       d  \" 5       rSS.SS jjrSS.SS jjrSS.SS jjrg)    )annotations)TYPE_CHECKINGAnycast)ClassVaroverride   )MissingDependencyError   )	LazyProxyN)Credentialsz.https://www.googleapis.com/auth/cloud-platformc                  8    \ rS rSr% SrS\S'   \SS j5       rSrg)	GoogleAuthProxy   TzClassVar[bool]should_cachec                ^     SS K nUR                  $ ! [         a  n[        SSS9UeS nAff = f)Nr   vertexgoogle-authextralibrary)google.authImportErrorr
   auth)selfgoogleerrs      X/var/www/website/venv/lib/python3.13/site-packages/anthropic/lib/_extras/_google_auth.py__load__GoogleAuthProxy.__load__   s;    	Y {{  	Y(xOUXX	Ys    
,', N)returnr   )	__name__
__module____qualname____firstlineno__r   __annotations__r   r   __static_attributes__r!       r   r   r      s    #'L.' r)   r   r   r   c                X     SSK Jn  U" 5       $ ! [         a  n[        U SS9UeS nAff = f)Nr   )Requestr   r   )google.auth.transport.requestsr,   r   r
   )r   r,   r   s      r   _requestr.   &   s8    R: 9  R$5-HcQRs    
)$)c                     SSK nUR                  R	                  [
        /S9u  p4[        [        U5      R                  [        U S95        [        SU5      U4$ ! [         a  n[        U SS9UeSnAff = f)u  Load Application Default Credentials with the ``cloud-platform`` scope and
mint an initial access token.

Returns the credentials object and the project they resolve to (``None`` for
plain user ADC). Blocking — async callers wrap with :func:`anthropic._utils.asyncify`.

``extra`` names the pip extra that the install hint in :class:`MissingDependencyError`
points at when ``google-auth`` isn't installed; callers pass the extra for their client.
r   Nr   r   )scopesr*   GoogleCredentials)
r   r   r
   r   defaultCLOUD_PLATFORM_SCOPEr   r   refreshr.   )r   r   r   credentialsprojects        r   load_default_credentialsr7   .   s{    R ";;..7K6L.MKk""8%#89#[17::  R$5-HcQRs   A 
A4$A//A4c               P    [        [        U 5      R                  [        US95        g)u   Refresh ``credentials`` in place via ``google.auth.transport.requests``.

Blocking — async callers wrap with :func:`anthropic._utils.asyncify`.
r*   N)r   r   r4   r.   )r5   r   s     r   refresh_credentialsr9   B   s    
 	k""8%#89r)   )r   strr"   r   )r   r:   r"   z$tuple[GoogleCredentials, str | None])r5   r1   r   r:   r"   None)
__future__r   typingr   r   r   typing_extensionsr   r   _commonr
   _utilsr   r   r   google.auth.credentialsr   r1   r   google_authr3   r   r.   r7   r9   r!   r)   r   <module>rC      st    " + + 0 + H++K
 H 
in 
 !#K &  .6 ;( IQ : :r)   