fdZGddZy)z&Serial Number Arthimetic from RFC 1982c`eZdZddedefdZdZdZdZdZdZ d Z d Z d Z d Z d ZdZy)Serialvaluebitsc,|d|zz|_||_y)Nrr)selfrrs S/var/lib/jenkins/workspace/mettalog/venv/lib/python3.12/site-packages/dns/serial.py__init__zSerial.__init__sQW_  c<d|jd|jdS)Nzdns.serial.Serial(z, )r)r s r __repr__zSerial.__repr__ s#DJJ>r ct|trt||j}n/t|tr|j|jk7rtS|j |j k(SN isinstanceintrrNotImplementedrr others r __eq__z Serial.__eq__N eS !5$)),EE6*ejjDII.E! !zzU[[((r ct|trt||j}n/t|tr|j|jk7rtS|j |j k7Srrrs r __ne__z Serial.__ne__rr ct|trt||j}n/t|tr|j|jk7rtS|j |j kr-|j |j z d|jdz zkry|j |j kDr-|j |j z d|jdz zkDryyNrTFrrs r __lt__z Serial.__lt__ eS !5$)),EE6*ejjDII.E! ! :: # djj(@1UVCW(W ZZ%++ %$**u{{*BQ IIMF + r c||k(xs||kSrrs r __le__z Serial.__le__*u},u ,r ct|trt||j}n/t|tr|j|jk7rtS|j |j kr-|j |j z d|jdz zkDry|j |j kDr-|j |j z d|jdz zkryyrrrs r __gt__z Serial.__gt__-r r c||k(xs||kDSrr"rs r __ge__z Serial.__ge__;r$r c.|j}t|tr |j}nt|tr|}ntt |d|j dz zdz kDrt||z }|d|j zz}t||j SNrrrrrr ValueErrorabsrr rvdeltas r __add__zSerial.__add__> JJ eV $KKE s #E  u:tyy1}-1 2  U  499 a##r c|j}t|tr |j}nt|tr|}ntt |d|j dz zdz kDrt||z }|d|j zz}||_|Sr*r+r.s r __iadd__zSerial.__iadd__L~ JJ eV $KKE s #E  u:tyy1}-1 2  U  499   r c.|j}t|tr |j}nt|tr|}ntt |d|j dz zdz kDrt||z}|d|j zz}t||j Sr*r+r.s r __sub__zSerial.__sub__[r2r c|j}t|tr |j}nt|tr|}ntt |d|j dz zdz kDrt||z}|d|j zz}||_|Sr*r+r.s r __isub__zSerial.__isub__ir5r N) )__name__ __module__ __qualname__rr rrrrr#r&r(r1r4r7r9r"r r rrsLc?)) - - $  $ r rN)__doc__rr"r r r?s-ppr