✘✘ GRAYBYTE WORDPRESS FILE MANAGER ✘✘

​🇳​​🇦​​🇲​​🇪♯➤ server.blackpussy.asia ​🇻​♯➤ 5.14.0-611.20.1.el9_7.x86_64 #1 SMP 🇾​♯➤ 2026

𝗛𝗢𝗠𝗘 𝗜𝗗 ♯➤ 163.245.207.76 ♯➤ 𝗔𝗗𝗠𝗜𝗡 𝗜𝗗 216.73.216.243
𝗢𝗣𝗧𝗜𝗢𝗡𝗦 ♯ CRL ♯➤ 𝗢𝗞 ┃ WGT ♯➤ 𝗢𝗞 ┃ SDO ♯➤ 𝗢𝗞 ┃ PKEX ♯➤ 𝗢𝗙𝗙
𝗗𝗘𝗔𝗖𝗧𝗜𝗩𝗔𝗧𝗘𝗗 ♯➤ mail,mb_send_mail
𝗖𝗨𝗥𝗥𝗘𝗡𝗧 𝗙𝗜𝗟𝗘 : /usr/lib/python3.9/site-packages/dns/__pycache__//name.cpython-39.opt-1.pyc
a

�M�e���@s�dZddlZddlZddlZddlZddlmZmZm	Z	m
Z
mZmZm
Z
ddlZddlZddlZddlZddlZej�d�r�ddlZdZndZe	defZGdd	�d	ejj�ZejZejZ ej!Z"ej#Z$ej%Z&Gd
d�dej'j(�Z)Gdd
�d
ej'j(�Z*Gdd�dej'j+�Z,Gdd�dej'j+�Z-Gdd�dej'j.�Z/Gdd�dej'j+�Z0Gdd�dej'j(�Z1Gdd�dej'j.�Z2Gdd�dej'j.�Z3Gdd�dej'j.�Z4Gdd�dej'j.�Z5Gd d!�d!ej'j.�Z6d"Z7d#Z8e
e9e:fe:d$�d%d&�Z;Gd'd(�d(�Z<Gd)d*�d*e<�Z=Gd+d,�d,e<�Z>e=d�Z?e=d�Z@e?ZAe>dddd�ZBe>dddd�ZCe>dddd�ZDe>dddd�ZEeBZFee9d-fdd.�d/d0�ZGe
e9e:fe9d$�d1d2�ZHejIjIGd3d�d��ZJeJd4g�ZKeJg�ZLeKdfe:eeJee<eJd5�d6d7�ZMe:eNd8�d9d:�ZOeKdfe
e9e:feeJee<eJd5�d;d<�ZPd=eJd>�d?d@�ZQe9eeeJefdA�dBdC�ZRdDZSeTeS�ZUeJeSg�ZVdEZWeTeW�ZXeTdF�ZYeTdG�ZZdHdI�Z[dJdK�Z\dLdM�Z]eJeJeNeJdN�dOdP�Z^eJeJeNeJdN�dQdR�Z_eeJeJeNgeJfeJeJeNeJdS�dTdU�Z`dS)VzDNS Names.
�N)�Any�Callable�Dict�Iterable�Optional�Tuple�Union�idnaTF�Namec@s<eZdZdZdZdZdZdZdZe	dd��Z
e	d	d
��ZdS)�NameRelationz(Name relation result from fullcompare().r����cCs|jS�N)�COMMONANCESTOR��cls�r�,/usr/lib/python3.9/site-packages/dns/name.py�_maximum<szNameRelation._maximumcCs|jSr)�__name__rrrr�_short_name@szNameRelation._short_nameN)r�
__module__�__qualname__�__doc__�NONE�SUPERDOMAIN�	SUBDOMAIN�EQUALr�classmethodrrrrrrr+s
rc@seZdZdZdS)�
EmptyLabelzA DNS label is empty.N�rrrrrrrrr!Msr!c@seZdZdZdS)�	BadEscapez8An escaped code in a text format of DNS name is invalid.Nr"rrrrr#Qsr#c@seZdZdZdS)�
BadPointerz=A DNS compression pointer points forward instead of backward.Nr"rrrrr$Usr$c@seZdZdZdS)�BadLabelTypez2The label type in DNS name wire format is unknown.Nr"rrrrr%Ysr%c@seZdZdZdS)�NeedAbsoluteNameOrOriginzvAn attempt was made to convert a non-absolute name to
    wire when there was also a non-absolute (or missing) origin.Nr"rrrrr&]sr&c@seZdZdZdS)�NameTooLongz A DNS name is > 255 octets long.Nr"rrrrr'bsr'c@seZdZdZdS)�LabelTooLongz A DNS label is > 63 octets long.Nr"rrrrr(fsr(c@seZdZdZdS)�AbsoluteConcatenationz]An attempt was made to append anything other than the
    empty name to an absolute DNS name.Nr"rrrrr)jsr)c@seZdZdZdS)�NoParentzMAn attempt was made to get the parent of the root name
    or the empty name.Nr"rrrrr*osr*c@seZdZdZdS)�
NoIDNA2008zLIDNA 2008 processing was requested but the idna module is not
    available.Nr"rrrrr+tsr+cs*eZdZdZdhZdZ�fdd�Z�ZS)�
IDNAExceptionz$IDNA processing raised an exception.�idna_exceptionz+IDNA processing exception: {idna_exception}cst�j|i|��dSr)�super�__init__)�self�args�kwargs��	__class__rrr/�szIDNAException.__init__)rrrrZsupp_kwargsZfmtr/�
__classcell__rrr3rr,ysr,c@seZdZdZdS)�NeedSubdomainOfOriginzNAn absolute name was provided that is not a subdomain of the specified origin.Nr"rrrrr6�sr6s"().;\@$z"().;\@$��label�returncCs�t|t�r`d}|D]H}|tvr0|dt|�7}q|dkrN|dkrN|t|�7}q|d|7}q|Sd}|D]<}|tvr�|d|7}qh|dkr�|dt|�7}qh||7}qh|S)zaEscape the characters in label which need it.
    @returns: the escaped string
    @rtype: string��\� �z\%03d� )�
isinstance�bytes�_escaped�chr�
_escaped_text�ord)r8�text�cZucrrr�	_escapify�s"

rGc@sHeZdZdZdd�Zeed�dd�Zeed�dd�Z	eed�d	d
�Z
dS)�	IDNACodecz.Abstract base class for IDNA encoder/decoders.cCsdSrr�r0rrrr/�szIDNACodec.__init__r7cCs|���d�S)Nsxn--)�lower�
startswith�r0r8rrr�is_idna�szIDNACodec.is_idnacCst�dSr)�NotImplementedErrorrLrrr�encode�szIDNACodec.encodec
Csd|�|�rXz|dd��d�}t|�WStyT}zt|d��WYd}~q`d}~00nt|�SdS)NrZpunycode�r-)rM�decoderG�	Exceptionr,)r0r8Zslabel�errrrQ�s

"zIDNACodec.decodeN)rrrrr/r@�boolrM�strrOrQrrrrrH�s
rHcsLeZdZdZded��fdd�
Zeed�dd�Zeed��fd	d
�Z	�Z
S)�
IDNA2003CodeczIDNA 2003 encoder/decoder.F)�
strict_decodecst���||_dS)z�Initialize the IDNA 2003 encoder/decoder.

        *strict_decode* is a ``bool``. If `True`, then IDNA2003 checking
        is done when decoding.  This can cause failures if the name
        was encoded with IDNA2008.  The default is `False`.
        N)r.r/rW)r0rWr3rrr/�s
zIDNA2003Codec.__init__r7cCs6|dkrdSztj�|�WSty0t�Yn0dS)zEncode *label*.r:�N)�	encodingsr	ZToASCII�UnicodeErrorr(rLrrrrO�szIDNA2003Codec.encodec
sd|jst��|�S|dkrdSzttj�|��WSty^}zt|d��WYd}~n
d}~00dS)zDecode *label*.rXr:rPN)	rWr.rQrGrYr	Z	ToUnicoderRr,)r0r8rSr3rrrQ�szIDNA2003Codec.decode)F�rrrrrTr/rUr@rOrQr5rrr3rrV�s
rVcsReZdZdZdeeeed��fdd�
Zeed�dd�Zeed��fd	d
�Z	�Z
S)�
IDNA2008CodeczIDNA 2008 encoder/decoder.F)�uts_46�transitional�allow_pure_asciirWcs&t���||_||_||_||_dS)aInitialize the IDNA 2008 encoder/decoder.

        *uts_46* is a ``bool``.  If True, apply Unicode IDNA
        compatibility processing as described in Unicode Technical
        Standard #46 (https://unicode.org/reports/tr46/).
        If False, do not apply the mapping.  The default is False.

        *transitional* is a ``bool``: If True, use the
        "transitional" mode described in Unicode Technical Standard
        #46.  The default is False.

        *allow_pure_ascii* is a ``bool``.  If True, then a label which
        consists of only ASCII characters is allowed.  This is less
        strict than regular IDNA 2008, but is also necessary for mixed
        names, e.g. a name with starting with "_sip._tcp." and ending
        in an IDN suffix which would otherwise be disallowed.  The
        default is False.

        *strict_decode* is a ``bool``: If True, then IDNA2008 checking
        is done when decoding.  This can cause failures if the name
        was encoded with IDNA2003.  The default is False.
        N)r.r/r]r^r_rW)r0r]r^r_rWr3rrr/�s

zIDNA2008Codec.__init__r7c
Cs�|dkrdS|jr8t|�r8|�d�}t|�dkr4t�|Sts@t�z"|jrXt�	|d|j
�}t�|�WStjy�}z*|j
ddkr�t�n
t|d��WYd}~n
d}~00dS)	Nr:rX�ascii�?FrzLabel too longrP)r_�is_all_asciirO�lenr(�have_idna_2008r+r]r	�uts46_remapr^Zalabel�	IDNAErrorr1r,)r0r8ZencodedrSrrrrOs"
zIDNA2008Codec.encodec
s�|jst��|�S|dkrdSts&t�z*t�|�}|jrHt�|d|j	�}t
|�WStjtfy�}zt
|d��WYd}~n
d}~00dS)NrXr:FrP)rWr.rQrdr+r	�ulabelr]rer^rGrfrZr,)r0r8rgrSr3rrrQ s

zIDNA2008Codec.decode)FFFFr[rrr3rr\�s��#r\.)�labelsr9cCs�t|�}d}d}d}|D]@}t|�}||d7}|dkr<t�|dkrP|dkrP|}|d7}q|dkrft�|dkr~||dkr~t�dS)aXCheck for empty labels in the middle of a label sequence,
    labels that are too long, and for too many labels.

    Raises ``dns.name.NameTooLong`` if the name as a whole is too long.

    Raises ``dns.name.EmptyLabel`` if a label is empty (i.e. the root
    label) and appears in a position other than the end of the label
    sequence

    r���rrarX�N)rcr(r'r!)rh�l�total�i�jr8Zllrrr�_validate_labels:s 
rocCs(t|t�r|St|t�r |��St�dS)zcIf label is ``str``, convert it to ``bytes``.  If it is already
    ``bytes`` just return it.

    N)r?r@rUrO�
ValueError)r8rrr�_maybe_convert_to_binaryXs


rqcs*eZdZdZdgZeeeefd�dd�Z	dd�Z
dd	�Zd
d�Z�fdd
�Z
ed�dd�Zed�dd�Zed�dd�Zdeeeefd�dd�Zded�dd�Zded�dd�Zdd�dd�Zdd�Zd d!�Zd"d#�Zd$d%�Zd&d'�Zd(d)�Zd*d+�Zd,d-�Z dYeed/�d0d1�Z!dZee"e#ed3�d4d5�Z$d[e"ded6�d7d8�Z%d\e"e&e"e'e"dee"ed9�d:d;�Z(ed�d<d=�Z)d>d?�Z*d@dA�Z+dBdC�Z,eedDdE�dFdG�Z-ddd�dHdI�Z.ddd6�dJdK�Z/ddd6�dLdM�Z0d]e"deddO�dPdQ�Z1dd�dRdS�Z2d^deddT�dUdV�Z3d_deddT�dWdX�Z4�Z5S)`r
z�A DNS name.

    The dns.name.Name class represents a DNS name as a tuple of
    labels.  Each label is a ``bytes`` in DNS wire format.  Instances
    of the class are immutable.
    rh�rhcCs&dd�|D�}t|�|_t|j�dS)z?*labels* is any iterable whose values are ``str`` or ``bytes``.cSsg|]}t|��qSr)rq��.0�xrrr�
<listcomp>srXz!Name.__init__.<locals>.<listcomp>N)�tuplerhro)r0rhZblabelsrrrr/ps
z
Name.__init__cCs
t|j�Sr�r
rhrIrrr�__copy__wsz
Name.__copy__cCstt�|j|��Sr)r
�copy�deepcopyrh)r0�memorrr�__deepcopy__zszName.__deepcopy__cCs
d|jiS�NrhrrrIrrr�__getstate__}szName.__getstate__cs t��d|d�t|j�dSr~)r.�__setattr__rorh)r0�stater3rr�__setstate__�szName.__setstate__)r9cCst|j�dko|jddkS)z`Is the most significant label of this name the root label?

        Returns a ``bool``.
        rrirX�rcrhrIrrr�is_absolute�szName.is_absolutecCst|j�dko|jddkS)zdIs this name wild?  (I.e. Is the least significant label '*'?)

        Returns a ``bool``.
        r�*r�rIrrr�is_wild�szName.is_wildcCs2d}|jD]"}|��D]}||d>|7}qq
|S)zQReturn a case-insensitive hash of the name.

        Returns an ``int``.
        rr)rhrJ)r0�hr8rFrrr�__hash__�s

z
Name.__hash__)�otherr9c
Cs8|��}|��}||kr4|r(tjddfStjddfSt|j�}t|j�}||}|dkr^|}n|}d}d}	tj}
|dk�r|d8}|d8}|d8}|j|��}|j|��}||kr�d}|	dkr�tj}
|
||	fS||kr�d}|	dkr�tj}
|
||	fS|	d7}	qp|}|dk�rtj}
n|dk�r(tj}
ntj	}
|
||	fS)a�Compare two names, returning a 3-tuple
        ``(relation, order, nlabels)``.

        *relation* describes the relation ship between the names,
        and is one of: ``dns.name.NameRelation.NONE``,
        ``dns.name.NameRelation.SUPERDOMAIN``, ``dns.name.NameRelation.SUBDOMAIN``,
        ``dns.name.NameRelation.EQUAL``, or ``dns.name.NameRelation.COMMONANCESTOR``.

        *order* is < 0 if *self* < *other*, > 0 if *self* > *other*, and ==
        0 if *self* == *other*.  A relative name is always less than an
        absolute name.  If both names have the same relativity, then
        the DNSSEC order relation is used to order them.

        *nlabels* is the number of significant labels that the two names
        have in common.

        Here are some examples.  Names ending in "." are absolute names,
        those not ending in "." are relative names.

        =============  =============  ===========  =====  =======
        self           other          relation     order  nlabels
        =============  =============  ===========  =====  =======
        www.example.   www.example.   equal        0      3
        www.example.   example.       subdomain    > 0    2
        example.       www.example.   superdomain  < 0    2
        example1.com.  example2.com.  common anc.  < 0    2
        example1       example2.      none         < 0    0
        example1.      example2       none         > 0    0
        =============  =============  ===========  =====  =======
        rrri)
r�rrrcrhrJrrrr)
r0r�ZsabsZoabs�l1�l2Zldiffrk�orderZnlabelsZnamerelnZlabel1Zlabel2rrr�fullcompare�sN 







zName.fullcomparecCs,|�|�\}}}|tjks$|tjkr(dSdS)z�Is self a subdomain of other?

        Note that the notion of subdomain includes equality, e.g.
        "dnspython.org" is a subdomain of itself.

        Returns a ``bool``.
        TF)r�rrr�r0r��nr�_rrr�is_subdomain�s	zName.is_subdomaincCs,|�|�\}}}|tjks$|tjkr(dSdS)z�Is self a superdomain of other?

        Note that the notion of superdomain includes equality, e.g.
        "dnspython.org" is a superdomain of itself.

        Returns a ``bool``.
        TF)r�rrrr�rrr�is_superdomain�s	zName.is_superdomaincCstdd�|jD��S)zcReturn a name which is equal to the current name, but is in
        DNSSEC canonical form.
        cSsg|]}|���qSr)rJrsrrrrvrXz%Name.canonicalize.<locals>.<listcomp>rxrIrrr�canonicalize	szName.canonicalizecCs$t|t�r|�|�ddkSdSdS)NrrF�r?r
r��r0r�rrr�__eq__s
zName.__eq__cCs$t|t�r|�|�ddkSdSdS)NrrTr�r�rrr�__ne__s
zName.__ne__cCs$t|t�r|�|�ddkStSdS�Nrr�r?r
r��NotImplementedr�rrr�__lt__s
zName.__lt__cCs$t|t�r|�|�ddkStSdSr�r�r�rrr�__le__"s
zName.__le__cCs$t|t�r|�|�ddkStSdSr�r�r�rrr�__ge__(s
zName.__ge__cCs$t|t�r|�|�ddkStSdSr�r�r�rrr�__gt__.s
zName.__gt__cCsd|��dS)Nz
<DNS name �>)�__str__rIrrr�__repr__4sz
Name.__repr__cCs
|�d�S)NF)�to_textrIrrrr�7szName.__str__F)�omit_final_dotr9cCsht|j�dkrdSt|j�dkr2|jddkr2dS|rN|��rN|jdd�}n|j}d�tt|��}|S)z�Convert name to DNS text format.

        *omit_final_dot* is a ``bool``.  If True, don't emit the final
        dot (denoting the root label) for absolute names.  The default
        is False.

        Returns a ``str``.
        r�@rrX�.Nri)rcrhr��join�maprG)r0r�rk�srrrr�:s
zName.to_textN)r��
idna_codecr9csxt|j�dkrdSt|j�dkr2|jddkr2dS|rN|��rN|jdd�}n|j}�dur`t�d��fdd	�|D��S)
atConvert name to Unicode text format.

        IDN ACE labels are converted to Unicode.

        *omit_final_dot* is a ``bool``.  If True, don't emit the final
        dot (denoting the root label) for absolute names.  The default
        is False.
        *idna_codec* specifies the IDNA encoder/decoder.  If None, the
        dns.name.IDNA_2003_Practical encoder/decoder is used.
        The IDNA_2003_Practical decoder does
        not impose any policy, it just decodes punycode, so if you
        don't want checking for compliance, you can use this decoder
        for IDNA2008 as well.

        Returns a ``str``.
        rr�rrXr�Nricsg|]}��|��qSr)rQrs�r�rrrvmrXz#Name.to_unicode.<locals>.<listcomp>)rcrhr��IDNA_2003_Practicalr�)r0r�r�rkrr�r�
to_unicodeOszName.to_unicode)�originr9cCs|j|dd�}|S)a@Convert name to a format suitable for digesting in hashes.

        The name is canonicalized and converted to uncompressed wire
        format.  All names in wire format are absolute.  If the name
        is a relative name, then an origin must be supplied.

        *origin* is a ``dns.name.Name`` or ``None``.  If the name is
        relative and origin is not ``None``, then origin will be appended
        to the name.

        Raises ``dns.name.NeedAbsoluteNameOrOrigin`` if the name is
        relative and no origin was provided.

        Returns a ``bytes``.
        T)r�r�)�to_wire)r0r�Zdigestrrr�
to_digestableoszName.to_digestable)�file�compressr�r�r9cCs�|dur�t�}|jD],}|�t|��|r8||��7}q||7}q|��s�|dusZ|��s^t�|jD],}|�t|��|r�||��7}qd||7}qdt|�S|��s�|dus�|��s�t�t|j�}|�	t|j��n|j}d}|D]�}t
||d��}	|d7}|du�r|�|	�}
nd}
|
du�rFd|
}t�
d|�}|�|��q�q�|du�rxt|	�dk�rx|��}
|
dk�rx|
||	<t|�}
|�t�
d|
��|
dkr�|�r�|�|���q�|�|�q�dS)aConvert name to wire format, possibly compressing it.

        *file* is the file where the name is emitted (typically an
        io.BytesIO file).  If ``None`` (the default), a ``bytes``
        containing the wire name will be returned.

        *compress*, a ``dict``, is the compression table to use.  If
        ``None`` (the default), names will not be compressed.  Note that
        the compression code assumes that compression offset 0 is the
        start of *file*, and thus compression will not be correct
        if this is not the case.

        *origin* is a ``dns.name.Name`` or ``None``.  If the name is
        relative and origin is not ``None``, then *origin* will be appended
        to it.

        *canonicalize*, a ``bool``, indicates whether the name should
        be canonicalized; that is, converted to a format suitable for
        digesting in hashes.

        Raises ``dns.name.NeedAbsoluteNameOrOrigin`` if the name is
        relative and no origin was provided.

        Returns a ``bytes`` or ``None``.
        Nrri�z!Hi�?�!B)�	bytearrayrh�appendrcrJr�r&r@�list�extendr
�get�struct�pack�write�tell)r0r�r�r�r��outr8rhrm�n�pos�valuer�rkrrrr��sZ!








zName.to_wirecCs
t|j�S)zIThe length of the name (in labels).

        Returns an ``int``.
        r�rIrrr�__len__�szName.__len__cCs
|j|Srrr)r0�indexrrr�__getitem__�szName.__getitem__cCs
|�|�Sr)�concatenater�rrr�__add__�szName.__add__cCs
|�|�Sr)�
relativizer�rrr�__sub__�szName.__sub__)r
r
)�depthr9cCsnt|j�}|dkr|tjjfS||kr2tjj|fS|dksB||krJtd��t|d|��t||d��fS)a(Split a name into a prefix and suffix names at the specified depth.

        *depth* is an ``int`` specifying the number of labels in the suffix

        Raises ``ValueError`` if *depth* was not >= 0 and <= the length of the
        name.

        Returns the tuple ``(prefix, suffix)``.
        rz0depth must be >= 0 and <= the length of the nameN)rcrh�dns�name�emptyrpr
)r0r�rkrrr�split�s
z
Name.splitcCs:|��rt|�dkrt�t|j�}|�t|j��t|�S)z�Return a new name which is the concatenation of self and other.

        Raises ``dns.name.AbsoluteConcatenation`` if the name is
        absolute and *other* is not the empty name.

        Returns a ``dns.name.Name``.
        r)r�rcr)r�rhr�r
)r0r�rhrrrr�s
	
zName.concatenatecCs0|dur(|�|�r(t|dt|���S|SdS)a�If the name is a subdomain of *origin*, return a new name which is
        the name relative to origin.  Otherwise return the name.

        For example, relativizing ``www.dnspython.org.`` to origin
        ``dnspython.org.`` returns the name ``www``.  Relativizing ``example.``
        to origin ``dnspython.org.`` returns ``example.``.

        Returns a ``dns.name.Name``.
        N)r�r
rc�r0r�rrrr�szName.relativizecCs|��s|�|�S|SdS)a�If the name is a relative name, return a new name which is the
        concatenation of the name and origin.  Otherwise return the name.

        For example, derelativizing ``www`` to origin ``dnspython.org.``
        returns the name ``www.dnspython.org.``.  Derelativizing ``example.``
        to origin ``dnspython.org.`` returns ``example.``.

        Returns a ``dns.name.Name``.
        N)r�r�r�rrr�derelativizes
zName.derelativizeT)r�r�r9cCs&|r|r|�|�S|�|�Sn|SdS)a8Return a name with the relativity desired by the caller.

        If *origin* is ``None``, then the name is returned.
        Otherwise, if *relativize* is ``True`` the name is
        relativized, and if *relativize* is ``False`` the name is
        derelativized.

        Returns a ``dns.name.Name``.
        N)r�r�)r0r�r�rrr�choose_relativity/s


zName.choose_relativitycCs&|tks|tkrt�t|jdd��S)aReturn the parent of the name.

        For example, the parent of ``www.dnspython.org.`` is ``dnspython.org``.

        Raises ``dns.name.NoParent`` if the name is either the root name or the
        empty name, and thus has no parent.

        Returns a ``dns.name.Name``.
        rN)�rootr�r*r
rhrIrrr�parentDszName.parent)r��	prefix_okr9cCstt|||�S)a�Return the maximal predecessor of *name* in the DNSSEC ordering in the zone
        whose origin is *origin*, or return the longest name under *origin* if the
        name is origin (i.e. wrap around to the longest name, which may still be
        *origin* due to length considerations.

        The relativity of the name is preserved, so if this name is relative
        then the method will return a relative name, and likewise if this name
        is absolute then the predecessor will be absolute.

        *prefix_ok* indicates if prefixing labels is allowed, and
        defaults to ``True``.  Normally it is good to allow this, but if computing
        a maximal predecessor at a zone cut point then ``False`` must be specified.
        )�_handle_relativity_and_call�_absolute_predecessor�r0r�r�rrr�predecessorSs�zName.predecessorcCstt|||�S)a;Return the minimal successor of *name* in the DNSSEC ordering in the zone
        whose origin is *origin*, or return *origin* if the successor cannot be
        computed due to name length limitations.

        Note that *origin* is returned in the "too long" cases because wrapping
        around to the origin is how NSEC records express "end of the zone".

        The relativity of the name is preserved, so if this name is relative
        then the method will return a relative name, and likewise if this name
        is absolute then the successor will be absolute.

        *prefix_ok* indicates if prefixing a new minimal label is allowed, and
        defaults to ``True``.  Normally it is good to allow this, but if computing
        a minimal successor at a zone cut point then ``False`` must be specified.
        )r��_absolute_successorr�rrr�	successoreszName.successor)F)FN)N)NNNF)NT)T)T)6rrrr�	__slots__rrr@rUr/ryr}rr�rTr�r��intr�rrr�r�r�r�r�r�r�r�r�r�r�r�r�rrHr�r�r�CompressTyper�r�r�r�r�r�r�r�r�r�r�r�r�r5rrr3rr
espL�� ��W��rX)rEr�r�r9c	Cs�t|t�std��|dus,t|t�s,td��g}d}d}d}d}|durLt}|dkrXd}|�rv|dvrptd	g�S|D]�}|r�|dkr�|��r�t|�}|d
7}q�||7}d}n@|��s�t�|d9}|t|�7}|d
7}|dkr�d}|t|�7}qt|dv�r t	|�dk�r
t
�|�|�|��d}qt|d
k�r8d}d}d}qt||7}qt|�rLt�t	|�dk�rl|�|�|��n
|�d	�t	|�dk�s�|dd	k�r�|du�r�|�
t|j��t|�S)a�Convert unicode text into a Name object.

    Labels are encoded in IDN ACE form according to rules specified by
    the IDNA codec.

    *text*, a ``str``, is the text to convert into a name.

    *origin*, a ``dns.name.Name``, specifies the origin to
    append to non-absolute names.  The default is the root name.

    *idna_codec*, a ``dns.name.IDNACodec``, specifies the IDNA
    encoder/decoder.  If ``None``, the default IDNA 2003 encoder/decoder
    is used.

    Returns a ``dns.name.Name``.
    z0input to from_unicode() must be a unicode stringN�origin must be a Name or Noner:Frr�)r�u。u.u。rXr�
rr;Tri)r?rUrpr
�	IDNA_2003�isdigitr�r#rBrcr!r�rOr�r�rh)	rEr�r�rhr8�escaping�edigitsrlrFrrr�from_unicodesd






&r�)rEr9cCs |D]}t|�dkrdSqdS)Nr=FT)rD)rErFrrrrb�srbc
Cs�t|t�r(t|�st|||�S|�d�}t|t�s:td��|dusTt|t�sTtd��g}d}d}d}d}|dkrtd}|�r�|d	kr�tdg�S|D]�}t�	d
|�}	|�r|dkr�|	�
�r�t|	�}|d7}n||	7}d}nF|	�
�s�t�|d9}|t|	�7}|d7}|d
k�rjd}|t�	d
|�7}q�|	d	k�rJt
|�dk�r:t�|�|�d}q�|	dk�rbd}d}d}q�||	7}q�|�rvt�t
|�dk�r�|�|�n
|�d�t
|�dk�s�|ddk�r�|du�r�|�t|j��t|�S)a�Convert text into a Name object.

    *text*, a ``bytes`` or ``str``, is the text to convert into a name.

    *origin*, a ``dns.name.Name``, specifies the origin to
    append to non-absolute names.  The default is the root name.

    *idna_codec*, a ``dns.name.IDNACodec``, specifies the IDNA
    encoder/decoder.  If ``None``, the default IDNA 2003 encoder/decoder
    is used.

    Returns a ``dns.name.Name``.
    r`z%input to from_text() must be a stringNr�rXFr�@�.r�rr�r�\Tri)r?rUrbr�rOr@rpr
r�r�r�r�r#rcr!r�r�r�rh)
rEr�r�rhr8r�r�rlrFZbyte_rrr�	from_text�sj
	









&r�zdns.wire.Parser)�parserr9cCs�g}|j}|����|��}|dkr�|dkr>|�|�|��n<|dkrv|d@d|��}||krft�|}|�|�nt�|��}q|�d�Wd�n1s�0Yt|�S)a7Convert possibly compressed wire format into a Name.

    *parser* is a dns.wire.Parser.

    Raises ``dns.name.BadPointer`` if a compression pointer did not
    point backwards in the message.

    Raises ``dns.name.BadLabelType`` if an invalid label type was encountered.

    Returns a ``dns.name.Name``
    r�@�ra�rXN)	�currentZrestore_furthestZ	get_uint8r�Z	get_bytesr$�seekr%r
)r�rhZbiggest_pointer�countr�rrr�from_wire_parser-s"


(r�)�messager�r9cCs6t|t�std��tj�||�}t|�}||j|fS)a^Convert possibly compressed wire format into a Name.

    *message* is a ``bytes`` containing an entire DNS message in DNS
    wire form.

    *current*, an ``int``, is the offset of the beginning of the name
    from the start of the message

    Raises ``dns.name.BadPointer`` if a compression pointer did not
    point backwards in the message.

    Raises ``dns.name.BadLabelType`` if an invalid label type was encountered.

    Returns a ``(dns.name.Name, int)`` tuple consisting of the name
    that was read and the number of bytes of the wire format message
    which were consumed reading it.
    z*input to from_wire() must be a byte string)r?r@rpr�ZwireZParserr�r�)r�r�r�r�rrr�	from_wireNs

r����r��[cCst�dd�|d�S)NcSs|t|�dS)Nr)rc)�vrurrr�<lambda>trXz_wire_length.<locals>.<lambda>r)�	functools�reducerrrrr�_wire_lengthssr�cCsldt|j�}g}|dkr2|�td�|d8}q|dkrL|�t|d�tt|��}|�|j�t|�S)Nrjr�rar
r)r�rhr��_MAXIMAL_OCTETr��reversedr�r
)r��needed�
new_labelsrrr�_pad_to_max_namews
r�cCsBt|�}dt|�|d}|dkr(|Std||�}|t|S)Nrjrrra)rcr��minr�)r8�
suffix_labels�lengthZ	remainingr�rrr�_pad_to_max_label�sr)r�r�r�r9c	Cs�||krt|�S|d}|tkr(|��S|d}|jdd�}|tkrV|dd�g}nBt|�}|d}|tkrtt}n|d8}||d<t|�}t	||�g}|�
|�t|�}|r�t|�S|SdS)Nrrir)r��_MINIMAL_OCTETr�rh�_MINIMAL_OCTET_VALUEr��_LEFT_SQUARE_BRACKET_VALUE�_AT_SIGN_VALUEr@rr�r
)	r�r�r��least_significant_labelZleast_octetr�r��octets�octetrrrr��s,
r�cCs|r$zt�|�WSty"Yn0||k�r|d}t|�dkr�|tg}|�|jdd��ztj�	|�WStjjy�Yn0t
|�}tt|�ddd�D]h}||}|tkr�q�|t
kr�t}n|d7}|||<t|d|d��g}|�|jdd��t	|�S|��}q$|S)Nrrarri)�_SUCCESSOR_PREFIXr�r'rcrr�rhr�r�r
r��range�_MAXIMAL_OCTET_VALUErrr@r�)r�r�r�rr�rrmrrrrr��s8


r�)�functionr�r�r�r9cCsR|��st�|��}|r&|�|�}n|�|�s4t�||||�}|rN|�|�}|Sr)r�r&r�r�r6r�)rr�r�r��relativeZresult_namerrrr��s


r�)arrzZencodings.idnarYr�r��typingrrrrrrrZ
dns._featuresr�Zdns.enumZ
dns.exceptionZ
dns.immutableZdns.wireZ	_featuresZhaver	rdr�r��enum�IntEnumrrZ
NAMERELN_NONErZNAMERELN_SUPERDOMAINrZNAMERELN_SUBDOMAINrZNAMERELN_EQUALrZNAMERELN_COMMONANCESTOR�	exception�SyntaxErrorr!r#Z	FormErrorr$r%ZDNSExceptionr&r'r(r)r*r+r,r6rArCr@rUrGrHrVr\r�ZIDNA_2003_Strictr�ZIDNA_2008_PracticalZIDNA_2008_UTS_46ZIDNA_2008_StrictZIDNA_2008_TransitionalZ	IDNA_2008rorqZ	immutabler
r�r�r�rTrbr�r�r�rrDrrr�r
rrr�r�rr�r�r�rrrr�<module>s�$$J

��M	�
�Z!
!?�

Current_dir [ 𝗡𝗢𝗧 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ] Document_root [ 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ]

Current_dir [ 𝗡𝗢𝗧 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ] Document_root [ 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ]


[ Back ]
𝗡𝗔𝗠𝗘
𝗦𝗜𝗭𝗘
𝗟𝗔𝗦𝗧 𝗧𝗢𝗨𝗖𝗛
𝗨𝗦𝗘𝗥
𝗦𝗧𝗔𝗧𝗨𝗦
𝗙𝗨𝗡𝗖𝗧𝗜𝗢𝗡𝗦
..
--
17 Jan 2026 3.15 PM
root / root
0755
__init__.cpython-39.opt-1.pyc
0.651 KB
2 Oct 2024 6.41 PM
root / root
0644
__init__.cpython-39.pyc
0.651 KB
2 Oct 2024 6.41 PM
root / root
0644
_asyncbackend.cpython-39.opt-1.pyc
4.109 KB
2 Oct 2024 6.41 PM
root / root
0644
_asyncbackend.cpython-39.pyc
4.109 KB
2 Oct 2024 6.41 PM
root / root
0644
_asyncio_backend.cpython-39.opt-1.pyc
8.773 KB
2 Oct 2024 6.41 PM
root / root
0644
_asyncio_backend.cpython-39.pyc
8.791 KB
2 Oct 2024 6.41 PM
root / root
0644
_ddr.cpython-39.opt-1.pyc
3.976 KB
2 Oct 2024 6.41 PM
root / root
0644
_ddr.cpython-39.pyc
3.976 KB
2 Oct 2024 6.41 PM
root / root
0644
_features.cpython-39.opt-1.pyc
2.312 KB
2 Oct 2024 6.41 PM
root / root
0644
_features.cpython-39.pyc
2.312 KB
2 Oct 2024 6.41 PM
root / root
0644
_immutable_ctx.cpython-39.opt-1.pyc
2.108 KB
2 Oct 2024 6.41 PM
root / root
0644
_immutable_ctx.cpython-39.pyc
2.108 KB
2 Oct 2024 6.41 PM
root / root
0644
asyncbackend.cpython-39.opt-1.pyc
2.555 KB
2 Oct 2024 6.41 PM
root / root
0644
asyncbackend.cpython-39.pyc
2.555 KB
2 Oct 2024 6.41 PM
root / root
0644
asyncquery.cpython-39.opt-1.pyc
17.388 KB
2 Oct 2024 6.41 PM
root / root
0644
asyncquery.cpython-39.pyc
17.399 KB
2 Oct 2024 6.41 PM
root / root
0644
asyncresolver.cpython-39.opt-1.pyc
12.654 KB
2 Oct 2024 6.41 PM
root / root
0644
asyncresolver.cpython-39.pyc
12.697 KB
2 Oct 2024 6.41 PM
root / root
0644
dnssec.cpython-39.opt-1.pyc
31.406 KB
2 Oct 2024 6.41 PM
root / root
0644
dnssec.cpython-39.pyc
31.434 KB
2 Oct 2024 6.41 PM
root / root
0644
dnssectypes.cpython-39.opt-1.pyc
1.578 KB
2 Oct 2024 6.41 PM
root / root
0644
dnssectypes.cpython-39.pyc
1.578 KB
2 Oct 2024 6.41 PM
root / root
0644
e164.cpython-39.opt-1.pyc
3.371 KB
2 Oct 2024 6.41 PM
root / root
0644
e164.cpython-39.pyc
3.371 KB
2 Oct 2024 6.41 PM
root / root
0644
edns.cpython-39.opt-1.pyc
14.375 KB
2 Oct 2024 6.41 PM
root / root
0644
edns.cpython-39.pyc
14.389 KB
2 Oct 2024 6.41 PM
root / root
0644
entropy.cpython-39.opt-1.pyc
3.27 KB
2 Oct 2024 6.41 PM
root / root
0644
entropy.cpython-39.pyc
3.27 KB
2 Oct 2024 6.41 PM
root / root
0644
enum.cpython-39.opt-1.pyc
3.173 KB
2 Oct 2024 6.41 PM
root / root
0644
enum.cpython-39.pyc
3.173 KB
2 Oct 2024 6.41 PM
root / root
0644
exception.cpython-39.opt-1.pyc
5.389 KB
2 Oct 2024 6.41 PM
root / root
0644
exception.cpython-39.pyc
5.58 KB
2 Oct 2024 6.41 PM
root / root
0644
flags.cpython-39.opt-1.pyc
2.156 KB
2 Oct 2024 6.41 PM
root / root
0644
flags.cpython-39.pyc
2.156 KB
2 Oct 2024 6.41 PM
root / root
0644
grange.cpython-39.opt-1.pyc
1.063 KB
2 Oct 2024 6.41 PM
root / root
0644
grange.cpython-39.pyc
1.106 KB
2 Oct 2024 6.41 PM
root / root
0644
immutable.cpython-39.opt-1.pyc
2.371 KB
2 Oct 2024 6.41 PM
root / root
0644
immutable.cpython-39.pyc
2.371 KB
2 Oct 2024 6.41 PM
root / root
0644
inet.cpython-39.opt-1.pyc
4.495 KB
2 Oct 2024 6.41 PM
root / root
0644
inet.cpython-39.pyc
4.495 KB
2 Oct 2024 6.41 PM
root / root
0644
ipv4.cpython-39.opt-1.pyc
1.801 KB
2 Oct 2024 6.41 PM
root / root
0644
ipv4.cpython-39.pyc
1.801 KB
2 Oct 2024 6.41 PM
root / root
0644
ipv6.cpython-39.opt-1.pyc
3.846 KB
2 Oct 2024 6.41 PM
root / root
0644
ipv6.cpython-39.pyc
3.846 KB
2 Oct 2024 6.41 PM
root / root
0644
message.cpython-39.opt-1.pyc
49.444 KB
2 Oct 2024 6.41 PM
root / root
0644
message.cpython-39.pyc
49.484 KB
2 Oct 2024 6.41 PM
root / root
0644
name.cpython-39.opt-1.pyc
34.252 KB
2 Oct 2024 6.41 PM
root / root
0644
name.cpython-39.pyc
34.267 KB
2 Oct 2024 6.41 PM
root / root
0644
namedict.cpython-39.opt-1.pyc
2.916 KB
2 Oct 2024 6.41 PM
root / root
0644
namedict.cpython-39.pyc
2.916 KB
2 Oct 2024 6.41 PM
root / root
0644
nameserver.cpython-39.opt-1.pyc
8.699 KB
2 Oct 2024 6.41 PM
root / root
0644
nameserver.cpython-39.pyc
8.699 KB
2 Oct 2024 6.41 PM
root / root
0644
node.cpython-39.opt-1.pyc
11.333 KB
2 Oct 2024 6.41 PM
root / root
0644
node.cpython-39.pyc
11.333 KB
2 Oct 2024 6.41 PM
root / root
0644
opcode.cpython-39.opt-1.pyc
2.417 KB
2 Oct 2024 6.41 PM
root / root
0644
opcode.cpython-39.pyc
2.417 KB
2 Oct 2024 6.41 PM
root / root
0644
query.cpython-39.opt-1.pyc
39.354 KB
2 Oct 2024 6.41 PM
root / root
0644
query.cpython-39.pyc
39.397 KB
2 Oct 2024 6.41 PM
root / root
0644
rcode.cpython-39.opt-1.pyc
3.177 KB
2 Oct 2024 6.41 PM
root / root
0644
rcode.cpython-39.pyc
3.177 KB
2 Oct 2024 6.41 PM
root / root
0644
rdata.cpython-39.opt-1.pyc
23.056 KB
2 Oct 2024 6.41 PM
root / root
0644
rdata.cpython-39.pyc
23.056 KB
2 Oct 2024 6.41 PM
root / root
0644
rdataclass.cpython-39.opt-1.pyc
2.727 KB
2 Oct 2024 6.41 PM
root / root
0644
rdataclass.cpython-39.pyc
2.727 KB
2 Oct 2024 6.41 PM
root / root
0644
rdataset.cpython-39.opt-1.pyc
15.075 KB
2 Oct 2024 6.41 PM
root / root
0644
rdataset.cpython-39.pyc
15.089 KB
2 Oct 2024 6.41 PM
root / root
0644
rdatatype.cpython-39.opt-1.pyc
6.517 KB
2 Oct 2024 6.41 PM
root / root
0644
rdatatype.cpython-39.pyc
6.517 KB
2 Oct 2024 6.41 PM
root / root
0644
renderer.cpython-39.opt-1.pyc
9.592 KB
2 Oct 2024 6.41 PM
root / root
0644
renderer.cpython-39.pyc
9.61 KB
2 Oct 2024 6.41 PM
root / root
0644
resolver.cpython-39.opt-1.pyc
51.242 KB
2 Oct 2024 6.41 PM
root / root
0644
resolver.cpython-39.pyc
51.392 KB
2 Oct 2024 6.41 PM
root / root
0644
reversename.cpython-39.opt-1.pyc
2.983 KB
2 Oct 2024 6.41 PM
root / root
0644
reversename.cpython-39.pyc
2.983 KB
2 Oct 2024 6.41 PM
root / root
0644
rrset.cpython-39.opt-1.pyc
7.7 KB
2 Oct 2024 6.41 PM
root / root
0644
rrset.cpython-39.pyc
7.714 KB
2 Oct 2024 6.41 PM
root / root
0644
serial.cpython-39.opt-1.pyc
2.864 KB
2 Oct 2024 6.41 PM
root / root
0644
serial.cpython-39.pyc
2.864 KB
2 Oct 2024 6.41 PM
root / root
0644
set.cpython-39.opt-1.pyc
8.593 KB
2 Oct 2024 6.41 PM
root / root
0644
set.cpython-39.pyc
8.593 KB
2 Oct 2024 6.41 PM
root / root
0644
tokenizer.cpython-39.opt-1.pyc
16.838 KB
2 Oct 2024 6.41 PM
root / root
0644
tokenizer.cpython-39.pyc
16.852 KB
2 Oct 2024 6.41 PM
root / root
0644
transaction.cpython-39.opt-1.pyc
19.786 KB
2 Oct 2024 6.41 PM
root / root
0644
transaction.cpython-39.pyc
19.786 KB
2 Oct 2024 6.41 PM
root / root
0644
tsig.cpython-39.opt-1.pyc
10.138 KB
2 Oct 2024 6.41 PM
root / root
0644
tsig.cpython-39.pyc
10.138 KB
2 Oct 2024 6.41 PM
root / root
0644
tsigkeyring.cpython-39.opt-1.pyc
1.792 KB
2 Oct 2024 6.41 PM
root / root
0644
tsigkeyring.cpython-39.pyc
1.792 KB
2 Oct 2024 6.41 PM
root / root
0644
ttl.cpython-39.opt-1.pyc
1.641 KB
2 Oct 2024 6.41 PM
root / root
0644
ttl.cpython-39.pyc
1.641 KB
2 Oct 2024 6.41 PM
root / root
0644
update.cpython-39.opt-1.pyc
8.678 KB
2 Oct 2024 6.41 PM
root / root
0644
update.cpython-39.pyc
8.678 KB
2 Oct 2024 6.41 PM
root / root
0644
version.cpython-39.opt-1.pyc
0.55 KB
2 Oct 2024 6.41 PM
root / root
0644
version.cpython-39.pyc
0.55 KB
2 Oct 2024 6.41 PM
root / root
0644
versioned.cpython-39.opt-1.pyc
8.519 KB
2 Oct 2024 6.41 PM
root / root
0644
versioned.cpython-39.pyc
8.569 KB
2 Oct 2024 6.41 PM
root / root
0644
win32util.cpython-39.opt-1.pyc
5.521 KB
2 Oct 2024 6.41 PM
root / root
0644
win32util.cpython-39.pyc
5.521 KB
2 Oct 2024 6.41 PM
root / root
0644
wire.cpython-39.opt-1.pyc
3.249 KB
2 Oct 2024 6.41 PM
root / root
0644
wire.cpython-39.pyc
3.276 KB
2 Oct 2024 6.41 PM
root / root
0644
xfr.cpython-39.opt-1.pyc
7.589 KB
2 Oct 2024 6.41 PM
root / root
0644
xfr.cpython-39.pyc
7.606 KB
2 Oct 2024 6.41 PM
root / root
0644
zone.cpython-39.opt-1.pyc
44.207 KB
2 Oct 2024 6.41 PM
root / root
0644
zone.cpython-39.pyc
44.348 KB
2 Oct 2024 6.41 PM
root / root
0644
zonefile.cpython-39.opt-1.pyc
17.249 KB
2 Oct 2024 6.41 PM
root / root
0644
zonefile.cpython-39.pyc
17.272 KB
2 Oct 2024 6.41 PM
root / root
0644
zonetypes.cpython-39.opt-1.pyc
0.999 KB
2 Oct 2024 6.41 PM
root / root
0644
zonetypes.cpython-39.pyc
0.999 KB
2 Oct 2024 6.41 PM
root / root
0644

✘✘ GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME ✘✘
Static GIF Static GIF