%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/lib/python3/dist-packages/rich/__pycache__/
Upload File :
Create Path :
Current File : //usr/lib/python3/dist-packages/rich/__pycache__/__main__.cpython-312.pyc

�

"T�e� �	�J�ddlZddlZddlmZddlmZddlmZddlm	Z	m
Z
mZmZm
Z
ddlmZddlmZddlmZdd	lmZdd
lmZddlmZddlmZdd
lmZGd�d�Zdefd�Ze dk(�r�e	ejB�d��Z"e�Z#e�Z$e"jKe#�e&e�e$z
dzd�Z'ejB�e"_(e�Z$e"jKe#�e&e�e$z
dzd�Z)e	d��Z*e*jKe#�e%de'�d��e%de)�d��ddl+m,Z,e	�Z"ejZd��Z.e.j_dd��e.j_d� �e.jad!d"�e.jad#d$�ejbd%�Z2ejZd&��Z3e3j_�e3j_d� �e3jae2e.�e"jKe,jhe3ejjd'd(d)�*�d+�,�yy)-�N)�process_time)�box)�Color)�Console�ConsoleOptions�Group�RenderableType�RenderResult)�Markdown)�Measurement)�Pretty)�Segment)�Style)�Syntax)�Table)�Textc�4�eZdZdededefd�Zdddedefd�Zy)�ColorBox�console�options�returnc	#��K�tdd�D]�}t|j�D]�}||jz}d|dzdzz}tj||d�\}}}	tj||dzd�\}
}}t	j
|dz|dz|	dz�}
t	j
|
dz|dz|dz�}t
dt||
�	������t
j�����y�w)
Nr�g�������?gffffff�?g�?g�Q���?�u▄)�color�bgcolor)	�range�	max_width�colorsys�
hls_to_rgbr�from_rgbrr�line)�selfrr�y�x�h�l�r1�g1�b1�r2�g2�b2rrs               �//usr/lib/python3/dist-packages/rich/__main__.py�__rich_console__zColorBox.__rich_console__s������q�!��		!�A��7�,�,�-�
J����)�)�)���A��E�S�=�)��%�0�0��A�s�;�
��B��%�0�0��A��L�#�F�
��B���.�.��c��2��8�R�#�X�F�����r�C�x��c��2��8�D���e�U���%H�I�I�
J��,�,�.� �		!�s�C/C1rc�.�td|j�S)N�)rr)r#rrs   r.�__rich_measure__zColorBox.__rich_measure__!s���1�g�/�/�0�0�N)	�__name__�
__module__�__qualname__rrr
r/rr2�r3r.rrs<��!��!�)7�!�	�!�1� �1�+9�1�	�1r3rrc�T�tjdd��}d|_|jdddd��|jd	�td
dddd��}|j	d
t��|j	d|�|j	dd�d}tjdd��}d|_|j	t|dd��t|dd��t|dd��t|dd���|j	dttjd�|��dtdtdtfd �}|j	d!d"�d#}|j	d$|�tdddd%d&gtj�'�}|jd(dd�)�|jd*d�+�|jd,d-dd�.�|jd/d0dd�.�|j	d1d2d3d4�|j	d5d6d3d7�|j	d8d9d:d;�|j	d<d=d>d?�|j	d@|�dA}dBdCgdDdE�}|j	dF|t|dGdd�H�t|d�I���dJ}	|j	dK|dL|	zt|	���|j	dMdN�|S)Oz8Get a renderable that demonstrates a number of features.r1T)�padding�pad_edgez
Rich features�Feature�centerzbold red)�no_wrap�justify�style�
DemonstrationNF)r�expand�show_header�	show_edger:u�✓ [bold green]4-bit color[/]
✓ [bold blue]8-bit color[/]
✓ [bold magenta]Truecolor (16.7 million)[/]
✓ [bold yellow]Dumb terminals[/]
✓ [bold cyan]Automatic color conversion�Colors�Stylesz�All ansi styles: [bold]bold[/], [dim]dim[/], [italic]italic[/italic], [underline]underline[/], [strike]strikethrough[/], [reverse]reverse[/], and even [blink]blink[/].z�Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque in metus sed sapien ultricies pretium a at justo. Maecenas luctus velit et auctor maximus.)r9�collapse_padding�left�green)r>r?�yellow�right�blue�full�redrz[Word wrap text. Justify [green]left[/], [yellow]center[/], [blue]right[/] or [red]full[/].
�renderable1�renderable2rc��tdddd��}|jdd��|jdd��|j||�|S)NFT)rBr:rrA�1r1)�ratio�2)r�
add_column�add_row)rNrO�tables   r.�
comparisonz"make_test_card.<locals>.comparisonZsK���%�%�T�$�O��
����A��&�
����A��&�
�
�
�k�;�/��r3zAsian
language
supportu!:flag_for_china:  该库支持中文,日文和韩文文本!
:flag_for_japan:  ライブラリは中国語、日本語、韓国語のテキストをサポートしています
:flag_for_south_korea:  이 라이브러리는 중국어, 일본어 및 한국어 텍스트를 지원합니다z�[bold magenta]Rich[/] supports a simple [i]bbcode[/i]-like [b]markup[/b] for [yellow]color[/], [underline]style[/], and emoji! :+1: :apple: :ant: :bear: :baguette_bread: :bus: �Markup�none�dim)rCrBrA�
row_stylesrz[green]Date)r?r=z[blue]Title)r?z[cyan]Production Budget�cyan)r?r>r=z[magenta]Box Office�magentazDec 20, 2019z Star Wars: The Rise of Skywalkerz$275,000,000z$375,126,118zMay 25, 2018z[b]Solo[/]: A Star Wars Storyz$393,151,347zDec 15, 2017z!Star Wars Ep. VIII: The Last Jediz$262,000,000zold]$1,332,539,889[/bold]zMay 19, 1999z-Star Wars Ep. [b]I[/b]: [i]The phantom Menacez$115,000,000z$1,027,044,677�Tablesa~def iter_last(values: Iterable[T]) -> Iterable[Tuple[bool, T]]:
    """Iterate and generate a tuple with a flag for last value."""
    iter_values = iter(values)
    try:
        previous_value = next(iter_values)
    except StopIteration:
        return
    for value in iter_values:
        yield False, previous_value
        previous_value = value
    yield True, previous_valueg��?$	@)z
Paul AtreideszVladimir HarkonnenzThufir Hawat)FTN)�foo�atomicz%Syntax
highlighting
&
pretty
printing�python3)�line_numbers�
indent_guides)rcz�# Markdown

Supports much of the *markdown* __syntax__!

- Headers
- Basic formatting: **bold**, *italic*, `code`
- Block quotes
- Lists, and more...
    rz[cyan]z+more!zBProgress bars, columns, styled logging handler, tracebacks, etc...)r�grid�titlerTrUrr:rr�from_markupr	r�SIMPLErr
r)
rV�color_table�lorem�lorem_tablerW�markup_example�
example_table�code�pretty_data�markdown_examples
          r.�make_test_cardrp's���J�J�q�4�0�E�!�E�K�	���Y��h�j��Q�	���_�%��������K����
8�	�
�	�
�M�M�(�K�(�	�M�M��	r��

j�E��*�*�Q��>�K� �K������U�F�'�2��U�H�H�5��U�G�6�2��U�F�%�0�	�
�M�M��
����r�
�
�		
�����^��PU��
�M�M�"�	n��	<��
�M�M�(�N�+������E�?��J�J��M����]�'�4��H����]�&��9����!����	���������	������*���	�����'���	�����+��%�	�����7���	�
�M�M�(�M�*�"�D�
�
�
�&�
�K�
�M�M�3���4���T�J��;�d�3�	
��	��
�M�M��J�x�*:�:�H�EU�<V�W��
�M�M��P���Lr3�__main__T)�file�force_terminalg@�@r1)�recordzrendered in zms (cold cache)zms (warm cache))�Panel)r9rHrJ)r?r>)r=�
TextualizezH[u blue link=https://github.com/textualize]https://github.com/textualize�TwitterzL[u blue link=https://twitter.com/willmcgugan]https://twitter.com/willmcguganz�We hope you enjoy using Rich!

Rich is maintained with [red]:heart:[/] by [link=https://www.textualize.io]Textualize.io[/]

- Will McGugan�)r1rxz"[b red]Thanks for trying out Rich!�bright_blue)rr9re�border_styler<)r>)6r�io�timer�richr�
rich.colorr�rich.consolerrrr	r
�
rich.markdownr�rich.measurer�rich.prettyr
�rich.segmentr�
rich.styler�rich.syntaxr�
rich.tabler�	rich.textrrrpr4�StringIOr�	test_card�start�print�round�pre_cache_takenrr�taken�c�
rich.panelrurd�sponsor_messagerTrUrf�
intro_message�message�fit�ROUNDEDr7r3r.�<module>r�s���	����U�U�"�$�� �����1�1�*g��g�T�z���
�R�[�[�]���G�� �I�
�N�E��M�M�)���\�^�e�3�v�=�q�A�O��2�;�;�=�G�L��N�E��M�M�)���<�>�E�)�V�3�Q�7�E��t��A��G�G�I��	�L��)��
9�:�	�L����
/�0� ��i�G� �e�j�j��+�O����W�g��>����t��,�����R������V��
%�D�$�$�	��M��e�j�j��#�G��������t��$��O�O�M�?�3��M�M���	�	������6�&�	
���	�or3

Zerion Mini Shell 1.0