+
    Ri                        a  R t0 t ^ RIt^ RIHtHt ]! RR]R]R]]]]3,          R]R]R	]R
]R]/4      tR R lt	]P                  ! R]P                  4      t] ^ k R R ltR# )    N)	TypedDictUnionSearchResultslinknamesizeseedsleech
engine_url	desc_linkpub_datec                (    V ^8  d   QhR\         RR/# )   
dictionaryreturnN)r   )formats   "(/config/qBittorrent/nova3/novaprinter.py__annotate__r   *   s     ( (m ( (    c                    R P                  V R,          V R,          P                  R R4      \        \        V R,          4      4      \        V R,          4      \        V R,          4      V R,          V P	                  RR	4      \        V P	                  R
R4      4      34      p\        ^RRRR7      ;_uu_ 4       p\        WR7       RRR4       R#   + '       g   i     R# ; i)|r   r    r   r	   r
   r   r    r   wzutf-8F)encodingclosefd)fileN)joinreplacestranySizeToBytesgetopenprint)r   outtext
utf8stdouts   &  r   prettyPrinterr(   *   s    hh66""3,N:f-./Jw Jw < {B'JNN:r*+	 	G 
aw	6	6*g' 
7	6	6	6s   8CC 	z'^(?P<size>\d*\.?\d+) *(?P<unit>[a-z]+)?c                \    V ^8  d   QhR\         \        \        \        3,          R\        /# )r   size_stringr   )r   floatintr!   )r   s   "r   r   r   ?   s%      eS#o 6 3 r   c                   \        V \        4      '       d   V # \        V \        4      '       d   \        V 4      # \        P                  V P                  4       4      pVf   R# \        VP                  R4      4      pVP                  R4      pVeB   R^(R^R^R^
/pVP                  V^ ,          P                  4       ^ 4      pV^V,          ,          p\        V4      # )z
Convert a string like '1 KB' to '1024' (bytes)

The canonical type for `size_string` is `str`. However numeric types are also accepted in order to
accommodate poorly written plugins.
r   unitTGMKr   )

isinstancer,   r+   roundsizeUnitRegexmatchstripgroupr#   upper)r*   r6   r   r.   units_exponentsexponents   &     r   r"   r"   ?   s     +s##+u%%[!! 1 1 34E}	V$%D;;vDCS"c2>"&&tAw}}:8;r   c                j    V ^8  d   Qh/ ^ \         9   d   \        P                  \        ,          ;R&   # )r   r5   )__conditional_annotations__rePatternr!   )r   s   "r   r   r      s#    		@ g frzz# fA 
r   )r=   r>   typingr   r   r!   r+   r,   r   r(   compile
IGNORECASEr5   r"   r   )r=   s   @r   <module>rC      s{   6 
	 #/
C
C
E%c/"SS#	, 	(" "$,VXZXeXe!f fr   