+
    O(i                        a  R
 t0 t R t^ RIt^ RIHt ^RIHtHt ^RIH	t	 ]P                  ! R]P                  4      t] ^ k R R ltRR R	 lltR# )zA
.. codeauthor:: Tsuyoshi Hombashi <tsuyoshi.hombashi@gmail.com>
N)Final)to_strvalidate_pathtype)InvalidCharErrorz[^0-9A-Za-z_.-]c                (    V ^8  d   QhR\         RR/# )   labelreturnNstr)formats   "X/Users/agent/.openclaw/workspace/venv/lib/python3.14/site-packages/pathvalidate/_ltsv.py__annotate__r      s     a as at a    c                    \        V RR7       \        P                  \        V 4      4      pV'       d   \	        RV 24      hR# )a  
Verifying whether ``label`` is a valid
`Labeled Tab-separated Values (LTSV) <http://ltsv.org/>`__ label or not.

:param label: Label to validate.
:raises pathvalidate.ValidationError:
    If invalid character(s) found in the ``label`` for a LTSV format label.
Fallow_whitespacesz1invalid character found for a LTSV format label: N)r   __RE_INVALID_LTSV_LABELfindallr   r   )r   
match_lists   & r   validate_ltsv_labelr      s?     eu5(00?J!RS]R^_`` r   c                <    V ^8  d   QhR\         R\         R\         /# )r   r   replacement_textr	   r
   )r   s   "r   r   r       s&     H Hs Hc H3 Hr   c                Z    \        V RR7       \        P                  V\        V 4      4      # )z
Replace all of the symbols in text.

:param label: Input text.
:param replacement_text: Replacement text.
:return: A replacement string.
:rtype: str
Fr   )r   r   subr   )r   r   s   &&r   sanitize_ltsv_labelr       s&     eu5"&&'7GGr   c                @    V ^8  d   Qh/ ^ \         9   d
   \        ;R&   # )r   r   )__conditional_annotations__r   )r   s   "r   r   r      s       K J Jr   ) )r   __doc__retypingr   _commonr   r   errorr   compileUNICODEr   r   r   r   )r   s   @r   <module>r&      sF    
  . # "$,=rzz!J  Ja"H Hr   