Sh3ll
OdayForums


Server : LiteSpeed
System : Linux premium84.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
User : claqxcrl ( 523)
PHP Version : 8.1.32
Disable Function : NONE
Directory :  /opt/alt/python313/lib/python3.13/site-packages/pip/_vendor/rich/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //opt/alt/python313/lib/python3.13/site-packages/pip/_vendor/rich/__pycache__/table.cpython-313.pyc
�

�ZLg��	�4�SSKJrJrJr SSKJrJrJrJrJ	r	J
r
JrJrJ
r
 SSKJrJr SSKJrJr SSKJr SSKJrJr SSKJr SS	KJr SS
KJr SSKJ r J!r! SSK"J#r# SS
K$J%r% SSK&J'r'J(r( SSK)J*r*J+r+ \(aSSK,J-r-J.r.J/r/J0r0J1r1J2r2 \"SS55r3\"SS55r4"SS\	5r5"SS\5r6\7S:XGa�SSK8J-r- SSK9J:r: SSK;J6r6 SSK<J=r= \="S5 \6"SS S!S"9r>\>RS#S$S%S&S'9 \>RS(S)S*9 \>RS+S!S,S-9 \>R�S.S/S05 \>R�S1S2S35 \>R�S4S5S6S7S&S89 \>R�S9S:S;5 S<\AS=S>4S?jrB\-"5r,\:"5rC\B"S@5 \,R�\>SASB9 S&\>lE\B"SC5 \,R�\>5 SD\>lF\B"SE5 \,R�\>SASB9 S>\>lFSF\>lESGSH/\>lG\B"SI5 \,R�\>SASB9 S>\>lFSF\>lESGSH/\>lGS\>lH\B"SJ5 \,R�\>SASB9 S>\>lFSF\>lESGSH/\>lGS&\>lIS\>lH\B"SK5 \,R�\>SASB9 S>S>S>5 g>g>!,(df   g>=f)L�)�	dataclass�field�replace)	�
TYPE_CHECKING�Dict�Iterable�List�
NamedTuple�Optional�Sequence�Tuple�Union�)�box�errors)�loop_first_last�	loop_last)�	pick_bool)�ratio_distribute�ratio_reduce)�VerticalAlignMethod)�JupyterMixin)�Measurement)�Padding�PaddingDimensions)�
is_renderable)�Segment)�Style�	StyleType)�Text�TextType)�Console�ConsoleOptions�
JustifyMethod�OverflowMethod�RenderableType�RenderResultc�n�\rSrSr%SrSrS\S'SrS\S'Sr\	\S'Sr
\	\S'Sr\	\S	'S
rS\S'S
r
S\S'SrS\S'Sr\\\S'Sr\\\S'Sr\\\S'Sr\\\S'Sr\\S'Sr\\S'\"\S9r\S\S'S#Sjr\S\S4S j5r\S\4S!j5r S"r!g)$�Column�&a:
Defines a column within a ~Table.

Args:
    title (Union[str, Text], optional): The title of the table rendered at the top. Defaults to None.
    caption (Union[str, Text], optional): The table caption rendered below. Defaults to None.
    width (int, optional): The width in characters of the table, or ``None`` to automatically fit. Defaults to None.
    min_width (Optional[int], optional): The minimum width of the table, or ``None`` for no minimum. Defaults to None.
    box (box.Box, optional): One of the constants in box.py used to draw the edges (see :ref:`appendix_box`), or ``None`` for no box lines. Defaults to box.HEAVY_HEAD.
    safe_box (Optional[bool], optional): Disable box characters that don't display on windows legacy terminal with *raster* fonts. Defaults to True.
    padding (PaddingDimensions, optional): Padding for cells (top, right, bottom, left). Defaults to (0, 1).
    collapse_padding (bool, optional): Enable collapsing of padding around cells. Defaults to False.
    pad_edge (bool, optional): Enable padding of edge cells. Defaults to True.
    expand (bool, optional): Expand the table to fit the available space if ``True``, otherwise the table width will be auto-calculated. Defaults to False.
    show_header (bool, optional): Show a header row. Defaults to True.
    show_footer (bool, optional): Show a footer row. Defaults to False.
    show_edge (bool, optional): Draw a box around the outside of the table. Defaults to True.
    show_lines (bool, optional): Draw lines between every row. Defaults to False.
    leading (bool, optional): Number of blank lines between rows (precludes ``show_lines``). Defaults to 0.
    style (Union[str, Style], optional): Default style for the table. Defaults to "none".
    row_styles (List[Union, str], optional): Optional list of row styles, if more than one style is given then the styles will alternate. Defaults to None.
    header_style (Union[str, Style], optional): Style of the header. Defaults to "table.header".
    footer_style (Union[str, Style], optional): Style of the footer. Defaults to "table.footer".
    border_style (Union[str, Style], optional): Style of the border. Defaults to None.
    title_style (Union[str, Style], optional): Style of the title. Defaults to None.
    caption_style (Union[str, Style], optional): Style of the caption. Defaults to None.
    title_justify (str, optional): Justify method for title. Defaults to "center".
    caption_justify (str, optional): Justify method for caption. Defaults to "center".
    highlight (bool, optional): Highlight cell contents (if str). Defaults to False.
�r&�header�footer�header_style�footer_style�style�leftr$�justify�topr�vertical�ellipsisr%�overflowN�width�	min_width�	max_width�ratioF�no_wrapr�_index)�default_factory�_cells�returnc��[U/S9$)zReturn a copy of this Column.�r>)r��selfs ڈ/builddir/build/BUILDROOT/alt-python313-pip-23.3.1-1.el8.x86_64/opt/alt/python313/lib/python3.13/site-packages/pip/_vendor/rich/table.py�copy�Column.copyrs���t�B�'�'�c#�8# �URShv�N gN7f)z2Get all cells in the column, not including header.NrArBs rD�cells�Column.cellsvs����;�;���s���c��URSL$)z!Check if this column is flexible.N)r:rBs rD�flexible�Column.flexible{s���z�z��%�%rG�)r?r))"�__name__�
__module__�__qualname__�__firstlineno__�__doc__r,�__annotations__r-r.rr/r0r2r4r6r7r�intr8r9r:r;�boolr<r�listr>r	rE�propertyrrIrL�__static_attributes__rNrGrDr)r)&s(���< "�F��!�H�!�F��!�H� �L�)� �-� �L�)� �-��E�9��-�%�G�_�%�[�&+�H�#�+�M�!+�H��+���E�8�C�=��\�#�I�x��}�#�_�#�I�x��}�#�_��E�8�C�=��w��G�T��R��F�C�O��%*�4�%@�F�D�!�"�@�(���x� 0�1�����&�$�&��&rGr)c�>�\rSrSr%SrSr\\\S'Sr	\
\S'Srg)�Row�zInformation regarding a row.Nr0F�end_sectionrN)rOrPrQrRrSr0rrrTr]rVrYrNrGrDr[r[�s$��&�!%�E�8�I��%� ��K���LrGr[c�<�\rSrSr%Sr\\S'S\S'\\S'Srg)	�_Cell�zA single cell in a table.r0r&�
renderabler4rNN)	rOrPrQrRrSrrTrrYrNrGrDr_r_�s ��#���!� � ��!�!�"rGr_c7�D�\rSrSr%Sr\\\S'\\\S'SSSS\	RSSSSSSSSSS	S
SSSSSSS
S
SS.S\\\4S\
\S\
\S\
\S\
\S\
\	R S\
\S\S\S\S\S\S\S\S\S\S\S \
\\S!\
\S"\
\S#\
\S$\
\S%\
\S&S'S(S'S)\S*S46S+jjr\S	SSSS,.S\\\4S\S\S\S\S*S4S-jj5r\S*\4S.j5r\R4S\S*S4S/j5r\S*\4S0j5r\S*\4S1j5rS2S3S4\S*\4S5jrS2S3S6S7S*\4S8jr\S*\ \\\\44S9j5r!\!R4S\S*S4S:j5r!S]SSSS;S<S=SSSSSS>.S?S@SAS@S!\
\S"\
\S\
\SBS'SCSDSESFS\
\S\
\SG\
\SH\
\SI\S*S4SJjjjr"SSSK.SL\
S@S\
\SM\S*S4SNjjr#S^SOjr$S_SQjr%S2S3S6S7S*\\4SRjr&\SS\\ST\\SG\S*\\4SUj5r'S2S3SV\SW\S*\\(4SXjr)SV\S*\4SYjr*S2S3S6S7SW\S*\4SZjr+S2S3S6S7SS\\S*SP4S[jr,S\r-g)`�Table�a�
A console renderable to draw a table.

Args:
    *headers (Union[Column, str]): Column headers, either as a string, or :class:`~rich.table.Column` instance.
    title (Union[str, Text], optional): The title of the table rendered at the top. Defaults to None.
    caption (Union[str, Text], optional): The table caption rendered below. Defaults to None.
    width (int, optional): The width in characters of the table, or ``None`` to automatically fit. Defaults to None.
    min_width (Optional[int], optional): The minimum width of the table, or ``None`` for no minimum. Defaults to None.
    box (box.Box, optional): One of the constants in box.py used to draw the edges (see :ref:`appendix_box`), or ``None`` for no box lines. Defaults to box.HEAVY_HEAD.
    safe_box (Optional[bool], optional): Disable box characters that don't display on windows legacy terminal with *raster* fonts. Defaults to True.
    padding (PaddingDimensions, optional): Padding for cells (top, right, bottom, left). Defaults to (0, 1).
    collapse_padding (bool, optional): Enable collapsing of padding around cells. Defaults to False.
    pad_edge (bool, optional): Enable padding of edge cells. Defaults to True.
    expand (bool, optional): Expand the table to fit the available space if ``True``, otherwise the table width will be auto-calculated. Defaults to False.
    show_header (bool, optional): Show a header row. Defaults to True.
    show_footer (bool, optional): Show a footer row. Defaults to False.
    show_edge (bool, optional): Draw a box around the outside of the table. Defaults to True.
    show_lines (bool, optional): Draw lines between every row. Defaults to False.
    leading (bool, optional): Number of blank lines between rows (precludes ``show_lines``). Defaults to 0.
    style (Union[str, Style], optional): Default style for the table. Defaults to "none".
    row_styles (List[Union, str], optional): Optional list of row styles, if more than one style is given then the styles will alternate. Defaults to None.
    header_style (Union[str, Style], optional): Style of the header. Defaults to "table.header".
    footer_style (Union[str, Style], optional): Style of the footer. Defaults to "table.footer".
    border_style (Union[str, Style], optional): Style of the border. Defaults to None.
    title_style (Union[str, Style], optional): Style of the title. Defaults to None.
    caption_style (Union[str, Style], optional): Style of the caption. Defaults to None.
    title_justify (str, optional): Justify method for title. Defaults to "center".
    caption_justify (str, optional): Justify method for caption. Defaults to "center".
    highlight (bool, optional): Highlight cell contents (if str). Defaults to False.
�columns�rowsN)rrFTr�noneztable.headerztable.footer�center)�title�captionr7r8r�safe_box�padding�collapse_padding�pad_edge�expand�show_header�show_footer�	show_edge�
show_lines�leadingr0�
row_stylesr.r/�border_style�title_style�
caption_style�
title_justify�caption_justify�	highlight�headersrirjr7r8rrkrlrmrnrorprqrrrsrtr0rur.r/rvrwrxryr$rzr{r?c��/Ul/UlXlX lX0lX@lXPlX`l[R"U5Ul
X�lX�lX�l
X�lX�lX�lX�lX�lUUlU=(d SUlU=(d SUlUUlUUlUUlUUlUUlUUl=(d /5UlURR<nUHKn[?U[@5(aURCUS9 M)[EUR5Ul#U"U5 MM g)Nr+)r,)$rerfrirjr7r8rrkr�unpack�_paddingrn�_expandrprqrrrsrtrmr0r.r/rvrwrxryrzr{rWru�append�
isinstance�str�
add_column�lenr<)rCrirjr7r8rrkrlrmrnrorprqrrrsrtr0rur.r/rvrwrxryrzr{r|�
append_columnr,s                             rD�__init__�Table.__init__�s��<&(���!��	��
����
�"���� �
����w�/��
� �
���&��&��"��$���� 0����
�(�.�B���(�.�B���(���&���*���.;���0?���"���/3�J�4D�"�/E������+�+�
��F��&�#�&�&����v��.� #�D�L�L� 1��
��f�%�rG)rlrmrnroc� �U"USUUSSSUUS.6$)ayGet a table with no lines, headers, or footer.

Args:
    *headers (Union[Column, str]): Column headers, either as a string, or :class:`~rich.table.Column` instance.
    padding (PaddingDimensions, optional): Get padding around cells. Defaults to 0.
    collapse_padding (bool, optional): Enable collapsing of padding around cells. Defaults to True.
    pad_edge (bool, optional): Enable padding around edges of table. Defaults to False.
    expand (bool, optional): Expand the table to fit the available space if ``True``, otherwise the table width will be auto-calculated. Defaults to False.

Returns:
    Table: A table instance.
NF)rrlrmrprqrrrnrorN)�clsrlrmrnror|s      rD�grid�
Table.grid�s,��*�
���-������

�
	
rGc�D�UR=(d URSL$)z-Setting a non-None self.width implies expand.N)r�r7rBs rDro�Table.expands���|�|�5�t�z�z��5�5rGc��Xlg)zSet expand.N)r�)rCros  rDror�!s	���rGc��SnUR(aUR(aUS-
nUR(aU[UR5S-
-
nU$)z'Get extra width to add to cell content.r�r)rrrr�re)rCr7s  rD�_extra_width�Table._extra_width&sC�����8�8�����Q�J�E��8�8��S����&��*�*�E��rGc�,�[UR5$)zGet the current number of rows.)r�rfrBs rD�	row_count�Table.row_count0s���4�9�9�~�rG�consoler"�indexc��[R"5nUR(a6X1RURU[	UR5-5-
nUR
URnUbX1RU5-
nU$)zGet the current row style.)r�nullru�	get_styler�rfr0)rCr�r�r0�	row_styles     rD�
get_row_style�Table.get_row_style5sp���
�
����?�?��&�&�t���u�s�4�?�?�?S�7S�'T�U�U�E��I�I�e�$�*�*�	�� ��&�&�y�1�1�E��rG�optionsr#c	�8�URnURbURnUS:a[SS5$URn[	URXR
X4-
555nURnURVs/sHnU"XR
U5U5PM nn[	SU55U-nURc[	SU55U-OURn	[X�5n
U
RUR5n
U
$s snf)Nrc3�6# �UHoRv� M g7f�N)�minimum��.0�measurements  rD�	<genexpr>�)Table.__rich_measure__.<locals>.<genexpr>U����D�|��#�#�|���c3�6# �UHoRv� M g7fr�)�maximumr�s  rDr�r�Xr�r�)r9r7rr��sum�_calculate_column_widths�update_width�_measure_columnre�clampr8)rCr�r�r9�extra_widthr��column�measurements�
minimum_width�
maximum_widthr�s           rD�__rich_measure__�Table.__rich_measure__?s!���%�%�	��:�:�!��
�
�I��q�=��q�!�$�$��'�'����)�)��-�-�i�.E�F�
�
�	�
�.�.���,�,�
�&��
�G�%9�%9�)�%D�f�M�&�	�
�

�D�|�D�D�{�R�	�
�
�
�"�
�D�|�D�D�{�R����	�
"�-�?��!�'�'����7�����
s�	!Dc��UR$)zGet cell padding.)rrBs rDrl�
Table.padding`s���}�}�rGc�<�[R"U5UlU$)zSet cell padding.)rr~r)rCrls  rDrlr�es�� ���w�/��
��rGr1r3r5)r.r/r0r2r4r6r7r8r9r:r;r,r&r-r2r4rr6r%r9r:r;c���[[UR5UUU=(d SU=(d SU=(d SUUUU	U
UUU
S9nURRU5 g)awAdd a column to the table.

Args:
    header (RenderableType, optional): Text or renderable for the header.
        Defaults to "".
    footer (RenderableType, optional): Text or renderable for the footer.
        Defaults to "".
    header_style (Union[str, Style], optional): Style for the header, or None for default. Defaults to None.
    footer_style (Union[str, Style], optional): Style for the footer, or None for default. Defaults to None.
    style (Union[str, Style], optional): Style for the column cells, or None for default. Defaults to None.
    justify (JustifyMethod, optional): Alignment for cells. Defaults to "left".
    vertical (VerticalAlignMethod, optional): Vertical alignment, one of "top", "middle", or "bottom". Defaults to "top".
    overflow (OverflowMethod): Overflow method: "crop", "fold", "ellipsis". Defaults to "ellipsis".
    width (int, optional): Desired width of column in characters, or None to fit to contents. Defaults to None.
    min_width (Optional[int], optional): Minimum width of column, or ``None`` for no minimum. Defaults to None.
    max_width (Optional[int], optional): Maximum width of column, or ``None`` for no maximum. Defaults to None.
    ratio (int, optional): Flexible ratio for the column (requires ``Table.expand`` or ``Table.width``). Defaults to None.
    no_wrap (bool, optional): Set to ``True`` to disable wrapping of this column.
r+)r<r,r-r.r/r0r2r4r6r7r8r9r:r;N)r)r�rer�)rCr,r-r.r/r0r2r4r6r7r8r9r:r;r�s               rDr��Table.add_columnksd��J��t�|�|�$���%�+��%�+���+�2���������
�� 	
�����F�#rG�r0r]�renderablesr]c��S[SSSS4Sjn[U5nURn[U5[U5:a/UQS/[U5[U5-
-Qn[	U5H�upxU[U5:XaJ[US9n	UR
Hn
U"U	[
S55 M URRU	5 OXgn	UcU"U	S5 Mp[U5(a
U"X�5 M�[R"S	[U5RS
35e UR
R[XS95 g)a�Add a row of renderables.

Args:
    *renderables (None or renderable): Each cell in a row must be a renderable object (including str),
        or ``None`` for a blank cell.
    style (StyleType, optional): An optional style to apply to the entire row. Defaults to None.
    end_section (bool, optional): End a section and draw a line. Defaults to False.

Raises:
    errors.NotRenderableError: If you add something that can't be rendered.
r�rar&r?Nc�:�URRU5 gr�)r>r�)r�ras  rD�add_cell�Table.add_row.<locals>.add_cell�s���M�M� � ��,rG)r<r+zunable to render z1; a string or other renderable object is requiredr�)r)rWrer��	enumeraterfr r�rr�NotRenderableError�typerOr[)rCr0r]r�r��cell_renderablesrer�rar��_s           rD�add_row�
Table.add_row�s<��$	-�V�	-�1A�	-�d�	-�>B�+�=N���,�,���� �3�w�<�/� �!� ���3�w�<�#�.>�*?�?�@� ��"+�+;�!<��E���G��$��u�-�����A��V�T�"�X�.�#����#�#�F�+� ����!����$��z�*�*���,��/�/�'��Z�(8�(A�(A�'B�Bs�t���"=� 	
�	�	����5�B�CrGc�P�UR(aSURSlgg)z2Add a new section (draw a line after current row).T���N)rfr]rBs rD�add_section�Table.add_section�s ���9�9�(,�D�I�I�b�M�%�rGr'c	#�^^# �UR(d[S5v� gURnURbURnURnURTUR
X4-
55n[U5U-nURX`RSS9mS
S[S[SSSS4UU4S	jjjnUR(aCU"UR[R"URS
5UR S9Shv�N UR#TTU5Shv�N UR$(aDU"UR$[R"UR&S5UR(S9Shv�N ggNuN\N
7f)N�
)r7r{�height�textr0r2r$r?r'c�>�[U[5(aTRXSS9OUnTRUTR	US9S9$)NF)r0r{�r2)r�)r�r��
render_str�render�update)r�r0r2�render_textr��render_optionss    ��rD�render_annotation�1Table.__rich_console__.<locals>.render_annotation�sZ���
�d�C�(�(��"�"�4��"�F��
�
�>�>��^�%:�%:�7�%:�%K�"��
rGztable.title)r0r2z
table.caption)rh)rerr9r7r�r�r�r�r�r{r!rrir�
pick_firstrwry�_renderrjrxrz)	rCr�r�r9r��widths�table_widthr�r�s	 `      @rD�__rich_console__�Table.__rich_console__�sr�����|�|��$�-����%�%�	��:�:�!��
�
�I��'�'���.�.��W�)�)�)�*A�B�
���&�k�K�/�� �������(�
��
JR�
	��
	�#,�
	�7F�
	�
�
	�
	��:�:�(��
�
��&�&�t�'7�'7��G��*�*��
�
�
�<�<����@�@�@��<�<�(�����&�&�t�'9�'9�?�K��,�,��
�
��

�
	A�
�s7�DF�F�F�&F�'AF�:F�;F�F�Fc
���URnURnUVs/sHoPRXU5PM nnUVs/sHowR=(d SPM nnURn	UR
n
UR(Ga,UVs/sH*o�R(dMUR=(d SPM, nn[U5(a�[Xd5VVs/sH$upuUR(aSOURPM& n
nnUVs/sH>nUR(dMUR=(d SU	"UR5-PM@ nnU[U
5-
n[X�U5n[U5n[!U5H-unnUR(dMU
U[#U5-UU'M/ [U5nUU:�a�UR%UUVs/sH(oURSL=(a UR&(+PM* snU5n[U5nUU:�a*UU-
n[)US/[+U5-X�5n[U5n[X�5VVs/sH'unnURXR-U5U5PM) nnnUVs/sHowR=(d SPM nnUU:aUR(d UR.bmUUR.U
-
:aZUR.cUO[1UR.U
-
U5n[UU-
U5n[UU5VVs/sHunnUU-PM
 nnnU$s snfs snfs snfs snnfs snfs snfs snnfs snfs snnf)zNCalculate the widths of each column, including padding, not including borders.rrN)r9rer�r��_get_padding_widthr�rorLr:�any�zipr7r<r�r�iterr��next�_collapse_widthsr;rr�r�r8�min)rCr�r�r9rer��width_ranges�_ranger��get_padding_widthr��col�ratios�fixed_widths�flex_minimum�flexible_width�flex_widths�iter_flex_widthsr�r��excess_widthr7�
_max_width�
pad_widths�_width�pads                          rDr��Table._calculate_column_widthss;���%�%�	��,�,��IP�
�IP�v� � ��6�:��	�
�5A�A�L�&�.�.�%�A�%�L��A� �3�3���'�'���;�;�;�07�H���<�<�n�c�i�i�n�1�n��F�H��6�{�{�+.�l�*D� �*D��� ���A�f�n�n�<�*D�� �#*� �")�����K�V�\�\�&�Q�*;�F�M�M�*J�J�")�� �
"+�S��->�!>��.�~�|�T��#'��#4� �%.�w�%7�M�E�6�����(4�U�(;�d�CS�>T�(T��u�
�&8��&�k����"��*�*��MT�U�W�6�,�,�$�&�=�v�~�~�+=�=�W�U���F�
�f�+�K��Y�&�*�Y�6��%�l�Q�C�#�f�+�4E�v�V��!�&�k��&)��%9��%9�M�E�6��$�$�W�.B�.B�5�.I�6�R�%9�
��9E�E��f�n�n�)��)��F�E��)�#�����N�N�&�;�$�.�.�;�:V�+W��>�>�)������+�5�y�A�
�
*�*�{�*B�F�K�J�69�&�*�6M�N�6M�{�v�s�f�s�l�6M�F�N��
��q
��B��I�� �� �� V����F��Os@�L8�L=�
M�!M�*M�M
�#,M
�.M
�-M�M�"M"r��wrapablec�^�[U5nXC-
n[U5(a�U(a�US:�a�[S[X555m[U4Sj[X555nTU-
n[X5VV	s/sHup�UT:Xa	U	(aSOSPM n
nn	[U
5(aU(dU$[	XW5/[U5-n[
XZX�5n[U5nXC-
nU(aUS:�aM�U$s sn	nf)aReduce widths so that the total is under max_width.

Args:
    widths (List[int]): List of widths.
    wrapable (List[bool]): List of booleans that indicate if a column may shrink.
    max_width (int): Maximum width to reduce to.

Returns:
    List[int]: A new list of widths.
rc3�:# �UHupU(dMUv� M g7fr�rN)r�r7�
allow_wraps   rDr��)Table._collapse_widths.<locals>.<genexpr>Ys���!�3H�/�e�J�E�E�3H�s��	c3�H># �UHupU(aUT:waUOSv� M g7f)rNrN)r�r7r��
max_columns   �rDr�r�\s)����(�-B�)��(�E�Z�,?�E�Q�F�-B�s�"r)r�r��maxr�r�r�r)
r�r�r�r9�total_widthr��second_max_column�column_differencer7r�r��
max_reducers
            @rDr��Table._collapse_widthsGs����&�k��"�.���x�=�=��,��"2� �!�36�v�3H�!��
�%(�(�-0��-B�(�%�!�%/�1B�$B�!�.1��-B��-B�)��!�J�.�:�Q�A�E�-B����6�{�{�*;���
�"�,�B�C�c�&�k�Q�
�%�l�J�O��!�&�k��*�6��'�,��"2�(�
��s�:C7�column_indexr�c#�B^^^^^^# �URmURmURm[T5nUS:HmU[	UR
5S-
:Hm0mS[S[S[[[[[44UUUUUU4Sjjn/nURnURnUR(aAU"UR=(d S5U"UR5-n	U"X�R45 U"UR=(d S5n
URHnU"X�45 M UR (aAU"UR"=(d S5U"UR"5-nU"X�R$45 U(aY[&n
[)U5HCup�unn[+UU
"UU"X�55[-USS	5=(d UR.5v� ME g	UH3unn[+UU[-USS	5=(d UR.5v� M5 g	7f)
z3Get all the cells with padding and optional header.rr�	first_row�last_rowr?c�>�TRX45nU(aU$T
up4pVT	(a*T
(d[SXd-
5nU(d[SX5-
5nT(d$T
(aSnT(aSnU(aSnU(aSnX4XV4nUTX4'U$)Nr)�getr)r	r
�cachedr3�right�bottomr1r�_padding_cacherm�first_column�last_columnrnrls        ������rD�get_padding�%Table._get_cells.<locals>.get_padding}s����#�'�'��(=�>�F���
�'.�$�C���#��q�$�,�/�D�� ��C�L�1�F����D���E���C���F��F�1�H�4<�N�I�0�1��OrGr+r4N)rmrnrlr�r�rerVr
rUr�r�rpr.r,r0rIrqr/r-rrr_�getattrr4)rCr�rr��any_paddingr�	raw_cells�_appendr�r.�
cell_style�cellr/�_Padding�first�lastr0rarrmrrrnrls                  @@@@@@rD�
_get_cells�Table._get_cellsns�����
 �0�0���=�=���,�,���'�l��#�q�(��"�c�$�,�,�&7�!�&;�;��MO��	�4�	�4�	�E�#�s�C�QT�BT�<U�	�	�2?A�	��"�"���%�%�	����$�T�%6�%6�%<�"�=�	��#�#�A��L�
�\�=�=�1�2��v�|�|�1�r�2�
��L�L�D��Z�&�'�!����$�T�%6�%6�%<�"�=�	��#�#�A��L�
�\�=�=�1�2���H�4C�I�4N�0��0�e�Z����Z��U�)A�B��J�
�D�9�L�V�_�_���5O�(1�#��
�����J�
�D�9�L�V�_�_���(1�s�HHc�r�URup#p$UR(aUS:�a[SXC-
5nXC-$)zGet extra width from padding.r)rlrmr)rCrr��	pad_right�pad_lefts     rDr��Table._get_padding_width�s9��$(�L�L�!��a�� � ��a���q�(�"6�7���#�#rGc��URnUS:a[SS5$URUR5nURb5[URU-URU-5RU5$/n/nURnURn	[Rn
URXRU5H(nU
"XUR5up�U"U5 U	"U
5 M* [U(a[U5OSU(a[U5OU5RU5nURURcSOURU-URcS5nU$URU-5nU$)z0Get the minimum and maximum width of the column.rrN)
r9rr�r<r7�with_maximumr�rrrarr�r8)rCr�r�r�r9�
padding_width�
min_widths�
max_widths�
append_min�
append_max�get_render_widthr�_min�_maxr�s               rDr��Table._measure_column�sj���%�%�	��q�=��q�!�$�$��/�/��
�
�>�
��<�<�#�����}�,�f�l�l�]�.J���l�9�%�
&�!#�
� "�
��&�&�
��&�&�
�&�?�?���O�O�G�]�]�F�C�D�)�'�D�O�O�L�J�D��t���t��D�
"�)�C�
�O�q�)�C�
�O�y�
��,�y�
!�	�"�'�'��$�$�,�D�&�2B�2B�]�2R��$�$�,�D�
����39�2B�2B�]�2R�
���rGc#�
^^^*^+^,^-# �TRTR=(d S5nUTRTR=(d S5-nUU4Sj[TR55n[[
U65nTR(a8TRRU[TRTR5S9OSnU(a!TR(dUR5OUn[R"5n	TRn
TRnTRnTR n
TR"nTR$n[m*U(a�T*"UR&U5T*"UR(U5T*"UR*U54T*"UR,U5T*"UR.U5T*"UR0U54T*"UR2U5T*"UR4U5T*"UR6U54/nU
(aT*"UR9U5U5v� U	v� O/nTR:nTRn[[=U55GH�ununnnU=(a Um,U=(a Um+T,(dT+(dTR>UU-
OSnSn/nT,(dT+(a[@RB"5nOU"U"TU(aUS-
OU55n[
UUU
5H�unnnUREUURFURHURJSS9nTRMURNUU"UR5U-S9n[QU[SU55nURUU5 M� [QSU55m-S[V[V[S	S
S[XS[@S
[V[V[4
U*U+U,U-4Sjjn [
UUUU
5VV!VVs/sHAunn!nnT*R[U "UU!R\UU"U!R5U-5UU5PMC snnn!nUSS&U(a�U(a%U(aT*"UR_USU
S9U5v� U	v� UU(aSO
U(aSOSun"n#n$U$R`Rc5(aU$O)T*"U$R`URdU$R-5n%[gU5HLn&U
(aU"v� [iU5H un'n(U(U&Shv�N U'(aMU%v� M" U
(aU#v� U	v� MN O,[gU5Hn&UHn(U(U&Shv�N M U	v� M U(a,U(a%U(aT*"UR_USU
S9U5v� U	v� U=(a URjn)U(dGMLU(dU(d
U)(dGMdU(aGMnU(aU[SU5S-
:�aGM�U(a
T,(aGM�U(aT*"UR_USU
S9U-U5v� OT*"UR_USU
S9U5v� U	v� GM� U(a'U
(aT*"URmU5U5v� U	v� gggs snnn!nfGNvGN47f)Nr+c3�J># �UHupTRTX5v� M g7fr�)r)r�rr�r�rCs   ��rDr�� Table._render.<locals>.<genexpr>�s)����
�(?�$��
�O�O�G�\�:�:�(?�s� #)�safer)r7r2r;r6r��r0c3�6# �UHn[U5v� M g7fr�)r�)r�rs  rDr�r1@s���9�5�4�S��Y�Y�5�r�rr4rr7r0r?c�>�T(aSnO	T(aSnUS:XaTRXTU5$US:XaTRXTU5$TRXTU5$)Nrr3�middle)�	align_top�align_middle�align_bottom)rr4r7r0�_Segment�
footer_row�
header_row�
row_heights    ����rD�
align_cell�!Table._render.<locals>.align_cellBsd����'�H��$�H��u�$�#�-�-�d�:�u�M�M���)�#�0�0��j�%�P�P��,�,�T�*�e�L�LrG�foot)�edgerr��head�mid�row)7r�r0rvr�rerWr�r�
substituterrkrp�get_plain_headed_boxr�linerqrrrsrt�	head_left�
head_right�
head_vertical�	foot_left�
foot_right�
foot_vertical�mid_left�	mid_right�mid_vertical�get_topr�rrfrr�r�r2r;r6�render_linesrarr�r�r	rU�	set_shaper4�get_rowr��strip�background_style�rangerr]�
get_bottom).rCr�r�r��table_stylerv�
_column_cells�	row_cells�_box�new_linererprqrrrsrt�box_segmentsr�r�r�rr�row_cellrD�
max_heightrIr�r7rr�r��linesr>�_cellr1r�_divider�divider�line_no�	last_cell�
rendered_cellr]r:r;r<r=s.``                                        @@@@rDr��
Table._render�s������'�'��
�
�(8�b�9��"�W�%6�%6�t�7H�7H�7N�B�%O�O��
�(1�$�,�,�(?�
�
�.2�#�}�2E�-F�	�
�x�x�
�H�H����i��
�
�w�7G�7G�H�
 �
��	
�/3�4�;K�;K�t�(�(�*�QU���<�<�>���,�,���&�&���&�&���N�N�	��_�_�
��,�,������T�^�^�\�:��T�_�_�l�;��T�/�/��>���T�^�^�\�:��T�_�_�l�;��T�/�/��>���T�]�]�L�9��T�^�^�\�:��T�.�.��=���L�"��t�|�|�F�3�\�B�B�����L��*�*�
��%�%�	�.7��	�8R�.S�*�E�*�E�4���.�;�J��-�+�J�#�:��	�	�%�+�-�.��
�
�J�/1�E��Z�!�J�J�L�	�%�!�'��5�1�9��O��	�(+�6�8�W�'E�#��t�V�!(����"�N�N�"�N�N�#�_�_��"0�"�� �,�,��O�O�"�#�D�J�J�/�)�;�-���
!��S��Z�8�
����U�#�(F� �9�5�9�9�J�
M��4��=�)�
M�/�
M��
M��	
M�
�d�7�m�$�
M�
M�836�f�h��w�2W��3X�.�E�5�$���"�"�������!�%�+�+�.��:�	���	�3X��E�!�H���K�"����V�V�)��D�l���#�N�(4�%�Q�4�a�UV�(X�%��e�X�
 �}�}�*�*�,�,��!� �
�
�y�'A�'A�H�N�N�'R��� %�Z�0�G� �"�
�4=�e�4D�0�	�=�#0��#9�9�9�(�y�")�M�5E�!�#��"�N� 1� %�Z�0�G�).�
�#0��#9�9�9�*/�"�N� 1���+���L�L���i�L�@�,������1�#�/�/�K��t��w�+�+���(�U�c�)�n�q�6H�-H�(�Z�Z��&� �L�L���Y�L�G�'�Q�(���
'� �L�L���Y�L�G����#�N�k/T�n�I��4�?�?�6�2�L�A�A��N��4��I�D:�:�sX�O Y?�(AY1�/CY?�Y9
�	Y?�7Y?�Y<
�	AY?�+Y?�Y?�
Y?�)Y?�:BY?�<Y?)r�rrvrrjrzrxrmrer/r.r{rtr8rnrurfrkrrrqrprsr0riryrwr7)r+r+)r?N)r�r"r�r#r?r').rOrPrQrRrSr	r)rTr[r�
HEAVY_HEADrr�rr!rU�BoxrVrrrr��classmethodr�rXro�setterr�r�r�rr�r
rlr�r�r�r�r�r�r_rr�r�r�rYrNrGrDrcrc�st���>�&�\��
�s�)�O�
%)�&*�#�#'�!$���#'�%+�!&��� �!�� ��!�48�,:�,:�,0�+/�-1�)1�+3��7?&�����$�?&���!�?&��(�#�	?&�
��}�?&��C�=�
?&��c�g�g�
�?&��4�.�?&�#�?&��?&��?&��?&��?&��?&��?&� �!?&�"�#?&�$�%?&�&�X�i�0�1�'?&�(�y�)�)?&�*�y�)�+?&�,�y�)�-?&�.�i�(�/?&�0 �	�*�1?&�2'�3?&�4)�5?&�6�7?&�8
�9?&�B�&'�!%���

�����$�
�#�
��	
�
�
��

�
�
��
�@�6��6��6��]�]��T��d������c������3�����Y��s��y��� ��+;��	��B���s�C��c�1�2����
�^�^��0��W����$&�#%�5$�
-1�,0�%)�#)�*/�%/�#�#'�#'�#��5$� �5$�!�5$�
�y�)�5$��y�)�
5$��	�"�5$�!�5$�(�5$�#�5$���}�5$��C�=�5$��C�=�5$���}�5$��5$� 
�!5$�t&*�!�	-D��/�0�-D��	�"�-D��	-D�

�-D�^-�.� �.�+;�.�	�.�`>� �>�+;�>�	
�c��>�@�$��#�Y�$�*.�t�*�$�AD�$�	
�c��$��$�LG� �G�03�G�=C�G�	�%��G�R$�s�$�s�$�&��&�"�&��	&�

�&�Pr� �r�+;�r�EI�#�Y�r�	�rrGrc�__main__)r")�ReprHighlighter)rc)�timerzTable renderzStar Wars MovieszRich example tabler)rirjrz�Released�bright_cyan�cyanT)r.r0r;�Title�magentar3z
Box Office�green)r2r0zDec 20, 2019z Star Wars: The Rise of Skywalkerz$952,110,690zMay 25, 2018zSolo: A Star Wars Storyz$393,151,347zDec 15, 2017z!Star Wars Ep. V111: The Last Jediz$1,332,539,889zon blackr�zDec 16, 2016zRogue One: A Star Wars Storyz$1,332,439,889r�r?Nc��[R5 [R[U55 [R5 gr�)r��print�ruler{)r�s rDr,r,�s$���M�M�O��L�L��4��)��M�M�OrGz
Example Tablerhr�zexpand=True�2zwidth=50F�dimrgzrow_styles=['dim', 'none']z%leading=1, row_styles=['dim', 'none']z+show_lines=True, row_styles=['dim', 'none'])J�dataclassesrrr�typingrrrr	r
rrr
rr+rr�_looprr�_pickr�_ratiorr�alignr�jupyterr�measurerrlrr�protocolr�segmentrr0rrr�r r!r�r"r#r$r%r&r'r)r[r_rcrO�pip._vendor.rich.console�pip._vendor.rich.highlighterrn�pip._vendor.rich.table�_timerro�tabler�r�r�r,r{rwror7rurtrsrNrGrD�<module>r�s���1�1�
�
�
��-��2�&�!� �/�#��#� �����W&�W&��W&�t�M�M��M�#�J�#�B�L�B�J�z��0�<�5��	�~�	��$�(�#�
��	����]�&�$�	�	
�	����	��2�
����w�g��F�
�
�
��.��	
�
	�
�
�n�&?��P�
�
�
��/����	�	
�	�
�
��*��	
�	��	��	�
�)��#�%�	�����
�
�e�X�
�.�����}���
�
�e������z���
�
�e�X�
�.�������!�6�?����+�,��
�
�e�X�
�.�������!�6�?�����
��6�7��
�
�e�X�
�.�������!�6�?��������
��<�=��
�
�e�X�
�.�O
�	��
�	�s
�'FJ	�	
J

ZeroDay Forums Mini