HEX
Server: Apache
System: Linux server2.voipitup.com.au 4.18.0-553.104.1.lve.el8.x86_64 #1 SMP Tue Feb 10 20:07:30 UTC 2026 x86_64
User: posscale (1027)
PHP: 8.2.29
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //opt/saltstack/salt/lib/python3.10/site-packages/salt/utils/__pycache__/textformat.cpython-310.pyc
o

�N�g�@s�dZdZdZidd�dd�dd�d	d
�dd�d
d�dd�dd�dd�dd�dd�dd�dd�dd�dd�dd�d d!�id"d#�d$d%�d&d'�d(d)�d*d+�d,d-�d.d/�d0d1�d2d1�d3d4�d5d6�d7d6�d8d9�d:d;�d<d=�d>d?�d@dA��idBdC�dDdE�dFdG�dHdI�dJdK�dLdM�dNdO�dPdQ�dRdS�dTdU�dVdC�dWdE�dXdG�dYdI�dZdK�d[dM�d\dO��id]dQ�d^dS�d_dU�d`da�dbdc�ddde�dfdg�dhdg�didj�dkdl�dmdn�dodp�dqdr�dsdt�dudv�dwdx�dydz��dzd{d|d|d}d}d~d~ddd�d�d���ZGd�d��d��Zd�S)�zk
ANSI escape code utilities, see
http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-048.pdf
z[�m�reset�0Zbold�1Zfaint�2Zitalic�3Z	underline�4Zblink�5Z
slow_blinkZ
fast_blink�6Zinverse�7Zconceal�8Zstrike�9Zprimary_font�10Z
reset_fontZfont_0Zfont_1Z11Zfont_2Z12Zfont_3Z13Zfont_4Z14Zfont_5Z15Zfont_6Z16Zfont_7Z17Zfont_8Z18Zfont_9Z19ZfrakturZ20Zdouble_underlineZ21Zend_boldZnormal_intensityZ22Z
end_italicZ23Zend_frakturZ
end_underlineZ24Z	end_blinkZ25Zend_inverseZ27Zend_concealZ28Z
end_strikeZ29ZblackZ30ZredZ31ZgreenZ32ZyellowZ33ZblueZ34ZmagentaZ35ZcyanZ36ZwhiteZ37�extendedZ38�defaultZ39Zfg_blackZfg_redZfg_greenZ	fg_yellowZfg_blueZ
fg_magentaZfg_cyanZfg_whiteZfg_extendedZ
fg_defaultZbg_blackZ40Zbg_redZ41Zbg_greenZ42Z	bg_yellowZ44Zbg_blueZ
bg_magentaZ45Zbg_cyanZ46Zbg_whiteZ47Zbg_extendedZ48Z
bg_defaultZ49�frameZ51ZencircleZ52ZoverlineZ53Z	end_frameZ54Z55Z60Z61Z62Z63Z64Z65)Zend_encircleZend_overlineZideogram_underlineZ
right_lineZideogram_double_underlineZright_double_lineZideogram_overlineZ	left_lineZideogram_double_overlineZleft_double_lineZideogram_stressZreset_ideogramc@s2eZdZdZdd�Zddd�Zdd�Zd	d
�ZdS)
�
TextFormatzC
    ANSI Select Graphic Rendition (SGR) code escape sequence.
    cs0dd�|D�|_|�dd�rtdg|jdd�<dd���fd	d
�}|�dd�dur:|j�tdd
�|d�f�n|�dd�durV|j�tddf�|jj||d��|�dd�durn|j�tdd
�|d�f�n|�dd�dur�|j�tddf�|jj||d��d�td�|j�t�|_dS)a�
        :param attrs: are the attribute names of any format codes in `codes`

        :param kwargs: may contain

        `x`, an integer in the range [0-255] that selects the corresponding
        color from the extended ANSI 256 color space for foreground text

        `rgb`, an iterable of 3 integers in the range [0-255] that select the
        corresponding colors from the extended ANSI 256^3 color space for
        foreground text

        `bg_x`, an integer in the range [0-255] that selects the corresponding
        color from the extended ANSI 256 color space for background text

        `bg_rgb`, an iterable of 3 integers in the range [0-255] that select
        the corresponding colors from the extended ANSI 256^3 color space for
        background text

        `reset`, prepend reset SGR code to sequence (default `True`)

        Examples:

        .. code-block:: python

            red_underlined = TextFormat('red', 'underline')

            nuanced_text = TextFormat(x=29, bg_x=71)

            magenta_on_green = TextFormat('magenta', 'bg_green')
            print('{}Can you read this?{}'.format(magenta_on_green, TextFormat('reset')))
        cSs"g|]
}t|t�rt|���qS�)�
isinstance�str�codes�lower)�.0�attrrr�I/opt/saltstack/salt/lib/python3.10/site-packages/salt/utils/textformat.py�
<listcomp>�s"z'TextFormat.__init__.<locals>.<listcomp>rTN�cSst|t�r	|dSdS)N�)r�int)�irrr�qualify_int�s
�z(TextFormat.__init__.<locals>.qualify_intcsDt|ttf�rt|�dkr �|d��|d��|d�fSdSdS)N�r��)r�list�tuple�len)�t�rrr�qualify_triple_int�s"�z/TextFormat.__init__.<locals>.qualify_triple_int�xrrZrgbrZbg_xZbg_rgbz{}{}{}�;)r�get�extend�format�graph_prefix�join�graph_suffix�sequence)�selfZattrs�kwargsr(rr'r�__init__as$!  
�zTextFormat.__init__TcCs"|rtd�nd}|j�|�|��S)a5
        Format :param text: by prefixing `self.sequence` and suffixing the
        reset sequence if :param reset: is `True`.

        Examples:

        .. code-block:: python

            green_blink_text = TextFormat('blink', 'green')
            'The answer is: {0}'.format(green_blink_text(42))
        r�)rr1)r2�textr�endrrr�__call__�szTextFormat.__call__cC�|jS�N�r1�r2rrr�__str__��zTextFormat.__str__cCr9r:r;r<rrr�__repr__�r>zTextFormat.__repr__N)T)�__name__�
__module__�__qualname__�__doc__r4r8r=r?rrrrr\s
>rN)rCr.r0rrrrrr�<module>s4��������	�
���
������������������� �!�"�#�$�%�&�'�(�)�*�+�,�-�.�/�0�1�2�3�4�5�6�7�8�9�:�;�<�=�>�?�@�A�B�C�D�E�T