%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/cloudinit/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/cloudinit/__pycache__/url_helper.cpython-312.pyc

�

\�`f>p����ddlZddlZddlZddlZddlZddlZddlmZmZm	Z	ddl
mZddlm
Z
ddlmZddlmZddlmZddlmZmZmZmZmZmZmZdd	lmZmZmZddl Z dd
l m!Z!ddl"m#Z#ejHe%�Z&dZ'd
�Z(d�Z)dedfd�Z*Gd�d�Z+Gd�de+�Z,Gd�d�Z-Gd�de.�Z/d�Z0																d8de1de-fd�Z2	d9ded efd!e3d"e4d#ejjd$ee6defd%�Z7		d:ded efd'ee3d(e6d"e4def
d)�Z8e6d*�de&jrdddddddd&fd+e6d"ee6d,ed-eed.ee6d/eed0eeee6ge6fd1e3d2e1d3e6fd4�Z:Gd5�d6�Z;	d9d7�Z<y);�N)�ThreadPoolExecutor�TimeoutError�as_completed)�	parsedate)�ENOENT)�partial)�	NOT_FOUND)�count)�Any�Callable�Iterator�List�Optional�Tuple�Union)�quote�urlparse�
urlunparse)�
exceptions)�version�REDACTEDc�r�tt|d���}|ds|dr
|d|d<d|d<t|�S)N�http)�scheme���)�listrr)�url�
parsed_urls  �6/usr/lib/python3/dist-packages/cloudinit/url_helper.py�	_cleanurlr"$sC���h�s�6�2�3�J��a�=�Z��]�#�1�
�
�1�
��
�1�
��j�!�!�c�0�d�}|}|D]}|||�}�
|S)Nc��tt|��}|d}|r|jd�s|dz
}|tt	|�d��z
}||d<t|�S)Nr�/z/:)�safe)rr�endswithr�strr)r�add_on�
url_parsed�paths    r!�combine_singlez#combine_url.<locals>.combine_single/sY���(�3�-�(�
��!�}����
�
�c�*��C�K�D���c�&�k��-�-���
�1�
��*�%�%r#�)�base�add_onsr-rr*s     r!�combine_urlr1.s.��&��C��*���S�&�)��*��Jr#�return)�FileResponse�UrlResponsec��|j�}|jd�rd|z}|j�jd�rh|jd�rtjd|�|t
d�d}	t|d�5}|j�}ddd�t|�	�St|fi|��S#1swY�"xYw#t$r:}|j}|jtk(rt}t||d|��|�d}~wwxYw)
a0Wrapper function around readurl to allow passing a file path as url.

    When url is not a local file path, passthrough any kwargs to readurl.

    In the case of parameter passthrough to readurl, default values for some
    parameters. See: call-signature of readurl in this module for param docs.
    r&z	file://%szfile://�dataz'Unable to post data to file resource %sN�rb)�cause�code�headersr)�contents)�lstrip�
startswith�lower�get�LOG�warning�len�open�read�IOError�errnorr	�UrlErrorr3�readurl)r�kwargs�	file_path�fpr;�er9s       r!�read_file_or_urlrM>s����*�*�,�C�
�~�~�c���C���
�y�y�{���i�(��:�:�f���K�K�A�3�G���I��(�)�	�	M��i��&�
%�"��7�7�9��
%��I��9�9��s�%�f�%�%�
%�
%���	M��7�7�D��w�w�&� � �����t��E�1�L��		M�s0�<C�B:�C�:C�?C�	D	�5D�D	c� �eZdZdd�Zd�Zd�Zy)�StringResponsec�<�||_i|_||_d|_y�N)r9r:r;r)�selfr;r9s   r!�__init__zStringResponse.__init__^s����	���� ��
���r#c�$�|jdk7ryy)N��FT�r9�rR�argsrIs   r!�okzStringResponse.okds���9�9����r#c�8�|jjd�S)Nzutf-8)r;�decode�rRs r!�__str__zStringResponse.__str__is���}�}�#�#�G�,�,r#N�rU)�__name__�
__module__�__qualname__rSrYr]r.r#r!rOrO]s����
-r#rOc��eZdZdd�Zy)r3c�B�tj|||��||_y)NrV)rOrSr)rRr,r;r9s    r!rSzFileResponse.__init__ns������h�T��:���r#Nr^�r_r`rarSr.r#r!r3r3ms��r#r3c��eZdZdejfd�Zedefd��Zed��Z	dd�Z
ed��Zed��Zd	�Z
	dd
eededeefd�Zy
)r4�responsec��||_yrQ)�	_response)rRrfs  r!rSzUrlResponse.__init__ts	��!��r#r2c�\�|jj�y|jjS)Nr#)rh�contentr\s r!r;zUrlResponse.contentsws%���>�>�!�!�)���~�~�%�%�%r#c�.�|jjSrQ)rhrr\s r!rzUrlResponse.url}s���~�~�!�!�!r#c�@�d}|rd}d|jcxkr|kryyy)Ni,i�rUTFrV)rR�redirects_ok�uppers   r!rYzUrlResponse.ok�s-������E��$�)�)�#�e�#��$�r#c�.�|jjSrQ)rhr:r\s r!r:zUrlResponse.headers�s���~�~�%�%�%r#c�.�|jjSrQ)rh�status_coder\s r!r9zUrlResponse.code�s���~�~�)�)�)r#c�.�|jjSrQ)rh�textr\s r!r]zUrlResponse.__str__�s���~�~�"�"�"r#�
chunk_size�decode_unicodec#�XK�|jj||�Ed{���y7��w)atIterates over the response data.

        When stream=True is set on the request, this avoids reading the content
        at once into memory for large responses.

        :param chunk_size: Number of bytes it should read into memory.
        :param decode_unicode: If True, content will be decoded using the best
        available encoding based on the response.
        N)rh�iter_content)rRrtrus   r!rwzUrlResponse.iter_content�s"�����>�>�.�.�z�>�J�J�J�s� *�(�*N)F)rF)r_r`ra�requests�ResponserS�property�bytesr;rrYr:r9r]r�int�boolr
rwr.r#r!r4r4ss���"��!2�!2�"��&�%�&��&�
�"��"���&��&��*��*�#�EJ�K�"�3�-�K�=A�K�	�%��Kr#r4c��eZdZdd�Zy)rGNc��tj|t|��||_||_||_|j
�i|_||_yrQ)rErSr)r8r9r:r)rRr8r9r:rs     r!rSzUrlError.__init__�sC������s�5�z�*���
���	�����<�<���D�L���r#)NNNrdr.r#r!rGrG�s��r#rGc���i}t|�j}|dk(rE|rCd|vr|dr	|d|d<nd|d<d|vrd|vr|d|dg|d<|Sd|vrt|d�|d<|S)N�https�ca_certs�verifyT�	cert_file�key_file�cert)rrr))r�ssl_details�ssl_argsrs    r!�
_get_ssl_argsr��s����H�
�c�]�
!�
!�F�
���[���$��Z�)@�!,�Z�!8�H�X��!%�H�X���+�%�*��*C��K�(��J�'� �H�V���O��K�
'�"�;�{�#;�<�H�V���Or#Tr�streamc	�x��t|�}||d�}|jt||��|
|d<|s|rdnd}||d<|�.t|t�r||d<ntt
|�d�|d<|�g}d	}|rtt|�d	zd	�}d
dtj�zi}�r|j��|�|s�fd�}|}|r||d
<|�d}|�tj�}t�D�]}||�|d<i}|j�D]g\}}|d
k(r�|dk(rR|rP|D�cgc]}|j|�s�|��}}|s�7tj |�|<|D]}t"|||<��c|||<�i	|rt$j'd||
rdn|||�|j(di|��}|	r|j+�t$j'd||j,t/|j0�|d	z�t3|�cStId��cc}w#t4j6$r}t9||��|�d}~wt4j:$r�}t|t4j<�rZt?|d�rNt?|j@d�r8t9||j@j,|j@jB|��}n
t9||��}|r||j�|�s||�|
xs|d	z|k}|s||�|dkDr-|rt$j'd|�tEjF|�Yd}~��Cd}~wwxYw)a�Wrapper around requests.Session to read the url and retry if necessary

    :param url: Mandatory url to request.
    :param data: Optional form data to post the URL. Will set request_method
        to 'POST' if present.
    :param timeout: Timeout in seconds to wait for a response. May be a tuple
        if specifying (connection timeout, read timeout).
    :param retries: Number of times to retry on exception if exception_cb is
        None or exception_cb returns True for the exception caught. Default is
        to fail with 0 retries on exception.
    :param sec_between: Default 1: amount of seconds passed to time.sleep
        between retries. None or -1 means don't sleep.
    :param headers: Optional dict of headers to send during request
    :param headers_cb: Optional callable returning a dict of values to send as
        headers during request
    :param headers_redact: Optional list of header names to redact from the log
    :param ssl_details: Optional dict providing key_file, ca_certs, and
        cert_file keys for use on in ssl connections.
    :param check_status: Optional boolean set True to raise when HTTPError
        occurs. Default: True.
    :param allow_redirects: Optional boolean passed straight to Session.request
        as 'allow_redirects'. Default: True.
    :param exception_cb: Optional callable which accepts the params
        msg and exception and returns a boolean True if retries are permitted.
    :param session: Optional exiting requests.Session instance to reuse.
    :param infinite: Bool, set True to retry indefinitely. Default: False.
    :param log_req_resp: Set False to turn off verbose debug messages.
    :param request_method: String passed as 'method' to Session.request.
        Typically GET, or POST. Default: POST if data is provided, GET
        otherwise.
    :param stream: if False, the response content will be immediately
    downloaded.
    )rr��allow_redirects�POST�GET�methodN�timeoutrrz
User-Agentz
Cloud-Init/%sc����SrQr.)rr:s �r!�_cbzreadurl.<locals>._cbs����Nr#r6���r:z'[%s/%s] open '%s' with %s configuration�infinitez(Read from %s (%s, %sb) after %s attempts)rrfrq�r9r:r�1Please wait %s seconds while we wait to try againz"This path should be unreachable...r.)%r"�updater��
isinstance�tuple�max�floatr|r�version_stringrx�Sessionr
�itemsr?�copy�deepcopyrr@�debug�request�raise_for_statusrqrBrjr4r�SSLErrorrG�RequestException�	HTTPError�hasattrrfr:�time�sleep�RuntimeError)rr6r��retries�sec_betweenr:�
headers_cb�headers_redactr��check_statusr��exception_cb�sessionr��log_req_resp�request_methodr��req_args�manual_tries�def_headersr��i�filtered_req_args�k�v�matched_headers�key�rrL�	url_error�
will_retrys     `                         r!rHrH�sj���h�C�.�C����H�
�O�O�M�#�{�3�4�"1�H�
���#'��U��'�H�X�����g�u�%�")�H�Y��"%�e�G�n�a�"8�H�Y�������L���3�w�<�!�+�Q�/��	�o��)?�)?�)A�B��K�����7�#��G��	��
�������������"�"�$���W�L(��(��o�������n�n�&�
	)�F�Q���F�{���I�~�.�.<�"I�����a��1�"I��"I�"�+/�=�=��+;�%�a�(�.�=��4<�)�!�,�S�1�=�()�!�!�$�
	)�>	(���	�	�=��"*�J���%�� ����+�(�+�A���"�"�$��I�I�:���
�
��A�I�I���Q��
��q�>�!�ML(�\�;�
<�<��O#J��@�"�"�	.��1�#�&�A�-���*�*�!	(��1�z�3�3�5��A�z�*���J�J�
��%�����/�/��J�J�.�.��	�	�%�Q�C�0�	��L�����)�$L� �Q�&�!�;�a�!�e�l�&:�J���Q�&��Q����I�I�K�#���
�
�;�'���C!	(�s2�)H�H�=BH�L9�*H8�8L9�C L4�4L9�func.�addrr��event�delayc�>�|r|j|��ry|||�S)z Execute func with optional delay�r�N��wait�r�r�r�r�r�s     r!�_run_func_with_delayr�rs'��
�
�:�:�e�:�$����g��r#�333333�?�	addresses�
stagger_delayc
�2�d}d}d}g}tj�}tt|���}		t	|�D�
�cic]$\}
}|	jt|||||
|z��|��&}}
}t||��D]h}
||
}|
j�}|r|}|j|��/|
j�}|s�B|j�||fc|	jd��S|rtjd||�|�tjd|�t!d	��cc}}
w#t"$r8tjd
dj%|�dj%|��YnwxYw	|	jd��||fS#|	jd��wxYw)aexecute multiple callbacks in parallel

    Run blocking func against two different addresses staggered with a
    delay. The first call to return successfully is returned from this
    function and remaining unfinished calls are cancelled if they have not
    yet started
    N)�max_workersr�r�Fr�z<Exception(s) %s during request to %s, raising last exceptionzEmpty result for address %szNo result returnedzJTimed out waiting for addresses: %s, exception(s) raised while waiting: %s� )�	threading�EventrrB�	enumerate�submitr�r�	exception�append�result�set�shutdownr@rA�error�
ValueErrorr�join)r�r�r�r��
return_result�returned_address�last_exceptionr�is_done�executorr�r��futures�future�return_exceptions               r!�
dual_stackr��s����M����N��J��o�o��G�"�c�)�n�=�H�5&�%�Y�/�

���4�
�O�O�$������=�(�

�
��
�

��

�#�7�G�<�	=�F�&�v���%�/�/�1���!1��!�
�!�!�.�1� &�
�
��
� ��K�K�M�,�m�<�<�2	���u��%�O	=�$��K�K�-�� �	
�!� ��I�I�3�5E�F��1�2�2��S

��X�
����
4��H�H�Y���H�H�Z� �		
�
��	
�	���u��%��m�,�,��	���u��%�s=�D'�)D!�*AD'�<D'�$AD'�'>E(�%F�'E(�(F�F�inf�max_wait�	status_cbr��
sleep_timer��
sleep_time_cbr��connect_synchronously�async_delayc�n������	�������dtdtf�fd�}ddtdtdtfd��d	����fd
�����	fd��������fd�}
����fd
�}tj�}�r
|rtd��|
r|
n|}|xs|}d�d}	||��}|||||�}|r|\}}||jfS��||�rn`�dz�t
j
d|�tj|�tj�}|r||z|�zkDr�||z
z
}|dkrn��t
jd��y)a1	
    urls:      a list of urls to try
    max_wait:  roughly the maximum time to wait before giving up
               The max time is *actually* len(urls)*timeout as each url will
               be tried once and given the timeout provided.
               a number <= 0 will always result in only one try
    timeout:   the timeout provided to urlopen
    status_cb: call method with string message when a url is not available
    headers_cb: call method with single argument of url to get headers
                for request.
    headers_redact: a list of header names to redact from the log
    sleep_time: Amount of time to sleep between retries. If this and
                sleep_time_cb are None, the default sleep time
                defaults to 1 second and increases by 1 seconds every 5
                tries. Cannot be specified along with `sleep_time_cb`.
    exception_cb: call method with 2 arguments 'msg' (per status_cb) and
                  'exception', the exception that occurred.
    sleep_time_cb: call method with 2 arguments (response, loop_n) that
                   generates the next sleep time. Cannot be specified
                   along with 'sleep_time`.
    request_method: indicate the type of HTTP request, GET, PUT, or POST
    connect_synchronously: if false, enables executing requests in parallel
    async_delay: delay before parallel metadata requests, see RFC 6555
    returns: tuple of (url, response contents), on failure, (False, None)

    the idea of this routine is to wait for the EC2 metadata service to
    come up.  On both Eucalyptus and EC2 we have seen the case where
    the instance hit the MD before the MD service was up.  EC2 seems
    to have permanently fixed this, though.

    In openstack, the metadata service might be painfully slow, and
    unable to avoid hitting a timeout of even up to 10 seconds or more
    (LP: #894279) for a simple GET.

    Offset those needs with the need to not hang forever (and block boot)
    on a system where cloud-init is configured to look for EC2 Metadata
    service but is not going to find one.  It is possible that the instance
    data host (169.254.169.254) may be firewalled off Entirely for a system,
    meaning that the connection will block forever unless a timeout is set.

    The default value for max_wait will retry indefinitely.
    �loop_numberr2c������S|dzdzS)N�rr.)�_r�r�s  �r!�default_sleep_timez(wait_for_url.<locals>.default_sleep_times���'�3�z�M���9I�A�9M�Mr#rr��
start_timer�c�j�|td�dfvry|dkxstj�|z
|z|kDS)z4Check if time is up based on start time and max waitr�NFr)r�r�)r�r�r�s   r!�timeupzwait_for_url.<locals>.timeups?����e��d�+�+���A�
�
��I�I�K�*�$�z�1�H�<�	
r#c�F�|js?d|jz}tt|�|j|j|��}||fS|j�s?d|jz}tt|�|j|j|��}||fSd}d}||fS)z?Map requests response code/contents to internal "UrlError" typezempty response [%s]r�zbad status code [%s]rN)r;r9rGr�r:rY)rfr�reason�url_excs    r!�handle_url_responsez)wait_for_url.<locals>.handle_url_responses���� � �*�h�m�m�<�F���6�"��]�]� �(�(��	�G�"�� � �����+�x�}�}�=�F���6�"��]�]� �(�(��	�G��� � ��F��G��� � r#c�l��d}d}	||�\}}�
||�\}}|s||fS	ttj�|z
�}
�rd�znd}d|xs
t	|dd	��d
|
�d|�d|��}||�|r|||�
�yy#t$r}	d|	z}|	}Yd}	~	�qd}	~	wt$r}	d|	z}|	}Yd}	~	��d}	~	wwxYw)z:Execute request, handle response, optionally log exceptionrNzrequest error [%s]zunexpected error [%s]z%ss�	unlimitedz	Calling 'rz
url ? Nonez
' failed [r&z]: )�msgr�)rG�	Exceptionr|r��getattr)�
url_reader_cb�urlsr��exc_cb�log_cbr�rrfr�rL�
time_taken�max_wait_str�
status_msgr�r�s             ��r!�read_url_handle_exceptionsz0wait_for_url.<locals>.read_url_handle_exceptions2s��������
	�)�$�/�M�C��1�(�C�@�O�G�V���X��&�������z�1�2�
�+3�u�x�'����8�7�7�E�<�8�8����	
�
�	�z���
�z�W�5�	���	�)�A�-�F��G���	�,�q�0�F��G��	�s#�B�	B3�
B�B3�"B.�.B3c�:��t|��in�|��|d���S)NF)r:r�r�r�r�)rH)rr�r�r�r�s  ���r!�read_url_cbz!wait_for_url.<locals>.read_url_cbRs-�����$�,�B�*�S�/�)���)�

�	
r#c������
�fd�}�
D]X}tj�}�dk7r+��	|�ry�	��r|�z|�	zkDrt|�	z|z
���|||||�}|s�V|cSy)z|iterate over list of urls, request each one and handle responses
        and thrown exceptions individually per url
        c���|�|��fSrQr.)rrr�s ��r!�url_reader_serialz@wait_for_url.<locals>.read_url_serial.<locals>.url_reader_serialas�����S�'�2�3�3r#rN)r�r|)r�r�rrr
r�now�out�loop_nr�rrr�r�s `      ������r!�read_url_serialz%wait_for_url.<locals>.read_url_serial\s����
	4��	�C��)�)�+�C���{��(�J�/���(���w��*�x�*?�@�"�:��#8�C�"?�@�G�,�!�3�
�F�F��C���
�#	r#c�L��tt��|��}�|�	|||�}|r|Sy)z�pass list of urls to dual_stack which sends requests in parallel
        handle response and exceptions of the first endpoint to respond
        )r�r�N)rr�)
r�r�rr�url_reader_parallelrr�rrr�s
      ����r!�read_url_parallelz'wait_for_url.<locals>.read_url_parallelwsB���&���%��	
��)���z�6�6�
����J�r#z3sleep_time and sleep_time_cb are mutually exclusiveNrr�z$Timed out, no response from urls: %s)FN)r)	r|r�r�r�r;r@r�r�r�)r�r�r�r�r�r�r�r�r�r�r�r�r�rrr��do_read_url�calculate_sleep_timerf�current_sleep_timer�address�current_timer�r
rrr�s``  ```  ` `           @@@@@r!�wait_for_urlr�sd����rN�3�N�5�N�
��
�E�
�u�
�!�.6�@
���6� ����J��m��N�O�O�1��6G��)�>�,>���F��H�
�1�(�F�C���*�g�|�Y�G��� #��G�X��X�.�.�/�/��(�J�(:�;���!����	�	�?��	
�	
�
�
�%�&��y�y�{���|�g�-�
�X�0E�E��,��";�<�G��!�|��1�4�I�I�4�d�;�r#c�T�eZdZ					dd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d	�Z
d
�Zd�Zy)
�OauthUrlHelperNc�<�||_|xsd|_||_||_||_d|_d|_|j|j|jf}t|�sd|_nt|�std��|j�}|xsi|_y)NrTr�FzBall or none of token_key, token_secret, or consumer_key can be set)�consumer_key�consumer_secret�	token_key�token_secret�skew_data_file�	_do_oauth�skew_change_limit�any�allr��read_skew_file�	skew_data)rRrrrrr�required�olds        r!rSzOauthUrlHelper.__init__�s���)���.�4�"���"���(���,������!"����N�N�D�$5�$5�t�7H�7H�I���8�}�"�D�N��X���*��
�
�!�!�#������r#c���|jr_tjj|j�r6t	|jd��5}tj|�cddd�Sy#1swYyxYw)Nr���mode)r�osr,�isfilerC�json�load)rRrKs  r!r$zOauthUrlHelper.read_skew_file�sX�����2�7�7�>�>�$�2E�2E�#F��d�)�)��4�
%���y�y��}�
%�
%��
%��s�
A-�-A6c���|jsy|j�}|�i}|||<t|jd��5}|jt	j
|��ddd�y#1swYyxYw)N�wr))rr$rC�writer-�dumps)rR�host�value�currKs     r!�update_skew_filezOauthUrlHelper.update_skew_file�sj���"�"���!�!�#���;��C���D�	�
�$�%�%�C�
0�	&�B��H�H�T�Z�Z��_�%�	&�	&�	&�s�%A,�,A5c���t|t�r|jdk(s|jdk(syd|jvr!tjd|j�y|jd}	t
jt|��}t|t
j�z
�}t|j�j}|jj|d�}t!||z
�|j"kDr)|j%||�tjd||�||j|<y#t$r!}tjd||�Yd}~yd}~wwxYw)Ni�i��datez$Missing header 'date' in %s responsez#Failed to convert datetime '%s': %srz$Setting oauth clockskew for %s to %d)r�rGr9r:r@rAr��mktimerr�r|rr�netlocr%r?�absr!r6)	rRr�r�r8�remote_timerL�skewr3�old_skews	         r!r�zOauthUrlHelper.exception_cb�s!���y�(�+����3�&�)�.�.�C�*?����*�*�*��K�K�>�	���O��� � ��(��	��+�+�i��o�6�K�
�;�����,�-���	�
�
�&�-�-���>�>�%�%�d�A�.���x�$���$�"8�"8�8��!�!�$��-��K�K�>��d�K�#����t�����	��K�K�=�t�Q�G���	�s�/D<�<	E&�E!�!E&c�L�|jsiSd}t|�j}|jr;||jvr-t	tj
��|j|z}t
||j|j|j|j|��S)N)rrrrr�	timestamp)r rr:r%r|r��
oauth_headersrrrr)rRrr@r3s    r!r�zOauthUrlHelper.headers_cb�s����~�~��I��	���}�#�#���>�>�d�d�n�n�4��D�I�I�K�(�4�>�>�$�+?�?�I����*�*��n�n��*�*� �0�0��

�	
r#c��t|j|jd��|d<t|j|jd��|d<||i|��S)Nr�r�)r�_headers_cbr?�
_exception_cb)rR�wrapped_funcrXrIs    r!�_wrappedzOauthUrlHelper._wrappeds\��&����f�j�j��6� 
��|��")�����
�
�>� :�"
��~���T�,�V�,�,r#c�0�|jt||�SrQ)rFrrWs   r!rzOauthUrlHelper.wait_for_urls���}�}�\�4��8�8r#c�0�|jt||�SrQ)rFrHrWs   r!rHzOauthUrlHelper.readurls���}�}�W�d�F�3�3r#c�t�d}	|r	|||�}|j||�|S#|j||�wxYwrQ)r�)rR�extra_exception_cbr�r��rets     r!rDzOauthUrlHelper._exception_cb sD����	.�!�(��i�8�����c�9�-��
��
���c�9�-�s�#�7c�^�i}|r||�}|j|j|��|SrQ)r�r�)rR�extra_headers_cbrr:s    r!rCzOauthUrlHelper._headers_cb)s.�����&�s�+�G����t���s�+�,��r#)NNNNz/run/oauth_skew.json)
r_r`rarSr$r6r�r�rFrrHrDrCr.r#r!rr�sE������-�
#�6�	&��8
�$-�9�4��r#rc���	ddlm}|rt	|�}nd}|j|||||j|��}|j|�\}	}
}|
S#t$r}td�|�d}~wwxYw)Nrzoauth support is not available)�
client_secret�resource_owner_key�resource_owner_secret�signature_methodr@)�oauthlib.oauth1�oauth1�ImportError�NotImplementedErrorr)�Client�SIGNATURE_PLAINTEXT�sign)rrrrrr@rTrL�client�_uri�signed_headers�_bodys            r!rArA1s���K�(���	�N�	��	�
�]�]��%�$�*��3�3��
��F�#)�+�+�c�"2��D�.�%����#�K�!�"B�C��J��K�s�A�	A*�A%�%A*)NNrrNNNNTTNNFTrFrQ)r��
)=r�r-�loggingr+r�r��concurrent.futuresrrr�email.utilsrrFr�	functoolsr�http.clientr	�	itertoolsr
�typingrrr
rrrr�urllib.parserrrrxr�	cloudinitr�	getLoggerr_r@rr"r1rMrOr3r4rErGr�r}rHr)r|r�r�r�r�r�rrrAr.r#r!�<module>risz�����	���M�M�!���!��H�H�H�4�4�����g����!����"�
� &�u�-J�'K�&�>
-�
-� �>��.K�.K�b�w���(
��
����������
����#n=�"
�#n=�$�%n=�l"��
�3��8�
��

�����?�?�	�
�E�?��	�
�*!��	P-�
�3��8�
�P-��C�y�P-��P-��	P-�
�P-�j�E�l�#��)�)�%)��"&�'+�=A��"&��\��\��e�_�\��	\�
��"�\����\��8�$�\��H�c�5�\�5�%8�9�:�\��\� �\��\�~x�x�xLP�r#

Zerion Mini Shell 1.0