a
    ǏPf                     @   s  U 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 d dlmZmZm	Z	m
Z
mZ d dlmZmZmZ d dlmZ d dlmZ d dlmZ d dlmZmZmZmZmZmZmZmZmZmZmZm Z  d d	l!m"Z" zd dl#Z$e%e$d
Z&W n e'y   dZ&Y n0 ddl(m)Z) ddl*m+Z+ ddl,m-Z- ddl.m/Z/ ddl0m1Z1 ddl2m3Z3 ddl4m5Z5m6Z6 ddl7m8Z8 ddl9m:Z: erddl;m<Z<m=Z=m>Z>m?Z?m@Z@mAZA eeBdddZCeed dddZDeEeBdddZFeGdg ZHeEeBdd d!ZIdveed# d$eBeBeeJ eeJ eeJ eBe eKdf d%
d&d'ZLeEe eMeeMd(f f eBd)d*d+ZNdwed# d$eBeBeeJ eeJ eeJ eBdd,	d-d.ZOG d/d0 d0e5ZPeeef eeKeKeKf d1d2d3ZQd4eeKeKeKf d1d5d6ZRejSd7d8 eeRe
eQed9d8 ed:d8 eTd;d8 ed<d8 eUd=d8 eVd>d8 e	d?d8 eWd@d8 eXdAd8 edBd8 iZYeeMeegeeKeKeKf f f eZdC< eXeY[ Z\eTejSeefZ]eeBddDdEZ^eG dFdG dGZ_eG dHdI dIZ`eeBddJdKZadxeeeJ eeJ eeJ e_dLdMdNZbdOdPdddddQeeJeJeeJ eeJ eeJ eBeKdRdSdTZcddUdddddVeed# eBeeJ eeJ eeJ eBddWdXdYZdeedZkrG d[d\ d\Zfd d]lmgZg G d^d_ d_egZhe
eJZid`eida< ddbdcdddeh dfgeUh dge
eVdhg diieg djdkehdldmdndodpdqgef drZjejda kej d dsllmmZm G dtdu duZnemePen  dS )y    N)array)CounterUserDictUserListdefaultdictdeque)	dataclassfieldsis_dataclass)isclass)islice)MappingProxyType)TYPE_CHECKINGAnyCallableDefaultDictDictIterableListOptionalSequenceSetTupleUnion)RichReprResultibF   get_console)	loop_last)	pick_bool)RichRenderablecell_len)ReprHighlighter)JupyterMixinJupyterRenderable)Measurement)Text)ConsoleConsoleOptionsHighlighterTypeJustifyMethodOverflowMethodRenderResultobjreturnc                 C   s   t ott| S )z1Check if an object was created with attrs module.)
_has_attrs_attr_modulehastyper0    r7   X/var/www/html/python-backend/venv/lib/python3.9/site-packages/pip/_vendor/rich/pretty.py_is_attr_object:   s    r9   z_attr_module.Attribute[Any]c                 C   s   t rtt| S g S )zGet fields for an attrs object.)r2   r3   r	   r5   r6   r7   r7   r8   _get_attr_fields?   s    r:   c                 C   s,   z| j jjtjkW S  ty&   Y dS 0 dS )zCheck if an instance of a dataclass contains the default repr.

    Args:
        obj (object): A dataclass instance.

    Returns:
        bool: True if the default repr is used, False if there is a custom repr.
    FN)__repr____code__co_filenamedataclasses__file__	Exceptionr6   r7   r7   r8   _is_dataclass_reprD   s    rA   _dummy_namedtuplec              	   C   s@   d}zt | j}W n ttfy*   Y n0 t tj}||kS )zCheck if an instance of namedtuple contains the default repr

    Args:
        obj (object): A namedtuple

    Returns:
        bool: True if the default repr is used, False if there's a custom repr.
    N)inspectgetfiler;   OSError	TypeErrorrB   )r0   obj_filedefault_repr_filer7   r7   r8   _has_default_namedtuple_reprX   s    	rI   ignorer)   r-   )
valueconsoleoverflowcropindent_guides
max_length
max_string	max_depth
expand_allr1   c	                 C   s   ddl m}	 t| ts| d u r"d S |p*t }| V}
t| |	rH|  |jt| trZ| nt	| ||||||dd|ddd W d    n1 s0    Y  |

 dS )	Nr   )ConsoleRenderable   )rM   rO   rP   rQ   rR   rS   marginT )rN   new_line_startend
)rL   rT   _safe_isinstancer&   r   capturelineprintr!   Prettygetrstrip)rK   rL   rM   rN   rO   rP   rQ   rR   rS   rT   r\   r7   r7   r8   _ipy_display_hookl   s2    



$rb   .)r0   class_or_tupler1   c                 C   s&   zt | |W S  ty    Y dS 0 dS )zFisinstance can fail in rare cases, for example types with no __class__FN)
isinstancer@   )r0   rc   r7   r7   r8   r[      s    r[   )	rL   rM   rN   rO   rP   rQ   rR   rS   r1   c              	      s   ddl m  p   dus"J tdd fdd}dt v rt }	ddlm}
 G fd	d
d
|
}| }||	jjd< n|t	_
dS )a  Install automatic pretty printing in the Python REPL.

    Args:
        console (Console, optional): Console instance or ``None`` to use global console. Defaults to None.
        overflow (Optional[OverflowMethod], optional): Overflow method. Defaults to "ignore".
        crop (Optional[bool], optional): Enable cropping of long lines. Defaults to False.
        indent_guides (bool, optional): Enable indentation guides. Defaults to False.
        max_length (int, optional): Maximum length of containers before abbreviating, or None for no abbreviation.
            Defaults to None.
        max_string (int, optional): Maximum length of string before truncating, or None to disable. Defaults to None.
        max_depth (int, optional): Maximum depth of nested data structures, or None for no maximum. Defaults to None.
        expand_all (bool, optional): Expand all containers. Defaults to False.
        max_frames (int): Maximum number of frames to show in a traceback, 0 for no maximum. Defaults to 100.
    r   r   NrK   r1   c              
      sR   | durN dusJ dt _ jt| tr,| nt| dd | t _dS )z?Replacement sys.displayhook which prettifies objects with Rich.N)rM   rO   rP   rQ   rR   rS   )rN   )builtins_r^   r[   r!   r_   )rK   )rL   rN   rS   rO   rR   rP   rQ   rM   r7   r8   display_hook   s$    	zinstall.<locals>.display_hookget_ipython)BaseFormatterc                       s:   e Zd ZU dZeed< eed fddZdS )zinstall.<locals>.RichFormatterTpprintre   c              
      s,   | j r t|  dS t|S d S )N)rL   rM   rO   rP   rQ   rR   rS   )rk   rb   repr)selfrK   rS   r   rO   rR   rP   rQ   rM   r7   r8   __call__   s    z'install.<locals>.RichFormatter.__call__N)__name__
__module____qualname__rk   bool__annotations__r   ro   r7   rn   r7   r8   RichFormatter   s   
ru   z
text/plain)pip._vendor.richr   r   globalsri   IPython.core.formattersrj   display_formatter
formatterssysdisplayhook)rL   rM   rN   rO   rP   rQ   rR   rS   rh   iprj   ru   rich_formatterr7   )	rL   rN   rS   r   rO   rR   rP   rQ   rM   r8   install   s    
"
 r   c                   @   s   e Zd ZdZdddddddddddddeed eed ed	 ee eee ee ee eeedd
ddZddddddZ	ddddddZ
dS )r_   ak  A rich renderable that pretty prints an object.

    Args:
        _object (Any): An object to pretty print.
        highlighter (HighlighterType, optional): Highlighter object to apply to result, or None for ReprHighlighter. Defaults to None.
        indent_size (int, optional): Number of spaces in indent. Defaults to 4.
        justify (JustifyMethod, optional): Justify method, or None for default. Defaults to None.
        overflow (OverflowMethod, optional): Overflow method, or None for default. Defaults to None.
        no_wrap (Optional[bool], optional): Disable word wrapping. Defaults to False.
        indent_guides (bool, optional): Enable indentation guides. Defaults to False.
        max_length (int, optional): Maximum length of containers before abbreviating, or None for no abbreviation.
            Defaults to None.
        max_string (int, optional): Maximum length of string before truncating, or None to disable. Defaults to None.
        max_depth (int, optional): Maximum depth of nested data structures, or None for no maximum. Defaults to None.
        expand_all (bool, optional): Expand all containers. Defaults to False.
        margin (int, optional): Subtrace a margin from width to force containers to expand earlier. Defaults to 0.
        insert_line (bool, optional): Insert a new line if the output has multiple new lines. Defaults to False.
    N   Fr   )indent_sizejustifyrM   no_wraprO   rP   rQ   rR   rS   rV   insert_liner+   r,   r-   )_objecthighlighterr   r   rM   r   rO   rP   rQ   rR   rS   rV   r   r1   c                C   sX   || _ |pt | _|| _|| _|| _|| _|| _|| _|	| _	|
| _
|| _|| _|| _d S N)r   r$   r   r   r   rM   r   rO   rP   rQ   rR   rS   rV   r   )rm   r   r   r   r   rM   r   rO   rP   rQ   rR   rS   rV   r   r7   r7   r8   __init__  s    zPretty.__init__r)   r*   r.   )rL   optionsr1   c              	   c   s   t | j|j| j | j| j| j| j| jd}t	j
|| jp:|j| jpD|jt| j|jdd}|rf| |nt	t| j ddd}| jr|js|j| jdd}| jrd|v rd	V  |V  d S )
N	max_widthr   rP   rQ   rR   rS   pretty)r   rM   r   stylez.__repr__ returned empty stringz
dim italic)r   zrepr.indentrZ   rW   )pretty_reprr   r   rV   r   rP   rQ   rR   rS   r(   	from_ansir   rM   r    r   r   r5   rO   
ascii_onlywith_indent_guidesr   )rm   rL   r   
pretty_strpretty_textr7   r7   r8   __rich_console__&  s<    
	

	zPretty.__rich_console__r'   c              	   C   sL   t | j|j| j| j| j| j| jd}|r>tdd |	 D nd}t
||S )Nr   c                 s   s   | ]}t |V  qd S r   r"   .0r]   r7   r7   r8   	<genexpr>V      z*Pretty.__rich_measure__.<locals>.<genexpr>r   )r   r   r   r   rP   rQ   rR   rS   max
splitlinesr'   )rm   rL   r   r   
text_widthr7   r7   r8   __rich_measure__I  s    
zPretty.__rich_measure__)N)rp   rq   rr   __doc__r   r   intrs   r   r   r   r7   r7   r7   r8   r_      sH     $r_   )r   r1   c                 C   s   d| j ddd| j dfS )Nzdefaultdict(z, {})z, {}))default_factoryr   r7   r7   r8   _get_braces_for_defaultdict[  s    r   z
array[Any]c                 C   s   d| j ddd| j dfS )Nzarray(z, [])))typecoder   r7   r7   r8   _get_braces_for_arrayc  s    r   c                 C   s   dS )N)z	environ({r   zenviron({})r7   r   r7   r7   r8   <lambda>h  r   r   c                 C   s   dS )N)z	Counter({r   z	Counter()r7   r   r7   r7   r8   r   k  r   c                 C   s   dS )N)zdeque([r   zdeque()r7   r   r7   r7   r8   r   l  r   c                 C   s   dS N){}z{}r7   r   r7   r7   r8   r   m  r   c                 C   s   dS r   r7   r   r7   r7   r8   r   n  r   c                 C   s   dS )N)zfrozenset({r   zfrozenset()r7   r   r7   r7   r8   r   o  r   c                 C   s   dS N)[]z[]r7   r   r7   r7   r8   r   p  r   c                 C   s   dS r   r7   r   r7   r7   r8   r   q  r   c                 C   s   dS )N)r   r   zset()r7   r   r7   r7   r8   r   r  r   c                 C   s   dS )N)(r   ()r7   r   r7   r7   r8   r   s  r   c                 C   s   dS )N)zmappingproxy({r   zmappingproxy({})r7   r   r7   r7   r8   r   t  r   _BRACESc                 C   s.   t | ts$t| s$t| ds$t| o,t|  S )z3Check if an object may be expanded by pretty print.__rich_repr__)r[   _CONTAINERSr
   hasattrr9   r   r6   r7   r7   r8   is_expandablez  s    
r   c                   @   s   e Zd ZU dZdZeed< dZeed< dZeed< dZ	eed< dZ
eed< dZeed	< dZeed
< dZeed< dZeed   ed< dZeed< dZeed< ee dddZeeedddZedddZdeeeedddZdS ) Nodez4A node in a repr tree. May be atomic or a container.rW   key_repr
value_repr
open_braceclose_braceemptyFlastis_tupleis_namedtupleNchildrenz: key_separatorz, 	separatorr1   c                 c   s   | j r| j V  | jV  | jr&| jV  n| jdur| jr| jV  | jrt| jstt| jdkrt| jd  E dH  dV  n(| jD ] }| E dH  |j	sz| j
V  qz| jV  n| jV  dS )zGenerate tokens for this node.Nr   r   ,)r   r   r   r   r   r   r   leniter_tokensr   r   r   r   )rm   childr7   r7   r8   r     s"    




zNode.iter_tokens)start_lengthrP   r1   c                 C   s0   |}|   D ]}|t|7 }||kr dS qdS )a*  Check the length fits within a limit.

        Args:
            start_length (int): Starting length of the line (indent, prefix, suffix).
            max_length (int): Maximum length.

        Returns:
            bool: True if the node can be rendered within max length, otherwise False.
        FT)r   r#   )rm   r   rP   total_lengthtokenr7   r7   r8   check_length  s    
zNode.check_lengthc                 C   s   d |  }|S NrW   )joinr   )rm   	repr_textr7   r7   r8   __str__  s    zNode.__str__P   r   )r   r   rS   r1   c                 C   sx   t | ddg}d}|t|k r`|| }|jrV|jsV|s@||sV|||||d < |d7 }qddd |D }|S )al  Render the node to a pretty repr.

        Args:
            max_width (int, optional): Maximum width of the repr. Defaults to 80.
            indent_size (int, optional): Size of indents. Defaults to 4.
            expand_all (bool, optional): Expand all levels. Defaults to False.

        Returns:
            str: A repr string of the original object.
        T)nodeis_rootr   r   rZ   c                 s   s   | ]}t |V  qd S r   )strr   r7   r7   r8   r     r   zNode.render.<locals>.<genexpr>)_Liner   
expandableexpandedr   expandr   )rm   r   r   rS   linesline_nor]   repr_strr7   r7   r8   render  s    
zNode.render)r   r   F)rp   rq   rr   r   r   r   rt   r   r   r   r   r   rs   r   r   r   r   r   r   r   r   r   r   r   r   r   r7   r7   r7   r8   r     s(   
 r   c                   @   s   e Zd ZU dZdZed  ed< dZeed< dZ	ee
 ed< dZeed< dZeed	< dZeed
< dZeed< dZeed< eedddZeedddZeed  dddZedddZdS )r   zA line in repr output.NparentFr   r   rW   textsuffix
whitespacer   r   r   c                 C   s   t | jduo| jjS )z"Check if the line may be expanded.N)rs   r   r   rm   r7   r7   r8   r     s    z_Line.expandable)rP   r1   c                 C   s:   t | jt| j t| j }| jdus,J | j||S )z4Check this line fits within a given number of cells.N)r   r   r#   r   r   r   r   )rm   rP   r   r7   r7   r8   r     s    z_Line.check_length)r   r1   c                 c   s   | j }|dusJ | j}|js"J |jrJt|j |j |j |dV }nt|j|dV }| jd|  }|jozt|jdk}t	|jD ]4\}}|rdn|j
}	t||||	|o| d}
|
V  qt|j|| j| jdV  dS )z6Expand this line by adding children on their own line.N)r   r    r   r   )r   r   r   r   r   )r   r   r   r   )r   r   r   r   r   r   r   r   r   r   r   r   r   r   )rm   r   r   r   new_linechild_whitespacetuple_of_oner   r   r   r]   r7   r7   r8   r     s8    

z_Line.expandc                 C   sH   | j r | j | j | jpd S | j | j | jp4d | j  S d S r   )r   r   r   r   r   ra   r   r7   r7   r8   r     s    "z_Line.__str__)rp   rq   rr   r   r   r   rt   r   rs   r   r   r   r   r   r   r   r   propertyr   r   r   r   r   r   r7   r7   r7   r8   r     s   
!r   c                 C   s:   zt | dd}W n ty$   Y dS 0 t| to8t|tS )aX  Checks if an object is most likely a namedtuple. It is possible
    to craft an object that passes this check and isn't a namedtuple, but
    there is only a minuscule chance of this happening unintentionally.

    Args:
        obj (Any): The object to test

    Returns:
        bool: True if the object is a namedtuple. False otherwise.
    _fieldsNF)getattrr@   rd   tuple)r0   r	   r7   r7   r8   _is_namedtuple  s
    r   )r   rP   rQ   rR   r1   c              	      s\   t tdfddt jjdt tttd fdd  | d	d
}|S )a`  Traverse object and generate a tree.

    Args:
        _object (Any): Object to be traversed.
        max_length (int, optional): Maximum length of containers before abbreviating, or None for no abbreviation.
            Defaults to None.
        max_string (int, optional): Maximum length of string before truncating, or None to disable truncating.
            Defaults to None.
        max_depth (int, optional): Maximum depth of data structures, or None for no maximum.
            Defaults to None.

    Returns:
        Node: The root of a tree structure which can be used to render a pretty repr.
    r/   c              
      s    durFt | ttfrFt|  krFt|   }| d  d| }nBzt| }W n4 ty } zdt|d}W Y d}~n
d}~0 0 |S )z0Get repr string for an object, but catch errors.N+z<repr-error >)r[   bytesr   r   rl   r@   )r0   	truncatedobj_reprerror)rQ   r7   r8   to_reprE  s    
&ztraverse.<locals>.to_reprFr   )r0   rootdepthr1   c           "         s  t }|v rtddS t}duo0|k}tttttttf f  ddd}ztd}W n t	yz   d}Y n0 d}|sztd	rt
s }W n t	y   Y n0 |dur
| tjd
d}	t||}
jj}|
rg }|j}|r,|	rtd| dd}nt| dd}n|	rNtd| dd||dd}nt| dd||d}t|
D ]h\}}t|tr|\}}||d d}||_||_d|_|| n||d d}||_|| qln&t|	rd| dn| dg |d}| ntr&|s&| g }|j}t  r|rVtjj dd}ntjj dd||d}tttttttgtf  f  d fdd}t| D ]T\}\}}}|rtt||d}n||d d}||_||_d|_|| qntjj dg |d}| nltrtts|str| g }|j}|rztjj dd}n|tjj dd||jj dd}tdd tD D ]>\}}t|j|d d}|j|_||_d|_|| q| ntrt r| jj}|r>t| dd}npg }|j}t| dd|| dd}t! " D ]8\}\}}||d d}||_||_d|_|| qt| ntt#rt#D ]}t|r|} qqʈ| t$| \}}}|r t| d| d}nX|j%tj%krFt|d }n2rjg }t||||d}|j}t&}|d }tt'rt(" }durt)|}t*|D ]:\} \}}||d d}||_| |k|_|| qnRt(}!durt)|!}!t*|!D ],\} }||d d}| |k|_|| qdurx|krx|td!|  d"d  nt|g |d#}| nt|d }tt|_+t|_,|S )$zWalk the object depth first.z...)r   N)	rich_argsr1   c                 s   s   | D ]x}t |trvt|dkr>|\}}}||kr2q||fV  q|t|dkr^|\}}||fV  q|t|dkr||d V  q|V  qd S )N      r   r   )r[   r   r   )r   argkeyr   defaultr7   r7   r8   iter_rich_argse  s    

z3traverse.<locals>._traverse.<locals>.iter_rich_args,awehoi234_wdfjwljet234_234wdfoijsdfmmnxpi492Fr   angular<z...>z(...)r   r   )r   r   r   r   r   r   r   )r   r   r   r   r   )r   =r   )r   r   r   r   c                  3   sv    D ]l} | j rzt| j}W n2 tyP } z| j|dfV  W Y d}~qd}~0 0 | j|t| j rh| j ndfV  qdS )z$Iterate over attr fields and values.N)rl   r   namer@   callable)attrrK   r   attr_fieldsr0   r7   r8   
iter_attrs  s    $z/traverse.<locals>._traverse.<locals>.iter_attrs)r   r   r   r   r   c                 s   s   | ]}|j r|V  qd S r   )rl   )r   fieldr7   r7   r8   r     s   z.traverse.<locals>._traverse.<locals>.<genexpr>)r   r   r   r   )r   r   z... +T)r   r   r   )-idr   r5   r   r   r   r   r   r   r@   r   r   r   list	__class__rp   appendr   r[   r   r   r   r   r9   r:   r   r   r
   rA   r	   r   r   rI   _asdictitemsr   r   r;   r   _MAPPING_CONTAINERSiterr   	enumerater   r   )"r0   r   r   obj_idobj_typereached_max_depthr   fake_attributesrich_repr_resultr   args
class_namer   r  r   r   r   r   r   
child_noder  r   rK   repr_callabler  container_typer   r   r   	num_itemslast_item_index
iter_itemsindexiter_values)	_traverserR   rP   pop_visitedpush_visitedr   visited_idsr   r8   r  Y  sx   
$













ztraverse.<locals>._traverseT)r   )Fr   )r   r   setaddremovers   r   r   )r   rP   rQ   rR   r   r7   )r  rR   rP   rQ   r  r  r   r  r8   traverse0  s    & |r"  r   r   r   )r   r   r   rP   rQ   rR   rS   r1   c          	      C   s4   t | tr| }nt| |||d}|j|||d}|S )a  Prettify repr string by expanding on to new lines to fit within a given width.

    Args:
        _object (Any): Object to repr.
        max_width (int, optional): Desired maximum width of repr string. Defaults to 80.
        indent_size (int, optional): Number of spaces to indent. Defaults to 4.
        max_length (int, optional): Maximum length of containers before abbreviating, or None for no abbreviation.
            Defaults to None.
        max_string (int, optional): Maximum length of string before truncating, or None to disable truncating.
            Defaults to None.
        max_depth (int, optional): Maximum depth of nested data structure, or None for no depth.
            Defaults to None.
        expand_all (bool, optional): Expand all containers regardless of available width. Defaults to False.

    Returns:
        str: A possibly multi-line representation of the object.
    )rP   rQ   rR   )r   r   rS   )r[   r   r"  r   )	r   r   r   rP   rQ   rR   rS   r   r   r7   r7   r8   r   X  s    
r   T)rL   rO   rP   rQ   rR   rS   )r   rL   rO   rP   rQ   rR   rS   r1   c             
   C   s6   |du rt  n|}|jt| |||||dddd dS )a  A convenience function for pretty printing.

    Args:
        _object (Any): Object to pretty print.
        console (Console, optional): Console instance, or None to use default. Defaults to None.
        max_length (int, optional): Maximum length of containers before abbreviating, or None for no abbreviation.
            Defaults to None.
        max_string (int, optional): Maximum length of strings before truncating, or None to disable. Defaults to None.
        max_depth (int, optional): Maximum depth for nested data structures, or None for unlimited depth. Defaults to None.
        indent_guides (bool, optional): Enable indentation guides. Defaults to True.
        expand_all (bool, optional): Expand all containers. Defaults to False.
    NrJ   )rP   rQ   rR   rO   rS   rM   T)	soft_wrap)r   r^   r_   )r   rL   rO   rP   rQ   rR   rS   _consoler7   r7   r8   rk     s    	rk   __main__c                   @   s   e Zd ZedddZdS )
BrokenReprr   c                 C   s   dd  dS )Nr   r   zthis will failr7   r   r7   r7   r8   r;     s    zBrokenRepr.__repr__Nrp   rq   rr   r   r;   r7   r7   r7   r8   r&    s   r&  )
NamedTuplec                   @   s:   e Zd ZU eed< eed< eed< eed< ee ed< dS )StockKeepingUnitr   descriptionZpricecategoryZreviewsN)rp   rq   rr   r   rt   floatr   r7   r7   r7   r8   r)    s
   
r)     foozHello World!gZd;Y@gʡE3t@g    cA>   r-           )r   r   r   r   >   r   r   r   Zcrumble)appleZrhubarbbutterZsugarZflour)r2  Zorangepearkumquatr5  AX  duriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurianduriandurian)FTNzSparkling British Spring WaterzCarbonated spring waterg?Zwaterzits amazing!zits terrible!)r.  barr   counterZatomic
namedtupleZBroken)r^   c                   @   s   e Zd ZedddZdS )Thingr   c                 C   s   dS )NzHello[38;5;239m World!r7   r   r7   r7   r8   r;     s    zThing.__repr__Nr'  r7   r7   r7   r8   r9    s   r9  )NrJ   FFNNNF)NrJ   FFNNNF)NNN)orf   collectionsr>   rC   osr{   r   r   r   r   r   r   r   r	   r
   r   	itertoolsr   typesr   typingr   r   r   r   r   r   r   r   r   r   r   r   Zpip._vendor.rich.reprr   r   r3   r   r2   ImportErrorrW   r   _loopr   _pickr    abcr!   cellsr#   r   r$   jupyterr%   r&   measurer'   r   r(   rL   r)   r*   r+   r,   r-   r.   rs   r9   r:   objectrA   r8  rB   rI   r   r   rb   r5   r[   r   r_   r   r   _Environdict	frozensetr  r  r   r   rt   keysr   r	  r   r   r   r   r"  r   rk   rp   r&  r(  r)  ddatar  rv   r^   r9  r7   r7   r7   r8   <module>   sf  
8
 
        
/        Oh"
(
TC     -+%


!