COJ d Z ddlmZ ddlZddlZddlZddlmZmZ ddl m Z mZ d Z e Z dgZej ej z ej z Zd Z e \ ZZZeeed Z ej de Zdd dddddddZdZ eed reZnd#dZ ej d j fdZ ddeej dj! eej" e fdZ#e pe#Z$ ej de Z%dZ&de%j e&fd Z'e%j e&fd!Z( G d" de) Z*dS )$zImplementation of JSONDecoder )absolute_importN )PY3unichr)make_scannerJSONDecodeErrorc 6 ddl m} | S # t $ r Y d S w xY w)Nr scanstring) _speedupsr ImportErrorr s f/builddir/build/BUILD/cloudlinux-venv-1.0.10/venv/lib64/python3.11/site-packages/simplejson/decoder.py_import_c_scanstringr sA )))))) tts JSONDecoderc t j dk r.d d } t j d| \ }}nt d }t d }||| fS )N) 7FF80000000000007FF0000000000000hexz>ddnaninf)sysversion_infodecodestructunpackfloat)_BYTESr r s r _floatconstantsr s^ & 3::5AA=//SSEllEllcT> )z -InfinityInfinityNaNz(.*?)(["\\\x00-\x1f])"\/ )r# r$ r% bfnrtzutf-8get_int_max_str_digits c t | |k r#t d|dt | d t | S )zBackport of the integer string length conversion limitation https://docs.python.org/3/library/stdtypes.html#int-max-str-digits zExceeds the limit (z+) for integer string conversion: value has z digits)len ValueErrorint)sINT_MAX_STR_DIGITSs r bounded_intr8 4 sq q66&&&*l~l~l~ AD EF AG AG AG AG H I I I1vv r z^[0-9a-fA-F]{4}$c d}| ||dz } || st || |dz t |d |dz fS # t $ r t || |dz w xY w)z5Scan a four digit hex number from s[end:end + 4] zInvalid \uXXXX escape sequence r )r r5 r4 )r6 end_mmsgescs r scan_four_digit_hexr@ > s ,C CaK.C 2c77 /c1cAg.../3||S1W$$ / / /c1cAg.../s A A$T c b |t }g } | j }|dz } || | } | t d| | |}| }| \ }}|r2|s%t |t st || } || |dk rn|dk r!|rd}t || | || | | }n# t $ r t d| | w xY w|dk r1 || }n!# t $ r d}t || | w xY w|dz }no | | |dz \ }}|d k rH|d z dk r?| ||dz d k r. | | |dz \ }}|d z dk rd|dz dz |dz z z }|}t | } || || |fS )a Scan the string s for a JSON string. End is the index of the character in s after the quote that started the JSON string. Unescapes all valid JSON string escape sequences and raises ValueError on attempt to decode an invalid string. If strict is False then literal control characters are allowed in the string. Returns a tuple of the decoded string and the index of the character in s after the end quote.Nr zUnterminated string starting atr# r$ zInvalid control character %r atuzInvalid \X escape sequence %ri i i r z\ui i ) DEFAULT_ENCODINGappendr r<