| d.|�/E.- d|@.|@| .|�"&.|@| d.|�"&-/A,| ��@�dS ��@��[P�_� �[�Hx�� � @4[�@Eb���_��D��D��Ek�U� |(5�sdS|(5�d5�5��|75'6urn/|�5���}75v6..|�55Q�|75e6zr |/rdS&R7 5�6|�55`�|7 56ur|r .|@rdS.|fgS|756urLg�|'�� -d5D]8� | sdS- d5�C�5��|7 56ur|r .|@s. .|fL5&6dS|S|756ur{|�|ru|D]r���|/ ur.|@rdS&|/urL-ddrdS//|/-d-dd@@@rdS&s|SdS�ߋ�a Hk�U�mGk�U@N��0nc�pnc��nc��nc�����Ï�0oc�����ԏ��2��` ��poc���U�(Y����Y�X����`����0pc�ppc� ���pc� ,���pc� "��p�\�����)��0߮�0��0qc�0�M������������� �C� �D���n�n�G��H��9�9���B�8 �6 &���=�=�� (�"�U�2�Y�Y��&'��� � �/�R�5�[�[�%*�2�Y�/�/��-.��� � �'�,�G�G�B�K�K�,�'+�H��&'��� � ��5�[�[��b��e�R��U�1�W�-�-�A��+� �/�%(���]�]�7�7��-.��� �#$��:�:�-2�1�X�%7�%7��56��� � �� 7� &)���]�]�/�/��-.��� � �'�<�'*�3�w��?�?�';�';�H��!"�+�+�A�)*�G�A�J�J�+��6�\�\��J�J��B�x�(�(�(�(��K�K��R��)�)�)���� &� &� &��w�<�<�3�&�&��u�v�~�-�G��H�� .�#�H��U�{�{�-��� � �R��H�%�%�%�%�%�+ &����, � �D� �A� � �L�L��A� � �� �q�5�5� � �t�9�9��>�>��D� � �L�L��A� � �� �q�5�5� �K�K��C��L�L�)� *� *� *� � � � �Q��F���� � ��� 0� 0�D�A�q��1�u��z�z�� � �G�Q�<�(�(�(�(�� � �E�A�q�1�u�:�.�/�/�/�/� �t� �� � !�s�3�x�x�#�g�,�,�.�.���=� ��� � � �7�|�|�s����'�"�"�� � � �G�T�?�#�#�#� �t� ���H�}��,�G�n�n�G� �E���n�n�G� �E� �;�;�D� �1�e�S� !� !������1�s�7� �#�� �E�>�>� %�e� �G�A��H� � �/4� 4�G�A��H� ��e� � �Q�J�E� �E�M�D�D� �d� � �D���/�'�2�2�2�D��1��I��J�J� �D�!�"�"�"��4�K�C� ��=�:`__i00�@���@;[� ����oc��,Z��oc���_�0D�0D���Hk�Uclas�g}g}0586d@��}d�|D"]}�5�} |756ur>|r6.| L5} ,.| ��|r. |vr.| 5D]} ,.| �c&|s .| L5rd}n�,.| ��n�|75$6ur�05F6- d5- d5d5B5� |rg|r-0 5D6.| B5D]} ,.| �w. |vr.| 5D]} ,.| ��&&n0 5D6.| B5D]} ,.| ��&|s0 5 60 5D6.| B5L5}nC| D]} ,.| � x&n8|7 5#6ur|;50���.| fO5n|;50���.| fO5nY#05�6$rL05!6|N5d5r -dd3 3}Y"&F|rd�|/ur/�|;50���.| fO5YnwxYw"&g}d} |; 5��ޫ�,|@�-�-�-d5rno05!6|N5d5rd}nY|; 5��ޫ�,|@YY�-d5r%|;50���|05!6|N5fO5n|;50���.|fO5&�|�~|D]L�5��.| 5d5r|;50���756|fO5&+|;50���75$6.-d 5ffO5&M.| � �|s 05!6|N505!6|N55r.|fS.|fS05!6|N5d5r475}6|�55S�|;50���756|fO5.| g�.|fS0596|@33}i}0586d@33}d}0586@33}05F6dd dB5D]9� .. - d5�;�.|vr.|5.- dz��&"|x.- dz�.|�5-d 5�.| }&:75}6|�55S�|g75~6|�55k3-dd��3|;50���7 56|fO5.| 3�.|&��@����`�`���Hx��� �b�pEb���_�ptc�ptc���Fk�U�|?5�5`�C��55L�5��|75{6�r75{6�-d5r!|;5А��756d,.|gq5dSg}d}g�|75e6zr |7 5f6zs&7 5�6.|�55^�5���|s75�6.|�55_�|'6} | 756L505!6|N5} - dL5d� |r75m6� |� |r | /} n |r | 75o6z} . | L5|75{66r . |L5n| /@-d/�}. |L5|rl| 05!6|N5L5|�05!6|N5}. |L5|;5А��|q5|;5А��75�6|�55iq5n)|r'75y6|�55O�5�� | rJ�75x6..|�55P05!6|N5|  5.| �5dS�)������Pc@k�U�ޮ�����e����Y�pqc�`T^�@h��@A���;V�D�0�b��qc� !W�`D��qc�0rc�prc��rc��rc�0sc���Fk�U�sc��D� �Hk�U`K�`���� \���T���Hk�U� l���Hk�U �Hk�U�Hk�U�zT��Af���\�p�[�p�Hk�U�S��f� �T�P�T� ����Hk�U����KD�p X���Y�@�T�`Sb�pKD�pKD�� \��@v�� ��k�U ���B��X`�T���Hk�UP�k���Hk�U�Hk�U��Hk�U�zT��Af���\�p�[�`�Hk�U�SP�`��f�P�T�P�T��J����Hk�U������@HD�p X���Y�@�T��Sb��k��GD��GD��B���hv���x�@�v�(�x�<�v�00�x�9�v�8��x��pc�q kk�UP�ak�U9���������� ����r�y��~�~�/H�/H��/H�/H�/H�I�I� � �� ��K��m�,�,�,�,� �F� �E�)�B�]�d�-B�L��,8�,8�� �=�M� )� )� ��'�,�,�s�H�M�2�2���'�,�,�s�H�M�2�2��)�6���w��& 8�!�,�,�.�.�J�� '�b�g��o�o�!� � �e� �<�<���'�4�+J�J�J�!&�J�� /���W�-�-���7��J�v�w�/�/�/��V�W�(�l�K�K�K�K�K��7�>�>�&�1�1�!�6N�!� ����(�(�7� ���(�F�!.�0H�!.�0�0�0�0�&� �f�g�6�6�6�6����"�"� /����(�F�M�1�=�B�B�B�B�� �f�g�.�.�.���� '� '� '� �M�M�#�(�1�+� &� &� &� &� &� &� &� &������ 8� 8� 8� �M�M�7�G�S��X�X�6� 7� 7� 7� 7� 7� 7� 7� 7����� 8����0���c������ �0�0�0� �3� �D� )� )� 1� �M�M�3��S��X�X�.� /� /� /����������0�������F�m�m�� �JD�0W )0�U��mdw�y��r+| st��|�|dz��d} �B| std d���t|d���d} �i| st����td|����dS�1p�Ak�U��@k�U�d}tReturn the addresses associated to each NIC (network interface card) installed on the system as a dictionary whose keys are the NIC names and value is a list of namedtuples for each address assigned to the NIC. Each namedtuple includes 5 fields: - family: can be either socket.AF_INET, socket.AF_INET6 or psutil.AF_LINK, which refers to a MAC address. - address: is the primary address and it is always set. - netmask: and 'broadcast' and 'ptp' may be None. - ptp: stands for "point to point" and references the destination address on a point to point interface (typically a VPN). - broadcast: and *ptp* are mutually exclusive. Note: you can have more than one address of the same family associated with each interface. |fp �@��0@�b� ���Hx����x ��b��\b���_�p���p\D� �Fk�UtR�ttf}|jD�]\}}t|dzt |��zd���|t ur=t��|D]+\}}t|dzdzt |��z|���,�p|t urYt��t|d��D]4\}}|rt|dzdz��|�|dz���5��|tur_|\}}} td|��|�|dz��| r-t|dzdz��| �|dz����:t|t��r(t��|�|dz����wt||��rd} |D]h}t|t��r+| st��|�|dz��d} �B| std d���t|d���d} �i| st����td|����dS��nCk�U�Gk�U����������� �;�;�v� � �D� ��� � �>�>�&� !� !�D� ���Q��2� � �� �1 � �1�Q�3�K�� ��8�8� �f�o�o�a��3�3� 3�F��6�{�{�a����l�l�#9�F�#B�C��K�K�P�P�P��C��q�r�r� �B�/�/�/� /� �#�X�X�&�-�X� �f�o�o�a��3�3� 3�F��6�{�{�a����l�l�#9�F�#B�C��K�K�P�P�P��C��q�r�r� �B�/�/�/� /� �#�X�X�&�-�X� �f�o�o�a��3�3� 3�F��6�{�{�b� � ��l�l�#9�F�#B�C��K�K�P�P�P��F�1�2�2�J��#�#�A� ��F�F�F��A�:� � �#�X�X�&�-�X� � � � ��<�<��$�$� 0��l�l�;�/�/�/����s�,<�=�=�H� K�� �*�*�8�4�4�5�5�����i�(� K� K� K��l�l�#@�8�#K�#&�x�=�=�3�w�<�<�#?�A�A�FJ�K� K�����A�:� � �)�^�^� �f�o�o�a��3�3� 3�F��F�1�2�2�J��"�"�A��5�y�y��l�l�$3�5;�$<�=@��[�[�J�J�J��A�:� � �&�[�[�� � �v�;�;�!� � ��L� � ��l�l�?�V�#;�S��[�[�I�I�I��C��q� �N�N�*� *� �� � � � � �� ���� �,�,���/��V��� =� =� � ���n���������|�A collection of string constants. Public module variables: whitespace -- a string containing all ASCII whitespace ascii_lowercase -- a string containing all ASCII lowercase letters ascii_uppercase -- a string containing all ASCII uppercase letters ascii_letters -- a string containing all ASCII letters digits -- a string containing all ASCII decimal digits hexdigits -- a string containing all ASCII hexadecimal digits octdigits -- a string containing all ASCII octal digits punctuation -- a string containing all ASCII punctuation characters printable -- a string containing all ASCII characters considered printable �|c���pU�k�Upec�D�PD�phc�0dc�0|c�pD��D��cc�`D��D� D�pbc��D�D�pD�0AD�pAD��W���qD��0D�+D�pzD��zD��qD��E��{D��E�@1D�0E��1D��zD�P+D�0{D��+D�p{D��+D��1D�02D��2D��2D� 3D�p3D��3D�4D�`4D��4D�5D�P5D�hX���X��(Y��(Z��(\��(`��(h��(x���@D��`c�����0���V[��mdw�ypDEk�U����xc�HY��0yc��b� ׏��Ռ�`���pyc��yc��X���D����pK[�p{c��{c��{c�0|c�pD��D�D�`D��D�0��p|c��|c������|c�0}c�p}c�D�PD��}c��}c���������a�`܊�����`ď�0~c�p~c�����~c��0��pa]��.^�0e]�pc�P��.�� ����c�p�,�Ok�U`�Wk�U����!� � � � � � � � � � � � � � � � � �� �� ���#�g�g��E��a��B� ��F�A����B��g�w��W���F�4�4�4���r� � � � ����&�(:�*�,B�*�,B�D�D�D��1�g���Q�����r�<�3��C���/�9�:�:�:�:��r����1�g���Q����'�#�,�'�'���2�A�2�w�%�'�'�'�'���r�3�q�r�r�7�#�#�#�#��x����1�g���Q����'�#�,�'�'���2�A�2�w�+�-�-�-�-���r�3�q�r�r�7�#�#�#�#���I�}�m�D�D�D��A�w����r�4�A�d�F�+�+�+�+���Q�q�S�!�D�&�!�!�!��T� �����/�0�0�0��a��1��f����B��Q�����r�0�B��C��G�G�S��W�W�3M�M�N�N�N�N��w�����r�9�T�!�Q��i��-?�*?�%@�A�A�B�B�B��S�)�^�#����z�!�!��1�g���Q����s�x�x�(R�(R�(R�(R�15�a��S�$�-�=O�9O�6O�1P�(R�(R�(R� R� R�S�S����r�3��(�(�(��S�$�-�'�'���� ���s���(�(�A��G�I�d�1�a�#�y�.�.@�+@�&A�B�B�C�C�C���i��'�A�A��� �����h��9L�+�-�-�-��1�g���Q�����r�3������t����A�w����r�4�A�d�F�+�+�+�+��Q�����v����A�w����r�4�A�d�F�+�+�+�+��(��D��1��a��f�%�%�%���I�A��E���7�D��(���x��!�D�&�9�9�9�9�9���w�����(��Q������ �N�)�+@�B�B�B�!%�a��1��f����c�3��)�#�#�%�C���r�4��c�a��f�5�5�5�5���Q�q�S�!�D�&�!�!�!��T� �����&�&� ��A�a�C��L� ��T���r�3���4��0�0�0�0��Q������ �+�+�+� ��A�a�C��L� ��c���r�4���4��0�0�0�0���Q�q�S�!�D�&�!�!�!��T� ����|�#�#��A�w����r�4�A�d�F�+�+�+�+���Q�q�S�!�D�&�!�!�!��T� ����t���(,�Q��!��V� �%��e�S�#��)�#�#�%�C���r�4��U���S�#�!�D�&�A�A�A�A��!����?�*� (�.2�1�Q�3��!��8�n�+�J� ��G�O�[�9�9�9���E�E�!�%��z�)9�"9�:�F��G�J�"�T�Y�Y�.K�.K�F�.K�.K�.K�%K�%K�K�"�R�W�W�S��f�-=�-=�%>�%>�>�@�@�@��Z�'�E��G�K��e�U�:�5E�.E�)F�G�G�G��Z�'�E��+�+���Q�J�E��G�D�M�M�M��D���$��'�'�'��Q�J�E��T� ��� ��n�n�$�o�#�g�g�r �� ���..�� �@����]��Bk�UHx���� V�_��~c���_�p~c��D�Ik�Uor, ���dd�����fd� }��fd�}�dz ��}||k�rb|��|}|dz }t|}|ttttt t tfvr ||���n|ttttttttfvr-�|}|dz }||d|t!|��fz���n�|t"urM�|}|dz }t%t&|��}|dd�dksJ�|||dd����nM|t(urM�|}|dz }t%t*|��}|dd�d ksJ�|||dd����n�|t,t.t0t2fvr2�|}|||||z����|dz||z��||z }�n�|t4t6fvrD�||d z�\}} |d z }||d || t!|��t!| ��fz���nU|t8ur;||t;�||d t<zz�����|d t<zz }�n|t>urȉ|}|dz }tAd �!�fd��||d tDj#zz�D������} |||| ��|d tDj#zz }�dz �tI|��D]:} |t;�||d t<zz�����|d t<zz }�;�dz��n@|tJtLtNtPtRfvr�|}|dz }|||���n|tTur �|}|||||z���|dz }�n�|tVuri�|}|||||z���|rG�|dz||z��||z }|��|}|r|d|||z���n|t��|�G|dz }�nh|tXtZt\t^t`fvrJ�||dz�\}} } | tbkrd} |||| | ||z����|dz||z��||z }�n�|tdur)�||d z�\}}||||||z���|d z }�n�|tfthfvr;�||d z�\}}||||||z����|d z||z��||z }�n|tjur2�|}|||||z����|dz||z��||z }�nD|tlu�r+�||dz�\}}} } | tbkrd} |||to|��| | ||z���|dz�|tpzr��|dz|dz�\}}|d|��|dz����|z�}|ddd�!d�|D����zdd�!tst |����z���|z �|d���|z����|z �|ttzr$�dz �|d����||z���dz�||z }ntw|���||k��b�dz�dS���5��������������������������������������������������������������K���ԏ��۲���`��� aD��a�H#Ik�U� l�h#Ik�U�$Ik�U�$Ik�U�zT��Af���\�p�[��$Ik�UV��T��T�P�T���G�8%Ik�UՂ�����5E���������p_d���Y���_�@�T��gb��`D��`D�p%Ik�Ud��pSFk�U �������������������������������������������������������������paD��@���aD�܎�X��p ��@��f�@F��Hx�����@㍵@���T��p�V������Ȅ��|j���|j���|xjdz c_|j� d|j_|jtj kr`|j tj ks|j tj kr6tj|_ |j�|jj|��|�tj��d|_d|_d|_|�|��|jr |j���d|_|jr"|j���d|_dSdS�ЍBk�U�oFk�U���� ���� ��� ����������� ������ ����������Ē��Ց� ����Ց��ǒ��Ց��’��Ց�(В��Ց�����Ց������Ց�貒�@�������Ց���E��Ց�p^��Ց���E��Ց���E��Ց�p�E��Ց���E��Ց���E��Ց���E��Ց�0�E��Ց���E��Ց���E��Ց��E��Ց��:D��Ց��:D��Ց��>=|>>|>=|>|==|=|<=|<<=|<<|<|;|:=|:|/=|//=|//|/|\.\.\.|\.|\->|\-=|\-|,|\+=|\+|\*=|\*\*=|\*\*|\*|\)|\(|\&=|\&|%=|%|!=))|((|RB|u|FR|f|F|rF|Rf|B|b|Fr|rb|rB|fr|r|R|BR|br|Rb|U|rf|fR|RF|Br|bR)'[^\n'\\]*(?:\\.[^\n'\\]*)*'|(|RB|u|FR|f|F|rF|Rf|B|b|Fr|rb|rB|fr|r|R|BR|br|Rb|U|rf|fR|RF|Br|bR)"[^\n"\\]*(?:\\.[^\n"\\]*)*@p�@��� ]F��]F�Hx����� ��_�p�F��[F��:F�@;F�`g^��|dkrd}n||z }|jr�|}|d}|jrVt|��|krC|�dd|��}|dkr&t d�|d|�D����r|dz}|�|d|���||d�|d<dS|s)|�|�����dS�,`/opt/alt/python311/lib64/python3.11/lib-dynload_socket.cpython-311-x86_64-linux-gnu.so��LSk�UpQk�U��;��R{L.����zQIr,���������������a��_OA���/b������������ ������y��+��g��������^����ZV��X��������:��E�����������K~JtPD��p87fwB39!v\*����"����GH������S��l����0��om��������2Fj e>����6����@����|����s��C����4��$��] ���5��u=��'������<n%�����q����������?����� ��x�����k����i ��-��Y��cWh���#��&M }��[����T1����`d��(������������N������U������������)�������Ē��?^� ����_��ǒ�0\c��’��^c�(В�_c���� �X������$[�貒�@���`c�� D��^�D��@D�� \��yc�E��LD� \������THk�Upcc��E��dc��E�pdc�@E��dc��E��}c�@ E��}c� E�0fc�� E�0:^� E�pgc�� E�pmc�� E��mc�@ E�0hc�� E��hc�@ E��cc�� E��j[�@E�0gc��E�0cc�@E�0ec��E��{c�@E��{c��E��bc�@E��bc��E�0mc�@E��|c��E�0}c�@E�p:^��E�p}c�@E�pec��E�D�@E�PD��E�phc�@E�0dc��E�0|c�@E�pD��E��D�@E��cc��E�`D�@E��D��E� D�@E�pbc��E��D�@E�D��E�pD�@E�0AD��E�pAD�@E�p{c�@_c��qD�E��0D�@E�+D��E�pzD�@E��zD��E��qD�� E��E�!E��{D��!E��E�"E�@1D�@ E�0E��"E��1D�@#E�p|c��E��zD�@$E�P+D��$E�0{D�%E��+D��%E�p{D�&E��+D��&E��1D�@'E�02D��'E��2D�@(E��2D��&E� 3D�)E�p3D��)E��3D�*E�4D��*E�`4D�+E��4D��+E�5D�,E�P5D��,E��|c�$E�0bc�-E�P?a�@-E��?a��-E�pfc��-E��fc�.E��fc�@.E��gc��.E��gc��.E��]�HX��P�]�hX���-^��X����]�(Y��0.^�(Z��`�]�(\���]�(`���.^�(h���-^�(x���sc�HX��D�hX��PD��X��p_c�@OD�0`c���`�p`c���`��`c���`�pqc�@�`�?a��OD��_c��C�p/^��GE��D�`HE�0D�IE�0pc�(\���ec� \��pc�0S^��mc��IE�0nc�@JE�pd_��JE�D��KE��qc� LE�`D��LE��D�`ME�ptc�NE��4^��NE��tc�@OE�0vc��OE��~c��PE�.�� QE�� ��@����6w��3v�Xx����j@|w��Wx���w��-V��|w���v�YK�tj|��|jr'|���dkrt d���|jt jks!tjrR|jt j kr=|� ||j|j |j |����d{V��}|d\}}}}}|� ��}|�|||�� |�d{V�� d}S#d}wx��&����� � �%��$!�� �" �#������� ���� ���Œ�����xʒ� Œ�����pŒ�H����Œ�p��Ì�豒�`Ì�����Ì��Բ�Č�0wV�PČ��wV��Č�p�V��Č��V�@Ō���V��Ō�0�V��Ō���V�0ƌ�����ƌ��,���ƌ��&�� nj�pv]�pnj������nj�0p]�Ȍ��p]�`Ȍ�0-���Ȍ�(���Ɍ��B]��-��𦊵�-����V�.��p��@.��pF]��.���F]��.���+��/���fV�@/��p,���/���vV��/��00��0�������0��p$���0�� ��������E�zEk�U`9nk�UpP��Hx����Yӌ�� ���M��@ӌ�@ӌ�pˉ��|���sJ�|���rdS|���rJ�|���r|���dS|���}|�$|�t |����dS|���}|�|��dS�̌� �Ok�U�$]k�U0�=�0��P�[�਌��6��pF]�����k>��ɉ��?�p'@�Xْ�����0wV�0 B��Ό��:������Đ�p8��`��0ό��8���wV��m>�p9����V��=M�p��@��n�� ߊ������������T��0�V�0������d|_ |j���rtjd|��|jt jkr|�t��dS|jt j kr>|� t j ��|j rdS|���dS|jt j krI|���|� t j��|���dS|jt jkr|���dSdS#t$$r|j����wx����������������������������������������������������������������S��Nk�U Sk�UB\�@7E�Jp\�Plb�c�\��lb��0\��lb��p\��lb���\�mb���\�@mb��0\��7E��P\��7E���\�pmb���\��mb���\��mb�P��#2!"#$%&'()���,�������������+���������� ����������� � ������/�����-�����������*� ��������.0��1�������iHe�� Tb�s�f���Rb���n��`hb�1P \��eb�p \��hb�E� \��]D��� \��db��� \�0Sb��\�hb��P\�0hb���\��hb�� \�7E���\��hb��0 \� ib��\�Pib��P\��ib���\��ib���\��ib���\�jb��0\�@jb���\�pjb���\��jb��0\��jb���\�kb��p\�0kb��p\�`kb�2\��kb�4P\��kb�>�\��kb�A�\� lb�B\�@7E�Jp\�Plb�c�\��lb��0\��lb��p\��lb���\�mb���\�@mb��0\��7E��P\��7E���\�pmb���\��mb���\��mb�a0\�nb��P\�0nb��� \��8E��� \�`nb��� \��nb�K�\��nb��p\��nb���\� ob�� �`����RC� �a�h]Ik�U� l��]Ik�U�^Ik�U�^Ik�U�zT��Af���\�p�[�_Ik�UV�+7���T��T�P�T���G�X_Ik�UYRk�U@RC��P���Y��bZ�@�T�P5A�pRC�pRC�d!�id"!P�Dk�UPHk�U�?�0 ?�p ?�p?�� ?���>�� ?�0 ?�`�>�p ?�� ?�� ?�0 ?�p ?�� ?���>�� ?�0 ?�p ?�� ?�� ?�0 ?�p ?�� ?�� ?�0?��>�p?�P�>��?��R]��?���>���>�0?�p?��?��?�0?�p?��?��?�0?�p?��?�@�>���>��?�0?�p?��?���>�0�>��?�0?�p?���>��?��?�0?�p?��?��?�0?�p?��?��?���>�0?�p?��?��?��"V�~V� �>�0?�p?��?�p�>���>��>��?�`�>�0?�p?��?��?�0?�0�E�p?���7��?��������������������������������������������������������������������Gk�U -^� �a�XgIk�U�k�xgIk�U�hIk�U�hIk�UpZT��Af���\�p�[�iIk�UV@@C����T��T��XT���k���G�HiIk�U� Hk�U@ND���������p_d���Y��pd�@�T�@�^��9^� <^���`��b� b��Fb���]��Y� �]��XT���R��_�@_�P{o���R�p|o��Y� �Y���a���a��Y��&d��&d���_��,^��,^�t �#�zEk�U �������������������������������������������������������������������&/ ����"&������� � ����������%�� ��������������*)�����$�������� ��������#���.� ���+�,��-����(���!����'�pY_�Е��0Y_��T����_���a��Y_��8E��T_�@[c���_��DD��_�A_��X_�`����d_� ���0e_�P�b�pZ_�� \��Z_�P\��Z_� \�pe_��Ց��ƒ���C��Ӓ� �C�����C�8̒���C��͒� �C�xɒ���C�0����C�0Ē��݊�0��0����.^�p��� ����`�p ������,^��9E�`��:E� ��P:E�0+^��:E�����Wc�p+^�Xc�ω�;E�p,^��;E�� ��E�C��P>E�0,^�?E�( ��P?E�p.^�P�E��B���;E��X��E�0__�@�E��Œ���C�xʒ���C�� K���;xk�U��pk�U ��0 �<��3� ����,�(���������-���$�:�; ������!)�/8�*2 ���7�����+�&����� �����%�"���.�����#�149�6'��5���Ē��Ց� ����Ց��ǒ��Ց��’��Ց�(В��Ց�Ȓ��Ց�����Ց������Ց�貒�@���=^��Ց��:^��Ց��^��Ց��@D��Ց��o]��Ց�`���Ց������Ց�0)^��Ց��,^��Ց�`���Ց� ���Ց�0+^��Ց�����Ց�p+^��Ց�ω��Ց�p,^��Ց�� ���Ց��+^��Ց�����Ց��+^��Ց�C���Ց�0,^��Ց�( ���Ց�p.^��Ց��B���Ց��X��Ց��,^��Ց������Ց�pUU��Ց�� ^��Ց�@����Ց�01V��Ց�0^��Ց������Ց��)^��Ց��d]��Ց�.���Ց�0*^��Ց��`Y��Ց��]��Ց�p*^��Ց��*^��Ց��*^��Ց��V���Ց��4^��Ց�p/^��Ց��2^��Ց��6^��Ց�p8^��Ց�0?^��Ց��8^��Ց��9^��Ց�r| � ���Zk�U�Zk�U����������������������  ��� ��� ������������ ((]��pBD�)H]��p�E�[�c����E�]�c����E�{�g��0�E�}�g��p�E�?`����E�*h]����E�+�]��0�E�-�]��p�E�|�g����E�^�c����E�$�\��0�E�\�c��p�E�.�]����E�&�\����E�~�g��0�E�#�\��p�E� (\����E� HY����E� hY��0�E� �Y��p�E� �Y����E� �Y����E�`p ���5��������䕋�A context manager that controls event loop life cycle. The context manager always creates a new event loop, allows to run async functions inside it, and properly finalizes the loop at the context manager exit. If debug is True, the event loop will be run in debug mode. If loop_factory is passed, it is used for new event loop creation. asyncio.run(main(), debug=True) is a shortcut for with asyncio.Runner(debug=True) as runner: runner.run(main()) The run() method can be called multiple times within the runner's context. This can be useful for interactive console (e.g. IPython), unittest runners, console tools, -- everywhere when async code is called from existing sync framework and where the preferred single asyncio.run() call doesn't work. z� �4Gk�U!?k�U@�b���E����@Ia�p�E�`�_��F�EF��4Gk�U�g}|�d�|j|j|j����|j�ru|j���}|�d�|����|j}t|��}t|j� ����}||z }|j ���|j ���t||j ��}t||j ��} ||| �} d} |j|j kr�,�+F�#G�L�&)�,�&7�&7�#�l�>Q�>Q�>S�>S�:T�:T�&T�O�"&�)�":�_�"L�K�#.��?�L�'�!�+�c�,�.?�.?�?�?� ,�_�q�-@� A� I� I� K� K�@�%��)� �%��G� � �4�4���AU�;U�2�:^�:^�:`�:`�4�df�jn�dn�dn�#�q�(� �$��)� �&��G� � �4�4���AU�;U�2�:^�:^�:`�:`�4�df�jn�dn�dn�$�I�I�k�$:�$:�I�I�l��>�>�%�_�)�> �4�p�M��A����������"��-�� �=��E�E�E� � � �"�Y�-�-� � � �.���.���!�B�B� (�� 7� 7��l�)�C�+�+�� �!�� �!��K�8�8�� � Z�$�Y� �T�B�B�D�N�N��� Z� Z� Z�X�L��K�QU�4V�4V�X�X�Z�D�N�N�N�N�N�N����� Z���� � %� �8�[�9�9� %�%�.�D�M��"�C�&)�o�#�c�(�(�(�4�D�K��*�G�.5�.A�c�'�l�l�l�t�D�O�!��D�I�#�*�D�K�'�2�D�O� �}�D�H� � � � � � � � �.7�.C�I� *� *�� �!� !�A C��I�&�'�E��? C�� � � � ���A�� !�!�+�1��1�;���u�4�4�.��Q�[�)�)�� �� �1�#�%1�'5�(7�(7�#� %� %� %�E�E�!�E��(�$)�T�M�%?�$%�T�M�%?�()�(>�$>�!�L�$(�L�� #�!�-�3�$�4�)+�A�M�):�):�%�)G�)G�0��Q�]�+�+�� �� �3�#�%1�'5�(7�(7�#� %� %� %�G�G�#�G��&��A�'9�:�:�&�!#�J� �|� 0� 0��1� ��I�I���-�"'�)5�+9�,;�,;�"'� )� )� )��#�)�)�$�/�/�/�/� 0�"&�J�$�� �!(��� *�� ��>��L�L�"�,�� �!<�=�=�=��B��L�L�"�.�!�-�!@�A�A�A��C��L�L��R�]�A�L�!A�!A�B�B�B��? C�? C�? C�A C�A C�? C�? C PPMk�U����0��P��PMk�U����0��P��� @�Ok�U@;Nk�U�jFormat the stack ready for printing. Returns a list of strings ready for printing. Each string in the resulting list corresponds to a single frame from the stack. Each string ends in a newline; the strings may contain internal newlines as well, for those items with source text lines. For long sequences of the same frame and line, the first few repetitions are shown, followed by a summary line stating the exact number of further repetitions. @��@���_��EF�Hx������_�`|b�`�_���pF��(��dict�g}d}d}d}d}|D]�}|�|��}|��|�%||jks|�||jks |� ||jkrP|tkr.|tz}|�d|�d|dkrdnd�d���|j}|j}|j}d}|dz }|tkr��|�|����|tkr.|tz}|�d|�d|dkrdnd�d�����@����r7��8��r4���jpo8�pr4��P��9��o8�p�N�j��|jrtd���|js|j�td���|j�|d|j||j���|_ |r"t��� |��}n#d}t��� |��|s"d|_|j r|� ��|S#ttf$r d|_�wxYw�Z/Q`�Jk�U"Jk�UpKG��KG���F���F�0�F�p�F�p�F���F�0�F�0SG�pSG��SG��SG�0TG�pTG��TG��TG�0UG�pUG��UG��UG�0VG�pVG��VG��VG�0WG�pWG��WG��WG�0XG�pXG��XG��XG�0YG�pYG��YG��YG�0ZG�pZG��ZG��ZG�0[G�p[G��[G��[G�0\G�p\G��\G��\G�0]G��2F�0fc�p]G��]G��]G�0^G���F�p^G��^G��^G�0_G�p_G�p�F���F���F�p�F��_G�pRG�eF��� @�I0�U��mdw�y�GeF����G[E[Fd3ZHGd4�d5eI��ZJGd6�d7eI��ZKGd8�d9��ZLd:�ZMd;�ZNd<�ZOd=�Zd>�ZPd?�ZQd@�ZRdA�ZSdB�ZTeUdCkr eS��dSdSA�fHk�UP��| | ��Sn@1"�Fk�U0�Ik�U�l]�An exception ready for rendering. The traceback module captures enough attributes from the original exception to this intermediary form to ensure that no references are held, while still being able to fully print or format it. max_group_width and max_group_depth control the formatting of exception groups. The depth refers to the nesting level of the group, and the width refers to the size of a single exception group's exceptions array. The formatted output is truncated when either limit is exceeded. Use `from_exception` to create TracebackException instances from exception objects, or the constructor to create TracebackException instances from individual components. - :attr:`__cause__` A TracebackException of the original *__cause__*. - :attr:`__context__` A TracebackException of the original *__context__*. - :attr:`exceptions` For exception groups - a list of TracebackException instances for the nested *exceptions*. ``None`` for other exceptions. - :attr:`__suppress_context__` The *__suppress_context__* value from the original exception. - :attr:`stack` A `StackSummary` representing the traceback. - :attr:`exc_type` The class of the original traceback. - :attr:`filename` For syntax errors - the filename where the error occurred. - :attr:`lineno` For syntax errors - the linenumber where the error occurred. - :attr:`end_lineno` For syntax errors - the end linenumber where the error occurred. Can be `None` if not present. - :attr:`text` For syntax errors - the text where the error occurred. - :attr:`offset` For syntax errors - the offset into the text where the error occurred. - :attr:`end_offset` For syntax errors - the end offset into the text where the error occurred. Can be `None` if not present. - :attr:`msg` For syntax errors - the compiler error message. � �Ik�U`�Hk�U�T��`�D�(��hߒ�pޒ��ܒ�@�����0�E�p�E�x����U���Ik�U`F��E�0�E�� ��@ ���E�pa]�����v_�0�E�p�E�po[���E�0p[��E�0��0�E�0��p�E���E��E�0�E�p�E���E��E�0�E�p�E���E�pQ_��E�0mE���E�F�PF��@���jD��E�p��`؋��F��F����@���_���D��}b���H �b��}b�`�_��DF��DF�0�Ik�U ���ddl} |����}n#t$rYdSwxYwt|j��dkrdS�fd�}|jd}||jd�x���\}|x|jd�x��F\||jj��}||j j ��}�||�}t|��t|� ����z } |jj| z} | dz} | dzt|��kr"|| dz� ��s| dz } | t���kr]�| x} � ��s| dvr=| dz } | dz } | t���kr �| x} � ���9| dv�=t|| ��|| ����S|jd�x��5\||jj��} ||jjdz��} | t���kr\�| x} � ��s| dkr:| dz } | t���kr"�| x} � ���4| dk�:| t���kr\�| x} � ��s| dkr:| dz } | t���kr"�| x} � ���4| dk�:| t���kr| dz } t| | ��SndSf�e����@��}��_�t���E��� ��`���E�`�_�H���`F���Ik�U�| du} | �t��} | �t|����||_| |_t �t|��|||���|_||_ t|d��|_ t|dd��|_ n6#t$r)} dt| dt����g|_ Yd} ~ nd} ~ wwxYw|r�t!|t"��rz|j|_|j} | �t)| ��nd|_|j}|�t)|��nd|_|j|_|j|_|j|_|j|_|r|���|�|jnd|_| �s�||fg}|�r�|���\}} | rW| j�Pt| j��| vr:t=t?| j��| j| jj ||||| | �� � }nd}|r|duo | duo| j }nd}| rY| j!�R|rPt| j!��| vr:t=t?| j!��| j!| j!j ||||| | �� � }nd}| ratE| tF��rLg}| j$D]A}t=t?|��||j ||||| | �� � }|�%|���Bnd}||_||_!||_$|r!|�%|j| jf��|r!|�%|j!| j!f��|r-|�&tO|j$| j$����|���dSdSd@P�@��9@�E� �D�Hx��#��M�F��F�`�_�� 3�> 3�H�C�����9�9�S�>�>�)�)�)�)�)�)�)��~�%��9�=�#�y�y�)O�P�P�P�P�P�P�P�P�P�#�y�y���)9�)9�);�);�<�<�<�<�<�<�<�<�<��9�9�S�%>�%>�%@�%@�A�A�A�A�A�A�A�A�A�A��+�d�.B�B�B��9�9�H�t�/C�H�H�H�J�J�J�J�J�J�J�J�J�J� $�9�Q�>� ��4��.�.�!�3�.�.��9�=�#�y�y�N�-8�&B�c�c�d� )� D� D�D�D�D�D�D�D�D� $�y�y���)9�)9�);�);�<�<�<�<�<�<�<�<�<��9�9�S�%>�%>�%@�%@�A�A�A�A�A�A�A�A�A��s�~�.�.���t�3�3�3� �A�A��,�q�0�A�"'����q���4�4�A� !�Q�q�S��H��/�*.����+�7�%&�$�*>�%>� � �$)� �,5�@�q��s�H�H�5�E��;�;�=�=�$%�q�D�D�D�D�d�4�J��J�J�J�K�L�L�L��.�.�!�3�.�.�$�I�#&�>�!�#4�#;�#;�%�d�#;�#S�#S�S�S�S�S�S�S�S�S�$,�t�/C�$C� �(1�A� � ���2��#'�9�9�G�9�G�G�V�G�G�G�$I�$I�I�I�I�I�I�I�I� �0�D�O�0�#�{�{�}�}�H� I�J�J�J�*/����.�.�!�3�.�.�.��3��5��:�:�:�:�12�D�.��}> 3�> 3#rrS�0PJk�Up�Gk�U@�E���F���4��_���F� �_�0�E�0�E���\�CAT�|�'tt�����}n|tvr|g}ndS|D]�}t|}t|��dkr�#|\}}}}|��- t j|��}n+#t $rt�|d��Y�jwxYw||jks ||j krt�|d����d�0�@����+F��RF�Hx�����SF��F�PMF���F��+F�0�b�+�,�|\}}||jks||jkr:||jkr/td�|||j|j�����||jz }|r$|j�d|z��d|_||jz }|r|j�d|z��dSdSAp�Mk�U�������0��P���Mk�U�������0��P��r&p1=PLHk�U �Ik�U �Fk�U0(D�11P ����`���_�pmD�pmD���Hk�U�75~2|@���|'��|'��|'�}05!2} 0 5(2} |(5�� | �"n^- dvr"nX|A55A|r&| 75t2vr&(- d5r |A55A� | �- d5rn&&D- d;gd5r75�2.. |�55W} .| A55F"n�| 75n2vr|752. | L5fA55F"n�- dk"r�|? 5�3`�C��55Bd 5} g�|'��|(5�d5r9ddl �|8 , |8 @/-d � @-d A55D} |A55A� | �+|8, |8 @|  @�- d5r|r"n�- dZ)d5r7!5�2.| �55H}ny|re- dvra|(5�| 5rVddl �|8 ,- drdn- drdn - drdn,|8 @d f/-d � @752. | L5f}-dA55D"r�|A55A�|�+|8, |8 @|  @�-d5rE-d57"52ur-dd}.|L5|752- dL5fL5"nd-d�d5r7!5�2.|�55H}nT-d5r,| �,|���|8|/ | @d/ |@@�-d5�-d5�.|5r>,| �,|���|8|/ | @d/ |@@�|7$5"2.|ffL5n(-d57"52ur-d5d5}.|L5"&�7'5�2|�55G}. |N5d5rJ-d5d5752ur5|r |7(5 2-d5d5fA55F" n?.-d@" n,|r|;5����d7,5!2dfP5|7"52|fA55F" n�| 7.5o2v"r�|? 5�3`�C��55B� - d5rd�5�}"n�- d5r d705 2�}"n�- d5r d705 2�}"ns- dk"rZ|(5�d 5r|/. | @f@"&�d705 2�}d!x��|(5�725p2vr||A55A 5�|(5�725p2v�-d"A55Dr*|(5�725p2vr||A55A 5�|(5�725p2v�n|}-d A55Ds2|752. | L5fA55F|?5�3@@E�| �55h"&�|r)075B2|@� � �|705 2� r/9d#@�|rZ075B2|@�|705 2r/9d#@�.|5r+|8,$|8 @|  @�n/;,%|��@�|r -d&d�5�C}nd�|r-d5�Cd57<52ur;|8,'|8 @|  / | @@�-d5�Cd57>5u2vr;|8,(|8 @|  / | @@�-d5�Cd57@5%2ur-d5�Cd5�5����|�|s|s|}-dA55Dr7B572..|ff-d&�#"n<-dA55Dr/D..|ff-d&�"n 7F582..|ff-d&��"n- d)5r|7H52dfA55F"n�- d*k"r�|? 5�3`�C��55Bd 5} d}!d+}"d}#d}d}-dA55D"rf|A55A�|�|8d,@�-d-k"rh-d.A55Dr/|?%5�3 �C�d/d0�55e�#|?&5�3�AE�-#,|�55f"n-d1A55Dr�|?%5�3 �C�d2d0�55e�#|?&5�3�AE�-#,|�55f|('5�;5 ����|#P5�$|$�+,3|#�|8|/ |#@d@�|?(5�4��C�|$�55�s&|8d4/ |#@d@�|?)5�4 �C�.$|�55�|7T52|$fA55F"&�|@�|�|8d,@�|8,5|/ |@d@�-d65rd+}!"n�-d5rE |'�+|8,7|8 @|  @�|@d2rn&B" &�-d8vr�d�%-d.5re|A55A�|�|8d,@�-d9vr)|8,:|/ |@d@�d&�%|(+5��&|&� |',|�+5�7[5�2...-d5�55J�-%d5r |&�,|�+5�-d2A55Ds+|8,;|8 @|  @�-d15r|7\52.%|ffA55Fn|7^52.%|ffA55F" &�-d*k"r�|8%d2d0@�'|'80@r`|8&-',|@|''8|'@�(|(�+,3|'�|8|/ |'@d@�"n� /7|'@�(-(dr/b�n:#/b$r-,<|'�|8|/ |'@d@d�wxYw|(s&|8d=/ |'@d@�|(/dr+,>|(�|8|/ |'@d@�.(|'3vr/|8 @/ |'@ d |'3|(�|'84@r|'85@sqddl �|8 ,?|'6r/o|'@n/q|'@|8 @/ |'@ d f/r-d � @|8).(|@/u...-d@�)|8d@@r6/u...-d@�*|'d@r|8dA@�nd�*|8d2@s+|8,;|8 @|  @�|/v.(.)|*ff@" &o-d/5rd+}!d}"n�|7x5y2vs-dr[7{5�2..|�55g�+|+�@|r|r+|8,B|8 @|  @�|(>5�7~5h2z}" &�|+�5�}d+}!n)|8,C|/ |@d@�|!rU |?@5�4@�C�|#�55I}n@#/$r1�,|8|,'A/ |#@d@d�d},~,wwxYwd�|s |7~5h2zo |7~5h2z }-7[5�2...--d5�55J�|?5�3@�C�d2�55Ds+|8,;|8 @|  @�|�|?B5�4��C�.|�55K|"r|�J�|/�|f@ne|7@5%2...|ffA55FnN- d 5r|7<527�5:2fA55Fn0- dD5r|7<527�5?2fA55Fn/;,E|��@�"&i0�5F20 5!2|N5B5ddd&��D]-�..|.5�C�5�/�0|/7@5%2ur|0�5����|�|s |s ....-.d5���&.|S� 0�M������������������ �&���A� �5�D� �F��H��G��n�G�����������!�J�B��t�v�v�� �<� � ��7�d�?�?��Q��A��C�x�x��w�w�s�|�|�/��'�'�+�.�.�.��z�z�#�|�4�4���$�$�&�&���$�$�T�1�b�1�1�1�S� *�4� 0����#�S�S�S�(�)@�4�)G�H�H�d�R�S����?� #�D� � �� �1�9�9�",�,�%��%�?�?�?��g�g�&F��&M�&)�$�i�i�!�m�5�5�:>�?�?����� �)�)��g�g�&B�U�&J�&)�$�i�i�!�m�5�5�5� �N�N�,�,��������'���� � � �K�+,�8�D�T�$�Z�Z�Z��t����V�V�X�X��D� � �1�A�5�7�7�/�1� &���� ����D� � �A� �.�.�.�.��c����6�Y�&�&��D�D�F�F�N�D��v��*�*�����������C��Q�R�R��!�,�,�t�3�4�4�5�5�5�5��f������6�V�#�#��D�D�F�F�N�D��Y���4��7�i�+?�+?���)�+�+��������"&����Q�R�R��!�,�,���u�9�9�"#�'�'�+:�<@�+A�BE�d�)�)�#M�#M�M����A�������;��H�S��a�b�b��]�]�C��I�I��M�:�:�:��S��w�t�}�Q�/�0�0�D�D���S�S�S��L�(�(��g�g�o��&<�c�$�i�i�H�H�d�R�)�(�S������� � � � � �G�D�M�M�M�EB�F�*��������(�(�)�)�)� �f�c� "� "�R�R�Q��Q�Q�Q�� �8� ��%� �@��]@�b�0Y^�`*D��� � @�D��yD���_�p5^�p5^�`Jk�U�� � ���t|����j}g� g�g� � j}� � ���fd�}�j} |��}|��n�|ddk�r�|d}|dk�rՉ�d��s��d�����d d ��}|���rC��|dd �� ||} �nA#t$rtd |z��d�wxYw t|��} | dkrt�n8#t$r+��d |zt|��dz��d�wxYw| tkr)��d| zt|��dz���|���r|���snddl} | �d�jrt)|��nt+|������t|��z dz fzt.d���|| t|��dz���n�|dkri�jt2vr(||��z }�jt2vr ||��z }|t5t|dd�d��dz�����nd|t6vr�d} �jt6vr�||��z }|t2vr�|dt2vry�jt2vrk||��z }d} t|dd�d��}|dkr&��d|zt|�����|t5|����| s1|t|dd���t|��dz ��ny t5t8|d��}n@#t$r3|t:vr'��d|zt|����d�YnwxYw||��n ||����ԉ r(��d�� ����t?|t@��s d��D���� �f`/ �������������ƍ� The tokenize() generator requires one argument, readline, which must be a callable object which provides the same interface as the readline() method of built-in file objects. Each call to the function should return one line of input as bytes. Alternatively, readline can be a callable function terminating with StopIteration: readline = open(myfile, 'rb').__next__ # Example of alternate readline The generator produces 5-tuples with these members: the token type; the token string; a 2-tuple (srow, scol) of ints specifying the row and column where the token begins in the source; a 2-tuple (erow, ecol) of ints specifying the row and column where the token ends in the source; and the line on which the token was found. The line passed is the physical line. The first token sequence will always be an ENCODING token which tells you which encoding was used to decode the bytes stream. ��F��PHk�U,Ik�U�Ik�U�;����F�0�F�p�F���F���F�0�F�p�F���F�p�D�pޒ�0�F��nc�0�b��Y���������p�F�p�F� ���(��@���p�F���F�0-F�p���TF��>��`�F�h��0�F��Jk�U�ܒ�`,�������F�pUU����0�F����p�F�p`0�F��JG�pKG��KG���F���F�0�F�p�F�p�F���F�0�F�0SG�pSG��SG��SG�0TG�pTG��TG��TG�0UG�pUG��UG��UG�0VG�pVG��VG��VG�0WG�pWG��WG��WG�0XG�pXG��XG��XG�0YG�pYG��YG��YG�0ZG�pZG��ZG��ZG�0[G�p[G��[G��[G�0\G�p\G��\G��\G�0]G��2F�0fc�p]G��]G��]G�0^G���F�p^G��^G��^G�0_G�p_G�p�F���F���F�p�F��_G�pRG��e��p�F�@e����F�07�PH�06A*F�����MC&$ �3K�,D�GO'( � <�2+"4�N/:L��� !�J)>����I�������8E@�9����%�B��;�5# ��� ��=1��7�-�?.����Ē���F� ��� 3F��ǒ�����’��IG�(В�KG�����OF�������E�貒�@������=E���F�(X����F�HX��0�F�hX��p�F��X��p�F��X����F��X��0�F��X��0SG�Y��pSG�(Y���SG�HY���SG�hY��0TG��Y��pTG��Y���TG��Y���TG��Y��0UG�Z��pUG�(Z���UG�HZ���UG�hZ��0VG��Z��pVG��Z���VG��Z���VG��Z��0WG�[��pWG�([���WG�H[���WG�h[��0XG��[��pXG��[���XG��[���XG��[��0YG�\��pYG�(\���YG�H\���YG�h\��0ZG��\��pZG��\���ZG��\���ZG��\��0[G�]��p[G�(]���[G�H]���[G�h]��0\G��]��p\G��]���\G��]���\G��]��0]G�^���2F�(^��0fc�H^��p]G�h^���]G��^���]G��^��0^G��^����F��^��p^G�_���^G�(_���^G�H_��0_G�h_��p_G��_��p�F��_����F��_����F��_��p�F�`���_G�(`��pRG�(x��0�F��RG�� F�SG��JG��sE�pKG� tE��KG��tE�0=PP�Mk�U����0��P��P�Mk�U����0��P��bj0�U��mdw�y�W�������������������� ��p�F��dY� я���F�`�����F� ݊�@Ώ�0�F�p�F���F��������ʼn���F�0�F�p�F���F���F�0�F�p�F�����V[��mdw�yption, another exception occurred: c��eZdZd�ZdS)� _Sentinelc��dS)Nz ���selfs r#�__repr__z_Sentinel.__repr__[s����!`ETk�U0hVk�U  !"#$%&'()*+,-./0123456789:;<=>?@��������������������������������������A������������������������(X����F�HX����F�hX��0�F��X��p�F��X��p�F��X����F��X��0�F�Y��0SG�(Y��pSG� HY���SG� hY���SG� �Y��0TG� �Y��pTG� �Y���TG��Y���TG�Z��0UG�(Z��pUG�HZ���UG�hZ���UG��Z��0VG��Z��pVG��Z���VG��Z���VG�[��0WG�([��pWG�H[���WG�h[���WG��[��0XG��[��pXG��[���XG��[���XG�\��0YG� (\��pYG�!H\���YG�"h\���YG�#�\��0ZG�$�\��pZG�%�\���ZG�&�\���ZG�']��0[G�((]��p[G�)H]���[G�*h]���[G�+�]��0\G�,�]��p\G�-�]���\G�.�]���\G�/^��0]G�0(^���2F�1H^��0fc�2h^��p]G�3�^���]G�4�^���]G�5�^��0^G�6�^����F�7_��p^G�8(_���^G�9H_���^G�:h_��0_G�;�_��p_G�<�_��p�F�=�_����F�>�_����F�?`��p�F�@(`���_G�(x��pRG����@���B�@�>���B���(@�A��)A��e=�p�B�`�A�0C��|�tj|��5|�tj���|j|j��|�|j��|�d��|�|j��|�d��|�tj|j ��|�|j ��ddd��dS#1swxYwY� ��@�����@��@���B������A��,A��e=�p�B��A� �I�#t�|�tj|j��|�|j��|�dd��5d}|jD]1}|r|�d��nd}|�|���2|jD]1}|r|�d��nd}|�|���2 ddd��dS#1swxYwY �%y��ui �p��%y��ui �p��1y������p��!'��Ck�U0ck�U��h O8T������������3����}4��B���R��U��5QuglJ������w��E �� !2H�����t+����XVL��q��=���������{��"����Nd����(��n)����� 9�Pk���[C��<��a�����c������bM�x��r��������z�������>D`_����Z��������% ��������FA��i��:�����#��6,����~������y0G�����������Y������/����7����-p������Wj����o]|^@&������Is��f��S��v�� �������������1'����*m��.e�$K?������;�������������Ē��e�� ���P�Ik�U�ǒ�����’��F�(В��F�����LF�����0�E�貒�@��`���!F���F��D�py]�����ƍ�@��`č����p�V�fV�`��P a�Э���n����F�lX��݊�0�]�`�������0�F��RG��JG��sE�pKG� tE��KG��tE���F�(X����F�HX��0�F�hX��p�F��X��p�F��X����F��X��0�F��X��0SG�Y��pSG�(Y���SG�HY���SG�hY��0TG��Y��pTG��Y���TG��Y���TG��Y��0UG�Z��pUG�(Z���UG�HZ���UG�hZ��0VG��Z��pVG��Z���VG��Z���VG��Z��0WG�[��pWG�([���WG�H[���WG�h[��0XG��[��pXG��[���XG��[���XG��[��0YG�\��pYG�(\���YG�H\���YG�h\��0ZG��\��pZG��\���ZG��\���ZG��\��0[G�]��p[G�(]���[G�H]���[G�h]��0\G��]��p\G��]���\G��]���\G��]��0]G�^���2F�(^��0fc�H^��p]G�h^���]G��^���]G��^��0^G��^����F��^��p^G�_���^G�(_���^G�H_��0_G�h_��p_G��_��p�F��_����F��_����F��_��p�F�`���_G�(`��pRG�(x��� F�SG���F������F�@f^�����@HG���F�pAJk�U�܊��rE���{E�0�F��{E�0@G���F�p@G���F��@G�0[F��@G�p�F�0AG� $F�pAG�p$F��AG��$F��AG�%F�0BG�Pb�pBG�`%F��BG�� b��BG��[F�0CG��Fa�pCG�p�`��CG���V�0(F�@|E�p/^���D��CG���E�0DG��(F�pDG��(F��DG��PF��DG�QF�0EG�0Ca�pEG�0�G��EG�`f`��EG�0�`�0FG� /Ik�UpFG� Bk�U�FG���]��FG�P�`���F���Jk�Up�F��iG���F���`�0�F���`��dY�(Y����F�PPJk�U��F� TJk�U��F��Jk�U��F� ~E�0-F��H�@e�� H�x���H��e��`H�p�F�H�p�F��H�h��@H��YF��H�� �`�����F��a�8?Jk�U�k�X?Jk�U�@Jk�Ux@Jk�U��W��Af���\�p�[��@Jk�U V@БF���T��T�`nX���[���G�(AJk�Uད�gG�p X���Y��pd�@�T���F��fT�Z��fT��,i� ,i��'d��vX���F��:����F�rZ���Ik�U0PJk�U`�����F� �a�CJk�U�k�(CJk�U`DJk�UHDJk�U��W��Af���\�p�[��DJk�U V@��T��T�`nX���[���G��DJk�U@Ԃ��=Jk�U@`G���������p X���Y��pd�@�T���F��fT�Z��fT��,i� ,i��'d��vX���F���F�p0�@��3�II�@�E�b�����JI���F��I�з���gF���V�(?:_�|�T t|j�� td���#|j���wxYw#t$rYdSwxYw|� |��} |j�|||��n�#t$r}||ucYd}~Sd}~wt$rB}||ur ||_Yd}~dSt|t��r|j|ur ||_Yd}~dS�d}~wt$r}||ur�||_Yd}~dSd}~wwxYw td���#|j���wxYw)*")|\w+���Rk�U@�Ok�U�C��@���JJk�U0��(JJk�U`KJk�UHKJk�U cg��Af���\�p�[��KJk�U WНNk�U�՜�`��0��������KJk�U�������mR�p X���Y���@�T�p�N�֜��������֜��������0ޜ���������� ���ۜ�֜��kR��kR��C���2��0���M�������������� �?�?�:�w� /� /�;� >� >�%�&I�J�J� J� � 0�� 3� �"2�3�3�3��"� �"/�0�0�0� � !� H�/� H��F�G�G� G����(�(� ���;�T�Y�d�j��;�;�=�=� � � ���s�{�3�)�)�&�)�)��'��i����'�1�1�&�1�1�1� � � � � � �C �#�D�M�#�D�M� �D�L��D�L�*�D� �#*�#;�#;�O�#L�#L�D� �+B�D� (�(<�D� %�# !�� � �"�"�"�D!� � ��C� @� @� @��7�e�n�,�,��!� ��+�+�-�-��� � ��'�'�'� 5� 26���1���.�.���5�5�5��w�u�~�u�|�&D�D�D��14�.�.�.�.�.�.����� 5���� � � ��*�*�*�-� @�U�F�7?����7P�7P�4�>D�4�;�?C�4�<�@�>�>��<@�8�?�?�?�?� @� @� @� @� @�����% @����F �O�O�L� )� )� )�'�D�O�� (�#�}�9�9��+�t�';��� � :� � �� �+�(�"�o�o�/�/�G��#�~�~�(�)s�t�t�t��%�%�'�'�'��� � �� � � � � � ��� � � ��� ���� ����� \w+}���Ik�Up�Gk�U �F�P�a��QJk�Ur�G�RJk�U@SJk�U(SJk�U�zT��l���\�p�[��SJk�UV@��T��T�P�T�H��G��SJk�U�Ԃ������nG�0MX���Y��LZ�@�T��F���F���F���`�����F�P�a��UJk�Ur�G��UJk�UWJk�U�VJk�U�zT��l���\�p�[�`WJk�UV@��T��T�P�T�H��G��WJk�U�Ԃ�����qG�0MX���Y��LZ�@�T���F���F���F� 'p/opt/alt/python311/lib64/python3.11/lib-dynload/select.cpython-311-x86_64-linux-gnu.sop��Jk�UPLHk�U��G����<3z���G����s�����G� {ْ�����G��y��=K���G���OX��{��G��M^^d5�F��G�������S��G��O.����d��G�=��mY�X��G����\5�!X���RЦ��Ph��G���9��#p��������K��G��8�ۄJ���G��F���D?���G�#m>t�e���G�&}�l4��۰�G��Ӭ".�޲prG��N�Ľ]��oG��ɏ�_`����G��%T7?�� ��G���8�Ej^��G�:��/�q�v��G�<�b�ez��G�@ѵو�����G�B �_�J�w��G���#������G�H��ʹˆ���G���d0W��G�N��q��o��G�Om>�!���G�� WN|[9��G�y��@hІ��G��rv���ٕ��G�ZE���Ӗ���G��������@��G�ړ^c\����G�ޮ��}e.��G��g���4��G���%,1���G��@wI����G�a�q�8hA��G�e/�9��5V��G��AO�C����G�jjIl�p��G�t$������G��%Ӯ�ܥ��G��O�ϛơ��G��v�e�ݺ\��G�����|�QK��|0�U��mdw�y�������������a��fk�U` fk�U�_split(text : string) -> [string] Split the text to wrap into indivisible chunks. Chunks are not quite the same as words; see _wrap_chunks() for full details. As an example, the text Look, goof-ball -- use the -b option! breaks into the following chunks: 'Look,', ' ', 'goof-', 'ball', ' ', '--', ' ', 'use', ' ', 'the', ' ', '-b', ' ', 'option!' if break_on_hyphens is True, or in: 'Look,', ' ', 'goof-ball', ' ', '--', ' ', 'use', ' ', 'the', ' ', '-b', ' ', option!' otherwise. � �M�������������!'� �G�X� &� �G�X� &� �G�X��)�)�+�+�1 /�}��=���d�]�]�(*�� � �%�G�X�!�(�(�'�8�)<�=�=�=��}�q�(�(�W�U�N�-K�-K�(�� �H�e�.@�$�-�P�P�P���g�%�%�"�/�/�1�1�G�G���s�+�+�-�#�G�G�$�l�l�n�n�G��>���t�^�^�(*�� � �%�G�X�!�(�(�'�8�)<�=�=�=��}�q�(�(�W�U�N�-K�-K�(�� �H�e�.@�$�-�P�P�P���w�&�&�#�0�0�2�2�H�H����,�,�/�%�H�H� &�}�}���H��>���t�^�^�(*�� � �%�G�X�!�(�(�'�8�)<�=�=�=��}�q�(�(�W�U�N�-K�-K�(�� �H�e�.@�$�-�P�P�P���v�%�%��2�~�~�#+���#&�>�#8�#8�#:�#:����w�&�&�#�0�0�2�2�H�H����,�,�/�%�H�H� &�}�}���H�c1 /�1 /�1 /�1 /�1 /�1 /�1 /�1 /�1 /�1 /�1 /����1 /�1 /�1 /�1 /�f�X��X��X�'� '�@XJk�UPLHk�U������5����������������*��������ZGP������������Bc��3��J����b��������������F��������_:����1C �� �� ��������'����-����A$������^����������H������������T������2��������]����6������������!U��O��0��������SRY��,������ ������D&���� E��%����K����������`X����"����;������?����������������)(������������>+��������������������@MV��I#=��������������<\.8����94����N������[����7�� ��W������Q/����L��ap����(F�X����(F���F��PF���F�QF�0rG��(F�0tG��(F��uG��PF�0vG�QF�pvG��(F��vG��(F��vG��PF�0wG�QF�pwG��(F��wG��(F��wG��PF�0xG�QF�pxG��(F��xG��(F��xG��PF�0yG�QF�pyG��(F��yG��(F��yG��PF�0zG�QF�pzG��(F��zG��(F��zG��PF�0{G�QF�p{G��(F��{G��(F��{G��PF�0|G�QF�p|G��(F��|G��(F��|G��PF�0}G�QF�p}G��(F��}G��(F��}G��PF�0~G�QF�p~G��(F��~G��(F��~G��PF�0G�QF�pG��(F��G��(F�0�G��PF�p�G�QF���G��(F���G��(F�0�G��PF�p�G�QF���G��(F���G��(F�0�G��PF�p�G�QF���G��(F���G��(F�0�G��PF�p�G�QF���G��(F���G��(F�0�G��PF�p�G�QF���G��(F���G��(F�0�G��PF�p�G�QF���G��(F���G��(F�0�G��PF�p�G�QF���G��(F���G��(F�0�G��PF�p�G�QF���G��(F���G��(F�0�G��PF�p�G�QF���G��(F���G��(F�0�G��PF�p�G�QF���G��(F���G��(F�0�G��PF�p�G�QF���G��(F���G��(F�0�G��PF�p�G�QF���G��(F���G��(F�0�G��PF�p�G�QF���G��(F���G��(F�0�G��PF�p�G�QF�� p�G����֞���0�G���?��0�G�������p�G� O�RĴ�p�G���6��� �p�G��C�.hp�G�����f��0�G���� O@�0�G�� �i#�-3p�G��S%tFp�G�ӡ�8�p�G��O�Bfi�0�G� !�jCy0�G��'�˩{�0�G�"�,MG��0�G����[�)�1p�G�)�{��nJ*0�G������r0�G������p�G�1a� "Y �0�G��y�� Ћp�G�7� V���0�G�6d�; �0�G�;p�����p�G�=Չ�ڒ�|0�G��5ݼ���`p�G�?o*t��-�0�G�@��m۪�$p�G��Hk��&��0�G�GN�aevp�G�H�R���O�p�G�̝��0:�[p�G�ϙ�����p�G�ρ ��np�G�Y��iښp�G��!�E�Cvpp�G��3���H0�G��{P W��Y0�G�w�p����Zp�G����e��__0�G��?Ұ1z�70�G���Jw�p�G�mo�xvB*0�G��3�Io�:0�G�􎔵8T����F����� _�0�G�t�q�Z��p�G��z&�/�ܓ��F�z#���-�0�G�:�HL󁄐�`���`i�P�a�}Jk�Ur�G�8}Jk�Up~Jk�UX~Jk�U�zT��l���\�p�[��~Jk�UV@0l���T��T�P�T�H��G�Jk�U�Ԃ�����@em�0MX���Y��LZ�@�T��i�0i�0i�`p�шk�U��������Ok�U����0���шk�U��������Ok�U����0���PZk�U�;=k�U`[Pk�U��Lk�U �F��a�x�Jk�U� l���Jk�UЂJk�U��Jk�U�zT��Af���\�p�[� �Jk�UV��T��T�P�T���G�h�Jk�UՂ�����pG���������p_d���Y���_�@�T�@�F���F���F���Gk�U�P ��� ���������d} ~ d Object for wrapping/filling text. The public interface consists of the wrap() and fill() methods; the other methods are just there for subclasses to override in order to tweak the default behaviour. If you want to completely replace the main wrapping algorithm, you'll probably have to override _wrap_chunks(). Several instance attributes control various aspects of wrapping: width (default: 70) the maximum width of wrapped lines (unless break_long_words is false) initial_indent (default: "") string that will be prepended to the first line of wrapped output. Counts towards the line's width. subsequent_indent (default: "") string that will be prepended to all lines save the first of wrapped output; also counts towards each line's width. expand_tabs (default: true) Expand tabs in input text to spaces before further processing. Each tab will become 0 .. 'tabsize' spaces, depending on its position in its line. If false, each tab is treated as a single character. tabsize (default: 8) Expand tabs in input text to 0 .. 'tabsize' spaces, unless 'expand_tabs' is false. replace_whitespace (default: true) Replace all whitespace characters in the input text by spaces after tab expansion. Note that if expand_tabs is false and replace_whitespace is true, every tab will be converted to a single space! fix_sentence_endings (default: false) Ensure that sentence-ending punctuation is always followed by two spaces. Off by default because the algorithm is (unavoidably) imperfect. break_long_words (default: true) Break words longer than 'width'. If false, those words will not be broken, and some lines might be longer than 'width'. break_on_hyphens (default: true) Allow breaking hyphenated words. If true, wrapping will occur preferably on whitespaces and right after hyphens part of compound words. drop_whitespace (default: true) Drop leading and trailing whitespace from lines. max_lines (default: None) Truncate wrapped lines. placeholder (default: ' [...]') Append to the last line of truncated text �`�����J�H�a�8��Jk�U�H���Jk�U��Jk�U؏Jk�U� X�}�J��Af���\�p�[�@�Jk�UV��K���T��T�``X���G���Jk�U����J�p_d���Y��pd�@�T� �K�p�J���K�p�J�ݏ�@� ��?k�U`g@k�U���A context manager that copies and restores the warnings filter upon exiting the context. The 'record' argument specifies whether warnings should be captured by a custom implementation of warnings.showwarning() and be appended to a list returned by the context manager. Otherwise None is returned by the context manager. The objects appended to the list are arguments whose attributes mirror the arguments to showwarning(). The 'module' argument is to specify an alternative module to the module named 'warnings' and imported under that name. This argument is only useful when testing the warnings module itself. If the 'action' argument is not None, the remaining arguments are passed to warnings.simplefilter() as if it were called immediately on entering the context. {�4P� �Bk�UpiIk�UPa�Hx����� ��_���F��[F�0�G��;F���Bk�U� ��g}|jdkrtd|jz���|j�h|jdkr|j}n|j}t |��t |j�����z|jkrtd���|���|�r�g}d}|r|j}n|j}|jt |��z }|j r#|d� ��dkr|r|d=|rNt |d��}||z|kr-|� |� ����||z }nn|�N|rSt |d��|kr:|� ||||��ttt |����}|j r;|r9|d� ��dkr|t |d��z}|d=|�r�|j�Wt |��dz|jks<|r4|j r`t |��dkrM|d� ��s3||kr-|� |d�|��z���n!|r�|d� ��ra|t |j��z|krF|� |j��|� |d�|��z��n�|t |d��z}|d=|��|rU|d���}t |��t |j��z|jkr||jz|d<n3|� ||j���z��n|���|S���M�������������" � � � � �D� �d�{�{��|�|�C��%�%�� �d�{�{����C��+�+���h�h��� �d�{�{�!�Z�Z��_�_�R�a�R�0���(�(������H��(� �(�(��b�1�1� �%�-�-�c�2�6�6� ��C�-�'�'���K��&��s�X�~�%� � � � �K�� .� .�D� ��� �������$�/�/�� � ��$���'��h�7�7�7��z�z�#�q�!�!�!�$�*�*�,�,��8�8�� ��L�� � � *� �3��>� )�K���� �T�2�2�� � ��$���(��x�8�8�8�!�Z�Z��Q�/�/�N�D�(�$�T�8�4�4�s�:�X�E� E� � L��#�#�H�d�3�3�D����d�?�?�,�T�8�<�<�D�+�D�(�;�;�;�#�z�z�#�q�1�1� ��f��<�<�>�>�X�-�-�,�T�8�<�<�s�B�V�K�K� �w����V[��mdw�y�C����G�0�G�0�E�p�G���D���E�����Ē�0Ē��Ȓ� ��� ��p��������G���G�0�G��݊�p*^�p�G���G�.��0,^�0I� >F�`Ґ�@���I���`�p/��P?F�01V��?F��)^�@���@��� ���p�G���F� �� L�����0�E��@I���G�@b��U��@h��0�G�8Ò������+^����p�G�`� �Yk�U kk�U�I�Hx���I���F��[F��^���^��P�H���d}75n;5��D�,|@}75n;5��D�|H5�|D]m�|�|}&|;5���|@r&|8|@r|}&5/ / .|@@D]�}���.|r -,|�}n&&n |r75n)5:(,|5,|�55��|S���Ik�U�oFk�U��x d0d̒��� ( # any whitespace [\ \ \ \ \ \ ]+ | # em-dash between words (?<=[\w!"\'&.,?]) -{2,} (?=\w) | # word, possibly hyphenated [^\ \ \ \ \ \ ]+? (?: # hyphenated word -(?: (?<=[^\d\W]{2}-) | (?<=[^\d\W]-[^\d\W]-)) (?= [^\d\W] -? [^\d\W]) | # end of word (?=[\ \ \ \ \ \ ]|\Z) | # em-dash (?<=[\w!"\'&.,?]) (?=-{2,}\w) ) )��-ak�U`�fk�U11/lib64/opt/alt/sqlite/usr/lib64A��Ik�Up�Vk�Utt,d|d z t | ��f|d z t | ��d zfd��V�| d d�D] }tt"d|df|dfd��V��!ttBd|df|dfd��V�dSded.N)��z<�0�U��mdw�yl������������O�O�O����������� $� $�*>� $� ?� ?�F� ���Z�s� -�F��H�H�H� ����i�g�l�G��I�I�I� � � � � �D� � �=� 9��}�H��x��.�.� 4�!��h�q�z�2�2�3�3�� 4� 4� 4� 4� 4� 4� 4� 4� 4� 4� 4���� 4� 4� 4� 4��!�H��s�y�1�4�8�8�F�� E� E�E���J��z� .�"�-� �(�E�K�%�)�,C�D�K� ��;�;��� 4� 4� 4�e�l�l�l�D� E� E� E� E�  E� E�� �5�5�5��x��{�1�Q�3�'� ��f� ��c�h�q�k�8�d�F�^�4�4�4�4�4�4�4�4�4����� �5�5�5��x��{� ��f� ��c�h�q�k�8�d�F�^�4�4�4�4�4�4�4�4�4����� ���� ��c�8�������������� ���� ��c� � � � � � � � � ����� ���� �o������� ������%��+�,�,�,� ��������p�F��1Hk�U@XJk�U��[ \f\t]*((\\\r?\n|\Z|#[^\r\n]*|((|RB|u|FR|f|F|rF|Rf|B|b|Fr|rb|rB|fr|r|R|BR|br|Rb|U|rf|fR|RF|Br|bR)'''|(|RB|u|FR|f|F|rF|Rf|B|b|Fr|rb|rB|fr|r|R|BR|br|Rb|U|rf|fR|RF|Br|bR)"""))|(([0-9](?:_?[0-9])*[jJ]|(([0-9](?:_?[0-9])*\.(?:[0-9](?:_?[0-9])*)?|\.[0-9](?:_?[0-9])*)([eE][-+]?[0-9](?:_?[0-9])*)?|[0-9](?:_?[0-9])*[eE][-+]?[0-9](?:_?[0-9])*)[jJ])|(([0-9](?:_?[0-9])*\.(?:[0-9](?:_?[0-9])*)?|\.[0-9](?:_?[0-9])*)([eE][-+]?[0-9](?:_?[0-9])*)?|[0-9](?:_?[0-9])*[eE][-+]?[0-9](?:_?[0-9])*)|(0[xX](?:_?[0-9a-fA-F])+|0[bB](?:_?[01])+|0[oO](?:_?[0-7])+|(?:0(?:_?0)*|[1-9](?:_?[0-9])*)))|(\r?\n|(\~|\}|\|=|\||\{|\^=|\^|\]|\[|@=|@|>>=|>>|>=|>|==|=|<=|<<=|<<|<|;|:=|:|/=|//=|//|/|\.\.\.|\.|\->|\-=|\-|,|\+=|\+|\*=|\*\*=|\*\*|\*|\)|\(|\&=|\&|%=|%|!=))|((|RB|u|FR|f|F|rF|Rf|B|b|Fr|rb|rB|fr|r|R|BR|br|Rb|U|rf|fR|RF|Br|bR)'[^\n'\\]*(?:\\.[^\n'\\]*)*('|\\\r?\n)|(|RB|u|FR|f|F|rF|Rf|B|b|Fr|rb|rB|fr|r|R|BR|br|Rb|U|rf|fR|RF|Br|bR)"[^\n"\\]*(?:\\.[^\n"\\]*)*("|\\\r?\n))|\w+)�������ui ͩ������ri ݩ������ui ݩ������ii ݩ��1! ,Ak�U0�Zk�U��Jk�U oDk�U����"#�#�D�#�8�i��H���G�X��H��c�G��� �{� "� "��H���(�F�F�B�?�?�?�?�?��I� �D�_� � �I��8�:�:�D�D��� � � ��D�D�D� ���� � ��;�;�x�(�(�D� �� ���c�$�i�i�S�� �? �� G� �!;�X�F�F�F��}�}�T�*�*�H�� �$�L�L��O�O�+��c����$�t��t�*�(<��$���h��o�?�?�?�?�?�$)�!������� �d�2�3�3�i�6�1�1�d�2�3�3�i�8�6K�6K�� �G�d�N�#�d�C��I�I�%6��B�B�B�B�B������!�D�.��#�d�?��� ��]�]�9�]�� ���F���)�)���9��#�#��a�K�F�F��#�Y�$�&�&�$�g�o��1�7�:�F�F��#�Y�$�&�&��F�F���q�����)�)��c�z�z���C�y�G�#�#���9��#�#�$(����J�$5�$5�f�$=�$=�M�#�G�]� �#�;��s�S��5G�5G�/G�(H�$�P�P�P�P�P��3�}�-�-�-�C���D����J� �#�;��s�4�y�y�(9�4�A�A�A�A�A����� �#�#����v�&�&�&����T�c�T� �T�1�I��c�{�D�Q�Q�Q�Q�Q��7�2�;�&�&���(�(�*�M�%�t�S�$�7�9�9�9�"�#�2�#�,�����T�3�K�$���d�K�K�K�K�K��7�2�;�&�&��� K� �!>��q� �J�J�J��I��C�i�i�"�;�/�/�5�5�d�C�@�@�K��L �(�-�-�a�0�0� ��s�#'��-�$���c�C�d���C�<�<��!%�e�C�i��$�u�+�w���x�'�'���^�^��� � ��%���#�F�E�4��t�D�D�D�D�D�D���&�&��!�|�|�'��E�4��t�D�D�D�D�D�D�'����d�D�I�I�I�I�I�I���^�^�-�u�~�d�3�3�3�3�3�#�G�U�D�$��E�E�E�E�E�E��m�+�+�&�w�u�~�6�6�G�&�}�}�T�3�7�7�H���&�l�l�1�o�o�� $�U�3�Y���'���t�d�C�[�$�O�O�O�O�O�O�$(�%�=��"&�u�v�v�,��#'�����.�.��B�Q�B�i�=�0�0��B�Q�B�i�=�0�0��R�y�D�(�(�$(�%�=��#+�7�;�;�w�+?�+?�,A�+2�;�;�u�Q�x�+@�+@�,A�+2�;�;�u�Q�x�+@�+@�#B�#B��-1����L�!���#'���'���t�T�4�H�H�H�H�H�H��)�)�+�+� A�#�D�%��t�T�B�B�B�B�B�B���_�_� !�I�I��%�'�'� �A� ��� �E�)�)� �A� ��#�B��t�T�4�@�@�@�@�@�@�� �D��I� �#�;��s�1�u� �t�=�=�=�=�=��q���]�C�i�i�c_�D�e�Y�r�]�&�0�0����9J�9J�9U�9U�VY�9Z�9Z�0����d�Q�h��I���%?�$��(�C�PY�N�N�]^�L^�A_�ac�d�d�d�d�d��!�"�"�+�>�>�����T�1�I��a�y�"�=�=�=�=�=�=� �I�r�D�!�9�t�Q�i�� <� <�<�<�<� ��@���@�^���^�0�F�#�� �@�b���F�PMF�p�F�p�F�p�Jk�Ud|K�dx}x}}d}d\}}d}dg} |�"|dkrd}tt|ddd��V�d} d} | } |��} n#t$rd} YnwxYw|�| �|��} |d z }dt | ��} } |r�| st d |���|�| ��}|rJ|�d��x} }tt|| d|�z|||f|| z��V�d\}}d}�n'|rN| d d�d kr@| dd�dkr2tt|| z||t | ��f|��V�d}d}��|| z}|| z}��|dk�r�|�s�| s�n�d}| | krO| | dkr|d z }n2| | dkr|tzd ztz}n| | dkrd}nn | d z } | | k�O| | kr�nd| | dvr�| | dkr]| | d�� d��}tt||| f|| t |��zf| ��V�| t |��z } tt| | d�|| f|t | ��f| ��V���4|| dkr;| �|��tt| d| �|df|| f| ��V�|| dkrL|| vrt!dd|| | f���| dd�} tt"d|| f|| f| ��V�|| dk�Ln| st d|df���d}| | k�r�t%t&���| | ��}|�r�|�d ��\}}||f||f|} }}||kr�[| ||�| |}}||vs|dkr(|dkr"|dkrtt*|||| ��V��n^|dvr>|dkrtt|||| ��V��n8tt,|||| ��V��n|dkr.|jd��rJ�tt|||| ��V��n�|t0vr�t%t2|��}|�| | ��}|r=|�d��} | || �}tt|||| f| ��V��np||f}| |d�}| }�ne|t4vs"|dd�t4vs|dd�t4vr�|ddkrz||f}t%t2�|��p?t2�|d ��pt2�|d����}| |d�d }}| }n�tt|||| ��V�n�|���rtt:|||| ��V�nc|dkrd }nZ|d vr|d z }n |d!vr|d z}tt<|||| ��V�n,tt| | || f|| d zf| ��V�| d z } | | k������| rr| ddvrh| ���� d��sAtt,d|d z t | ��f|d z t | ��d zfd��V�| d d�D] }tt"d|df|dfd��V��!ttBd|df|dfd��V�dS�p�@��T�KI���E�0b������JI��F��I�0�G��jF���Jk�UK�|�` t|j���d{V�� td���#|j����d{V��wxYw#t$rYdSwxYw|� |��} |j�|||���d{V��n�#t$r}||ucYd}~Sd}~wt$rI}||ur ||_Yd}~dSt|ttf��r|j |ur ||_Yd}~dS�d}~wt$r}||ur�||_Yd}~dSd}~wwxYw td���#|j����d{V��wxYw'���P�?k�U��Jk�U���L��&I�0�L����@�L�p�K�I���p�L�0�^�Zd�|�|j}|j5|���|j}|xjdz c_ |dz|jkr|���n|�|��||xjdzc_|���cddd��S#|xjdzc_|���wxYw#1swxYwY�p�M��C������������� B� B�D��D�z�z��/�/�D��4G�4G��!A�B�B�B�� �5�5�u�5�5�5� 5� 5� �#�:�L�L��L��,�,�~�t�5J�|�5J�T�5J�5J�B�O�O��� ��&�&�!2�B�7�7��O�� � � � � �(�.�.�0�0� � � ����� ���� �� +� +�D� � � �t�}�0�0�1B�B�G�G� H� H� H� �M�-�-�.A�3�5�5�I�I�M� �]� *�M� �]� *�M� �M�-�-�.A�3�5�5�I�I�M� �]� *�M� �]� *�M�M����?�+�+�+�/>�/D�/D�/F�/F� 6� 6� +�N�O� *�?� ;� ;� � �I�-�-�"*�?�";�";��"�D�&5�a�&8�O�(2�?�(C�(C�%� �H�,�,�"� � �"�k�1�1�#� � �#� �� 6��!�!�.�1�1�1��%�%�n�5�5�5�5��!�!�.�1�1�1��%�%�n�5�5�5�5��'�'� �6�6� � � 3�4� 3� ); $this->reset_insertion_mode_appropriately(); return $this->step( self::REPROCESS_CURRENT_NODE ); /* * > A start tag whose tag name is one of: "script", "template" * > An end tag whose tag name is "template" */ case '+SCRIPT': case '+TEMPLATE': case '-TEMPLATE': return $this->step_in_head(); } /* * > Anything else * > Parse error: ignore the token. */ return $this->step(); } /** * Parses next element in the 'in select in table' insertion mode. * * This internal function performs the 'in select in table' insertion mode * logic for the generalized WP_HTML_Processor::step() function. * * @since 6.7.0 * * @throws WP_HTML_Unsupported_Exception When encountering unsupported HTML input. * * @see https://html.spec.whatwg.org/#parsing-main-inselectintable * @see WP_HTML_Processor::step * * @return bool Whether an element was found. */ private function step_in_select_in_table(): bool { $token_name = $this->get_token_name(); $token_type = $this->get_token_type(); $op_sigil = '#tag' === $token_type ? ( parent::is_tag_closer() ? '-' : '+' ) : ''; $op = "{$op_sigil}{$token_name}"; switch ( $op ) { /* * > A start tag whose tag name is one of: "caption", "table", "tbody", "tfoot", "thead", "tr", "td", "th" */ case '+CAPTION': case '+TABLE': case '+TBODY': case '+TFOOT': case '+THEAD': case '+TR': case '+TD': case '+TH': // @todo Indicate a parse error once it's possible. $this->state->stack_of_open_elements->pop_until( 'SELECT' ); $this->reset_insertion_mode_appropriately(); return $this->step( self::REPROCESS_CURRENT_NODE ); /* * > An end tag whose tag name is one of: "caption", "table", "tbody", "tfoot", "thead", "tr", "td", "th" */ case '-CAPTION': case '-TABLE': case '-TBODY': case '-TFOOT': case '-THEAD': case '-TR': case '-TD': case '-TH': // @todo Indicate a parse error once it's possible. if ( ! $this->state->stack_of_open_elements->has_element_in_table_scope( $token_name ) ) { return $this->step(); } $this->state->stack_of_open_elements->pop_until( 'SELECT' ); $this->reset_insertion_mode_appropriately(); return $this->step( self::REPROCESS_CURRENT_NODE ); } /* * > Anything else */ return $this->step_in_select(); } /** * Parses next element in the 'in template' insertion mode. * * This internal function performs the 'in template' insertion mode * logic for the generalized WP_HTML_Processor::step() function. * * @since 6.7.0 Stub implementation. * * @throws WP_HTML_Unsupported_Exception When encountering unsupported HTML input. * * @see https://html.spec.whatwg.org/#parsing-main-intemplate * @see WP_HTML_Processor::step * * @return bool Whether an element was found. */ private function step_in_template(): bool { $token_name = $this->get_token_name(); $token_type = $this->get_token_type(); $is_closer = $this->is_tag_closer(); $op_sigil = '#tag' === $token_type ? ( $is_closer ? '-' : '+' ) : ''; $op = "{$op_sigil}{$token_name}"; switch ( $op ) { /* * > A character token * > A comment token * > A DOCTYPE token */ case '#text': case '#comment': case '#funky-comment': case '#presumptuous-tag': case 'html': return $this->step_in_body(); /* * > A start tag whose tag name is one of: "base", "basefont", "bgsound", "link", * > "meta", "noframes", "script", "style", "template", "title" * > An end tag whose tag name is "template" */ case '+BASE': case '+BASEFONT': case '+BGSOUND': case '+LINK': case '+META': case '+NOFRAMES': case '+SCRIPT': case '+STYLE': case '+TEMPLATE': case '+TITLE': case '-TEMPLATE': return $this->step_in_head(); /* * > A start tag whose tag name is one of: "caption", "colgroup", "tbody", "tfoot", "thead" */ case '+CAPTION': case '+COLGROUP': case '+TBODY': case '+TFOOT': case '+THEAD': array_pop( $this->state->stack_of_template_insertion_modes ); $this->state->stack_of_template_insertion_modes[] = WP_HTML_Processor_State::INSERTION_MODE_IN_TABLE; $this->state->insertion_mode = WP_HTML_Processor_State::INSERTION_MODE_IN_TABLE; return $this->step( self::REPROCESS_CURRENT_NODE ); /* * > A start tag whose tag name is "col" */ case '+COL': array_pop( $this->state->stack_of_template_insertion_modes ); $this->state->stack_of_template_insertion_modes[] = WP_HTML_Processor_State::INSERTION_MODE_IN_COLUMN_GROUP; $this->state->insertion_mode = WP_HTML_Processor_State::INSERTION_MODE_IN_COLUMN_GROUP; return $this->step( self::REPROCESS_CURRENT_NODE ); /* * > A start tag whose tag name is "tr" */ case '+TR': array_pop( $this->state->stack_of_template_insertion_modes ); $this->state->stack_of_template_insertion_modes[] = WP_HTML_Processor_State::INSERTION_MODE_IN_TABLE_BODY; $this->state->insertion_mode = WP_HTML_Processor_State::INSERTION_MODE_IN_TABLE_BODY; return $this->step( self::REPROCESS_CURRENT_NODE ); /* * > A start tag whose tag name is one of: "td", "th" */ case '+TD': case '+TH': array_pop( $this->state->stack_of_template_insertion_modes ); $this->state->stack_of_template_insertion_modes[] = WP_HTML_Processor_State::INSERTION_MODE_IN_ROW; $this->state->insertion_mode = WP_HTML_Processor_State::INSERTION_MODE_IN_ROW; return $this->step( self::REPROCESS_CURRENT_NODE ); } /* * > Any other start tag */ if ( ! $is_closer ) { array_pop( $this->state->stack_of_template_insertion_modes ); $this->state->stack_of_template_insertion_modes[] = WP_HTML_Processor_State::INSERTION_MODE_IN_BODY; $this->state->insertion_mode = WP_HTML_Processor_State::INSERTION_MODE_IN_BODY; return $this->step( self::REPROCESS_CURRENT_NODE ); } /* * > Any other end tag */ if ( $is_closer ) { // Parse error: ignore the token. return $this->step(); } /* * > An end-of-file token */ if ( ! $this->state->stack_of_open_elements->contains( 'TEMPLATE' ) ) { // Stop parsing. return false; } // @todo Indicate a parse error once it's possible. $this->state->stack_of_open_elements->pop_until( 'TEMPLATE' ); $this->state->active_formatting_elements->clear_up_to_last_marker(); array_pop( $this->state->stack_of_template_insertion_modes ); $this->reset_insertion_mode_appropriately(); return $this->step( self::REPROCESS_CURRENT_NODE ); } /** * Parses next element in the 'after body' insertion mode. * * This internal function performs the 'after body' insertion mode * logic for the generalized WP_HTML_Processor::step() function. * * @since 6.7.0 Stub implementation. * * @throws WP_HTML_Unsupported_Exception When encountering unsupported HTML input. * * @see https://html.spec.whatwg.org/#parsing-main-afterbody * @see WP_HTML_Processor::step * * @return bool Whether an element was found. */ private function step_after_body(): bool { $tag_name = $this->get_token_name(); $token_type = $this->get_token_type(); $op_sigil = '#tag' === $token_type ? ( $this->is_tag_closer() ? '-' : '+' ) : ''; $op = "{$op_sigil}{$tag_name}"; switch ( $op ) { /* * > A character token that is one of U+0009 CHARACTER TABULATION, U+000A LINE FEED (LF), * > U+000C FORM FEED (FF), U+000D CARRIAGE RETURN (CR), or U+0020 SPACE * * > Process the token using the rules for the "in body" insertion mode. */ case '#text': if ( parent::TEXT_IS_WHITESPACE === $this->text_node_classification ) { return $this->step_in_body(); } goto after_body_anything_else; break; /* * > A comment token */ case '#comment': case '#funky-comment': case '#presumptuous-tag': $this->bail( 'Content outside of BODY is unsupported.' ); break; /* * > A DOCTYPE token */ case 'html': // Parse error: ignore the token. return $this->step(); /* * > A start tag whose tag name is "html" */ case '+HTML': return $this->step_in_body(); /* * > An end tag whose tag name is "html" * * > If the parser was created as part of the HTML fragment parsing algorithm, * > this is a parse error; ignore the token. (fragment case) * > * > Otherwise, switch the insertion mode to "after after body". */ case '-HTML': if ( isset( $this->context_node ) ) { return $this->step(); } $this->state->insertion_mode = WP_HTML_Processor_State::INSERTION_MODE_AFTER_AFTER_BODY; /* * The HTML element is not removed from the stack of open elements. * Only internal state has changed, this does not qualify as a "step" * in terms of advancing through the document to another token. * Nothing has been pushed or popped. * Proceed to parse the next item. */ return $this->step(); } /* * > Parse error. Switch the insertion mode to "in body" and reprocess the token. */ after_body_anything_else: $this->state->insertion_mode = WP_HTML_Processor_State::INSERTION_MODE_IN_BODY; return $this->step( self::REPROCESS_CURRENT_NODE ); } /** * Parses next element in the 'in frameset' insertion mode. * * This internal function performs the 'in frameset' insertion mode * logic for the generalized WP_HTML_Processor::step() function. * * @since 6.7.0 Stub implementation. * * @throws WP_HTML_Unsupported_Exception When encountering unsupported HTML input. * * @see https://html.spec.whatwg.org/#parsing-main-inframeset * @see WP_HTML_Processor::step * * @return bool Whether an element was found. */ private function step_in_frameset(): bool { $tag_name = $this->get_token_name(); $token_type = $this->get_token_type(); $op_sigil = '#tag' === $token_type ? ( $this->is_tag_closer() ? '-' : '+' ) : ''; $op = "{$op_sigil}{$tag_name}"; switch ( $op ) { /* * > A character token that is one of U+0009 CHARACTER TABULATION, U+000A LINE FEED (LF), * > U+000C FORM FEED (FF), U+000D CARRIAGE RETURN (CR), or U+0020 SPACE * > * > Insert the character. * * This algorithm effectively strips non-whitespace characters from text and inserts * them under HTML. This is not supported at this time. */ case '#text': if ( parent::TEXT_IS_WHITESPACE === $this->text_node_classification ) { return $this->step_in_body(); } $this->bail( 'Non-whitespace characters cannot be handled in frameset.' ); break; /* * > A comment token */ case '#comment': case '#funky-comment': case '#presumptuous-tag': $this->insert_html_element( $this->state->current_token ); return true; /* * > A DOCTYPE token */ case 'html': // Parse error: ignore the token. return $this->step(); /* * > A start tag whose tag name is "html" */ case '+HTML': return $this->step_in_body(); /* * > A start tag whose tag name is "frameset" */ case '+FRAMESET': $this->insert_html_element( $this->state->current_token ); return true; /* * > An end tag whose tag name is "frameset" */ case '-FRAMESET': /* * > If the current node is the root html element, then this is a parse error; * > ignore the token. (fragment case) */ if ( $this->state->stack_of_open_elements->current_node_is( 'HTML' ) ) { return $this->step(); } /* * > Otherwise, pop the current node from the stack of open elements. */ $this->state->stack_of_open_elements->pop(); /* * > If the parser was not created as part of the HTML fragment parsing algorithm * > (fragment case), and the current node is no longer a frameset element, then * > switch the insertion mode to "after frameset". */ if ( ! isset( $this->context_node ) && ! $this->state->stack_of_open_elements->current_node_is( 'FRAMESET' ) ) { $this->state->insertion_mode = WP_HTML_Processor_State::INSERTION_MODE_AFTER_FRAMESET; } return true; /* * > A start tag whose tag name is "frame" * * > Insert an HTML element for the token. Immediately pop the * > current node off the stack of open elements. * > * > Acknowledge the token's self-closing flag, if it is set. */ case '+FRAME': $this->insert_html_element( $this->state->current_token ); $this->state->stack_of_open_elements->pop(); return true; /* * > A start tag whose tag name is "noframes" */ case '+NOFRAMES': return $this->step_in_head(); } // Parse error: ignore the token. return $this->step(); } /** * Parses next element in the 'after frameset' insertion mode. * * This internal function performs the 'after frameset' insertion mode * logic for the generalized WP_HTML_Processor::step() function. * * @since 6.7.0 Stub implementation. * * @throws WP_HTML_Unsupported_Exception When encountering unsupported HTML input. * * @see https://html.spec.whatwg.org/#parsing-main-afterframeset * @see WP_HTML_Processor::step * * @return bool Whether an element was found. */ private function step_after_frameset(): bool { $tag_name = $this->get_token_name(); $token_type = $this->get_token_type(); $op_sigil = '#tag' === $token_type ? ( $this->is_tag_closer() ? '-' : '+' ) : ''; $op = "{$op_sigil}{$tag_name}"; switch ( $op ) { /* * > A character token that is one of U+0009 CHARACTER TABULATION, U+000A LINE FEED (LF), * > U+000C FORM FEED (FF), U+000D CARRIAGE RETURN (CR), or U+0020 SPACE * > * > Insert the character. * * This algorithm effectively strips non-whitespace characters from text and inserts * them under HTML. This is not supported at this time. */ case '#text': if ( parent::TEXT_IS_WHITESPACE === $this->text_node_classification ) { return $this->step_in_body(); } $this->bail( 'Non-whitespace characters cannot be handled in after frameset' ); break; /* * > A comment token */ case '#comment': case '#funky-comment': case '#presumptuous-tag': $this->insert_html_element( $this->state->current_token ); return true; /* * > A DOCTYPE token */ case 'html': // Parse error: ignore the token. return $this->step(); /* * > A start tag whose tag name is "html" */ case '+HTML': return $this->step_in_body(); /* * > An end tag whose tag name is "html" */ case '-HTML': $this->state->insertion_mode = WP_HTML_Processor_State::INSERTION_MODE_AFTER_AFTER_FRAMESET; /* * The HTML element is not removed from the stack of open elements. * Only internal state has changed, this does not qualify as a "step" * in terms of advancing through the document to another token. * Nothing has been pushed or popped. * Proceed to parse the next item. */ return $this->step(); /* * > A start tag whose tag name is "noframes" */ case '+NOFRAMES': return $this->step_in_head(); } // Parse error: ignore the token. return $this->step(); } /** * Parses next element in the 'after after body' insertion mode. * * This internal function performs the 'after after body' insertion mode * logic for the generalized WP_HTML_Processor::step() function. * * @since 6.7.0 Stub implementation. * * @throws WP_HTML_Unsupported_Exception When encountering unsupported HTML input. * * @see https://html.spec.whatwg.org/#the-after-after-body-insertion-mode * @see WP_HTML_Processor::step * * @return bool Whether an element was found. */ private function step_after_after_body(): bool { $tag_name = $this->get_token_name(); $token_type = $this->get_token_type(); $op_sigil = '#tag' === $token_type ? ( $this->is_tag_closer() ? '-' : '+' ) : ''; $op = "{$op_sigil}{$tag_name}"; switch ( $op ) { /* * > A comment token */ case '#comment': case '#funky-comment': case '#presumptuous-tag': $this->bail( 'Content outside of HTML is unsupported.' ); break; /* * > A DOCTYPE token * > A start tag whose tag name is "html" * * > Process the token using the rules for the "in body" insertion mode. */ case 'html': case '+HTML': return $this->step_in_body(); /* * > A character token that is one of U+0009 CHARACTER TABULATION, U+000A LINE FEED (LF), * > U+000C FORM FEED (FF), U+000D CARRIAGE RETURN (CR), or U+0020 SPACE * > * > Process the token using the rules for the "in body" insertion mode. */ case '#text': if ( parent::TEXT_IS_WHITESPACE === $this->text_node_classification ) { return $this->step_in_body(); } goto after_after_body_anything_else; break; } /* * > Parse error. Switch the insertion mode to "in body" and reprocess the token. */ after_after_body_anything_else: $this->state->insertion_mode = WP_HTML_Processor_State::INSERTION_MODE_IN_BODY; return $this->step( self::REPROCESS_CURRENT_NODE ); } /** * Parses next element in the 'after after frameset' insertion mode. * * This internal function performs the 'after after frameset' insertion mode * logic for the generalized WP_HTML_Processor::step() function. * * @since 6.7.0 Stub implementation. * * @throws WP_HTML_Unsupported_Exception When encountering unsupported HTML input. * * @see https://html.spec.whatwg.org/#the-after-after-frameset-insertion-mode * @see WP_HTML_Processor::step * * @return bool Whether an element was found. */ private function step_after_after_frameset(): bool { $tag_name = $this->get_token_name(); $token_type = $this->get_token_type(); $op_sigil = '#tag' === $token_type ? ( $this->is_tag_closer() ? '-' : '+' ) : ''; $op = "{$op_sigil}{$tag_name}"; switch ( $op ) { /* * > A comment token */ case '#comment': case '#funky-comment': case '#presumptuous-tag': $this->bail( 'Content outside of HTML is unsupported.' ); break; /* * > A DOCTYPE token * > A start tag whose tag name is "html" * * > Process the token using the rules for the "in body" insertion mode. */ case 'html': case '+HTML': return $this->step_in_body(); /* * > A character token that is one of U+0009 CHARACTER TABULATION, U+000A LINE FEED (LF), * > U+000C FORM FEED (FF), U+000D CARRIAGE RETURN (CR), or U+0020 SPACE * > * > Process the token using the rules for the "in body" insertion mode. * * This algorithm effectively strips non-whitespace characters from text and inserts * them under HTML. This is not supported at this time. */ case '#text': if ( parent::TEXT_IS_WHITESPACE === $this->text_node_classification ) { return $this->step_in_body(); } $this->bail( 'Non-whitespace characters cannot be handled in after after frameset.' ); break; /* * > A start tag whose tag name is "noframes" */ case '+NOFRAMES': return $this->step_in_head(); } // Parse error: ignore the token. return $this->step(); } /** * Parses next element in the 'in foreign content' insertion mode. * * This internal function performs the 'in foreign content' insertion mode * logic for the generalized WP_HTML_Processor::step() function. * * @since 6.7.0 Stub implementation. * * @throws WP_HTML_Unsupported_Exception When encountering unsupported HTML input. * * @see https://html.spec.whatwg.org/#parsing-main-inforeign * @see WP_HTML_Processor::step * * @return bool Whether an element was found. */ private function step_in_foreign_content(): bool { $tag_name = $this->get_token_name(); $token_type = $this->get_token_type(); $op_sigil = '#tag' === $token_type ? ( $this->is_tag_closer() ? '-' : '+' ) : ''; $op = "{$op_sigil}{$tag_name}"; /* * > A start tag whose name is "font", if the token has any attributes named "color", "face", or "size" * * This section drawn out above the switch to more easily incorporate * the additional rules based on the presence of the attributes. */ if ( '+FONT' === $op && ( null !== $this->get_attribute( 'color' ) || null !== $this->get_attribute( 'face' ) || null !== $this->get_attribute( 'size' ) ) ) { $op = '+FONT with attributes'; } switch ( $op ) { case '#text': /* * > A character token that is U+0000 NULL * * This is handled by `get_modifiable_text()`. */ /* * Whitespace-only text does not affect the frameset-ok flag. * It is probably inter-element whitespace, but it may also * contain character references which decode only to whitespace. */ if ( parent::TEXT_IS_GENERIC === $this->text_node_classification ) { $this->state->frameset_ok = false; } $this->insert_foreign_element( $this->state->current_token, false ); return true; /* * CDATA sections are alternate wrappers for text content and therefore * ought to follow the same rules as text nodes. */ case '#cdata-section': /* * NULL bytes and whitespace do not change the frameset-ok flag. */ $current_token = $this->bookmarks[ $this->state->current_token->bookmark_name ]; $cdata_content_start = $current_token->start + 9; $cdata_content_length = $current_token->length - 12; if ( strspn( $this->html, "\0 \t\n\f\r", $cdata_content_start, $cdata_content_length ) !== $cdata_content_length ) { $this->state->frameset_ok = false; } $this->insert_foreign_element( $this->state->current_token, false ); return true; /* * > A comment token */ case '#comment': case '#funky-comment': case '#presumptuous-tag': $this->insert_foreign_element( $this->state->current_token, false ); return true; /* * > A DOCTYPE token */ case 'html': // Parse error: ignore the token. return $this->step(); /* * > A start tag whose tag name is "b", "big", "blockquote", "body", "br", "center", * > "code", "dd", "div", "dl", "dt", "em", "embed", "h1", "h2", "h3", "h4", "h5", * > "h6", "head", "hr", "i", "img", "li", "listing", "menu", "meta", "nobr", "ol", * > "p", "pre", "ruby", "s", "small", "span", "strong", "strike", "sub", "sup", * > "table", "tt", "u", "ul", "var" * * > A start tag whose name is "font", if the token has any attributes named "color", "face", or "size" * * > An end tag whose tag name is "br", "p" * * Closing BR tags are always reported by the Tag Processor as opening tags. */ case '+B': case '+BIG': case '+BLOCKQUOTE': case '+BODY': case '+BR': case '+CENTER': case '+CODE': case '+DD': case '+DIV': case '+DL': case '+DT': case '+EM': case '+EMBED': case '+H1': case '+H2': case '+H3': case '+H4': case '+H5': case '+H6': case '+HEAD': case '+HR': case '+I': case '+IMG': case '+LI': case '+LISTING': case '+MENU': case '+META': case '+NOBR': case '+OL': case '+P': case '+PRE': case '+RUBY': case '+S': case '+SMALL': case '+SPAN': case '+STRONG': case '+STRIKE': case '+SUB': case '+SUP': case '+TABLE': case '+TT': case '+U': case '+UL': case '+VAR': case '+FONT with attributes': case '-BR': case '-P': // @todo Indicate a parse error once it's possible. foreach ( $this->state->stack_of_open_elements->walk_up() as $current_node ) { if ( 'math' === $current_node->integration_node_type || 'html' === $current_node->integration_node_type || 'html' === $current_node->namespace ) { break; } $this->state->stack_of_open_elements->pop(); } goto in_foreign_content_process_in_current_insertion_mode; } /* * > Any other start tag */ if ( ! $this->is_tag_closer() ) { $this->insert_foreign_element( $this->state->current_token, false ); /* * > If the token has its self-closing flag set, then run * > the appropriate steps from the following list: * > * > ↪ the token's tag name is "script", and the new current node is in the SVG namespace * > Acknowledge the token's self-closing flag, and then act as * > described in the steps for a "script" end tag below. * > * > ↪ Otherwise * > Pop the current node off the stack of open elements and * > acknowledge the token's self-closing flag. * * Since the rules for SCRIPT below indicate to pop the element off of the stack of * open elements, which is the same for the Otherwise condition, there's no need to * separate these checks. The difference comes when a parser operates with the scripting * flag enabled, and executes the script, which this parser does not support. */ if ( $this->state->current_token->has_self_closing_flag ) { $this->state->stack_of_open_elements->pop(); } return true; } /* * > An end tag whose name is "script", if the current node is an SVG script element. */ if ( $this->is_tag_closer() && 'SCRIPT' === $this->state->current_token->node_name && 'svg' === $this->state->current_token->namespace ) { $this->state->stack_of_open_elements->pop(); return true; } /* * > Any other end tag */ if ( $this->is_tag_closer() ) { $node = $this->state->stack_of_open_elements->current_node(); if ( $tag_name !== $node->node_name ) { // @todo Indicate a parse error once it's possible. } in_foreign_content_end_tag_loop: if ( $node === $this->state->stack_of_open_elements->at( 1 ) ) { return true; } /* * > If node's tag name, converted to ASCII lowercase, is the same as the tag name * > of the token, pop elements from the stack of open elements until node has * > been popped from the stack, and then return. */ if ( 0 === strcasecmp( $node->node_name, $tag_name ) ) { foreach ( $this->state->stack_of_open_elements->walk_up() as $item ) { $this->state->stack_of_open_elements->pop(); if ( $node === $item ) { return true; } } } foreach ( $this->state->stack_of_open_elements->walk_up( $node ) as $item ) { $node = $item; break; } if ( 'html' !== $node->namespace ) { goto in_foreign_content_end_tag_loop; } in_foreign_content_process_in_current_insertion_mode: switch ( $this->state->insertion_mode ) { case WP_HTML_Processor_State::INSERTION_MODE_INITIAL: return $this->step_initial(); case WP_HTML_Processor_State::INSERTION_MODE_BEFORE_HTML: return $this->step_before_html(); case WP_HTML_Processor_State::INSERTION_MODE_BEFORE_HEAD: return $this->step_before_head(); case WP_HTML_Processor_State::INSERTION_MODE_IN_HEAD: return $this->step_in_head(); case WP_HTML_Processor_State::INSERTION_MODE_IN_HEAD_NOSCRIPT: return $this->step_in_head_noscript(); case WP_HTML_Processor_State::INSERTION_MODE_AFTER_HEAD: return $this->step_after_head(); case WP_HTML_Processor_State::INSERTION_MODE_IN_BODY: return $this->step_in_body(); case WP_HTML_Processor_State::INSERTION_MODE_IN_TABLE: return $this->step_in_table(); case WP_HTML_Processor_State::INSERTION_MODE_IN_TABLE_TEXT: return $this->step_in_table_text(); case WP_HTML_Processor_State::INSERTION_MODE_IN_CAPTION: return $this->step_in_caption(); case WP_HTML_Processor_State::INSERTION_MODE_IN_COLUMN_GROUP: return $this->step_in_column_group(); case WP_HTML_Processor_State::INSERTION_MODE_IN_TABLE_BODY: return $this->step_in_table_body(); case WP_HTML_Processor_State::INSERTION_MODE_IN_ROW: return $this->step_in_row(); case WP_HTML_Processor_State::INSERTION_MODE_IN_CELL: return $this->step_in_cell(); case WP_HTML_Processor_State::INSERTION_MODE_IN_SELECT: return $this->step_in_select(); case WP_HTML_Processor_State::INSERTION_MODE_IN_SELECT_IN_TABLE: return $this->step_in_select_in_table(); case WP_HTML_Processor_State::INSERTION_MODE_IN_TEMPLATE: return $this->step_in_template(); case WP_HTML_Processor_State::INSERTION_MODE_AFTER_BODY: return $this->step_after_body(); case WP_HTML_Processor_State::INSERTION_MODE_IN_FRAMESET: return $this->step_in_frameset(); case WP_HTML_Processor_State::INSERTION_MODE_AFTER_FRAMESET: return $this->step_after_frameset(); case WP_HTML_Processor_State::INSERTION_MODE_AFTER_AFTER_BODY: return $this->step_after_after_body(); case WP_HTML_Processor_State::INSERTION_MODE_AFTER_AFTER_FRAMESET: return $this->step_after_after_frameset(); // This should be unreachable but PHP doesn't have total type checking on switch. default: $this->bail( "Unaware of the requested parsing mode: '{$this->state->insertion_mode}'." ); } } $this->bail( 'Should not have been able to reach end of IN FOREIGN CONTENT processing. Check HTML API code.' ); // This unnecessary return prevents tools from inaccurately reporting type errors. return false; } /* * Internal helpers */ /** * Creates a new bookmark for the currently-matched token and returns the generated name. * * @since 6.4.0 * @since 6.5.0 Renamed from bookmark_tag() to bookmark_token(). * * @throws Exception When unable to allocate requested bookmark. * * @return string|false Name of created bookmark, or false if unable to create. */ private function bookmark_token() { if ( ! parent::set_bookmark( ++$this->bookmark_counter ) ) { $this->last_error = self::ERROR_EXCEEDED_MAX_BOOKMARKS; throw new Exception( 'could not allocate bookmark' ); } return "{$this->bookmark_counter}"; } /* * HTML semantic overrides for Tag Processor */ /** * Indicates the namespace of the current token, or "html" if there is none. * * @return string One of "html", "math", or "svg". */ public function get_namespace(): string { if ( ! isset( $this->current_element ) ) { return parent::get_namespace(); } return $this->current_element->token->namespace; } /** * Returns the uppercase name of the matched tag. * * The semantic rules for HTML specify that certain tags be reprocessed * with a different tag name. Because of this, the tag name presented * by the HTML Processor may differ from the one reported by the HTML * Tag Processor, which doesn't apply these semantic rules. * * Example: * * $processor = new WP_HTML_Tag_Processor( '
Test
' ); * $processor->next_tag() === true; * $processor->get_tag() === 'DIV'; * * $processor->next_tag() === false; * $processor->get_tag() === null; * * @since 6.4.0 * * @return string|null Name of currently matched tag in input HTML, or `null` if none found. */ public function get_tag(): ?string { if ( null !== $this->last_error ) { return null; } if ( $this->is_virtual() ) { return $this->current_element->token->node_name; } $tag_name = parent::get_tag(); /* * > A start tag whose tag name is "image" * > Change the token's tag name to "img" and reprocess it. (Don't ask.) */ return ( 'IMAGE' === $tag_name && 'html' === $this->get_namespace() ) ? 'IMG' : $tag_name; } /** * Indicates if the currently matched tag contains the self-closing flag. * * No HTML elements ought to have the self-closing flag and for those, the self-closing * flag will be ignored. For void elements this is benign because they "self close" * automatically. For non-void HTML elements though problems will appear if someone * intends to use a self-closing element in place of that element with an empty body. * For HTML foreign elements and custom elements the self-closing flag determines if * they self-close or not. * * This function does not determine if a tag is self-closing, * but only if the self-closing flag is present in the syntax. * * @since 6.6.0 Subclassed for the HTML Processor. * * @return bool Whether the currently matched tag contains the self-closing flag. */ public function has_self_closing_flag(): bool { return $this->is_virtual() ? false : parent::has_self_closing_flag(); } /** * Returns the node name represented by the token. * * This matches the DOM API value `nodeName`. Some values * are static, such as `#text` for a text node, while others * are dynamically generated from the token itself. * * Dynamic names: * - Uppercase tag name for tag matches. * - `html` for DOCTYPE declarations. * * Note that if the Tag Processor is not matched on a token * then this function will return `null`, either because it * hasn't yet found a token or because it reached the end * of the document without matching a token. * * @since 6.6.0 Subclassed for the HTML Processor. * * @return string|null Name of the matched token. */ public function get_token_name(): ?string { return $this->is_virtual() ? $this->current_element->token->node_name : parent::get_token_name(); } /** * Indicates the kind of matched token, if any. * * This differs from `get_token_name()` in that it always * returns a static string indicating the type, whereas * `get_token_name()` may return values derived from the * token itself, such as a tag name or processing * instruction tag. * * Possible values: * - `#tag` when matched on a tag. * - `#text` when matched on a text node. * - `#cdata-section` when matched on a CDATA node. * - `#comment` when matched on a comment. * - `#doctype` when matched on a DOCTYPE declaration. * - `#presumptuous-tag` when matched on an empty tag closer. * - `#funky-comment` when matched on a funky comment. * * @since 6.6.0 Subclassed for the HTML Processor. * * @return string|null What kind of token is matched, or null. */ public function get_token_type(): ?string { if ( $this->is_virtual() ) { /* * This logic comes from the Tag Processor. * * @todo It would be ideal not to repeat this here, but it's not clearly * better to allow passing a token name to `get_token_type()`. */ $node_name = $this->current_element->token->node_name; $starting_char = $node_name[0]; if ( 'A' <= $starting_char && 'Z' >= $starting_char ) { return '#tag'; } if ( 'html' === $node_name ) { return '#doctype'; } return $node_name; } return parent::get_token_type(); } /** * Returns the value of a requested attribute from a matched tag opener if that attribute exists. * * Example: * * $p = WP_HTML_Processor::create_fragment( '
Test
' ); * $p->next_token() === true; * $p->get_attribute( 'data-test-id' ) === '14'; * $p->get_attribute( 'enabled' ) === true; * $p->get_attribute( 'aria-label' ) === null; * * $p->next_tag() === false; * $p->get_attribute( 'class' ) === null; * * @since 6.6.0 Subclassed for HTML Processor. * * @param string $name Name of attribute whose value is requested. * @return string|true|null Value of attribute or `null` if not available. Boolean attributes return `true`. */ public function get_attribute( $name ) { return $this->is_virtual() ? null : parent::get_attribute( $name ); } /** * Updates or creates a new attribute on the currently matched tag with the passed value. * * For boolean attributes special handling is provided: * - When `true` is passed as the value, then only the attribute name is added to the tag. * - When `false` is passed, the attribute gets removed if it existed before. * * For string attributes, the value is escaped using the `esc_attr` function. * * @since 6.6.0 Subclassed for the HTML Processor. * * @param string $name The attribute name to target. * @param string|bool $value The new attribute value. * @return bool Whether an attribute value was set. */ public function set_attribute( $name, $value ): bool { return $this->is_virtual() ? false : parent::set_attribute( $name, $value ); } /** * Remove an attribute from the currently-matched tag. * * @since 6.6.0 Subclassed for HTML Processor. * * @param string $name The attribute name to remove. * @return bool Whether an attribute was removed. */ public function remove_attribute( $name ): bool { return $this->is_virtual() ? false : parent::remove_attribute( $name ); } /** * Gets lowercase names of all attributes matching a given prefix in the current tag. * * Note that matching is case-insensitive. This is in accordance with the spec: * * > There must never be two or more attributes on * > the same start tag whose names are an ASCII * > case-insensitive match for each other. * - HTML 5 spec * * Example: * * $p = new WP_HTML_Tag_Processor( '
Test
' ); * $p->next_tag( array( 'class_name' => 'test' ) ) === true; * $p->get_attribute_names_with_prefix( 'data-' ) === array( 'data-enabled', 'data-test-id' ); * * $p->next_tag() === false; * $p->get_attribute_names_with_prefix( 'data-' ) === null; * * @since 6.6.0 Subclassed for the HTML Processor. * * @see https://html.spec.whatwg.org/multipage/syntax.html#attributes-2:ascii-case-insensitive * * @param string $prefix Prefix of requested attribute names. * @return array|null List of attribute names, or `null` when no tag opener is matched. */ public function get_attribute_names_with_prefix( $prefix ): ?array { return $this->is_virtual() ? null : parent::get_attribute_names_with_prefix( $prefix ); } /** * Adds a new class name to the currently matched tag. * * @since 6.6.0 Subclassed for the HTML Processor. * * @param string $class_name The class name to add. * @return bool Whether the class was set to be added. */ public function add_class( $class_name ): bool { return $this->is_virtual() ? false : parent::add_class( $class_name ); } /** * Removes a class name from the currently matched tag. * * @since 6.6.0 Subclassed for the HTML Processor. * * @param string $class_name The class name to remove. * @return bool Whether the class was set to be removed. */ public function remove_class( $class_name ): bool { return $this->is_virtual() ? false : parent::remove_class( $class_name ); } /** * Returns if a matched tag contains the given ASCII case-insensitive class name. * * @since 6.6.0 Subclassed for the HTML Processor. * * @todo When reconstructing active formatting elements with attributes, find a way * to indicate if the virtually-reconstructed formatting elements contain the * wanted class name. * * @param string $wanted_class Look for this CSS class name, ASCII case-insensitive. * @return bool|null Whether the matched tag contains the given class name, or null if not matched. */ public function has_class( $wanted_class ): ?bool { return $this->is_virtual() ? null : parent::has_class( $wanted_class ); } /** * Generator for a foreach loop to step through each class name for the matched tag. * * This generator function is designed to be used inside a "foreach" loop. * * Example: * * $p = WP_HTML_Processor::create_fragment( "
" ); * $p->next_tag(); * foreach ( $p->class_list() as $class_name ) { * echo "{$class_name} "; * } * // Outputs: "free lang-en " * * @since 6.6.0 Subclassed for the HTML Processor. */ public function class_list() { return $this->is_virtual() ? null : parent::class_list(); } /** * Returns the modifiable text for a matched token, or an empty string. * * Modifiable text is text content that may be read and changed without * changing the HTML structure of the document around it. This includes * the contents of `#text` nodes in the HTML as well as the inner * contents of HTML comments, Processing Instructions, and others, even * though these nodes aren't part of a parsed DOM tree. They also contain * the contents of SCRIPT and STYLE tags, of TEXTAREA tags, and of any * other section in an HTML document which cannot contain HTML markup (DATA). * * If a token has no modifiable text then an empty string is returned to * avoid needless crashing or type errors. An empty string does not mean * that a token has modifiable text, and a token with modifiable text may * have an empty string (e.g. a comment with no contents). * * @since 6.6.0 Subclassed for the HTML Processor. * * @return string */ public function get_modifiable_text(): string { return $this->is_virtual() ? '' : parent::get_modifiable_text(); } /** * Indicates what kind of comment produced the comment node. * * Because there are different kinds of HTML syntax which produce * comments, the Tag Processor tracks and exposes this as a type * for the comment. Nominally only regular HTML comments exist as * they are commonly known, but a number of unrelated syntax errors * also produce comments. * * @see self::COMMENT_AS_ABRUPTLY_CLOSED_COMMENT * @see self::COMMENT_AS_CDATA_LOOKALIKE * @see self::COMMENT_AS_INVALID_HTML * @see self::COMMENT_AS_HTML_COMMENT * @see self::COMMENT_AS_PI_NODE_LOOKALIKE * * @since 6.6.0 Subclassed for the HTML Processor. * * @return string|null */ public function get_comment_type(): ?string { return $this->is_virtual() ? null : parent::get_comment_type(); } /** * Removes a bookmark that is no longer needed. * * Releasing a bookmark frees up the small * performance overhead it requires. * * @since 6.4.0 * * @param string $bookmark_name Name of the bookmark to remove. * @return bool Whether the bookmark already existed before removal. */ public function release_bookmark( $bookmark_name ): bool { return parent::release_bookmark( "_{$bookmark_name}" ); } /** * Moves the internal cursor in the HTML Processor to a given bookmark's location. * * Be careful! Seeking backwards to a previous location resets the parser to the * start of the document and reparses the entire contents up until it finds the * sought-after bookmarked location. * * In order to prevent accidental infinite loops, there's a * maximum limit on the number of times seek() can be called. * * @throws Exception When unable to allocate a bookmark for the next token in the input HTML document. * * @since 6.4.0 * * @param string $bookmark_name Jump to the place in the document identified by this bookmark name. * @return bool Whether the internal cursor was successfully moved to the bookmark's location. */ public function seek( $bookmark_name ): bool { // Flush any pending updates to the document before beginning. $this->get_updated_html(); $actual_bookmark_name = "_{$bookmark_name}"; $processor_started_at = $this->state->current_token ? $this->bookmarks[ $this->state->current_token->bookmark_name ]->start : 0; $bookmark_starts_at = $this->bookmarks[ $actual_bookmark_name ]->start; $direction = $bookmark_starts_at > $processor_started_at ? 'forward' : 'backward'; /* * If seeking backwards, it's possible that the sought-after bookmark exists within an element * which has been closed before the current cursor; in other words, it has already been removed * from the stack of open elements. This means that it's insufficient to simply pop off elements * from the stack of open elements which appear after the bookmarked location and then jump to * that location, as the elements which were open before won't be re-opened. * * In order to maintain consistency, the HTML Processor rewinds to the start of the document * and reparses everything until it finds the sought-after bookmark. * * There are potentially better ways to do this: cache the parser state for each bookmark and * restore it when seeking; store an immutable and idempotent register of where elements open * and close. * * If caching the parser state it will be essential to properly maintain the cached stack of * open elements and active formatting elements when modifying the document. This could be a * tedious and time-consuming process as well, and so for now will not be performed. * * It may be possible to track bookmarks for where elements open and close, and in doing so * be able to quickly recalculate breadcrumbs for any element in the document. It may even * be possible to remove the stack of open elements and compute it on the fly this way. * If doing this, the parser would need to track the opening and closing locations for all * tokens in the breadcrumb path for any and all bookmarks. By utilizing bookmarks themselves * this list could be automatically maintained while modifying the document. Finding the * breadcrumbs would then amount to traversing that list from the start until the token * being inspected. Once an element closes, if there are no bookmarks pointing to locations * within that element, then all of these locations may be forgotten to save on memory use * and computation time. */ if ( 'backward' === $direction ) { /* * When moving backward, stateful stacks should be cleared. */ foreach ( $this->state->stack_of_open_elements->walk_up() as $item ) { $this->state->stack_of_open_elements->remove_node( $item ); } foreach ( $this->state->active_formatting_elements->walk_up() as $item ) { $this->state->active_formatting_elements->remove_node( $item ); } /* * **After** clearing stacks, more processor state can be reset. * This must be done after clearing the stack because those stacks generate events that * would appear on a subsequent call to `next_token()`. */ $this->state->frameset_ok = true; $this->state->stack_of_template_insertion_modes = array(); $this->state->head_element = null; $this->state->form_element = null; $this->state->current_token = null; $this->current_element = null; $this->element_queue = array(); /* * The absence of a context node indicates a full parse. * The presence of a context node indicates a fragment parser. */ if ( null === $this->context_node ) { $this->change_parsing_namespace( 'html' ); $this->state->insertion_mode = WP_HTML_Processor_State::INSERTION_MODE_INITIAL; $this->breadcrumbs = array(); $this->bookmarks['initial'] = new WP_HTML_Span( 0, 0 ); parent::seek( 'initial' ); unset( $this->bookmarks['initial'] ); } else { /* * Push the root-node (HTML) back onto the stack of open elements. * * Fragment parsers require this extra bit of setup. * It's handled in full parsers by advancing the processor state. */ $this->state->stack_of_open_elements->push( new WP_HTML_Token( 'root-node', 'HTML', false ) ); $this->change_parsing_namespace( $this->context_node->integration_node_type ? 'html' : $this->context_node->namespace ); if ( 'TEMPLATE' === $this->context_node->node_name ) { $this->state->stack_of_template_insertion_modes[] = WP_HTML_Processor_State::INSERTION_MODE_IN_TEMPLATE; } $this->reset_insertion_mode_appropriately(); $this->breadcrumbs = array_slice( $this->breadcrumbs, 0, 2 ); parent::seek( $this->context_node->bookmark_name ); } } /* * Here, the processor moves forward through the document until it matches the bookmark. * do-while is used here because the processor is expected to already be stopped on * a token than may match the bookmarked location. */ do { /* * The processor will stop on virtual tokens, but bookmarks may not be set on them. * They should not be matched when seeking a bookmark, skip them. */ if ( $this->is_virtual() ) { continue; } if ( $bookmark_starts_at === $this->bookmarks[ $this->state->current_token->bookmark_name ]->start ) { return true; } } while ( $this->next_token() ); return false; } /** * Sets a bookmark in the HTML document. * * Bookmarks represent specific places or tokens in the HTML * document, such as a tag opener or closer. When applying * edits to a document, such as setting an attribute, the * text offsets of that token may shift; the bookmark is * kept updated with those shifts and remains stable unless * the entire span of text in which the token sits is removed. * * Release bookmarks when they are no longer needed. * * Example: * *

Surprising fact you may not know!

* ^ ^ * \-|-- this `H2` opener bookmark tracks the token * *

Surprising fact you may no… * ^ ^ * \-|-- it shifts with edits * * Bookmarks provide the ability to seek to a previously-scanned * place in the HTML document. This avoids the need to re-scan * the entire document. * * Example: * *
  • One
  • Two
  • Three
* ^^^^ * want to note this last item * * $p = new WP_HTML_Tag_Processor( $html ); * $in_list = false; * while ( $p->next_tag( array( 'tag_closers' => $in_list ? 'visit' : 'skip' ) ) ) { * if ( 'UL' === $p->get_tag() ) { * if ( $p->is_tag_closer() ) { * $in_list = false; * $p->set_bookmark( 'resume' ); * if ( $p->seek( 'last-li' ) ) { * $p->add_class( 'last-li' ); * } * $p->seek( 'resume' ); * $p->release_bookmark( 'last-li' ); * $p->release_bookmark( 'resume' ); * } else { * $in_list = true; * } * } * * if ( 'LI' === $p->get_tag() ) { * $p->set_bookmark( 'last-li' ); * } * } * * Bookmarks intentionally hide the internal string offsets * to which they refer. They are maintained internally as * updates are applied to the HTML document and therefore * retain their "position" - the location to which they * originally pointed. The inability to use bookmarks with * functions like `substr` is therefore intentional to guard * against accidentally breaking the HTML. * * Because bookmarks allocate memory and require processing * for every applied update, they are limited and require * a name. They should not be created with programmatically-made * names, such as "li_{$index}" with some loop. As a general * rule they should only be created with string-literal names * like "start-of-section" or "last-paragraph". * * Bookmarks are a powerful tool to enable complicated behavior. * Consider double-checking that you need this tool if you are * reaching for it, as inappropriate use could lead to broken * HTML structure or unwanted processing overhead. * * Bookmarks cannot be set on tokens that do no appear in the original * HTML text. For example, the HTML `
` stops at tags `TABLE`, * `TBODY`, `TR`, and `TD`. The `TBODY` and `TR` tags do not appear in * the original HTML and cannot be used as bookmarks. * * @since 6.4.0 * * @param string $bookmark_name Identifies this particular bookmark. * @return bool Whether the bookmark was successfully created. */ public function set_bookmark( $bookmark_name ): bool { if ( $this->is_virtual() ) { _doing_it_wrong( __METHOD__, __( 'Cannot set bookmarks on tokens that do no appear in the original HTML text.' ), '6.8.0' ); return false; } return parent::set_bookmark( "_{$bookmark_name}" ); } /** * Checks whether a bookmark with the given name exists. * * @since 6.5.0 * * @param string $bookmark_name Name to identify a bookmark that potentially exists. * @return bool Whether that bookmark exists. */ public function has_bookmark( $bookmark_name ): bool { return parent::has_bookmark( "_{$bookmark_name}" ); } /* * HTML Parsing Algorithms */ /** * Closes a P element. * * @since 6.4.0 * * @throws WP_HTML_Unsupported_Exception When encountering unsupported HTML input. * * @see https://html.spec.whatwg.org/#close-a-p-element */ private function close_a_p_element(): void { $this->generate_implied_end_tags( 'P' ); $this->state->stack_of_open_elements->pop_until( 'P' ); } /** * Closes elements that have implied end tags. * * @since 6.4.0 * @since 6.7.0 Full spec support. * * @see https://html.spec.whatwg.org/#generate-implied-end-tags * * @param string|null $except_for_this_element Perform as if this element doesn't exist in the stack of open elements. */ private function generate_implied_end_tags( ?string $except_for_this_element = null ): void { $elements_with_implied_end_tags = array( 'DD', 'DT', 'LI', 'OPTGROUP', 'OPTION', 'P', 'RB', 'RP', 'RT', 'RTC', ); $no_exclusions = ! isset( $except_for_this_element ); while ( ( $no_exclusions || ! $this->state->stack_of_open_elements->current_node_is( $except_for_this_element ) ) && in_array( $this->state->stack_of_open_elements->current_node()->node_name, $elements_with_implied_end_tags, true ) ) { $this->state->stack_of_open_elements->pop(); } } /** * Closes elements that have implied end tags, thoroughly. * * See the HTML specification for an explanation why this is * different from generating end tags in the normal sense. * * @since 6.4.0 * @since 6.7.0 Full spec support. * * @see WP_HTML_Processor::generate_implied_end_tags * @see https://html.spec.whatwg.org/#generate-implied-end-tags */ private function generate_implied_end_tags_thoroughly(): void { $elements_with_implied_end_tags = array( 'CAPTION', 'COLGROUP', 'DD', 'DT', 'LI', 'OPTGROUP', 'OPTION', 'P', 'RB', 'RP', 'RT', 'RTC', 'TBODY', 'TD', 'TFOOT', 'TH', 'THEAD', 'TR', ); while ( in_array( $this->state->stack_of_open_elements->current_node()->node_name, $elements_with_implied_end_tags, true ) ) { $this->state->stack_of_open_elements->pop(); } } /** * Returns the adjusted current node. * * > The adjusted current node is the context element if the parser was created as * > part of the HTML fragment parsing algorithm and the stack of open elements * > has only one element in it (fragment case); otherwise, the adjusted current * > node is the current node. * * @see https://html.spec.whatwg.org/#adjusted-current-node * * @since 6.7.0 * * @return WP_HTML_Token|null The adjusted current node. */ private function get_adjusted_current_node(): ?WP_HTML_Token { if ( isset( $this->context_node ) && 1 === $this->state->stack_of_open_elements->count() ) { return $this->context_node; } return $this->state->stack_of_open_elements->current_node(); } /** * Reconstructs the active formatting elements. * * > This has the effect of reopening all the formatting elements that were opened * > in the current body, cell, or caption (whichever is youngest) that haven't * > been explicitly closed. * * @since 6.4.0 * * @throws WP_HTML_Unsupported_Exception When encountering unsupported HTML input. * * @see https://html.spec.whatwg.org/#reconstruct-the-active-formatting-elements * * @return bool Whether any formatting elements needed to be reconstructed. */ private function reconstruct_active_formatting_elements(): bool { /* * > If there are no entries in the list of active formatting elements, then there is nothing * > to reconstruct; stop this algorithm. */ if ( 0 === $this->state->active_formatting_elements->count() ) { return false; } $last_entry = $this->state->active_formatting_elements->current_node(); if ( /* * > If the last (most recently added) entry in the list of active formatting elements is a marker; * > stop this algorithm. */ 'marker' === $last_entry->node_name || /* * > If the last (most recently added) entry in the list of active formatting elements is an * > element that is in the stack of open elements, then there is nothing to reconstruct; * > stop this algorithm. */ $this->state->stack_of_open_elements->contains_node( $last_entry ) ) { return false; } $this->bail( 'Cannot reconstruct active formatting elements when advancing and rewinding is required.' ); } /** * Runs the reset the insertion mode appropriately algorithm. * * @since 6.7.0 * * @see https://html.spec.whatwg.org/multipage/parsing.html#reset-the-insertion-mode-appropriately */ private function reset_insertion_mode_appropriately(): void { // Set the first node. $first_node = null; foreach ( $this->state->stack_of_open_elements->walk_down() as $first_node ) { break; } /* * > 1. Let _last_ be false. */ $last = false; foreach ( $this->state->stack_of_open_elements->walk_up() as $node ) { /* * > 2. Let _node_ be the last node in the stack of open elements. * > 3. _Loop_: If _node_ is the first node in the stack of open elements, then set _last_ * > to true, and, if the parser was created as part of the HTML fragment parsing * > algorithm (fragment case), set node to the context element passed to * > that algorithm. * > … */ if ( $node === $first_node ) { $last = true; if ( isset( $this->context_node ) ) { $node = $this->context_node; } } // All of the following rules are for matching HTML elements. if ( 'html' !== $node->namespace ) { continue; } switch ( $node->node_name ) { /* * > 4. If node is a `select` element, run these substeps: * > 1. If _last_ is true, jump to the step below labeled done. * > 2. Let _ancestor_ be _node_. * > 3. _Loop_: If _ancestor_ is the first node in the stack of open elements, * > jump to the step below labeled done. * > 4. Let ancestor be the node before ancestor in the stack of open elements. * > … * > 7. Jump back to the step labeled _loop_. * > 8. _Done_: Switch the insertion mode to "in select" and return. */ case 'SELECT': if ( ! $last ) { foreach ( $this->state->stack_of_open_elements->walk_up( $node ) as $ancestor ) { if ( 'html' !== $ancestor->namespace ) { continue; } switch ( $ancestor->node_name ) { /* * > 5. If _ancestor_ is a `template` node, jump to the step below * > labeled _done_. */ case 'TEMPLATE': break 2; /* * > 6. If _ancestor_ is a `table` node, switch the insertion mode to * > "in select in table" and return. */ case 'TABLE': $this->state->insertion_mode = WP_HTML_Processor_State::INSERTION_MODE_IN_SELECT_IN_TABLE; return; } } } $this->state->insertion_mode = WP_HTML_Processor_State::INSERTION_MODE_IN_SELECT; return; /* * > 5. If _node_ is a `td` or `th` element and _last_ is false, then switch the * > insertion mode to "in cell" and return. */ case 'TD': case 'TH': if ( ! $last ) { $this->state->insertion_mode = WP_HTML_Processor_State::INSERTION_MODE_IN_CELL; return; } break; /* * > 6. If _node_ is a `tr` element, then switch the insertion mode to "in row" * > and return. */ case 'TR': $this->state->insertion_mode = WP_HTML_Processor_State::INSERTION_MODE_IN_ROW; return; /* * > 7. If _node_ is a `tbody`, `thead`, or `tfoot` element, then switch the * > insertion mode to "in table body" and return. */ case 'TBODY': case 'THEAD': case 'TFOOT': $this->state->insertion_mode = WP_HTML_Processor_State::INSERTION_MODE_IN_TABLE_BODY; return; /* * > 8. If _node_ is a `caption` element, then switch the insertion mode to * > "in caption" and return. */ case 'CAPTION': $this->state->insertion_mode = WP_HTML_Processor_State::INSERTION_MODE_IN_CAPTION; return; /* * > 9. If _node_ is a `colgroup` element, then switch the insertion mode to * > "in column group" and return. */ case 'COLGROUP': $this->state->insertion_mode = WP_HTML_Processor_State::INSERTION_MODE_IN_COLUMN_GROUP; return; /* * > 10. If _node_ is a `table` element, then switch the insertion mode to * > "in table" and return. */ case 'TABLE': $this->state->insertion_mode = WP_HTML_Processor_State::INSERTION_MODE_IN_TABLE; return; /* * > 11. If _node_ is a `template` element, then switch the insertion mode to the * > current template insertion mode and return. */ case 'TEMPLATE': $this->state->insertion_mode = end( $this->state->stack_of_template_insertion_modes ); return; /* * > 12. If _node_ is a `head` element and _last_ is false, then switch the * > insertion mode to "in head" and return. */ case 'HEAD': if ( ! $last ) { $this->state->insertion_mode = WP_HTML_Processor_State::INSERTION_MODE_IN_HEAD; return; } break; /* * > 13. If _node_ is a `body` element, then switch the insertion mode to "in body" * > and return. */ case 'BODY': $this->state->insertion_mode = WP_HTML_Processor_State::INSERTION_MODE_IN_BODY; return; /* * > 14. If _node_ is a `frameset` element, then switch the insertion mode to * > "in frameset" and return. (fragment case) */ case 'FRAMESET': $this->state->insertion_mode = WP_HTML_Processor_State::INSERTION_MODE_IN_FRAMESET; return; /* * > 15. If _node_ is an `html` element, run these substeps: * > 1. If the head element pointer is null, switch the insertion mode to * > "before head" and return. (fragment case) * > 2. Otherwise, the head element pointer is not null, switch the insertion * > mode to "after head" and return. */ case 'HTML': $this->state->insertion_mode = isset( $this->state->head_element ) ? WP_HTML_Processor_State::INSERTION_MODE_AFTER_HEAD : WP_HTML_Processor_State::INSERTION_MODE_BEFORE_HEAD; return; } } /* * > 16. If _last_ is true, then switch the insertion mode to "in body" * > and return. (fragment case) * * This is only reachable if `$last` is true, as per the fragment parsing case. */ $this->state->insertion_mode = WP_HTML_Processor_State::INSERTION_MODE_IN_BODY; } /** * Runs the adoption agency algorithm. * * @since 6.4.0 * * @throws WP_HTML_Unsupported_Exception When encountering unsupported HTML input. * * @see https://html.spec.whatwg.org/#adoption-agency-algorithm */ private function run_adoption_agency_algorithm(): void { $budget = 1000; $subject = $this->get_tag(); $current_node = $this->state->stack_of_open_elements->current_node(); if ( // > If the current node is an HTML element whose tag name is subject $current_node && $subject === $current_node->node_name && // > the current node is not in the list of active formatting elements ! $this->state->active_formatting_elements->contains_node( $current_node ) ) { $this->state->stack_of_open_elements->pop(); return; } $outer_loop_counter = 0; while ( $budget-- > 0 ) { if ( $outer_loop_counter++ >= 8 ) { return; } /* * > Let formatting element be the last element in the list of active formatting elements that: * > - is between the end of the list and the last marker in the list, * > if any, or the start of the list otherwise, * > - and has the tag name subject. */ $formatting_element = null; foreach ( $this->state->active_formatting_elements->walk_up() as $item ) { if ( 'marker' === $item->node_name ) { break; } if ( $subject === $item->node_name ) { $formatting_element = $item; break; } } // > If there is no such element, then return and instead act as described in the "any other end tag" entry above. if ( null === $formatting_element ) { $this->bail( 'Cannot run adoption agency when "any other end tag" is required.' ); } // > If formatting element is not in the stack of open elements, then this is a parse error; remove the element from the list, and return. if ( ! $this->state->stack_of_open_elements->contains_node( $formatting_element ) ) { $this->state->active_formatting_elements->remove_node( $formatting_element ); return; } // > If formatting element is in the stack of open elements, but the element is not in scope, then this is a parse error; return. if ( ! $this->state->stack_of_open_elements->has_element_in_scope( $formatting_element->node_name ) ) { return; } /* * > Let furthest block be the topmost node in the stack of open elements that is lower in the stack * > than formatting element, and is an element in the special category. There might not be one. */ $is_above_formatting_element = true; $furthest_block = null; foreach ( $this->state->stack_of_open_elements->walk_down() as $item ) { if ( $is_above_formatting_element && $formatting_element->bookmark_name !== $item->bookmark_name ) { continue; } if ( $is_above_formatting_element ) { $is_above_formatting_element = false; continue; } if ( self::is_special( $item ) ) { $furthest_block = $item; break; } } /* * > If there is no furthest block, then the UA must first pop all the nodes from the bottom of the * > stack of open elements, from the current node up to and including formatting element, then * > remove formatting element from the list of active formatting elements, and finally return. */ if ( null === $furthest_block ) { foreach ( $this->state->stack_of_open_elements->walk_up() as $item ) { $this->state->stack_of_open_elements->pop(); if ( $formatting_element->bookmark_name === $item->bookmark_name ) { $this->state->active_formatting_elements->remove_node( $formatting_element ); return; } } } $this->bail( 'Cannot extract common ancestor in adoption agency algorithm.' ); } $this->bail( 'Cannot run adoption agency when looping required.' ); } /** * Runs the "close the cell" algorithm. * * > Where the steps above say to close the cell, they mean to run the following algorithm: * > 1. Generate implied end tags. * > 2. If the current node is not now a td element or a th element, then this is a parse error. * > 3. Pop elements from the stack of open elements stack until a td element or a th element has been popped from the stack. * > 4. Clear the list of active formatting elements up to the last marker. * > 5. Switch the insertion mode to "in row". * * @see https://html.spec.whatwg.org/multipage/parsing.html#close-the-cell * * @since 6.7.0 */ private function close_cell(): void { $this->generate_implied_end_tags(); // @todo Parse error if the current node is a "td" or "th" element. foreach ( $this->state->stack_of_open_elements->walk_up() as $element ) { $this->state->stack_of_open_elements->pop(); if ( 'TD' === $element->node_name || 'TH' === $element->node_name ) { break; } } $this->state->active_formatting_elements->clear_up_to_last_marker(); $this->state->insertion_mode = WP_HTML_Processor_State::INSERTION_MODE_IN_ROW; } /** * Inserts an HTML element on the stack of open elements. * * @since 6.4.0 * * @see https://html.spec.whatwg.org/#insert-a-foreign-element * * @param WP_HTML_Token $token Name of bookmark pointing to element in original input HTML. */ private function insert_html_element( WP_HTML_Token $token ): void { $this->state->stack_of_open_elements->push( $token ); } /** * Inserts a foreign element on to the stack of open elements. * * @since 6.7.0 * * @see https://html.spec.whatwg.org/#insert-a-foreign-element * * @param WP_HTML_Token $token Insert this token. The token's namespace and * insertion point will be updated correctly. * @param bool $only_add_to_element_stack Whether to skip the "insert an element at the adjusted * insertion location" algorithm when adding this element. */ private function insert_foreign_element( WP_HTML_Token $token, bool $only_add_to_element_stack ): void { $adjusted_current_node = $this->get_adjusted_current_node(); $token->namespace = $adjusted_current_node ? $adjusted_current_node->namespace : 'html'; if ( $this->is_mathml_integration_point() ) { $token->integration_node_type = 'math'; } elseif ( $this->is_html_integration_point() ) { $token->integration_node_type = 'html'; } if ( false === $only_add_to_element_stack ) { /* * @todo Implement the "appropriate place for inserting a node" and the * "insert an element at the adjusted insertion location" algorithms. * * These algorithms mostly impacts DOM tree construction and not the HTML API. * Here, there's no DOM node onto which the element will be appended, so the * parser will skip this step. * * @see https://html.spec.whatwg.org/#insert-an-element-at-the-adjusted-insertion-location */ } $this->insert_html_element( $token ); } /** * Inserts a virtual element on the stack of open elements. * * @since 6.7.0 * * @param string $token_name Name of token to create and insert into the stack of open elements. * @param string|null $bookmark_name Optional. Name to give bookmark for created virtual node. * Defaults to auto-creating a bookmark name. * @return WP_HTML_Token Newly-created virtual token. */ private function insert_virtual_node( $token_name, $bookmark_name = null ): WP_HTML_Token { $here = $this->bookmarks[ $this->state->current_token->bookmark_name ]; $name = $bookmark_name ?? $this->bookmark_token(); $this->bookmarks[ $name ] = new WP_HTML_Span( $here->start, 0 ); $token = new WP_HTML_Token( $name, $token_name, false ); $this->insert_html_element( $token ); return $token; } /* * HTML Specification Helpers */ /** * Indicates if the current token is a MathML integration point. * * @since 6.7.0 * * @see https://html.spec.whatwg.org/#mathml-text-integration-point * * @return bool Whether the current token is a MathML integration point. */ private function is_mathml_integration_point(): bool { $current_token = $this->state->current_token; if ( ! isset( $current_token ) ) { return false; } if ( 'math' !== $current_token->namespace || 'M' !== $current_token->node_name[0] ) { return false; } $tag_name = $current_token->node_name; return ( 'MI' === $tag_name || 'MO' === $tag_name || 'MN' === $tag_name || 'MS' === $tag_name || 'MTEXT' === $tag_name ); } /** * Indicates if the current token is an HTML integration point. * * Note that this method must be an instance method with access * to the current token, since it needs to examine the attributes * of the currently-matched tag, if it's in the MathML namespace. * Otherwise it would be required to scan the HTML and ensure that * no other accounting is overlooked. * * @since 6.7.0 * * @see https://html.spec.whatwg.org/#html-integration-point * * @return bool Whether the current token is an HTML integration point. */ private function is_html_integration_point(): bool { $current_token = $this->state->current_token; if ( ! isset( $current_token ) ) { return false; } if ( 'html' === $current_token->namespace ) { return false; } $tag_name = $current_token->node_name; if ( 'svg' === $current_token->namespace ) { return ( 'DESC' === $tag_name || 'FOREIGNOBJECT' === $tag_name || 'TITLE' === $tag_name ); } if ( 'math' === $current_token->namespace ) { if ( 'ANNOTATION-XML' !== $tag_name ) { return false; } $encoding = $this->get_attribute( 'encoding' ); return ( is_string( $encoding ) && ( 0 === strcasecmp( $encoding, 'application/xhtml+xml' ) || 0 === strcasecmp( $encoding, 'text/html' ) ) ); } $this->bail( 'Should not have reached end of HTML Integration Point detection: check HTML API code.' ); // This unnecessary return prevents tools from inaccurately reporting type errors. return false; } /** * Returns whether an element of a given name is in the HTML special category. * * @since 6.4.0 * * @see https://html.spec.whatwg.org/#special * * @param WP_HTML_Token|string $tag_name Node to check, or only its name if in the HTML namespace. * @return bool Whether the element of the given name is in the special category. */ public static function is_special( $tag_name ): bool { if ( is_string( $tag_name ) ) { $tag_name = strtoupper( $tag_name ); } else { $tag_name = 'html' === $tag_name->namespace ? strtoupper( $tag_name->node_name ) : "{$tag_name->namespace} {$tag_name->node_name}"; } return ( 'ADDRESS' === $tag_name || 'APPLET' === $tag_name || 'AREA' === $tag_name || 'ARTICLE' === $tag_name || 'ASIDE' === $tag_name || 'BASE' === $tag_name || 'BASEFONT' === $tag_name || 'BGSOUND' === $tag_name || 'BLOCKQUOTE' === $tag_name || 'BODY' === $tag_name || 'BR' === $tag_name || 'BUTTON' === $tag_name || 'CAPTION' === $tag_name || 'CENTER' === $tag_name || 'COL' === $tag_name || 'COLGROUP' === $tag_name || 'DD' === $tag_name || 'DETAILS' === $tag_name || 'DIR' === $tag_name || 'DIV' === $tag_name || 'DL' === $tag_name || 'DT' === $tag_name || 'EMBED' === $tag_name || 'FIELDSET' === $tag_name || 'FIGCAPTION' === $tag_name || 'FIGURE' === $tag_name || 'FOOTER' === $tag_name || 'FORM' === $tag_name || 'FRAME' === $tag_name || 'FRAMESET' === $tag_name || 'H1' === $tag_name || 'H2' === $tag_name || 'H3' === $tag_name || 'H4' === $tag_name || 'H5' === $tag_name || 'H6' === $tag_name || 'HEAD' === $tag_name || 'HEADER' === $tag_name || 'HGROUP' === $tag_name || 'HR' === $tag_name || 'HTML' === $tag_name || 'IFRAME' === $tag_name || 'IMG' === $tag_name || 'INPUT' === $tag_name || 'KEYGEN' === $tag_name || 'LI' === $tag_name || 'LINK' === $tag_name || 'LISTING' === $tag_name || 'MAIN' === $tag_name || 'MARQUEE' === $tag_name || 'MENU' === $tag_name || 'META' === $tag_name || 'NAV' === $tag_name || 'NOEMBED' === $tag_name || 'NOFRAMES' === $tag_name || 'NOSCRIPT' === $tag_name || 'OBJECT' === $tag_name || 'OL' === $tag_name || 'P' === $tag_name || 'PARAM' === $tag_name || 'PLAINTEXT' === $tag_name || 'PRE' === $tag_name || 'SCRIPT' === $tag_name || 'SEARCH' === $tag_name || 'SECTION' === $tag_name || 'SELECT' === $tag_name || 'SOURCE' === $tag_name || 'STYLE' === $tag_name || 'SUMMARY' === $tag_name || 'TABLE' === $tag_name || 'TBODY' === $tag_name || 'TD' === $tag_name || 'TEMPLATE' === $tag_name || 'TEXTAREA' === $tag_name || 'TFOOT' === $tag_name || 'TH' === $tag_name || 'THEAD' === $tag_name || 'TITLE' === $tag_name || 'TR' === $tag_name || 'TRACK' === $tag_name || 'UL' === $tag_name || 'WBR' === $tag_name || 'XMP' === $tag_name || // MathML. 'math MI' === $tag_name || 'math MO' === $tag_name || 'math MN' === $tag_name || 'math MS' === $tag_name || 'math MTEXT' === $tag_name || 'math ANNOTATION-XML' === $tag_name || // SVG. 'svg DESC' === $tag_name || 'svg FOREIGNOBJECT' === $tag_name || 'svg TITLE' === $tag_name ); } /** * Returns whether a given element is an HTML Void Element * * > area, base, br, col, embed, hr, img, input, link, meta, source, track, wbr * * @since 6.4.0 * * @see https://html.spec.whatwg.org/#void-elements * * @param string $tag_name Name of HTML tag to check. * @return bool Whether the given tag is an HTML Void Element. */ public static function is_void( $tag_name ): bool { $tag_name = strtoupper( $tag_name ); return ( 'AREA' === $tag_name || 'BASE' === $tag_name || 'BASEFONT' === $tag_name || // Obsolete but still treated as void. 'BGSOUND' === $tag_name || // Obsolete but still treated as void. 'BR' === $tag_name || 'COL' === $tag_name || 'EMBED' === $tag_name || 'FRAME' === $tag_name || 'HR' === $tag_name || 'IMG' === $tag_name || 'INPUT' === $tag_name || 'KEYGEN' === $tag_name || // Obsolete but still treated as void. 'LINK' === $tag_name || 'META' === $tag_name || 'PARAM' === $tag_name || // Obsolete but still treated as void. 'SOURCE' === $tag_name || 'TRACK' === $tag_name || 'WBR' === $tag_name ); } /** * Gets an encoding from a given string. * * This is an algorithm defined in the WHAT-WG specification. * * Example: * * 'UTF-8' === self::get_encoding( 'utf8' ); * 'UTF-8' === self::get_encoding( " \tUTF-8 " ); * null === self::get_encoding( 'UTF-7' ); * null === self::get_encoding( 'utf8; charset=' ); * * @see https://encoding.spec.whatwg.org/#concept-encoding-get * * @todo As this parser only supports UTF-8, only the UTF-8 * encodings are detected. Add more as desired, but the * parser will bail on non-UTF-8 encodings. * * @since 6.7.0 * * @param string $label A string which may specify a known encoding. * @return string|null Known encoding if matched, otherwise null. */ protected static function get_encoding( string $label ): ?string { /* * > Remove any leading and trailing ASCII whitespace from label. */ $label = trim( $label, " \t\f\r\n" ); /* * > If label is an ASCII case-insensitive match for any of the labels listed in the * > table below, then return the corresponding encoding; otherwise return failure. */ switch ( strtolower( $label ) ) { case 'unicode-1-1-utf-8': case 'unicode11utf8': case 'unicode20utf8': case 'utf-8': case 'utf8': case 'x-unicode20utf8': return 'UTF-8'; default: return null; } } /* * Constants that would pollute the top of the class if they were found there. */ /** * Indicates that the next HTML token should be parsed and processed. * * @since 6.4.0 * * @var string */ const PROCESS_NEXT_NODE = 'process-next-node'; /** * Indicates that the current HTML token should be reprocessed in the newly-selected insertion mode. * * @since 6.4.0 * * @var string */ const REPROCESS_CURRENT_NODE = 'reprocess-current-node'; /** * Indicates that the current HTML token should be processed without advancing the parser. * * @since 6.5.0 * * @var string */ const PROCESS_CURRENT_NODE = 'process-current-node'; /** * Indicates that the parser encountered unsupported markup and has bailed. * * @since 6.4.0 * * @var string */ const ERROR_UNSUPPORTED = 'unsupported'; /** * Indicates that the parser encountered more HTML tokens than it * was able to process and has bailed. * * @since 6.4.0 * * @var string */ const ERROR_EXCEEDED_MAX_BOOKMARKS = 'exceeded-max-bookmarks'; /** * Unlock code that must be passed into the constructor to create this class. * * This class extends the WP_HTML_Tag_Processor, which has a public class * constructor. Therefore, it's not possible to have a private constructor here. * * This unlock code is used to ensure that anyone calling the constructor is * doing so with a full understanding that it's intended to be a private API. * * @access private */ const CONSTRUCTOR_UNLOCK_CODE = 'Use WP_HTML_Processor::create_fragment() instead of calling the class constructor directly.'; } הקשר בין אוזני המן להסטוריה המשפחתית וחיבור הדורות
חיפוש
סגור את תיבת החיפוש

מה קשור אוזני המן לחיבור ההסטוריה המשפחתית בין הדורות

אתם מרגישים שהדור הצעיר לא יודע את יוסף? מי זה יוסף? זה יכול להיות כל אחד מאבות אבותיכם או אימהותיכם. אבל זה לא חייב להיות ככה. יש מה לעשות.

כגנאולוגית, אני מוצאת את עצמי שרויה כל העת בסיפור העשיר של ההיסטוריה המשפחתית, אורגת את חוטי העבר יחדיו כדי ליצור נרטיב משמעותי לדורות הבאים. לכן, כאשר התעוררה ההזדמנות להשתתף באתגר אפייה-כלכלי באחת הקבוצות בהם אני חברה, זו לא היתה ההתרגשות של התחרות או הסיפוק מהניצחון – זו הייתה הזדמנות לכבד את זכרה של סבתי ולטוות קשרים בין הדורות.

ניצחוני באתגר, כשלעצמו היה מענג, אך זה היה רק ההתחלה למסע של עמוק יותר.
תראו, זו לא רק התוצאה הסופית; זה הסיפורים שאנחנו משתפים בדרך.
בשבילי, סיפורים אלה רוויים בניחוחות מהמטבח של סבתי, שם כל מתכון נשא עמו חלק מהמורשת שלה.

עם הלך הרוח הזה, פניתי לבני הצעיר, ונתתי לו את ספר המתכונים שהכנתי ממחברת המתכונים המרופטת שעברה בירושה מסבתו הגדולה – אותה מחברת ממש שהתגוררה פעם במטבח של סבתי. יחד יצאנו למסע בזמן, במטרה להפיח חיים חדשים במתכון אוזני ההמן של סבתא.
אלה שלא טעמתי כמותם כבר מעל 20 שנה מאז היא נפרדה מאיתנו.

ככל שהתעמקנו במשימה, זיכרונות נהרו אליי כמו גאות של נוסטלגיה.
יכולתי לשמוע את קולה של סבתי, ממלמלת ביידיש, כשהיא מבשלת במטבחה הרוחש,
ומעבירה את חוכמתה ואהבתה בכל בחישת כף.

המתכון קרא למרגרינה – שריד מתקופה שחלפה – ובני לא יכול היה שלא להרים גבה על המצרך הישן. צחקנו המון, על כמויות המרגרינה בכל מתכון, והיינו חייבים לשדרג אותו לשנת 2024.
החלפנו את המרגרינה בחמאה.
חייכנו אחד לשנייה, סבתא תבין. לא?  
זו הייתה תזכורת שמסורות אינן סטטיות – הן משתנות עם הזמן,
משקפות את הטעמים וההעדפות המשתנים של כל דור.

אבל מסענו לא היה חף מאתגרים. בהיעדר מארוך, פנינו לפתרונות חלופיים.
צנצנת גדולה עשתה את העבודה לשביעות רצוננו.
ושוב הוכחנו שכשיש רצון, תמיד יש דרך.
וכאשר המתכון השאיר אותנו תוהים על טמפרטורת התנור וזמני האפייה,
אימצנו את רוח הניסיון והטעייה, ולמדנו לקחים חשובים בדרך.

דרך צחוק וזיכרונות, הפכנו אתגר אפייה פשוט לחגיגה משמעותית של מורשת משפחתית.
כשנגסתי לתוך הטריות והחמימות המשובחת של אוזני ההמן שהכנו,
לא יכולתי שלא להרגיש גאווה בכיבוד מורשתה של סבתי,
וכן, לא אשקר, החמימות גם נבעה מפרץ דמעות החם שליווה כל ביס.

בסופו של דבר, זכיתי במקום הראשון באתגר, אבל האושר הוא לא על הניצחון.
האושר הוא על הזיכרונות ששהצלחתי ליצור, הלקחים ששלמדנו בדרך, והקשרים שטווינו.
האתגר הסתיים, אבל מסענו רחוק מלהגיע לסוף.
ככל שנמשיך לחגוג את ההיסטוריה המשותפת שלנו ולאמץ את לקחי העבר,
מורשתם של אבותינו תמשיך לחיות בלבבות של דורות העתיד.

וזה, חברים יקרים, הוא ניצחון שכדאי להנות ממנו.

משתפת אתכם באהבה במתכון אוזני ההמן של סבתא.

תהנו.

מוזמנים לשתף:

אולי יעניין אותך גם...

Contact

Contact

Contact

Contact

לפרטים והזמנות

לפרטים והזמנות

לפרטים והזמנות

לפרטים והזמנות