Ë
    R>{i©$  ã                  ó<  — d dl mZ d dlZd dlZd dlZd dlmZ d dlmZ	 ej                  rddlmZ ddlmZ ddlmZ dd	lmZ  G d
„ de«      Z G d„ de«      Zej.                  ej0                  def   ej.                  edf   f   Z G d„ de«      Z G d„ de«      Z G d„ de«      Z G d„ de«      Z G d„ de«      Z G d„ de«      Z e Z! G d„ de«      Z" G d„ de«      Z# G d„ d e«      Z$ G d!„ d"e«      Z% G d#„ d$e%e«      Z& G d%„ d&e%«      Z' G d'„ d(e'e«      Z( G d)„ d*e(«      Z) G d+„ d,e«      Z* G d-„ d.e«      Z+ G d/„ d0e«      Z, G d1„ d2e-e«      Z. G d3„ d4e.«      Z/ G d5„ d6e.«      Z0 G d7„ d8e«      Z1 G d9„ d:e«      Z2 G d;„ d<e2«      Z3 G d=„ d>e2«      Z4 G d?„ d@e2«      Z5 G dA„ dBe2«      Z6 G dC„ dDe«      Z7 G dE„ dFe e-«      Z8 G dG„ dHe«      Z9 G dI„ dJee	«      Z G dK„ dLee	«      Z: G dM„ dNe«      Z; G dO„ dPe<e0«      Z= G dQ„ dRe-«      Z> G dS„ dTe«      Z? G dU„ dVe«      Z@y)Wé    )ÚannotationsN)ÚMessageDefect)ÚIncompleteReadé   )ÚHTTPConnection)ÚConnectionPool)ÚHTTPResponse)ÚRetryc                  ó   — e Zd ZdZy)Ú	HTTPErrorz#Base exception used by this module.N©Ú__name__Ú
__module__Ú__qualname__Ú__doc__© ó    úP/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/urllib3/exceptions.pyr   r      s   „ Ú-r   r   c                  ó   — e Zd ZdZy)ÚHTTPWarningz!Base warning used by this module.Nr   r   r   r   r   r      s   „ Ú+r   r   .c                  ó,   ‡ — e Zd ZdZdˆ fd„Zdd„Zˆ xZS )Ú	PoolErrorz/Base exception for errors caused within a pool.c                ó<   •— || _         t        ‰| �	  |› d|› �«       y ©Nz: )ÚpoolÚsuperÚ__init__)Úselfr   ÚmessageÚ	__class__s      €r   r   zPoolError.__init__"   ó"   ø€ ØˆŒ	Ü‰Ñ˜D˜6  G 9Ð-Õ.r   c                ó   — | j                   dfS )N)NN©r    ©r   s    r   Ú
__reduce__zPoolError.__reduce__&   s   € à�~‰~˜|Ð+Ð+r   )r   r   r   ÚstrÚreturnÚNone©r'   Ú_TYPE_REDUCE_RESULT©r   r   r   r   r   r%   Ú__classcell__r#   s   @r   r   r      s   ø„ Ù9õ/÷,r   r   c                  ó,   ‡ — e Zd ZdZdˆ fd„Zdd„Zˆ xZS )ÚRequestErrorz8Base exception for PoolErrors that have associated URLs.c                ó4   •— || _         t        ‰| �	  ||«       y ©N)Úurlr   r   )r   r   r1   r   r    s       €r   r   zRequestError.__init__.   s   ø€ ØˆŒÜ‰Ñ˜˜wÕ'r   c                ó8   — | j                   d | j                  d ffS r0   )r    r1   r$   s    r   r%   zRequestError.__reduce__2   s   € à�~‰~  d§h¡h°Ð5Ð5Ð5r   )r   r   r1   r&   r   r&   r'   r(   r)   r+   r#   s   @r   r.   r.   +   s   ø„ ÙBõ(÷6r   r.   c                  ó   — e Zd ZdZy)ÚSSLErrorz9Raised when SSL certificate fails in an HTTPS connection.Nr   r   r   r   r4   r4   7   ó   „ ÚCr   r4   c                  ó0   ‡ — e Zd ZU dZded<   dˆ fd„Zˆ xZS )Ú
ProxyErrorz,Raised when the connection to a proxy fails.Ú	ExceptionÚoriginal_errorc                ó4   •— t         ‰| �  ||«       || _        y r0   )r   r   r9   )r   r   Úerrorr    s      €r   r   zProxyError.__init__A   s   ø€ Ü‰Ñ˜ %Ô(Ø#ˆÕr   )r   r&   r;   r8   r'   r(   )r   r   r   r   Ú__annotations__r   r,   r#   s   @r   r7   r7   ;   s   ø… Ù6ð Ó÷$ñ $r   r7   c                  ó   — e Zd ZdZy)ÚDecodeErrorz;Raised when automatic decoding based on Content-Type fails.Nr   r   r   r   r>   r>   F   ó   „ ÚEr   r>   c                  ó   — e Zd ZdZy)ÚProtocolErrorz>Raised when something unexpected happens mid-request/response.Nr   r   r   r   rA   rA   J   s   „ ÚHr   rA   c                  ó6   ‡ — e Zd ZdZ	 d	 	 	 	 	 	 	 dˆ fd„Zˆ xZS )ÚMaxRetryErrora  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                óH   •— || _         d|› d|›d�}t        ‰| �	  |||«       y )NzMax retries exceeded with url: z (Caused by ú))Úreasonr   r   )r   r   r1   rF   r   r    s        €r   r   zMaxRetryError.__init__`   s1   ø€ ð ˆŒà3°C°5¸ÀVÀJÈaÐPˆä‰Ñ˜˜s GÕ,r   r0   )r   r   r1   r&   rF   zException | Noner'   r(   ©r   r   r   r   r   r,   r#   s   @r   rC   rC   U   s9   ø„ ñð JNð-Ø"ð-Ø),ð-Ø6Fð-à	÷-ñ -r   rC   c                  ó6   ‡ — e Zd ZdZ	 d	 	 	 	 	 	 	 dˆ fd„Zˆ xZS )ÚHostChangedErrorz?Raised when an existing pool gets a request for a foreign host.c                ó@   •— d|› �}t         ‰| �  |||«       || _        y )Nz'Tried to open a foreign host with url: )r   r   Úretries)r   r   r1   rK   r   r    s        €r   r   zHostChangedError.__init__m   s)   ø€ ð <¸C¸5ÐAˆÜ‰Ñ˜˜s GÔ,Øˆ�r   )é   )r   r   r1   r&   rK   zRetry | intr'   r(   rG   r#   s   @r   rI   rI   j   s7   ø„ ÙIð FGðØ"ðØ),ðØ7Bðà	÷ñ r   rI   c                  ó   — e Zd ZdZy)ÚTimeoutStateErrorz1Raised when passing an invalid state to a timeoutNr   r   r   r   rN   rN   u   s   „ Ú;r   rN   c                  ó   — e Zd ZdZy)ÚTimeoutErrorz¿Raised when a socket timeout error occurs.

    Catching this error will catch both :exc:`ReadTimeoutErrors
    <ReadTimeoutError>` and :exc:`ConnectTimeoutErrors <ConnectTimeoutError>`.
    Nr   r   r   r   rP   rP   y   s   „ òr   rP   c                  ó   — e Zd ZdZy)ÚReadTimeoutErrorzFRaised when a socket timeout occurs while receiving data from a serverNr   r   r   r   rR   rR   �   s   „ ÚPr   rR   c                  ó   — e Zd ZdZy)ÚConnectTimeoutErrorz@Raised when a socket timeout occurs while connecting to a serverNr   r   r   r   rT   rT   ‡   s   „ ÚJr   rT   c                  ó6   ‡ — e Zd ZdZdˆ fd„Zedd„«       Zˆ xZS )ÚNewConnectionErrorzHRaised when we fail to establish a new connection. Usually ECONNREFUSED.c                ó<   •— || _         t        ‰| �	  |› d|› �«       y r   )Úconnr   r   )r   rX   r   r    s      €r   r   zNewConnectionError.__init__Ž   r!   r   c                óR   — t        j                  dt        d¬«       | j                  S )Nz\The 'pool' property is deprecated and will be removed in urllib3 v2.1.0. Use 'conn' instead.é   )Ú
stacklevel)ÚwarningsÚwarnÚDeprecationWarningrX   r$   s    r   r   zNewConnectionError.pool’   s%   € ä�‰ð5äØõ		
ð �y‰yÐr   )rX   r   r   r&   r'   r(   )r'   r   )r   r   r   r   r   Úpropertyr   r,   r#   s   @r   rV   rV   ‹   s   ø„ ÙRõ/ð òó ôr   rV   c                  ó$   ‡ — e Zd ZdZdˆ fd„Zˆ xZS )ÚNameResolutionErrorz'Raised when host name resolution fails.c                ó8   •— d|› d|› d�}t         ‰| �  ||«       y )NzFailed to resolve 'z' (rE   ©r   r   )r   ÚhostrX   rF   r   r    s        €r   r   zNameResolutionError.__init__¡   s&   ø€ Ø'¨ v¨S°°¸Ð:ˆÜ‰Ñ˜˜wÕ'r   )rd   r&   rX   r   rF   zsocket.gaierrorrG   r#   s   @r   ra   ra   ž   s   ø„ Ù1÷(ñ (r   ra   c                  ó   — e Zd ZdZy)ÚEmptyPoolErrorzCRaised when a pool runs out of connections and no more are allowed.Nr   r   r   r   rf   rf   ¦   ó   „ ÚMr   rf   c                  ó   — e Zd ZdZy)ÚFullPoolErrorzGRaised when we try to add a connection to a full pool in blocking mode.Nr   r   r   r   ri   ri   ª   s   „ ÚQr   ri   c                  ó   — e Zd ZdZy)ÚClosedPoolErrorzCRaised when a request enters a pool after the pool has been closed.Nr   r   r   r   rk   rk   ®   rg   r   rk   c                  ó   — e Zd ZdZy)ÚLocationValueErrorz<Raised when there is something wrong with a given URL input.Nr   r   r   r   rm   rm   ²   s   „ ÚFr   rm   c                  ó$   ‡ — e Zd ZdZdˆ fd„Zˆ xZS )ÚLocationParseErrorz=Raised when get_host or similar fails to parse the URL input.c                ó<   •— d|› �}t         ‰| �  |«       || _        y )NzFailed to parse: )r   r   Úlocation)r   rq   r   r    s      €r   r   zLocationParseError.__init__¹   s#   ø€ Ø% h ZÐ0ˆÜ‰Ñ˜Ô!à ˆ�r   )rq   r&   r'   r(   rG   r#   s   @r   ro   ro   ¶   s   ø„ ÙG÷!ñ !r   ro   c                  ó$   ‡ — e Zd ZdZdˆ fd„Zˆ xZS )ÚURLSchemeUnknownz2Raised when a URL input has an unsupported scheme.c                ó<   •— d|› �}t         ‰| �  |«       || _        y )NzNot supported URL scheme )r   r   Úscheme©r   ru   r   r    s      €r   r   zURLSchemeUnknown.__init__Ã   s#   ø€ Ø-¨f¨XÐ6ˆÜ‰Ñ˜Ô!àˆ�r   )ru   r&   rG   r#   s   @r   rs   rs   À   s   ø„ Ù<÷ñ r   rs   c                  ó   — e Zd ZdZdZdZy)ÚResponseErrorzDUsed as a container for an error reason supplied in a MaxRetryError.ztoo many error responsesz&too many {status_code} error responsesN)r   r   r   r   ÚGENERIC_ERRORÚSPECIFIC_ERRORr   r   r   rx   rx   Ê   s   „ ÙNà.€MØ=�Nr   rx   c                  ó   — e Zd ZdZy)ÚSecurityWarningz0Warned when performing security reducing actionsNr   r   r   r   r|   r|   Ñ   ó   „ Ú:r   r|   c                  ó   — e Zd ZdZy)ÚInsecureRequestWarningz/Warned when making an unverified HTTPS request.Nr   r   r   r   r   r   Õ   s   „ Ú9r   r   c                  ó   — e Zd ZdZy)ÚNotOpenSSLWarningz)Warned when using unsupported SSL libraryNr   r   r   r   r�   r�   Ù   s   „ Ú3r   r�   c                  ó   — e Zd ZdZy)ÚSystemTimeWarningz0Warned when system time is suspected to be wrongNr   r   r   r   rƒ   rƒ   Ý   r}   r   rƒ   c                  ó   — e Zd ZdZy)ÚInsecurePlatformWarningzIWarned when certain TLS/SSL configuration is not available on a platform.Nr   r   r   r   r…   r…   á   s   „ ÚSr   r…   c                  ó   — e Zd ZdZy)ÚDependencyWarningzc
    Warned when an attempt is made to import a module with missing optional
    dependencies.
    Nr   r   r   r   r‡   r‡   å   ó   „ òr   r‡   c                  ó   — e Zd ZdZy)ÚResponseNotChunkedz;Response needs to be chunked in order to read it as chunks.Nr   r   r   r   rŠ   rŠ   ì   r?   r   rŠ   c                  ó   — e Zd ZdZy)ÚBodyNotHttplibCompatiblez‡
    Body should be :class:`http.client.HTTPResponse` like
    (have an fp attribute which returns raw chunks) for read_chunked().
    Nr   r   r   r   rŒ   rŒ   ð   rˆ   r   rŒ   c                  ó    — e Zd ZdZdd„Zdd„Zy)r   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.
    c                ó    — || _         || _        y r0   ©ÚpartialÚexpected)r   r�   r‘   s      r   r   zIncompleteRead.__init__ÿ   s   € ØˆŒØ ˆ�r   c                ó8   — d| j                   | j                  fz  S )Nz/IncompleteRead(%i bytes read, %i more expected)r�   r$   s    r   Ú__repr__zIncompleteRead.__repr__  s#   € Ø@Ø�L‰LØ�M‰MðD
ñ 
ð 	
r   N)r�   Úintr‘   r”   r'   r(   ©r'   r&   ©r   r   r   r   r   r“   r   r   r   r   r   ÷   s   „ ñó!ô
r   r   c                  ó    — e Zd ZdZdd„Zdd„Zy)ÚInvalidChunkLengthz+Invalid chunk length in a chunked response.c                ól   — |j                  «       | _        |j                  | _        || _        || _        y r0   )Útellr�   Úlength_remainingr‘   ÚresponseÚlength)r   rœ   r�   s      r   r   zInvalidChunkLength.__init__  s*   € Ø$ŸM™M›OˆŒØ$,×$=Ñ$=ˆŒØ ˆŒØˆ�r   c                ó8   — d| j                   | j                  fz  S )Nz0InvalidChunkLength(got length %r, %i bytes read))r�   r�   r$   s    r   r“   zInvalidChunkLength.__repr__  s#   € ØAØ�K‰KØ�L‰LðE
ñ 
ð 	
r   N)rœ   r	   r�   Úbytesr'   r(   r•   r–   r   r   r   r˜   r˜   
  s   „ Ù5óô
r   r˜   c                  ó   — e Zd ZdZy)ÚInvalidHeaderz(The header provided was somehow invalid.Nr   r   r   r   r¡   r¡     s   „ Ú2r   r¡   c                  ó$   ‡ — e Zd ZdZdˆ fd„Zˆ xZS )ÚProxySchemeUnknownz1ProxyManager does not support the supplied schemec                óH   •— |dk(  rd }|€d}nd|› d�}t         ‰| �  |«       y )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://rc   rv   s      €r   r   zProxySchemeUnknown.__init__#  s8   ø€ ð �[Ò ØˆFØˆ>ØV‰Gà9¸&¸ÐAaÐbˆGÜ‰Ñ˜Õ!r   )ru   z
str | Noner'   r(   rG   r#   s   @r   r£   r£     s   ø„ Ù;÷	"ñ 	"r   r£   c                  ó   — e Zd ZdZy)ÚProxySchemeUnsupportedz=Fetching HTTPS resources through HTTPS proxies is unsupportedNr   r   r   r   r§   r§   /  s   „ ÚGr   r§   c                  ó0   ‡ — e Zd ZdZ	 	 	 	 	 	 dˆ fd„Zˆ xZS )ÚHeaderParsingErrorzNRaised by assert_header_parsing, but we convert it to a log.warning statement.c                ó:   •— |xs d› d|›�}t         ‰| �  |«       y )NÚUnknownz, unparsed data: rc   )r   ÚdefectsÚunparsed_datar   r    s       €r   r   zHeaderParsingError.__init__6  s*   ø€ ð Ò) 	Ð*Ð*;¸MÐ;LÐMˆÜ‰Ñ˜Õ!r   )r¬   zlist[MessageDefect]r­   zbytes | str | Noner'   r(   rG   r#   s   @r   r©   r©   3  s(   ø„ ÙXð"Ø*ð"Ø;Mð"à	÷"ñ "r   r©   c                  ó   — e Zd ZdZy)ÚUnrewindableBodyErrorz9urllib3 encountered an error when trying to rewind a bodyNr   r   r   r   r¯   r¯   =  r5   r   r¯   )AÚ
__future__r   ÚsocketÚtypingr\   Úemail.errorsr   Úhttp.clientr   Úhttplib_IncompleteReadÚTYPE_CHECKINGÚ
connectionr   Úconnectionpoolr   rœ   r	   Ú
util.retryr
   r8   r   ÚWarningr   ÚTupleÚCallableÚobjectr*   r   r.   r4   r7   r>   rA   ÚConnectionErrorrC   rI   rN   rP   rR   rT   rV   ra   rf   ri   rk   Ú
ValueErrorrm   ro   rs   rx   r|   r   r�   rƒ   r…   r‡   rŠ   rŒ   r˜   r¡   ÚAssertionErrorr£   r§   r©   r¯   r   r   r   ú<module>rÁ      s]  ðÝ "ã Û Û Ý &Ý @à	×ÒÝ*Ý.Ý&Ý!ô
.�	ô .ô,�'ô ,ð —l‘lØ
‡O�O�C˜�KÑ  &§,¡,¨v°s¨{Ñ";Ð;ñÐ ô
	,�	ô 	,ô	6�9ô 	6ôDˆyô Dô$�ô $ôF�)ô FôI�Iô Ið
  €ô-�Lô -ô*�|ô ô<˜	ô <ô�9ô ôQ�| \ô QôK˜,ô KôÐ,¨iô ô&(Ð,ô (ô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   