Ë
    Q5ýjÀ  ã            
       ó\  — d Z ddlZddlZddlZddlZddlZddlmZm	Z	 ddl
mZ ddlZddlZddlZddlZddlZddlZddlmZ ej*                  j-                  d«      rddlZdZndZed	ef   Z G d
„ dej8                  j:                  «      Zej>                  Z ejB                  Z"ejF                  Z$ejJ                  Z&ejN                  Z( G d„ dejR                  jT                  «      Z+ G d„ dejR                  jT                  «      Z, G d„ dejR                  jZ                  «      Z. G d„ dejR                  jZ                  «      Z/ G d„ dejR                  jZ                  «      Z0 G d„ dejR                  jZ                  «      Z1 G d„ dejR                  jd                  «      Z3 G d„ dejR                  jZ                  «      Z4 G d„ dejR                  jT                  «      Z5 G d„ dejR                  jd                  «      Z6 G d „ d!ejR                  jd                  «      Z7 G d"„ d#ejR                  jd                  «      Z8 G d$„ d%ejR                  jd                  «      Z9 G d&„ d'ejR                  jd                  «      Z:d(Z;d)Z<d*e=e>z  d+e>fd,„Z? G d-„ d.«      Z@ G d/„ d0e@«      ZA G d1„ d2e@«      ZB eAd«      ZC eAd«      ZDeCZE eBdddd«      ZF eBdddd«      ZG eBdddd«      ZH eBdddd«      ZIeFZJereFaKneCaKd3e@fd4„ZLd5eMe=d6f   d+dfd7„ZNd*e=e>z  d+e=fd8„ZO ej                   d¬9«       G d:„ d;e«      «       ZQej¤                  j¤                   G d<„ d	«      «       ZS eSd=g«      ZT eSg «      ZUeTdfd>e>d?eSdz  d3e@dz  d+eSfd@„ZVd>e>d+eWfdA„ZXeTdfd>e=e>z  d?eSdz  d3e@dz  d+eSfdB„ZYdCZZdWdDej¶                  j¸                  dEeWd+eSfdF„Z]dGe=dHed+eMeSef   fdI„Z^dJZ_ e`e_«      Za eSe_g«      ZbdKZc e`ec«      Zd e`dL«      Ze e`dM«      ZfdN„ ZgdO„ ZhdP„ ZidQeSd?eSdReWd+eSfdS„ZjdQeSd?eSdReWd+eSfdT„ZkdUeeSeSeWgeSf   dQeSd?eSdReWd+eSf
dV„Zly)Xz
DNS Names.é    N)ÚCallableÚIterable)ÚAny)Ú	BaseStyleÚidnaTFÚNamec                   óD   — e Zd ZdZdZdZdZdZdZe	d„ «       Z
e	d„ «       Zy	)
ÚNameRelationz(Name relation result from fullcompare().r   é   é   é   é   c                 ó   — | j                   S ©N)ÚCOMMONANCESTOR©Úclss    úB/root/telegram-saas/.venv/lib/python3.12/site-packages/dns/name.pyÚ_maximumzNameRelation._maximumE   s   € à×!Ñ!Ð!ó    c                 ó   — | j                   S r   )Ú__name__r   s    r   Ú_short_namezNameRelation._short_nameI   s   € à�|‰|Ðr   N)r   Ú
__module__Ú__qualname__Ú__doc__ÚNONEÚSUPERDOMAINÚ	SUBDOMAINÚEQUALr   Úclassmethodr   r   © r   r   r
   r
   4   sF   „ Ù2ð €Dà€Kà€Ià€Eà€Nàñ"ó ð"ð ñó ñr   r
   c                   ó   — e Zd ZdZy)Ú
EmptyLabelzA DNS label is empty.N©r   r   r   r   r"   r   r   r$   r$   V   s   „ Úr   r$   c                   ó   — e Zd ZdZy)Ú	BadEscapez8An escaped code in a text format of DNS name is invalid.Nr%   r"   r   r   r'   r'   Z   s   „ ÚBr   r'   c                   ó   — e Zd ZdZy)Ú
BadPointerz=A DNS compression pointer points forward instead of backward.Nr%   r"   r   r   r)   r)   ^   s   „ ÚGr   r)   c                   ó   — e Zd ZdZy)ÚPointerChainTooLongz-A DNS compression pointer chain was too long.Nr%   r"   r   r   r+   r+   b   s   „ Ú7r   r+   c                   ó   — e Zd ZdZy)ÚBadLabelTypez2The label type in DNS name wire format is unknown.Nr%   r"   r   r   r-   r-   f   s   „ Ú<r   r-   c                   ó   — e Zd ZdZy)ÚDecompressionForbiddenz@A name has a compression pointer but decompression is forbidden.Nr%   r"   r   r   r/   r/   j   s   „ ÚJr   r/   c                   ó   — e Zd ZdZy)ÚNeedAbsoluteNameOrOriginzvAn attempt was made to convert a non-absolute name to
    wire when there was also a non-absolute (or missing) origin.Nr%   r"   r   r   r1   r1   n   s   „ òDr   r1   c                   ó   — e Zd ZdZy)ÚNameTooLongz A DNS name is > 255 octets long.Nr%   r"   r   r   r3   r3   s   ó   „ Ú*r   r3   c                   ó   — e Zd ZdZy)ÚLabelTooLongz A DNS label is > 63 octets long.Nr%   r"   r   r   r6   r6   w   r4   r   r6   c                   ó   — e Zd ZdZy)ÚAbsoluteConcatenationz]An attempt was made to append anything other than the
    empty name to an absolute DNS name.Nr%   r"   r   r   r8   r8   {   s   „ ò+r   r8   c                   ó   — e Zd ZdZy)ÚNoParentzMAn attempt was made to get the parent of the root name
    or the empty name.Nr%   r"   r   r   r:   r:   €   s   „ òr   r:   c                   ó   — e Zd ZdZy)Ú
NoIDNA2008zLIDNA 2008 processing was requested but the idna module is not
    available.Nr%   r"   r   r   r<   r<   …   s   „ òr   r<   c                   ó,   ‡ — e Zd ZdZdhZdZˆ fd„Zˆ xZS )ÚIDNAExceptionz$IDNA processing raised an exception.Úidna_exceptionz+IDNA processing exception: {idna_exception}c                 ó$   •— t        ‰| �  |i |¤Ž y r   )ÚsuperÚ__init__)ÚselfÚargsÚkwargsÚ	__class__s      €r   rB   zIDNAException.__init__’   s   ø€ Ü‰Ñ˜$Ð) &Ó)r   )r   r   r   r   Úsupp_kwargsÚfmtrB   Ú__classcell__©rF   s   @r   r>   r>   Š   s   ø„ Ù.à#Ð$€KØ
7€C÷*ð *r   r>   c                   ó   — e Zd ZdZy)ÚNeedSubdomainOfOriginzNAn absolute name was provided that is not a subdomain of the specified origin.Nr%   r"   r   r   rL   rL   –   s   „ ÚXr   rL   s   "().;\@$u   "().;\@$ã€‚ï¼Žï½¡ÚlabelÚreturnc                 ó>  — t        | t        «      rGd}| D ]>  }|t        v r|dt        |«      z   z  }Œ|dkD  r|dk  r|t        |«      z  }Œ6|d|d›�z  }Œ@ |S d}| D ]>  }|t        v r	|d|z   z  }Œ|dk  sd|cxk  rdk  rn n|dt        |«      d›�z  }Œ:||z  }Œ@ |S )	zdEscape the characters in label which need it.

    :returns: the escaped string
    :rtype: str
    Ú ú\é    é   Ú03dú úõ   ÂŸ)Ú
isinstanceÚbytesÚ_escapedÚchrÚ_escaped_textÚord)rM   ÚtextÚcÚucs       r   Ú	_escapifyra       sÖ   € ô �%œÔð ˆØò 	%ˆAØ”H‰}Ø˜œs 1›v™Ñ%‘Ø�T’˜a $šhØœ˜A›‘‘à˜"˜Q˜s˜G˜Ñ$‘ð	%ð ˆð €DØò ˆØ”ÑØ�D˜2‘IÑ‰DØ�6Š\˜V rÔ3¨VÕ3Ø�bœ˜R› ˜Ð&Ñ&‰Dà�B‰J‰Dðð €Kr   c                   óF   — e Zd ZdZd„ Zdedefd„Zdedefd„Z	dedefd„Z
y)	Ú	IDNACodecz.Abstract base class for IDNA encoder/decoders.c                  ó   — y r   r"   ©rC   s    r   rB   zIDNACodec.__init__Ã   s   € Ør   rM   rN   c                 ó@   — |j                  «       j                  d«      S )Ns   xn--)ÚlowerÚ
startswith©rC   rM   s     r   Úis_idnazIDNACodec.is_idnaÆ   s   € Ø�{‰{‹}×'Ñ'¨Ó0Ð0r   c                 ó   — t         ‚r   )ÚNotImplementedErrorri   s     r   ÚencodezIDNACodec.encodeÉ   s   € Ü!Ð!r   c                 óè   — | j                  |«      r:	 |dd  j                  d«      }t	        |«      rt        |›d�¬«      ‚t        |«      S t        |«      S # t        $ r}t        |¬«      ‚d }~ww xY w)Nr   Úpunycode©r?   z does not decode to a U-label)rj   ÚdecodeÚ	Exceptionr>   Úis_all_asciira   )rC   rM   ÚslabelÚes       r   rq   zIDNACodec.decodeÌ   s€   € à�<‰<˜Ôð6Ø˜q˜r˜×)Ñ)¨*Ó5�ô ˜FÔ#Ü#Ø&+ YÐ.KÐ#Lôð ô ˜VÓ$Ð$ä˜UÓ#Ð#øô ò 6Ü#°1Ô5Ð5ûð6ús   “A Á	A1Á A,Á,A1N)r   r   r   r   rB   rY   Úboolrj   Ústrrm   rq   r"   r   r   rc   rc   À   sC   „ Ù8òð1˜Uð 1 tó 1ð"˜Cð " Eó "ð$˜Eð $ cô $r   rc   c                   óN   ‡ — e Zd ZdZddefˆ fd„Zdedefd„Zdedefˆ fd„Z	ˆ xZ
S )	ÚIDNA2003CodeczIDNA 2003 encoder/decoder.Ústrict_decodec                 ó0   •— t         ‰| �  «        || _        y)a  Initialize the IDNA 2003 encoder/decoder.

        :param bool strict_decode: 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)rA   rB   rz   )rC   rz   rF   s     €r   rB   zIDNA2003Codec.__init__â   s   ø€ ô 	‰ÑÔØ*ˆÕr   rM   rN   c                 ót   — |dk(  ry	 t         j                  j                  |«      S # t        $ r t        ‚w xY w)zEncode *label*.rP   r   )Ú	encodingsr   ÚToASCIIÚUnicodeErrorr6   ri   s     r   rm   zIDNA2003Codec.encodeí   s=   € ð �BŠ;Øð	Ü—>‘>×)Ñ)¨%Ó0Ð0øÜò 	ÜÐð	ús   ˆ' §7c                 óÒ   •— | j                   st        ‰| �	  |«      S |dk(  ry	 t        t        j
                  j                  |«      «      S # t        $ r}t        |¬«      ‚d}~ww xY w)zDecode *label*.r   rP   rp   N)	rz   rA   rq   ra   r}   r   Ú	ToUnicoderr   r>   )rC   rM   ru   rF   s      €r   rq   zIDNA2003Codec.decode÷   s_   ø€ à×!Ò!Ü‘7‘> %Ó(Ð(Ø�CŠ<Øð	2ÜœYŸ^™^×5Ñ5°eÓ<Ó=Ð=øÜò 	2Ü¨qÔ1Ð1ûð	2ús   ¤'A Á	A&ÁA!Á!A&)F©r   r   r   r   rv   rB   rw   rY   rm   rq   rI   rJ   s   @r   ry   ry   ß   s=   ø„ Ù$ñ	+ dõ 	+ð˜Cð  Eó ð	2˜Eð 	2 c÷ 	2ñ 	2r   ry   c            	       ób   ‡ — e Zd ZdZ	 	 	 	 ddedededefˆ fd„Zdedefd	„Zdedefˆ fd
„Z	ˆ xZ
S )ÚIDNA2008CodeczIDNA 2008 encoder/decoder.Úuts_46ÚtransitionalÚallow_pure_asciirz   c                 óZ   •— t         ‰| �  «        || _        || _        || _        || _        y)a²  Initialize the IDNA 2008 encoder/decoder.

        :param bool uts_46: 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``.
        :param bool transitional: If ``True``, use the "transitional" mode
            described in Unicode Technical Standard #46.  The default is
            ``False``.  This setting has no effect in idna 3.11 and later
            as transitional support has been removed.
        :param bool allow_pure_ascii: 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 starting with ``_sip._tcp.`` and ending
            in an IDN suffix which would otherwise be disallowed.  The
            default is ``False``.
        :param bool strict_decode: 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)rA   rB   r…   r†   r‡   rz   )rC   r…   r†   r‡   rz   rF   s        €r   rB   zIDNA2008Codec.__init__  s/   ø€ ô6 	‰ÑÔØˆŒØ(ˆÔØ 0ˆÔØ*ˆÕr   rM   rN   c                 ó¦  — |dk(  ry| j                   r2t        |«      r'|j                  d«      }t        |«      dkD  rt        ‚|S t
        st        ‚	 | j                  r!t        j                  |d| j                  «      }t        j                  |«      S # t        j                  $ r)}|j                  d   dk(  rt        ‚t        |¬«      ‚d }~ww xY w)	NrP   r   Úasciié?   Fr   zLabel too longrp   )r‡   rs   rm   Úlenr6   Úhave_idna_2008r<   r…   r   Úuts46_remapr†   ÚalabelÚ	IDNAErrorrD   r>   )rC   rM   Úencodedru   s       r   rm   zIDNA2008Codec.encode'  sµ   € Ø�BŠ;ØØ× Ò ¤\°%Ô%8Ø—l‘l 7Ó+ˆGÜ�7‹|˜bÒ Ü"Ð"ØˆNÝÜÐð		6Ø�{Š{ä×(Ñ(¨°°t×7HÑ7HÓI�Ü—;‘;˜uÓ%Ð%øÜ�~‰~ò 	6Ø�v‰v�a‰yÐ,Ò,Ü"Ð"ä#°1Ô5Ð5ûð		6ús   ÁAB ÂCÂ'$CÃCc                 óT  •— | j                   st        ‰| �	  |«      S |dk(  ryt        st        ‚	 t        j                  |«      }| j                  r!t        j                  |d| j                  «      }t        |«      S # t
        j                  t        f$ r}t        |¬«      ‚d }~ww xY w)Nr   rP   Frp   )rz   rA   rq   r�   r<   r   Úulabelr…   rŽ   r†   ra   r�   r   r>   )rC   rM   r“   ru   rF   s       €r   rq   zIDNA2008Codec.decode<  s‘   ø€ Ø×!Ò!Ü‘7‘> %Ó(Ð(Ø�CŠ<ØÝÜÐð	2Ü—[‘[ Ó'ˆFØ�{Š{Ü×)Ñ)¨&°%¸×9JÑ9JÓK�Ü˜VÓ$Ð$øÜ—‘¤Ð-ò 	2Ü¨qÔ1Ð1ûð	2ús   °AA= Á=B'ÂB"Â"B')FFFFr‚   rJ   s   @r   r„   r„     sk   ø„ Ù$ð Ø"Ø!&Ø#ñ+àð+ð ð+ð ð	+ð
 õ+ðB6˜Cð 6 Eó 6ð*2˜Eð 2 c÷ 2ñ 2r   r„   Ú
idna_codecc                 ó   — | a y)zSet the default IDNA codec.N)ÚIDNA_DEFAULT)r”   s    r   Úset_default_idna_codecr—   Z  s	   € ð �Lr   Úlabels.c                 óÐ   — t        | «      }d}d}d}| D ]1  }t        |«      }||dz   z  }|dkD  rt        ‚|dk  r|dk(  r|}|dz  }Œ3 |dkD  rt        ‚|dk\  r||dz
  k7  rt        ‚yy)a[  Check 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   r‹   r   éÿ   N)rŒ   r6   r3   r$   )r˜   ÚlÚtotalÚiÚjrM   Úlls          r   Ú_validate_labelsr¡   `  s–   € ô 	ˆF‹€AØ€EØ
€AØ	€AØò ˆÜ�‹ZˆØ��a‘‰ˆØ�Š7ÜÐØˆqŠ5�U˜c’\ØˆAØ	ˆQ‰‰ðð ˆs‚{ÜÐØˆA‚v�!�q˜1‘u’*ÜÐð €vr   c                 óF   — t        | t        «      r| S | j                  «       S )zcIf label is ``str``, convert it to ``bytes``.  If it is already
    ``bytes`` just return it.

    )rX   rY   rm   )rM   s    r   Ú_maybe_convert_to_binaryr£   |  s   € ô �%œÔØˆà�|‰|‹~Ðr   )Úfrozenc                   óP   — e Zd ZU dZdZeed<   dZedz  ed<   dZ	ded<   dZ
eed<   y)	Ú	NameStyleaO  Name text styles.

    :param bool omit_final_dot: If ``True``, don't emit the final dot
        (denoting the root label) for absolute names.  The default is
        ``False``.
    :param idna_codec: The IDNA decoder to use.  The default is ``None``,
        which means all text is in the standard DNS zonefile format, i.e.
        punycode will not be decoded.
    :type idna_codec: :py:class:`dns.name.IDNACodec` or ``None``
    :param origin: If ``None`` (the default), the name's relativity is not
        altered before conversion to text.  Otherwise, if *relativize* is
        ``True`` the name is relativized, and if *relativize* is ``False``
        the name is derelativized.
    :type origin: :py:class:`dns.name.Name` or ``None``
    :param bool relativize: Controls the direction of relativization when
        *origin* is set.
    FÚomit_final_dotNr”   úName | NoneÚoriginÚ
relativize)r   r   r   r   r§   rv   Ú__annotations__r”   rc   r©   rª   r"   r   r   r¦   r¦   ˆ  s6   … ñð$ !€N�DÓ Ø#'€J�	˜DÑ Ó'Ø €FˆMÓ Ø€J�Ôr   r¦   c                   ó0  ‡ — e Zd ZdZdgZdeeez     fd„Zd„ Z	d„ Z
d„ Zˆ fd„Zdefd	„Zdefd
„Zdefd„Zdd deeeef   fd„Zdd defd„Zdd defd„Zd8d„Zd„ Zd„ Zd„ Zd„ Zd„ Zd„ Zd„ Zd„ Z	 d9dede dz  defd„Z!	 	 	 d:dede"dz  de dz  defd„Z#de defd„Z$d;d d!defd"„Z%	 	 	 	 d<d#e&dz  d$e'dz  d d!d%ededz  f
d&„Z(defd'„Z)d(e&de&fd)„Z*d*„ Z+d+„ Z,d,eded-   fd.„Z-d=d/„Z.d>d0„Z/d>d1„Z0	 d?d d!d2edd fd3„Z1d8d4„Z2d@d d d5edd fd6„Z3d@d d d5edd fd7„Z4ˆ xZ5S )Ar   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.
    r˜   c                 óˆ   — |D �cg c]  }t        |«      ‘Œ }}t        |«      | _        t        | j                  «       yc c}w )zjInitialize a DNS name.

        :param labels: An iterable whose values are ``str`` or ``bytes``.
        N)r£   Útupler˜   r¡   )rC   r˜   ÚxÚblabelss       r   rB   zName.__init__­  s:   € ð 9?Ö?°1Ô+¨AÕ.Ð?ˆÐ?Ü˜G“nˆŒÜ˜Ÿ™Õ%ùò @s   …?c                 ó,   — t        | j                  «      S r   )r   r˜   re   s    r   Ú__copy__zName.__copy__·  s   € Ü�D—K‘KÓ Ð r   c                 óT   — t        t        j                  | j                  |«      «      S r   )r   ÚcopyÚdeepcopyr˜   )rC   Úmemos     r   Ú__deepcopy__zName.__deepcopy__º  s   € Ü”D—M‘M $§+¡+¨tÓ4Ó5Ð5r   c                 ó   — d| j                   iS ©Nr˜   ©r˜   re   s    r   Ú__getstate__zName.__getstate__½  s   € à˜$Ÿ+™+Ð&Ð&r   c                 óV   •— t         ‰| �  d|d   «       t        | j                  «       y r¹   )rA   Ú__setattr__r¡   r˜   )rC   ÚstaterF   s     €r   Ú__setstate__zName.__setstate__Á  s"   ø€ Ü‰Ñ˜H e¨H¡oÔ6Ü˜Ÿ™Õ%r   rN   c                 óZ   — t        | j                  «      dkD  xr | j                  d   dk(  S )zYIs the most significant label of this name the root label?

        :rtype: bool
        r   rš   r   ©rŒ   r˜   re   s    r   Úis_absolutezName.is_absoluteÅ  s*   € ô �4—;‘;Ó !Ñ#Ò>¨¯©°B©¸3Ñ(>Ð>r   c                 óZ   — t        | j                  «      dkD  xr | j                  d   dk(  S )zaIs this name wild?  (I.e. Is the least significant label ``'*'``?)

        :rtype: bool
        r   ó   *rÁ   re   s    r   Úis_wildzName.is_wildÍ  s*   € ô �4—;‘;Ó !Ñ#Ò>¨¯©°A©¸$Ñ(>Ð>r   c                 ól   — d}| j                   D ]"  }|j                  «       D ]  }||dz  |z   z  }Œ Œ$ |S )zIReturn a case-insensitive hash of the name.

        :rtype: int
        r   r   )r˜   rg   )rC   ÚhrM   r_   s       r   Ú__hash__zName.__hash__Õ  sJ   € ð ˆØ—[‘[ò 	"ˆEØ—[‘[“]ò "�Ø�a˜1‘f ‘\Ñ!‘ñ"ð	"ð ˆr   Úotherc                 óò  — | j                  «       }|j                  «       }||k7  r(|rt        j                  ddfS t        j                  ddfS t        | j                  «      }t        |j                  «      }||z
  }|dk  r|}n|}d}d}	t        j                  }
|dkD  r–|dz  }|dz  }|dz  }| j                  |   j                  «       }|j                  |   j                  «       }||k  rd}|	dkD  rt        j                  }
|
||	fS ||kD  rd}|	dkD  rt        j                  }
|
||	fS |	dz  }	|dkD  rŒ–|}|dk  rt        j                  }
n&|dkD  rt        j                  }
nt        j                  }
|
||	fS )að  Compare two names, returning a 3-tuple
        ``(relation, order, nlabels)``.

        *relation* describes the relationship between the names, and is one
        of: :py:attr:`dns.name.NameRelation.NONE`,
        :py:attr:`dns.name.NameRelation.SUPERDOMAIN`,
        :py:attr:`dns.name.NameRelation.SUBDOMAIN`,
        :py:attr:`dns.name.NameRelation.EQUAL`, or
        :py:attr:`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
        =============  =============  ===========  =====  =======

        :param other: The name to compare with.
        :type other: :py:class:`dns.name.Name`
        :returns: A 3-tuple ``(relation, order, nlabels)``.
        :rtype: tuple[:py:class:`dns.name.NameRelation`, int, int]
        r   r   rš   )
rÂ   r
   r   rŒ   r˜   rg   r   r   r   r    )rC   rÉ   ÚsabsÚoabsÚl1Úl2Úldiffrœ   ÚorderÚnlabelsÚnamerelnÚlabel1Úlabel2s                r   ÚfullcomparezName.fullcompareá  s–  € ðN ×ÑÓ!ˆØ× Ñ Ó"ˆØ�4Š<ÙÜ$×)Ñ)¨1¨aÐ0Ð0ä$×)Ñ)¨2¨qÐ1Ð1Ü�—‘ÓˆÜ�—‘ÓˆØ�R‘ˆØ�1Š9Ø‰AàˆAàˆØˆÜ×$Ñ$ˆØ�!ŠeØ�‰FˆAØ�!‰GˆBØ�!‰GˆBØ—[‘[ ‘_×*Ñ*Ó,ˆFØ—\‘\ "Ñ%×+Ñ+Ó-ˆFØ˜ŠØ�Ø˜Q’;Ü+×:Ñ:�HØ  %¨Ð1Ð1Ø˜&’Ø�Ø˜Q’;Ü+×:Ñ:�HØ  %¨Ð1Ð1Ø�q‰LˆGð! �!‹eð" ˆØ�1Š9Ü#×/Ñ/‰HØ�QŠYÜ#×-Ñ-‰Hä#×)Ñ)ˆHØ˜% Ð)Ð)r   c                 ó|   — | j                  |«      \  }}}|t        j                  k(  s|t        j                  k(  ryy)z³Is self a subdomain of other?

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

        :rtype: bool
        TF)rÕ   r
   r   r    ©rC   rÉ   ÚnrÚ_s       r   Úis_subdomainzName.is_subdomain4  s;   € ð ×#Ñ# EÓ*‰ˆˆAˆqØ”×'Ñ'Ò'¨2´×1CÑ1CÒ+CØØr   c                 ó|   — | j                  |«      \  }}}|t        j                  k(  s|t        j                  k(  ryy)z¹Is self a superdomain of other?

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

        :rtype: bool
        TF)rÕ   r
   r   r    r×   s       r   Úis_superdomainzName.is_superdomainB  s;   € ð ×#Ñ# EÓ*‰ˆˆAˆqØ”×)Ñ)Ò)¨R´<×3EÑ3EÒ-EØØr   c                 ón   — t        | j                  D �cg c]  }|j                  «       ‘Œ c}«      S c c}w )zŽReturn a name which is equal to the current name, but is in
        DNSSEC canonical form.

        :rtype: :py:class:`dns.name.Name`
        )r   r˜   rg   )rC   r¯   s     r   ÚcanonicalizezName.canonicalizeP  s'   € ô ¨¯©Ö4 1�Q—W‘W•YÒ4Ó5Ð5ùÒ4s   ”2c                 óR   — t        |t        «      r| j                  |«      d   dk(  S y)Nr   r   F©rX   r   rÕ   ©rC   rÉ   s     r   Ú__eq__zName.__eq__Y  s*   € Ü�eœTÔ"Ø×#Ñ# EÓ*¨1Ñ-°Ñ2Ð2àr   c                 óR   — t        |t        «      r| j                  |«      d   dk7  S y)Nr   r   Trà   rá   s     r   Ú__ne__zName.__ne___  s*   € Ü�eœTÔ"Ø×#Ñ# EÓ*¨1Ñ-°Ñ2Ð2àr   c                 ó\   — t        |t        «      r| j                  |«      d   dk  S t        S ©Nr   r   ©rX   r   rÕ   ÚNotImplementedrá   s     r   Ú__lt__zName.__lt__e  ó-   € Ü�eœTÔ"Ø×#Ñ# EÓ*¨1Ñ-°Ñ1Ð1ä!Ð!r   c                 ó\   — t        |t        «      r| j                  |«      d   dk  S t        S ræ   rç   rá   s     r   Ú__le__zName.__le__k  ó-   € Ü�eœTÔ"Ø×#Ñ# EÓ*¨1Ñ-°Ñ2Ð2ä!Ð!r   c                 ó\   — t        |t        «      r| j                  |«      d   dk\  S t        S ræ   rç   rá   s     r   Ú__ge__zName.__ge__q  rí   r   c                 ó\   — t        |t        «      r| j                  |«      d   dkD  S t        S ræ   rç   rá   s     r   Ú__gt__zName.__gt__w  rê   r   c                 ó.   — d| j                  «       z   dz   S )Nz
<DNS name ú>)Ú__str__re   s    r   Ú__repr__zName.__repr__}  s   € Ø˜dŸl™l›nÑ,¨sÑ2Ð2r   c                 ó$   — | j                  d«      S )NF)Úto_textre   s    r   rô   zName.__str__€  s   € Ø�|‰|˜EÓ"Ð"r   Nr§   Ústylec                 ó@   — |€t        |¬«      }| j                  |«      S )aw  Convert name to DNS text format.

        :param bool omit_final_dot: If ``True``, don't emit the final dot
            (denoting the root label) for absolute names.  The default is
            ``False``.
        :param style: If specified, the style overrides the other parameters.
        :type style: :py:class:`dns.name.NameStyle` or ``None``
        :rtype: str
        )r§   )r¦   Úto_styled_text)rC   r§   rø   s      r   r÷   zName.to_textƒ  s$   € ð ˆ=Ü¨^Ô<ˆEØ×"Ñ" 5Ó)Ð)r   r”   c                 óR   — |€t         }|€t        ||¬«      }| j                  |«      S )a‹  Convert name to DNS text format.

        IDN ACE labels are converted to Unicode using the specified codec.

        :param bool omit_final_dot: If ``True``, don't emit the final dot
            (denoting the root label) for absolute names.  The default is
            ``False``.
        :param idna_codec: The IDNA codec to use for decoding ACE labels.
            If ``None``, the default IDNA codec is used.
        :type idna_codec: :py:class:`dns.name.IDNACodec` or ``None``
        :param style: If specified, the style overrides the other parameters.
        :type style: :py:class:`dns.name.NameStyle` or ``None``
        :rtype: str
        )r§   r”   )r–   r¦   rú   )rC   r§   r”   rø   s       r   Ú
to_unicodezName.to_unicode“  s1   € ð( ÐÜ%ˆJØˆ=Ü¨^È
ÔSˆEØ×"Ñ" 5Ó)Ð)r   c                 ó  — | j                  |j                  |j                  «      }t        |j                  «      dk(  ryt        |j                  «      dk(  r|j                  d   dk(  ry|j
                  r |j                  «       r|j                  dd }n|j                  }|j                  €dj                  t        t        |«      «      S dj                  |D �cg c]  }|j                  j                  |«      ‘Œ c}«      S c c}w )a!  Convert name to text format, applying the style.

        See the documentation for :py:class:`dns.name.NameStyle` for a description
        of the style parameters.

        :param style: The style to apply.
        :type style: :py:class:`dns.name.NameStyle`
        :rtype: str
        r   ú@r   r   ú.Nrš   )Úchoose_relativityr©   rª   rŒ   r˜   r§   rÂ   r”   ÚjoinÚmapra   rq   )rC   rø   Únamerœ   r¯   s        r   rú   zName.to_styled_text­  sÔ   € ð ×%Ñ% e§l¡l°E×4DÑ4DÓEˆÜˆt�{‰{Ó˜qÒ ØÜˆt�{‰{Ó˜qÒ  T§[¡[°¡^°sÒ%:ØØ×Ò D×$4Ñ$4Ô$6Ø—‘˜C˜RÐ ‰Aà—‘ˆAØ×ÑÐ#Ø—8‘8œC¤	¨1Ó-Ó.Ð.à—8‘8ÀÖC¸A˜U×-Ñ-×4Ñ4°QÕ7ÒCÓDÐDùÒCs   Ã"Dr©   r¨   c                 ó4   — | j                  |d¬«      }|€J ‚|S )aV  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.

        :param origin: If the name is relative and *origin* is not ``None``,
            then *origin* will be appended to the name.
        :type origin: :py:class:`dns.name.Name` or ``None``
        :raises dns.name.NeedAbsoluteNameOrOrigin: if the name is relative
            and no origin was provided.
        :rtype: bytes
        T)r©   rÞ   )Úto_wire)rC   r©   Údigests      r   Úto_digestablezName.to_digestableÆ  s'   € ð —‘ V¸$�Ó?ˆØÐ!Ð!Ð!Øˆr   ÚfileÚcompressrÞ   c                 ó`  — |€Ét        «       }| j                  D ]7  }|j                  t        |«      «       |r||j	                  «       z  }Œ3||z  }Œ9 | j                  «       s^|�|j                  «       st        ‚|j                  D ]7  }|j                  t        |«      «       |r||j	                  «       z  }Œ3||z  }Œ9 t        |«      S | j                  «       sR|�|j                  «       st        ‚t        | j                  «      }|j                  t        |j                  «      «       n| j                  }d}|D ]î  }t        ||d «      }	|dz  }|�|j                  |	«      }
nd}
|
�.d|
z   }t        j                  d|«      }|j                  |«        y|�(t        |	«      dkD  r|j                  «       }
|
dk  r|
||	<   t        |«      }|j                  t        j                  d|«      «       |dkD  sŒ¼|r |j                  |j	                  «       «       ŒÞ|j                  |«       Œð y)a¯  Convert name to wire format, possibly compressing it.

        :param file: 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.
        :param compress: 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.
        :type compress: dict or ``None``
        :param origin: If the name is relative and *origin* is not ``None``,
            then *origin* will be appended to it.
        :type origin: :py:class:`dns.name.Name` or ``None``
        :param bool canonicalize: 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: ``None`` if *file* is provided, otherwise the wire format
            as ``bytes``.
        :rtype: bytes or ``None``
        Nr   r   i À  z!Hiÿ?  ú!B)Ú	bytearrayr˜   ÚappendrŒ   rg   rÂ   r1   rY   ÚlistÚextendr   ÚgetÚstructÚpackÚwriteÚtell)rC   r  r	  r©   rÞ   ÚoutrM   r˜   rž   ÚnÚposÚvalueÚsrœ   s                 r   r  zName.to_wireÙ  sþ  € ð: ˆ<Ü“+ˆCØŸ™ò !�Ø—
‘
œ3˜u›:Ô&ÙØ˜5Ÿ;™;›=Ñ(‘Cà˜5‘L‘Cð!ð ×#Ñ#Ô%Ø�>¨×);Ñ);Ô)=Ü2Ð2Ø#Ÿ]™]ò %�EØ—J‘Jœs 5›zÔ*Ù#Ø˜uŸ{™{›}Ñ,™à˜u™™ð%ô ˜“:Ðð ×ÑÔ!Øˆ~ V×%7Ñ%7Ô%9Ü.Ð.Ü˜$Ÿ+™+Ó&ˆFØ�M‰Mœ$˜vŸ}™}Ó-Õ.à—[‘[ˆFØˆØò 	*ˆEÜ�V˜A˜B�ZÓ ˆAØ�‰FˆAØÐ#Ø—l‘l 1“o‘à�ØˆØ ™�Ü—K‘K  eÓ,�Ø—
‘
˜1”Øð ð Ð'¬C°«F°QªJØŸ)™)›+�CØ˜f’}Ø&)˜ ™Ü˜“J�Ø—
‘
œ6Ÿ;™; t¨QÓ/Ô0Ø�q“5Ù#ØŸ
™
 5§;¡;£=Õ1àŸ
™
 5Õ)ð/	*ð0 r   c                 ó,   — t        | j                  «      S )zAThe length of the name (in labels).

        :rtype: int
        rÁ   re   s    r   Ú__len__zName.__len__,  s   € ô �4—;‘;ÓÐr   Úindexc                 ó    — | j                   |   S r   rº   )rC   r  s     r   Ú__getitem__zName.__getitem__4  s   € Ø�{‰{˜5Ñ!Ð!r   c                 ó$   — | j                  |«      S r   )Úconcatenaterá   s     r   Ú__add__zName.__add__7  s   € Ø×Ñ Ó&Ð&r   c                 ó$   — | j                  |«      S r   )rª   rá   s     r   Ú__sub__zName.__sub__:  s   € Ø�‰˜uÓ%Ð%r   Údepth)r   r   c                 óÆ   — t        | j                  «      }|dk(  r| t        fS ||k(  rt        | fS |dk  s||kD  rt        d«      ‚t	        | d|  «      t	        | | d «      fS )ae  Split a name into a prefix and suffix names at the specified depth.

        :param int depth: The number of labels in the suffix.
        :raises ValueError: if *depth* is not >= 0 and <= the length of the
            name.
        :returns: A ``(prefix, suffix)`` tuple.
        :rtype: tuple[:py:class:`dns.name.Name`, :py:class:`dns.name.Name`]
        r   z0depth must be >= 0 and <= the length of the nameN)rŒ   r˜   ÚemptyÚ
ValueErrorr   )rC   r$  rœ   s      r   Úsplitz
Name.split=  sr   € ô �—‘ÓˆØ�AŠ:Øœ%�=Ð Ø�aŠZÜ˜4�=Ð Ø�QŠY˜% !š)ÜÐOÓPÐPÜ�T˜'˜E˜6�]Ó#¤T¨$°¨v¨w¨-Ó%8Ð9Ð9r   c                 óÒ   — | j                  «       rt        |«      dkD  rt        ‚t        | j                  «      }|j                  t        |j                  «      «       t        |«      S )aH  Return a new name which is the concatenation of self and other.

        :param other: The name to concatenate.
        :type other: :py:class:`dns.name.Name`
        :raises dns.name.AbsoluteConcatenation: if the name is absolute and
            *other* is not the empty name.
        :rtype: :py:class:`dns.name.Name`
        r   )rÂ   rŒ   r8   r  r˜   r  r   )rC   rÉ   r˜   s      r   r   zName.concatenateP  sM   € ð ×ÑÔ¤# e£*¨q¢.Ü'Ð'Ü�d—k‘kÓ"ˆØ�‰”d˜5Ÿ<™<Ó(Ô)Ü�F‹|Ðr   c                 óX   — | j                  |«      rt        | dt        |«        «      S | S )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.``.

        :param origin: The origin to relativize against.
        :type origin: :py:class:`dns.name.Name`
        :rtype: :py:class:`dns.name.Name`
        N)rÚ   r   rŒ   ©rC   r©   s     r   rª   zName.relativize`  s/   € ð ×Ñ˜VÔ$Ü˜˜^¤ F£˜|Ð,Ó-Ð-àˆKr   c                 óH   — | j                  «       s| j                  |«      S | S )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.``.

        :param origin: The origin to append.
        :type origin: :py:class:`dns.name.Name`
        :rtype: :py:class:`dns.name.Name`
        )rÂ   r   r+  s     r   ÚderelativizezName.derelativizer  s&   € ð ×ÑÔ!Ø×#Ñ# FÓ+Ð+àˆKr   rª   c                 óR   — |r$|r| j                  |«      S | j                  |«      S | S )a  Return 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.

        :param origin: If not ``None``, controls relativization.
        :type origin: :py:class:`dns.name.Name` or ``None``
        :param bool relativize: If ``True``, relativize; if ``False``,
            derelativize.
        :rtype: :py:class:`dns.name.Name`
        )rª   r-  )rC   r©   rª   s      r   r   zName.choose_relativity„  s/   € ñ" ÙØ—‘ vÓ.Ð.à×(Ñ(¨Ó0Ð0àˆKr   c                 ób   — | t         k(  s	| t        k(  rt        ‚t        | j                  dd «      S )a"  Return 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.
        :rtype: :py:class:`dns.name.Name`
        r   N)Úrootr&  r:   r   r˜   re   s    r   ÚparentzName.parent�  s+   € ð ”4Š<˜4¤5š=ÜˆNÜ�D—K‘K  �OÓ$Ð$r   Ú	prefix_okc                 ó&   — t        t        | ||«      S )ao  Return the maximal predecessor of the name in the DNSSEC ordering.

        Returns the maximal predecessor in the zone whose origin is *origin*,
        or returns the longest name under *origin* if the name is *origin*
        (i.e. wraps 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.

        :param origin: The zone origin.
        :type origin: :py:class:`dns.name.Name`
        :param bool prefix_ok: If ``True`` (the default), prefixing labels is
            allowed.  Specify ``False`` when computing a maximal predecessor
            at a zone cut point.
        :rtype: :py:class:`dns.name.Name`
        )Ú_handle_relativity_and_callÚ_absolute_predecessor©rC   r©   r2  s      r   ÚpredecessorzName.predecessor«  s   € ô& +Ü! 4¨°ó
ð 	
r   c                 ó&   — t        t        | ||«      S )a»  Return the minimal successor of the name in the DNSSEC ordering.

        Returns the minimal successor in the zone whose origin is *origin*,
        or returns *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.

        :param origin: The zone origin.
        :type origin: :py:class:`dns.name.Name`
        :param bool prefix_ok: If ``True`` (the default), prefixing a new
            minimal label is allowed.  Specify ``False`` when computing a
            minimal successor at a zone cut point.
        :rtype: :py:class:`dns.name.Name`
        )r4  Ú_absolute_successorr6  s      r   Ú	successorzName.successorÂ  s   € ô* +Ô+>ÀÀfÈiÓXÐXr   )rN   r   )FN)FNNr   )NNNF)rÉ   r   rN   r   )r©   r   rN   r   )NT©T)6r   r   r   r   Ú	__slots__r   rY   rw   rB   r²   r·   r»   r¿   rv   rÂ   rÅ   ÚintrÈ   r®   r
   rÕ   rÚ   rÜ   rÞ   râ   rä   ré   rì   rï   rñ   rõ   rô   r¦   r÷   rc   rü   rú   r  r   ÚCompressTyper  r  r  r!  r#  r(  r   rª   r-  r   r1  r7  r:  rI   rJ   s   @r   r   r   ¢  sn  ø„ ñð �
€Ið&˜x¨°©Ñ4ó &ò!ò6ò'ô&ð?˜Tó ?ð?˜ó ?ð
˜#ó 
ðQ* ð Q*¨E°,ÀÀSÐ2HÑ,Ió Q*ðf &ð ¨Tó ð Fð ¨tó ó6òòò"ò"ò"ò"ò3ò#ð GKñ*Ø"ð*Ø3<¸tÑ3Cð*à	ó*ð$  %Ø'+Ø"&ñ	*àð*ð  Ñ$ð*ð ˜4Ñð	*ð
 
ó*ð4E Ið E°#ó Eñ2 Mð ¸Uó ð*  Ø(,Ø $Ø"ñQà�D‰jðQð  Ñ%ðQð ð	Qð
 ðQð 
�‰óQðf ˜ó  ð" ð "¨ó "ò'ò&ð:˜3ð : 5¨Ñ#8ó :ó&ó ó$ð& @DñØ#ðØ8<ðà	óó2%ñ
 &ð 
°Tð 
ÀVó 
ñ.Y ð Y°4ð YÀ6÷ Yr   r   r^   r©   c                 óZ  — g }d}d}d}d}|€t         }| dk(  rd} | �rI| dv rt        dg«      S | D ]ì  }|rœ|dk(  r8t        j                  j	                  |«      rt        |«      }|dz  }Œ:||z  }d}ŒBt        j                  j	                  |«      st        ‚|dz  }|t        |«      z  }|dz  }|d	k(  sŒ…|d
kD  rt        ‚d}|t        |«      z  }Œ¡|dv r7t        |«      dk(  rt        ‚|j                  |j                  |«      «       d}ŒÜ|dk(  rd}d}d}Œè||z  }Œî |rt        ‚t        |«      dkD  r!|j                  |j                  |«      «       n|j                  d«       t        |«      dk(  s|d   dk7  r&|�$|j                  t        |j                  «      «       t        |«      S )aK  Convert unicode text into a :py:class:`dns.name.Name` object.

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

    :param str text: The text to convert into a name.
    :param origin: The origin to append to non-absolute names.  The
        default is the root name.
    :type origin: :py:class:`dns.name.Name` or ``None``
    :param idna_codec: The IDNA encoder/decoder.  If ``None``, the default
        IDNA encoder/decoder is used.
    :type idna_codec: :py:class:`dns.name.IDNACodec` or ``None``
    :rtype: :py:class:`dns.name.Name`
    rP   Fr   rþ   )rÿ   u   ã€‚u   ï¼Žu   ï½¡r   r   é
   r   r›   rQ   Trš   )r–   r   ÚdnsÚ
_text_utilÚis_ascii_digitr=  r'   r[   rŒ   r$   r  rm   r  r  r˜   )	r^   r©   r”   r˜   rM   ÚescapingÚedigitsr�   r_   s	            r   Úfrom_unicoderF  á  s»  € ð$ €FØ€EØ€HØ€GØ€EØÐÜ!ˆ
Øˆs‚{ØˆÚØÐ6Ñ6Ü˜˜“;ÐØò 	ˆAÙØ˜a’<Ü—~‘~×4Ñ4°QÔ7Ü # A£˜Ø 1™™à ™
˜Ø#(™äŸ>™>×8Ñ8¸Ô;Ü'˜Ø˜R‘K�EØœS ›V‘O�EØ˜q‘L�GØ !“|Ø  3š;Ü"+˜OØ#(˜Ø¤ U£Ñ+™ØÐ9Ñ9Ü�u“: ’?Ü$Ð$Ø—‘˜j×/Ñ/°Ó6Ô7Ø‘Ø�d’Ø�Ø�Ø‘à˜‘
‘ð=	ñ> ÜˆOÜˆu‹:˜Š>Ø�M‰M˜*×+Ñ+¨EÓ2Õ3à�M‰M˜#ÔäˆF‹�qÒ˜F 2™J¨#Ò-°6Ð3EØ�‰”d˜6Ÿ=™=Ó)Ô*Ü�‹<Ðr   c                 ó2   — | D ]  }t        |«      dkD  sŒ y y)NrS   FT)r]   )r^   r_   s     r   rs   rs   *  s$   € Øò ˆÜˆq‹6�D‹=Ùðð r   c                 óÎ  — t        | t        «      r)t        | «      st        | ||«      S | j	                  d«      } g }t        «       }d}d}d}| dk(  rd} | �rJ| dk(  rt        dg«      S | D ]ò  }t        j                  d|«      }	|r‰|dk(  r)|	j                  «       rt        |	«      }|dz  }ŒA||	z  }d}ŒI|	j                  «       st        ‚|d	z  }|t        |	«      z  }|dz  }|d
k(  sŒ}|dkD  rt        ‚d}|t        j                  d|«      z  }Œ¤|	dk(  r9t        |«      dk(  rt        ‚|j                  t        |«      «       t        «       }Œâ|	dk(  rd}d}d}Œî||	z  }Œô |rt        ‚t        |«      dkD  r|j                  t        |«      «       n|j                  d«       t        |«      dk(  s|d   dk7  r&|�$|j!                  t#        |j$                  «      «       t        |«      S )a   Convert text into a :py:class:`dns.name.Name` object.

    :param text: The text to convert into a name.
    :type text: bytes or str
    :param origin: The origin to append to non-absolute names.  The
        default is the root name.
    :type origin: :py:class:`dns.name.Name` or ``None``
    :param idna_codec: The IDNA encoder/decoder.  If ``None``, the default
        IDNA encoder/decoder is used.
    :type idna_codec: :py:class:`dns.name.IDNACodec` or ``None``
    :rtype: :py:class:`dns.name.Name`
    rŠ   Fr   ó   @r   ó   .r  r   r@  r   r›   ó   \Trš   )rX   rw   rs   rF  rm   r  r   r  r  Úisdigitr=  r'   rŒ   r$   r  rY   r  r  r˜   )
r^   r©   r”   r˜   rM   rD  rE  r�   r_   Úbyte_s
             r   Ú	from_textrN  1  sÚ  € ô$ �$œÔÜ˜DÔ!ä  f¨jÓ9Ð9ð �{‰{˜7Ó#ˆØ€Fä‹K€EØ€HØ€GØ€EØˆt‚|ØˆÚØ�4Š<Ü˜˜“;ÐØò 	ˆAÜ—K‘K  aÓ(ˆEÙØ˜a’<Ø—}‘}”Ü # E£
˜Ø 1™™à ™˜Ø#(™à Ÿ=™=œ?Ü'˜Ø˜R‘K�EØœS ›ZÑ'�EØ˜q‘L�GØ !“|Ø  3š;Ü"+˜OØ#(˜Ø¤§¡¨T°5Ó!9Ñ9™Ø˜$’Ü�u“: ’?Ü$Ð$Ø—‘œe E›lÔ+Ü!›‘Ø˜%’Ø�Ø�Ø‘à˜‘‘ð?	ñ@ ÜˆOÜˆu‹:˜Š>Ø�M‰Mœ% ›,Õ'à�M‰M˜#ÔÜˆF‹�qÒ˜F 2™J¨#Ò-°6Ð3EØ�‰”d˜6Ÿ=™=Ó)Ô*Ü�‹<Ðr   é   ÚparserÚ
decompressc                 óV  — g }| j                   }d}| j                  «       5  | j                   }| j                  «       }|dk7  r®|dk  r!|j                  | j	                  |«      «       nr|dk\  rg|st
        ‚|dz  dz  | j                  «       z   }||k\  rt        ‚|}|dz  }|t        kD  rt        ‚| j                  |«       | j                  |«       |}nt        ‚| j                  «       }|dk7  rŒ®|j                  d«       ddd«       t        |«      S # 1 sw Y   t        |«      S xY w)	a?  Convert possibly compressed wire format into a :py:class:`dns.name.Name`.

    :param parser: The wire format parser.
    :type parser: :py:class:`dns.wirebase.Parser`
    :param decompress: Is decompression allowed?
    :type decompress: bool
    :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.
    :raises dns.name.DecompressionForbidden: if a name needs decompression but it is
        not allowed.
    :rtype: :py:class:`dns.name.Name`
    r   é@   éÀ   r‹   é   r   r   N)ÚcurrentÚrestore_furthestÚ	get_uint8r  Ú	get_bytesr/   r)   ÚMAX_COMPRESSION_POINTER_CHAINr+   Úrestrict_endÚseekr-   r   )rP  rQ  r˜   Úbiggest_pointerÚhopsÚstartÚcountrV  s           r   Úfrom_wire_parserra  Ÿ  s*  € ð €FØ—n‘n€OØ€DØ	×	 Ñ	 Ó	"ñ Ø—‘ˆØ× Ñ Ó"ˆØ�qŠjØ�rŠzØ—‘˜f×.Ñ.¨uÓ5Õ6Ø˜#’á!Ü0Ð0à  4™<¨3Ñ.°×1AÑ1AÓ1CÑC�Ø˜oÒ-Ü$Ð$Ø")�Ø˜‘	�ØÔ7Ò7Ü-Ð-ð ×#Ñ# EÔ*Ø—‘˜GÔ$Ø‘ä"Ð"Ø×$Ñ$Ó&ˆEð- �q‹jð. 	�‰�cÔ÷5ô6 �‹<Ð÷7ô6 �‹<Ðús   ¡CDÃ1DÄD(ÚmessagerV  c                 óz   — t         j                  j                  | |«      }t        |«      }||j                  |z
  fS )a‹  Convert possibly compressed wire format into a :py:class:`dns.name.Name`.

    :param bytes message: A ``bytes`` containing an entire DNS message in DNS
        wire form.
    :param int current: 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 tuple of the name that was read and the number of bytes of
        the wire format message which were consumed reading it.
    :rtype: tuple[:py:class:`dns.name.Name`, int]
    )rA  ÚwirebaseÚParserra  rV  )rb  rV  rP  r  s       r   Ú	from_wirerf  Ï  s8   € ô �\‰\× Ñ  ¨'Ó2€FÜ˜FÓ#€DØ�&—.‘. 7Ñ*Ð+Ð+r   ó    ó   ÿrþ   ú[c                 ó2   — t        j                  d„ | d«      S )Nc                 ó$   — | t        |«      z   dz   S )Nr   )rŒ   )Úvr¯   s     r   ú<lambda>z_wire_length.<locals>.<lambda>ï  s   € ¨¬S°«V©°a©€ r   r   )Ú	functoolsÚreducerº   s    r   Ú_wire_lengthrp  î  s   € Ü×ÑÑ7¸ÀÓCÐCr   c                 ó:  — dt        | j                  «      z
  }g }|dkD  r#|j                  t        dz  «       |dz  }|dkD  rŒ#|dk\  r|j                  t        |dz
  z  «       t	        t        |«      «      }|j                  | j                  «       t        |«      S )Nr›   rS  r‹   r   r   )rp  r˜   r  Ú_MAXIMAL_OCTETr  Úreversedr  r   )r  ÚneededÚ
new_labelss      r   Ú_pad_to_max_namerv  ò  s”   € Ø”< §¡Ó,Ñ,€FØ€JØ
�2Š+Ø×Ñœ.¨2Ñ-Ô.Ø�"‰ˆð �2‹+ð �‚{Ø×Ñœ.¨F°Q©JÑ7Ô8ô ”h˜zÓ*Ó+€JØ×Ñ�d—k‘kÔ"Ü�
ÓÐr   c                 ó„   — t        | «      }dt        |«      z
  |z
  dz
  }|dk  r| S t        d|z
  |«      }| t        |z  z   S )Nr›   r   r   r‹   )rŒ   rp  Úminrr  )rM   Úsuffix_labelsÚlengthÚ	remainingrt  s        r   Ú_pad_to_max_labelr|    sP   € Ü�‹Z€Fà”l =Ó1Ñ1°FÑ:¸QÑ>€IØ�A‚~àˆÜ��f‘˜iÓ(€FØ”> FÑ*Ñ*Ð*r   r  r2  c                 ó€  — | |k(  rt        | «      S | d   }|t        k(  r| j                  «       S |d   }| j                  dd  }|t        k(  r|d d g}nBt        |«      }|d   }|t        k(  rt        }n|dz  }||d<   t        |«      }t        ||«      g}|j                  |«       t        |«      } |rt        | «      S | S )Nr   rš   r   )rv  Ú_MINIMAL_OCTETr1  r˜   Ú_MINIMAL_OCTET_VALUEr  Ú_LEFT_SQUARE_BRACKET_VALUEÚ_AT_SIGN_VALUErY   r|  r  r   )	r  r©   r2  Úleast_significant_labelÚleast_octetry  ru  ÚoctetsÚoctets	            r   r5  r5    sÞ   € ð ˆv‚~Ü Ó%Ð%Ø" 1™gÐØ¤.Ò0Ø�{‰{‹}ÐØ)¨"Ñ-€KØ—K‘K  �O€MØÔ*Ò*Ø-¨c¨rÐ2Ð3‰
äÐ2Ó3ˆØ�r‘
ˆØÔ.Ò.Ü"‰Eà�Q‰JˆEØˆˆr‰
Ü"'¨£-ÐÜ'Ð(?ÀÓOÐPˆ
Ø×Ñ�mÔ$Ü�
Ó€DÙÜ Ó%Ð%àˆr   c                 óR  — |r	 t         j                  | «      S | |k7  rë| d   }t        |«      dk  r4|t        z   g}|j                  | j                  dd  «       	 t        |«      S t        |«      }t        t        |«      dz
  dd«      D ]g  }||   }|t        k(  rŒ|t        k(  rt        }n|dz  }|||<   t        |d |dz    «      g}|j                  | j                  dd  «       t        |«      c S  | j                  «       } | |k7  rŒë|S # t        $ r Y Œýw xY w# t        $ r Y ŒÀw xY w)Nr   r‹   r   rš   )Ú_SUCCESSOR_PREFIXr   r3   rŒ   r~  r  r˜   r   r  ÚrangeÚ_MAXIMAL_OCTET_VALUEr�  r€  rY   r1  )r  r©   r2  r‚  ru  r„  rž   r…  s           r   r9  r9  .  s]  € ñ ð	Ü$×0Ñ0°Ó6Ð6ð �&Š.à"& q¡'ÐÜÐ&Ó'¨"Ò,ð 2´NÑBÐCˆJØ×Ñ˜dŸk™k¨!¨"˜oÔ.ðÜ˜JÓ'Ð'ô
 Ð2Ó3ˆô ”s˜6“{ Q‘¨¨BÓ/ò 	$ˆAØ˜1‘IˆEØÔ,Ò,àð œÒ&Ü2‘à˜‘
�ØˆF�1‰Iä  w¨¨Q© Ó0Ð1ˆJØ×Ñ˜dŸk™k¨!¨"˜oÔ.ô ˜
Ó#Ò#ð+	$ð0 �{‰{‹}ˆðW �&‹.ð^ €Møôc ò 	Ùð	ûô ò Ùðús#   „D Á
D Ä	DÄDÄ	D&Ä%D&Úfunctionc                 óä   — |j                  «       st        ‚|j                  «        }|r|j                  |«      }n|j                  |«      st        ‚ | |||«      }|r|j                  |«      }|S r   )rÂ   r1   r-  rÚ   rL   rª   )rŠ  r  r©   r2  ÚrelativeÚresult_names         r   r4  r4  l  su   € ð ×ÑÔÜ&Ð&Ø×#Ñ#Ó%Ð%€HÙØ× Ñ  Ó(‰Ø×Ñ˜vÔ&Ü#Ð#Ù˜4 ¨Ó3€KÙØ!×,Ñ,¨VÓ4ˆØÐr   r;  )mr   r´   ÚdataclassesÚencodings.idnar}   rn  r  Úcollections.abcr   r   Útypingr   Údns._featuresrA  Údns._text_utilÚdns.enumÚdns.exceptionÚdns.immutableÚdns.wirebaseÚ	dns.styler   Ú	_featuresÚhaver   r�   Údictr=  r>  ÚenumÚIntEnumr
   r   ÚNAMERELN_NONEr   ÚNAMERELN_SUPERDOMAINr   ÚNAMERELN_SUBDOMAINr    ÚNAMERELN_EQUALr   ÚNAMERELN_COMMONANCESTORÚ	exceptionÚSyntaxErrorr$   r'   Ú	FormErrorr)   r+   r-   r/   ÚDNSExceptionr1   r3   r6   r8   r:   r<   r>   rL   rZ   r\   rY   rw   ra   rc   ry   r„   ÚIDNA_2003_PracticalÚIDNA_2003_StrictÚ	IDNA_2003ÚIDNA_2008_PracticalÚIDNA_2008_UTS_46ÚIDNA_2008_StrictÚIDNA_2008_TransitionalÚ	IDNA_2008r–   r—   r®   r¡   r£   Ú	dataclassr¦   Ú	immutabler   r0  r&  rF  rv   rs   rN  rZ  rd  re  ra  rf  r~  r]   r  r‡  rr  r‰  r�  r€  rp  rv  r|  r5  r9  r4  r"   r   r   ú<module>r±     s  ðñ$ ã Û Û Û Û ß .Ý ã Û Û Û Û Û Ý ð ‡=�=×Ñ�fÔÛà�Nà€Nð �F˜C�KÑ €ô�3—8‘8×#Ñ#ô ð6 ×!Ñ!€Ø#×/Ñ/Ð Ø!×+Ñ+Ð Ø×#Ñ#€Ø&×5Ñ5Ð ô �—‘×*Ñ*ô  ôC�—‘×)Ñ)ô CôH�—‘×(Ñ(ô Hô8˜#Ÿ-™-×1Ñ1ô 8ô=�3—=‘=×*Ñ*ô =ôK˜SŸ]™]×4Ñ4ô KôD˜sŸ}™}×9Ñ9ô Dô
+�#—-‘-×)Ñ)ô +ô+�3—=‘=×,Ñ,ô +ô+˜CŸM™M×6Ñ6ô +ô
ˆs�}‰}×)Ñ)ô ô
�—‘×+Ñ+ô ô
	*�C—M‘M×.Ñ.ô 	*ôY˜CŸM™M×6Ñ6ô Yð €ð %€ð�U˜S‘[ð  Só ÷@$ñ $ô>!2�Iô !2ôHF2�Iô F2ñR $ EÓ*Ð Ù  Ó&Ð Ø€	Ù# D¨%°°uÓ=Ð Ù   u¨e°UÓ;Ð Ù  ¨¨u°dÓ;Ð Ù& t¨T°5¸%Ó@Ð Ø€	ÙØ&�Là&€Lð yó ð˜U 5¨# :Ñ.ð °4ó ð8	 E¨C¡Kð 	°Eó 	ð €×Ñ˜dÔ#ô�	ó ó $ðð2 ‡�×Ñ÷tYð tYó ðtYñp ˆSˆEƒ{€ñ 	ˆR‹€ð &*È$ñFØ
ðFØ˜d‘{ðFØ7@À4Ñ7GðFà	óFðR�sð ˜tó ð Ø#'ñRØ
�#‰+ðRà�4‰KðRð ˜DÑ ðRð 
ó	Rðj !#Ð ñ2-˜SŸ\™\×0Ñ0ð -¸dð -Èdó -ð`,�uð , sð ,¨u°T¸3°YÑ/?ó ,ð, €Ù˜>Ó*Ð Ù˜.Ð)Ó*Ð Ø€Ù˜>Ó*Ð Ù�S“€Ù  ›XÐ òDòò +ð ð ¨dð ¸tð Èó ðB;˜dð ;¨Dð ;¸Tð ;Àdó ;ð|Ø˜˜d DÐ)¨4Ð/Ñ0ðà
ðð ðð ð	ð
 
ôr   