
    Eg                     2    d dl T d dlZ G d de          ZdS )    )*Nc                       e Zd Zd Zd ZdS )hCaptchaProxyonc                     | j         S )N)
user_agent)selfs    X/var/www/sysmax/venv/lib/python3.11/site-packages/anticaptchaofficial/hcaptchaproxyon.pyget_user_agentzhCaptchaProxyon.get_user_agent   s
        c                 H   |                      | j        d| j        | j        | j        | j        | j        | j        | j        | j	        | j
        | j        | j        d| j        d          dk    r+|                     dt          | j                  z              n1|                     d           |                     | j                   dS t%          j        d           |                     d	          }|dk    rdS d
|d         v r|d         d
         | _	        |d         d         S )NHCaptchaTask)type
websiteURL
websiteKey	proxyTypeproxyAddress	proxyPort
proxyLoginproxyPassword	userAgentcookiesisInvisibleenterprisePayload)	clientKeytasksoftId   zcreated task with id zcould not create taskr      i,  r   solutiongRecaptchaResponse)create_task
client_keywebsite_urlwebsite_key
proxy_typeproxy_address
proxy_portproxy_loginproxy_passwordr   r   is_invisiblerecaptcha_enterprise_payloadsoft_idlogstrtask_id
err_stringtimesleepwait_for_result)r   task_results     r	   solve_and_return_solutionz)hCaptchaProxyon.solve_and_return_solution
   s:   &".".!_ $ 2!_".!%!4!_<#0%)%F  l!
 
  " # $ HH,S->->>????HH,---HHT_%%%1
1**3//!1k*555"-j"9+"Fz*+?@@r   N)__name__
__module____qualname__r
   r5    r   r	   r   r      s7              A  A  A  A  Ar   r   )"anticaptchaofficial.antinetworkingr1   antiNetworkingr   r9   r   r	   <module>r<      sX    0 0 0 0 %A %A %A %A %An %A %A %A %A %Ar   