
    q	h%                     B   S r SSKrS rS r\" 5       r\" SS5       V s0 s H  o \" U 5      _M     sn r\R                  \5        \R                  \" SS5       V s0 s H  o SU -  _M
     sn 5        S r	S	\
4S
 jr\R                  " S5      rS\
S	\4S jrgs  sn f s  sn f )zEncoding related utilities.    Nc                 $    U S:  =(       a    U S:  $ )N        is    O/var/www/html/env/lib/python3.13/site-packages/google/protobuf/text_encoding.py_AsciiIsPrintr
      s    	
b	QW    c                  
   0 n [        SS5       H  n[        U5      (       a  M  SU-  X'   M     SU [        S5      '   SU [        S5      '   SU [        S	5      '   S
U [        S5      '   SU [        S5      '   SU [        S5      '   U $ )Nr      \%03oz\t	z\n
z\rz\""z\''z\\\)ranger
   ord)retr   s     r	   _MakeStrEscapesr      s    
#C=a!|cf  #c$i.#c$i.#c$i.#c#h-#c$i.#c$i.	*r      r   r   c                 b   SnU (       a2   XR                  S5      R                  [        5      -  nSn U (       a  M2  U$ ! [         af  nXS UR                   R                  S5      R                  [        5      -  nU[
        XR                        -  nXR                  S-   S  n  S nANvS nAff = f)N utf-8   )decode	translate_str_escapesUnicodeDecodeErrorstart_byte_escapes)
text_bytesr   es      r	   _DecodeUtf8EscapeErrorsr&   $   s    
#*	w'11,??cj 	
 
*	  *	!((1;;LIIc	]:gg.//cggaij)j*s   (> 
B.AB))B.returnc                 
   [        U [        5      nU(       a'  U(       a  U R                  [        5      $ [	        U 5      $ U(       a  U R                  S5      n SR                  U  Vs/ s H  n[        U   PM     sn5      $ s  snf )a]  Escape a bytes string for use in an text protocol buffer.

Args:
  text: A byte string to be escaped.
  as_utf8: Specifies if result may contain non-ASCII characters.
      In Python 3 this allows unescaped non-ASCII Unicode characters.
      In Python 2 the return value will be valid UTF-8 rather than only ASCII.
Returns:
  Escaped string (str).
r   r   )
isinstancestrr   r    r&   encodejoinr#   )textas_utf8text_is_unicodecs       r	   CEscaper1   1   sg      tS)/^^L))$T**[[!d77d3dM!$d3443s   &B z"(\\+)x([0-9a-fA-F])(?![0-9a-fA-F])r-   c                     S n[         R                  X5      nUR                  S5      R                  S5      nUR                  S5      R                  S5      nUR                  S5      $ )zUnescape a text string with C-style escape sequences to UTF-8 bytes.

Args:
  text: The data to parse in a str.
Returns:
  A byte string.
c                     [        U R                  S5      5      S-  (       a&  U R                  S5      S-   U R                  S5      -   $ U R                  S5      $ )Nr   x0   r   )lengroup)ms    r	   
ReplaceHexCUnescape.<locals>.ReplaceHexY   sF     1771:WWQZ$++771:r   raw_unicode_escaper   unicode_escapezlatin-1)_CUNESCAPE_HEXsubr+   r   )r-   r9   results      r	   	CUnescaper@   P   sa     j/& ==-.556JK& ==!(()9:&	y	!!r   )__doc__rer
   r   r    r   chrr#   updater&   r*   r1   compiler=   bytesr@   r   s   0r	   <module>rG      s    " 	   %*!SM2MqCFM2   \ "   uS#?!Ao? @
5c 58 AB"C "E "c 3?s   BB