
    h+                        d dl Z d dlmZmZ ddlmZ ddlmZ  G d de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 j                  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 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	          Z G d( d)e	          Z G d* d+e	e          Z G d, d-e	e          Z G d. d/e	e          Z G d0 d1e	e          Z G d2 d3e          Z  G d4 d5e	          Z! G d6 d7e	          Z" G d8 d9e	e#          Z$ G d: d;e	          Z% G d< d=e	          Z& G d> d?e	          Z' G d@ dAe(          Z) G dB dCe)e*          Z+ G dD dEe)          Z,i d e	ej-        eej.        eej/        eej0        eej1        eej2        eej3        eej4        eej5        eej6        e	ej7        e	ej8        e	ej9        eej:        eej;        e'ej<        ei ej=        e	ej>        e	ej?        eej@        eejA        eejB        eejC        eejD        eejE        eejF        eejG        eejH        eejI        eejJ        eejK        eejL        eejM        eejN        eejO        eejP        eejQ        eejR        eejS        eejT        eiZUdFeeed          f         dGeVfdHZWdS )I    N)LiteralUnion   )	CurlECode)	CurlErrorc                   J     e Zd ZdZ	 	 ddeeed         f         f fdZ xZS )RequestExceptionz-Base exception for curl_cffi.requests packager   Ncodec                 R     t                      j        ||g|R i | || _        d S )N)super__init__response)selfmsgr
   r   argskwargs	__class__s         [/var/www/html/marketdash/venv/lib/python3.11/site-packages/curl_cffi/requests/exceptions.pyr   zRequestException.__init__   s9     	d4T444V444     )r   N)	__name__
__module____qualname____doc__r   r   r   r   __classcell__)r   s   @r   r	   r	      sh        77
 ./		! 	! Iwqz)*	! 	! 	! 	! 	! 	! 	! 	! 	! 	!r   r	   c                       e Zd ZdZdS )CookieConflictz)Same cookie exists for different domains.Nr   r   r   r    r   r   r   r      s        3333r   r   c                       e Zd ZdZdS )SessionClosedz$The session has already been closed.Nr   r   r   r   r    r        s        ....r   r    c                       e Zd ZdZdS )ImpersonateErrorz7The impersonate config was wrong or impersonate failed.Nr   r   r   r   r"   r"   $           AAAAr   r"   c                       e Zd ZdZdS )InvalidJSONErrorzA JSON error occurred. not usedNr   r   r   r   r%   r%   )   s        ))))r   r%   c                       e Zd ZdZdS )JSONDecodeErrorz,Couldn't decode the text into json. not usedNr   r   r   r   r'   r'   .           6666r   r'   c                       e Zd ZdZdS )	HTTPErrorzAn HTTP error occurred.Nr   r   r   r   r*   r*   2           !!!!r   r*   c                       e Zd ZdZdS )IncompleteReadzIncomplete read of contentNr   r   r   r   r-   r-   6   s        $$$$r   r-   c                       e Zd ZdZdS )ConnectionErrorzA Connection error occurred.Nr   r   r   r   r/   r/   :   s        &&&&r   r/   c                       e Zd ZdZdS )DNSErrorzCould not resolveNr   r   r   r   r1   r1   >   s        r   r1   c                       e Zd ZdZdS )
ProxyErrorzA proxy error occurred.Nr   r   r   r   r3   r3   B   r+   r   r3   c                       e Zd ZdZdS )SSLErrorzAn SSL error occurred.Nr   r   r   r   r5   r5   F               r   r5   c                       e Zd ZdZdS )CertificateVerifyErrorz,Raised when certificate validated has failedNr   r   r   r   r8   r8   J   r(   r   r8   c                       e Zd ZdZdS )TimeoutzThe request timed out.Nr   r   r   r   r:   r:   N   r6   r   r:   c                       e Zd ZdZdS )ConnectTimeoutzThe request timed out while trying to connect to the remote server.

    Requests that produced this error are safe to retry.

    not used
    Nr   r   r   r   r<   r<   S   s           r   r<   c                       e Zd ZdZdS )ReadTimeoutzIThe server did not send any data in the allotted amount of time. not usedNr   r   r   r   r>   r>   ]   s        SSSSr   r>   c                       e Zd ZdZdS )URLRequiredz3A valid URL is required to make a request. not usedNr   r   r   r   r@   r@   b   s        ====r   r@   c                       e Zd ZdZdS )TooManyRedirectszToo many redirects.Nr   r   r   r   rB   rB   f   s        r   rB   c                       e Zd ZdZdS )MissingSchemaz8The URL scheme (e.g. http or https) is missing. not usedNr   r   r   r   rD   rD   k   s        BBBBr   rD   c                       e Zd ZdZdS )InvalidSchemazBThe URL scheme provided is either invalid or unsupported. not usedNr   r   r   r   rF   rF   o   s        LLLLr   rF   c                       e Zd ZdZdS )
InvalidURLz%The URL provided was somehow invalid.Nr   r   r   r   rH   rH   s           ////r   rH   c                       e Zd ZdZdS )InvalidHeaderz7The header value provided was somehow invalid. not usedNr   r   r   r   rK   rK   x   r#   r   rK   c                       e Zd ZdZdS )InvalidProxyURLz+The proxy URL provided is invalid. not usedNr   r   r   r   rM   rM   }           5555r   rM   c                       e Zd ZdZdS )ChunkedEncodingErrorzHThe server declared chunked encoding but sent an invalid chunk. not usedNr   r   r   r   rP   rP      s        RRRRr   rP   c                       e Zd ZdZdS )ContentDecodingErrorz+Failed to decode response content. not usedNr   r   r   r   rR   rR      rN   r   rR   c                       e Zd ZdZdS )StreamConsumedErrorz<The content for this response was already consumed. not usedNr   r   r   r   rT   rT      s        FFFFr   rT   c                       e Zd ZdZdS )
RetryErrorz%Custom retries logic failed. not usedNr   r   r   r   rV   rV      rI   r   rV   c                       e Zd ZdZdS )UnrewindableBodyErrorzDRequests encountered an error when trying to rewind a body. not usedNr   r   r   r   rX   rX      s        NNNNr   rX   c                       e Zd ZdZdS )InterfaceErrorz1A specified outgoing interface could not be used.Nr   r   r   r   rZ   rZ      s        ;;;;r   rZ   c                       e Zd ZdZdS )RequestsWarningz#Base warning for Requests. not usedNr   r   r   r   r\   r\      s        ----r   r\   c                       e Zd ZdZdS )FileModeWarningzWA file was opened in text mode, but Requests determined its binary length.
    not usedNr   r   r   r   r^   r^      s           r   r^   c                       e Zd ZdZdS )RequestsDependencyWarningz@An imported dependency doesn't match the expected version range.Nr   r   r   r   r`   r`      s        JJJJr   r`   r
   r   c                 x    | t           j        k    rd|v rt          S t                              | t
                    S )NCONNECT)r   
RECV_ERRORr3   
CODE2ERRORgetr	   )r
   r   s     r   
code2errorrf      s5    y###	S(8(8>>$ 0111r   )Xjsontypingr   r   constr   curlr   OSErrorr	   r   r    r"   r%   r'   r*   r-   r/   r1   r3   r5   r8   r:   r<   r>   r@   rB   
ValueErrorrD   rF   rH   rK   rM   rP   rR   	TypeErrorrT   rV   rX   rZ   Warningr\   DeprecationWarningr^   r`   UNSUPPORTED_PROTOCOLURL_MALFORMATCOULDNT_RESOLVE_PROXYCOULDNT_RESOLVE_HOSTCOULDNT_CONNECTWEIRD_SERVER_REPLYREMOTE_ACCESS_DENIEDHTTP2HTTP_RETURNED_ERRORWRITE_ERROR
READ_ERROROUT_OF_MEMORYOPERATION_TIMEDOUTSSL_CONNECT_ERRORINTERFACE_FAILEDTOO_MANY_REDIRECTSUNKNOWN_OPTIONSETOPT_OPTION_SYNTAXGOT_NOTHINGSSL_ENGINE_NOTFOUNDSSL_ENGINE_SETFAILED
SEND_ERRORrc   SSL_CERTPROBLEM
SSL_CIPHERPEER_FAILED_VERIFICATIONBAD_CONTENT_ENCODINGSSL_ENGINE_INITFAILEDSSL_CACERT_BADFILESSL_CRL_BADFILESSL_ISSUER_ERRORSSL_PINNEDPUBKEYNOTMATCHSSL_INVALIDCERTSTATUSHTTP2_STREAMHTTP3QUIC_CONNECT_ERRORPROXYSSL_CLIENTCERTECH_REQUIREDPARTIAL_FILErd   strrf   r   r   r   <module>r      s  
  ! ! ! ! ! ! ! !            ! ! ! ! !y' ! ! !4 4 4 4 4% 4 4 4/ / / / /$ / / /B B B B B' B B B
* * * * *' * * *
7 7 7 7 7&(< 7 7 7" " " " "  " " "% % % % %Y % % %' ' ' ' '& ' ' '       " " " " "! " " "! ! ! ! ! ! ! !7 7 7 7 7X 7 7 7! ! ! ! ! ! ! !
    _g   T T T T T' T T T
> > > > >" > > >    '   
C C C C C$j C C CM M M M M$j M M M0 0 0 0 0!: 0 0 0
B B B B B$j B B B
6 6 6 6 6j 6 6 6
S S S S S+ S S S
6 6 6 6 6+ 6 6 6
G G G G G*I G G G
0 0 0 0 0! 0 0 0
O O O O O, O O O< < < < <% < < <. . . . .g . . .
    o'9   K K K K K K K K**"M* Z* #Z	*
 "H* *  /* "O* OY* !9* +* ** -*  '* *  !*"  "2#* *$ .%*& "$4'*( ?)** !8+*, "H-*. //*0 /1*2 x3*4 (5*6 &(>7*8 "I9*: #X;*<  (=*> x?*@ A*B &C*D #XE* *F IOY /OZhHNS* *
^2U9gaj01 2 2 2 2 2 2 2r   