B
    YQ                 @   sF   d dl mZmZ d dlmZ d dlZd dlZedejZ	dd Z
dS )    )absolute_importprint_function)
is_unicodeNz[^A-Za-z0-9-_]c             C   s:   t | s| jddd} td| } dd }dt|| S )zuA simple slugifier.

    This keeps ascii alphanumerics, -, and _, but replaces
    everything else with hyphen.
    zutf-8replace)encodingerrorsZNFCc             S   s:   dt | d   krdkr$n ndS t| r2dS | S d S )Ni   r   i   -)ord_remove_charsmatch)c r   @lib/python3.7/site-packages/anaconda_project/internal/slugify.pyr   "   s
     
zslugify.<locals>.replacer   )r   decodeunicodedataZ	normalizejoinmap)sr   r   r   r   slugify   s
    
r   )Z
__future__r   r   Z$anaconda_project.internal.py2_compatr   rer   compileUNICODEr   r   r   r   r   r   <module>   s
   