§
    	^µc3X  ã                   óÚ   — d dl mZ d dlmZmZmZmZ d dlmZ  G d„ d¦  «        Z	 ej
        d¬¦  «         G d„ d	¦  «        ¦   «         Zdd„Z G d„ d¦  «        Z G d„ d¦  «        Zd„ Zd
S )é   )Úattr)ÚencodingÚerrorÚpycompatÚutil)Úurlutilc                   óV   — e Zd ZdZd„ Zd„ Zd„ Zd„ Zd„ Zd„ Z	dd	„Z
d
„ Zd„ Zd„ Zd„ ZdS )Ú	multidictz¨A dict like object that can store multiple values for a key.

    Used to store parsed request parameters.

    This is inspired by WebOb's class of the same name.
    c                 ó   — i | _         d S ©N©Ú_items©Úselfs    ú9/usr/lib/python3/dist-packages/mercurial/hgweb/request.pyÚ__init__zmultidict.__init__    s   € ØˆŒˆˆó    c                 ó(   — | j         |         d         S )z%Returns the last set value for a key.éÿÿÿÿr   ©r   Úkeys     r   Ú__getitem__zmultidict.__getitem__#   s   € àŒ{˜3Ô Ô#Ð#r   c                 ó   — |g| j         |<   dS )z,Replace a values for a key with a new value.Nr   ©r   r   Úvalues      r   Ú__setitem__zmultidict.__setitem__'   s   € à!˜7ˆŒ�CÑÐÐr   c                 ó   — | j         |= dS )zDelete all values for a key.Nr   r   s     r   Ú__delitem__zmultidict.__delitem__+   s   € àŒK˜ÐÐÐr   c                 ó   — || j         v S r   r   r   s     r   Ú__contains__zmultidict.__contains__/   s   € Ø�d”kÐ!Ð!r   c                 ó*   — t          | j        ¦  «        S r   )Úlenr   r   s    r   Ú__len__zmultidict.__len__2   s   € Ý�4”;ÑÔÐr   Nc                 óR   — 	 |                       |¦  «        S # t          $ r |cY S w xY wr   )r   ÚKeyError)r   r   Údefaults      r   Úgetzmultidict.get5   s?   € ð	Ø×#Ò# CÑ(Ô(Ð(øÝð 	ð 	ð 	ØˆNˆNˆNð	øøøs   ‚ —&¥&c                 ób   — | j                              |g ¦  «                             |¦  «         dS )z<Add a new value for a key. Does not replace existing values.N)r   Ú
setdefaultÚappendr   s      r   Úaddzmultidict.add;   s.   € àŒ×Ò˜s BÑ'Ô'×.Ò.¨uÑ5Ô5Ð5Ð5Ð5r   c                 ó8   — | j                              |g ¦  «        S )zObtains all values for a key.)r   r'   r   s     r   Úgetallzmultidict.getall?   s   € àŒ{�Š˜s BÑ'Ô'Ð'r   c                 óv   — | j         |         }t          |¦  «        dk    rt          d|z  ¦  «        ‚|d         S )ztObtain a single value for a key.

        Raises KeyError if key not defined or it has multiple values set.
        é   s   multiple values for %ré    )r   r"   r%   )r   r   Úvalss      r   Úgetonezmultidict.getoneC   s<   € ð
 Œ{˜3Ôˆåˆt‰9Œ9�qŠ=ˆ=ÝÐ4°sÑ:Ñ;Ô;Ð;à�AŒwˆr   c                 óH   — d„ | j                              ¦   «         D ¦   «         S )Nc                 ó4   — i | ]\  }}|t          |¦  «        “ŒS © )Úlist©Ú.0ÚkÚvs      r   ú
<dictcomp>z+multidict.asdictoflists.<locals>.<dictcomp>P   s$   € Ð;Ð;Ð;™t˜q !�•4˜‘7”7Ð;Ð;Ð;r   )r   Úitemsr   s    r   Úasdictoflistszmultidict.asdictoflistsO   s$   € Ø;Ð; t¤{×'8Ò'8Ñ':Ô':Ð;Ñ;Ô;Ð;r   r   )Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r   r   r    r#   r'   r+   r-   r2   r=   r5   r   r   r
   r
      sÈ   € € € € € ðð ðð ð ð$ð $ð $ð#ð #ð #ðð ð ð"ð "ð "ð ð  ð  ðð ð ð ð6ð 6ð 6ð(ð (ð (ð
ð 
ð 
ð<ð <ð <ð <ð <r   r
   T)Úfrozenc                   ó  — e Zd ZdZ ej        ¦   «         Z ej        ¦   «         Z ej        ¦   «         Z ej        ¦   «         Z	 ej        ¦   «         Z
 ej        ¦   «         Z ej        ¦   «         Z ej        ¦   «         Z ej        ¦   «         Z ej        ¦   «         Z ej        ¦   «         Z ej        ¦   «         Z ej        ¦   «         Z ej        ¦   «         Z ej        ¦   «         Z ej        ¦   «         Z ej        ¦   «         ZdS )ÚparsedrequestztRepresents a parsed WSGI request.

    Contains both parsed parameters as well as a handle on the input stream.
    N)r>   r?   r@   rA   r   ÚibÚmethodÚurlÚbaseurlÚadvertisedurlÚadvertisedbaseurlÚ	urlschemeÚ
remoteuserÚ
remotehostÚapppathÚdispatchpartsÚdispatchpathÚreponameÚquerystringÚqsparamsÚheadersÚbodyfhÚrawenvr5   r   r   rD   rD   S   s   € € € € € ðð ð ˆTŒW‰YŒY€Fà
ˆ$Œ'‰)Œ)€CàˆdŒg‰iŒi€Gð �D”G‘I”I€MØ˜œ™	œ	Ðà�”‘	”	€Ià�”‘”€Jà�”‘”€Jð ˆdŒg‰iŒi€Gà�D”G‘I”I€Mð �4”7‘9”9€LàˆtŒw‰yŒy€Hà�$”'‘)”)€KàˆtŒw‰yŒy€Hð ˆdŒg‰iŒi€GàˆTŒW‰YŒY€FàˆTŒW‰YŒY€F€F€Fr   rD   Nc                 ó(  ‡— d„ Šˆfd„|                       ¦   «         D ¦   «         } |s|                      d¦  «        }|rt          j        |¦  «        }| d         dz   }|r|j        r|j        dz   }n|}d„ }|                      d¦  «        r|| d         z  }n|| d         z  } ||| d	         ¦  «        }|r_|j        rX||j        z  }|j        r|j        }n2|j        d
k    r
|j        sd}n|j        dk    r
|j        sd}n| d	         } |||¦  «        }n|| d         z  } ||| d	         ¦  «        }|}|}	|t          j         	                    |                      dd¦  «        ¦  «        z  }|t          j         	                    |                      dd¦  «        ¦  «        z  }|rH|j
        pd}
|
r|
                     d¦  «        sd|
z   }
|t          j         	                    |
¦  «        z  }n6|t          j         	                    |                      dd¦  «        ¦  «        z  }|t          j         	                    |                      dd¦  «        ¦  «        z  }|                      d¦  «        r|d| d         z   z  }|d| d         z   z  }|r&|j
        pd}|r|                     d¦  «        sd|z   }n|                      dd¦  «        }|�r$d|                     d¦  «        z   }|                      d¦  «        st          j        d¦  «        ‚| d                              |¦  «        st          j        d| d         |fz  ¦  «        ‚| d         t          |¦  «        d…         }|r4|                     d¦  «        st          j        d| d         |fz  ¦  «        ‚|                     d¦  «        |z   }|                     d¦  «                             d¦  «        }d                     |¦  «        }nld| v rd| d                              d¦  «        rD| d                              d¦  «                             d¦  «        }d                     |¦  «        }n	g }d}ng }d}|                      dd¦  «        }t'          ¦   «         }t          j                             |d¬¦  «        D ]\  }}|                     ||¦  «         Œg }|                       ¦   «         D ]Z\  }}|                     d¦  «        r@|                     |t          d¦  «        d…                              dd¦  «        |f¦  «         Œ[ddlm} |                     |¦  «        }d| v rd | vr| d         |d!<   d"| v rd#| vr| d"         |d$<   |€6| d%         }d!|v r*t          j        |t9          |d!         pd&¦  «        ¦  «        }t;          d;i d'| d(         “d)|“d*|“d+|“d,|	“d-| d         “d.|                      d/¦  «        “d0|                      d1¦  «        “d2|“d3|“d4|“d5|“d6|“d7|“d8|“d9|“d:| “ŽS )<aú  Parse URL components from environment variables.

    WSGI defines request attributes via environment variables. This function
    parses the environment variables into a data structure.

    If ``reponame`` is defined, the leading path components matching that
    string are effectively shifted from ``PATH_INFO`` to ``SCRIPT_NAME``.
    This simulates the world view of a WSGI application that processes
    requests from the base URL of a repo.

    If ``altbaseurl`` (typically comes from ``web.baseurl`` config option)
    is defined, it is used - instead of the WSGI environment variables - for
    constructing URL components up to and including the WSGI application path.
    For example, if the current WSGI application is at ``/repo`` and a request
    is made to ``/rev/@`` with this argument set to
    ``http://myserver:9000/prefix``, the URL and path components will resolve as
    if the request were to ``http://myserver:9000/prefix/rev/@``. In other
    words, ``wsgi.url_scheme``, ``SERVER_NAME``, ``SERVER_PORT``, and
    ``SCRIPT_NAME`` are all effectively replaced by components from this URL.

    ``bodyfh`` can be used to specify a file object to read the request body
    from. If not defined, ``wsgi.input`` from the environment dict is used.
    c                 ó˜   — t          | t          ¦  «        s| S t          j        rt	          j        | ¦  «        S t          j        | ¦  «        S r   )Ú
isinstanceÚstrr   Ú	iswindowsr   Ú
strtolocalÚfsencode)Úss    r   Útobytesz$parserequestfromenv.<locals>.tobytes§   sJ   € Ý˜!�SÑ!Ô!ð 	ØˆHÝÔð 	(õ Ô& qÑ)Ô)Ð)õ Ô$ QÑ'Ô'Ð'r   c                 ó@   •— i | ]\  }} ‰|¦  «         ‰|¦  «        “ŒS r5   r5   )r8   r9   r:   r_   s      €r   r;   z'parserequestfromenv.<locals>.<dictcomp>²   s/   ø€ Ð
:Ð
:Ð
:¡d a¨ˆ7ˆ7�1‰:Œ:�w�w˜q‘z”zÐ
:Ð
:Ð
:r   s	   REPO_NAMEs   wsgi.url_schemes   ://c                 ój   — |                       d¦  «        r|dk    r| d|z   z  } n|dk    r| d|z   z  } | S )Ns   https://ó   443ó   :ó   80)Ú
startswith)r^   Úports     r   Úaddportz$parserequestfromenv.<locals>.addportÈ   sJ   € Ø�<Š<˜Ñ$Ô$ð 	!Ø�vŠ~ˆ~Ø�T˜D‘[Ñ �øà�uŠ}ˆ}Ø�T˜D‘[Ñ �àˆr   s	   HTTP_HOSTs   SERVER_NAMEs   SERVER_PORTs   httprd   s   httpsrb   s   SCRIPT_NAMEr   s	   PATH_INFOó   /s   QUERY_STRINGó   ?s   reponame requires PATH_INFOs0   PATH_INFO does not begin with repo name: %s (%s)NsD   reponame prefix of PATH_INFO does not end at path delimiter: %s (%s)T)Úkeep_blank_valuess   HTTP_ó   _ó   -r/   ©Úwsgiheaderss   CONTENT_LENGTHs   HTTP_CONTENT_LENGTHó   Content-Lengths   CONTENT_TYPEs   HTTP_CONTENT_TYPEs   Content-Types
   wsgi.inputó   0rF   s   REQUEST_METHODrG   rH   rI   rJ   rK   rL   s   REMOTE_USERrM   s   REMOTE_HOSTrN   rO   rP   rQ   rR   rS   rT   rU   rV   r5   )r<   r'   r   rG   ÚschemeÚhostrf   r   ÚurlreqÚquoteÚpathre   Ústripr   ÚProgrammingErrorr"   ÚrstripÚsplitÚjoinr
   Úparseqslr+   r*   ÚreplaceÚ rn   ÚHeadersÚcappedreaderÚintrD   )ÚenvrQ   Ú
altbaseurlrU   ÚfullurlÚadvertisedfullurlrg   rf   rH   rJ   ru   rN   Ú
repoprefixrP   rO   rR   rS   r9   r:   rT   rn   r_   s                        @r   Úparserequestfromenvr†   „   s…  ø€ ðF	(ð 	(ð 	(ð ;Ð
:Ð
:Ð
:¨c¯iªi©k¬kÐ
:Ñ
:Ô
:€Cð
 ð )Ø—7’7˜<Ñ(Ô(ˆàð -Ý”[ Ñ,Ô,ˆ
ð Ð$Ô%¨Ñ.€Gàð $�jÔ'ð $Ø&Ô-°Ñ6ÐÐà#Ððð ð ð ‡w‚wˆ|ÑÔð 8Ø�3�|Ô$Ñ$ˆˆà�3�~Ô&Ñ&ˆØ�'˜' 3 ~Ô#6Ñ7Ô7ˆàð L�j”oð LØ˜Zœ_Ñ,ÐàŒ?ð 	'Ø”?ˆDˆDØÔ 'Ò)Ð)°*´/Ð)ØˆDˆDØÔ (Ò*Ð*°:´?Ð*ØˆDˆDà�~Ô&ˆDà#˜GÐ$5°tÑ<Ô<ÐÐà˜S Ô0Ñ0ÐØ#˜GÐ$5°s¸>Ô7JÑKÔKÐà€GØ)Ðà�tŒ{× Ò  §¢¨¸Ñ!=Ô!=Ñ>Ô>Ñ>€GØ�tŒ{× Ò  §¢¨°sÑ!;Ô!;Ñ<Ô<Ñ<€Gàð MØŒÐ% #ˆØð 	˜Ÿš¨Ñ-Ô-ð 	Ø˜$‘;ˆDØ�Tœ[×.Ò.¨tÑ4Ô4Ñ4ÐÐà�Tœ[×.Ò.¨s¯wªw°~ÀsÑ/KÔ/KÑLÔLÑLÐà�œ×*Ò*¨3¯7ª7°<ÀÑ+EÔ+EÑFÔFÑFÐà
‡w‚wˆÑÔð 9Ø�4˜#˜oÔ.Ñ.Ñ.ˆØ˜T C¨Ô$8Ñ8Ñ8Ðð ð /Ø”/Ð( SˆØð 	%˜7×-Ò-¨dÑ3Ô3ð 	%Ø˜W‘nˆGøà—'’'˜.¨#Ñ.Ô.ˆàñ "Ø˜HŸNšN¨4Ñ0Ô0Ñ0ˆ
à�wŠw�|Ñ$Ô$ð 	IÝÔ(Ð)GÑHÔHÐHà�<Ô ×+Ò+¨JÑ7Ô7ð 	ÝÔ(ð!Ø$'¨Ô$5°xÐ#@ñAñô ð ð
 ˜<Ô(­¨Z©¬Ð):Ð):Ô;ˆàð 	 × 7Ò 7¸Ñ =Ô =ð 	ÝÔ(ð6à�|Ô$ hÐ/ñ0ñô ð ð —.’. Ñ&Ô&¨Ñ3ˆØ$×*Ò*¨4Ñ0Ô0×6Ò6°tÑ<Ô<ˆØ—y’y Ñ/Ô/ˆˆà	˜Ð	Ð	Øˆ|Ô×"Ò" 4Ñ(Ô(ð 	Ø Ô-×3Ò3°DÑ9Ô9×?Ò?ÀÑEÔEˆMØŸ9š9 ]Ñ3Ô3ˆLˆLàˆMØˆLˆLàˆØˆà—'’'˜/¨3Ñ/Ô/€Kõ ‰{Œ{€HÝ”×$Ò$ [ÀDÐ$ÑIÔIð ð ‰ˆˆ1Ø�Š�Q˜ÑÔÐÐð
 €GØ—	’	‘”ð Hð H‰ˆˆ1Ø�<Š<˜Ñ!Ô!ð 	HØ�NŠN˜A�c (™mœm˜o˜oÔ.×6Ò6°t¸TÑBÔBÀAÐFÑGÔGÐGøàÐÐÐÐÐà×!Ò! 'Ñ*Ô*€Gð ˜CÐÐÐ$:À#Ð$EÐ$EØ%(Ð):Ô%;ˆÐ!Ñ"à˜#ÐÐÐ"6¸cÐ"AÐ"AØ#& Ô#7ˆ�Ñ à€~Ø�]Ô#ˆØ Ð'Ð'ÝÔ&Ø�˜GÐ$5Ô6Ð>¸$Ñ?Ô?ñô ˆFõ ð ð ð ØÐ$Ô%Ð%ðàˆGðð �ðð (Ð'ð	ð
 ,Ð+ðð Ð(Ô)Ð)ðð —7’7˜>Ñ*Ô*Ð*ðð —7’7˜>Ñ*Ô*Ð*ðð �ðð $�mðð "�\ðð �ðð  �Kðð �ðð �ðð  ˆvð!ð" ˆsð#ð r   c                   ó*   — e Zd ZdZd„ Zd„ Zd„ Zd„ ZdS )Úoffsettrackingwriteraü  A file object like object that is append only and tracks write count.

    Instances are bound to a callable. This callable is called with data
    whenever a ``write()`` is attempted.

    Instances track the amount of written data so they can answer ``tell()``
    requests.

    The intent of this class is to wrap the ``write()`` function returned by
    a WSGI ``start_response()`` function. Since ``write()`` is a callable and
    not a file object, it doesn't implement other file object methods.
    c                 ó"   — || _         d| _        d S )Nr0   )Ú_writeÚ_offset)r   Úwritefns     r   r   zoffsettrackingwriter.__init__t  s   € ØˆŒØˆŒˆˆr   c                 ó’   — |                       |¦  «        }|€| xj        t          |¦  «        z  c_        d S | xj        |z  c_        d S r   )rŠ   r‹   r"   )r   r^   Úress      r   Úwritezoffsettrackingwriter.writex  sD   € Ø�kŠk˜!‰nŒnˆàˆ;ØˆLŒL�C ™FœFÑ"ˆLŒLˆLˆLàˆLŒL˜CÑˆLŒLˆLˆLr   c                 ó   — d S r   r5   r   s    r   Úflushzoffsettrackingwriter.flush€  s   € Øˆr   c                 ó   — | j         S r   )r‹   r   s    r   Útellzoffsettrackingwriter.tellƒ  s
   € ØŒ|Ðr   N)r>   r?   r@   rA   r   r�   r‘   r“   r5   r   r   rˆ   rˆ   f  sZ   € € € € € ðð ðð ð ð ð  ð  ðð ð ðð ð ð ð r   rˆ   c                   ó<   — e Zd ZdZd„ Zd„ Zd„ Zd„ Zd„ Zd„ Z	d„ Z
d	S )
ÚwsgiresponseaP  Represents a response to a WSGI request.

    A response consists of a status line, headers, and a body.

    Consumers must populate the ``status`` and ``headers`` fields and
    make a call to a ``setbody*()`` method before the response can be
    issued.

    When it is time to start sending the response over the wire,
    ``sendresponse()`` is called. It handles emitting the header portion
    of the response message. It then yields chunks of body data to be
    written to the peer. Typically, the WSGI application itself calls
    and returns the value from ``sendresponse()``.
    c                 ó¶   — || _         || _        d| _        ddlm} |                     g ¦  «        | _        d| _        d| _        d| _	        d| _
        d| _        dS )zÃCreate an empty response tied to a specific request.

        ``req`` is a ``parsedrequest``. ``startresponse`` is the
        ``start_response`` function passed to the WSGI application.
        Nr/   rm   F)Ú_reqÚ_startresponseÚstatusr}   rn   r~   rT   Ú
_bodybytesÚ_bodygenÚ_bodywillwriteÚ_startedÚ_bodywritefn)r   ÚreqÚstartresponsern   s       r   r   zwsgiresponse.__init__—  sl   € ð ˆŒ	Ø+ˆÔàˆŒØ!Ð!Ð!Ð!Ð!Ð!à"×*Ò*¨2Ñ.Ô.ˆŒàˆŒØˆŒØ#ˆÔØˆŒØ ˆÔÐÐr   c                 óX   — | j         €| j        €| j        rt          j        d¦  «        ‚d S )Ns!   cannot define body multiple times)rš   r›   rœ   r   rw   r   s    r   Ú_verifybodyzwsgiresponse._verifybody«  s9   € àŒOÐ'ØŒ}Ð(ØÔ"ð )õ Ô(Ð)MÑNÔNÐNð )Ð(r   c                 óp   — |                       ¦   «          || _        dt          |¦  «        z  | j        d<   dS )ztDefine the response body as static bytes.

        The empty string signals that there is no response body.
        s   %dro   N)r¢   rš   r"   rT   )r   Úbs     r   Úsetbodybyteszwsgiresponse.setbodybytes³  s:   € ð
 	×ÒÑÔÐØˆŒØ*/µ#°a±&´&©.ˆŒÐ&Ñ'Ð'Ð'r   c                 ó<   — |                       ¦   «          || _        dS )z1Define the response body as a generator of bytes.N)r¢   r›   )r   Úgens     r   Ú
setbodygenzwsgiresponse.setbodygen¼  s   € à×ÒÑÔÐØˆŒˆˆr   c                 ó<   — |                       ¦   «          d| _        dS )a  Signal an intent to use write() to emit the response body.

        **This is the least preferred way to send a body.**

        It is preferred for WSGI applications to emit a generator of chunks
        constituting the response body. However, some consumers can't emit
        data this way. So, WSGI provides a way to obtain a ``write(data)``
        function that can be used to synchronously perform an unbuffered
        write.

        Calling this function signals an intent to produce the body in this
        manner.
        TN)r¢   rœ   r   s    r   Úsetbodywillwritezwsgiresponse.setbodywillwriteÁ  s$   € ð 	×ÒÑÔÐØ"ˆÔÐÐr   c              #   ój  K  — | j         rt          j        d¦  «        ‚d| _         | j        st          j        d¦  «        ‚| j        €"| j        €| j        st          j        d¦  «        ‚| j                             d¦  «        r¤| j         	                    d¦  «        dk    r| j        d= d	„ | j         
                    ¦   «         D ¦   «         }|r7t          j        d
d                     t          |¦  «        ¦  «        z  ¦  «        ‚| j        €| j        rt          j        d¦  «        ‚d}d}| j        j         	                    dd¦  «                             ¦   «         dk    rn8| j        j        dvrn)t!          | j        j        t$          j        ¦  «        sd}nd}|r
d| j        d<   |rJt!          | j        j        t$          j        ¦  «        sJ ‚	 | j        j                             d¦  «        }|snŒ#d„ | j                             ¦   «         D ¦   «         }|                      t/          j        | j        ¦  «        |¦  «        }| j        r| j        V — dS | j        r4| j        D ]*}t!          |t2          ¦  «        rt5          |¦  «        }|V — Œ+dS | j        r	|| _        dS t          j        d¦  «         dS )zðSend the generated response to the client.

        Before this is called, ``status`` must be set and one of
        ``setbodybytes()`` or ``setbodygen()`` must be called.

        Calling this method multiple times is not allowed.
        s$   sendresponse() called multiple timesTs   status line not definedNs   response body not defineds   304 ro   rp   c                 ó>   — h | ]}|                      ¦   «         d v¯|’ŒS ))s   dates   etags   expiress   cache-controls   content-locations   content-security-policys   vary)Úlower)r8   r9   s     r   ú	<setcomp>z,wsgiresponse.sendresponse.<locals>.<setcomp>ú  sB   € ð ð ð àØ—7’7‘9”9ðð	ð 	ð ð	ð 	ð 	r   s"   illegal header on 304 response: %ss   , s,   must use setbodybytes('') with 304 responsesFs   Expectr   s   100-continue)s   POSTs   PUTs   Closes
   Connectioni €  c                 ód   — g | ]-\  }}t          j        |¦  «        t          j        |¦  «        f‘Œ.S r5   )r   Ústrurlr7   s      r   ú
<listcomp>z-wsgiresponse.sendresponse.<locals>.<listcomp>B  sE   € ð 
ð 
ð 
á��1õ Œ_˜QÑÔ¥¤°Ñ!3Ô!3Ð4ð
ð 
ð 
r   s   do not know how to send body)r�   r   rw   r™   rš   r›   rœ   re   rT   r'   Úkeysrz   Úsortedr—   r­   rF   rY   rU   r   r   Úreadr<   r˜   r   ÚsysstrÚ	bytearrayÚbytesrž   )r   Ú
badheadersÚdrainÚcloseÚchunkÚ
strheadersr�   s          r   Úsendresponsezwsgiresponse.sendresponseÒ  s.  è è € ð Œ=ð 	ÝÔ(Ø7ñô ð ð ˆŒàŒ{ð 	EÝÔ(Ð)CÑDÔDÐDð ŒOÐ#Ø”Ð%ØÔ'ð &õ Ô(Ð)EÑFÔFÐFð Œ;×!Ò! 'Ñ*Ô*ð 	ð Œ|×ÒÐ 1Ñ2Ô2°dÒ:Ð:Ø”LÐ!2Ð3ðð àœ×*Ò*Ñ,Ô,ðñ ô ˆJð ð ÝÔ,Ø9Ø—j’j¥¨
Ñ!3Ô!3Ñ4Ô4ñ5ñô ð ð
 Œ}Ð(¨DÔ,?Ð(ÝÔ,ØCñô ð ð ˆØˆð
 Œ9Ô× Ò  ¨CÑ0Ô0×6Ò6Ñ8Ô8¸OÒKÐKØð ŒYÔÐ%6Ð6Ð6Øõ ˜dœiÔ.µÔ0AÑBÔBð Ø��ð �àð 	3Ø*2ˆDŒL˜Ñ'àð 	Ý˜dœiÔ.µÔ0AÑBÔBÐBÐBÐBðØœ	Ô(×-Ò-¨eÑ4Ô4�Øð Øðð

ð 
àœ×*Ò*Ñ,Ô,ð
ñ 
ô 
ˆ
ð ×#Ò#¥H¤O°D´KÑ$@Ô$@À*ÑMÔMˆàŒ?ð 	DØ”/Ð!Ð!Ð!Ð!Ð!ØŒ]ð 	DØœð ð �õ ˜e¥YÑ/Ô/ð )Ý! %™LœL�Eà����ðð ð Ô ð 	DØ %ˆDÔÐÐåÔ"Ð#BÑCÔCÐCÐCÐCr   c                 ó¨   — | j         st          j        d¦  «        ‚| j        st          j        d¦  «        ‚| j        sJ ‚t          | j        ¦  «        S )aÕ  Obtain a file object like object representing the response body.

        For this to work, you must call ``setbodywillwrite()`` and then
        ``sendresponse()`` first. ``sendresponse()`` is a generator and the
        function won't run to completion unless the generator is advanced. The
        generator yields not items. The easiest way to consume it is with
        ``list(res.sendresponse())``, which should resolve to an empty list -
        ``[]``.
        s"   must call setbodywillwrite() firstsW   must call sendresponse() first; did you remember to consume it since it is a generator?)rœ   r   rw   r�   rž   rˆ   r   s    r   Úgetbodyfilezwsgiresponse.getbodyfileX  sh   € ð Ô"ð 	PÝÔ(Ð)NÑOÔOÐOàŒ}ð 	ÝÔ(ð#ñô ð ð Ô Ð Ð Ð Ý# DÔ$5Ñ6Ô6Ð6r   N)r>   r?   r@   rA   r   r¢   r¥   r¨   rª   r½   r¿   r5   r   r   r•   r•   ‡  s‘   € € € € € ðð ð!ð !ð !ð(Oð Oð Oð9ð 9ð 9ðð ð ð
#ð #ð #ð"DDð DDð DDðL7ð 7ð 7ð 7ð 7r   r•   c                 ó&   ‡—  | ¦   «         Šˆfd„}|S )z{For compatibility with old CGI scripts. A plain hgweb() or hgwebdir()
    can and should now be used as a WSGI application.c                 ó   •—  ‰| |¦  «        S r   r5   )r�   ÚrespondÚapplications     €r   Úrun_wsgiz!wsgiapplication.<locals>.run_wsgiu  s   ø€ Øˆ{˜3 Ñ(Ô(Ð(r   r5   )Ú	app_makerrÄ   rÃ   s     @r   ÚwsgiapplicationrÆ   p  s0   ø€ ð �)‘+”+€Kð)ð )ð )ð )ð )ð €Or   )NNN)Ú
thirdpartyr   r}   r   r   r   r   Úutilsr   r
   r^   rD   r†   rˆ   r•   rÆ   r5   r   r   ú<module>rÉ      sm  ðð Ð Ð Ð Ð Ð ðð ð ð ð ð ð ð ð ð ð ð ðð ð ð ð ð ð
8<ð 8<ð 8<ð 8<ð 8<ñ 8<ô 8<ð 8<ðv €„ˆtÐÑÔð-ð -ð -ð -ð -ñ -ô -ñ Ôð-ð`_ð _ð _ð _ðDð ð ð ð ñ ô ð ðBf7ð f7ð f7ð f7ð f7ñ f7ô f7ð f7ðRð ð ð ð r   