관리-도구
편집 파일: __main__.cpython-311.pyc
� �܋f! � �� � d dl Z d dlZd dlmZ d dlmZ d dlmZ d dlm Z m Z mZmZm Z d dlmZ d dlmZ d dlmZ d d lmZ d d lmZ d dlmZ d dlmZ d d lmZ G d� d� � Zdefd�Ze dk �r� e ej! � � d�� � Z" e� � Z# e� � Z$e"�% e#� � e& e� � e$z dz d� � Z' ej! � � e"_( e� � Z$e"�% e#� � e& e� � e$z dz d� � Z) e d�� � Z*e*�% e#� � e%de'� d�� � e%de)� d�� � d dl+m,Z, e � � Z" ej- d�� � Z.e.�/ dd�� � e.�/ d� � � e.�0 d!d"� � e.�0 d#d$� � ej1 d%� � Z2 ej- d&�� � Z3e3�/ � � e3�/ d� � � e3�0 e2e.� � e"�% e,j4 e3ej5 d'd(d)�*� � d+�,� � dS dS )-� N)�process_time)�box)�Color)�Console�ConsoleOptions�Group�RenderableType�RenderResult)�Markdown)�Measurement)�Pretty)�Segment)�Style)�Syntax)�Table)�Textc �6 � e Zd Zdededefd�Zdddedefd�ZdS )�ColorBox�console�options�returnc # �� K � t dd� � D ]�}t |j � � D ]�}||j z }d|dz dz z }t j ||d� � \ }}} t j ||dz d� � \ } }}t j |dz |dz | dz � � } t j | dz |dz |dz � � }t dt || � � � � � V � ��t j � � V � ��d S ) Nr � g�������?gffffff�?g �?g�Q���?� u ▄)�color�bgcolor) �range� max_width�colorsys� hls_to_rgbr �from_rgbr r �line)�selfr r �y�x�h�l�r1�g1�b1�r2�g2�b2r r s �j/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/pip/_vendor/rich/__main__.py�__rich_console__zColorBox.__rich_console__ s � � � � �q�!��� !� !�A��7�,�-�-� J� J����)�)���A��E�S�=�)��%�0��A�s�;�;� ��B��%�0��A��L�#�F�F� ��B���.��c��2��8�R�#�X�F�F����r�C�x��c��2��8�D�D���e�U���%H�%H�%H�I�I�I�I�I�I��,�.�.� � � � � !� !� r c �, � t d|j � � S )N� )r r )r# r r s r. �__rich_measure__zColorBox.__rich_measure__! s � � �1�g�/�0�0�0r0 N) �__name__� __module__�__qualname__r r r r/ r r3 � r0 r. r r sl � � � � � �!��!�)7�!� �!� !� !� !�1� �1�+9�1� �1� 1� 1� 1� 1� 1r0 r r c �X � t j dd�� � } d| _ | � dddd�� � | � d � � t d dddd�� � }|� d t � � � � | � d|� � | � dd� � d}t j dd�� � }d|_ |� t |dd�� � t |dd�� � t |dd�� � t |dd�� � � � | � dt t j d� � |� � � � dt dt dt fd �}| � d!d"� � d#}| � d$|� � t dddd%d> j �'� � }|� d(dd�)� � |� d*d�+� � |� d,d-dd�.� � |� d/d0dd�.� � |� d1d2d3d4� � |� d5d6d3d7� � |� d8d9d:d;� � |� d<d=d>d?� � | � d@|� � dA}dBdCgdDdE�}| � dF |t |dGdd�H� � t |d�I� � � � � � dJ} | � dK |dL| z t | � � � � � � | � dMdN� � | S )Oz8Get a renderable that demonstrates a number of features.r2 T)�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>