+
    ~j	                     d    R t R.t^ RIHtHtHtHt R^RR/R R lltR R	 ltR^RR/R
 R llt	R# )a  Functions for reporting filesizes. Borrowed from https://github.com/PyFilesystem/pyfilesystem2

The functions declared in this module should cover the different
use cases needed to generate a string representation of a file size
using several different units. Since there are many standards regarding
file size units, three different functions have been implemented.

See Also:
    * `Wikipedia: Binary prefix <https://en.wikipedia.org/wiki/Binary_prefix>`_

decimal)IterableListOptionalTuple	precision	separator c                    V ^8  d   QhR\         R\        \        ,          R\         R\        \         ,          R\        \        ,          R\        /# )   sizesuffixesbaser   r   return)intr   strr   )formats   "b/Users/mitch_tango/dev/rabbit-r1-livekit/agent/.venv/lib/python3.14/site-packages/rich/filesize.py__annotate__r      sP      
sm 
 } } 	    c                    V ^8X  d   R# W8  d   V R R2# \        V^4       F  w  rVW%,          pW8  g   K   M	  RP                  W ,          X,          XVVR7      # )   z1 byte,z bytesz{:,.{precision}f}{separator}{}r   r   )	enumerater   )r   r   r   r   r   isuffixunits   &&&$$   r   _to_strr      sq     qy	q  x+	w; , ,22	t		 3  r   c          
          V ^8  d   QhR\         R\        \        ,          R\         R\        \         \        3,          /# )r   r   r   r   r   )r   r   r   r   )r   s   "r   r   r   +   s5      s d3i s uSRUX r   c                d    \        V4       F  w  r4W#,          pWV,          8  g   K   WT3# 	  XX3# )z*Pick a suffix and base for the given size.)r   )r   r   r   r   r   r   s   &&&   r   pick_unit_and_suffixr!   +   s;    x(	w+<	 ) <r   c                t    V ^8  d   QhR\         R\        \         ,          R\        \        ,          R\        /# )r   r   r   r   r   )r   r   r   )r   s   "r   r   r   4   s:     $ $
$ }$ }	$
 	$r   c               "    \        V RRVVR7      # )a  Convert a filesize in to a string (powers of 1000, SI prefixes).

In this convention, ``1000 B = 1 kB``.

This is typically the format used to advertise the storage
capacity of USB flash drives and the like (*256 MB* meaning
actually a storage capacity of more than *256 000 000 B*),
or used by **Mac OS X** since v10.6 to report file sizes.

Arguments:
    int (size): A file size.
    int (precision): The number of decimal places to include (default = 1).
    str (separator): The string to separate the value from the units (default = " ").

Returns:
    `str`: A string containing a abbreviated file size and units.

Example:
    >>> filesize.decimal(30000)
    '30.0 kB'
    >>> filesize.decimal(30000, precision=2, separator="")
    '30.00kB'

i  r   )kBMBGBTBPBEBZBYB)r   )r   r   r   s   &$$r   r   r   4   s     < 8 r   N)
__doc____all__typingr   r   r   r   r   r!   r    r   r   <module>r0      sU   
 + 2 2
  !  #2$  !$  #	$ $r   