� J�gs���dZddlmZddlmZmZmZmZmZm Z ddl m Z ddl m Z mZmZmZddlmZddlmZmZdd lmZd Zd Zd Zgd �Zd�e��ZdZdZdZ Gd�d��Z!Gd�de!��Z"Gd�de��Z#Gd�de��Z$Gd�de��Z%Gd�d��Z&Gd�d��Z'd S)!a% Routines for organizing lines and larger blocks of text, with manual and automatic line wrapping. The contents of this module are internal to fpdf2, and not part of the public API. They may change at any time without prior warning or any deprecation period, in non-backward-compatible ways. �)�Number)� NamedTuple�Any�List�Optional�Union�Sequence)�uuid4�)�Align�CharVPos� TextDirection�WrapMode)� FPDFException)�CoreFont�TTFFont)� escape_parens�­�-� )ru​u u u u u u u u u u u u � �� � � c ���eZdZdZ d4deeefdedede ee effd�Z d�Z e d eeeffd ���Zejd ���Ze d ���Ze d ���Ze d���Ze d���Ze d���Ze d���Ze d���Ze d���Ze d���Ze d���Ze d���Ze d���Ze d���Ze d���Ze d���Z e d���Z!e d���Z"e d���Z#e d���Z$e d���Z%d e fd!�Z&d"e'fd#�Z(d$�Z) d5d'e d(e d)ed*e*fd+�Z+d6d,�Z,d7d.efd/�Z-d0�Z.d1�Z/d2�Z0d3�Z1dS)8�FragmentzS A fragment of text with font/size/style and other associated information. N� characters�graphics_state�k�linkc��t|t��rt|��|_n||_||_||_||_dS�N)� isinstance�str�listrrr r!)�selfrrr r!s �_/home/asafur/pinokio/api/open-webui.git/app/env/lib/python3.11/site-packages/fpdf/line_break.py�__init__zFragment.__init__2sH�� �j�#� &� &� )�"�:�.�.�D�O�O�(�D�O�,�������� � � �c �H�d|j�d|j�d|j�d|j�d� S)NzFragment(characters=z, graphics_state=z, k=z, link=�)�rrr r!�r's r(�__repr__zFragment.__repr__AsM�� .�4�?� .� .�#�2� .� .��&� .� .�!%�� .� .� .� r*�returnc��|jdS�N� current_font�rr.s r(�fontz Fragment.fontH����"�>�2�2r*c��||jd<dSr2r4)r'�vs r(r5z Fragment.fontLs��./���N�+�+�+r*c�0�|jo|jjdkS)N�TTF)r5�typer.s r(� is_ttf_fontzFragment.is_ttf_fontPs���y�4�T�Y�^�u�4�4r*c��|jdS)N� font_styler4r.s r(r>zFragment.font_styleT����"�<�0�0r*c��|jdS)N� font_familyr4r.s r(rAzFragment.font_familyXs���"�=�1�1r*c�@�|jd}|jd}|tjkr||jdz}nb|tjkr||jdz}nA|tjkr||jdz}n |tjkr||jdz}|S)N� font_size_pt� char_vpos� sub_scale� sup_scale� nom_scale� denom_scale�rr �SUB�SUP�NOM�DENOM)r'�size�vposs r(rCzFragment.font_size_pt\s����"�>�2���"�;�/�� �8�<� � � �D�'� �4� 4�D�D� �X�\� !� !� �D�'� �4� 4�D�D� �X�\� !� !� �D�'� �4� 4�D�D� �X�^� #� #� �D�'� �6� 6�D�� r*c�,�|jd|jz S)NrC)rr r.s r(� font_sizezFragment.font_sizejs���"�>�2�T�V�;�;r*c��|jdS)N�font_stretchingr4r.s r(rSzFragment.font_stretchingns���"�#4�5�5r*c��|jdS)N� char_spacingr4r.s r(rUzFragment.char_spacingrr6r*c��|jdS)N� text_moder4r.s r(rWzFragment.text_modev����"�;�/�/r*c��|jdS)N� underliner4r.s r(rZzFragment.underlinezrXr*c��|jdS)N� draw_colorr4r.s r(r\zFragment.draw_color~r?r*c��|jdS)N� fill_colorr4r.s r(r^zFragment.fill_color�r?r*c��|jdS)N� text_colorr4r.s r(r`zFragment.text_color�r?r*c��|jdS)N� line_widthr4r.s r(rbzFragment.line_width�r?r*c��|jdS)NrDr4r.s r(rDzFragment.char_vpos�rXr*c�0�|jd}|tjkr|jd}n\|tjkr|jd}n>|tjkr|jd}n |tjkr|jd}nd}||jdzS)NrD�sub_lift�sup_lift�nom_lift� denom_liftgrCrI)r'rO�lifts r(riz Fragment.lift�s����"�;�/�� �8�<� � ��&�z�2�D�D� �X�\� !� !��&�z�2�D�D� �X�\� !� !��&�z�2�D�D� �X�^� #� #��&�|�4�D�D��D��d�)�.�9�9�9r*c�6�d�|j��S)Nr)�joinrr.s r(�stringzFragment.string�s���w�w�t��'�'�'r*c�*�|���Sr#)� get_widthr.s r(�widthzFragment.width�s���~�~���r*c��|jdS)N� text_shapingr4r.s r(�text_shaping_parametersz Fragment.text_shaping_parameters�r6r*c�B�|jr |jdn tjS)N�paragraph_direction�rrr�LTRr.s r(rtzFragment.paragraph_direction�s(���+� #�D� (�)>� ?� ?��"� r*c�B�|jr |jdn tjS)N�fragment_directionrur.s r(rxzFragment.fragment_direction�s(���+� #�D� (�)=� >� >��"� r*�indexc�.�|jd|�|_dSr#)r)r'rys r(�trimz Fragment.trim�s���/�&�5�&�1����r*�otherc�b�|j|jko|j|jko|j|jkSr#)rrr �r'r|s r(�__eq__zFragment.__eq__�s8�� �O�u�/� /� "��#�u�';�;� "���%�'�!� r*c�D�t|j|j|jf��Sr#)�hashrrr r.s r(�__hash__zFragment.__hash__�s���T�_�d�&9�4�6�B�C�C�Cr*rT�start�end�chars� initial_csc�$�|�|j||�}|j�||j|j��\}}|j}|jdkr||jdzz}||jdzz}|jdkr|r |||zz }n |||dz zz }||jz S)a� Return the width of the string with the given font/size/style/etc. Args: start (int): Index of the start character. Default start of fragment. end (int): Index of the end character. Default end of fragment. chars (str): Specific text to get the width for (not necessarily the same as the contents of the fragment). If given, this takes precedence over the start/end arguments. N�dg{�G�z�?rr )rr5�get_text_widthrCrrrUrSr )r'r�r�r�r��char_len�wrUs r(rnzFragment.get_width�s���$ �=��O�E�#�I�.�E�� �0�0� �4�$�d�&B� � � ��1��(� � � �3� &� &� ��%��,� ,�A� �D�0�4�7� 7�L� � �� !� !�� 3��\�H�,�,����\�X��\�2�2���4�6�z�r*c�l�|j|jko$|j|jkot||j��S)zFReturns if 2 fragments are equivalent other than the characters/string)rr r$� __class__r~s r(�has_same_stylezFragment.has_same_style�s<�� � �5�#7� 7� 2���%�'�!� 2��5�$�.�1�1� r*F� characterc�X�|tkr |st}|�||���S)zP Return the width of a single character out of the stored text. )r�r�)� SOFT_HYPHEN�HYPHENrn)r'r��print_shr�s r(�get_character_widthzFragment.get_character_width�s/�� � � #� #�H� #��I��~�~�I�*�~�E�E�Er*c��|jr5|jr|�||||��S|�||��S|�||��Sr#)r<rr�render_with_text_shaping�render_pdf_text_ttf�render_pdf_text_core)r'�frag_ws� current_ws� word_spacing�adjust_x�adjust_y�hs r(�render_pdf_textzFragment.render_pdf_text�sh�� � � C��+� ��4�4��h��<�����+�+�G�\�B�B� B��(�(��*�=�=�=r*c ��d}d}|jD]B}|jj�t |����}|r|t |��z }�C|�r@t d�d���d����}|� t |jj�t d��������}g} t|��D]�\} } t | �d���d����} | dkr| � d| �d����Z||j z dz|j z } | � | d �d|�| �d�����d�| ��} |d | �d �z }n>t |�d���d����} |d| �d �z }|S) Nrr� utf-16-be�latin-1r�(r,���.3f�[z] TJ�) Tj)rlr5�subset�pick�ord�chrr�encode�decode�split� enumerate�appendr rCrk)r'r�r��ret� mapped_text�char� mapped_char�u_space�words� words_strl�word_i�word�adj� escaped_texts r(r�zFragment.render_pdf_text_ttfs������ ��K� 0� 0�D��)�*�/�/��D� � �:�:�K�� 0��s�;�/�/�/� �� � *�#�C�J�J�{�$;�$;�$B�$B�9�$M�$M�N�N�G� �%�%�c�$�)�*:�*?�*?��C���*I�*I�&J�&J�K�K�E��J� )�%� 0� 0� E� E� ���$�T�[�[��%=�%=�%D�%D�Y�%O�%O�P�P���Q�;�;��%�%�k�$�k�k�k�2�2�2�2�#�d�f�,�-��4�t�7H�H�C��%�%��&C�&C�&C�7�&C�D�&C�&C�&C�D�D�D�D��8�8�J�/�/�L� �)�|�)�)�)� )�C�C�(��"�"�;�/�/�6�6�y�A�A���L� �)�|�)�)�)� )�C�� r*c����d}d}�jj�td����}�fd�}�j�jdz z�jz } �j��j�j �j ��D�]V} | d�� t| d��� d��� d��} | dd ks | d d krc|r|d t|���d �z }d}||| d��z} ||| d ��z } |d | �jzd�d|| z �jzd�d�z }|| z }||| d��| zz }||| d��z }|r| d|kr||z }| ds|rG| d|kr;|r|d t|���d �z }d}|d |�jzd�d||z �jzd�d�z }��X|r|d t|���d�z }|S)Nrrc�^��|�jjz�jz�jdz zdz �jz S)Nr�r�)r5�scalerCrSr )�posr's �r(� adjust_posz5Fragment.render_with_text_shaping.<locals>.adjust_pos4sJ�����)�/�"��#�$��'�#�-�/�� � �&� � r*r�r�r�r��x_offsetr�y_offsetr�z) Tj z1 0 0 1 z.2fz Tm � x_advance� y_advance�force_positioningr�)r5r�r�r�rUrSr � shape_textrlrCrrr�r�r�r)r'�pos_x�pos_yr�r�r��text�space_mapped_coder�rU�tir��offsetx�offsetys` r(r�z!Fragment.render_with_text_shaping/s�������� �I�,�1�1�#�c�(�(�;�;�� � � � � ��(�D�,@�3�,F�G�$�&�P� ��)�&�&� �K��*�D�,H� � � X� X�B��-� �(���r�-�(�)�)�0�0��=�=�D�D�Y�O�O�D��*�~��"�"�b��n��&9�&9����9�}�T�2�2�9�9�9�9�C��D��*�*�R� �^�"<�"<�<���*�*�R� �^�"<�"<�<���X��4�6�1�X�X�X��W����8N�X�X�X�X��� �D�L�D� �Z�Z��;��0�0�<�?� ?�E� �Z�Z��;��0�0� 0�E�� &��=� 1�5F� F� F���%���%�&� X�� X�!#�M�!2�6G�!G�!G����9�}�T�2�2�9�9�9�9�C��D��W�5�D�F�"2�W�W�W�!�e�)�t�v�9M�W�W�W�W�W��� � 1� �0�}�T�*�*�0�0�0� 0�C�� r*c�r�d}||kr|||jzd�d�z }t|j��}|d|�d�z }|S)Nrr�z Tw r�r�)r rrl)r'r�r�r�r�s r(r�zFragment.render_pdf_text_coreasY���� �j� � � �g���&�0�0�0�0� 0�C�$�T�[�1�1� � �%�<�%�%�%�%��� r*r#)rNNT)r|r)FT)2�__name__� __module__� __qualname__�__doc__rr&r%�dict�floatr�intr)r/�propertyrrr5�setterr<r>rArCrQrSrUrWrZr\r^r`rbrDrirlrorrrtrxr{rrr��boolrnr�r�r�r�r�r��r*r(rr-s���������+/� � ��$��)�$� �� � � � �u�S�#�X��'� � � � � � � ��3�e�H�g�-�.�3�3�3��X�3� �[�0�0��[�0��5�5��X�5��1�1��X�1��2�2��X�2�� � ��X� ��<�<��X�<��6�6��X�6��3�3��X�3��0�0��X�0��0�0��X�0��1�1��X�1��1�1��X�1��1�1��X�1��1�1��X�1��0�0��X�0�� :� :��X� :��(�(��X�(�� � ��X� ��3�3��X�3�� � ��X� �� � ��X� �2�#�2�2�2�2� �C� � � � �D�D�D� ���� "�"��"��"�� "� � "�"�"�"�H � � � �F�F�S�F�F�F�F�>�>�>�%�%�%�N0�0�0�d����r*rc�>��eZdZdZ�fd�Zd�Zd�Zdef�fd� Z�xZ S)�TotalPagesSubstitutionFragmenta` A special type of text fragment that represents a placeholder for the total number of pages in a PDF document. A placeholder will be generated during the initial content rendering phase of a PDF document. This placeholder is later replaced by the total number of pages in the document when the final output is being produced. c�`��t��j|i|��t��|_dSr#)�superr)r �uuid)r'�args�kwargsr�s �r(r)z'TotalPagesSubstitutionFragment.__init__ts.��������$�)�&�)�)�)��G�G�� � � r*c��d|j�d�S)z� This method returns a placeholder string containing a universally unique identifier (UUID4), ensuring that the placeholder is distinct and does not conflict with other placeholders within the document. z::placeholder:z::)r�r.s r(�get_placeholder_stringz5TotalPagesSubstitutionFragment.get_placeholder_stringxs�� .�� �-�-�-�-r*c�F�||_||_|���S)ac This method is invoked during the page content rendering phase, which is common to all `Fragment` instances. It stores the provided arguments and keyword arguments to preserve the necessary information and graphic state for the final substitution rendering. The method then returns the unique placeholder string. )� _render_args�_render_kwargsr�)r'r�r�s r(r�z.TotalPagesSubstitutionFragment.render_pdf_text�s&��!���$����*�*�,�,�,r*�replacement_textc�r��t|��|_t��j|ji|j��S)a This method is invoked at the output phase. It calls `render_pdf_text()` from the superclass to render the fragment with the preserved rendering state (stored in `_render_args` and `_render_kwargs`) and insert the final text in place of the placeholder. )r&rr�r�r�r�)r'r�r�s �r(�render_text_substitutionz7TotalPagesSubstitutionFragment.render_text_substitution�s7��� �/�0�0���&�u�w�w�&��(9�Q�T�=P�Q�Q�Qr*) r�r�r�r�r)r�r�r%r�� __classcell__)r�s@r(r�r�js���������������.�.�.� -� -� -�R��R�R�R�R�R�R�R�R�R�Rr*r�c�n�eZdZUeed<eed<eed<eed<eed<eed<dZe ed<dZ e ed <d �Z d S) �TextLine� fragments� text_width�number_of_spaces�align�height� max_widthF� trailing_nl�trailing_form_feedc� �|jst��Sg}d}|jD]F}|j|kr|d�|���)|�|g��|j}�G|jdjt jks2|jdjs+|jdjt jkr |ddd�}g}|D]-}||djt jkr |ddd�n|z }�.t|��S)N�����r)r��tuplerxr�rtr�RTL)r'�directional_runs� direction�fragment�ordered_fragments�runs r(�get_ordered_fragmentszTextLine.get_ordered_fragments�s)���~� ��7�7�N���� ��� 8� 8�H��*�i�7�7� ��$�+�+�H�5�5�5�5� �'�'�� �3�3�3�$�7� � � �>�!� � 0�M�4E� E� E���q�!�5� F���q�!�4� �8I�I�I�/���"��5� ���#� � �C� � ��V�6�-�:K�K�K��D�D�b�D� � �QT� � � ��&�'�'�'r*N) r�r�r�r��__annotations__r�r�r r�r�r�r�r�r*r(r�r��s�������������������� �L�L�L� �M�M�M������K�����$���$�$�$�(�(�(�(�(r*r�c�L�eZdZUeed<eed<eed<eed<eed<eed<dS)� SpaceHint�original_fragment_index�original_character_index�current_line_fragment_index�current_line_character_indexrbr�N)r�r�r�r�r�r�r�r*r(rr�sZ������� � � � �!�!�!�!�!$�$�$�$�"%�%�%�%����������r*rc�t�eZdZUeed<eed<eed<eed<eed<eed<eed<eed<eed <eed <d S) � HyphenHintrrrrrbr��curchar� curchar_widthrr N)r�r�r�r�r�r�r%r�r�r*r(rr�s�������� � � � �!�!�!�!�!$�$�$�$�"%�%�%�%��������� �L�L�L��������� �H�H�H�H�Hr*rc��eZdZddedefd�Zed���Z ddeded e d e d e d ed efd�Z d�Z de eeffd�Z ddededefd�Zd�Zdefd�ZdS)� CurrentLineFr�r�c�h�||_||_g|_d|_d|_d|_d|_dS)z� Per-line text fragment management for use by MultiLineBreak. Args: print_sh (bool): If true, a soft-hyphen will be rendered normally, instead of triggering a line break. Default: False rN)r�r�r�r�r��space_break_hint�hyphen_break_hint)r'r�r�s r(r)zCurrentLine.__init__�s@��#��� �� �)+����� � !���!%���!%����r*c�x�d}t|j��D]"\}}||�|dk���z }�#|S)Nr�r�)r�r�rn)r'ro�ir�s r(rozCurrentLine.width�sJ����$�T�^�4�4� :� :�K�A�x� �X�'�'�1�q�5�'�9�9� 9�E�E�� r*Nr��character_width�original_fragmentrrr��urlc ���|tksJ�||_|js<|j�|�d|j|j|�����npt|t��r[|� |jd��s;|j�|�d|j|j|�����|jd}|tvrXt||t|j��t|j ��|j|j��|_|xjdz c_n�|t"krt$}|xjdz c_nl|t&kra|jsZt+||t|j��t|j ��|j|jt,||j|j� � |_|t&ks|jr|j �|��dSdS)Nrr-r�r )�NEWLINEr�r�r�r�rr r$rr��BREAKING_SPACE_SYMBOLS_STRr�lenrror�r �NBSP�SPACEr�r�rr�r ) r'r�rrrrr�r�active_fragments r(� add_characterzCurrentLine.add_character�s���G�#�#�#�#��� ��~� � �N� !� !�!�+�+�!�#4�#C�'�)�� ,��� � � � �� �x� � � �#�2�2�4�>�"�3E�F�F� � �N� !� !�!�+�+�!�#4�#C�'�)�� ,��� � � ��.��,�� �2� 2� 2�$-�'�(��D�N�#�#��O�.�/�/�� ��%� %�%�D� !� � !� !�Q� &� !� !� !� �$� � ��I� � !� !�Q� &� !� !� !� �+� %� %�d�m� %�%/�'�(��D�N�#�#��O�.�/�/�� ��%���!�0�!�#� &� &�D� "� � � #� #�t�}� #� � &� -� -�i� 8� 8� 8� 8� 8� $� #r*c���|jsdS|jd}|jd}|dkrO|�d��|js|jd=|jsdS|jd}|jd}|dk�MdSdS)Nr�r)r�rr{)r'� last_frag� last_chars r(�trim_trailing_spacesz CurrentLine.trim_trailing_spaces6s����~� � �F��N�2�&� ��(��,� ��3��� �N�N�2� � � ��'� '��N�2�&��>� �����r�*�I�!�,�R�0�I��3������r*� break_hintc��|jd|j�|_|jr%|jd�|j��|j|_dS)z� This function mutates the current_line, applying one of the states observed in the past and stored in `hyphen_break_hint` or `space_break_hint` attributes. Nr�)r�rr{rr�)r'r s r(�_apply_automatic_hintz!CurrentLine._apply_automatic_hintDsU�� ��(P�*�*P�(P�Q��� �>� M� �N�2� � #� #�J�$K� L� L� L� *� ;����r*r�r�r�c �b�t|j|j|j||j|j||���S)N)r�r�r�r�r�r�r�r�)r�r�ror�r�r�)r'r�r�r�s r(� manual_breakzCurrentLine.manual_breakOs>����n��z�!�2���;��n�#�1�  �  �  � r*c�&�|jdup|jduSr#)r r r.s r(�automatic_break_possiblez$CurrentLine.automatic_break_possible]s���%�T�1�V�T�5J�RV�5V�Vr*c�.�|���sJ�|j��|j�|jj|jjkr�|�|j��|�|jj|jj|j|jj|jj |j ��|jj|jj |� |��fS|�|j��|jj|jj |� |��fSr#) r&r r rbr"rrrrrr�r$)r'r�s r(�automatic_breakzCurrentLine.automatic_break`s���,�,�.�.�.�.�.� � !� -� � !� )��%�0�4�3H�3S�S�S� � &� &�t�'=� >� >� >� � � ��&�.��&�4��&��&�>��&�?�� �  � � ��&�>��&�?��!�!�%�(�(�� � �"�"�4�#8�9�9�9� � !� 9� � !� :� � � �e� $� $� � r*)Fr#)FF)r�r�r�r�r�r)r�ror%rr�rrrrrr"r r$r&r(r�r*r(r r �s^������&�&�%�&�4�&�&�&�&�6����X���C9�C9��C9��C9�$� C9� "%� C9� #&� C9��C9��C9�C9�C9�C9�J 1� 1� 1� <��i��6K�0L� <� <� <� <�SX�  �  ��  �)-�  �KO�  �  �  �  �W�W�W� �U� � � � � � r*r c��eZdZejdejddfdeede e e fdee dede ded e d e fd �Zd �Zd S)�MultiLineBreakFg�?r�r��marginsr�r��wrapmode� line_height�skip_leading_spacesc ����||_t���r�|_n �fd�|_||_||_||_||_||_||_d|_ d|_ d|_ dS)a�Accept text as Fragments, to be split into individual lines depending on line width and text height. Args: fragments: A sequence of Fragment()s containing text. max_width: Either a fixed width as float or a callback function get_width(height). If a function, it gets called with the largest height encountered on the current line, and must return the applicable width for the line with the given height at the current vertical position. The height is relevant in those cases where the lateral boundaries of the enclosing TextRegion() are not vertical. margins (sequence of floats): The extra clearance that may apply at the beginning and/or end of a line (usually either FPDF.c_margin or 0.0 for each side). align (Align): The horizontal alignment of the current text block. print_sh (bool): If True, a soft-hyphen will be rendered normally, instead of triggering a line break. Default: False wrapmode (WrapMode): Selects word or character based wrapping. line_height (float, optional): A multiplier relative to the font size changing the vertical space occupied by a line of text. Default 1.0. skip_leading_spaces (bool, optional): On each line, any space characters at the beginning will be skipped. Default value: False. c����Sr#r�)r�r�s �r(�<lambda>z)MultiLineBreak.__init__.<locals>.<lambda>�s���I�r*rN) r��callablernr+r�r�r,r-r.�fragment_index�character_index�idx_last_forced_break) r'r�r�r+r�r�r,r-r.s ` r(r)zMultiLineBreak.__init__}s����B#��� �I� � � 6�&�D�N�N�5�5�5�5�D�N��� ��� � �� � �� �&���#6�� ���� ���%)��"�"�"r*c ���d}|j}d|_|jt|j��krdSd}|�|��}t ||j���}|jD]}||z}�|jr�|jt|j��kr�|j t|j|jj ��krd|_ |xjdz c_�b|j|jj |j }|tkr|xj dz c_ nn|jt|j��k��|jt|j��k�r�|j|j}|j |kr2|j }|�|��}||_ |jD]}||z}�|j t|j ��krd|_ |xjdz c_��|j |j }|�||j| ���} d}|tt fvrv|xj dz c_ |js||jz|_|�|jt*jkr t*jn|j|tk|t k���S|j| z|k�r%|t2vr*|xj dz c_ |�|j��S|jt6jkr.|���|�|j��S|���r:|�|j��\|_|_ } |xj dz c_ | S||j krtAd���|j |_|�|jt*jkr t*jn|j��S|�!|| ||j|j ||jz|j"��|xj dz c_ |jt|j��k���|jr;|�|jt*jkr t*jn|j��SdS) NTr)r�r�r rF)r�r�z8Not enough horizontal space to render a single character)#r5r3rr�rnr r�r+r.r4rrrQr�r�r� FORM_FEEDr-r�r$r�r �J�Lrorr,r�CHARrr&r(rrr!) r'� first_charr5�current_font_heightr�� current_line�marginr��current_fragmentr�lines r(�get_linezMultiLineBreak.get_line�s���� � $� :��%)��"� � �#�d�n�"5�"5� 5� 5��4����N�N�#6�7�7� �"�Y���O�O�O� ��l� � �F� �� �I�I� � #� ��%��D�N�(;�(;�;�;��'�3��N�4�#6�7�B�,�,���,-�D�(��'�'�1�,�'�'�� �N�4�+>�?�J��(�� ���%�%��(�(�A�-�(�(�(���%��D�N�(;�(;�;�;��!�C���$7�$7�7�7�#�~�d�.A�B� ��)�,?�?�?�&6�&@�#� �N�N�+>�?�?� �)2� �&�"�l�(�(�F���'�I�I��#�s�+;�+F�'G�'G�G�G�'(��$��#�#�q�(�#�#��(�3�D�4H�I�I�.�B�B��4�=��^�C���O��J��W�i�0�0�0��$�$��)�$�$�#�-�Q�*=��@P�*P�L�'�#�0�0�#�z�U�W�4�4�E�G�G�$�*� )�W� 4�'0�I�'=�1���� �!�O�3�i�?�?��!;�;�;��(�(�A�-�(�(�'�4�4�T�Z�@�@�@��=�H�M�1�1�!�5�5�7�7�7�'�4�4�T�Z�@�@�@��8�8�:�:� � %�4�4�T�Z�@�@� ��+��,���(�(�A�-�(�(��K�(�D�,@�@�@�'�R����.2�-A��*�#�0�0�#�z�U�W�4�4�E�G�G�$�*���� � &� &��� ��#��$�#�d�&6�6� �%� � � � � � �A� %� � �K�!�C���$7�$7�7�7�N � � ��,�,��:���0�0����d�j��� ��tr*N)r�r�r�r r9r�WORDr rrr�r2rr�r)rAr�r*r(r*r*|s������� �w��%�]� �$)�.*�.*��H�%�.*�����)�.*��&�!� .*� � .*� � .*��.*��.*�"�.*�.*�.*�.*�bn�n�n�n�nr*r*N)(r��numbersr�typingrrrrrr r�r �enumsr r rr�errorsr�fontsrr�utilrr�r�r�BREAKING_SPACE_SYMBOLSrkrrrr7rr�r�rrr r*r�r*r(�<module>rJsZ����������C�C�C�C�C�C�C�C�C�C�C�C�C�C�C�C�������;�;�;�;�;�;�;�;�;�;�;�;�!�!�!�!�!�!�$�$�$�$�$�$�$�$�������� � �� ������" �W�W�%;�<�<���� �� � �z�z�z�z�z�z�z�z�z )R�)R�)R�)R�)R�X�)R�)R�)R�X(�(�(�(�(�z�(�(�(�D����� ����  �  �  �  �  ��  �  �  �k �k �k �k �k �k �k �k �\`�`�`�`�`�`�`�`�`�`r*
Memory