ó
    {ip  ã                  ól   • S r SSKJr  SSKJr  SSKJrJrJr  \(       a  SSK	J
r
  \\\S.r    S
S jrg	)z)Provide utility for the prawcore package.é    )Úannotations)ÚTYPE_CHECKINGé   )Ú	ForbiddenÚInsufficientScopeÚInvalidToken)ÚResponse)i“  Úinsufficient_scopeÚinvalid_tokenc                óÈ   • U R                   R                  S5      nU(       a&  UR                  SS5      R                  SS5      S   nOU R                  n[
        U   " U 5      $ )z…Return an exception instance that maps to the OAuth Error.

:param response: The HTTP response containing a www-authenticate error.

zwww-authenticateÚ"Ú Ú=r   )ÚheadersÚgetÚreplaceÚrsplitÚstatus_codeÚ_auth_error_mapping)ÚresponseÚmessageÚerrors      ÚG/home/james-whalen/.local/lib/python3.13/site-packages/prawcore/util.pyÚauthorization_error_classr      s[   € ð ×Ñ×"Ñ"Ð#5Ó6€GæØ—‘  RÓ(×/Ñ/°°QÓ7¸Ñ:‰à×$Ñ$ˆÜ˜uÒ% hÓ/Ð/ó    N)r   r	   Úreturnz.InvalidToken | (Forbidden | InsufficientScope))Ú__doc__Ú
__future__r   Útypingr   Ú
exceptionsr   r   r   Úrequests.modelsr	   r   r   © r   r   Ú<module>r#      sB   ðÙ /Ý "å  ç BÑ BæÝ(ð 
Ø+Ø!ñÐ ð0Øð0à3õ0r   