
    j<                         d Z ddlmZ ddlmZmZ 	 ddlmZ d Zn$# e	$ r 	 ddlmZ n# e	$ r	 ddl
mZ Y nw xY wY nw xY wdZi Zd	 Zd
S )z Unicode to ASCII transliteration    )intern)	MAX_WBITS
decompress)filesc                 j    t          |                               |                                          S )N)r   joinpath
read_bytes)packageresources     T/var/www/html/Carbon-Document/venv/lib/python3.11/site-packages/anyascii/__init__.pyread_binaryr   	   s(    W~~&&x00;;===    )r   )get_dataz0.3.3c           
         	 |                                  r| S n# t          $ r Y nw xY wg }| D ]}t          |          }|dk    r|                    |           .|dz	  }|dz  }	 t          |         }n# t
          $ r 	 t          dd|z            }t          |t                     	                    d          }t          t          t          |                    d                              }n# t          $ r d}Y nw xY w|t          |<   Y nw xY wt          |          |k    r|                    ||                    d	                    |          S )
z"Transliterate a string into ASCII.         zanyascii._dataz%03xascii	  )isasciiAttributeErrorordappend_blocksKeyErrorr   r   r   decodetuplemapr   splitFileNotFoundErrorlenjoin)	stringresultchar	codepointblocknumloblockbss	            r   anyasciir.      s   >> 	M	   F % %II	MM$>		&H%EE 	& 	& 	& 0&82CDDq9*--44W==c&!''$--8899$    %GH	& u::??MM%)$$$776??sC    
&&&A44
D?A1C10D1D =D?D  DDN)__doc__sysr   zlibr   r   importlib.resourcesr   r   ImportErrorpkgutilr   __version__r   r.   r   r   r   <module>r6      s    & &       & & & & & & & &
4))))))> > > >  4 4 443333333 4 4 43333333344 
    s$   	 =)=7=7==