Ë
    8ø»j‹†  ã                  ó  — d dl mZ d dlmZ d dlmZ d dlmZmZ d dl	m
Z
mZmZmZmZmZmZmZ d dlmZ d dlmZmZmZmZmZmZmZmZmZmZmZm Z m!Z!m"Z"m#Z#m$Z$m%Z%m&Z&m'Z'm(Z(m)Z)m*Z*m+Z+m,Z,m-Z-m.Z.m/Z/m0Z0m1Z1m2Z2m3Z3m4Z4m5Z5m6Z6m7Z7m8Z8m9Z9m:Z:m;Z;m<Z<m=Z=m>Z>m?Z?m@Z@mAZAmBZBmCZCmDZDmEZEmFZFmGZGmHZHmIZImJZJ d dlKmLZL d d	lMmNZN d d
lOmPZPmQZQmRZRmSZS d dlTmUZU erd dlVmWZW d dlXmYZY d dlZm[Z[  ed«       G d„ d«      «       Z\ ed«       G d„ d«      «       Z]y)é    )Úannotations)Úcached_property)ÚTYPE_CHECKING)ÚClientRegistryÚClientRegistryAsync)ÚAPI_VERSIONÚDEFAULT_API_URLÚDEFAULT_MAX_RETRIESÚ!DEFAULT_MIN_DELAY_BETWEEN_RETRIESÚDEFAULT_TIMEOUT_LONGÚDEFAULT_TIMEOUT_MAXÚDEFAULT_TIMEOUT_MEDIUMÚDEFAULT_TIMEOUT_SHORT)Ú
docs_group)6ÚActorClientÚActorClientAsyncÚActorCollectionClientÚActorCollectionClientAsyncÚActorEnvVarClientÚActorEnvVarClientAsyncÚActorEnvVarCollectionClientÚ ActorEnvVarCollectionClientAsyncÚActorVersionClientÚActorVersionClientAsyncÚActorVersionCollectionClientÚ!ActorVersionCollectionClientAsyncÚBuildClientÚBuildClientAsyncÚBuildCollectionClientÚBuildCollectionClientAsyncÚDatasetClientÚDatasetClientAsyncÚDatasetCollectionClientÚDatasetCollectionClientAsyncÚKeyValueStoreClientÚKeyValueStoreClientAsyncÚKeyValueStoreCollectionClientÚ"KeyValueStoreCollectionClientAsyncÚ	LogClientÚLogClientAsyncÚRequestQueueClientÚRequestQueueClientAsyncÚRequestQueueCollectionClientÚ!RequestQueueCollectionClientAsyncÚ	RunClientÚRunClientAsyncÚRunCollectionClientÚRunCollectionClientAsyncÚScheduleClientÚScheduleClientAsyncÚScheduleCollectionClientÚScheduleCollectionClientAsyncÚStoreCollectionClientÚStoreCollectionClientAsyncÚ
TaskClientÚTaskClientAsyncÚTaskCollectionClientÚTaskCollectionClientAsyncÚ
UserClientÚUserClientAsyncÚWebhookClientÚWebhookClientAsyncÚWebhookCollectionClientÚWebhookCollectionClientAsyncÚWebhookDispatchClientÚWebhookDispatchClientAsyncÚWebhookDispatchCollectionClientÚ$WebhookDispatchCollectionClientAsync)ÚClientStatistics)Úcheck_custom_headers)Ú
HttpClientÚHttpClientAsyncÚImpitHttpClientÚImpitHttpClientAsync)Úresolve_compressor)Ú	timedelta)ÚHttpCompressor)ÚHttpCompressionAlgorithmzApify API clientsc                  óˆ  — e Zd ZdZ	 d#eeeeeee	e
dddœ
	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 d$d„Ze	 d#eedœ	 	 	 	 	 	 	 	 	 d%d„«       Zed&d„«       Zed'd	„«       Zed(d
„«       Zd)d„Zd*d„Zd+d„Zd,d„Zd-d„Zd.d„Zd/d„Zd0d„Zd1d„Zd2d„Zddœd3d„Zd4d„Zd5d„Zd6d„Z d7d„Z!d8d„Z"d9d„Z#d:d„Z$d;d„Z%d<d„Z&d=d „Z'd#d>d!„Z(d?d"„Z)y)@ÚApifyClienta¶  Synchronous client for the Apify API.

    This is the main entry point for interacting with the Apify platform. It provides methods to access
    resource-specific sub-clients for managing Actors, runs, datasets, key-value stores, request queues,
    schedules, webhooks, and more.

    The client automatically handles retries with exponential backoff for failed or rate-limited requests.

    ### Usage

    ```python
    from apify_client import ApifyClient

    client = ApifyClient(token='MY-APIFY-TOKEN')

    # Start an Actor and wait for it to finish.
    actor_client = client.actor('apify/python-example')
    run = actor_client.call(run_input={'first_number': 1, 'second_number': 2})

    # Fetch results from the run's default dataset.
    if run is not None:
        dataset_client = client.dataset(run.default_dataset_id)
        items = dataset_client.list_items().items
        for item in items:
            print(item)
    ```
    NÚgzip©
Úapi_urlÚapi_public_urlÚmax_retriesÚmin_delay_between_retriesÚtimeout_shortÚtimeout_mediumÚtimeout_longÚtimeout_maxÚheadersÚcompressionc       
        óJ  — |€t         n|}|€t         n|}|
r t        | j                  j                  |
«       || _        	 |j                  d«      › dt        › �| _        	 |j                  d«      › dt        › �| _        	 t        «       | _
        	 d| _        	 t        di dt        “dt        “dt        “dt         “dt"        “dt$        “d	t&        “d
t(        “dt*        “dt,        “dt.        “dt0        “dt2        “dt4        “dt6        “dt8        “dt:        “dt<        “dt>        “dt@        “dtB        “dtD        “dtF        “dtH        “dtJ        “dtL        “dtN        “Ž| _(        	 || _)        || _*        || _+        || _,        || _-        |	| _.        |
| _/        ta        |«      | _1        y©aÀ  Initialize the Apify API client.

        To use a custom HTTP client, use the `with_custom_http_client` class method instead.

        Args:
            token: The Apify API token. You can find your token on the
                [Integrations](https://console.apify.com/account/integrations) page in the Apify Console.
            api_url: The URL of the Apify API server to connect to. Defaults to https://api.apify.com. It can
                be an internal URL that is not globally accessible, in which case `api_public_url` should be set
                as well.
            api_public_url: The globally accessible URL of the Apify API server. Should be set only if `api_url`
                is an internal URL that is not globally accessible. Defaults to https://api.apify.com.
            max_retries: How many times to retry a failed request at most.
            min_delay_between_retries: How long will the client wait between retrying requests
                (increases exponentially from this value).
            timeout_short: Default timeout for short-duration API operations (simple CRUD operations, ...).
            timeout_medium: Default timeout for medium-duration API operations (batch operations, listing, ...).
            timeout_long: Default timeout for long-duration API operations (long-polling, streaming, ...).
            timeout_max: Maximum timeout cap for any single request attempt, including tier and per-call timeouts.
            headers: Additional HTTP headers to include in all API requests.
            compression: Compression algorithm for request bodies. Pass a string literal to select an algorithm,
                or an `HttpCompressor` instance for finer-grained control.
        Nú/Úactor_clientÚactor_collection_clientÚactor_env_var_clientÚactor_env_var_collection_clientÚactor_version_clientÚactor_version_collection_clientÚbuild_clientÚbuild_collection_clientÚdataset_clientÚdataset_collection_clientÚkey_value_store_clientÚ!key_value_store_collection_clientÚ
log_clientÚrequest_queue_clientÚrequest_queue_collection_clientÚ
run_clientÚrun_collection_clientÚschedule_clientÚschedule_collection_clientÚstore_collection_clientÚtask_clientÚtask_collection_clientÚuser_clientÚwebhook_clientÚwebhook_collection_clientÚwebhook_dispatch_clientÚ"webhook_dispatch_collection_client© )2r	   rH   Ú	__class__Ú__name__Ú_tokenÚrstripr   Ú	_base_urlÚ_public_base_urlrG   Ú_statisticsÚ_http_clientr   r   r   r   r   r   r   r   r   r!   r#   r%   r'   r)   r+   r-   r/   r1   r3   r5   r7   r9   r;   r=   r?   rA   rC   rE   Ú_client_registryÚ_max_retriesÚ_min_delay_between_retriesÚ_timeout_shortÚ_timeout_mediumÚ_timeout_longÚ_timeout_maxÚ_headersrM   Ú_http_compressor©ÚselfÚtokenrU   rV   rW   rX   rY   rZ   r[   r\   r]   r^   s               úQ/var/www/html/GAP/venv/lib/python3.12/site-packages/apify_client/_apify_client.pyÚ__init__zApifyClient.__init__t   s   € ðN &- _•/¸'ˆØ,:Ð,B�ÈˆáÜ  §¡×!8Ñ!8¸'ÔBàˆŒØ1à#ŸN™N¨3Ó/Ð0°´+°Ð?ˆŒØ(à#1×#8Ñ#8¸Ó#=Ð">¸aÄ¸}Ð MˆÔØ-ä+Ó-ˆÔØ6à/3ˆÔØeä .ò !
Ý$ð!
å$9ð!
õ "3ð!
õ -Hð	!
õ
 "4ð!
õ -Ið!
õ %ð!
õ %:ð!
õ )ð!
õ '>ð!
õ $7ð!
õ /Lð!
õ !ð!
õ "4ð!
õ -Ið!
õ  !ð!!
õ" #6ð#!
õ$ +ð%!
õ& (@ð'!
õ( %:ð)!
õ* #ð+!
õ, $8ð-!
õ. #ð/!
õ0 )ð1!
õ2 '>ð3!
õ4 %:ð5!
õ6 0Oð7!
ˆÔð: 	Qð (ˆÔØ*CˆÔ'Ø+ˆÔØ-ˆÔØ)ˆÔØ'ˆÔØˆŒÜ 2°;Ó ?ˆÕó    ©rU   rV   c               óP   —  | |||¬«      }|�|j                  |«       ||_        |S )a8  Create an `ApifyClient` instance with a custom HTTP client.

        Use this alternative constructor when you want to provide your own HTTP client implementation
        instead of the default one. The custom client controls its transport configuration; the shared
        `HttpClient` pipeline handles request preparation, retries, timeouts, and API errors unless overridden.

        ### Usage

        ```python
        from apify_client import ApifyClient
        from apify_client.http_clients import HttpClient, HttpResponse


        class MyHttpClient(HttpClient):
            def send_request(self, *, method, url, headers, content, timeout, stream) -> HttpResponse:
                ...


        client = ApifyClient.with_custom_http_client(
            token='MY-APIFY-TOKEN',
            http_client=MyHttpClient(),
        )
        ```

        Args:
            token: The Apify API token. It is set as the `Authorization` header on the custom client,
                unless the client already has one configured.
            api_url: The URL of the Apify API server to connect to. Defaults to https://api.apify.com.
            api_public_url: The globally accessible URL of the Apify API server. Defaults to https://api.apify.com.
            http_client: A custom HTTP client instance extending `HttpClient`.
        ©r‘   rU   rV   ©Úset_default_authorizationr…   ©Úclsr‘   rU   rV   Úhttp_clientÚinstances         r’   Úwith_custom_http_clientz#ApifyClient.with_custom_http_clientÙ   ó4   € ñP ˜U¨GÀNÔSˆØÐØ×1Ñ1°%Ô8Ø +ˆÔØˆr”   c                ó   — | j                   S ©z'The Apify API token used by the client.©r€   ©r�   s    r’   r‘   zApifyClient.token  ó   € ð �{‰{Ðr”   c                ó.  — | j                   €~t        | j                  | j                  | j                  | j
                  | j                  | j                  | j                  | j                  | j                  | j                  ¬«
      | _         | j                   S )zíThe HTTP client instance used for API communication.

        Returns the custom HTTP client if one was provided via `with_custom_http_client`,
        or the default `ImpitHttpClient` otherwise (lazily created on first access).
        ©
r‘   rY   rZ   r[   r\   rW   rX   Ú
statisticsr]   Úhttp_compressor)r…   rK   r€   r‰   rŠ   r‹   rŒ   r‡   rˆ   r„   r�   rŽ   r£   s    r’   rœ   zApifyClient.http_client  s�   € ð ×ÑÐ$Ü /Ø—k‘kØ"×1Ñ1Ø#×3Ñ3Ø!×/Ñ/Ø ×-Ñ-Ø ×-Ñ-Ø*.×*IÑ*IØ×+Ñ+ØŸ™Ø $× 5Ñ 5ô!ˆDÔð × Ñ Ð r”   c                ó`   — | j                   | j                  | j                  | j                  dœS ©z8Base keyword arguments for resource client construction.)Úbase_urlÚpublic_base_urlrœ   Úclient_registry©r‚   rƒ   rœ   r†   r£   s    r’   Ú_base_kwargszApifyClient._base_kwargs#  ó0   € ð Ÿ™Ø#×4Ñ4Ø×+Ñ+Ø#×4Ñ4ñ	
ð 	
r”   c                ó0   — t        dd|i| j                  ¤ŽS ©zyGet the sub-client for a specific Actor.

        Args:
            actor_id: ID of the Actor to be manipulated.
        Úresource_idr}   )r   r¯   ©r�   Úactor_ids     r’   ÚactorzApifyClient.actor-  ó   € ô ÑE xÐE°4×3DÑ3DÑEÐEr”   c                ó,   — t        di | j                  ¤ŽS ©zPGet the sub-client for the Actor collection, allowing to list and create Actors.r}   )r   r¯   r£   s    r’   ÚactorszApifyClient.actors5  ó   € ä$Ñ9 t×'8Ñ'8Ñ9Ð9r”   c                ó0   — t        dd|i| j                  ¤ŽS ©z…Get the sub-client for a specific Actor build.

        Args:
            build_id: ID of the Actor build to be manipulated.
        r³   r}   )r   r¯   ©r�   Úbuild_ids     r’   ÚbuildzApifyClient.build9  r·   r”   c                ó,   — t        di | j                  ¤ŽS ©zEGet the sub-client for the build collection, allowing to list builds.r}   )r   r¯   r£   s    r’   ÚbuildszApifyClient.buildsA  r»   r”   c                ó0   — t        dd|i| j                  ¤ŽS ©zGet the sub-client for a specific Actor run.

        Args:
            run_id: ID of the Actor run to be manipulated.
        r³   r}   )r/   r¯   ©r�   Úrun_ids     r’   ÚrunzApifyClient.runE  s   € ô ÑA VÐA¨t×/@Ñ/@ÑAÐAr”   c                ó,   — t        di | j                  ¤ŽS ©zGGet the sub-client for the run collection, allowing to list Actor runs.r}   )r1   r¯   r£   s    r’   ÚrunszApifyClient.runsM  s   € ä"Ñ7 T×%6Ñ%6Ñ7Ð7r”   c                ó0   — t        dd|i| j                  ¤ŽS ©zGet the sub-client for a specific dataset.

        Args:
            dataset_id: ID of the dataset to be manipulated.
        r³   r}   )r!   r¯   ©r�   Ú
dataset_ids     r’   ÚdatasetzApifyClient.datasetQ  ó   € ô ÑI¨ÐI°t×7HÑ7HÑIÐIr”   c                ó,   — t        di | j                  ¤ŽS ©zTGet the sub-client for the dataset collection, allowing to list and create datasets.r}   )r#   r¯   r£   s    r’   ÚdatasetszApifyClient.datasetsY  ó   € ä&Ñ;¨×):Ñ):Ñ;Ð;r”   c                ó0   — t        dd|i| j                  ¤ŽS ©z—Get the sub-client for a specific key-value store.

        Args:
            key_value_store_id: ID of the key-value store to be manipulated.
        r³   r}   )r%   r¯   ©r�   Úkey_value_store_ids     r’   Úkey_value_storezApifyClient.key_value_store]  s   € ô #ÑWÐ/AÐWÀT×EVÑEVÑWÐWr”   c                ó,   — t        di | j                  ¤ŽS ©zdGet the sub-client for the key-value store collection, allowing to list and create key-value stores.r}   )r'   r¯   r£   s    r’   Úkey_value_storeszApifyClient.key_value_storese  ó   € ä,ÑA¨t×/@Ñ/@ÑAÐAr”   ©Ú
client_keyc               ó2   — t        d||dœ| j                  ¤ŽS ©zèGet the sub-client for a specific request queue.

        Args:
            request_queue_id: ID of the request queue to be manipulated.
            client_key: A unique identifier of the client accessing the request queue.
        )r³   rà   r}   )r+   r¯   ©r�   Úrequest_queue_idrà   s      r’   Úrequest_queuezApifyClient.request_queuei  s!   € ô "ÐkÐ.>È:ÑkÐY]×YjÑYjÑkÐkr”   c                ó,   — t        di | j                  ¤ŽS ©z`Get the sub-client for the request queue collection, allowing to list and create request queues.r}   )r-   r¯   r£   s    r’   Úrequest_queueszApifyClient.request_queuesr  ó   € ä+Ñ@¨d×.?Ñ.?Ñ@Ð@r”   c                ó0   — t        dd|i| j                  ¤ŽS ©zGet the sub-client for a specific webhook.

        Args:
            webhook_id: ID of the webhook to be manipulated.
        r³   r}   )r?   r¯   ©r�   Ú
webhook_ids     r’   ÚwebhookzApifyClient.webhookv  rÑ   r”   c                ó,   — t        di | j                  ¤ŽS ©zTGet the sub-client for the webhook collection, allowing to list and create webhooks.r}   )rA   r¯   r£   s    r’   ÚwebhookszApifyClient.webhooks~  rÕ   r”   c                ó0   — t        dd|i| j                  ¤ŽS ©z’Get the sub-client for a specific webhook dispatch.

        Args:
            webhook_dispatch_id: ID of the webhook dispatch to access.
        r³   r}   )rC   r¯   ©r�   Úwebhook_dispatch_ids     r’   Úwebhook_dispatchzApifyClient.webhook_dispatch‚  s   € ô %ÑZÐ1DÐZÈ×HYÑHYÑZÐZr”   c                ó,   — t        di | j                  ¤ŽS ©z\Get the sub-client for the webhook dispatch collection, allowing to list webhook dispatches.r}   )rE   r¯   r£   s    r’   Úwebhook_dispatcheszApifyClient.webhook_dispatchesŠ  s   € ä.ÑC°×1BÑ1BÑCÐCr”   c                ó0   — t        dd|i| j                  ¤ŽS ©z‚Get the sub-client for a specific schedule.

        Args:
            schedule_id: ID of the schedule to be manipulated.
        r³   r}   )r3   r¯   ©r�   Úschedule_ids     r’   ÚschedulezApifyClient.scheduleŽ  s   € ô ÑK¨+ÐK¸×9JÑ9JÑKÐKr”   c                ó,   — t        di | j                  ¤ŽS ©zVGet the sub-client for the schedule collection, allowing to list and create schedules.r}   )r5   r¯   r£   s    r’   Ú	scheduleszApifyClient.schedules–  ó   € ä'Ñ<¨$×*;Ñ*;Ñ<Ð<r”   c                ó0   — t        dd|i| j                  ¤ŽS ©z¯Get the sub-client for retrieving logs of an Actor build or run.

        Args:
            build_or_run_id: ID of the Actor build or run for which to access the log.
        r³   r}   )r)   r¯   ©r�   Úbuild_or_run_ids     r’   ÚlogzApifyClient.logš  s   € ô ÑJ _ÐJ¸×8IÑ8IÑJÐJr”   c                ó0   — t        dd|i| j                  ¤ŽS ©z|Get the sub-client for a specific Actor task.

        Args:
            task_id: ID of the task to be manipulated.
        r³   r}   )r9   r¯   ©r�   Útask_ids     r’   ÚtaskzApifyClient.task¢  ó   € ô ÑC gÐC°×1BÑ1BÑCÐCr”   c                ó,   — t        di | j                  ¤ŽS ©zTGet the sub-client for the task collection, allowing to list and create Actor tasks.r}   )r;   r¯   r£   s    r’   ÚtaskszApifyClient.tasksª  s   € ä#Ñ8 d×&7Ñ&7Ñ8Ð8r”   c                ó0   — t        dd|i| j                  ¤ŽS ©zºGet the sub-client for querying user data.

        Args:
            user_id: ID of user to be queried. If None, queries the user belonging to the token supplied to the client.
        r³   r}   )r=   r¯   ©r�   Úuser_ids     r’   ÚuserzApifyClient.user®  r  r”   c                ó,   — t        di | j                  ¤ŽS ©zWGet the sub-client for the Apify Store, allowing to list Actors published in the store.r}   )r7   r¯   r£   s    r’   ÚstorezApifyClient.store¶  r»   r”   ©N©r‘   ú
str | NonerU   ÚstrrV   r  rW   ÚintrX   rN   rY   rN   rZ   rN   r[   rN   r\   rN   r]   zdict[str, str] | Noner^   z)HttpCompressionAlgorithm | HttpCompressorÚreturnÚNone)
r‘   r  rU   r  rV   r  rœ   rI   r  rR   ©r  r  )r  rI   ©r  Údict)rµ   r  r  r   )r  r   )r¿   r  r  r   )r  r   )rÇ   r  r  r/   )r  r1   )rÏ   r  r  r!   )r  r#   )rÙ   r  r  r%   )r  r'   )rä   r  rà   r  r  r+   )r  r-   )rí   r  r  r?   )r  rA   )rõ   r  r  rC   )r  rE   )rý   r  r  r3   )r  r5   )r  r  r  r)   )r  r  r  r9   )r  r;   )r  r  r  r=   )r  r7   ©*r   Ú
__module__Ú__qualname__Ú__doc__r	   r
   r   r   r   r   r   r“   Úclassmethodrž   Úpropertyr‘   rœ   r   r¯   r¶   rº   rÀ   rÃ   rÈ   rË   rÐ   rÔ   rÚ   rÝ   rå   rè   rî   rñ   rö   rù   rþ   r  r  r  r  r  r  r}   r”   r’   rR   rR   V   så  „ ñð< !ðc@ð 'Ø%4Ø.Ø/PØ#8Ø$:Ø"6Ø!4Ø)-ØAGñc@àðc@ð ð	c@ð
 #ðc@ð ðc@ð $-ðc@ð !ðc@ð "ðc@ð  ðc@ð ðc@ð 'ðc@ð ?ðc@ð 
óc@ðJ ð !ð+ð 'Ø%4ñ+àð+ð ð	+ð
 #ð+ð  ð+ð 
ò+ó ð+ðZ òó ðð ò!ó ð!ð, ò
ó ð
óFó:óFó:óBó8óJó<óXóBð PTõ lóAóJó<ó[óDóLó=óKóDó9ôDô:r”   rR   c                  óˆ  — e Zd ZdZ	 d#eeeeeee	e
dddœ
	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 d$d„Ze	 d#eedœ	 	 	 	 	 	 	 	 	 d%d„«       Zed&d„«       Zed'd	„«       Zed(d
„«       Zd)d„Zd*d„Zd+d„Zd,d„Zd-d„Zd.d„Zd/d„Zd0d„Zd1d„Zd2d„Zddœd3d„Zd4d„Zd5d„Zd6d„Z d7d„Z!d8d„Z"d9d„Z#d:d„Z$d;d„Z%d<d„Z&d=d „Z'd#d>d!„Z(d?d"„Z)y)@ÚApifyClientAsyncaV  Asynchronous client for the Apify API.

    This is the main entry point for interacting with the Apify platform using async/await. It provides
    methods to access resource-specific sub-clients for managing Actors, runs, datasets, key-value stores,
    request queues, schedules, webhooks, and more.

    The client automatically handles retries with exponential backoff for failed or rate-limited requests.

    ### Usage

    ```python
    import asyncio

    from apify_client import ApifyClientAsync


    async def main() -> None:
        client = ApifyClientAsync(token='MY-APIFY-TOKEN')

        # Start an Actor and wait for it to finish.
        actor_client = client.actor('apify/python-example')
        run = await actor_client.call(run_input={'first_number': 1, 'second_number': 2})

        # Fetch results from the run's default dataset.
        if run is not None:
            dataset_client = client.dataset(run.default_dataset_id)
            items = (await dataset_client.list_items()).items
            for item in items:
                print(item)


    asyncio.run(main())
    ```
    NrS   rT   c       
        óJ  — |€t         n|}|€t         n|}|
r t        | j                  j                  |
«       || _        	 |j                  d«      › dt        › �| _        	 |j                  d«      › dt        › �| _        	 t        «       | _
        	 d| _        	 t        di dt        “dt        “dt        “dt         “dt"        “dt$        “d	t&        “d
t(        “dt*        “dt,        “dt.        “dt0        “dt2        “dt4        “dt6        “dt8        “dt:        “dt<        “dt>        “dt@        “dtB        “dtD        “dtF        “dtH        “dtJ        “dtL        “dtN        “Ž| _(        	 || _)        || _*        || _+        || _,        || _-        |	| _.        |
| _/        ta        |«      | _1        yr`   )2r	   rH   r~   r   r€   r�   r   r‚   rƒ   rG   r„   r…   r   r   r   r   r   r   r   r   r    r"   r$   r&   r(   r*   r,   r.   r0   r2   r4   r6   r8   r:   r<   r>   r@   rB   rD   rF   r†   r‡   rˆ   r‰   rŠ   r‹   rŒ   r�   rM   rŽ   r�   s               r’   r“   zApifyClientAsync.__init__à  s  € ðN &- _•/¸'ˆØ,:Ð,B�ÈˆáÜ  §¡×!8Ñ!8¸'ÔBàˆŒØ1à#ŸN™N¨3Ó/Ð0°´+°Ð?ˆŒØ(à#1×#8Ñ#8¸Ó#=Ð">¸aÄ¸}Ð MˆÔØ-ä+Ó-ˆÔØ6à48ˆÔØeä 3ò !
Ý)ð!
å$>ð!
õ "8ð!
õ -Mð	!
õ
 "9ð!
õ -Nð!
õ *ð!
õ %?ð!
õ .ð!
õ 'Cð!
õ $<ð!
õ /Qð!
õ &ð!
õ "9ð!
õ -Nð!
õ  &ð!!
õ" #;ð#!
õ$ 0ð%!
õ& (Eð'!
õ( %?ð)!
õ* (ð+!
õ, $=ð-!
õ. (ð/!
õ0 .ð1!
õ2 'Cð3!
õ4 %?ð5!
õ6 0Tð7!
ˆÔð: 	Qð (ˆÔØ*CˆÔ'Ø+ˆÔØ-ˆÔØ)ˆÔØ'ˆÔØˆŒÜ 2°;Ó ?ˆÕr”   r•   c               óP   —  | |||¬«      }|�|j                  |«       ||_        |S )ak  Create an `ApifyClientAsync` instance with a custom HTTP client.

        Use this alternative constructor when you want to provide your own HTTP client implementation
        instead of the default one. The custom client controls its transport configuration; the shared
        `HttpClientAsync` pipeline handles request preparation, retries, timeouts, and API errors unless overridden.

        ### Usage

        ```python
        from apify_client import ApifyClientAsync
        from apify_client.http_clients import HttpClientAsync, HttpResponse


        class MyHttpClientAsync(HttpClientAsync):
            async def send_request(self, *, method, url, headers, content, timeout, stream) -> HttpResponse:
                ...


        client = ApifyClientAsync.with_custom_http_client(
            token='MY-APIFY-TOKEN',
            http_client=MyHttpClientAsync(),
        )
        ```

        Args:
            token: The Apify API token. It is set as the `Authorization` header on the custom client,
                unless the client already has one configured.
            api_url: The URL of the Apify API server to connect to. Defaults to https://api.apify.com.
            api_public_url: The globally accessible URL of the Apify API server. Defaults to https://api.apify.com.
            http_client: A custom HTTP client instance extending `HttpClientAsync`.
        r—   r˜   rš   s         r’   rž   z(ApifyClientAsync.with_custom_http_clientE  rŸ   r”   c                ó   — | j                   S r¡   r¢   r£   s    r’   r‘   zApifyClientAsync.tokens  r¤   r”   c                ó.  — | j                   €~t        | j                  | j                  | j                  | j
                  | j                  | j                  | j                  | j                  | j                  | j                  ¬«
      | _         | j                   S )zòThe HTTP client instance used for API communication.

        Returns the custom HTTP client if one was provided via `with_custom_http_client`,
        or the default `ImpitHttpClientAsync` otherwise (lazily created on first access).
        r¦   )r…   rL   r€   r‰   rŠ   r‹   rŒ   r‡   rˆ   r„   r�   rŽ   r£   s    r’   rœ   zApifyClientAsync.http_clientx  s�   € ð ×ÑÐ$Ü 4Ø—k‘kØ"×1Ñ1Ø#×3Ñ3Ø!×/Ñ/Ø ×-Ñ-Ø ×-Ñ-Ø*.×*IÑ*IØ×+Ñ+ØŸ™Ø $× 5Ñ 5ô!ˆDÔð × Ñ Ð r”   c                ó`   — | j                   | j                  | j                  | j                  dœS rª   r®   r£   s    r’   r¯   zApifyClientAsync._base_kwargsŽ  r°   r”   c                ó0   — t        dd|i| j                  ¤ŽS r²   )r   r¯   r´   s     r’   r¶   zApifyClientAsync.actor˜  ó   € ô  ÑJ¨HÐJ¸×8IÑ8IÑJÐJr”   c                ó,   — t        di | j                  ¤ŽS r¹   )r   r¯   r£   s    r’   rº   zApifyClientAsync.actors   ó   € ä)Ñ>¨D×,=Ñ,=Ñ>Ð>r”   c                ó0   — t        dd|i| j                  ¤ŽS r½   )r   r¯   r¾   s     r’   rÀ   zApifyClientAsync.build¤  r1  r”   c                ó,   — t        di | j                  ¤ŽS rÂ   )r    r¯   r£   s    r’   rÃ   zApifyClientAsync.builds¬  r3  r”   c                ó0   — t        dd|i| j                  ¤ŽS rÅ   )r0   r¯   rÆ   s     r’   rÈ   zApifyClientAsync.run°  s   € ô ÑF¨&ÐF°D×4EÑ4EÑFÐFr”   c                ó,   — t        di | j                  ¤ŽS rÊ   )r2   r¯   r£   s    r’   rË   zApifyClientAsync.runs¸  r  r”   c                ó0   — t        dd|i| j                  ¤ŽS rÍ   )r"   r¯   rÎ   s     r’   rÐ   zApifyClientAsync.dataset¼  ó   € ô "ÑN¨jÐN¸D×<MÑ<MÑNÐNr”   c                ó,   — t        di | j                  ¤ŽS rÓ   )r$   r¯   r£   s    r’   rÔ   zApifyClientAsync.datasetsÄ  ré   r”   c                ó0   — t        dd|i| j                  ¤ŽS r×   )r&   r¯   rØ   s     r’   rÚ   z ApifyClientAsync.key_value_storeÈ  s   € ô (Ñ\Ð4FÐ\È$×J[ÑJ[Ñ\Ð\r”   c                ó,   — t        di | j                  ¤ŽS rÜ   )r(   r¯   r£   s    r’   rÝ   z!ApifyClientAsync.key_value_storesÐ  s   € ä1ÑF°D×4EÑ4EÑFÐFr”   rß   c               ó2   — t        d||dœ| j                  ¤ŽS râ   )r,   r¯   rã   s      r’   rå   zApifyClientAsync.request_queueÔ  s"   € ô 'ÐpÐ3CÐPZÑpÐ^b×^oÑ^oÑpÐpr”   c                ó,   — t        di | j                  ¤ŽS rç   )r.   r¯   r£   s    r’   rè   zApifyClientAsync.request_queuesÝ  s   € ä0ÑE°4×3DÑ3DÑEÐEr”   c                ó0   — t        dd|i| j                  ¤ŽS rë   )r@   r¯   rì   s     r’   rî   zApifyClientAsync.webhooká  r9  r”   c                ó,   — t        di | j                  ¤ŽS rð   )rB   r¯   r£   s    r’   rñ   zApifyClientAsync.webhooksé  ré   r”   c                ó0   — t        dd|i| j                  ¤ŽS ró   )rD   r¯   rô   s     r’   rö   z!ApifyClientAsync.webhook_dispatchí  s   € ô *Ñ_Ð6IÐ_ÈT×M^ÑM^Ñ_Ð_r”   c                ó,   — t        di | j                  ¤ŽS rø   )rF   r¯   r£   s    r’   rù   z#ApifyClientAsync.webhook_dispatchesõ  s   € ä3ÑH°d×6GÑ6GÑHÐHr”   c                ó0   — t        dd|i| j                  ¤ŽS rû   )r4   r¯   rü   s     r’   rþ   zApifyClientAsync.scheduleù  s   € ô #ÑP¨{ÐP¸d×>OÑ>OÑPÐPr”   c                ó,   — t        di | j                  ¤ŽS r   )r6   r¯   r£   s    r’   r  zApifyClientAsync.schedules  rÞ   r”   c                ó0   — t        dd|i| j                  ¤ŽS r  )r*   r¯   r  s     r’   r  zApifyClientAsync.log  s   € ô ÑO¨/ÐO¸T×=NÑ=NÑOÐOr”   c                ó0   — t        dd|i| j                  ¤ŽS r	  )r:   r¯   r
  s     r’   r  zApifyClientAsync.task  ó   € ô ÑH¨7ÐH°d×6GÑ6GÑHÐHr”   c                ó,   — t        di | j                  ¤ŽS r  )r<   r¯   r£   s    r’   r  zApifyClientAsync.tasks  s   € ä(Ñ=¨4×+<Ñ+<Ñ=Ð=r”   c                ó0   — t        dd|i| j                  ¤ŽS r  )r>   r¯   r  s     r’   r  zApifyClientAsync.user  rG  r”   c                ó,   — t        di | j                  ¤ŽS r  )r8   r¯   r£   s    r’   r  zApifyClientAsync.store!  r3  r”   r  r  )
r‘   r  rU   r  rV   r  rœ   rJ   r  r*  r   )r  rJ   r!  )rµ   r  r  r   )r  r   )r¿   r  r  r   )r  r    )rÇ   r  r  r0   )r  r2   )rÏ   r  r  r"   )r  r$   )rÙ   r  r  r&   )r  r(   )rä   r  rà   r  r  r,   )r  r.   )rí   r  r  r@   )r  rB   )rõ   r  r  rD   )r  rF   )rý   r  r  r4   )r  r6   )r  r  r  r*   )r  r  r  r:   )r  r<   )r  r  r  r>   )r  r8   r#  r}   r”   r’   r*  r*  »  sé  „ ñ!ðJ !ðc@ð 'Ø%4Ø.Ø/PØ#8Ø$:Ø"6Ø!4Ø)-ØAGñc@àðc@ð ð	c@ð
 #ðc@ð ðc@ð $-ðc@ð !ðc@ð "ðc@ð  ðc@ð ðc@ð 'ðc@ð ?ðc@ð 
óc@ðJ ð !ð+ð 'Ø%4ñ+àð+ð ð	+ð
 #ð+ð %ð+ð 
ò+ó ð+ðZ òó ðð ò!ó ð!ð* ò
ó ð
óKó?óKó?óGó=óOóAó]óGð PTõ qóFóOóAó`óIóQóBóPóIó>ôIô?r”   r*  N)^Ú
__future__r   Ú	functoolsr   Útypingr   Úapify_client._client_registryr   r   Úapify_client._constsr   r	   r
   r   r   r   r   r   Úapify_client._docsr   Úapify_client._resource_clientsr   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r    r!   r"   r#   r$   r%   r&   r'   r(   r)   r*   r+   r,   r-   r.   r/   r0   r1   r2   r3   r4   r5   r6   r7   r8   r9   r:   r;   r<   r=   r>   r?   r@   rA   rB   rC   rD   rE   rF   Úapify_client._statisticsrG   Úapify_client._utils.httprH   Úapify_client.http_clientsrI   rJ   rK   rL   Ú&apify_client.http_compressors._resolverM   ÚdatetimerN   Ú#apify_client.http_compressors._baserO   Úapify_client.typesrP   rR   r*  r}   r”   r’   ú<module>rY     sÎ   ðÝ "å %Ý  ç M÷	÷ 	ó 	õ *÷7÷ 7÷ 7÷ 7÷ 7÷ 7÷ 7÷ 7÷ 7÷ 7÷ 7÷ 7÷ 7÷ 7õp 6Ý 9ß hÓ hÝ EáÝ"åBÝ;ñ ÐÓ ÷a:ð a:ó !ða:ñH ÐÓ ÷g?ð g?ó !ñg?r”   