ó
    pñ:iî  ã                  óL  • S SK Jr  S SKrS SKrSSKJr  SSKJr  SSKJ	r	  SSKJ
r
  \R                  (       a  S SKJr  SS	KJr  SS
KJr  SSKJr  SSKJr   " S S\5      r " S S\\5      r " S S\5      r " S S\5      r " S S\\5      r " S S\5      r " S S\5      rg)é    )ÚannotationsNé   )Ú
BadRequest)ÚHTTPException)Úcached_property)Úredirect)ÚWSGIEnvironment)ÚRequest)ÚResponseé   )Ú
MapAdapter)ÚRulec                  ó   • \ rS rSrSrSrg)ÚRoutingExceptioné   zlSpecial exceptions that require the application to redirect, notifying
about missing urls, etc.

:internal:
© N©Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__Ú__static_attributes__r   ó    Ú^/srv/projetos/modelo_ml_acdoc/venv/lib/python3.13/site-packages/werkzeug/routing/exceptions.pyr   r      s   † ôr   r   c                  óP   ^ • \ rS rSrSrSrSU 4S jjr  S     S	S jjrSrU =r	$ )
ÚRequestRedirecté   zÐRaise if the map requests a redirect. This is for example the case if
`strict_slashes` are activated and an url that requires a trailing slash.

The attribute `new_url` contains the absolute destination url.
i4  c                ó0   >• [         TU ]  U5        Xl        g ©N)ÚsuperÚ__init__Únew_url)Úselfr#   Ú	__class__s     €r   r"   ÚRequestRedirect.__init__%   s   ø€ Ü‰Ñ˜Ô!Ø�r   c                óB   • [        U R                  U R                  5      $ r    )r   r#   Úcode)r$   ÚenvironÚscopes      r   Úget_responseÚRequestRedirect.get_response)   s   € ô
 ˜Ÿ™ d§i¡iÓ0Ð0r   )r#   )r#   ÚstrÚreturnÚNone)NN)r)   z WSGIEnvironment | Request | Noner*   zdict[str, t.Any] | Noner.   r   )
r   r   r   r   r   r(   r"   r+   r   Ú__classcell__©r%   s   @r   r   r      sB   ø† ñð €D÷ð 59Ø)-ð1à1ð1ð 'ð1ð 
÷	1ó 1r   r   c                  ó4   ^ • \ rS rSrSrSrSU 4S jjrSrU =r$ )ÚRequestPathé1   zInternal exception.)Ú	path_infoc                ó.   >• [         TU ]  5         Xl        g r    )r!   r"   r5   )r$   r5   r%   s     €r   r"   ÚRequestPath.__init__6   s   ø€ Ü‰ÑÔØ"�r   )r5   r-   r.   r/   )	r   r   r   r   r   Ú	__slots__r"   r   r0   r1   s   @r   r3   r3   1   s   ø† Ùà€I÷#õ #r   r3   c                  ó0   ^ • \ rS rSrSrSU 4S jjrSrU =r$ )ÚRequestAliasRedirecté;   zAThis rule is an alias and wants to redirect to the canonical URL.c                ó:   >• [         TU ]  5         Xl        X l        g r    )r!   r"   Úmatched_valuesÚendpoint)r$   r=   r>   r%   s      €r   r"   ÚRequestAliasRedirect.__init__>   s   ø€ Ü‰ÑÔØ,ÔØ �r   )r>   r=   )r=   út.Mapping[str, t.Any]r>   út.Anyr.   r/   )r   r   r   r   r   r"   r   r0   r1   s   @r   r:   r:   ;   s   ø† ÙK÷!õ !r   r:   c                  óp   ^ • \ rS rSrSr S         S	U 4S jjjr\S
S j5       rSS jrSS jr	Sr
U =r$ )Ú
BuildErroréD   zWRaised if the build system cannot find a URL for an endpoint with the
values provided.
c                óV   >• [         TU ]  XU5        Xl        X l        X0l        X@l        g r    )r!   r"   r>   ÚvaluesÚmethodÚadapter)r$   r>   rF   rG   rH   r%   s        €r   r"   ÚBuildError.__init__I   s(   ø€ ô 	‰Ñ˜¨6Ô2Ø ŒØŒØŒØ�r   c                ó8   • U R                  U R                  5      $ r    )Úclosest_rulerH   )r$   s    r   Ú	suggestedÚBuildError.suggestedV   s   € à× Ñ  §¡Ó.Ð.r   c                ó–   ^ • SU 4S jjnU(       a9  UR                   R                  (       a  [        UR                   R                  US9$ g )Nc           
     ó¨  >• [        S[        R                  " S [        U R                  5      [        TR                  5      5      R                  5       -  S[        [        TR                  =(       d    S5      R                  U R                  5      5      -  S[        U R                  =(       a    TR                  U R                  ;   5      -  /5      $ )Ng\�Âõ(\ï?g{®Gáz„?r   )ÚsumÚdifflibÚSequenceMatcherr-   r>   ÚratioÚboolÚsetrF   ÚissubsetÚ	argumentsÚmethodsrG   )Úruler$   s    €r   Ú_score_ruleÚ,BuildError.closest_rule.<locals>._score_rule[   sž   ø€ ÜàÜ×-Ò-àÜ˜DŸM™MÓ*Ü˜DŸM™MÓ*ó	÷
 ‘e“gñð œ4¤ D§K¡K×$5°2Ó 6× ?Ñ ?ÀÇÁÓ OÓPÑPØœ4 §¡× L°·±ÀÇÁÑ1LÓMÑMð
óð r   )Úkey)rY   r   r.   Úfloat)ÚmapÚ_rulesÚmax)r$   rH   rZ   s   `  r   rK   ÚBuildError.closest_ruleZ   s3   ø€ ÷	ö �w—{‘{×)×)Ü�w—{‘{×)Ñ)¨{Ñ;Ð;àr   c                ó(  • SU R                   < 3/nU R                  (       a   UR                  SU R                  < S35        U R                  (       a(  UR                  S[	        U R                  5      < 35        UR                  S5        U R
                  (       Gad  U R                   U R
                  R                   :X  Ga  U R                  (       an  U R
                  R                  bW  U R                  U R
                  R                  ;  a3  UR                  S[	        U R
                  R                  5      < S35        U R
                  R                  R                  [        U R
                  R                  =(       d    S5      5      [        U R                  R                  5       5      -
  nU(       a  UR                  S	[	        U5      < S35        O*UR                  S
U R
                  R                   < S35        SR                  U5      $ )Nz!Could not build url for endpoint z (Ú)z with values Ú.z Did you mean to use methods Ú?r   z" Did you forget to specify values z Did you mean z	 instead?Ú )r>   rG   ÚappendrF   ÚsortedrL   rX   rW   ÚunionrU   ÚdefaultsÚkeysÚjoin)r$   ÚmessageÚmissing_valuess      r   Ú__str__ÚBuildError.__str__o   sƒ  € Ø6°t·}±}Ñ6GÐHÐIˆØ�;�;Ø�N‰N˜R §¡™¨aÐ0Ô1Ø�;�;Ø�N‰N˜]¬6°$·+±+Ó+>Ñ*AÐBÔCØ�‰�sÔØ�>�>ˆ>Ø�}‰} §¡× 7Ñ 7Ô7à—K—KØŸ™×.Ñ.Ñ:ØŸ™¨4¯>©>×+AÑ+AÓAà—N‘NðÜ" 4§>¡>×#9Ñ#9Ó:Ñ=¸Qð@ôð "&§¡×!9Ñ!9×!?Ñ!?Ü˜Ÿ™×/Ñ/×5°2Ó6ó"ä˜Ÿ™×(Ñ(Ó*Ó+ñ",�ö "Ø—N‘NØ<¼VÀNÓ=SÑ<VÐVWÐXôøð —‘ °·±×0GÑ0GÑ/JÈ)ÐTÔUØ�w‰w�wÓÐr   )rH   r>   rG   rF   r    )
r>   rA   rF   r@   rG   z
str | NonerH   úMapAdapter | Noner.   r/   )r.   úRule | None)rH   rq   r.   rr   )r.   r-   )r   r   r   r   r   r"   r   rL   rK   ro   r   r0   r1   s   @r   rC   rC   D   sj   ø† ñð &*ðàðð &ðð ð	ð
 #ðð 
÷ð ð ó/ó ð/ô÷* ò  r   rC   c                  ó   • \ rS rSrSrSrg)ÚWebsocketMismatché�   zyThe only matched rule is either a WebSocket and the request is
HTTP, or the rule is HTTP and the request is a WebSocket.
r   Nr   r   r   r   rt   rt   �   s   † ôr   rt   c                  ó"   • \ rS rSrSrSS jrSrg)ÚNoMatché“   ©Úhave_match_forÚwebsocket_mismatchc                ó   • Xl         X l        g r    ry   )r$   rz   r{   s      r   r"   ÚNoMatch.__init__–   s   € Ø,ÔØ"4Õr   N)rz   zset[str]r{   rT   r.   r/   )r   r   r   r   r8   r"   r   r   r   r   rw   rw   “   s   † Ø8€I÷5r   rw   )Ú
__future__r   rQ   ÚtypingÚtÚ
exceptionsr   r   Úutilsr   r   ÚTYPE_CHECKINGÚ_typeshed.wsgir	   Úwrappers.requestr
   Úwrappers.responser   r^   r   Úrulesr   Ú	Exceptionr   r   r3   r:   ÚLookupErrorrC   rt   rw   r   r   r   Ú<module>rŠ      s�   ðÝ "ã Û å #Ý &Ý #Ý à‡?‡?Ý.å*Ý,ÝÝô�yô ô1�mÐ%5ô 1ô*#Ð"ô #ô!Ð+ô !ôF Ð! ;ô F ôR˜
ô ô5ˆiõ 5r   