ó
    ÌÅLg.y  ã                   ó$  • % S r SSKrSSKrSSKrSSKrSSKrSSKrSSKJr  SSK	J
r
JrJrJrJr  SSKrSSKrSSKrSSKrSSKrSSKrSSKrSSKrSSKrSSKrSrSr " S S\R8                  R:                  5      r\S	4S
 jr\S	4S jr \S	4S jr!Sr"S r#S r$\RJ                  RL                  r'\RJ                  RJ                   " S S5      5       r(\RJ                  RJ                   " S S\(5      5       r)0 r*\\\RV                  RX                  \RZ                  R\                  4   \
4   \/S'   Sr0Sq1S.S jr2S.S jr3    S/S\\RV                  RX                  \44   S\\RZ                  R\                  \44   S\\Rj                  Rl                  \44   S\\Rn                  Rp                     S\9S\\Rn                  Rp                     S\\Rn                  Rt                     S\(4S  jjr; S0S\\RV                  RX                  \44   S\\RZ                  R\                  \44   S!\Rx                  Rz                  S\\Rn                  Rp                     S\(4
S" jjr> S0S\\RV                  RX                  \44   S\\RZ                  R\                  \44   S#\?S$\@S%\@S\\Rn                  Rp                     S\(4S& jjrA " S' S(\R8                  R:                  5      rBS)\RV                  R†                  4S*\
S\@S+\4S,\9S\RV                  RX                  SS4S- jjrDg)1z
DNS rdata.é    N)Úimport_module)ÚAnyÚDictÚOptionalÚTupleÚUnioné    Tc                   ó   • \ rS rSrSrSrg)ÚNoRelativeRdataOrderingé3   z¤An attempt was made to do an ordered comparison of one or more
rdata with relative names.  The only reliable way of sorting rdata
is to use non-relativized rdata.

© N)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__Ú__static_attributes__r   ó    Ú+/usr/lib/python3/dist-packages/dns/rdata.pyr   r   3   s   † ôr   r   ó    c           	      óÊ   • U(       d  U R                  5       $ UR                  [        S[        U 5      U5       Vs/ s H	  o0X3U-    PM     sn5      R                  5       $ s  snf )zPBreak a binary string into chunks of chunksize characters separated by
a space.
r   )ÚdecodeÚjoinÚrangeÚlen)ÚdataÚ	chunksizeÚ	separatorÚis       r   Ú
_wordbreakr    ;   sV   € ö
 Ø�{‰{‹}ÐØ�>‰>Ü*/°´3°t³9¸iÔ*HÓIÒ*H Qˆa�i‘-Ó	 Ñ*HÑIóç�fƒhðùÚIs   »A c                 óB   • [        [        R                  " U 5      X5      $ )zwConvert a binary string into its hex encoding, broken up into chunks
of chunksize characters separated by a separator.
)r    ÚbinasciiÚhexlify©r   r   r   Úkws       r   Ú_hexifyr&   J   s   € ô
 ”h×&Ò& tÓ,¨iÓCÐCr   c                 óB   • [        [        R                  " U 5      X5      $ )zzConvert a binary string into its base64 encoding, broken up into chunks
of chunksize characters separated by a separator.
)r    Úbase64Ú	b64encoder$   s       r   Ú
_base64ifyr*   R   s   € ô
 ”f×&Ò& tÓ,¨iÓCÐCr   s   "\c                 ó(  • [        U [        5      (       a  U R                  5       n [        U [        5      (       d  [        U 5      n SnU  HD  nU[        ;   a  US[        U5      -   -  nM   US:¼  a  US:  a  U[        U5      -  nM<  USU-  -  nMF     U$ )z7Escape the characters in a quoted string which need it.Ú Ú\r	   é   z\%03d)Ú
isinstanceÚstrÚencodeÚ	bytearrayÚ	__escapedÚchr)ÚqstringÚtextÚcs      r   Ú	_escapifyr8   _   s‹   € ô �'œ3×ÑØ—.‘.Ó"ˆÜ�gœy×)Ñ)Ü˜GÓ$ˆà€DÛˆØ”	‹>Ø�Dœ3˜q›6‘MÑ!ŠDØ�$‹Y˜1˜t›8Ø”C˜“F‰NŠDà�H˜q‘LÑ ŠDñ ð €Kr   c                 óp   • [        [        U 5      S-
  SS5       H  nX   S:w  d  M  U SUS-    s  $    U SS $ )zƒDetermine the index of greatest byte that isn't all zeros, and
return the bitmap that contains all the bytes less than that index.
é   éÿÿÿÿr   )r   r   )Úwhatr   s     r   Ú_truncate_bitmapr=   r   sF   € ô
 ”3�t“9˜q‘= " bÖ)ˆØ‰7�a�<Ø˜˜A ™E�?Ò"ñ *ð ��!ˆ9Ðr   c                   óÈ  • \ rS rSrSr/ SQrS rS rS rS r	S\
R                  R                  4S	 jrS\4S
 jr  S?S\\
R"                  R$                     S\S\\\4   S\4S jjr   S@S\\   S\\
R"                  R0                     S\\
R"                  R$                     S\SS4
S jjr    SAS\\   S\\
R"                  R0                     S\\
R"                  R$                     S\S\\   4
S jjr SBS\\
R"                  R$                     SS4S jjrSBS\\
R"                  R$                     S\4S jjrS rS rS r S r!S r"S r#S r$S r%S  r&S! r'\(   SCS"\
RR                  RT                  S#\
R                  R                  S$\
RV                  RX                  S\\
R"                  R$                     S\S%\\
R"                  R$                     SS 4S& jj5       r-\( SBS"\
RR                  RT                  S#\
R                  R                  S'\
R\                  R^                  S\\
R"                  R$                     SS 4
S( jj5       r0S)\SS 4S* jr1\(S+ 5       r2\(S, 5       r3\(   SDS-\S.\S/\\   S0\S\4
S1 jj5       r4\(S2 5       r5\(S3 5       r6\(S4 5       r7\(S5 5       r8\(S6 5       r9\(SES7 j5       r:\(S8 5       r;\(S9 5       r<\(S: 5       r=\(S; 5       r>\(S< 5       r?\(S= 5       r@S>rAg)FÚRdataé�   z#Base class for all DNS rdata types.)ÚrdclassÚrdtypeÚ	rdcommentc                 ój   • U R                  U5      U l        U R                  U5      U l        SU l        g)z�Initialize an rdata.

*rdclass*, an ``int`` is the rdataclass of the Rdata.

*rdtype*, an ``int`` is the rdatatype of the Rdata.
N)Ú_as_rdataclassrA   Ú_as_rdatatyperB   rC   )ÚselfrA   rB   s      r   Ú__init__ÚRdata.__init__‡   s/   € ð ×*Ñ*¨7Ó3ˆŒØ×(Ñ(¨Ó0ˆŒØˆ�r   c                 óv   • [         R                  R                  S U R                  R                   5       5      $ )Nc              3   ó<   #   • U  H  n[        US / 5      v •  M     g7f)Ú	__slots__N)Úgetattr)Ú.0Úclss     r   Ú	<genexpr>Ú'Rdata._get_all_slots.<locals>.<genexpr>”   s    é € ð -
Ú5K¨cŒG�C˜ b×)Ð)Ò5Kùs   ‚)Ú	itertoolsÚchainÚfrom_iterableÚ	__class__Ú__mro__©rG   s    r   Ú_get_all_slotsÚRdata._get_all_slots“   s0   € Ü�‰×,Ñ,ñ -
Ø59·^±^×5KÒ5Kó-
ó 
ð 	
r   c                 óR   • 0 nU R                  5        H  n[        X5      X'   M     U$ ©N)rX   rM   )rG   ÚstateÚslots      r   Ú__getstate__ÚRdata.__getstate__˜   s-   € ð ˆØ×'Ñ'Ö)ˆDÜ! $Ó-ˆE‹Kñ *àˆr   c                 ó´   • UR                  5        H  u  p#[        R                  XU5        M     [        U S5      (       d  [        R                  U SS 5        g g )NrC   )ÚitemsÚobjectÚ__setattr__Úhasattr)rG   r\   r]   Úvals       r   Ú__setstate__ÚRdata.__setstate__¦   sJ   € ØŸ™ž‰IˆDÜ×Ñ˜t¨3Ö/ñ 'ä�t˜[×)Ñ)ô ×Ñ˜t [°$Õ7ð *r   Úreturnc                 ó6   • [         R                  R                  $ )al  Return the type a Rdata covers.

DNS SIG/RRSIG rdatas apply to a specific type; this type is
returned by the covers() function.  If the rdata type is not
SIG or RRSIG, dns.rdatatype.NONE is returned.  This is useful when
creating rdatasets, allowing the rdataset to contain only RRSIGs
of a particular type, e.g. RRSIG(NS).

Returns a ``dns.rdatatype.RdataType``.
)ÚdnsÚ	rdatatypeÚNONErW   s    r   ÚcoversÚRdata.covers®   s   € ô �}‰}×!Ñ!Ð!r   c                 óB   • U R                  5       S-  U R                  -  $ )z²Return a 32-bit type value, the least significant 16 bits of
which are the ordinary DNS type, and the upper 16 bits of which are
the "covered" type, if any.

Returns an ``int``.
é   )rm   rB   rW   s    r   Úextended_rdatatypeÚRdata.extended_rdatatype¼   s   € ð �{‰{‹} Ñ" T§[¡[Ñ0Ð0r   NÚoriginÚ
relativizer%   c                 ó   • [         e)z5Convert an rdata to text format.

Returns a ``str``.
©ÚNotImplementedError©rG   rs   rt   r%   s       r   Úto_textÚRdata.to_textÆ   s
   € ô "Ð!r   ÚfileÚcompressÚcanonicalizec                 ó   • [         er[   rv   ©rG   r{   r|   rs   r}   s        r   Ú_to_wireÚRdata._to_wireÓ   s
   € ô "Ð!r   c                 ó¤   • U(       a  U R                  XX45        g[        R                  " 5       nU R                  XRX45        UR                  5       $ )znConvert an rdata to wire format.

Returns a ``bytes`` if no output file was specified, or ``None`` otherwise.
N)r€   ÚioÚBytesIOÚgetvalue)rG   r{   r|   rs   r}   Úfs         r   Úto_wireÚRdata.to_wireÜ   s?   € ö ð
 �M‰M˜$¨&Ô?Øä—
’
“ˆAØ�M‰M˜! vÔ<Ø—:‘:“<Ðr   zdns.rdata.GenericRdatac                 ó†   • [         R                  R                  U R                  U R                  U R                  US95      $ )zbCreates a dns.rdata.GenericRdata equivalent of this rdata.

Returns a ``dns.rdata.GenericRdata``.
)rs   )rj   ÚrdataÚGenericRdatarA   rB   r‡   )rG   rs   s     r   Ú
to_genericÚRdata.to_genericô   s5   € ô �y‰y×%Ñ%Ø�L‰L˜$Ÿ+™+ t§|¡|¸6 |Ð'Bó
ð 	
r   c                 ó0   • U R                  USS9nUc   eU$ )z{Convert rdata to a format suitable for digesting in hashes.  This
is also the DNSSEC canonical form.

Returns a ``bytes``.
T)rs   r}   )r‡   )rG   rs   Úwires      r   Úto_digestableÚRdata.to_digestableÿ   s'   € ð �|‰| 6¸ˆ|Ð=ˆØÑÐÐØˆr   c                 óŠ  • U R                  5       nU[        R                  R                  :X  a  SnO%S[        R                  R	                  U5      -   S-   nS[        R
                  R	                  U R                  5      -   S-   [        R                  R	                  U R                  5      -   U-   S-   [        U 5      -   S-   $ )Nr,   Ú(Ú)z<DNS Ú z rdata: Ú>)	rm   rj   rk   rl   ry   Ú
rdataclassrA   rB   r0   )rG   rm   Úctexts      r   Ú__repr__ÚRdata.__repr__	  s¶   € Ø—‘“ˆØ”S—]‘]×'Ñ'Ó'Ø‰Eàœ#Ÿ-™-×/Ñ/°Ó7Ñ7¸#Ñ=ˆEàÜ�n‰n×$Ñ$ T§\¡\Ó2ñ3àñô �m‰m×#Ñ# D§K¡KÓ0ñ1ð ñ	ð
 ñô �$‹iñð ñð		
r   c                 ó"   • U R                  5       $ r[   )ry   rW   s    r   Ú__str__ÚRdata.__str__  s   € Ø�|‰|‹~Ðr   c                 ó.  •  U R                  5       nSn UR                  5       nSn[        (       a  X5:w  a	  U(       a  ggOU(       d  U(       a  [        eWW:X  a  gX$:”  a  gg! [        R                  R                   a9    [        (       a)  U R                  [        R                  R
                  5      nSn N¥f = f! [        R                  R                   a9    [        (       a)  UR                  [        R                  R
                  5      nSn Nìf = f)a™  Compare an rdata with another rdata of the same rdtype and
rdclass.

For rdata with only absolute names:
    Return < 0 if self < other in the DNSSEC ordering, 0 if self
    == other, and > 0 if self > other.
For rdata with at least one relative names:
    The rdata sorts before any rdata with only absolute names.
    When compared with another relative rdata, all names are
    made absolute as if they were relative to the root, as the
    proper origin is not available.  While this creates a stable
    ordering, it is NOT guaranteed to be the DNSSEC ordering.
    In the future, all ordering comparisons for rdata with
    relative names will be disallowed.
FTr;   r:   r   )r�   rj   ÚnameÚNeedAbsoluteNameOrOriginÚ_allow_relative_comparisonsÚrootr   )rG   ÚotherÚourÚour_relativeÚtheirÚtheir_relatives         r   Ú_cmpÚ
Rdata._cmp  sí   € ð 	 Ø×$Ñ$Ó&ˆCØ ˆLð
	"Ø×'Ñ'Ó)ˆEØ"ˆN÷
 'Ò&ØÓ-ö  Øàð .ö ž^Ü)Ð)Ø�%‹<ØØ‹[Øàøô5 �x‰x×0Ñ0ó 	 ß*Ò*Ø×(Ñ(¬¯©¯©Ó7�ØŠLð	 ûô �x‰x×0Ñ0ó 	"ß*Ò*Ø×+Ñ+¬C¯H©H¯M©MÓ:�Ø!ŠNð	"ús$   ‚A# •B= Á#AB:Â9B:Â=ADÄDc                 ó4  • [        U[        5      (       d  gU R                  UR                  :w  d  U R                  UR                  :w  a  gSnSn U R	                  5       n UR	                  5       nX#:w  a  gXE:H  $ ! [
        R                  R                   a.    U R	                  [
        R                  R                  5      nSn Nff = f! [
        R                  R                   a.    UR	                  [
        R                  R                  5      nSn N¤f = f)NFT)	r/   r?   rA   rB   r�   rj   rŸ   r    r¢   )rG   r£   r¥   r§   r¤   r¦   s         r   Ú__eq__ÚRdata.__eq__L  sæ   € Ü˜%¤×'Ñ'ØØ�<‰<˜5Ÿ=™=Ó(¨D¯K©K¸5¿<¹<Ó,GØØˆØˆð	 Ø×$Ñ$Ó&ˆCð	"Ø×'Ñ'Ó)ˆEð Ó)ØØ‰|Ðøô �x‰x×0Ñ0ó 	 Ø×$Ñ$¤S§X¡X§]¡]Ó3ˆCØŠLð	 ûô
 �x‰x×0Ñ0ó 	"Ø×'Ñ'¬¯©¯©Ó6ˆEØ!ŠNð	"ús&   ÁA< Á"C Á<A	CÃCÃA	DÄDc                 óÄ   • [        U[        5      (       d  gU R                  UR                  :w  d  U R                  UR                  :w  a  gU R	                  U5      (       + $ ©NT)r/   r?   rA   rB   r«   ©rG   r£   s     r   Ú__ne__ÚRdata.__ne__a  sF   € Ü˜%¤×'Ñ'ØØ�<‰<˜5Ÿ=™=Ó(¨D¯K©K¸5¿<¹<Ó,GØØ—;‘;˜uÓ%Ô%Ð%r   c                 óÈ   • [        U[        5      (       a4  U R                  UR                  :w  d  U R                  UR                  :w  a  [        $ U R                  U5      S:  $ ©Nr   ©r/   r?   rA   rB   ÚNotImplementedr¨   r¯   s     r   Ú__lt__ÚRdata.__lt__h  óI   € ä˜5¤%×(Ñ(Ø�|‰|˜uŸ}™}Ó,Ø�{‰{˜eŸl™lÓ*ä!Ð!Ø�y‰y˜Ó !Ñ#Ð#r   c                 óÈ   • [        U[        5      (       a4  U R                  UR                  :w  d  U R                  UR                  :w  a  [        $ U R                  U5      S:*  $ r³   r´   r¯   s     r   Ú__le__ÚRdata.__le__q  óI   € ä˜5¤%×(Ñ(Ø�|‰|˜uŸ}™}Ó,Ø�{‰{˜eŸl™lÓ*ä!Ð!Ø�y‰y˜Ó 1Ñ$Ð$r   c                 óÈ   • [        U[        5      (       a4  U R                  UR                  :w  d  U R                  UR                  :w  a  [        $ U R                  U5      S:¬  $ r³   r´   r¯   s     r   Ú__ge__ÚRdata.__ge__z  r¼   r   c                 óÈ   • [        U[        5      (       a4  U R                  UR                  :w  d  U R                  UR                  :w  a  [        $ U R                  U5      S:„  $ r³   r´   r¯   s     r   Ú__gt__ÚRdata.__gt__ƒ  r¸   r   c                 óf   • [        U R                  [        R                  R                  5      5      $ r[   )Úhashr�   rj   rŸ   r¢   rW   s    r   Ú__hash__ÚRdata.__hash__Œ  s    € Ü�D×&Ñ&¤s§x¡x§}¡}Ó5Ó6Ð6r   rA   rB   ÚtokÚrelativize_toc                 ó   • [         er[   rv   )rO   rA   rB   rÇ   rs   rt   rÈ   s          r   Ú	from_textÚRdata.from_text�  s
   € ô "Ð!r   Úparserc                 ó   • [         er[   rv   ©rO   rA   rB   rÌ   rs   s        r   Úfrom_wire_parserÚRdata.from_wire_parser›  s
   € ô "Ð!r   Úkwargsc                 óÒ  ^ ^• [         R                  " T R                  5      R                  nT Hb  nUS:X  a  M  X2;  a&  [	        ST R
                  R                   SU S35      eUS;   d  M>  [	        ST R
                  R                   SU S35      e   UU 4S jU 5       nT R
                  " U6 nTR                  ST R                  5      nUb  [        R                  USU5        U$ )aS  
Create a new Rdata instance based on the instance replace was
invoked on. It is possible to pass different parameters to
override the corresponding properties of the base Rdata.

Any field specific to the Rdata type can be replaced, but the
*rdtype* and *rdclass* fields cannot.

Returns an instance of the same Rdata subclass as *self*.
rC   Ú'z' object has no attribute '©rA   rB   zCannot overwrite 'z' attribute 'c              3   ó\   >#   • U  H!  nTR                  U[        TU5      5      v •  M#     g 7fr[   )ÚgetrM   )rN   ÚkeyrÑ   rG   s     €€r   rP   Ú Rdata.replace.<locals>.<genexpr>Ä  s&   øé € ÐJºz¸�—
‘
˜3¤¨¨cÓ 2×3Ð3ºzùs   ƒ),)ÚinspectÚ	signaturerH   Ú
parametersÚAttributeErrorrU   r   rÖ   rC   rb   rc   )rG   rÑ   rÛ   r×   ÚargsÚrdrC   s   ``     r   ÚreplaceÚRdata.replace¥  sî   ù€ ô ×&Ò& t§}¡}Ó5×@Ñ@ˆ
ó ˆCØ�kÓ!ÙØÓ$Ü$Ø˜Ÿ™×/Ñ/Ð0Ð0KÈCÈ5ÐPQÐRóð ð Ð+Õ+Ü$Ø(¨¯©×)@Ñ)@Ð(AÀÈsÈeÐSTÐUóð ñ õ K¹zÓJˆð �^Š^˜TÐ"ˆð —J‘J˜{¨D¯N©NÓ;ˆ	ØÑ Ü×Ñ˜r ;°	Ô:Øˆ	r   c                 óT   • [         R                  R                  R                  U5      $ r[   )rj   r—   Ú
RdataClassÚmake©rO   Úvalues     r   rE   ÚRdata._as_rdataclassÒ  s   € ä�~‰~×(Ñ(×-Ñ-¨eÓ4Ð4r   c                 óT   • [         R                  R                  R                  U5      $ r[   )rj   rk   Ú	RdataTyperã   rä   s     r   rF   ÚRdata._as_rdatatypeÖ  s   € ä�}‰}×&Ñ&×+Ñ+¨EÓ2Ð2r   rå   r1   Ú
max_lengthÚempty_okc                 ód  • U(       a&  [        U[        5      (       a  UR                  5       nOD[        U[        5      (       a  [	        U5      nO#[        U[        5      (       a  UnO[        S5      eUb  [        U5      U:”  a  [        S5      eU(       d  [        U5      S:X  a  [        S5      eU$ )Nz	not bytesztoo longr   zempty bytes not allowed)r/   r0   r1   r2   ÚbytesÚ
ValueErrorr   )rO   rå   r1   rê   rë   Úbvalues         r   Ú	_as_bytesÚRdata._as_bytesÚ  sŒ   € ö ”j ¬×,Ñ,Ø—\‘\“^‰FÜ˜œy×)Ñ)Ü˜5“\‰FÜ˜œu×%Ñ%Ø‰Fä˜[Ó)Ð)ØÑ!¤c¨&£k°JÓ&>Ü˜ZÓ(Ð(ÞœC ›K¨1Ó,ÜÐ6Ó7Ð7Øˆr   c                 óÖ   • [        U[        5      (       a  [        R                  R	                  U5      $ [        U[        R                  R
                  5      (       d  [        S5      eU$ )Nz
not a name)r/   r0   rj   rŸ   rÊ   ÚNamerî   rä   s     r   Ú_as_nameÚRdata._as_nameð  sK   € ô
 �eœS×!Ñ!Ü—8‘8×%Ñ% eÓ,Ð,Ü˜E¤3§8¡8§=¡=×1Ñ1Ü˜\Ó*Ð*Øˆr   c                 ót   • [        U[        5      (       d  [        S5      eUS:  d  US:”  a  [        S5      eU$ )Núnot an integerr   éÿ   znot a uint8©r/   Úintrî   rä   s     r   Ú	_as_uint8ÚRdata._as_uint8û  s8   € ä˜%¤×%Ñ%ÜÐ-Ó.Ð.Ø�1‹9˜ ›Ü˜]Ó+Ð+Øˆr   c                 ót   • [        U[        5      (       d  [        S5      eUS:  d  US:”  a  [        S5      eU$ )Nr÷   r   iÿÿ  znot a uint16rù   rä   s     r   Ú
_as_uint16ÚRdata._as_uint16  s8   € ä˜%¤×%Ñ%ÜÐ-Ó.Ð.Ø�1‹9˜ ›Ü˜^Ó,Ð,Øˆr   c                 ót   • [        U[        5      (       d  [        S5      eUS:  d  US:”  a  [        S5      eU$ )Nr÷   r   l   ÿÿ znot a uint32rù   rä   s     r   Ú
_as_uint32ÚRdata._as_uint32  s9   € ä˜%¤×%Ñ%ÜÐ-Ó.Ð.Ø�1‹9˜ 
Ó*Ü˜^Ó,Ð,Øˆr   c                 ót   • [        U[        5      (       d  [        S5      eUS:  d  US:”  a  [        S5      eU$ )Nr÷   r   l   ÿÿÿ znot a uint48rù   rä   s     r   Ú
_as_uint48ÚRdata._as_uint48  s9   € ä˜%¤×%Ñ%ÜÐ-Ó.Ð.Ø�1‹9˜ Ó/Ü˜^Ó,Ð,Øˆr   c                 ó’   • [        U[        5      (       d  [        S5      eUb  X:  a  [        S5      eUb  X:”  a  [        S5      eU$ )Nr÷   zvalue too smallzvalue too largerù   )rO   rå   ÚlowÚhighs       r   Ú_as_intÚRdata._as_int  sK   € ä˜%¤×%Ñ%ÜÐ-Ó.Ð.Ø‰?˜u›{ÜÐ.Ó/Ð/ØÑ £ÜÐ.Ó/Ð/Øˆr   c                 óè   • [        U[        5      (       a  [        R                  R	                  U5      $ [        U[
        5      (       a  [        R                  R                  U5      $ [        S5      e)Nznot an IPv4 address)r/   r0   rj   Úipv4r}   rí   Ú	inet_ntoarî   rä   s     r   Ú_as_ipv4_addressÚRdata._as_ipv4_address%  óR   € ä�eœS×!Ñ!Ü—8‘8×(Ñ(¨Ó/Ð/Ü˜œu×%Ñ%Ü—8‘8×%Ñ% eÓ,Ð,äÐ2Ó3Ð3r   c                 óè   • [        U[        5      (       a  [        R                  R	                  U5      $ [        U[
        5      (       a  [        R                  R                  U5      $ [        S5      e)Nznot an IPv6 address)r/   r0   rj   Úipv6r}   rí   r  rî   rä   s     r   Ú_as_ipv6_addressÚRdata._as_ipv6_address.  r  r   c                 óF   • [        U[        5      (       a  U$ [        S5      e)Nznot a boolean)r/   Úboolrî   rä   s     r   Ú_as_boolÚRdata._as_bool7  s   € ä�eœT×"Ñ"ØˆLä˜_Ó-Ð-r   c                 ó   • [        U[        5      (       a+  U R                  US[        R                  R
                  5      $ [        U[        5      (       a  [        R                  R                  U5      $ [        S5      e)Nr   z	not a TTL)	r/   rú   r	  rj   ÚttlÚMAX_TTLr0   rÊ   rî   rä   s     r   Ú_as_ttlÚRdata._as_ttl>  sW   € ä�eœS×!Ñ!Ø—;‘;˜u a¬¯©¯©Ó9Ð9Ü˜œs×#Ñ#Ü—7‘7×$Ñ$ UÓ+Ð+ä˜[Ó)Ð)r   c                 ób   ^•  T" U5      4$ ! [          a    [        U4S jU 5       5      s $ f = f)Nc              3   ó4   >#   • U  H  nT" U5      v •  M     g 7fr[   r   )rN   ÚvÚas_values     €r   rP   Ú"Rdata._as_tuple.<locals>.<genexpr>P  s   øé € Ð4ªe¨™ !Ÿ˜ªeùs   ƒ)Ú	ExceptionÚtuple)rO   rå   r!  s     `r   Ú	_as_tupleÚRdata._as_tupleG  s9   ø€ ð	5ñ ˜U“OÐ%Ð%øÜó 	5ô Ô4©eÓ4Ó4Ò4ð	5ús   ƒ Œ.­.c                 óH   • [        U5      n[        R                  " U5        U$ r[   )ÚlistÚrandomÚshuffle)rO   Úiterablera   s      r   Ú_processing_orderÚRdata._processing_orderT  s   € ä�X“ˆÜ�Š�uÔØˆr   )rA   rC   rB   r®   ©NNF)NNNFr[   ©NTN)FNT)NN)Br   r   r   r   r   rL   rH   rX   r^   rf   rj   rk   rè   rm   rú   rq   r   rŸ   ró   r  r   r0   r   ry   ÚCompressTyper€   rí   r‡   rŒ   r�   r™   rœ   r¨   r«   r°   r¶   rº   r¾   rÁ   rÅ   Úclassmethodr—   râ   Ú	tokenizerÚ	TokenizerrÊ   r�   ÚParserrÏ   rß   rE   rF   rð   rô   rû   rþ   r  r  r	  r  r  r  r  r%  r,  r   r   r   r   r?   r?   �   sU  † á-â2€Iò
ò
ò
ò8ð"˜Ÿ™×/Ñ/ô "ð1 Cô 1ð +/Øñ"à˜Ÿ™Ÿ™Ñ'ð"ð ð"ð �3˜�8‰nð	"ð
 
õ"ð  59Ø*.Ø"ñ"à�s‰mð"ð ˜3Ÿ8™8×0Ñ0Ñ1ð"ð ˜Ÿ™Ÿ™Ñ'ð	"ð
 ð"ð 
õ"ð #Ø48Ø*.Ø"ñ à�s‰mð ð ˜3Ÿ8™8×0Ñ0Ñ1ð ð ˜Ÿ™Ÿ™Ñ'ð	 ð
 ð ð 
�%‰õ ð2 15ñ	
Ø˜sŸx™xŸ}™}Ñ-ð	
à	!õ	
ñ H¨S¯X©X¯]©]Ñ$;ð Àuõ ò
ò"ò-ò^ò*&ò$ò%ò%ò$ò7ð ð +/ØØ15ñ	"à—‘×*Ñ*ð	"ð —‘×'Ñ'ð	"ð �]‰]×$Ñ$ð		"ð
 ˜Ÿ™Ÿ™Ñ'ð	"ð ð	"ð   §¡§¡Ñ.ð	"ð 
ô	"ó ð	"ð ð +/ñ"à—‘×*Ñ*ð"ð —‘×'Ñ'ð"ð —‘—‘ð	"ð
 ˜Ÿ™Ÿ™Ñ'ð"ð 
ô"ó ð"ð( ð (¨ô (ðZ ñ5ó ð5ð ñ3ó ð3ð ð Ø$(Øñàðð ðð ˜S‘Mð	ð
 ðð 
ôó ðð* ñó ðð ñó ðð ñó ðð ñó ðð ñó ðð óó ðð ñ4ó ð4ð ñ4ó ð4ð ñ.ó ð.ð ñ*ó ð*ð ñ5ó ð5ð ñó ór   r?   c            	       óÀ   ^ • \ rS rSrSrS/rU 4S jr  SS\\R                  R                     S\S\\\4   S\4S	 jjr\ SS
 j5       rSS jr\SS j5       rSrU =r$ )r‹   i[  z‘Generic Rdata Class

This class is used for rdata types for which we have no better
implementation.  It implements the DNS "unknown RRs" scheme.
r   c                 ó0   >• [         TU ]  X5        X0l        g r[   )ÚsuperrH   r   )rG   rA   rB   r   rU   s       €r   rH   ÚGenericRdata.__init__e  s   ø€ Ü‰Ñ˜Ô)Ø�	r   rs   rt   r%   rh   c                 ó`   • S[        U R                  5      -  [        U R                  40 UD6-   $ )Nz\# %d )r   r   r&   rx   s       r   ry   ÚGenericRdata.to_texti  s*   € ð œ3˜tŸy™y›>Ñ)¬G°D·I±IÑ,DÀÑ,DÑDÐDr   c                 ó¢  • UR                  5       nUR                  5       (       a  UR                  S:w  a  [        R                  R                  S5      eUR                  5       nUR                  S5      R                  5       n	[        R                  " U	5      n
[        U
5      U:w  a  [        R                  R                  S5      eU " XU
5      $ )Nú\#z$generic rdata does not start with \#Tz'generic rdata hex data has wrong length)rÖ   Úis_identifierrå   rj   Ú	exceptionÚSyntaxErrorÚget_intÚ!concatenate_remaining_identifiersr1   r"   Ú	unhexlifyr   )rO   rA   rB   rÇ   rs   rt   rÈ   ÚtokenÚlengthÚhexr   s              r   rÊ   ÚGenericRdata.from_textq  s¢   € ð —‘“	ˆØ×"Ñ"×$Ñ$¨¯©°uÓ(<Ü—-‘-×+Ñ+Ð,SÓTÐTØ—‘“ˆØ×3Ñ3°DÓ9×@Ñ@ÓBˆÜ×!Ò! #Ó&ˆÜˆt‹9˜ÓÜ—-‘-×+Ñ+Ð,UÓVÐVÙ�7 DÓ)Ð)r   c                 ó:   • UR                  U R                  5        g r[   )Úwriter   r   s        r   r€   ÚGenericRdata._to_wire  s   € Ø�
‰
�4—9‘9Õr   c                 ó0   • U " XUR                  5       5      $ r[   )Úget_remainingrÎ   s        r   rÏ   ÚGenericRdata.from_wire_parser‚  s   € á�7 F×$8Ñ$8Ó$:Ó;Ð;r   )r   r®   r/  r.  r[   )r   r   r   r   r   rL   rH   r   rj   rŸ   ró   r  r   r0   r   ry   r1  rÊ   r€   rÏ   r   Ú__classcell__)rU   s   @r   r‹   r‹   [  s“   ø† ñð �€Iõð +/ØñEà˜Ÿ™Ÿ™Ñ'ðEð ðEð �3˜�8‰nð	Eð
 
õEð àOSó*ó ð*ôð ó<ó ö<r   r‹   Ú_rdata_classeszdns.rdtypesc                 ó   • [         R                  X45      nU(       dÇ  [         R                  [        R                  R                  U45      nU(       d‘  [
        (       a†  [        R                  R                  U 5      n[        R                  R                  U5      nUR                  SS5      n [        SR                  [        XE/5      5      n[        Xe5      nU[         X4'   U(       d  U(       a  [        nU[         X4'   U$ ! [         an     [        SR                  [        SU/5      5      n[        Xe5      nU[         [        R                  R                  U4'   U[         X4'    N†! [         a      N“f = ff = f)NÚ-Ú_Ú.ÚANY)rN  rÖ   rj   rk   rS  Ú_dynamic_load_allowedr—   ry   rß   r   r   Ú_module_prefixrM   ÚImportErrorr‹   )rA   rB   Úuse_genericrO   Úrdclass_textÚrdtype_textÚmods          r   Úget_rdata_classr[  Ž  sC  € Ü
×
Ñ
˜gÐ.Ó
/€CÞÜ× Ñ ¤#§-¡-×"3Ñ"3°VÐ!<Ó=ˆÞ×,Ò,ÜŸ>™>×1Ñ1°'Ó:ˆLÜŸ-™-×/Ñ/°Ó7ˆKØ%×-Ñ-¨c°3Ó7ˆKðÜ#Ø—H‘Hœn¨lÐHÓIó�ô ˜cÓ/�Ø47” Ð0Ñ1ö –;ÜˆØ,/Œ˜Ð(Ñ)Ø€Jøô ó ðÜ'¨¯©´.À%ÈÐ1UÓ(VÓW�CÜ! #Ó3�CØCF”N¤C§N¡N×$6Ñ$6¸Ð#?Ñ@Ø8;”N GÐ#4Ó5øÜ"ó Úðúðús+   Â05D Ä
E=ÄAE+Å+
E9Å5E=Å8E9Å9E=c                 ó  • [         R                  R                   H(  n[        [         R                  R
                  US5        M*     [        [         R                  R                  [         R                  R                  S5        U (       a  Sqgg)aÇ  Load all rdata types for which dnspython has a non-generic implementation.

Normally dnspython loads DNS rdatatype implementations on demand, but in some
specialized cases loading all types at an application-controlled time is preferred.

If *disable_dynamic_load*, a ``bool``, is ``True`` then dnspython will not attempt
to use its dynamic loading mechanism if an unknown type is subsequently encountered,
and will simply use the ``GenericRdata`` class.
FN)	rj   rk   rè   r[  r—   ÚINÚCHÚArT  )Údisable_dynamic_loadrB   s     r   Úload_all_typesra  ª  s^   € ô —-‘-×)Ô)ˆÜœŸ™×)Ñ)¨6°5Ö9ñ *ô
 ”C—N‘N×%Ñ%¤s§}¡}§¡¸Ô>Þð !&Ñð	 r   rA   rB   rÇ   rs   rt   rÈ   Ú
idna_codecrh   c           
      ó  • [        U[        5      (       a  [        R                  R	                  X&S9n[        R
                  R                  R                  U 5      n [        R                  R                  R                  U5      n[        X5      n[        R                  R                  [        R                  R                  5         SnU[        :w  aÇ  UR                  5       n	UR!                  U	5        U	R#                  5       (       a‘  U	R$                  S:X  a�  [        R'                  XX#XE5      n
[)        XU
R*                  S[-        U
R*                  5      U5      nUR/                  5       nXºR*                  :w  a  [        R                  R                  S5      eUc  UR'                  XX#XE5      nUR1                  5       n	U	R2                  b!  [4        R7                  USU	R2                  5        UsSSS5        $ ! , (       d  f       g= f)a×  Build an rdata object from text format.

This function attempts to dynamically load a class which
implements the specified rdata class and type.  If there is no
class-and-type-specific implementation, the GenericRdata class
is used.

Once a class is chosen, its from_text() class method is called
with the parameters to this function.

If *tok* is a ``str``, then a tokenizer is created and the string
is used as its input.

*rdclass*, a ``dns.rdataclass.RdataClass`` or ``str``, the rdataclass.

*rdtype*, a ``dns.rdatatype.RdataType`` or ``str``, the rdatatype.

*tok*, a ``dns.tokenizer.Tokenizer`` or a ``str``.

*origin*, a ``dns.name.Name`` (or ``None``), the
origin to use for relative names.

*relativize*, a ``bool``.  If true, name will be relativized.

*relativize_to*, a ``dns.name.Name`` (or ``None``), the origin to use
when relativizing names.  If not set, the *origin* value will be used.

*idna_codec*, a ``dns.name.IDNACodec``, specifies the IDNA
encoder/decoder to use if a tokenizer needs to be created.  If
``None``, the default IDNA 2003 encoder/decoder is used.  If a
tokenizer is not created, then the codec associated with the tokenizer
is the one that is used.

Returns an instance of the chosen Rdata subclass.

)rb  Nr<  r   z9compressed data in generic syntax form of known rdatatyperC   )r/   r0   rj   r2  r3  r—   râ   rã   rk   rè   r[  r>  ÚExceptionWrapperr?  r‹   rÖ   Úungetr=  rå   rÊ   Ú	from_wirer   r   r‡   Úget_eol_as_tokenÚcommentrb   rc   )rA   rB   rÇ   rs   rt   rÈ   rb  rO   rŠ   rC  ÚgrdataÚrwires               r   rÊ   rÊ   Â  sŽ  € ôZ �#”s×ÑÜ�m‰m×%Ñ% cÐ%ÐAˆÜ�n‰n×'Ñ'×,Ñ,¨WÓ5€GÜ�]‰]×$Ñ$×)Ñ)¨&Ó1€FÜ
˜'Ó
*€CÜ	�‰×	'Ñ	'¬¯©×(AÑ(AÕ	BØˆØ”,Óà—G‘G“IˆEØ�I‰I�eÔØ×"Ñ"×$Ñ$¨¯©¸Ó)=ô &×/Ñ/Ø S°*ó�ô "Ø V§[¡[°!´S¸¿¹Ó5EÀvó�ð Ÿ™›�ØŸK™KÓ'ÜŸ-™-×3Ñ3ð-óð ð
 ‰=Ø—M‘MØ ¨jóˆEð ×$Ñ$Ó&ˆØ�=‰=Ñ$Ü×Ñ˜u k°5·=±=ÔAØ÷K 
C×	B×	Bús   ÃD)G:Ç:
HrÌ   c                 ó„  • [         R                  R                  R                  U 5      n [         R                  R
                  R                  U5      n[        X5      n[         R                  R                  [         R                  R                  5         UR                  XX#5      sSSS5        $ ! , (       d  f       g= f)aÚ  Build an rdata object from wire format

This function attempts to dynamically load a class which
implements the specified rdata class and type.  If there is no
class-and-type-specific implementation, the GenericRdata class
is used.

Once a class is chosen, its from_wire() class method is called
with the parameters to this function.

*rdclass*, a ``dns.rdataclass.RdataClass`` or ``str``, the rdataclass.

*rdtype*, a ``dns.rdatatype.RdataType`` or ``str``, the rdatatype.

*parser*, a ``dns.wire.Parser``, the parser, which should be
restricted to the rdata length.

*origin*, a ``dns.name.Name`` (or ``None``).  If not ``None``,
then names will be relativized to this origin.

Returns an instance of the chosen Rdata subclass.
N)rj   r—   râ   rã   rk   rè   r[  r>  rd  Ú	FormErrorrÏ   )rA   rB   rÌ   rs   rO   s        r   rÏ   rÏ     s{   € ô: �n‰n×'Ñ'×,Ñ,¨WÓ5€GÜ�]‰]×$Ñ$×)Ñ)¨&Ó1€FÜ
˜'Ó
*€CÜ	�‰×	'Ñ	'¬¯©×(?Ñ(?Õ	@Ø×#Ñ# G°VÓD÷ 
A×	@×	@ús   ÂB1Â1
B?r�   ÚcurrentÚrdlenc                 ó°   • [         R                  R                  X#5      nUR                  U5         [	        XXe5      sSSS5        $ ! , (       d  f       g= f)añ  Build an rdata object from wire format

This function attempts to dynamically load a class which
implements the specified rdata class and type.  If there is no
class-and-type-specific implementation, the GenericRdata class
is used.

Once a class is chosen, its from_wire() class method is called
with the parameters to this function.

*rdclass*, an ``int``, the rdataclass.

*rdtype*, an ``int``, the rdatatype.

*wire*, a ``bytes``, the wire-format message.

*current*, an ``int``, the offset in wire of the beginning of
the rdata.

*rdlen*, an ``int``, the length of the wire-format rdata

*origin*, a ``dns.name.Name`` (or ``None``).  If not ``None``,
then names will be relativized to this origin.

Returns an instance of the chosen Rdata subclass.
N)rj   r�   r4  Úrestrict_torÏ   )rA   rB   r�   rm  rn  rs   rÌ   s          r   rf  rf  @  s;   € ôD �X‰X�_‰_˜TÓ+€FØ	×	Ñ	˜EÕ	"Ü °Ó@÷ 
#×	"×	"ús   ±AÁ
Ac                   ó$   • \ rS rSrSrSS1rSrSrg)ÚRdatatypeExistsig  zDNS rdatatype already exists.rA   rB   zKThe rdata type with class {rdclass:d} and rdtype {rdtype:d} already exists.r   N)r   r   r   r   r   Úsupp_kwargsÚfmtr   r   r   r   rr  rr  g  s   † Ù'à˜hÐ'€Kð	ó r   rr  FÚimplementationrY  Úis_singletonc                 ó`  • [         R                  R                  R                  U5      n[	        XA5      nU[
        :w  d$  [         R                  R                  U5      (       a	  [        XAS9e[        XR                  SS5      5      [        XA4'   [         R                  R                  XU5        g)aË  Dynamically register a module to handle an rdatatype.

*implementation*, a module implementing the type in the usual dnspython
way.

*rdtype*, an ``int``, the rdatatype to register.

*rdtype_text*, a ``str``, the textual form of the rdatatype.

*is_singleton*, a ``bool``, indicating if the type is a singleton (i.e.
RRsets of the type can have only one member.)

*rdclass*, the rdataclass of the type, or ``dns.rdataclass.ANY`` if
it applies to all classes.
rÔ   rP  rQ  N)rj   rk   rè   rã   r[  r‹   Úis_metatyperr  rM   rß   rN  Úregister_type)ru  rB   rY  rv  rA   Úexisting_clss         r   ry  ry  q  s‡   € ô. �]‰]×$Ñ$×)Ñ)¨&Ó1€FÜ" 7Ó3€LØ”|Ó#¤s§}¡}×'@Ñ'@À×'HÑ'HÜ gÑ=Ð=Ü(/Ø×+Ñ+¨C°Ó5ó)„N�GÐ$Ñ%ô ‡M�M×Ñ °\ÕBr   )T)NTNNr[   )Er   r(   r"   rÙ   rƒ   rR   r)  Ú	importlibr   Útypingr   r   r   r   r   Údns.exceptionrj   Údns.immutableÚdns.ipv4Údns.ipv6Údns.nameÚdns.rdataclassÚdns.rdatatypeÚdns.tokenizerÚdns.ttlÚdns.wireÚ
_chunksizer¡   r>  ÚDNSExceptionr   r    r&   r*   r3   r8   r=   Ú	immutableÚconstifyÚ	_constifyr?   r‹   rN  r—   râ   rk   rè   Ú__annotations__rU  rT  r[  ra  r0   r2  r3  rŸ   ró   r  Ú	IDNACodecrÊ   r�   r4  rÏ   rí   rú   rf  rr  r]  ry  r   r   r   Ú<module>rŽ     s–  ðò$ ã Û Û Û 	Û Û Ý #ß 4Õ 4ã Û Û Û Û Û Û Û Û Û à€
ð #Ð ô˜cŸm™m×8Ñ8ô ð  *°Tô 	ð '°$ô Dð  *°Tô Dð €	òò&ð �M‰M×"Ñ"€	ð ‡�×Ñ÷Vð Vó ðVðr ‡�×Ñô(<�5ó (<ó ð(<ðX ð ��U˜3Ÿ>™>×4Ñ4°c·m±m×6MÑ6MÐMÑNÐPSÐSÑTó ð €ØÐ ôô8&ð8 '+ØØ-1Ø/3ñWØ�3—>‘>×,Ñ,¨cÐ1Ñ2ðWà�#—-‘-×)Ñ)¨3Ð.Ñ/ðWð 
ˆs�}‰}×&Ñ&¨Ð+Ñ	,ðWð �S—X‘X—]‘]Ñ#ð	Wð
 ðWð ˜CŸH™HŸM™MÑ*ðWð ˜Ÿ™×+Ñ+Ñ,ðWð õWð| '+ñ	!EØ�3—>‘>×,Ñ,¨cÐ1Ñ2ð!Eà�#—-‘-×)Ñ)¨3Ð.Ñ/ð!Eð �H‰H�O‰Oð!Eð �S—X‘X—]‘]Ñ#ð	!Eð
 õ!EðT '+ñ$AØ�3—>‘>×,Ñ,¨cÐ1Ñ2ð$Aà�#—-‘-×)Ñ)¨3Ð.Ñ/ð$Að ð$Að ð	$Að
 ð$Að �S—X‘X—]‘]Ñ#ð$Að õ$AôN�c—m‘m×0Ñ0ô ð Ø),¯©×):Ñ):ñCØðCàðCð ðCð ð	Cð
 �^‰^×&Ñ&ðCð 
öCr   