asda?‰PNG  IHDR ? f ??C1 sRGB ??é gAMA ±? üa pHYs ? ??o¨d GIDATx^íüL”÷e÷Y?a?("Bh?_ò???¢§?q5k?*:t0A-o??¥]VkJ¢M??f?±8\k2íll£1]q?ù???T a d0 @sdZddlZddlmZzddlmZWney>dZYn0ddgZej ej Bej BZ e dZe dZe d ZGd ddeZeeed Zed e Zd ddddddddZddZdeejfddZepeZede ZdZdejefddZejefdd ZGd!ddeZdS)"zImplementation of JSONDecoder N)scanner) scanstring JSONDecoderJSONDecodeErrornaninfz-infc@s eZdZdZddZddZdS)ra Subclass of ValueError with the following additional properties: msg: The unformatted error message doc: The JSON document being parsed pos: The start index of doc where parsing failed lineno: The line corresponding to pos colno: The column corresponding to pos cCsb|dd|d}||dd|}d||||f}t||||_||_||_||_||_dS)N rz%s: line %d column %d (char %d)) countrfind ValueError__init__msgdocposlinenocolno)selfrrrrrerrmsgr*/usr/src/Python-3.9.18/Lib/json/decoder.pyr s zJSONDecodeError.__init__cCs|j|j|j|jffS)N) __class__rrr)rrrr __reduce__*szJSONDecodeError.__reduce__N)__name__ __module__ __qualname____doc__r rrrrrrs  )z -InfinityInfinityNaNz(.*?)(["\\\x00-\x1f])"\/ r  )rr r!bfnrtcCs`||d|d}t|dkrL|ddvrLz t|dWStyJYn0d}t|||dS)Nr xXzInvalid \uXXXX escape)lenintr r)srescrrrr _decode_uXXXX;s  r3TcCsg}|j}|d}|||}|dur0td|||}|\} } | rP|| | dkr^qn.| dkr|rd| } t| ||n || qz ||} Wn tytd||dYn0| dkrz || } Wn(tyd| } t| ||Yn0|d7}nt||}|d 7}d |kr.d krnn`|||d d krt||d}d|krndkrnn d|d d>|dB}|d7}t|} || qd ||fS)aScan 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.r NzUnterminated string starting atrr z"Invalid control character {0!r} atuzInvalid \escape: {0!r}r+iiz\uiii ) appendrendgroupsformat IndexErrorKeyErrorr3chrjoin)r1r:strictZ_b_mchunks_appendZbeginchunkcontent terminatorrr2charZuniZuni2rrr py_scanstringEsV             2 rIz [ \t\n\r]*z c Cs|\}} g} | j} |duri}|j} || | d} | dkr| |vrb||| } || | d} | dkr|dur|| }|| dfSi} |dur|| } | | dfS| dkrtd|| | d7} t|| |\}} | ||}|| | ddkr"||| } || | ddkr"td|| | d7} z:|| |vrb| d7} || |vrb||| d} WntyxYn0z||| \}} Wn6ty}ztd||jdWYd}~n d}~00| ||fz0|| } | |vr||| d} || } Wntyd} Yn0| d7} | dkr2qn| d krLtd || d||| } || | d} | d7} | dkrtd|| dq|dur|| }|| fSt| } |dur|| } | | fS) Nr r}z1Expecting property name enclosed in double quotes:zExpecting ':' delimiterExpecting valuer8,Expecting ',' delimiter) r9 setdefaultr:rrr= StopIterationvaluedict) s_and_endrA scan_once object_hookobject_pairs_hookmemo_w_wsr1r:pairsZ pairs_appendZmemo_getnextcharresultkeyrQerrrrr JSONObjects    &         r_c Csv|\}}g}|||d}||vrF|||d}|||d}|dkrZ||dfS|j}z|||\} }Wn4ty} ztd|| jdWYd} ~ n d} ~ 00|| |||d}||vr|||d}|||d}|d7}|dkrqnn|dkrtd||dz:|||vrT|d7}|||vrT|||d}Wq`tyjYq`0q`||fS)Nr ]rLrMrN)r:r9rPrrQr=) rSrTrXrYr1r:valuesr[rDrQr^rrr JSONArrays> &  rbc@s@eZdZdZdddddddddZejfddZd d d ZdS) raSimple JSON decoder Performs the following translations in decoding by default: +---------------+-------------------+ | JSON | Python | +===============+===================+ | object | dict | +---------------+-------------------+ | array | list | +---------------+-------------------+ | string | str | +---------------+-------------------+ | number (int) | int | +---------------+-------------------+ | number (real) | float | +---------------+-------------------+ | true | True | +---------------+-------------------+ | false | False | +---------------+-------------------+ | null | None | +---------------+-------------------+ It also understands ``NaN``, ``Infinity``, and ``-Infinity`` as their corresponding ``float`` values, which is outside the JSON spec. NT)rU parse_float parse_intparse_constantrArVcCsZ||_|p t|_|pt|_|p"tj|_||_||_ t |_ t |_ t|_i|_t||_dS)a``object_hook``, if specified, will be called with the result of every JSON object decoded and its return value will be used in place of the given ``dict``. This can be used to provide custom deserializations (e.g. to support JSON-RPC class hinting). ``object_pairs_hook``, if specified will be called with the result of every JSON object decoded with an ordered list of pairs. The return value of ``object_pairs_hook`` will be used instead of the ``dict``. This feature can be used to implement custom decoders. If ``object_hook`` is also defined, the ``object_pairs_hook`` takes priority. ``parse_float``, if specified, will be called with the string of every JSON float to be decoded. By default this is equivalent to float(num_str). This can be used to use another datatype or parser for JSON floats (e.g. decimal.Decimal). ``parse_int``, if specified, will be called with the string of every JSON int to be decoded. By default this is equivalent to int(num_str). This can be used to use another datatype or parser for JSON integers (e.g. float). ``parse_constant``, if specified, will be called with one of the following strings: -Infinity, Infinity, NaN. This can be used to raise an exception if invalid JSON numbers are encountered. If ``strict`` is false (true is the default), then control characters will be allowed inside strings. Control characters in this context are those with character codes in the 0-31 range, including ``'\t'`` (tab), ``'\n'``, ``'\r'`` and ``'\0'``. N)rUfloatrcr0rd _CONSTANTS __getitem__rerArVr_Z parse_objectrbZ parse_arrayr parse_stringrWrZ make_scannerrT)rrUrcrdrerArVrrrr s#   zJSONDecoder.__init__cCsF|j|||dd\}}|||}|t|krBtd|||S)zlReturn the Python representation of ``s`` (a ``str`` instance containing a JSON document). r)idxz Extra data) raw_decoder:r/r)rr1rXobjr:rrrdecodeLs   zJSONDecoder.decoderc CsRz|||\}}Wn4tyH}ztd||jdWYd}~n d}~00||fS)a=Decode a JSON document from ``s`` (a ``str`` beginning with a JSON document) and return a 2-tuple of the Python representation and the index in ``s`` where the document ended. This can be used to decode a JSON document from a string that may have extraneous data at the end. rLN)rTrPrrQ)rr1rjrlr:r^rrrrkWs &zJSONDecoder.raw_decode)r) rrrrr WHITESPACEmatchrmrkrrrrrs 0 ) rrejsonrZ_jsonrZ c_scanstring ImportError__all__VERBOSE MULTILINEDOTALLFLAGSrfrZPosInfZNegInfr rrgcompileZ STRINGCHUNKZ BACKSLASHr3rorIrnZWHITESPACE_STRr_rbobjectrrrrrs>       =  Q%