ó
    Ð]jÙ&  ã                  ó  • S SK Jr  S SKrS SKrS SK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\5      r " S S\5      r\\R0                  S\4   \\S4   4   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 \ 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( " S) S*\(5      r) " S+ S,\5      r* " S- S.\5      r+ " S/ S0\5      r, " S1 S2\-\5      r. " S3 S4\.5      r/ " S5 S6\.5      r0 " S7 S8\5      r1 " S9 S:\5      r2 " S; S<\25      r3 " S= S>\25      r4 " S? S@\25      r5 " SA SB\25      r6 " SC SD\5      r7 " SE SF\ \-5      r8 " SG SH\5      r9 " SI SJ\\	5      r " SK SL\\	5      r: " SM SN\5      r; " SO SP\<\05      r= " SQ SR\-5      r> " SS ST\5      r? " SU SV\5      r@g)Wé    )ÚannotationsN)ÚMessageDefect)ÚIncompleteReadé   )ÚHTTPConnection)ÚConnectionPool)ÚHTTPResponse)ÚRetryc                  ó   • \ rS rSrSrSrg)Ú	HTTPErroré   z#Base exception used by this module.© N©Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__Ú__static_attributes__r   ó    ÚO/home/mande/repo/quber/.venv/lib/python3.13/site-packages/urllib3/exceptions.pyr   r      s   † Ü-r   r   c                  ó   • \ rS rSrSrSrg)ÚHTTPWarningé   z!Base warning used by this module.r   Nr   r   r   r   r   r      s   † Ü+r   r   .c                  ó:   ^ • \ rS rSrSrSU 4S jjrSS jrSrU =r$ )Ú	PoolErroré   z/Base exception for errors caused within a pool.c                óF   >• Xl         X l        [        TU ]  U SU 35        g ©Nz: )ÚpoolÚ_messageÚsuperÚ__init__)Úselfr    ÚmessageÚ	__class__s      €r   r#   ÚPoolError.__init__    ó%   ø€ ØŒ	ØŒÜ‰Ñ˜D˜6  G 9Ð-Õ.r   c                ó6   • U R                   S U R                  44$ ©N©r&   r!   ©r$   s    r   Ú
__reduce__ÚPoolError.__reduce__%   ó   € à�~‰~  d§m¡mÐ4Ð4Ð4r   )r!   r    )r    r   r%   ÚstrÚreturnÚNone©r1   Ú_TYPE_REDUCE_RESULT©	r   r   r   r   r   r#   r-   r   Ú__classcell__©r&   s   @r   r   r      s   ø† Ù9÷/÷
5ò 5r   r   c                  ó:   ^ • \ rS rSrSrSU 4S jjrSS jrSrU =r$ )ÚRequestErroré*   z8Base exception for PoolErrors that have associated URLs.c                ó0   >• X l         [        TU ]	  X5        g r*   )Úurlr"   r#   )r$   r    r<   r%   r&   s       €r   r#   ÚRequestError.__init__-   s   ø€ ØŒÜ‰Ñ˜Õ'r   c                óL   • U R                   S U R                  U R                  44$ r*   )r&   r<   r!   r,   s    r   r-   ÚRequestError.__reduce__1   s    € à�~‰~  d§h¡h°·±Ð>Ð>Ð>r   )r<   )r    r   r<   ú
str | Noner%   r0   r1   r2   r3   r5   r7   s   @r   r9   r9   *   s   ø† ÙB÷(÷?ò ?r   r9   c                  ó   • \ rS rSrSrSrg)ÚSSLErroré6   z9Raised when SSL certificate fails in an HTTPS connection.r   Nr   r   r   r   rB   rB   6   ó   † ÜCr   rB   c                  ó<   ^ • \ rS rSr% SrS\S'   SU 4S jjrSrU =r$ )Ú
ProxyErroré:   z,Raised when the connection to a proxy fails.Ú	ExceptionÚoriginal_errorc                ó0   >• [         TU ]  X5        X l        g r*   )r"   r#   rI   )r$   r%   Úerrorr&   s      €r   r#   ÚProxyError.__init__@   s   ø€ Ü‰Ñ˜Ô(Ø#Õr   )rI   )r%   r0   rK   rH   r1   r2   )	r   r   r   r   r   Ú__annotations__r#   r   r6   r7   s   @r   rF   rF   :   s   ø‡ Ù6ð Ó÷$õ $r   rF   c                  ó   • \ rS rSrSrSrg)ÚDecodeErroréE   z;Raised when automatic decoding based on Content-Type fails.r   Nr   r   r   r   rO   rO   E   ó   † ÜEr   rO   c                  ó   • \ rS rSrSrSrg)ÚProtocolErroréI   z>Raised when something unexpected happens mid-request/response.r   Nr   r   r   r   rS   rS   I   s   † ÜHr   rS   c                  óN   ^ • \ rS rSrSr S       SU 4S jjjrSS jrSrU =r$ )	ÚMaxRetryErroréT   a  Raised when the maximum number of retries is exceeded.

:param pool: The connection pool
:type pool: :class:`~urllib3.connectionpool.HTTPConnectionPool`
:param str url: The requested Url
:param reason: The underlying error
:type reason: :class:`Exception`

c                óF   >• X0l         SU SU< S3n[        TU ]	  XU5        g )NzMax retries exceeded with url: z (Caused by Ú))Úreasonr"   r#   )r$   r    r<   rZ   r%   r&   s        €r   r#   ÚMaxRetryError.__init___   s-   ø€ ð Œà3°C°5¸ÀVÁJÈaÐPˆä‰Ñ˜ GÕ,r   c                óL   • U R                   S U R                  U R                  44$ r*   )r&   r<   rZ   r,   s    r   r-   ÚMaxRetryError.__reduce__h   s    € à�~‰~  d§h¡h°·±Ð<Ð<Ð<r   )rZ   r*   )r    r   r<   r@   rZ   zException | Noner1   r2   r3   r5   r7   s   @r   rV   rV   T   sC   ø† ñð QUð-Ø"ð-Ø)3ð-Ø=Mð-à	÷-ð -÷=ò =r   rV   c                  óD   ^ • \ rS rSrSr S       SU 4S jjjrSrU =r$ )ÚHostChangedErrorém   z?Raised when an existing pool gets a request for a foreign host.c                ó<   >• SU 3n[         TU ]  XU5        X0l        g )Nz'Tried to open a foreign host with url: )r"   r#   Úretries)r$   r    r<   rb   r%   r&   s        €r   r#   ÚHostChangedError.__init__p   s%   ø€ ð <¸C¸5ÐAˆÜ‰Ñ˜ GÔ,Ø�r   )rb   )é   )r    r   r<   r0   rb   zRetry | intr1   r2   ©r   r   r   r   r   r#   r   r6   r7   s   @r   r_   r_   m   s7   ø† ÙIð FGðØ"ðØ),ðØ7Bðà	÷ö r   r_   c                  ó   • \ rS rSrSrSrg)ÚTimeoutStateErroréx   z1Raised when passing an invalid state to a timeoutr   Nr   r   r   r   rg   rg   x   s   † Ü;r   rg   c                  ó   • \ rS rSrSrSrg)ÚTimeoutErroré|   z³Raised when a socket timeout error occurs.

Catching this error will catch both :exc:`ReadTimeoutErrors
<ReadTimeoutError>` and :exc:`ConnectTimeoutErrors <ConnectTimeoutError>`.
r   Nr   r   r   r   rj   rj   |   s   † ôr   rj   c                  ó   • \ rS rSrSrSrg)ÚReadTimeoutErroré„   zFRaised when a socket timeout occurs while receiving data from a serverr   Nr   r   r   r   rm   rm   „   s   † ÜPr   rm   c                  ó   • \ rS rSrSrSrg)ÚConnectTimeoutErroréŠ   z@Raised when a socket timeout occurs while connecting to a serverr   Nr   r   r   r   rp   rp   Š   s   † ÜJr   rp   c                  óN   ^ • \ rS rSrSrSU 4S jjrSS jr\S	S j5       rSr	U =r
$ )
ÚNewConnectionErroréŽ   zHRaised when we fail to establish a new connection. Usually ECONNREFUSED.c                óF   >• Xl         X l        [        TU ]  U SU 35        g r   )Úconnr!   r"   r#   )r$   rv   r%   r&   s      €r   r#   ÚNewConnectionError.__init__‘   r(   r   c                ó6   • U R                   S U R                  44$ r*   r+   r,   s    r   r-   ÚNewConnectionError.__reduce__–   r/   r   c                óN   • [         R                  " S[        SS9  U R                  $ )NzZThe 'pool' property is deprecated and will be removed in urllib3 v3.0. Use 'conn' instead.é   )Ú
stacklevel)ÚwarningsÚwarnÚFutureWarningrv   r,   s    r   r    ÚNewConnectionError.poolš   s%   € ä�Šð3äØò		
ð �y‰yÐr   )r!   rv   )rv   r   r%   r0   r1   r2   r3   )r1   r   )r   r   r   r   r   r#   r-   Úpropertyr    r   r6   r7   s   @r   rs   rs   Ž   s$   ø† ÙR÷/ô
5ð óó ör   rs   c                  ó:   ^ • \ rS rSrSrSU 4S jjrSS jrSrU =r$ )ÚNameResolutionErroré¦   z'Raised when host name resolution fails.c                óN   >• SU SU S3nXl         X0l        [        TU ]  X$5        g )NzFailed to resolve 'z' (rY   )Ú_hostÚ_reasonr"   r#   )r$   Úhostrv   rZ   r%   r&   s        €r   r#   ÚNameResolutionError.__init__©   s.   ø€ Ø'¨ v¨S°°¸Ð:ˆØŒ
ØŒÜ‰Ñ˜Õ'r   c                óL   • U R                   U R                  S U R                  44$ r*   )r&   r†   r‡   r,   s    r   r-   ÚNameResolutionError.__reduce__¯   s    € à�~‰~ §
¡
¨D°$·,±,Ð?Ð?Ð?r   )r†   r‡   )rˆ   r0   rv   r   rZ   zsocket.gaierrorr3   r5   r7   s   @r   rƒ   rƒ   ¦   s   ø† Ù1÷(÷@ò @r   rƒ   c                  ó   • \ rS rSrSrSrg)ÚEmptyPoolErroré´   zCRaised when a pool runs out of connections and no more are allowed.r   Nr   r   r   r   r�   r�   ´   ó   † ÜMr   r�   c                  ó   • \ rS rSrSrSrg)ÚFullPoolErroré¸   zGRaised when we try to add a connection to a full pool in blocking mode.r   Nr   r   r   r   r‘   r‘   ¸   s   † ÜQr   r‘   c                  ó   • \ rS rSrSrSrg)ÚClosedPoolErroré¼   zCRaised when a request enters a pool after the pool has been closed.r   Nr   r   r   r   r”   r”   ¼   r�   r   r”   c                  ó   • \ rS rSrSrSrg)ÚLocationValueErroréÀ   z<Raised when there is something wrong with a given URL input.r   Nr   r   r   r   r—   r—   À   s   † ÜFr   r—   c                  ó0   ^ • \ rS rSrSrSU 4S jjrSrU =r$ )ÚLocationParseErroréÄ   z=Raised when get_host or similar fails to parse the URL input.c                ó:   >• SU 3n[         TU ]  U5        Xl        g )NzFailed to parse: )r"   r#   Úlocation)r$   r�   r%   r&   s      €r   r#   ÚLocationParseError.__init__Ç   s!   ø€ Ø% h ZÐ0ˆÜ‰Ñ˜Ô!à �r   )r�   )r�   r0   r1   r2   re   r7   s   @r   rš   rš   Ä   s   ø† ÙG÷!õ !r   rš   c                  ó0   ^ • \ rS rSrSrSU 4S jjrSrU =r$ )ÚURLSchemeUnknownéÎ   z2Raised when a URL input has an unsupported scheme.c                ó:   >• SU 3n[         TU ]  U5        Xl        g )NzNot supported URL scheme )r"   r#   Úscheme©r$   r£   r%   r&   s      €r   r#   ÚURLSchemeUnknown.__init__Ñ   s!   ø€ Ø-¨f¨XÐ6ˆÜ‰Ñ˜Ô!à�r   )r£   )r£   r0   re   r7   s   @r   r    r    Î   s   ø† Ù<÷õ r   r    c                  ó    • \ rS rSrSrSrSrSrg)ÚResponseErroréØ   zDUsed as a container for an error reason supplied in a MaxRetryError.ztoo many error responsesz&too many {status_code} error responsesr   N)r   r   r   r   r   ÚGENERIC_ERRORÚSPECIFIC_ERRORr   r   r   r   r§   r§   Ø   s   † ÙNà.€MØ=ƒNr   r§   c                  ó   • \ rS rSrSrSrg)ÚSecurityWarningéß   z0Warned when performing security reducing actionsr   Nr   r   r   r   r¬   r¬   ß   ó   † Ü:r   r¬   c                  ó   • \ rS rSrSrSrg)ÚInsecureRequestWarningéã   z/Warned when making an unverified HTTPS request.r   Nr   r   r   r   r°   r°   ã   s   † Ü9r   r°   c                  ó   • \ rS rSrSrSrg)ÚNotOpenSSLWarningéç   z)Warned when using unsupported SSL libraryr   Nr   r   r   r   r³   r³   ç   s   † Ü3r   r³   c                  ó   • \ rS rSrSrSrg)ÚSystemTimeWarningéë   z0Warned when system time is suspected to be wrongr   Nr   r   r   r   r¶   r¶   ë   r®   r   r¶   c                  ó   • \ rS rSrSrSrg)ÚInsecurePlatformWarningéï   zIWarned when certain TLS/SSL configuration is not available on a platform.r   Nr   r   r   r   r¹   r¹   ï   s   † ÜSr   r¹   c                  ó   • \ rS rSrSrSrg)ÚDependencyWarningéó   zW
Warned when an attempt is made to import a module with missing optional
dependencies.
r   Nr   r   r   r   r¼   r¼   ó   ó   † ôr   r¼   c                  ó   • \ rS rSrSrSrg)ÚResponseNotChunkedéú   z;Response needs to be chunked in order to read it as chunks.r   Nr   r   r   r   rÀ   rÀ   ú   rQ   r   rÀ   c                  ó   • \ rS rSrSrSrg)ÚBodyNotHttplibCompatibleéþ   z{
Body should be :class:`http.client.HTTPResponse` like
(have an fp attribute which returns raw chunks) for read_chunked().
r   Nr   r   r   r   rÃ   rÃ   þ   r¾   r   rÃ   c                  óB   • \ rS rSr% SrS\S'   S\S'   S
S jrSS jrSrg	)r   i  z¾
Response length doesn't match expected Content-Length

Subclass of :class:`http.client.IncompleteRead` to allow int value
for ``partial`` to avoid creating large objects on streamed reads.
ÚintÚpartialÚexpectedc                ó   • Xl         X l        g r*   ©rÇ   rÈ   )r$   rÇ   rÈ   s      r   r#   ÚIncompleteRead.__init__  s   € ØŒØ �r   c                ó8   • SU R                   U R                  4-  $ )Nz/IncompleteRead(%i bytes read, %i more expected)rÊ   r,   s    r   Ú__repr__ÚIncompleteRead.__repr__  s#   € Ø@Ø�L‰LØ�M‰MðD
ñ 
ð 	
r   )rÈ   rÇ   N)rÇ   rÆ   rÈ   rÆ   r1   r2   ©r1   r0   )	r   r   r   r   r   rM   r#   rÍ   r   r   r   r   r   r     s   ‡ ñð ƒLØƒMô!÷
r   r   c                  ó,   • \ rS rSrSrSS jrSS jrSrg)	ÚInvalidChunkLengthi  z+Invalid chunk length in a chunked response.c                óh   • UR                  5       U l        UR                  U l        Xl        X l        g r*   )ÚtellrÇ   Úlength_remainingrÈ   ÚresponseÚlength)r$   rÕ   rÖ   s      r   r#   ÚInvalidChunkLength.__init__  s&   € Ø$ŸM™M›OˆŒØ$,×$=Ñ$=ˆŒØ ŒØ�r   c                ó8   • SU R                   U R                  4-  $ )Nz0InvalidChunkLength(got length %r, %i bytes read))rÖ   rÇ   r,   s    r   rÍ   ÚInvalidChunkLength.__repr__$  s#   € ØAØ�K‰KØ�L‰LðE
ñ 
ð 	
r   )rÈ   rÖ   rÇ   rÕ   N)rÕ   r	   rÖ   Úbytesr1   r2   rÏ   )r   r   r   r   r   r#   rÍ   r   r   r   r   rÑ   rÑ     s   † Ù5ô÷
r   rÑ   c                  ó   • \ rS rSrSrSrg)ÚInvalidHeaderi+  z(The header provided was somehow invalid.r   Nr   r   r   r   rÜ   rÜ   +  s   † Ü2r   rÜ   c                  ó0   ^ • \ rS rSrSrSU 4S jjrSrU =r$ )ÚProxySchemeUnknowni/  z1ProxyManager does not support the supplied schemec                óL   >• US:X  a  S nUc  SnOSU S3n[         TU ]  U5        g )NÚ	localhostz>Proxy URL had no scheme, should start with http:// or https://z!Proxy URL had unsupported scheme z , should use http:// or https://©r"   r#   r¤   s      €r   r#   ÚProxySchemeUnknown.__init__4  s8   ø€ ð �[Ó ØˆFØ‰>ØV‰Gà9¸&¸ÐAaÐbˆGÜ‰Ñ˜Õ!r   r   )r£   r@   r1   r2   re   r7   s   @r   rÞ   rÞ   /  s   ø† Ù;÷	"õ 	"r   rÞ   c                  ó   • \ rS rSrSrSrg)ÚProxySchemeUnsupportedi@  z=Fetching HTTPS resources through HTTPS proxies is unsupportedr   Nr   r   r   r   rä   rä   @  s   † ÜGr   rä   c                  ó<   ^ • \ rS rSrSr      SU 4S jjrSrU =r$ )ÚHeaderParsingErroriD  zNRaised by assert_header_parsing, but we convert it to a log.warning statement.c                óF   >• U=(       d    S SU< 3n[         TU ]  U5        g )NÚUnknownz, unparsed data: rá   )r$   ÚdefectsÚunparsed_datar%   r&   s       €r   r#   ÚHeaderParsingError.__init__G  s*   ø€ ð ×) 	Ð*Ð*;¸MÑ;LÐMˆÜ‰Ñ˜Õ!r   r   )ré   zlist[MessageDefect]rê   zbytes | str | Noner1   r2   re   r7   s   @r   ræ   ræ   D  s(   ø† ÙXð"Ø*ð"Ø;Mð"à	÷"õ "r   ræ   c                  ó   • \ rS rSrSrSrg)ÚUnrewindableBodyErroriN  z9urllib3 encountered an error when trying to rewind a bodyr   Nr   r   r   r   rí   rí   N  rD   r   rí   )AÚ
__future__r   ÚsocketÚtypingr}   Úemail.errorsr   Úhttp.clientr   Úhttplib_IncompleteReadÚTYPE_CHECKINGÚ
connectionr   Úconnectionpoolr   rÕ   r	   Ú
util.retryr
   rH   r   ÚWarningr   ÚtupleÚCallableÚobjectr4   r   r9   rB   rF   rO   rS   ÚConnectionErrorrV   r_   rg   rj   rm   rp   rs   rƒ   r�   r‘   r”   Ú
ValueErrorr—   rš   r    r§   r¬   r°   r³   r¶   r¹   r¼   rÀ   rÃ   rÑ   rÜ   ÚAssertionErrorrÞ   rä   ræ   rí   r   r   r   Ú<module>rÿ      sT  ðÝ "ã Û Û Ý &Ý @à	××Ý*Ý.Ý&Ý!ô
.�	ô .ô,�'ô ,ð ˜FŸO™O¨C°¨KÑ8¸%ÀÈÀÑ:LÐLÑMÐ ô
5�	ô 
5ô	?�9ô 	?ôDˆyô Dô$�ô $ôF�)ô FôI�Iô Ið
  €ô=�Lô =ô2�|ô ô<˜	ô <ô�9ô ôQ�| \ô QôK˜,ô KôÐ,¨iô ô0@Ð,ô @ôN�Yô NôR�Iô RôN�iô NôG˜ Yô Gô!Ð+ô !ôÐ)ô ô>�Iô >ô;�kô ;ô:˜_ô :ô4˜ô 4ô;˜ô ;ôT˜oô Tô˜ô ôF˜¨
ô Fô˜yô ô
�YÐ 6ô 
ô,
˜Ð$:ô 
ô 3�Iô 3ô"˜Ð)9ô "ô"H˜Zô Hô"˜ô "ôD˜Iõ Dr   