
    Og                    t    d dl mZ d dlmZmZmZ d dlmZ erd dlm	Z	 d dl
mZ ddZddZddZdd	Zdd
Zy)    )annotations)SequenceTYPE_CHECKINGIterableinternal_tag_compiler)DXFTag)ExtendedTagsc                &    d t        |       D        S )Nc              3  >   K   | ]  }|j                   d vs|  yw))   i   N)code).0tags     U/var/www/html/public_html/myphp/venv/lib/python3.12/site-packages/ezdxf/tools/test.py	<genexpr>z/compile_tags_without_handles.<locals>.<genexpr>   s       chhh6Ns   r   )texts    r   compile_tags_without_handlesr      s    ,T2     c                j    | j                  d      }|D cg c]  }|j                          c}S c c}w )N
)splitstrip)r   lineslines      r   	normlinesr      s*    JJtE%*+TDJJL+++s   0c                >    ddl m}  |t        |       d      }||   S )Nr   )load_dxf_structureTignore_missing_eof)ezdxf.lldxf.loaderr   r   )r   namer   dxfs       r   load_sectionr%      s%    5
d#C t9r   c                N    ddl m}m}  |t        |       d      } |||         S )Nr   )r   load_dxf_entitiesTr    )r"   r   r'   r   )r   r#   r   r'   r$   s        r   load_entitiesr(       s*    H
d#C SY''r   c                   t               }| j                  d      }|D ]e  }|dk(  r	|j                         j                  d      D cg c]  }t        |d       }}|d   t	        |      k(  sJ |j                  |dd         g |S c c}w )Nr        r      )	bytearrayr   r   intlenextend)txtbr   r   vdatas         r   parse_hex_dumpr6   )   s    AIIdOE 2:$(JJL$6$6s$;<qAr
<<Aw#a&   	ab H =s   BN)r   strreturnzIterable[DXFTag])r   r7   r8   zSequence[str])r   r7   r#   r7   r8   zlist[ExtendedTags])r   r7   r#   r7   )r2   r7   r8   bytes)
__future__r   typingr   r   r   ezdxf.lldxf.taggerr   ezdxf.lldxf.typesr	   ezdxf.lldxf.extendedtagsr
   r   r   r%   r(   r6    r   r   <module>r@      s5    # 4 4 4(5,
(	r   