/opt/cloudlinux/venv/lib/python3.11/site-packages/pip/_vendor/rich/__pycache__
� ��~0-�/_� � � d dl mZ d dlZd dlmZ ddlmZ ddlmZm Z ej d� � Zdd�Zddd�Z edk r�ddlmZ ed�� � Ze� d� � e e dd� � � � ed�� � Ze� � � e� d� � e� � � e� d� � dS dS ) � )�annotationsN)�Iterable� )� loop_last)�cell_len� chop_cellsz \s*\S+\s*�text�str�return�Iterable[tuple[int, int, str]]c # �� K � d}t � | |� � }|�R|� � � \ }}|� d� � }|||fV � t � | |� � }|�PdS dS )z�Yields each word from the text as a tuple containing (start_index, end_index, word). A "word" in this context may include the actual word and any whitespace to the right. r N)�re_word�match�span�group)r �position� word_match�start�end�words �g/builddir/build/BUILD/cloudlinux-venv-1.0.8/venv/lib/python3.11/site-packages/pip/_vendor/rich/_wrap.py�wordsr s� � � � � �H����t�X�.�.�J� � ��_�_�&�&� ��s�����"�"���S�$������]�]�4��-�-� � � � � � � � T�width�int�fold�bool� list[int]c �� � g }|j }d}t }t | � � D ]�\ }}} || � � � � � } ||z }|| k }|r| || � � z }�?| |k ro|rTt | |�� � } t | � � D ]2\ }}|r ||� � |r ||� � }� |t |� � z }�3��|r ||� � || � � }��|r|r ||� � || � � }��|S )a� Given a string of text, and a width (measured in cells), return a list of cell offsets which the string should be split at in order for it to fit within the given width. Args: text: The text to examine. width: The available cell width. fold: If True, words longer than `width` will be folded onto a new line. Returns: A list of indices to break the line at. r �r )�appendr r �rstripr r �len)r r r �break_positionsr! �cell_offset� _cell_lenr �_endr �word_length�remaining_space�word_fits_remaining_space�folded_word�last�lines r �divide_liner. s^ � � "$�O� � #�F��K��I�"�4�[�[� .� .���t�T��i���� � �.�.���+�-��$3�{�$B�!�$� .��9�9�T�?�?�*�K�K� �U�"�"� � 2�",�T��"?�"?�"?�K�&/��&<�&<� /� /� ��d� � *�"�F�5�M�M�M�� /�*3�)�D�/�/�K�K�!�S��Y�Y�.�E�E� /� � &���u� � � �"+�)�D�/�/�K�K�� .�� .� ��u� � � �'�i��o�o����r �__main__)�Console� r z@12345 abcdefghijklmnopqrstuvwyxzABCDEFGHIJKLMNOPQRSTUVWXYZ 12345�abcdefghijklmnopqrstuvwxyz� uR TextualはPythonの高速アプリケーション開発フレームワークですu4 アプリケーションは1670万色を使用でき)r r r r )T)r r r r r r r r )� __future__r �re�typingr �_loopr �cellsr r �compiler r r. �__name__�consoler0 �print�rule� r r �<module>r? s\ �� "� "� "� "� "� "� � � � � � � � � � � � � � � � � '� '� '� '� '� '� '� '� �"�*�\� "� "��.� .� .� .�4� 4� 4� 4� 4�n �z��� � � � � � ��g�B����G��M�M�T�U�U�U� �E�*�*�1�2� 6� 6�7�7�7��g�B����G��L�L�N�N�N��M�M�f�g�g�g��L�L�N�N�N��M�M�H�I�I�I�I�I� �r
.
Edit
..
Edit
__init__.cpython-311.pyc
Edit
__main__.cpython-311.pyc
Edit
_cell_widths.cpython-311.pyc
Edit
_emoji_codes.cpython-311.pyc
Edit
_emoji_replace.cpython-311.pyc
Edit
_export_format.cpython-311.pyc
Edit
_extension.cpython-311.pyc
Edit
_fileno.cpython-311.pyc
Edit
_inspect.cpython-311.pyc
Edit
_log_render.cpython-311.pyc
Edit
_loop.cpython-311.pyc
Edit
_null_file.cpython-311.pyc
Edit
_palettes.cpython-311.pyc
Edit
_pick.cpython-311.pyc
Edit
_ratio.cpython-311.pyc
Edit
_spinners.cpython-311.pyc
Edit
_stack.cpython-311.pyc
Edit
_timer.cpython-311.pyc
Edit
_win32_console.cpython-311.pyc
Edit
_windows.cpython-311.pyc
Edit
_windows_renderer.cpython-311.pyc
Edit
_wrap.cpython-311.pyc
Edit
abc.cpython-311.pyc
Edit
align.cpython-311.pyc
Edit
ansi.cpython-311.pyc
Edit
bar.cpython-311.pyc
Edit
box.cpython-311.pyc
Edit
cells.cpython-311.pyc
Edit
color.cpython-311.pyc
Edit
color_triplet.cpython-311.pyc
Edit
columns.cpython-311.pyc
Edit
console.cpython-311.pyc
Edit
constrain.cpython-311.pyc
Edit
containers.cpython-311.pyc
Edit
control.cpython-311.pyc
Edit
default_styles.cpython-311.pyc
Edit
diagnose.cpython-311.pyc
Edit
emoji.cpython-311.pyc
Edit
errors.cpython-311.pyc
Edit
file_proxy.cpython-311.pyc
Edit
filesize.cpython-311.pyc
Edit
highlighter.cpython-311.pyc
Edit
json.cpython-311.pyc
Edit
jupyter.cpython-311.pyc
Edit
layout.cpython-311.pyc
Edit
live.cpython-311.pyc
Edit
live_render.cpython-311.pyc
Edit
logging.cpython-311.pyc
Edit
markup.cpython-311.pyc
Edit
measure.cpython-311.pyc
Edit
padding.cpython-311.pyc
Edit
pager.cpython-311.pyc
Edit
palette.cpython-311.pyc
Edit
panel.cpython-311.pyc
Edit
pretty.cpython-311.pyc
Edit
progress.cpython-311.pyc
Edit
progress_bar.cpython-311.pyc
Edit
prompt.cpython-311.pyc
Edit
protocol.cpython-311.pyc
Edit
region.cpython-311.pyc
Edit
repr.cpython-311.pyc
Edit
rule.cpython-311.pyc
Edit
scope.cpython-311.pyc
Edit
screen.cpython-311.pyc
Edit
segment.cpython-311.pyc
Edit
spinner.cpython-311.pyc
Edit
status.cpython-311.pyc
Edit
style.cpython-311.pyc
Edit
styled.cpython-311.pyc
Edit
syntax.cpython-311.pyc
Edit
table.cpython-311.pyc
Edit
terminal_theme.cpython-311.pyc
Edit
text.cpython-311.pyc
Edit
theme.cpython-311.pyc
Edit
themes.cpython-311.pyc
Edit
traceback.cpython-311.pyc
Edit
tree.cpython-311.pyc
Edit