+
    8i                    >    R t ^ RIHt ^ RIt^ RIHtHt RR R lltR# )zAzure helpers.)annotationsN)AnyOptionalc               (    V ^8  d   QhRRRRRRRR/# )	   resourcestr	client_idzOptional[str]timeoutfloatreturnzdict[str, Any] )formats   "T/var/www/html/photoedit/myenv/lib/python3.14/site-packages/pymongo/_azure_helpers.py__annotate__r      s,     # ##+#=B##    c                   ^ RI HpHp RpVR,          pVRV  2,          pV'       d   VRV 2,          pRRRR	/pV! WVR
7      p V! WrR7      ;_uu_ 4       pVP                  p	VP	                  4       P                  R4      p
RRR4       X	^8w  d   Rp\        T4      h \        P                  ! X
4      pR F1  pTP                  T4      '       d   K  RpYT
3,          p\        T4      h	  T#   + '       g   i     Lt; i  \         d   pRT,          p\        T4      RhRp?ii ; i  \         d    \        R4      Rhi ; i)    )Requesturlopenz5http://169.254.169.254/metadata/identity/oauth2/tokenz?api-version=2018-02-01z
&resource=z&client_id=MetadatatrueAcceptzapplication/json)headers)r
   utf8Nz'Failed to acquire IMDS access token: %sz$Failed to acquire IMDS access token.z*Azure IMDS response must be in JSON formatz0Azure IMDS response must contain %s, but was %s.)access_token
expires_in)urllib.requestr   r   statusreaddecode	Exception
ValueErrorjsonloadsget)r   r	   r
   r   r   urlr   requestresponser   bodyemsgdatakeys   &&&            r   _get_azure_responser.      sB    0
AC$$CZz""CYK((68-?@Gc+G(W..(__F==?))&1D / }4oQzz$ .xx}}DCd#CS/!	 . K+ /.  (7!;o4'(  QEFDPQsB   D  ,C-D  D( -C=	8D  =D   D%D  D%(E )N   )__doc__
__future__r   r#   typingr   r   r.   r   r   r   <module>r3      s     "   # #r   