ÿØÿàJFIFÿþ ÿÛC       ÿÛC ÿÀÿÄÿÄ"#QrÿÄÿÄ&1!A"2qQaáÿÚ ?Øy,æ/3JæÝ¹È߲؋5êXw²±ÉyˆR”¾I0ó2—PI¾IÌÚiMö¯–þrìN&"KgX:Šíµ•nTJnLK„…@!‰-ý ùúmë;ºgµŒ&ó±hw’¯Õ@”Ü— 9ñ-ë.²1<yà‚¹ïQÐU„ہ?.’¦èûbß±©Ö«Âw*VŒ) `$‰bØÔŸ’ëXÖ-ËTÜíGÚ3ð«g Ÿ§¯—Jx„–’U/ÂÅv_s(Hÿ@TñJÑãõçn­‚!ÈgfbÓc­:él[ðQe 9ÀPLbÃãCµm[5¿ç'ªjglå‡Ûí_§Úõl-;"PkÞÞÁQâ¼_Ñ^¢SŸx?"¸¦ùY騐ÒOÈ q’`~~ÚtËU¹CڒêV  I1Áß_ÿÙ jMc@sdZddlZddlZddlZddlmZdZeZdgZej ej Bej BZ dZ e \ZZZdefdYZd Zdd Zied 6ed 6ed 6Zejde Zidd6dd6dd6dd6dd6dd6dd6dd6ZdZdeeejd ZepDeZejd!e Zd"Z deje d#Z!eje d$Z"de#fd%YZ$dS(&sImplementation of JSONDecoder iN(t make_scannercCs1yddlm}|SWntk r,dSXdS(Ni(t scanstring(tsimplejson._speedupsRt ImportErrortNone(R((sE/opt/alt/python27/lib64/python2.7/site-packages/simplejson/decoder.pyt_import_c_scanstrings  t JSONDecodercCssdjd}tjdkrM|d ddd|dddd}ntjd|\}}||| fS(Nt 7FF80000000000007FF0000000000000thextbigiitdd(tdecodetsyst byteordertstructtunpack(t_BYTEStnantinf((sE/opt/alt/python27/lib64/python2.7/site-packages/simplejson/decoder.pyt_floatconstantss /tJSONDecodeErrorcBseZdZddZRS(sSubclass 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 end: The end index of doc where parsing failed (may be None) lineno: The line corresponding to pos colno: The column corresponding to pos endlineno: The line corresponding to end (may be None) endcolno: The column corresponding to end (may be None) cCstj|t|||d|||_||_||_||_t||\|_|_ |dk rt||\|_ |_ nd\|_ |_ dS(Ntend(NN( t ValueErrort__init__terrmsgtmsgtdoctposRtlinecoltlinenotcolnoRt endlinenotendcolno(tselfRRRR((sE/opt/alt/python27/lib64/python2.7/site-packages/simplejson/decoder.pyR-s"     N(t__name__t __module__t__doc__RR(((sE/opt/alt/python27/lib64/python2.7/site-packages/simplejson/decoder.pyR s cCsQ|jdd|d}|dkr.|}n||jdd|}||fS(Ns ii(tcounttrindex(RRRR((sE/opt/alt/python27/lib64/python2.7/site-packages/simplejson/decoder.pyR:s   c Csst||\}}|dkr;d}|||||fSt||\}}d}||||||||fS(Ns%s: line %d column %d (char %d)s8%s: line %d column %d - line %d column %d (char %d - %d)(RR( RRRRRRtfmtRR ((sE/opt/alt/python27/lib64/python2.7/site-packages/simplejson/decoder.pyRCs s -InfinitytInfinitytNaNs(.*?)(["\\\x00-\x1f])u"t"u\s\u/t/utbu tfu tnu tru ttsutf-8cCs|dkrt}ng}|j}|d}x|||} | dkratd||n| j}| j\} } | rt| tst| |} n|| n| dkrPnD| dkr|rd| f} t| ||q|| q1ny||} Wn#tk r:td||nX| dkry|| }Wn3t k rdt | } t| ||nX|d7}n@||d|d!} |d}t | d krd } t| ||nt | d }d |ko d knrt jdkrd} ||d|d!dksTt| ||n||d|d!}t |d krt| ||nt |d }d|d d>|dB}|d7}nt|}|}||q1Wdj||fS(sScan 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.isUnterminated string starting atR*s\sInvalid control character %r attusInvalid \escape: iisInvalid \uXXXX escapeiiiis#Invalid \uXXXX\uXXXX surrogate pairis\ui ii iiuN(RtDEFAULT_ENCODINGtappendRRtgroupst isinstancetunicodet IndexErrortKeyErrortreprtlentintR t maxunicodetunichrtjoin(tsRtencodingtstrictt_bt_mtchunkst_appendtbegintchunktcontentt terminatorRtesctchartnext_endtunitesc2tuni2((sE/opt/alt/python27/lib64/python2.7/site-packages/simplejson/decoder.pyt py_scanstring`sp                +  s [ \t\n\r]*s c Cs|\} } |dkr!i}n|j} g} | | | d!} | dkr| |kr|| | j} | | | d!} n| dkr|dk r|| }|| dfSi} |dk r|| } n| | dfS| dkrtd| | qn| d7} xtrt| | ||\}} | ||}| | | d!dkr|| | j} | | | d!dkrtd| | qn| d7} yM| | |kr| d7} | | |kr|| | dj} qnWntk r nXy|| | \}} Wn#tk rHtd| | nX| j||fy@| | } | |kr|| | dj} | | } nWntk rd} nX| d7} | dkrPn%| d krtd | | dnyc| | } | |krW| d7} | | } | |krW|| | dj} | | } qWnWntk rqd} nX| d7} | dkrtd| | dqqW|dk r|| }|| fSt | } |dk r|| } n| | fS( NiR*t}sExpecting property namet:sExpecting : delimitersExpecting objecttt,sExpecting , delimiter( Rt setdefaultRRtTrueRR7t StopIterationR3tdict(t.0R@RAt scan_oncet object_hooktobject_pairs_hooktmemot_wt_wsR?Rtmemo_gettpairstnextchartresulttkeytvalue((sE/opt/alt/python27/lib64/python2.7/site-packages/simplejson/decoder.pyt JSONObjects               #                       c Cs|\}}g}|||d!}||kr\|||dj}|||d!}n|dkrv||dfS|j}x9try|||\} }Wn#tk rtd||nX|| |||d!}||kr|||dj}|||d!}n|d7}|dkr5Pn!|dkrVtd||nyM|||kr|d7}|||kr|||dj}qnWqtk rqXqW||fS(Nit]sExpecting objectRTsExpecting , delimiter(RR3RVRWRR7( RYRZR^R_R?RtvaluesRbRERe((sE/opt/alt/python27/lib64/python2.7/site-packages/simplejson/decoder.pyt JSONArrays@            # cBsGeZdZdddddeddZejdZddZ RS(sSimple JSON decoder Performs the following translations in decoding by default: +---------------+-------------------+ | JSON | Python | +===============+===================+ | object | dict | +---------------+-------------------+ | array | list | +---------------+-------------------+ | string | unicode | +---------------+-------------------+ | number (int) | int, long | +---------------+-------------------+ | 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. cCs||_||_||_|p$t|_|p3t|_|pEtj|_ ||_ t |_ t |_t|_i|_t||_dS(s *encoding* determines the encoding used to interpret any :class:`str` objects decoded by this instance (``'utf-8'`` by default). It has no effect when decoding :class:`unicode` objects. Note that currently only encodings that are a superset of ASCII work, strings of other encodings should be passed in as :class:`unicode`. *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 :class:`dict`. This can be used to provide custom deserializations (e.g. to support JSON-RPC class hinting). *object_pairs_hook* is an optional function that will be called with the result of any object literal decode with an ordered list of pairs. The return value of *object_pairs_hook* will be used instead of the :class:`dict`. This feature can be used to implement custom decoders that rely on the order that the key and value pairs are decoded (for example, :func:`collections.OrderedDict` will remember the order of insertion). 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. :class:`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. :class:`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. *strict* controls the parser's behavior when it encounters an invalid control character in a string. The default setting of ``True`` means that unescaped control characters are parse errors, if ``False`` then control characters will be allowed in strings. N(R@R[R\tfloatt parse_floatR;t parse_intt _CONSTANTSt __getitem__tparse_constantRARft parse_objectRit parse_arrayRt parse_stringR]RRZ(R!R@R[RkRlRoRAR\((sE/opt/alt/python27/lib64/python2.7/site-packages/simplejson/decoder.pyRRs.        cCss|j|d||dj\}}|||j}|t|krotd||t|n|S(szReturn the Python representation of ``s`` (a ``str`` or ``unicode`` instance containing a JSON document) tidxis Extra data(t raw_decodeRR:R(R!R?R^tobjR((sE/opt/alt/python27/lib64/python2.7/site-packages/simplejson/decoder.pyR s *icCsLy|j||\}}Wn#tk rAtd||nX||fS(sLDecode a JSON document from ``s`` (a ``str`` or ``unicode`` 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. sNo JSON object could be decoded(RZRWR(R!R?RsRuR((sE/opt/alt/python27/lib64/python2.7/site-packages/simplejson/decoder.pyRts  N( R"R#R$RRVRt WHITESPACEtmatchR Rt(((sE/opt/alt/python27/lib64/python2.7/site-packages/simplejson/decoder.pyR4s    9 (%R$treR Rtsimplejson.scannerRRt c_scanstringt__all__tVERBOSEt MULTILINEtDOTALLtFLAGSRR)tPosInftNegInfRRRRRRmtcompilet STRINGCHUNKt BACKSLASHR2RVRwRPRRvtWHITESPACE_STRRfRitobjectR(((sE/opt/alt/python27/lib64/python2.7/site-packages/simplejson/decoder.pyts>         &N Z$