+
    öäûj�l  ã                   ór  € R t ^ RIt^ RIt^ RIt^ RIHt ^ RIHt ^ RIHt  ! R R4      t ! R R]	4      t
 ! R	 R
4      t]! 4       tRt ! R R4      t ! R R4      t ! R R4      t ! R R4      t ! R R]4      t ! R R]4      tR tR tR tR tR tR tR tR&R ltR'R  ltR! tR" tR# tR(R$ lt R% t!R# ))zdprovides runtime services for templates, including Context,
Namespace, and various helper functions.N)Úcompat)Ú
exceptions)Úutilc                   ó¨   a € ] tR t^t o RtR tR t]R 4       t]R 4       t	R t
R tR tR	 tR
 tR tR tR tRR ltR tR tR tR tR tRtV tR# )ÚContextz�Provides runtime namespace, output buffer, and various
callstacks for templates.

See :ref:`runtime_toplevel` for detail on the usage of
:class:`.Context`.

c                ó  € V.V n         W n        VP                  4       V n        R V n        R V n        / V n        \        P                  ! \        V 4      V P                  R&   \        4       ;V n        V P                  R&   R # )NÚcaptureÚcaller)Ú_buffer_stackÚ_dataÚcopyÚ_kwargsÚ_with_templateÚ_outputting_as_unicodeÚ
namespacesÚ	functoolsÚpartialr   ÚCallerStackÚcaller_stack)ÚselfÚbufferÚdatas   &&,ÚHC:\Ai_Coding\apps\studio\ComfyUI\.venv\Lib\site-packages\mako\runtime.pyÚ__init__ÚContext.__init__   sl   € Ø$˜XˆÔàŒ
à—y‘y“{ˆŒØ"ˆÔØ&*ˆÔ#ØˆŒô !*× 1Ò 1´'¸4Ó @ˆ�
‰
�9Ñô 4?³=Ð@ˆÔ˜DŸJ™J xÓ0ó    c                óÄ   € Wn         VP                  P                  V P                  4      pV'       d-   \        P
                  ! R RP                  V4      ,          4      hR# )z%Reserved words passed to render(): %sz, N)r   Úreserved_namesÚintersectionr   r   ÚNameConflictErrorÚjoin)r   ÚtÚillegal_namess   && r   Ú_set_with_templateÚContext._set_with_template-   sQ   € ØÔØ×(Ñ(×5Ñ5°d·j±jÓAˆßÜ×.Ò.Ø7Ø—)‘)˜MÓ*õ+óð ñ r   c                ó.   € V P                   P                  # )zMReturn the :class:`.TemplateLookup` associated
with this :class:`.Context`.

)r   Úlookup©r   s   &r   r&   ÚContext.lookup6   s   € ð ×"Ñ"×)Ñ)Ð)r   c                ó6   € V P                   P                  4       # )aõ  Return the dictionary of top level keyword arguments associated
with this :class:`.Context`.

This dictionary only includes the top-level arguments passed to
:meth:`.Template.render`.  It does not include names produced within
the template execution such as local variable names or special names
such as ``self``, ``next``, etc.

The purpose of this dictionary is primarily for the case that
a :class:`.Template` accepts arguments via its ``<%page>`` tag,
which are normally expected to be passed via :meth:`.Template.render`,
except the template is being called in an inheritance context,
using the ``body()`` method.   :attr:`.Context.kwargs` can then be
used to propagate these arguments to the inheriting template::

    ${next.body(**context.kwargs)}

)r   r   r'   s   &r   ÚkwargsÚContext.kwargs>   s   € ð( �|‰|× Ñ Ó"Ð"r   c                ó<   € V P                   P                  V4       R# )zIPush a ``caller`` callable onto the callstack for
this :class:`.Context`.N)r   Úappend)r   r	   s   &&r   Úpush_callerÚContext.push_callerT   s   € ð 	×Ñ× Ñ  Ö(r   c                ó    € V P                   R R# )zHPop a ``caller`` callable onto the callstack for this
:class:`.Context`.Néÿÿÿÿ)r   r'   s   &r   Ú
pop_callerÚContext.pop_callerZ   s   € ð ×Ñ˜bÒ!r   c                óH   € \        V P                  P                  4       4      # )zAReturn a list of all names established in this :class:`.Context`.)Úlistr   Úkeysr'   s   &r   r6   ÚContext.keys`   s   € ô �D—J‘J—O‘OÓ%Ó&Ð&r   c                óv   € WP                   9   d   V P                   V,          # \        P                  V,          # ©N)r   ÚbuiltinsÚ__dict__©r   Úkeys   &&r   Ú__getitem__ÚContext.__getitem__e   s+   € Ø—*‘*ÔØ—:‘:˜c•?Ð"ä×$Ñ$ SÕ)Ð)r   c                óz   € \         P                  ! 4       pV P                  P                  V4       VP                  # )zMpush a capturing buffer onto this Context and return
the new writer function.)r   ÚFastEncodingBufferr
   r-   Úwrite©r   Úbufs   & r   Ú_push_writerÚContext._push_writerk   s0   € ô ×%Ò%Ó'ˆØ×Ñ×!Ñ! #Ô&Ø�y‰yÐr   c                ór   € V P                   P                  4       pWP                   R,          P                  3# )zepop the most recent capturing buffer from this Context
and return the current writer after the pop.

r1   )r
   ÚpoprB   rC   s   & r   Ú_pop_buffer_and_writerÚContext._pop_buffer_and_writers   s2   € ð × Ñ ×$Ñ$Ó&ˆØ×&Ñ& rÕ*×0Ñ0Ð0Ð0r   c                ó&   € V P                  4        R# )z*push a capturing buffer onto this Context.N)rE   r'   s   &r   Ú_push_bufferÚContext._push_buffer|   s   € ð 	×ÑÖr   c                ó6   € V P                   P                  4       # )z7pop the most recent capturing buffer from this Context.)r
   rH   r'   s   &r   Ú_pop_bufferÚContext._pop_buffer�   s   € ð ×!Ñ!×%Ñ%Ó'Ð'r   Nc                ót   € V P                   P                  V\        P                  P                  W4      4      # )z+Return a value from this :class:`.Context`.)r   Úgetr:   r;   )r   r=   Údefaults   &&&r   rR   ÚContext.get†   s*   € ð �z‰z�~‰~˜c¤8×#4Ñ#4×#8Ñ#8¸Ó#FÓGÐGr   c                óJ   € V P                   R,          P                  V4       R# )zKWrite a string to this :class:`.Context` object's
underlying output buffer.Nr1   ©r
   rB   )r   Ústrings   &&r   rB   ÚContext.write‹   s   € ð 	×Ñ˜2Õ×$Ñ$ VÖ,r   c                ó<   € V P                   R,          P                  # )z#Return the current writer function.r1   rV   r'   s   &r   ÚwriterÚContext.writer‘   s   € ð ×!Ñ! "Õ%×+Ñ+Ð+r   c                óB  € \         P                  \         4      pV P                  Vn        V P                  P	                  4       Vn        V P
                  Vn        V P                  Vn        V P                  Vn        V P                  Vn        V P                  Vn	        V# r9   )
r   Ú__new__r
   r   r   r   r   r   r   r   )r   Úcs   & r   Ú_copyÚContext._copy–   ss   € Ü�O‰OœGÓ$ˆØ×,Ñ,ˆŒØ—*‘*—/‘/Ó#ˆŒØ—L‘LˆŒ	Ø×.Ñ.ˆÔØ#'×#>Ñ#>ˆÔ Ø—‘ˆŒØ×*Ñ*ˆŒØˆr   c                óp   € V'       g   V # V P                  4       pVP                  P                  V4       V# )z·Create a new :class:`.Context` with a copy of this
:class:`.Context`'s current state,
updated with the given dictionary.

The :attr:`.Context.kwargs` collection remains
unaffected.


)r_   r   Úupdate)r   Údr^   s   && r   Ú_localsÚContext._locals¡   s,   € ÷ ØˆKØ�J‰J‹LˆØ	�‰�‰�qÔØˆr   c                óª   € V P                  4       pVP                  pVP                  RR4       VP                  RR4       VP                  RR4       V# )z^create a new copy of this :class:`.Context`. with
tokens related to inheritance state removed.r   NÚparentÚnext)r_   r   rH   )r   r^   Úxs   &  r   Ú_clean_inheritance_tokensÚ!Context._clean_inheritance_tokens²   sG   € ð �J‰J‹LˆØ�G‰GˆØ	�‰ˆf�dÔØ	�‰ˆh˜ÔØ	�‰ˆf�dÔØˆr   )r
   r   r   r   r   r   r   r9   )Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r   r#   Úpropertyr&   r*   r.   r2   r6   r>   rE   rI   rL   rO   rR   rB   rZ   r_   rd   rj   Ú__static_attributes__Ú__classdictcell__©Ú__classdict__s   @r   r   r      s‰   ø‡ € ñòAò"ð ñ*ó ð*ð ñ#ó ð#ò*)ò"ò'ò
*òò1òò
(ô
Hò
-ò,ò
	ò÷"	ð 	r   r   c                   óJ   a € ] tR t^¾t o R tR tR tR tR tR t	R t
RtV tR	# )
r   c                ó   € R V n         R # r9   ©Ú
nextcallerr'   s   &r   r   ÚCallerStack.__init__¿   s	   € ØˆŽr   c                ó"   € V P                  4       # r9   ©Ú__bool__r'   s   &r   Ú__nonzero__ÚCallerStack.__nonzero__Â   ó   € Ø�}‰}‹Ðr   c                óp   € \        V 4      ;'       d#    V P                  4       ;'       d    R ;'       g    R# )TF)ÚlenÚ_get_callerr'   s   &r   r}   ÚCallerStack.__bool__Å   s-   € Ü�4‹y×8Ð8˜T×-Ñ-Ó/×8Ð8°D×AÐA¸EÐAr   c                ó   € V R,          # ©é   r1   © r'   s   &r   rƒ   ÚCallerStack._get_callerÈ   s   € ð �B�xˆr   c                ó6   € \        V P                  4       V4      # r9   )Úgetattrrƒ   r<   s   &&r   Ú__getattr__ÚCallerStack.__getattr__Í   s   € Ü�t×'Ñ'Ó)¨3Ó/Ð/r   c                ób   € V P                   ;'       g    R pV P                  V4       R V n         V# r9   )ry   r-   )r   Úframes   & r   Ú_push_frameÚCallerStack._push_frameÐ   s+   € Ø—‘×'Ð' 4ˆØ�‰�EÔØˆŒØˆr   c                ó0   € V P                  4       V n        R # r9   )rH   ry   r'   s   &r   Ú
_pop_frameÚCallerStack._pop_frameÖ   s   € ØŸ(™(›*ˆŽr   rx   N)rl   rm   rn   ro   r   r~   r}   rƒ   rŒ   r�   r“   rr   rs   rt   s   @r   r   r   ¾   s.   ø‡ € òòòBòò
0ò÷%ð %r   r   c                   ó6   a € ] tR t^Út o RtR tR tR tRtV t	R# )Ú	Undefinedz•Represents an undefined value in a template.

All template modules have a constant value
``UNDEFINED`` present which is an instance of this
object.

c                ó   € \        R 4      h)r–   )Ú	NameErrorr'   s   &r   Ú__str__ÚUndefined.__str__ã   s   € Ü˜Ó$Ð$r   c                ó"   € V P                  4       # r9   r|   r'   s   &r   r~   ÚUndefined.__nonzero__æ   r€   r   c                ó   € R # ©Frˆ   r'   s   &r   r}   ÚUndefined.__bool__é   s   € Ùr   rˆ   N)
rl   rm   rn   ro   rp   r™   r~   r}   rr   rs   rt   s   @r   r–   r–   Ú   s   ø‡ € ñò%ò÷ð r   r–   Ú c                   ó^   a € ] tR t^ñt o RtR tR tR t]R 4       t	R t
R tR tR	 tR
tV tR# )Ú	LoopStackz„a stack for LoopContexts that implements the context manager protocol
to automatically pop off the top of the stack on context exit
c                ó   € . V n         R # r9   ©Ústackr'   s   &r   r   ÚLoopStack.__init__ö   s	   € ØˆŽ
r   c                ó<   € V P                  V4       V P                  # r9   )Ú_pushÚ_top©r   Úiterables   &&r   Ú_enterÚLoopStack._enterù   s   € Ø�
‰
�8ÔØ�y‰yÐr   c                ó:   € V P                  4        V P                  # r9   )Ú_popr©   r'   s   &r   Ú_exitÚLoopStack._exitý   s   € Ø�	‰	ŒØ�y‰yÐr   c                óP   € V P                   '       d   V P                   R,          # V # r†   r¤   r'   s   &r   r©   ÚLoopStack._top  s   € à�:�:ˆ:Ø—:‘:˜b•>Ð!àˆKr   c                ó6   € V P                   P                  4       # r9   )r¥   rH   r'   s   &r   r¯   ÚLoopStack._pop  s   € Ø�z‰z�~‰~ÓÐr   c                ó¢   € \        V4      pV P                  '       d   V P                  R,          Vn        V P                  P                  V4      # r†   )ÚLoopContextr¥   rg   r-   )r   r«   Únews   && r   r¨   ÚLoopStack._push  s9   € Ü˜(Ó#ˆØ�:�:ˆ:ØŸ™ B�ˆCŒJØ�z‰z× Ñ  Ó%Ð%r   c                ó.   € \         P                  ! R 4      h)zNo loop context is established)r   ÚRuntimeExceptionr<   s   &&r   rŒ   ÚLoopStack.__getattr__  s   € Ü×)Ò)Ð*JÓKÐKr   c                ó,   € \        V P                  4      # r9   )Úiterr©   r'   s   &r   Ú__iter__ÚLoopStack.__iter__  s   € Ü�D—I‘I‹Ðr   r¤   N)rl   rm   rn   ro   rp   r   r¬   r°   rq   r©   r¯   r¨   rŒ   r¿   rr   rs   rt   s   @r   r¢   r¢   ñ   sG   ø‡ € ñòòòð ñó ðò ò&òL÷ð r   r¢   c                   óª   a € ] tR tRt o RtR tR t]P                  R 4       t	]
R 4       t]
R 4       t]
R 4       t]
R	 4       t]
R
 4       tR tRtV tR# )r·   i  an  A magic loop variable.
Automatically accessible in any ``% for`` block.

See the section :ref:`loop_context` for usage
notes.

:attr:`parent` -> :class:`.LoopContext` or ``None``
    The parent loop, if one exists.
:attr:`index` -> `int`
    The 0-based iteration count.
:attr:`reverse_index` -> `int`
    The number of iterations remaining.
:attr:`first` -> `bool`
    ``True`` on the first iteration, ``False`` otherwise.
:attr:`last` -> `bool`
    ``True`` on the last iteration, ``False`` otherwise.
:attr:`even` -> `bool`
    ``True`` when ``index`` is even.
:attr:`odd` -> `bool`
    ``True`` when ``index`` is odd.
c                ó.   € Wn         ^ V n        RV n        R# )é    N©Ú	_iterableÚindexrg   rª   s   &&r   r   ÚLoopContext.__init__/  s   € Ø!ŒØˆŒ
ØˆŽr   c              #  ón   "  € V P                    F   pVx € V ;P                  ^,          un        K"  	  R# 5i)r‡   N)rÅ   rÆ   )r   Úis   & r   r¿   ÚLoopContext.__iter__4  s%   é € Ø—”ˆAØŠGØ�JŠJ˜!�O�Jó  ùs   ‚35c                ó,   € \        V P                  4      # r9   )r‚   rÅ   r'   s   &r   Ú__len__ÚLoopContext.__len__9  s   € ä�4—>‘>Ó"Ð"r   c                óH   € \        V 4      V P                  ,
          ^,
          # ©r‡   )r‚   rÆ   r'   s   &r   Úreverse_indexÚLoopContext.reverse_index=  s   € ä�4‹y˜4Ÿ:™:Õ%¨Õ)Ð)r   c                ó    € V P                   ^ 8H  # )rÃ   )rÆ   r'   s   &r   ÚfirstÚLoopContext.firstA  s   € à�z‰z˜Q‰Ðr   c                ó@   € V P                   \        V 4      ^,
          8H  # rÏ   )rÆ   r‚   r'   s   &r   ÚlastÚLoopContext.lastE  s   € à�z‰zœS ›Y¨�]Ñ*Ð*r   c                ó$   € V P                   '       * # r9   )Úoddr'   s   &r   ÚevenÚLoopContext.evenI  s   € à—8‘8Œ|Ðr   c                ó:   € \        V P                  ^,          4      # )é   )ÚboolrÆ   r'   s   &r   rÙ   ÚLoopContext.oddM  s   € ä�D—J‘J •NÓ#Ð#r   c                ól   € V'       g   \        R4      hWP                  \        V4      ,          ,          # )z,Cycle through values as the loop progresses.z(You must provide values to cycle through)Ú
ValueErrorrÆ   r‚   )r   Úvaluess   &*r   ÚcycleÚLoopContext.cycleQ  s'   € çÜÐGÓHÐHØ—j‘j¤3 v£;Õ.Õ/Ð/r   rÄ   N)rl   rm   rn   ro   rp   r   r¿   r   Úmemoized_instancemethodrÌ   rq   rÐ   rÓ   rÖ   rÚ   rÙ   rã   rr   rs   rt   s   @r   r·   r·     sœ   ø‡ € ñò,ò
ð
 
×!Ñ!ñ#ó "ð#ð ñ*ó ð*ð ñó ðð ñ+ó ð+ð ñó ðð ñ$ó ð$÷0ð 0r   r·   c                   ó,   a € ] tR tRt o R tR tRtV tR# )Ú_NSAttriX  c                ó   € Wn         R # r9   )Ú_NSAttr__parent)r   rg   s   &&r   r   Ú_NSAttr.__init__Y  s   € ØŽr   c                óÀ   € V P                   pV'       dA   \        VP                  V4      '       d   \        VP                  V4      # VP                  pKH  \        V4      hr9   )ré   ÚhasattrÚmoduler‹   ÚinheritsÚAttributeError)r   r=   Únss   && r   rŒ   Ú_NSAttr.__getattr__\  sD   € Ø�]‰]ˆßÜ�r—y‘y #×&Ò&Ü˜rŸy™y¨#Ó.Ð.à—[‘[’Ü˜SÓ!Ð!r   )Ú__parentN)rl   rm   rn   ro   r   rŒ   rr   rs   rt   s   @r   rç   rç   X  s   ø‡ € ò÷"ð "r   rç   c                   ó²   a € ] tR tRt o RtRR ltRtRt Rt Rt	 Rt
 Rt Rt]P                  R 4       tR tR tR t]R	 4       tR
 tR tR tR tRtV tR# )Ú	Namespaceif  ak  Provides access to collections of rendering methods, which
can be local, from other templates, or from imported modules.

To access a particular rendering method referenced by a
:class:`.Namespace`, use plain attribute access:

.. sourcecode:: mako

  ${some_namespace.foo(x, y, z)}

:class:`.Namespace` also contains several built-in attributes
described here.

Nc                ó‚   € Wn         W n        W@n        Ve$   V Uu/ uF  qwP                  VbK  	  upV n        R # R # u upi r9   )ÚnameÚcontextrî   rl   Ú	callables)r   rö   r÷   rø   rî   Úpopulate_selfÚcalling_urir^   s   &&&&&&& r   r   ÚNamespace.__init__v  s=   € ð Œ	ØŒØ ŒØÒ Ù5>Ó?±Y°Ÿj™j¨!šm±YÑ?ˆDŽNñ !ùÚ?s   ›<c                ó   € \        V 4      # )zõAccess module level attributes by name.

This accessor allows templates to supply "scalar"
attributes which are particularly handy in inheritance
relationships.

.. seealso::

    :ref:`inheritance_attr`

    :ref:`namespace_attr_for_includes`

)rç   r'   s   &r   ÚattrÚNamespace.attr·  s   € ô �t‹}Ðr   c                ó  € W3pW P                   P                  9   d   V P                   P                  V,          # \        VV P                   P                  4       VV P                  R7      pW0P                   P                  V&   V# )aå  Return a :class:`.Namespace` corresponding to the given ``uri``.

If the given ``uri`` is a relative URI (i.e. it does not
contain a leading slash ``/``), the ``uri`` is adjusted to
be relative to the ``uri`` of the namespace itself. This
method is therefore mostly useful off of the built-in
``local`` namespace, described in :ref:`namespace_local`.

In
most cases, a template wouldn't need this function, and
should instead use the ``<%namespace>`` tag to load
namespaces. However, since all ``<%namespace>`` tags are
evaluated before the body of a template ever runs,
this method can be used to locate namespaces using
expressions that were generated within the body code of
the template, or to conditionally use a particular
namespace.

)Útemplateurirú   )r÷   r   ÚTemplateNamespacer_   Ú_templateuri)r   Úurir=   rð   s   &&  r   Úget_namespaceÚNamespace.get_namespaceÈ  sr   € ð( ˆkˆØ—,‘,×)Ñ)Ô)Ø—<‘<×*Ñ*¨3Õ/Ð/ÜØØ�L‰L×ÑÓ ØØ×)Ñ)ô	
ˆð (*�‰×Ñ Ñ$Øˆ	r   c                óB   € \        V P                  WP                  4      # )z¡Return a :class:`.Template` from the given ``uri``.

The ``uri`` resolution is relative to the ``uri`` of this
:class:`.Namespace` object's :class:`.Template`.

)Ú_lookup_templater÷   r  )r   r  s   &&r   Úget_templateÚNamespace.get_templateè  s   € ô   §¡¨c×3DÑ3DÓEÐEr   c                ó<   € V P                   P                  ! V3/ VB # )aX  Return a value from the :class:`.Cache` referenced by this
:class:`.Namespace` object's :class:`.Template`.

The advantage to this method versus direct access to the
:class:`.Cache` is that the configuration parameters
declared in ``<%page>`` take effect here, thereby calling
up the same configured backend as that configured
by ``<%page>``.

)ÚcacherR   )r   r=   r*   s   &&,r   Ú
get_cachedÚNamespace.get_cachedñ  s   € ð �z‰z�~Š~˜cÑ, VÑ,Ð,r   c                ó.   € V P                   P                  # )zgReturn the :class:`.Cache` object referenced
by this :class:`.Namespace` object's
:class:`.Template`.

)Útemplater  r'   s   &r   r  ÚNamespace.cacheÿ  s   € ð �}‰}×"Ñ"Ð"r   c                óH   € \        V P                  WP                  3/ VB  R# )z$Include a file at the given ``uri``.N)Ú_include_filer÷   r  )r   r  r*   s   &&,r   Úinclude_fileÚNamespace.include_file  s   € ô 	�d—l‘l C×):Ñ):ÑE¸fÔEr   c                ó~   € V F6  pVR 8X  d    V P                  4        F	  w  rEWQV&   K  	  K)  \        W4      W&   K8  	  R# )Ú*N)Ú	_get_starr‹   )r   rc   ÚlÚidentÚkÚvs   &&&   r   Ú	_populateÚNamespace._populate  s;   € ÛˆEØ˜Œ|Ø ŸN™NÖ,‘D�AØ�a“Dó -ô # 4Ó/�“ó r   c              #  óˆ   "  € V P                   '       d,   V P                    F  pWP                   V,          3x € K  	  R # R # 5ir9   )rø   r<   s   & r   r  ÚNamespace._get_star  s3   é € Ø�>�>ˆ>Ø—~”~�ØŸN™N¨3Õ/Ð0Ô0ó &ñ ùs   ‚A Ac                óô   € WP                   9   d   V P                   V,          pMGV P                  '       d   \        V P                  V4      pM\        R V P                  : RV: R24      h\        WV4       V# ©zNamespace 'z' has no member 'Ú')rø   rî   r‹   rï   rö   Úsetattr)r   r=   Úvals   && r   rŒ   ÚNamespace.__getattr__  s]   € Ø—.‘.Ô Ø—.‘. Õ%‰CØ�]�]ˆ]Ü˜$Ÿ-™-¨Ó-‰Cå Ø7;·y´yÃ#ÐFóð ô 	�˜3ÔØˆ
r   )rø   r÷   rî   rö   ©NNTNrˆ   )rl   rm   rn   ro   rp   r   rø   rí   r  r÷   Úfilenamer  r  r   Úmemoized_propertyrý   r  r  r  rq   r  r  r  r  rŒ   rr   rs   rt   s   @r   rô   rô   f  s¯   ø‡ € ñô@ð €Ià€Fðð €Hðð
 €Gðð €Hðð €Cðð €Là	×Ññó ðò ò@Fò-ð ñ#ó ð#òFò
0ò1÷

ð 
r   rô   c                   ój   a € ] tR tRt o RtRR lt]R 4       t]R 4       t]R 4       t	R t
R	 tR
tV tR# )r  i'  z@A :class:`.Namespace` specific to a :class:`.Template` instance.Nc	                óœ  € Wn         W n        W`n        Ve"   V U	u/ uF  q™P                  V	bK  	  up	V n        Ve8   \        W$V4      V n        V P                  P                  P                  V n	        M1Ve#   W0n        VP                  P                  V n	        M\        R4      hV'       d   \        W P                  V R7      w  r«R # R # u up	i )Nz 'template' argument is required.)Úself_ns)rö   r÷   rî   rl   rø   r  r  rí   Ú_template_urir  Ú	TypeErrorÚ_populate_self_namespace)r   rö   r÷   r  r   rø   rî   rù   rú   r^   ÚlclcallableÚ
lclcontexts   &&&&&&&&&   r   r   ÚTemplateNamespace.__init__*  s°   € ð Œ	ØŒØ ŒØÒ Ù5>Ó?±Y°Ÿj™j¨!šm±YÑ?ˆDŒNàÒ"Ü,¨WÀ;ÓOˆDŒMØ $§¡× 4Ñ 4× BÑ BˆDÕØÒ!Ø$ŒMØ (§¡× =Ñ =ˆDÕäÐ>Ó?Ð?çÜ&>ØŸ™°ô'Ñ#ˆK™ñ ùò @s   ›C	c                ó.   € V P                   P                  # )zÕThe Python module referenced by this :class:`.Namespace`.

If the namespace references a :class:`.Template`, then
this module is the equivalent of ``template.module``,
i.e. the generated module for the template.

)r  rí   r'   s   &r   rí   ÚTemplateNamespace.moduleI  s   € ð �}‰}×#Ñ#Ð#r   c                ó.   € V P                   P                  # ©zXThe path of the filesystem file used for this
:class:`.Namespace`'s module or template.
)r  r'  r'   s   &r   r'  ÚTemplateNamespace.filenameT  s   € ð
 �}‰}×%Ñ%Ð%r   c                ó.   € V P                   P                  # )z§The URI for this :class:`.Namespace`'s template.

I.e. whatever was sent to :meth:`.TemplateLookup.get_template()`.

This is the equivalent of :attr:`.Template.uri`.

)r  r  r'   s   &r   r  ÚTemplateNamespace.uri[  s   € ð �}‰}× Ñ Ð r   c              #  óø   a "  € S P                   '       d+   S P                    F  pVS P                   V,          3x € K  	  V 3R  lpS P                  P                  P                   F  pW2! V4      3x € K  	  R# 5i)c                 ó|   <€ SP                   P                  V 4      p\        P                  ! VSP                  4      # r9   )r  Ú_get_def_callabler   r   r÷   )r=   Ú	callable_r   s   & €r   rR   Ú(TemplateNamespace._get_star.<locals>.getk  s.   ø€ ØŸ™×7Ñ7¸Ó<ˆIÜ×$Ò$ Y°·±Ó=Ð=r   N)rø   r  rí   Ú_exports)r   r=   rR   r  s   f   r   r  ÚTemplateNamespace._get_starf  s`   øé € Ø�>�>ˆ>Ø—~”~�Ø˜DŸN™N¨3Õ/Ð0Ô0ñ &õ	>ð —‘×%Ñ%×.Ô.ˆAØ�c˜!“f�+Ôó /ùs   ƒA7A:c                ó®  € WP                   9   d   V P                   V,          pM¤V P                  P                  V4      '       d=   V P                  P                  V4      p\        P
                  ! W0P                  4      pMGV P                  '       d   \        V P                  V4      pM\        R V P                  : RV: R24      h\        WV4       V# r!  )rø   r  Úhas_defr;  r   r   r÷   rî   r‹   rï   rö   r#  ©r   r=   r$  r<  s   &&  r   rŒ   ÚTemplateNamespace.__getattr__r  sœ   € Ø—.‘.Ô Ø—.‘. Õ%‰CØ�]‰]×"Ñ" 3×'Ò'ØŸ™×7Ñ7¸Ó<ˆIÜ×#Ò# I¯|©|Ó<‰CØ�]�]ˆ]Ü˜$Ÿ-™-¨Ó-‰Cõ !Ø7;·y´yÃ#ÐFóð ô 	�˜3ÔØˆ
r   )r  rø   r÷   rî   rö   r  )NNNNTN)rl   rm   rn   ro   rp   r   rq   rí   r'  r  r  rŒ   rr   rs   rt   s   @r   r  r  '  sX   ø‡ € ÙJôð> ñ$ó ð$ð ñ&ó ð&ð ñ!ó ð!ò
÷ð r   r  c                   óJ   a € ] tR tRt o RtR	R lt]R 4       tR tR t	Rt
V tR# )
ÚModuleNamespaceiƒ  z;A :class:`.Namespace` specific to a Python module instance.Nc                óô   € Wn         W n        WPn        Ve"   V Uu/ uF  qˆP                  VbK  	  upV n        \        V4      p	VP                  R4      R,           F  p
\        Wš4      p	K  	  W�n        R # u upi )NÚ.:r‡   NN)	rö   r÷   rî   rl   rø   Ú
__import__Úsplitr‹   rí   )r   rö   r÷   rí   rø   rî   rù   rú   r^   ÚmodÚtokens   &&&&&&&&   r   r   ÚModuleNamespace.__init__†  so   € ð Œ	ØŒØ ŒØÒ Ù5>Ó?±Y°Ÿj™j¨!šm±YÑ?ˆDŒNä˜Ó ˆØ—\‘\ #Ó& r×*Ð*ˆEÜ˜#Ó%ŠCñ +àŽùò @s   ›A5c                ó.   € V P                   P                  # r5  )rí   Ú__file__r'   s   &r   r'  ÚModuleNamespace.filename›  s   € ð
 �{‰{×#Ñ#Ð#r   c              #  óv  "  € V P                   '       d*   V P                    F  pWP                   V,          3x € K  	  \        V P                  4       F`  pV^ ,          R8w  g   K  \        V P                  V4      p\	        V4      '       g   K<  V\
        P                  ! W P                  4      3x € Kb  	  R# 5i)rÃ   Ú_N)rø   Údirrí   r‹   Úcallabler   r   r÷   )r   r=   r<  s   &  r   r  ÚModuleNamespace._get_star¢  s�   é € Ø�>�>ˆ>Ø—~”~�ØŸN™N¨3Õ/Ð0Ô0ñ &ä�t—{‘{Ö#ˆCØ�1�v˜Ž}Ü# D§K¡K°Ó5�	Ü˜I×&Ô&Øœy×0Ò0°¿L¹LÓIÐIÔIó	 $ùs   ‚AB9Á&$B9Â*B9c                óš  € WP                   9   d   V P                   V,          pMš\        V P                  V4      '       d8   \        V P                  V4      p\        P
                  ! W0P                  4      pMGV P                  '       d   \        V P                  V4      pM\        R V P                  : RV: R24      h\        WV4       V# r!  )rø   rì   rí   r‹   r   r   r÷   rî   rï   rö   r#  rB  s   &&  r   rŒ   ÚModuleNamespace.__getattr__¬  s’   € Ø—.‘.Ô Ø—.‘. Õ%‰CÜ�T—[‘[ #×&Ò&Ü §¡¨SÓ1ˆIÜ×#Ò# I¯|©|Ó<‰CØ�]�]ˆ]Ü˜$Ÿ-™-¨Ó-‰Cå Ø7;·y´yÃ#ÐFóð ô 	�˜3ÔØˆ
r   )rø   r÷   rî   rí   rö   r&  )rl   rm   rn   ro   rp   r   rq   r'  r  rŒ   rr   rs   rt   s   @r   rE  rE  ƒ  s1   ø‡ € ÙEôð* ñ$ó ð$òJ÷ð r   rE  c                ó   a € V 3R lpV# )z€Apply a caller_stack compatibility decorator to a plain
Python function.

See the example in :ref:`namespaces_python_modules`.

c                 óÄ   <€ V P                   P                  4         S! V .VO5/ VB V P                   P                  4        #   T P                   P                  4        i ; ir9   )r   r�   r“   )r÷   Úargsr*   Úfuncs   &*,€r   Úwrap_stackframeÚ(supports_caller.<locals>.wrap_stackframeÄ  sQ   ø€ Ø×Ñ×(Ñ(Ô*ð	.Ù˜Ð1 $Ò1¨&Ñ1à× Ñ ×+Ñ+Õ-øˆG× Ñ ×+Ñ+Õ-ús   �A ÁArˆ   )rZ  r[  s   f r   Úsupports_callerr]  ¼  s   ø€ õ.ð Ðr   c                óì   € \        V4      '       g   \        P                  ! R4      hV P                  4         V! V/ VB  V P	                  4       pVP                  4       #   T P	                  4       pi ; i)z{Execute the given template def, capturing the output into
a buffer.

See the example in :ref:`namespaces_python_modules`.

z[capture() function expects a callable as its argument (i.e. capture(func, *args, **kwargs)))rS  r   r»   rL   rO   Úgetvalue)r÷   r<  rY  r*   rD   s   &&*, r   r   r   Î  st   € ô �I×ÒÜ×)Ò)ðAó
ð 	
ð ×ÑÔð$Ù�4Ð"˜6Ò"à×!Ñ!Ó#ˆØ�<‰<‹>Ðøð ×!Ñ!Ó#‰ús   ¹A! Á!A3c                 ó   a € V 3R  lpV# )c                 ó   <a € VV 3R  lpV# )c                 óŒ   <a € V V3R  lp SP                   R,          Vn         S! V4      ! S .VO5/ VB #   \         d     Li ; i)c                  ó   <€ S! S.V O5/ VB # r9   rˆ   )rY  Úkwr÷   Ú	render_fns   *,€€r   ÚyÚB_decorate_toplevel.<locals>.decorate_render.<locals>.go.<locals>.yæ  s   ø€ Ù  Ð6¨4Ò6°2Ñ6Ð6r   :é   NN)rl   r-  )r÷   rY  rd  rf  Úfnre  s   f*, €€r   ÚgoÚ7_decorate_toplevel.<locals>.decorate_render.<locals>.goå  sN   ù€ ö7ðØ&×/Ñ/°Õ3�”
ñ �a”5˜Ð. 4Ò.¨2Ñ.Ð.øô ô áðús   ‹5 µAÁArˆ   )re  rj  ri  s   f €r   Údecorate_renderÚ+_decorate_toplevel.<locals>.decorate_renderä  s   ù€ ö		/ð ˆ	r   rˆ   )ri  rl  s   f r   Ú_decorate_toplevelrn  ã  s   ø€ õð Ðr   c                 ó   a a€ V V3R  lpV# )c                 ó(   <a€ S! V 4      oVV3R  lpV# )c                  ó   <€ S! S.V O5/ VB # r9   rˆ   )rY  rd  r÷   Údecs   *,€€r   rj  Ú5_decorate_inline.<locals>.decorate_render.<locals>.goù  s   ø€ Ù�wÐ, Ò,¨Ñ,Ð,r   rˆ   )re  rj  rr  r÷   ri  s   & @€€r   rl  Ú)_decorate_inline.<locals>.decorate_renderö  s   ù€ Ù�‹mˆö	-ð ˆ	r   rˆ   )r÷   ri  rl  s   ff r   Ú_decorate_inlineru  õ  s   ù€ öð Ðr   c                óP  € \        WV4      p\        V P                  4       V4      w  rV\        WPP                  3/ VB pVP
                  '       d    V! V3/ VB  R# V! V3/ VB  R#   \         d3    TP                  T\        P                  ! 4       4      pT'       g   h  R# i ; i)zLlocate the template from the given uri and include it in
the current output.N)	r  r.  rj   Ú_kwargs_for_includer   Úinclude_error_handlerÚ	Exceptionr   Úexception_as)r÷   r  rú   r*   r  r<  ÚctxÚresults   &&&,    r   r  r    s£   € ô   ¨kÓ:€HÜ-Ø×)Ñ)Ó+¨Xó�N€Iô ! ¯M©MÑD¸VÑD€FØ×%×%Ð%ð	Ù�cÑ$˜VÔ$ñ 	�#Ñ ˜Ô øô ô 	Ø×3Ñ3°C¼×9LÒ9LÓ9NÓOˆFßØò ð	ús   Á	A( Á(7B%Â B%Â$B%c                óð  € Vf   R# \        WV4      pV R,          pTpVP                  e   VP                  pK  V P                  RV/4      p\        RVP                  ,          VVRR7      Vn        VP                  ;V P
                  R&   VP
                  R&   \        VP                  R	R4      pVe   V! W64      pV'       d   V# \        VP                  R
R4      p	V	e	   V	! V 4       VP                  V3# )zycalled by the _inherit method in template modules to set
up the inheritance chain at the start of a template's
execution.Nr   rh   úself:%sF©r  rù   rg   ÚlocalÚ_mako_inheritÚ_mako_generate_namespaces)	r  rî   rd   r  r  r   r‹   rí   r<  )
r÷   r  rú   r  r+  Úihr0  r<  ÚretÚgen_nss
   &&&       r   Ú_inherit_fromr†    së   € ð
 ‚{ÙÜ ¨kÓ:€HØ�f�o€GØ	€BØ
�+‰+Ò
!Ø�[‰[ŠØ—‘ &¨" Ó.€JÜ#Ø�H—L‘LÕ ØØØô	€B„Kð ;=¿+¹+ÐE€G‡M�M�(Ñ˜j×.Ñ.¨wÑ7Ü˜Ÿ™¨¸$Ó?€IØÒÙ˜Ó-ˆßØˆJä�X—_‘_Ð&AÀ4ÓH€FØÒÙˆwŒØ×Ñ 
Ð+Ð+r   c                 ó~  € V P                   P                  pVf2   \        P                  ! RV P                   P                  ,          4      hVP                  W4      p VP                  V4      #   \        P                   d9   p\        P                  ! \        \        P                  ! 4       4      4      ThR p?ii ; i)Nz.Template '%s' has no TemplateLookup associated)r   r&   r   ÚTemplateLookupExceptionr  Ú
adjust_urir  ÚTopLevelLookupExceptionÚstrr   rz  )r÷   r  Ú
relativetor&   Úes   &&&  r   r  r  5  s§   € Ø×#Ñ#×*Ñ*€FØ‚~Ü×0Ò0Ø<Ø×$Ñ$×(Ñ(õ)ó
ð 	
ð ×
Ñ
˜CÓ
,€CðØ×"Ñ" 3Ó'Ð'øÜ×-Ñ-ô Ü×0Ò0Ü”×#Ò#Ó%Ó&ó
àð	ûðús   ÁA/ Á/B<Â3B7Â7B<c                 ó$  € Vf!   \        RVP                  ,          V VRR7      pV;V P                  R&   V P                  R&   \        VP                  R4      '       d&   VP                  P                  W4      pV'       d   V# VP                  V 3# )Nr~  Fr  r   r€  r�  )r  r  r   rì   rí   r�  r<  )r÷   r  r+  r„  s   &&& r   r.  r.  E  s‚   € Ø‚Ü#Ø˜Ÿ™Õ$ØØØô	
ˆð 6=Ð<€G‡M�M�&Ñ˜GŸM™M¨'Ñ2Üˆx�‰ ×0Ò0Ø�o‰o×+Ñ+¨HÓ>ˆßØˆJØ×Ñ Ð(Ð(r   c                óL  € V'       d   \         P                  ! 4       pM,\         P                  ! V P                  V P                  R7      p\	        V3/ VB pWFn        VP                  V 4       \        V VV.VO5/ \        W4      B  VP                  4       P                  4       # )zZcreate a Context and return the string
output of the given template and template callable.)ÚencodingÚerrors)r   rA   Úoutput_encodingÚencoding_errorsr   r   r#   Ú_render_contextÚ_kwargs_for_callablerO   r_  )r  r<  rY  r   Ú
as_unicoderD   r÷   s   &&&&&  r   Ú_renderr—  U  sŸ   € ÷ Ü×%Ò%Ó'‰ä×%Ò%Ø×-Ñ-°h×6NÑ6Nô
ˆô �cÑ"˜TÑ"€GØ%/Ô"Ø×Ñ˜xÔ(äØØØðð 
ò	ô
 ˜yÓ
/òð ×ÑÓ ×)Ñ)Ó+Ð+r   c                 ó  € \         P                  ! V 4      pV^,          '       d   V# V^ ,          VR,           Uu. uF
  q3f   K  VNK  	  up,           p/ pV F&  pVR8w  g   K  Wa9   g   K  We9  g   K  W,          WV&   K(  	  V# u upi )rÝ   ºr‡   é   Nr÷   ©r   Úinspect_getargspec)r<  r   Úargspecr  Ú	namedargsr*   Úargs   &&     r   r•  r•  m  s{   € Ü×'Ò'¨	Ó2€Gàˆq‡z„zØˆð ˜•
¨°®ÓG© AŸa˜a©ÑGÕG€IØ€FÛˆØ�)Ö ¦°Ö0AØ�)ˆF‹Kñ ð €Mùò Hs   »BÁBc                 óì   € \         P                  ! V 4      pV^ ,          VR,           Uu. uF
  qDf   K  VNK  	  up,           pV F&  pVR8w  g   K  Wa9   g   K  Wb9  g   K  W,          W&&   K(  	  V# u upi )rÃ   r™  r÷   r›  )r<  r   r*   r�  r  rž  rŸ  s   &&,    r   rw  rw  |  sf   € Ü×'Ò'¨	Ó2€GØ˜•
¨°®ÓG© AŸa˜a©ÑGÕG€IÛˆØ�)Ö ¦°Ö0AØ�)ˆF‹Kñ ð €Mùò	 Hs
   ªA1´A1c                 óÈ   € ^ RI Hp \        WP                  4      '       g   \	        W 4      w  rg\        WgW4R7       R# \	        W P                  4      w  rg\        WW4R7       R# )rÃ   N)rY  r*   )Úmako.templater  Ú
isinstanceÚDefTemplater.  Ú_exec_templaterg   )Útmplr<  r÷   rY  r*   r  Úinheritr0  s   &&&*,   r   r”  r”  …  sL   € Ý$ô �d×0Ñ0×1Ò1ä6°wÓEÑˆÜ�w°×Eô 7°wÇÁÓLÑˆÜ�y°×Dr   c                ó\  € VP                   pVe4   VP                  '       g   VP                  '       d    V ! V.VO5/ VB  R# V ! V.VO5/ VB  R#   \         d$    \	        YA\
        P                  ! 4       4        R#  \        P                  ! 4       ^ ,          p\	        YAT4        R# ; i)zçexecute a rendering callable given the callable, a
Context, and optional explicit arguments

the contextual Template will be located if it exists, and
the error handling options specified on that Template will
be interpreted here.
N)	r   Úformat_exceptionsÚerror_handlerry  Ú_render_errorr   rz  ÚsysÚexc_info)r<  r÷   rY  r*   r  r�  s   &&&&  r   r¥  r¥  ”  s–   € ð ×%Ñ%€HØÒØ×"×"Ð" h×&<×&<Ð&<ð	0Ù�gÐ/ Ò/¨Ô/ñ 	�'Ð+˜DÒ+ FÔ+øô ô 	DÜ˜(¬V×-@Ò-@Ó-B×Cð	0Ü—’“˜qÕ!ˆAÜ˜(¨Q×/ús   ¶A Á*B+Á?)B+c                 ó$  € V P                   '       dW   V P                  W4      pV'       g<   \        P                  ! 4       w  rEpV'       d   V'       d   VP                  V4      hVhR# \        P
                  ! 4       pVP                  '       d%   \        P                  ! 4       .VP                  R &   M9\        P                  ! VP                  VP                  4      .VP                  R &   VP                  V4       VP                  WR7       R# ):NNN)ÚerrorN)rª  r¬  r­  Úwith_tracebackr   Úhtml_error_templater   r   rA   r
   r’  r“  r#   Úrender_context)r  r÷   r¯  r|  ÚtpÚvalueÚtbÚerror_templates   &&&     r   r«  r«  «  sÝ   € Ø××ÐØ×'Ñ'¨Ó7ˆßÜŸLšL›N‰MˆB�rßŸØ×*Ñ*¨2Ó.Ð.à�ñ ô $×7Ò7Ó9ˆØ×)×)Ð)Ü(,×(?Ò(?Ó(AÐ'BˆG×!Ñ! !Ò$ô ×'Ò'Ø"×2Ñ2Ø"×2Ñ2óð(ˆG×!Ñ! !Ñ$ð 	×"Ñ" >Ô2Ø×%Ñ% gÐ%Ö;r   r9   rž   )NN)"rp   r:   r   r¬  Úmakor   r   r   r   r5   r   r–   Ú	UNDEFINEDÚSTOP_RENDERINGr¢   r·   rç   rô   r  rE  r]  r   rn  ru  r  r†  r  r.  r—  r•  rw  r”  r¥  r«  rˆ   r   r   Ú<module>rº     sà   ðñ,ó Û Û 
å Ý Ý ÷hñ hôV%�$ô %÷8ñ ñ& ‹K€	Ø€÷$ñ $÷N=0ñ =0÷@"ñ "÷~ñ ~ôBY˜	ô Yôx6�iô 6òrò$ò*ò$	ò!ò(,ò@ô )ô ,ò0òòEô,ô.<r   