HEX
Server: LiteSpeed
System: Linux php-prod-1.spaceapp.ru 5.15.0-157-generic #167-Ubuntu SMP Wed Sep 17 21:35:53 UTC 2025 x86_64
User: xnsbb3110 (1041)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: //usr/local/CyberPanel/lib64/python3.10/site-packages/yaml/__pycache__/__init__.cpython-310.pyc
o

��h0�@s�ddlTddlTddlTddlTddlTddlTdZzddlTdZWne	y-dZYnwddl
Z
d@dd�Zefd	d
�Z
efdd�Zefd
d�Zefdd�Zdd�Zdd�Zdd�Zdd�Zdd�Zdd�Zdd�Zdd �Zdedddddfd!d"�Zdeddddddddddfd#d$�Zdefd%d&�Zdedddddddddddddfd'd(�Zdefd)d*�Zd@d+d,�Zd@d-d.�Z ddefd/d0�Z!ddefd1d2�Z"d@d3d4�Z#d@d5d6�Z$efd7d8�Z%efd9d:�Z&Gd;d<�d<e'�Z(Gd=d>�d>e(d?�Z)dS)A�)�*z6.0.1TF�NcCs|duriSdS�N�)�settingsrr�C/usr/local/CyberPanel/lib/python3.10/site-packages/yaml/__init__.py�warningss�rcc�L�||�}z|��r|��V|��s
W|��dSW|��dS|��w)z9
    Scan a YAML stream and produce scanning tokens.
    N)�check_token�	get_token�dispose��stream�Loader�loaderrrr�scan��

��rccr	)z9
    Parse a YAML stream and produce parsing events.
    N)�check_event�	get_eventrr
rrr�parse(rrcC�&||�}z	|��W|��S|��w)zj
    Parse the first YAML document in a stream
    and produce the corresponding representation tree.
    )�get_single_noderr
rrr�compose3�rccr	)zb
    Parse all YAML documents in a stream
    and produce corresponding representation trees.
    N)�
check_node�get_noderr
rrr�compose_all>��

��rcCr)zd
    Parse the first YAML document in a stream
    and produce the corresponding Python object.
    )�get_single_datarr
rrr�loadJrrccr	)z\
    Parse all YAML documents in a stream
    and produce corresponding Python objects.
    N)�
check_data�get_datarr
rrr�load_allUrr"cC�
t|t�S)z�
    Parse the first YAML document in a stream
    and produce the corresponding Python object.

    Resolve all tags except those known to be
    unsafe on untrusted input.
    )r�
FullLoader�rrrr�	full_loada�
r&cCr#)z�
    Parse all YAML documents in a stream
    and produce corresponding Python objects.

    Resolve all tags except those known to be
    unsafe on untrusted input.
    )r"r$r%rrr�
full_load_allkr'r(cCr#)z�
    Parse the first YAML document in a stream
    and produce the corresponding Python object.

    Resolve only basic YAML tags. This is known
    to be safe for untrusted input.
    )r�
SafeLoaderr%rrr�	safe_loadur'r*cCr#)z�
    Parse all YAML documents in a stream
    and produce corresponding Python objects.

    Resolve only basic YAML tags. This is known
    to be safe for untrusted input.
    )r"r)r%rrr�
safe_load_allr'r+cCr#)z�
    Parse the first YAML document in a stream
    and produce the corresponding Python object.

    Resolve all tags, even those known to be
    unsafe on untrusted input.
    )r�UnsafeLoaderr%rrr�unsafe_load�r'r-cCr#)z�
    Parse all YAML documents in a stream
    and produce corresponding Python objects.

    Resolve all tags, even those known to be
    unsafe on untrusted input.
    )r"r,r%rrr�unsafe_load_all�r'r.cCshd}|dur
t��}|j}|||||||d�}	z|D]}
|	�|
�qW|	��n|	��w|r2|�SdS)zl
    Emit YAML parsing events into a stream.
    If stream is None, return the produced string instead.
    N)�	canonical�indent�width�
allow_unicode�
line_break)�io�StringIO�getvalue�emitr)�eventsr�Dumperr/r0r1r2r3r6�dumper�eventrrrr7�s
���r7c

Cs�d}
|dur|durt��}nt��}|j}
|||||||||||	|
d�}z|��|D]}|�|�q,|��W|��n|��w|
rH|
�SdS)z�
    Serialize a sequence of representation trees into a YAML stream.
    If stream is None, return the produced string instead.
    N)
r/r0r1r2r3�encoding�version�tags�explicit_start�explicit_end)r4r5�BytesIOr6�open�	serialize�closer)�nodesrr9r/r0r1r2r3r<r?r@r=r>r6r:�noderrr�
serialize_all�s(	

�
�rGcK�t|g|fd|i|��S)zx
    Serialize a representation tree into a YAML stream.
    If stream is None, return the produced string instead.
    r9)rG)rFrr9�kwdsrrrrC��rCcCs�d}|dur|
durt��}nt��}|j}|||||||||	|
|
||||d�}z|��|D]}|�|�q/|��W|��n|��w|rK|�SdS)z
    Serialize a sequence of Python objects into a YAML stream.
    If stream is None, return the produced string instead.
    N)
�
default_style�default_flow_styler/r0r1r2r3r<r=r>r?r@�	sort_keys)r4r5rAr6rB�	representrDr)�	documentsrr9rKrLr/r0r1r2r3r<r?r@r=r>rMr6r:�datarrr�dump_all�s,

�
�rQcKrH)zr
    Serialize a Python object into a YAML stream.
    If stream is None, return the produced string instead.
    r9)rQ)rPrr9rIrrr�dump�rJrRcKst||fdti|��S)z�
    Serialize a sequence of Python objects into a YAML stream.
    Produce only basic YAML tags.
    If stream is None, return the produced string instead.
    r9�rQ�
SafeDumper)rOrrIrrr�
safe_dump_all�srUcKst|g|fdti|��S)z�
    Serialize a Python object into a YAML stream.
    Produce only basic YAML tags.
    If stream is None, return the produced string instead.
    r9rS)rPrrIrrr�	safe_dumpsrVcC�Z|durtj�|||�tj�|||�tj�|||�n|�|||�|�|||�dS)z�
    Add an implicit scalar detector.
    If an implicit scalar value matches the given regexp,
    the corresponding tag is assigned to the scalar.
    first is a sequence of possible initial characters or None.
    N)rr�add_implicit_resolverr$r,)�tag�regexp�firstrr9rrrrXsrXcCrW)z�
    Add a path based resolver for the given tag.
    A path is a list of keys that forms a path
    to a node in the representation tree.
    Keys can be string values, integers, or None.
    N)rr�add_path_resolverr$r,)rY�path�kindrr9rrrr\sr\cC�F|durtj�||�tj�||�tj�||�dS|�||�dS)z�
    Add a constructor for the given tag.
    Constructor is a function that accepts a Loader instance
    and a node object and produces the corresponding Python object.
    N)rr�add_constructorr$r,)rY�constructorrrrrr`.s
r`cCr_)a
    Add a multi-constructor for the given tag prefix.
    Multi-constructor is called for a node if its tag starts with tag_prefix.
    Multi-constructor accepts a Loader instance, a tag suffix,
    and a node object and produces the corresponding Python object.
    N)rr�add_multi_constructorr$r,)�
tag_prefix�multi_constructorrrrrrb;s
rbcC�|�||�dS)z�
    Add a representer for the given type.
    Representer is a function accepting a Dumper instance
    and an instance of the given data type
    and producing the corresponding representation node.
    N)�add_representer)�	data_type�representerr9rrrrfI�rfcCre)z�
    Add a representer for the given type.
    Multi-representer is a function accepting a Dumper instance
    and an instance of the given data type or subtype
    and producing the corresponding representation node.
    N)�add_multi_representer)rg�multi_representerr9rrrrjRrirjcs eZdZdZ�fdd�Z�ZS)�YAMLObjectMetaclassz'
    The metaclass for YAMLObject.
    cs�tt|��|||�d|vr<|ddur>t|jt�r)|jD]
}|�|j|j�qn	|j�|j|j�|j	�
||j�dSdSdS)N�yaml_tag)�superrl�__init__�
isinstance�yaml_loader�listr`rm�	from_yaml�yaml_dumperrf�to_yaml)�cls�name�basesrIr��	__class__rrro_s
��zYAMLObjectMetaclass.__init__)�__name__�
__module__�__qualname__�__doc__ro�
__classcell__rrryrrl[srlc@sBeZdZdZdZeeegZe	Z
dZdZe
dd��Ze
dd��ZdS)�
YAMLObjectza
    An object that can dump itself to a YAML stream
    and load itself from a YAML stream.
    rNcCs|�||�S)zC
        Convert a representation node to a Python object.
        )�construct_yaml_object)rvrrFrrrrsxszYAMLObject.from_yamlcCs|j|j|||jd�S)zC
        Convert a Python object to a representation node.
        )�
flow_style)�represent_yaml_objectrm�yaml_flow_style)rvr:rPrrrrus�zYAMLObject.to_yaml)r{r|r}r~�	__slots__rr$r,rqr9rtrmr��classmethodrsrurrrrr�js

r�)�	metaclassr)*�error�tokensr8rErr:�__version__�cyaml�__with_libyaml__�ImportErrorr4rrrrrrrr"r&r(r*r+r-r.r9r7rGrCrQrRrUrVrXr\r`rbrfrj�typerlr�rrrr�<module>st�







�
�
�!


�